diff --git a/assets/nested2-08b564c4.js b/assets/nested2-08b564c4.js new file mode 100644 index 000000000..2f4a02b41 --- /dev/null +++ b/assets/nested2-08b564c4.js @@ -0,0 +1,2 @@ +import{S as Ce,i as Oe,s as Fe,F as je,H as F,I as j,t as $,j as h,L as M,o as ne,e as T,a2 as Me,r as D,au as Ie,d as b,v as g,av as ie,l as Ne,k as w,y as Ae,at as ze,A as ee,p as C,w as Z,U as ue,M as Ee,a3 as Je,C as le,G as Te,q as L,am as ce,O as re,J as se,Q as me,N as Ge,D as _e,E as pe,K as ge,x as Pe}from"./maplibre_helpers-09c65b90.js";import{i as qe}from"./all-cc94300b.js";import{L as De,Z as He,C as Be,p as Ue,g as te,I as Ze,B as Ke,q as Qe,M as Re,m as Ve}from"./ZoomOutMap-bbe13584.js";function $e(r,e,t){const n=r.slice();return n[6]=e[t][0],n[7]=e[t][1],n}function de(r){let e;return{c(){e=T("option"),e.__value="",ee(e,e.__value)},m(t,n){b(t,e,n)},d(t){t&&w(e)}}}function he(r){let e,t=r[7]+"",n,l;return{c(){e=T("option"),n=C(t),e.__value=l=r[6],ee(e,e.__value)},m(s,u){b(s,e,u),g(e,n)},p(s,u){u&8&&t!==(t=s[7]+"")&&Z(n,t),u&8&&l!==(l=s[6])&&(e.__value=l,ee(e,e.__value))},d(s){s&&w(e)}}}function We(r){let e,t,n,l,s=r[4]&&de(),u=ne(r[3]),o=[];for(let f=0;fr[5].call(e))},m(f,a){b(f,e,a),s&&s.m(e,null),g(e,t);for(let i=0;i{"label"in a&&t(1,n=a.label),"id"in a&&t(2,l=a.id),"choices"in a&&t(3,s=a.choices),"emptyOption"in a&&t(4,u=a.emptyOption),"value"in a&&t(0,o=a.value)},[o,n,l,s,u,f]}class be extends Ce{constructor(e){super(),Oe(this,e,Ye,Xe,Fe,{label:1,id:2,choices:3,emptyOption:4,value:0})}}function we(r,e,t){const n=r.slice();return n[24]=e[t],n}function xe(r){let e;return{c(){e=C("Home")},m(t,n){b(t,e,n)},d(t){t&&w(e)}}}function ve(r){let e,t;return e=new Ge({props:{errorMessage:r[7]}}),{c(){F(e.$$.fragment)},m(n,l){j(e,n,l),t=!0},p(n,l){const s={};l&128&&(s.errorMessage=n[7]),e.$set(s)},i(n){t||($(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function et(r){let e;return{c(){e=C("Clear")},m(t,n){b(t,e,n)},d(t){t&&w(e)}}}function tt(r){let e,t,n,l,s,u;return n=new le({props:{$$slots:{default:[et]},$$scope:{ctx:r}}}),n.$on("click",r[18]),{c(){e=T("input"),t=L(),F(n.$$.fragment),D(e,"type","text"),D(e,"class","govuk-input govuk-input--width-10"),D(e,"id","filterText")},m(o,f){b(o,e,f),ee(e,r[1]),b(o,t,f),j(n,o,f),l=!0,s||(u=Ne(e,"input",r[17]),s=!0)},p(o,f){f&2&&e.value!==o[1]&&ee(e,o[1]);const a={};f&134217728&&(a.$$scope={dirty:f,ctx:o}),n.$set(a)},i(o){l||($(n.$$.fragment,o),l=!0)},o(o){h(n.$$.fragment,o),l=!1},d(o){o&&(w(e),w(t)),M(n,o),s=!1,u()}}}function nt(r){let e,t,n,l,s,u,o,f;function a(c){r[15](c)}let i={label:"Authority or region",id:"filterAuthority",choices:r[8]};r[4]!==void 0&&(i.value=r[4]),e=new be({props:i}),_e.push(()=>pe(e,"value",a));function O(c){r[16](c)}let I={label:"Funding programme",id:"filterFundingProgramme",choices:r[9]};return r[5]!==void 0&&(I.value=r[5]),l=new be({props:I}),_e.push(()=>pe(l,"value",O)),o=new je({props:{label:"Any field",id:"filterText",$$slots:{default:[tt]},$$scope:{ctx:r}}}),{c(){F(e.$$.fragment),n=L(),F(l.$$.fragment),u=L(),F(o.$$.fragment)},m(c,p){j(e,c,p),b(c,n,p),j(l,c,p),b(c,u,p),j(o,c,p),f=!0},p(c,p){const N={};p&256&&(N.choices=c[8]),!t&&p&16&&(t=!0,N.value=c[4],ge(()=>t=!1)),e.$set(N);const A={};p&512&&(A.choices=c[9]),!s&&p&32&&(s=!0,A.value=c[5],ge(()=>s=!1)),l.$set(A);const z={};p&134217730&&(z.$$scope={dirty:p,ctx:c}),o.$set(z)},i(c){f||($(e.$$.fragment,c),$(l.$$.fragment,c),$(o.$$.fragment,c),f=!0)},o(c){h(e.$$.fragment,c),h(l.$$.fragment,c),h(o.$$.fragment,c),f=!1},d(c){c&&(w(n),w(u)),M(e,c),M(l,c),M(o,c)}}}function ke(r){let e,t;return e=new Be({props:{label:`${r[24].scheme_reference}: ${r[24].num_features} features`,$$slots:{default:[st]},$$scope:{ctx:r}}}),{c(){F(e.$$.fragment)},m(n,l){j(e,n,l),t=!0},p(n,l){const s={};l&1&&(s.label=`${n[24].scheme_reference}: ${n[24].num_features} features`),l&134217729&&(s.$$scope={dirty:l,ctx:n}),e.$set(s)},i(n){t||($(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function lt(r){let e;return{c(){e=C("Show on map")},m(t,n){b(t,e,n)},d(t){t&&w(e)}}}function rt(r){let e;return{c(){e=C("Edit scheme")},m(t,n){b(t,e,n)},d(t){t&&w(e)}}}function st(r){let e,t,n=r[24].authority_or_region+"",l,s,u,o,f=r[24].capital_scheme_id+"",a,i,O,I,c=r[24].funding_programme+"",p,N,A,z,K,E,H,G;function Q(){return r[19](r[24])}z=new le({props:{$$slots:{default:[lt]},$$scope:{ctx:r}}}),z.$on("click",Q);function V(){return r[20](r[24])}return E=new le({props:{$$slots:{default:[rt]},$$scope:{ctx:r}}}),E.$on("click",V),{c(){e=T("p"),t=C("Authority or region: "),l=C(n),s=L(),u=T("p"),o=C("Capital scheme ID: "),a=C(f),i=L(),O=T("p"),I=C("Funding programme: "),p=C(c),N=L(),A=T("div"),F(z.$$.fragment),K=L(),F(E.$$.fragment),H=L(),D(A,"class","govuk-button-group")},m(k,y){b(k,e,y),g(e,t),g(e,l),b(k,s,y),b(k,u,y),g(u,o),g(u,a),b(k,i,y),b(k,O,y),g(O,I),g(O,p),b(k,N,y),b(k,A,y),j(z,A,null),g(A,K),j(E,A,null),b(k,H,y),G=!0},p(k,y){r=k,(!G||y&1)&&n!==(n=r[24].authority_or_region+"")&&Z(l,n),(!G||y&1)&&f!==(f=r[24].capital_scheme_id+"")&&Z(a,f),(!G||y&1)&&c!==(c=r[24].funding_programme+"")&&Z(p,c);const R={};y&134217728&&(R.$$scope={dirty:y,ctx:r}),z.$set(R);const _={};y&134217728&&(_.$$scope={dirty:y,ctx:r}),E.$set(_)},i(k){G||($(z.$$.fragment,k),$(E.$$.fragment,k),G=!0)},o(k){h(z.$$.fragment,k),h(E.$$.fragment,k),G=!1},d(k){k&&(w(e),w(s),w(u),w(i),w(O),w(N),w(A),w(H)),M(z),M(E)}}}function ye(r){let e=r[2].has(r[24].scheme_reference),t,n,l=e&&ke(r);return{c(){l&&l.c(),t=Me()},m(s,u){l&&l.m(s,u),b(s,t,u),n=!0},p(s,u){u&5&&(e=s[2].has(s[24].scheme_reference)),e?l?(l.p(s,u),u&5&&$(l,1)):(l=ke(s),l.c(),$(l,1),l.m(t.parentNode,t)):l&&(re(),h(l,1,1,()=>{l=null}),se())},i(s){n||($(l),n=!0)},o(s){h(l),n=!1},d(s){s&&w(t),l&&l.d(s)}}}function ot(r){let e,t,n,l,s,u,o,f,a,i,O,I,c,p,N,A=r[2].size+"",z,K,E=r[3].route+"",H,G,Q=r[3].area+"",V,k,y=r[3].crossing+"",R,_,d=r[3].other+"",q,W,P,x,U;t=new le({props:{$$slots:{default:[xe]},$$scope:{ctx:r}}}),t.$on("click",r[14]),o=new He({props:{boundaryGeojson:r[6]}});let B=r[7]&&ve(r);i=new Te({props:{label:"Load from GeoJSON",id:"load-geojson",loadFile:r[11]}}),I=new Be({props:{label:"Filters",$$slots:{default:[nt]},$$scope:{ctx:r}}});let X=ne(r[0]),S=[];for(let m=0;mh(S[m],1,1,()=>{S[m]=null});return{c(){e=T("div"),F(t.$$.fragment),n=L(),l=T("div"),s=T("h1"),s.textContent="Browse schemes",u=L(),F(o.$$.fragment),f=L(),B&&B.c(),a=L(),F(i.$$.fragment),O=L(),F(I.$$.fragment),c=L(),p=T("p"),N=C("Showing "),z=C(A),K=C(" schemes ("),H=C(E),G=C(" routes, "),V=C(Q),k=C(` areas, + `),R=C(y),_=C(" crossings, "),q=C(d),W=C(" other)"),P=L(),x=T("ul");for(let m=0;m{B=null}),se());const ae={};if(v&134218546&&(ae.$$scope={dirty:v,ctx:m}),I.$set(ae),(!U||v&4)&&A!==(A=m[2].size+"")&&Z(z,A),(!U||v&8)&&E!==(E=m[3].route+"")&&Z(H,E),(!U||v&8)&&Q!==(Q=m[3].area+"")&&Z(V,Q),(!U||v&8)&&y!==(y=m[3].crossing+"")&&Z(R,y),(!U||v&8)&&d!==(d=m[3].other+"")&&Z(q,d),v&12293){X=ne(m[0]);let J;for(J=0;J${t}${n}`;return e+="",e}function ct(r,e,t){let n,l;ue(r,te,_=>t(6,n=_)),ue(r,Ve,_=>t(21,l=_)),Ee(()=>{qe()});let u=new URLSearchParams(window.location.search).get("style")||"streets",o="",f=[],a="",i=new Set,O={area:0,route:0,crossing:0,other:0},I=[],c="",p=[],N="";Je(()=>{te.set(null)});function A(_){try{let d=JSON.parse(_);te.set(d),z(d),t(7,o=""),l==null||l.fitBounds(me(d),{padding:20,animate:!1})}catch(d){t(7,o=`Couldn't load schemes from a file: ${d}`)}}function z(_){let d={};for(let[P,x]of Object.entries(_.schemes))d[P]={scheme_reference:P,num_features:0,...x};for(let P of _.features)d[P.properties.scheme_reference].num_features++;t(0,f=Object.values(d));let q=new Set,W=new Set;for(let P of f)P.authority_or_region&&q.add(P.authority_or_region),P.funding_programme&&W.add(P.funding_programme);t(8,I=Array.from(q.entries())),I.sort(),t(9,p=Array.from(W.entries())),p.sort()}function K(_){let d={type:"FeatureCollection",features:n.features.filter(q=>q.properties.scheme_reference==_.scheme_reference)};l==null||l.fitBounds(me(d),{padding:20,animate:!1})}function E(_){let d={type:"FeatureCollection",features:n.features.filter(W=>W.properties.scheme_reference==_.scheme_reference)},q=_.authority_or_region;window.localStorage.setItem(q,JSON.stringify(d)),window.open(`scheme.html?authority=${_.authority_or_region}`,"_blank")}const H=()=>window.open("index.html");function G(_){c=_,t(4,c)}function Q(_){N=_,t(5,N)}function V(){a=this.value,t(1,a)}const k=()=>t(1,a=""),y=_=>K(_),R=_=>E(_);return r.$$.update=()=>{if(r.$$.dirty&127&&n){if(i.clear(),a||c||N){let _=a.toLowerCase();for(let d of n.features)JSON.stringify(d.properties).toLowerCase().includes(_)&&(c&&d.properties.authority_or_region!=c||N&&d.properties.funding_programme!=N||i.add(d.properties.scheme_reference))}else for(let _ of f)i.add(_.scheme_reference);te.update(_=>{if(!_)return null;for(let d of _.features)i.has(d.properties.scheme_reference)?delete d.properties.hide_while_editing:d.properties.hide_while_editing=!0;return _}),t(3,O={area:0,route:0,crossing:0,other:0});for(let _ of n==null?void 0:n.features)i.has(_.properties.scheme_reference)&&t(3,O[_.properties.intervention_type]++,O);t(2,i),t(6,n),t(1,a),t(4,c),t(5,N),t(0,f),t(3,O)}},[f,a,i,O,c,N,n,o,I,p,u,A,K,E,H,G,Q,V,k,y,R]}class mt extends Ce{constructor(e){super(),Oe(this,e,ct,it,Fe,{})}}document.body.className=document.body.className?document.body.className+" js-enabled":"js-enabled";new mt({target:document.getElementById("app")}); diff --git a/assets/nested2-6dc8cad0.js b/assets/nested2-6dc8cad0.js deleted file mode 100644 index b53792b60..000000000 --- a/assets/nested2-6dc8cad0.js +++ /dev/null @@ -1,2 +0,0 @@ -import{S as we,i as ye,s as ke,H as N,I as B,t as g,j as y,L as F,U as ue,M as ve,a3 as Se,C as Y,G as Ce,F as je,o as ie,e as T,q as j,p as w,am as ce,r as R,d as v,v as i,O as te,J as re,w as H,k as S,y as Me,Q as me,N as Ne,A as pe,l as Be,a2 as Fe,x as Le}from"./maplibre_helpers-09c65b90.js";import{i as Oe}from"./all-cc94300b.js";import{L as Ie,g as X,Z as ze,p as Je,I as Te,B as Ee,q as Ge,M as qe,m as Ae,C as De}from"./ZoomOutMap-bbe13584.js";function _e(s,e,r){const t=s.slice();return t[18]=e[r],t}function He(s){let e;return{c(){e=w("Home")},m(r,t){v(r,e,t)},d(r){r&&S(e)}}}function $e(s){let e,r;return e=new Ne({props:{errorMessage:s[5]}}),{c(){N(e.$$.fragment)},m(t,n){B(e,t,n),r=!0},p(t,n){const o={};n&32&&(o.errorMessage=t[5]),e.$set(o)},i(t){r||(g(e.$$.fragment,t),r=!0)},o(t){y(e.$$.fragment,t),r=!1},d(t){F(e,t)}}}function Ue(s){let e;return{c(){e=w("Clear")},m(r,t){v(r,e,t)},d(r){r&&S(e)}}}function Ze(s){let e,r,t,n,o,c;return t=new Y({props:{$$slots:{default:[Ue]},$$scope:{ctx:s}}}),t.$on("click",s[12]),{c(){e=T("input"),r=j(),N(t.$$.fragment),R(e,"type","text"),R(e,"class","govuk-input govuk-input--width-10"),R(e,"id","filterText")},m(u,$){v(u,e,$),pe(e,s[1]),v(u,r,$),B(t,u,$),n=!0,o||(c=Be(e,"input",s[11]),o=!0)},p(u,$){$&2&&e.value!==u[1]&&pe(e,u[1]);const l={};$&2097152&&(l.$$scope={dirty:$,ctx:u}),t.$set(l)},i(u){n||(g(t.$$.fragment,u),n=!0)},o(u){y(t.$$.fragment,u),n=!1},d(u){u&&(S(e),S(r)),F(t,u),o=!1,c()}}}function de(s){let e,r;return e=new De({props:{label:`${s[18].scheme_reference}: ${s[18].num_features} features`,$$slots:{default:[Re]},$$scope:{ctx:s}}}),{c(){N(e.$$.fragment)},m(t,n){B(e,t,n),r=!0},p(t,n){const o={};n&1&&(o.label=`${t[18].scheme_reference}: ${t[18].num_features} features`),n&2097153&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){r||(g(e.$$.fragment,t),r=!0)},o(t){y(e.$$.fragment,t),r=!1},d(t){F(e,t)}}}function Pe(s){let e;return{c(){e=w("Show on map")},m(r,t){v(r,e,t)},d(r){r&&S(e)}}}function Qe(s){let e;return{c(){e=w("Edit scheme")},m(r,t){v(r,e,t)},d(r){r&&S(e)}}}function Re(s){let e,r,t=s[18].authority_or_region+"",n,o,c,u,$=s[18].capital_scheme_id+"",l,p,L,U,E=s[18].funding_programme+"",O,G,h,z,q,I,D,a;function _(){return s[13](s[18])}z=new Y({props:{$$slots:{default:[Pe]},$$scope:{ctx:s}}}),z.$on("click",_);function J(){return s[14](s[18])}return I=new Y({props:{$$slots:{default:[Qe]},$$scope:{ctx:s}}}),I.$on("click",J),{c(){e=T("p"),r=w("Authority or region: "),n=w(t),o=j(),c=T("p"),u=w("Capital scheme ID: "),l=w($),p=j(),L=T("p"),U=w("Funding programme: "),O=w(E),G=j(),h=T("div"),N(z.$$.fragment),q=j(),N(I.$$.fragment),D=j(),R(h,"class","govuk-button-group")},m(m,k){v(m,e,k),i(e,r),i(e,n),v(m,o,k),v(m,c,k),i(c,u),i(c,l),v(m,p,k),v(m,L,k),i(L,U),i(L,O),v(m,G,k),v(m,h,k),B(z,h,null),i(h,q),B(I,h,null),v(m,D,k),a=!0},p(m,k){s=m,(!a||k&1)&&t!==(t=s[18].authority_or_region+"")&&H(n,t),(!a||k&1)&&$!==($=s[18].capital_scheme_id+"")&&H(l,$),(!a||k&1)&&E!==(E=s[18].funding_programme+"")&&H(O,E);const K={};k&2097152&&(K.$$scope={dirty:k,ctx:s}),z.$set(K);const Z={};k&2097152&&(Z.$$scope={dirty:k,ctx:s}),I.$set(Z)},i(m){a||(g(z.$$.fragment,m),g(I.$$.fragment,m),a=!0)},o(m){y(z.$$.fragment,m),y(I.$$.fragment,m),a=!1},d(m){m&&(S(e),S(o),S(c),S(p),S(L),S(G),S(h),S(D)),F(z),F(I)}}}function ge(s){let e=s[2].has(s[18].scheme_reference),r,t,n=e&&de(s);return{c(){n&&n.c(),r=Fe()},m(o,c){n&&n.m(o,c),v(o,r,c),t=!0},p(o,c){c&5&&(e=o[2].has(o[18].scheme_reference)),e?n?(n.p(o,c),c&5&&g(n,1)):(n=de(o),n.c(),g(n,1),n.m(r.parentNode,r)):n&&(te(),y(n,1,1,()=>{n=null}),re())},i(o){t||(g(n),t=!0)},o(o){y(n),t=!1},d(o){o&&S(r),n&&n.d(o)}}}function Ke(s){let e,r,t,n,o,c,u,$,l,p,L,U,E,O,G,h,z,q=s[2].size+"",I,D,a=s[3].route+"",_,J,m=s[3].area+"",k,K,Z=s[3].crossing+"",x,ne,V=s[3].other+"",ee,se,oe,W,A;r=new Y({props:{$$slots:{default:[He]},$$scope:{ctx:s}}}),r.$on("click",s[10]),u=new ze({props:{boundaryGeojson:s[4]}});let C=s[5]&&$e(s);p=new Ce({props:{label:"Load from GeoJSON",id:"load-geojson",loadFile:s[7]}}),O=new je({props:{label:"Filter by any field",id:"filterText",$$slots:{default:[Ze]},$$scope:{ctx:s}}});let P=ie(s[0]),b=[];for(let f=0;fy(b[f],1,1,()=>{b[f]=null});return{c(){e=T("div"),N(r.$$.fragment),t=j(),n=T("div"),o=T("h1"),o.textContent="Browse schemes",c=j(),N(u.$$.fragment),$=j(),C&&C.c(),l=j(),N(p.$$.fragment),L=j(),U=T("br"),E=j(),N(O.$$.fragment),G=j(),h=T("p"),z=w("Showing "),I=w(q),D=w(" schemes ("),_=w(a),J=w(" routes, "),k=w(m),K=w(` areas, - `),x=w(Z),ne=w(" crossings, "),ee=w(V),se=w(" other)"),oe=j(),W=T("ul");for(let f=0;f{C=null}),re());const ae={};if(d&2097154&&(ae.$$scope={dirty:d,ctx:f}),O.$set(ae),(!A||d&4)&&q!==(q=f[2].size+"")&&H(I,q),(!A||d&8)&&a!==(a=f[3].route+"")&&H(_,a),(!A||d&8)&&m!==(m=f[3].area+"")&&H(k,m),(!A||d&8)&&Z!==(Z=f[3].crossing+"")&&H(x,Z),(!A||d&8)&&V!==(V=f[3].other+"")&&H(ee,V),d&773){P=ie(f[0]);let M;for(M=0;M${r}${t}`;return e+="",e}function xe(s,e,r){let t,n;ue(s,X,a=>r(4,t=a)),ue(s,Ae,a=>r(15,n=a)),ve(()=>{Oe()});let c=new URLSearchParams(window.location.search).get("style")||"streets",u="",$=[],l="",p=new Set,L={area:0,route:0,crossing:0,other:0};Se(()=>{X.set(null)});function U(a){try{let _=JSON.parse(a);X.set(_),E(_),r(5,u=""),n==null||n.fitBounds(me(_),{padding:20,animate:!1})}catch(_){r(5,u=`Couldn't load schemes from a file: ${_}`)}}function E(a){let _={};for(let[J,m]of Object.entries(a.schemes))_[J]={scheme_reference:J,num_features:0,...m};for(let J of a.features)_[J.properties.scheme_reference].num_features++;r(0,$=Object.values(_))}function O(a){let _={type:"FeatureCollection",features:t.features.filter(J=>J.properties.scheme_reference==a.scheme_reference)};n==null||n.fitBounds(me(_),{padding:20,animate:!1})}function G(a){let _={type:"FeatureCollection",features:t.features.filter(m=>m.properties.scheme_reference==a.scheme_reference)},J=a.authority_or_region;window.localStorage.setItem(J,JSON.stringify(_)),window.open(`scheme.html?authority=${a.authority_or_region}`,"_blank")}const h=()=>window.open("index.html");function z(){l=this.value,r(1,l)}const q=()=>r(1,l=""),I=a=>O(a),D=a=>G(a);return s.$$.update=()=>{if(s.$$.dirty&31){if(p.clear(),l){let a=l.toLowerCase();for(let _ of t.features)JSON.stringify(_.properties).toLowerCase().includes(a)&&p.add(_.properties.scheme_reference)}else for(let a of $)p.add(a.scheme_reference);X.update(a=>{if(!a)return null;for(let _ of a.features)p.has(_.properties.scheme_reference)?delete _.properties.hide_while_editing:_.properties.hide_while_editing=!0;return a}),r(3,L={area:0,route:0,crossing:0,other:0});for(let a of t==null?void 0:t.features)p.has(a.properties.scheme_reference)&&r(3,L[a.properties.intervention_type]++,L);r(2,p),r(1,l),r(4,t),r(0,$),r(3,L)}},[$,l,p,L,t,u,c,U,O,G,h,z,q,I,D]}class et extends we{constructor(e){super(),ye(this,e,xe,Xe,ke,{})}}document.body.className=document.body.className?document.body.className+" js-enabled":"js-enabled";new et({target:document.getElementById("app")}); diff --git a/assets/route_info_bg.wasm b/assets/route_info_bg.wasm index df9e2572d..57453e0e9 100644 Binary files a/assets/route_info_bg.wasm and b/assets/route_info_bg.wasm differ diff --git a/browse.html b/browse.html index 0caf1bfc5..720838233 100644 --- a/browse.html +++ b/browse.html @@ -7,7 +7,7 @@ content="initial-scale=1,maximum-scale=1,user-scalable=no" /> ATIP v2 scheme browser - + diff --git a/browse_dropdown_filters/assets/About-563eb94d.js b/browse_dropdown_filters/assets/About-563eb94d.js deleted file mode 100644 index af182f10c..000000000 --- a/browse_dropdown_filters/assets/About-563eb94d.js +++ /dev/null @@ -1,15 +0,0 @@ -import{S as F,i as N,s as Q,c as Ce,e as g,r as j,d as k,u as Ae,g as Ie,f as Me,t as m,j as d,k as b,p as c,q as E,aj as we,aB as X,v as a,l as ve,aE as Te,w as Ee,ak as je,al as Pe,B as Se,C as We,H as C,I as A,K as I,D as Le,E as Re,J as Ue}from"./maplibre_helpers-5d84afaa.js";const st="/atip/browse_dropdown_filters/assets/authorities-80e824dc.geojson";function qe(l){let e,t;const n=l[2].default,s=Ce(n,l,l[1],null);return{c(){e=g("a"),s&&s.c(),j(e,"href",l[0]),j(e,"target","_blank"),j(e,"rel","noreferrer")},m(o,i){k(o,e,i),s&&s.m(e,null),t=!0},p(o,[i]){s&&s.p&&(!t||i&2)&&Ae(s,n,o,o[1],t?Me(n,o[1],i,null):Ie(o[1]),null),(!t||i&1)&&j(e,"href",o[0])},i(o){t||(m(s,o),t=!0)},o(o){d(s,o),t=!1},d(o){o&&b(e),s&&s.d(o)}}}function De(l,e,t){let{$$slots:n={},$$scope:s}=e,{href:o}=e;return l.$$set=i=>{"href"in i&&t(0,o=i.href),"$$scope"in i&&t(1,s=i.$$scope)},[o,s,n]}class T extends F{constructor(e){super(),N(this,e,De,qe,Q,{href:0})}}function Be(l){let e,t;return e=new We({props:{$$slots:{default:[Ge]},$$scope:{ctx:l}}}),e.$on("click",l[5]),{c(){C(e.$$.fragment)},m(n,s){A(e,n,s),t=!0},p(n,s){const o={};s&128&&(o.$$scope={dirty:s,ctx:n}),e.$set(o)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){d(e.$$.fragment,n),t=!1},d(n){I(e,n)}}}function Ge(l){let e;return{c(){e=c("X")},m(t,n){k(t,e,n)},d(t){t&&b(e)}}}function He(l){let e,t,n,s,o,i,_,$,w,P,f=l[2]&&Be(l);const M=l[4].default,h=Ce(M,l,l[7],null);return{c(){e=g("div"),t=g("div"),n=g("div"),s=g("h1"),o=c(l[1]),i=E(),f&&f.c(),_=E(),h&&h.c(),j(s,"class","govuk-heading-l"),we(n,"display","flex"),we(n,"justify-content","space-between"),j(t,"class","content centered-fullscreen svelte-stcgp5"),j(e,"class","background svelte-stcgp5"),X(e,"open",l[0]),X(e,"closed",!l[0])},m(u,B){k(u,e,B),a(e,t),a(t,n),a(n,s),a(s,o),a(n,i),f&&f.m(n,null),a(t,_),h&&h.m(t,null),$=!0,w||(P=[ve(t,"click",Te(Je)),ve(e,"click",l[6])],w=!0)},p(u,[B]){(!$||B&2)&&Ee(o,u[1]),u[2]?f?(f.p(u,B),B&4&&m(f,1)):(f=Be(u),f.c(),m(f,1),f.m(n,null)):f&&(je(),d(f,1,1,()=>{f=null}),Pe()),h&&h.p&&(!$||B&128)&&Ae(h,M,u,u[7],$?Me(M,u[7],B,null):Ie(u[7]),null),(!$||B&1)&&X(e,"open",u[0]),(!$||B&1)&&X(e,"closed",!u[0])},i(u){$||(m(f),m(h,u),$=!0)},o(u){d(f),d(h,u),$=!1},d(u){u&&b(e),f&&f.d(),h&&h.d(u),w=!1,Se(P)}}}const Je=()=>null;function Xe(l,e,t){let{$$slots:n={},$$scope:s}=e,{title:o}=e,{open:i=!1}=e,{displayEscapeButton:_=!0}=e,{canCloseByClickingBackground:$=!0}=e;const w=()=>t(0,i=!1),P=()=>{$&&t(0,i=!1)};return l.$$set=f=>{"title"in f&&t(1,o=f.title),"open"in f&&t(0,i=f.open),"displayEscapeButton"in f&&t(2,_=f.displayEscapeButton),"canCloseByClickingBackground"in f&&t(3,$=f.canCloseByClickingBackground),"$$scope"in f&&t(7,s=f.$$scope)},[i,o,_,$,n,w,P,s]}class ze extends F{constructor(e){super(),N(this,e,Xe,He,Q,{title:1,open:0,displayEscapeButton:2,canCloseByClickingBackground:3})}}function Ke(l){let e;return{c(){e=c("open source project")},m(t,n){k(t,e,n)},d(t){t&&b(e)}}}function Oe(l){let e;return{c(){e=c("Dustin Carlino")},m(t,n){k(t,e,n)},d(t){t&&b(e)}}}function Fe(l){let e;return{c(){e=c("Madison Wang")},m(t,n){k(t,e,n)},d(t){t&&b(e)}}}function Ne(l){let e;return{c(){e=c("Ben Ritter")},m(t,n){k(t,e,n)},d(t){t&&b(e)}}}function Qe(l){let e;return{c(){e=c("OpenStreetMap")},m(t,n){k(t,e,n)},d(t){t&&b(e)}}}function Ve(l){let e;return{c(){e=c("MapLibre")},m(t,n){k(t,e,n)},d(t){t&&b(e)}}}function Ye(l){let e;return{c(){e=c("GeoRust")},m(t,n){k(t,e,n)},d(t){t&&b(e)}}}function Ze(l){let e;return{c(){e=c("osm2streets")},m(t,n){k(t,e,n)},d(t){t&&b(e)}}}function xe(l){let e;return{c(){e=c("Material icons")},m(t,n){k(t,e,n)},d(t){t&&b(e)}}}function ye(l){let e;return{c(){e=c("start an issue on Github")},m(t,n){k(t,e,n)},d(t){t&&b(e)}}}function et(l){let e,t,n,s,o,i,_,$,w,P,f,M,h,u,B,S,V,z,Y,v,Z,W,x,L,y,R,ee,U,te,q,ne,le,D,se,G,ae,H,oe,re,ie,fe,K,ue,O,J;return s=new T({props:{href:"https://github.com/acteng/atip",$$slots:{default:[Ke]},$$scope:{ctx:l}}}),w=new T({props:{href:"https://www.turing.ac.uk/people/researchers/dustin-carlino",$$slots:{default:[Oe]},$$scope:{ctx:l}}}),u=new T({props:{href:"https://www.linkedin.com/in/madison-wang-841977bb/",$$slots:{default:[Fe]},$$scope:{ctx:l}}}),S=new T({props:{href:"https://github.com/BudgieInWA",$$slots:{default:[Ne]},$$scope:{ctx:l}}}),W=new T({props:{href:"https://www.openstreetmap.org/about",$$slots:{default:[Qe]},$$scope:{ctx:l}}}),L=new T({props:{href:"https://maplibre.org/",$$slots:{default:[Ve]},$$scope:{ctx:l}}}),R=new T({props:{href:"https://georust.org/",$$slots:{default:[Ye]},$$scope:{ctx:l}}}),U=new T({props:{href:"https://github.com/a-b-street/osm2streets",$$slots:{default:[Ze]},$$scope:{ctx:l}}}),q=new T({props:{href:"https://material.io/resources/icons/",$$slots:{default:[xe]},$$scope:{ctx:l}}}),G=new T({props:{href:"https://github.com/acteng/atip/issues/new",$$slots:{default:[ye]},$$scope:{ctx:l}}}),{c(){e=g("div"),t=g("p"),n=c(`ATIP v2 is an - `),C(s.$$.fragment),o=c(" supported by Active Travel England and developed by:"),i=E(),_=g("ul"),$=g("li"),C(w.$$.fragment),P=c(": lead developer, from The Alan Turing Institute"),f=E(),M=g("li"),h=c(`With UX help from - `),C(u.$$.fragment),B=c(` and CSS help from - `),C(S.$$.fragment),V=E(),z=g("li"),z.textContent=`With great thanks to ATIP's various users for feedback, testing, and - ideas`,Y=E(),v=g("p"),Z=c(`ATIP builds on - `),C(W.$$.fragment),x=c(` - contributors, - `),C(L.$$.fragment),y=c(`, - `),C(R.$$.fragment),ee=c(`, - `),C(U.$$.fragment),te=c(`, - `),C(q.$$.fragment),ne=c(", and other open source projects."),le=E(),D=g("p"),se=c("We want your feedback about ATIP! Please "),C(G.$$.fragment),ae=c(` - or email - `),H=g("a"),H.textContent="dcarlino@turing.ac.uk",oe=c("."),re=E(),ie=g("hr"),fe=E(),K=g("h2"),K.textContent="Recent changes",ue=E(),O=g("ul"),O.innerHTML=`
  • v2 launched on 2 June 2023. Changes: a complete UI rewrite, new draw - tools, drawing areas snapped to roads, splitting routes, multiple data schemas, - speed limit layer, lane visualization layer
  • v1 launched in March 2023
  • `,j(H,"href","mailto: dcarlino@turing.ac.uk"),j(e,"class","govuk-prose")},m(r,p){k(r,e,p),a(e,t),a(t,n),A(s,t,null),a(t,o),a(e,i),a(e,_),a(_,$),A(w,$,null),a($,P),a(_,f),a(_,M),a(M,h),A(u,M,null),a(M,B),A(S,M,null),a(_,V),a(_,z),a(e,Y),a(e,v),a(v,Z),A(W,v,null),a(v,x),A(L,v,null),a(v,y),A(R,v,null),a(v,ee),A(U,v,null),a(v,te),A(q,v,null),a(v,ne),a(e,le),a(e,D),a(D,se),A(G,D,null),a(D,ae),a(D,H),a(D,oe),a(e,re),a(e,ie),a(e,fe),a(e,K),a(e,ue),a(e,O),J=!0},p(r,p){const ce={};p&4&&(ce.$$scope={dirty:p,ctx:r}),s.$set(ce);const $e={};p&4&&($e.$$scope={dirty:p,ctx:r}),w.$set($e);const pe={};p&4&&(pe.$$scope={dirty:p,ctx:r}),u.$set(pe);const _e={};p&4&&(_e.$$scope={dirty:p,ctx:r}),S.$set(_e);const ge={};p&4&&(ge.$$scope={dirty:p,ctx:r}),W.$set(ge);const me={};p&4&&(me.$$scope={dirty:p,ctx:r}),L.$set(me);const de={};p&4&&(de.$$scope={dirty:p,ctx:r}),R.$set(de);const he={};p&4&&(he.$$scope={dirty:p,ctx:r}),U.$set(he);const ke={};p&4&&(ke.$$scope={dirty:p,ctx:r}),q.$set(ke);const be={};p&4&&(be.$$scope={dirty:p,ctx:r}),G.$set(be)},i(r){J||(m(s.$$.fragment,r),m(w.$$.fragment,r),m(u.$$.fragment,r),m(S.$$.fragment,r),m(W.$$.fragment,r),m(L.$$.fragment,r),m(R.$$.fragment,r),m(U.$$.fragment,r),m(q.$$.fragment,r),m(G.$$.fragment,r),J=!0)},o(r){d(s.$$.fragment,r),d(w.$$.fragment,r),d(u.$$.fragment,r),d(S.$$.fragment,r),d(W.$$.fragment,r),d(L.$$.fragment,r),d(R.$$.fragment,r),d(U.$$.fragment,r),d(q.$$.fragment,r),d(G.$$.fragment,r),J=!1},d(r){r&&b(e),I(s),I(w),I(u),I(S),I(W),I(L),I(R),I(U),I(q),I(G)}}}function tt(l){let e,t,n;function s(i){l[1](i)}let o={title:"About the Active Travel Infrastructure Platform",$$slots:{default:[et]},$$scope:{ctx:l}};return l[0]!==void 0&&(o.open=l[0]),e=new ze({props:o}),Le.push(()=>Re(e,"open",s)),{c(){C(e.$$.fragment)},m(i,_){A(e,i,_),n=!0},p(i,[_]){const $={};_&4&&($.$$scope={dirty:_,ctx:i}),!t&&_&1&&(t=!0,$.open=i[0],Ue(()=>t=!1)),e.$set($)},i(i){n||(m(e.$$.fragment,i),n=!0)},o(i){d(e.$$.fragment,i),n=!1},d(i){I(e,i)}}}function nt(l,e,t){let{open:n}=e;function s(o){n=o,t(0,n)}return l.$$set=o=>{"open"in o&&t(0,n=o.open)},[n,s]}class at extends F{constructor(e){super(),N(this,e,nt,tt,Q,{open:0})}}export{at as A,ze as M,st as a}; diff --git a/browse_dropdown_filters/assets/About-ac64a19d.css b/browse_dropdown_filters/assets/About-ac64a19d.css deleted file mode 100644 index 2db1d7153..000000000 --- a/browse_dropdown_filters/assets/About-ac64a19d.css +++ /dev/null @@ -1 +0,0 @@ -.background.svelte-stcgp5{position:fixed;z-index:10;left:0;top:0;width:100%;height:100%;background-color:#00000080;display:block}.content.svelte-stcgp5{background:white;padding:30px;border:1px solid black}.centered-fullscreen.svelte-stcgp5{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);overflow:scroll}.open.svelte-stcgp5{display:block}.closed.svelte-stcgp5{display:none} diff --git a/browse_dropdown_filters/assets/ZoomOutMap-96dffba9.js b/browse_dropdown_filters/assets/ZoomOutMap-96dffba9.js deleted file mode 100644 index 931f99189..000000000 --- a/browse_dropdown_filters/assets/ZoomOutMap-96dffba9.js +++ /dev/null @@ -1,2 +0,0 @@ -import{S as j,i as T,s as B,e as d,p as C,A as J,at as oe,r as _,d as b,v as p,au as A,l as Z,x as O,k as v,B as ae,as as ie,X as re,c as R,q as $,aF as H,u as q,g as F,f as G,t as I,j as D,Q as N,T as ce,W as U,V as K,U as ue,_ as fe,Z as de,Y as Q,w as pe,M as P,a0 as ee,H as te,I as se,K as ne,aj as M,ak as me,al as _e,aG as ge,L as be,D as ve,C as ye,ar as he,N as we}from"./maplibre_helpers-5d84afaa.js";function ke(n){let e,l,t,s,o,a,c;return{c(){e=d("div"),l=C(`Basemap: - `),t=d("select"),s=d("option"),s.textContent="Streets",o=d("option"),o.textContent="Satellite",s.__value="streets",J(s,s.__value),o.__value="hybrid",J(o,o.__value),n[0]===void 0&&oe(()=>n[2].call(t)),_(e,"class","svelte-1tbnm6i")},m(f,i){b(f,e,i),p(e,l),p(e,t),p(t,s),p(t,o),A(t,n[0],!0),a||(c=[Z(t,"change",n[2]),Z(t,"change",n[1])],a=!0)},p(f,[i]){i&1&&A(t,f[0])},i:O,o:O,d(f){f&&v(e),a=!1,ae(c)}}}function Se(n,e,l){let{style:t}=e;function s(){let a=new URLSearchParams(window.location.search);a.set("style",t);let c=`${window.location.pathname}?${a.toString()}${window.location.hash}`;window.location.href=c}function o(){t=ie(this),l(0,t)}return n.$$set=a=>{"style"in a&&l(0,t=a.style)},[t,s,o]}class xe extends j{constructor(e){super(),T(this,e,Se,ke,B,{style:0})}}const E=[];function L(n,e=O){let l;const t=new Set;function s(c){if(B(n,c)&&(n=c,l)){const f=!E.length;for(const i of t)i[1](),E.push(i,n);if(f){for(let i=0;i{t.delete(i),t.size===0&&l&&(l(),l=null)}}return{set:s,update:o,subscribe:a}}function Ce(n){return n=="google"||n=="bing"}function et(n){return{v1:"Scheme Design",v2:"Experimental Scheme Design",planning:"Development Planning",criticals:"Critical Issues",atf4:"ATF4 Scheme"}[n]}const V=L(null),tt=L(null),le=L(re()),Le=L(null),$e=L(null),Ie=L(null),Be=L(null),Me=L(Oe());Me.subscribe(n=>window.localStorage.setItem("userSettings",JSON.stringify(n)));const st=L("edit-attribute"),nt=L(!1);function lt(n){let e=new Set;for(let t of n.features)e.add(t.id);let l=e.size+1;for(;e.has(l);)l++;return l}function ot(n){console.log(`Deleting intervention ${n}`),le.update(e=>(e.features=e.features.filter(l=>l.id!=n),e)),Le.set(null),$e.set(null),Ie.set(null),Be.set(null)}function Oe(){let n={streetViewImagery:"google",avoidDoublingBack:!1};try{let e=JSON.parse(window.localStorage.getItem("userSettings")||"{}");Ce(e.streetViewImagery)&&(n.streetViewImagery=e.streetViewImagery),typeof e.avoidDoublingBack=="boolean"&&(n.avoidDoublingBack=e.avoidDoublingBack)}catch(e){console.log(`Couldn't parse userSettings from local storage: ${e}`)}return n}const De=n=>({}),X=n=>({}),je=n=>({}),Y=n=>({});function Te(n){let e,l,t,s,o,a,c,f,i,r,y;const h=n[3].sidebar,m=R(h,n,n[2],Y),S=n[3].main,w=R(S,n,n[2],X);return{c(){e=d("div"),l=d("aside"),t=d("div"),m&&m.c(),s=$(),o=d("button"),o.textContent="→",c=$(),f=d("main"),w&&w.c(),_(t,"class","sidebar-content content-container svelte-ect12w"),_(o,"type","button"),_(o,"class","sidebar-toggle rounded-rect svelte-ect12w"),_(l,"class",a=H(n[0]?"":"collapsed")+" svelte-ect12w"),_(f,"class","svelte-ect12w"),_(e,"class","overall-layout svelte-ect12w")},m(u,g){b(u,e,g),p(e,l),p(l,t),m&&m.m(t,null),p(l,s),p(l,o),p(e,c),p(e,f),w&&w.m(f,null),i=!0,r||(y=Z(o,"click",n[1]),r=!0)},p(u,[g]){m&&m.p&&(!i||g&4)&&q(m,h,u,u[2],i?G(h,u[2],g,je):F(u[2]),Y),(!i||g&1&&a!==(a=H(u[0]?"":"collapsed")+" svelte-ect12w"))&&_(l,"class",a),w&&w.p&&(!i||g&4)&&q(w,S,u,u[2],i?G(S,u[2],g,De):F(u[2]),X)},i(u){i||(I(m,u),I(w,u),i=!0)},o(u){D(m,u),D(w,u),i=!1},d(u){u&&v(e),m&&m.d(u),w&&w.d(u),r=!1,y()}}}function ze(n,e,l){let{$$slots:t={},$$scope:s}=e,o=!0;function a(){l(0,o=!o)}return n.$$set=c=>{"$$scope"in c&&l(2,s=c.$$scope)},[o,a,s,t]}class at extends j{constructor(e){super(),T(this,e,ze,Te,B,{})}}const k={area:"#D94324",route:"#555F5E",crossing:"#4daf4a",other:"#984ea3",preapp:"#e41a1c",outline:"#377eb8","reserved matters":"#4daf4a","local plan":"#984ea3",hovering:"black",lineEndpointColor:"black"},Ee=10,W=10;let z="interventions";function Pe(n,e,l){let t,s;N(n,V,r=>l(1,t=r)),N(n,le,r=>l(2,s=r));let{schema:o}=e;ce(t,z,s);const a=["match",["get","intervention_type"],"area",k.area,"route",k.route,"crossing",k.crossing,"other",k.other,"white"],c=["match",["get","reference_type",["get","planning"]],"preapp",k.preapp,"outline",k.outline,"reserved matters",k["reserved matters"],"local plan",k["local plan"],"white"],f=["!=","hide_while_editing",!0];return U(t,{id:"interventions-points",source:z,filter:["all",fe,f,["!=","endpoint",!0]],color:a,radius:Ee}),K(t,{id:"interventions-lines",source:z,filter:["all",de,f],color:a,width:W}),U(t,{id:"interventions-lines-endpoints",source:z,filter:["==","endpoint",!0],radius:.5*W,opacity:0,strokeColor:k.lineEndpointColor,strokeWidth:2}),ue(t,{id:"interventions-polygons",source:z,filter:["all",Q,f],color:o=="planning"?c:a,opacity:.2}),K(t,{id:"interventions-polygon-outlines",source:z,filter:["all",Q,f],color:o=="planning"?c:a,opacity:.5,width:.7*W}),n.$$set=r=>{"schema"in r&&l(0,o=r.schema)},n.$$.update=()=>{if(n.$$.dirty&6){let r=JSON.parse(JSON.stringify(s)),y=[];for(let h of r.features)if(h.geometry.type=="LineString"&&!h.properties.hide_while_editing)for(let m of[h.geometry.coordinates[0],h.geometry.coordinates[h.geometry.coordinates.length-1]])y.push({type:"Feature",properties:{endpoint:!0},geometry:{type:"Point",coordinates:m}});r.features=r.features.concat(y),t.getSource(z).setData(r)}},[o,t,s]}class it extends j{constructor(e){super(),T(this,e,Pe,null,B,{schema:0})}}function Re(n){let e,l,t,s,o,a,c;const f=n[3].default,i=R(f,n,n[2],null);return{c(){e=d("details"),l=d("summary"),t=d("span"),s=C(n[0]),o=$(),a=d("div"),i&&i.c(),_(t,"class","govuk-details__summary-text"),_(l,"class","govuk-details__summary"),_(a,"class","govuk-details__text"),e.open=n[1],_(e,"class","govuk-details"),_(e,"data-module","govuk-details")},m(r,y){b(r,e,y),p(e,l),p(l,t),p(t,s),p(e,o),p(e,a),i&&i.m(a,null),c=!0},p(r,[y]){(!c||y&1)&&pe(s,r[0]),i&&i.p&&(!c||y&4)&&q(i,f,r,r[2],c?G(f,r[2],y,null):F(r[2]),null),(!c||y&2)&&(e.open=r[1])},i(r){c||(I(i,r),c=!0)},o(r){D(i,r),c=!1},d(r){r&&v(e),i&&i.d(r)}}}function qe(n,e,l){let{$$slots:t={},$$scope:s}=e,{label:o}=e,{open:a=!1}=e;return n.$$set=c=>{"label"in c&&l(0,o=c.label),"open"in c&&l(1,a=c.open),"$$scope"in c&&l(2,s=c.$$scope)},[o,a,s,t]}class Fe extends j{constructor(e){super(),T(this,e,qe,Re,B,{label:0,open:1})}}function Ge(n,e,l){let t;N(n,V,i=>l(2,t=i));let{layers:s}=e,{contents:o}=e,a=new P.Popup({closeButton:!1,closeOnClick:!1,maxWidth:"none"});t.on("mousemove",c),t.on("mouseout",f),ee(()=>{t.off("mousemove",c),t.off("mouseout",f),a.remove()});function c(i){if(!s.every(y=>t.getLayer(y))){a.remove();return}let r=t.queryRenderedFeatures(i.point,{layers:s});r.length>0?a.setLngLat(i.lngLat).setHTML(o(r[0].properties)).addTo(t):a.remove()}function f(){a.remove()}return n.$$set=i=>{"layers"in i&&l(0,s=i.layers),"contents"in i&&l(1,o=i.contents)},[s,o]}class rt extends j{constructor(e){super(),T(this,e,Ge,null,B,{layers:0,contents:1})}}function Ne(n){let e,l,t,s,o,a,c,f,i,r,y,h,m,S,w;return{c(){e=d("li"),l=d("span"),t=C("Areas"),s=$(),o=d("li"),a=d("span"),c=C("Routes"),f=$(),i=d("li"),r=d("span"),y=C("Crossings"),h=$(),m=d("li"),S=d("span"),w=C("Other"),_(l,"class","svelte-l42ea0"),M(l,"background",k.area),_(a,"class","svelte-l42ea0"),M(a,"background",k.route),_(r,"class","svelte-l42ea0"),M(r,"background",k.crossing),_(S,"class","svelte-l42ea0"),M(S,"background",k.other)},m(u,g){b(u,e,g),p(e,l),p(e,t),b(u,s,g),b(u,o,g),p(o,a),p(o,c),b(u,f,g),b(u,i,g),p(i,r),p(i,y),b(u,h,g),b(u,m,g),p(m,S),p(m,w)},p:O,d(u){u&&(v(e),v(s),v(o),v(f),v(i),v(h),v(m))}}}function Ve(n){let e,l,t,s,o,a,c,f,i,r,y,h,m,S,w;return{c(){e=d("li"),l=d("span"),t=C("Preapp"),s=$(),o=d("li"),a=d("span"),c=C("Outline"),f=$(),i=d("li"),r=d("span"),y=C("Reserved matters"),h=$(),m=d("li"),S=d("span"),w=C("Local plan"),_(l,"class","svelte-l42ea0"),M(l,"background",k.preapp),_(a,"class","svelte-l42ea0"),M(a,"background",k.outline),_(r,"class","svelte-l42ea0"),M(r,"background",k["reserved matters"]),_(S,"class","svelte-l42ea0"),M(S,"background",k["local plan"])},m(u,g){b(u,e,g),p(e,l),p(e,t),b(u,s,g),b(u,o,g),p(o,a),p(o,c),b(u,f,g),b(u,i,g),p(i,r),p(i,y),b(u,h,g),b(u,m,g),p(m,S),p(m,w)},p:O,d(u){u&&(v(e),v(s),v(o),v(f),v(i),v(h),v(m))}}}function We(n){let e;function l(o,a){return o[0]=="planning"?Ve:Ne}let t=l(n),s=t(n);return{c(){e=d("ul"),s.c()},m(o,a){b(o,e,a),s.m(e,null)},p(o,a){t===(t=l(o))&&s?s.p(o,a):(s.d(1),s=t(o),s&&(s.c(),s.m(e,null)))},d(o){o&&v(e),s.d()}}}function Ze(n){let e,l,t;return l=new Fe({props:{label:"Objects",open:!0,$$slots:{default:[We]},$$scope:{ctx:n}}}),{c(){e=d("div"),te(l.$$.fragment),_(e,"class","svelte-l42ea0")},m(s,o){b(s,e,o),se(l,e,null),t=!0},p(s,[o]){const a={};o&3&&(a.$$scope={dirty:o,ctx:s}),l.$set(a)},i(s){t||(I(l.$$.fragment,s),t=!0)},o(s){D(l.$$.fragment,s),t=!1},d(s){s&&v(e),ne(l)}}}function Je(n,e,l){let{schema:t}=e;return n.$$set=s=>{"schema"in s&&l(0,t=s.schema)},[t]}class ct extends j{constructor(e){super(),T(this,e,Je,Ze,B,{schema:0})}}function x(n){let e;const l=n[4].default,t=R(l,n,n[3],null);return{c(){t&&t.c()},m(s,o){t&&t.m(s,o),e=!0},p(s,o){t&&t.p&&(!e||o&8)&&q(t,l,s,s[3],e?G(l,s[3],o,null):F(s[3]),null)},i(s){e||(I(t,s),e=!0)},o(s){D(t,s),e=!1},d(s){t&&t.d(s)}}}function Ae(n){let e,l,t=n[1]&&x(n);return{c(){e=d("div"),t&&t.c(),_(e,"class","map svelte-12dpf1u")},m(s,o){b(s,e,o),t&&t.m(e,null),n[5](e),l=!0},p(s,[o]){s[1]?t?(t.p(s,o),o&2&&I(t,1)):(t=x(s),t.c(),I(t,1),t.m(e,null)):t&&(me(),D(t,1,1,()=>{t=null}),_e())},i(s){l||(I(t),l=!0)},o(s){D(t),l=!1},d(s){s&&v(e),t&&t.d(),n[5](null)}}}function He(n,e,l){let{$$slots:t={},$$scope:s}=e,{style:o}=e,a,c,f=!1;ge("setCamera",!window.location.hash),be(()=>{a=new P.Map({container:c,style:`https://api.maptiler.com/maps/${o}/style.json?key=MZEJTanw3WpxRvt7qDfo`,hash:!0}),a.addControl(new P.ScaleControl({})),a.addControl(new P.NavigationControl({visualizePitch:!0}),"bottom-right"),a.on("load",()=>{l(1,f=!0),V.set(a)}),new ResizeObserver(()=>{a.resize()}).observe(c)}),ee(()=>{a.remove()});function i(r){ve[r?"unshift":"push"](()=>{c=r,l(0,c)})}return n.$$set=r=>{"style"in r&&l(2,o=r.style),"$$scope"in r&&l(3,s=r.$$scope)},[c,f,o,s,t,i]}class ut extends j{constructor(e){super(),T(this,e,He,Ae,B,{style:2})}}const Ue="/atip/browse_dropdown_filters/assets/zoom_out_map-b2e1091a.svg";function Ke(n){let e,l;return{c(){e=d("img"),he(e.src,l=Ue)||_(e,"src",l),_(e,"alt","Zoom to show entire boundary")},m(t,s){b(t,e,s)},p:O,d(t){t&&v(e)}}}function Qe(n){let e,l;return e=new ye({props:{title:"Zoom to show entire boundary",$$slots:{default:[Ke]},$$scope:{ctx:n}}}),e.$on("click",n[0]),{c(){te(e.$$.fragment)},m(t,s){se(e,t,s),l=!0},p(t,[s]){const o={};s&8&&(o.$$scope={dirty:s,ctx:t}),e.$set(o)},i(t){l||(I(e.$$.fragment,t),l=!0)},o(t){D(e.$$.fragment,t),l=!1},d(t){ne(e,t)}}}function Xe(n,e,l){let t;N(n,V,a=>l(2,t=a));let{boundaryGeojson:s}=e;function o(){t.fitBounds(we(s),{padding:20,animate:!0,duration:500})}return n.$$set=a=>{"boundaryGeojson"in a&&l(1,s=a.boundaryGeojson)},[o,s]}class ft extends j{constructor(e){super(),T(this,e,Xe,Qe,B,{boundaryGeojson:1})}}export{xe as B,Fe as C,it as I,at as L,rt as M,ft as Z,$e as a,Ee as b,k as c,st as d,ot as e,Le as f,le as g,et as h,nt as i,ut as j,ct as k,W as l,V as m,lt as n,Be as o,tt as r,Ie as s,Me as u}; diff --git a/browse_dropdown_filters/assets/ZoomOutMap-b28bd1eb.css b/browse_dropdown_filters/assets/ZoomOutMap-b28bd1eb.css deleted file mode 100644 index fcd11e65c..000000000 --- a/browse_dropdown_filters/assets/ZoomOutMap-b28bd1eb.css +++ /dev/null @@ -1 +0,0 @@ -div.svelte-1tbnm6i{position:absolute;left:10px;bottom:50px;background-color:#fff;padding:16px}.svelte-ect12w.svelte-ect12w{box-sizing:border-box}.overall-layout.svelte-ect12w.svelte-ect12w{margin:0;padding:0;position:absolute;top:0;left:0;right:0;bottom:0;overflow:hidden;display:flex;flex-flow:row nowrap}aside.svelte-ect12w.svelte-ect12w{position:relative;flex:0;min-width:25rem;max-width:25rem}.sidebar-content.svelte-ect12w.svelte-ect12w{width:25em;min-height:100%;max-height:100%;overflow-y:auto}aside.collapsed.svelte-ect12w.svelte-ect12w{min-width:0px;max-width:0px}main.svelte-ect12w.svelte-ect12w{flex-grow:1;display:flex;flex-flow:column nowrap}.content-container.svelte-ect12w.svelte-ect12w{padding:1rem}.rounded-rect.svelte-ect12w.svelte-ect12w{background:white;border:none;border-radius:10px;box-shadow:0 0 50px -25px #000}.sidebar-toggle.svelte-ect12w.svelte-ect12w{position:absolute;z-index:1;top:1rem;right:-2rem;width:2.5rem;height:2.5rem;overflow:visible;justify-content:center;align-items:center;font-family:Arial,Helvetica,sans-serif;font-size:1.8rem;user-select:none;transition:transform .2s;transform:rotate(180deg)}.sidebar-toggle.svelte-ect12w.svelte-ect12w:hover{color:#0aa1cf;cursor:pointer}.collapsed.svelte-ect12w .sidebar-toggle.svelte-ect12w{transform:rotate(0)}div.svelte-l42ea0{position:absolute;left:10px;top:60px;background-color:#fff;padding:16px}span.svelte-l42ea0{display:block;float:left;height:16px;width:30px;margin-right:5px;border:1px solid #999}.map.svelte-12dpf1u{position:relative;flex-grow:1;min-height:100vh} diff --git a/browse_dropdown_filters/assets/all-b6f1cdfd.js b/browse_dropdown_filters/assets/all-b6f1cdfd.js deleted file mode 100644 index 7db1c9507..000000000 --- a/browse_dropdown_filters/assets/all-b6f1cdfd.js +++ /dev/null @@ -1 +0,0 @@ -function w(t,e){if(window.NodeList.prototype.forEach)return t.forEach(e);for(var n=0;n1&&o.shift();var l=o.join(".");n[l]=t[r]}}return n}(function(t){var e="defineProperty"in Object&&function(){try{var n={};return Object.defineProperty(n,"test",{value:42}),!0}catch{return!1}}();e||function(n){var r=Object.prototype.hasOwnProperty("__defineGetter__"),o="Getters & setters cannot be defined on this javascript engine",l="A property cannot both have accessors and be writable or have a value";Object.defineProperty=function(i,u,a){if(n&&(i===window||i===document||i===Element.prototype||i instanceof Element))return n(i,u,a);if(i===null||!(i instanceof Object||typeof i=="object"))throw new TypeError("Object.defineProperty called on non-object");if(!(a instanceof Object))throw new TypeError("Property description must be an object");var c=String(u),h="value"in a||"writable"in a,p="get"in a&&typeof a.get,m="set"in a&&typeof a.set;if(p){if(p!=="function")throw new TypeError("Getter must be a function");if(!r)throw new TypeError(o);if(h)throw new TypeError(l);Object.__defineGetter__.call(i,c,a.get)}else i[c]=a.value;if(m){if(m!=="function")throw new TypeError("Setter must be a function");if(!r)throw new TypeError(o);if(h)throw new TypeError(l);Object.__defineSetter__.call(i,c,a.set)}return"value"in a&&(i[c]=a.value),i}}(Object.defineProperty)}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{});(function(t){var e="Document"in this;e||typeof WorkerGlobalScope>"u"&&typeof importScripts!="function"&&(this.HTMLDocument?this.Document=this.HTMLDocument:(this.Document=this.HTMLDocument=document.constructor=new Function("return function Document() {}")(),this.Document.prototype=document))}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{});(function(t){var e="Element"in this&&"HTMLElement"in this;e||function(){if(window.Element&&!window.HTMLElement){window.HTMLElement=window.Element;return}window.Element=window.HTMLElement=new Function("return function Element() {}")();var n=document.appendChild(document.createElement("body")),r=n.appendChild(document.createElement("iframe")),o=r.contentWindow.document,l=Element.prototype=o.appendChild(o.createElement("*")),s={},i=function(m,d){var E=m.childNodes||[],y=-1,f,g,v;if(m.nodeType===1&&m.constructor!==Element){m.constructor=Element;for(f in s)g=s[f],m[f]=g}for(;v=d&&E[++y];)i(v,d);return m},u=document.getElementsByTagName("*"),a=document.createElement,c,h=100;l.attachEvent("onpropertychange",function(m){for(var d=m.propertyName,E=!s.hasOwnProperty(d),y=l[d],f=s[d],g=-1,v;v=u[++g];)v.nodeType===1&&(E||v[d]===f)&&(v[d]=y);s[d]=y}),l.constructor=Element,l.hasAttribute||(l.hasAttribute=function(d){return this.getAttribute(d)!==null});function p(){return h--||clearTimeout(c),document.body&&!document.body.prototype&&/(complete|interactive)/.test(document.readyState)?(i(document,!0),c&&document.body.prototype&&clearTimeout(c),!!document.body.prototype):!1}p()||(document.onreadystatechange=p,c=setInterval(p,25)),document.createElement=function(d){var E=a(String(d).toLowerCase());return i(E)},document.removeChild(n)}()}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{});(function(t){var e=function(){if(!document.documentElement.dataset)return!1;var n=document.createElement("div");return n.setAttribute("data-a-b","c"),n.dataset&&n.dataset.aB=="c"}();e||Object.defineProperty(Element.prototype,"dataset",{get:function(){for(var n=this,r=this.attributes,o={},l=0;l0&&isFinite(Number(e))?Number(e):t}function I(t){var e={};for(var n in t)e[n]=z(t[n]);return e}function C(t,e){this.translations=t||{},this.locale=e&&e.locale||document.documentElement.lang||"en"}C.prototype.t=function(t,e){if(!t)throw new Error("i18n: lookup key missing");e&&typeof e.count=="number"&&(t=t+"."+this.getPluralSuffix(t,e.count));var n=this.translations[t];if(typeof n=="string")if(n.match(/%{(.\S+)}/)){if(!e)throw new Error("i18n: cannot replace placeholders in string if no option data provided");return this.replacePlaceholders(n,e)}else return n;else return t};C.prototype.replacePlaceholders=function(t,e){var n;return this.hasIntlNumberFormatSupport()&&(n=new Intl.NumberFormat(this.locale)),t.replace(/%{(.\S+)}/g,function(r,o){if(Object.prototype.hasOwnProperty.call(e,o)){var l=e[o];return l===!1||typeof l!="number"&&typeof l!="string"?"":typeof l=="number"?n?n.format(l):l.toString():l}else throw new Error("i18n: no data found to replace "+r+" placeholder in string")})};C.prototype.hasIntlPluralRulesSupport=function(){return!!(window.Intl&&"PluralRules"in window.Intl&&Intl.PluralRules.supportedLocalesOf(this.locale).length)};C.prototype.hasIntlNumberFormatSupport=function(){return!!(window.Intl&&"NumberFormat"in window.Intl&&Intl.NumberFormat.supportedLocalesOf(this.locale).length)};C.prototype.getPluralSuffix=function(t,e){if(e=Number(e),!isFinite(e))return"other";var n;if(this.hasIntlPluralRulesSupport()?n=new Intl.PluralRules(this.locale).select(e):n=this.selectPluralFormUsingFallbackRules(e),t+"."+n in this.translations)return n;if(t+".other"in this.translations)return console&&"warn"in console&&console.warn('i18n: Missing plural form ".'+n+'" for "'+this.locale+'" locale. Falling back to ".other".'),"other";throw new Error('i18n: Plural form ".other" is required for "'+this.locale+'" locale')};C.prototype.selectPluralFormUsingFallbackRules=function(t){t=Math.abs(Math.floor(t));var e=this.getPluralRulesForLocale();return e?C.pluralRules[e](t):"other"};C.prototype.getPluralRulesForLocale=function(){var t=this.locale,e=t.split("-")[0];for(var n in C.pluralRulesMap)if(Object.prototype.hasOwnProperty.call(C.pluralRulesMap,n)){for(var r=C.pluralRulesMap[n],o=0;o=3&&t%100<=10?"few":t%100>=11&&t%100<=99?"many":"other"},chinese:function(){return"other"},french:function(t){return t===0||t===1?"one":"other"},german:function(t){return t===1?"one":"other"},irish:function(t){return t===1?"one":t===2?"two":t>=3&&t<=6?"few":t>=7&&t<=10?"many":"other"},russian:function(t){var e=t%100,n=e%10;return n===1&&e!==11?"one":n>=2&&n<=4&&!(e>=12&&e<=14)?"few":n===0||n>=5&&n<=9||e>=11&&e<=14?"many":"other"},scottish:function(t){return t===1||t===11?"one":t===2||t===12?"two":t>=3&&t<=10||t>=13&&t<=19?"few":"other"},spanish:function(t){return t===1?"one":t%1e6===0&&t!==0?"many":"other"},welsh:function(t){return t===0?"zero":t===1?"one":t===2?"two":t===3?"few":t===6?"many":"other"}};(function(t){var e="DOMTokenList"in this&&function(n){return"classList"in n?!n.classList.toggle("x",!1)&&!n.className:!0}(document.createElement("x"));e||function(n){var r="DOMTokenList"in n&&n.DOMTokenList;(!r||document.createElementNS&&document.createElementNS("http://www.w3.org/2000/svg","svg")&&!(document.createElementNS("http://www.w3.org/2000/svg","svg").classList instanceof DOMTokenList))&&(n.DOMTokenList=function(){var o=!0,l=function(i,u,a,c){Object.defineProperty?Object.defineProperty(i,u,{configurable:o===!1?!0:!!c,get:a}):i.__defineGetter__(u,a)};try{l({},"support")}catch{o=!1}var s=function(i,u){var a=this,c=[],h={},p=0,m=0,d=function(f){l(a,f,function(){return y(),c[f]},!1)},E=function(){if(p>=m)for(;m>>0,typeof i[u]=="object"?i[u].baseVal=c.join(" "):i[u]=c.join(" "),E())},a.remove=function(){y.apply(a,f=arguments);for(var f,g={},v=0,T=[];v>>0,typeof i[u]=="object"?i[u].baseVal=c.join(" "):i[u]=c.join(" "),E()},a.toggle=function(f,g){return y.apply(a,[f]),t!==g?g?(a.add(f),!0):(a.remove(f),!1):h[f]?(a.remove(f),!1):(a.add(f),!0)},a};return s}()),function(){var o=document.createElement("span");"classList"in o&&(o.classList.toggle("x",!1),o.classList.contains("x")&&(o.classList.constructor.prototype.toggle=function(s){var i=arguments[1];if(i===t){var u=!this.contains(s);return this[u?"add":"remove"](s),u}return i=!!i,this[i?"add":"remove"](s),i}))}(),function(){var o=document.createElement("span");if("classList"in o&&(o.classList.add("a","b"),!o.classList.contains("b"))){var l=o.classList.constructor.prototype.add;o.classList.constructor.prototype.add=function(){for(var s=arguments,i=arguments.length,u=0;u"u"&&typeof importScripts!="function"&&function(n){n.constructor?n.Window=n.constructor:(n.Window=n.constructor=new Function("return function Window() {}")()).prototype=this}(this)}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{});(function(t){var e=function(n){if(!("Event"in n))return!1;if(typeof n.Event=="function")return!0;try{return new Event("click"),!0}catch{return!1}}(this);e||function(){var n={click:1,dblclick:1,keyup:1,keypress:1,keydown:1,mousedown:1,mouseup:1,mousemove:1,mouseover:1,mouseenter:1,mouseleave:1,mouseout:1,storage:1,storagecommit:1,textinput:1};if(typeof document>"u"||typeof window>"u")return;function r(l,s){for(var i=-1,u=l.length;++i=this.lastInputTimestamp)&&this.updateIfValueChanged()}.bind(this),1e3)};L.prototype.handleBlur=function(){clearInterval(this.valueChecker)};L.prototype.updateIfValueChanged=function(){this.$textarea.value!==this.lastInputValue&&(this.lastInputValue=this.$textarea.value,this.updateCountMessage())};L.prototype.updateCountMessage=function(){this.updateVisibleCountMessage(),this.updateScreenReaderCountMessage()};L.prototype.updateVisibleCountMessage=function(){var t=this.$textarea,e=this.$visibleCountMessage,n=this.maxLength-this.count(t.value);this.isOverThreshold()?e.classList.remove("govuk-character-count__message--disabled"):e.classList.add("govuk-character-count__message--disabled"),n<0?(t.classList.add("govuk-textarea--error"),e.classList.remove("govuk-hint"),e.classList.add("govuk-error-message")):(t.classList.remove("govuk-textarea--error"),e.classList.remove("govuk-error-message"),e.classList.add("govuk-hint")),e.innerText=this.getCountMessage()};L.prototype.updateScreenReaderCountMessage=function(){var t=this.$screenReaderCountMessage;this.isOverThreshold()?t.removeAttribute("aria-hidden"):t.setAttribute("aria-hidden","true"),t.innerText=this.getCountMessage()};L.prototype.count=function(t){if("maxwords"in this.config&&this.config.maxwords){var e=t.match(/\S+/g)||[];return e.length}else return t.length};L.prototype.getCountMessage=function(){var t=this.maxLength-this.count(this.$textarea.value),e="maxwords"in this.config&&this.config.maxwords?"words":"characters";return this.formatCountMessage(t,e)};L.prototype.formatCountMessage=function(t,e){if(t===0)return this.i18n.t(e+"AtLimit");var n=t<0?"OverLimit":"UnderLimit";return this.i18n.t(e+n,{count:Math.abs(t)})};L.prototype.isOverThreshold=function(){if(!this.config.threshold)return!0;var t=this.$textarea,e=this.count(t.value),n=this.maxLength,r=n*this.config.threshold/100;return r<=e};function k(t){if(!(t instanceof HTMLElement))return this;var e=t.querySelectorAll('input[type="checkbox"]');if(!e.length)return this;this.$module=t,this.$inputs=e}k.prototype.init=function(){if(!(!this.$module||!this.$inputs)){var t=this.$module,e=this.$inputs;w(e,function(n){var r=n.getAttribute("data-aria-controls");!r||!document.getElementById(r)||(n.setAttribute("aria-controls",r),n.removeAttribute("data-aria-controls"))}),window.addEventListener("onpageshow"in window?"pageshow":"DOMContentLoaded",this.syncAllConditionalReveals.bind(this)),this.syncAllConditionalReveals(),t.addEventListener("click",this.handleClick.bind(this))}};k.prototype.syncAllConditionalReveals=function(){w(this.$inputs,this.syncConditionalRevealWithInputState.bind(this))};k.prototype.syncConditionalRevealWithInputState=function(t){var e=t.getAttribute("aria-controls");if(e){var n=document.getElementById(e);if(n&&n.classList.contains("govuk-checkboxes__conditional")){var r=t.checked;t.setAttribute("aria-expanded",r.toString()),n.classList.toggle("govuk-checkboxes__conditional--hidden",!r)}}};k.prototype.unCheckAllInputsExcept=function(t){var e=this,n=document.querySelectorAll('input[type="checkbox"][name="'+t.name+'"]');w(n,function(r){var o=t.form===r.form;o&&r!==t&&(r.checked=!1,e.syncConditionalRevealWithInputState(r))})};k.prototype.unCheckExclusiveInputs=function(t){var e=this,n=document.querySelectorAll('input[data-behaviour="exclusive"][type="checkbox"][name="'+t.name+'"]');w(n,function(r){var o=t.form===r.form;o&&(r.checked=!1,e.syncConditionalRevealWithInputState(r))})};k.prototype.handleClick=function(t){var e=t.target;if(!(!(e instanceof HTMLInputElement)||e.type!=="checkbox")){var n=e.getAttribute("aria-controls");if(n&&this.syncConditionalRevealWithInputState(e),!!e.checked){var r=e.getAttribute("data-behaviour")==="exclusive";r?this.unCheckAllInputsExcept(e):this.unCheckExclusiveInputs(e)}}};var nt=13,V=32;function O(t){if(!(t instanceof HTMLElement))return this;this.$module=t,this.$summary=null,this.$content=null}O.prototype.init=function(){if(this.$module){var t="HTMLDetailsElement"in window&&this.$module instanceof HTMLDetailsElement;t||this.polyfillDetails()}};O.prototype.polyfillDetails=function(){var t=this.$module,e=this.$summary=t.getElementsByTagName("summary").item(0),n=this.$content=t.getElementsByTagName("div").item(0);!e||!n||(n.id||(n.id="details-content-"+Y()),t.setAttribute("role","group"),e.setAttribute("role","button"),e.setAttribute("aria-controls",n.id),e.tabIndex=0,this.$module.hasAttribute("open")?e.setAttribute("aria-expanded","true"):(e.setAttribute("aria-expanded","false"),n.style.display="none"),this.polyfillHandleInputs(this.polyfillSetAttributes.bind(this)))};O.prototype.polyfillSetAttributes=function(){return this.$module.hasAttribute("open")?(this.$module.removeAttribute("open"),this.$summary.setAttribute("aria-expanded","false"),this.$content.style.display="none"):(this.$module.setAttribute("open","open"),this.$summary.setAttribute("aria-expanded","true"),this.$content.style.display=""),!0};O.prototype.polyfillHandleInputs=function(t){this.$summary.addEventListener("keypress",function(e){var n=e.target;(e.keyCode===nt||e.keyCode===V)&&n instanceof HTMLElement&&n.nodeName.toLowerCase()==="summary"&&(e.preventDefault(),n.click?n.click():t(e))}),this.$summary.addEventListener("keyup",function(e){var n=e.target;e.keyCode===V&&n instanceof HTMLElement&&n.nodeName.toLowerCase()==="summary"&&e.preventDefault()}),this.$summary.addEventListener("click",t)};function A(t,e){if(!(t instanceof HTMLElement))return this;this.$module=t;var n={disableAutoFocus:!1};this.config=_(n,e||{},I(t.dataset))}A.prototype.init=function(){if(this.$module){var t=this.$module;this.setFocus(),t.addEventListener("click",this.handleClick.bind(this))}};A.prototype.setFocus=function(){var t=this.$module;this.config.disableAutoFocus||(t.setAttribute("tabindex","-1"),t.addEventListener("blur",function(){t.removeAttribute("tabindex")}),t.focus())};A.prototype.handleClick=function(t){var e=t.target;this.focusTarget(e)&&t.preventDefault()};A.prototype.focusTarget=function(t){if(!(t instanceof HTMLAnchorElement))return!1;var e=this.getFragmentFromUrl(t.href);if(!e)return!1;var n=document.getElementById(e);if(!n)return!1;var r=this.getAssociatedLegendOrLabel(n);return r?(r.scrollIntoView(),n.focus({preventScroll:!0}),!0):!1};A.prototype.getFragmentFromUrl=function(t){if(t.indexOf("#")!==-1)return t.split("#").pop()};A.prototype.getAssociatedLegendOrLabel=function(t){var e=t.closest("fieldset");if(e){var n=e.getElementsByTagName("legend");if(n.length){var r=n[0];if(t instanceof HTMLInputElement&&(t.type==="checkbox"||t.type==="radio"))return r;var o=r.getBoundingClientRect().top,l=t.getBoundingClientRect();if(l.height&&window.innerHeight){var s=l.top+l.height;if(s-o0?this.$indicatorContainer.classList.add("govuk-exit-this-page__indicator--visible"):this.$indicatorContainer.classList.remove("govuk-exit-this-page__indicator--visible");var t=this.$indicatorContainer.querySelectorAll(".govuk-exit-this-page__indicator-light");w(t,function(e,n){e.classList.toggle("govuk-exit-this-page__indicator-light--on",n=3?(this.keypressCounter=0,this.keypressTimeoutId!==null&&(clearTimeout(this.keypressTimeoutId),this.keypressTimeoutId=null),this.exitPage()):this.keypressCounter===1?this.$updateSpan.innerText=this.i18n.t("pressTwoMoreTimes"):this.$updateSpan.innerText=this.i18n.t("pressOneMoreTime"),this.setKeypressTimer()):this.keypressTimeoutId!==null&&this.resetKeypressTimer(),this.lastKeyWasModified=t.shiftKey};x.prototype.setKeypressTimer=function(){clearTimeout(this.keypressTimeoutId),this.keypressTimeoutId=setTimeout(this.resetKeypressTimer.bind(this),this.timeoutTime)};x.prototype.resetKeypressTimer=function(){clearTimeout(this.keypressTimeoutId),this.keypressTimeoutId=null,this.keypressCounter=0,this.$updateSpan.innerText=this.i18n.t("timedOut"),this.timeoutMessageId=setTimeout(function(){this.$updateSpan.innerText=""}.bind(this),this.timeoutTime),this.updateIndicator()};x.prototype.resetPage=function(){document.body.classList.remove("govuk-exit-this-page-hide-content"),this.$overlay&&(this.$overlay.remove(),this.$overlay=null),this.$updateSpan.setAttribute("role","status"),this.$updateSpan.innerText="",this.updateIndicator(),this.keypressTimeoutId&&clearTimeout(this.keypressTimeoutId),this.timeoutMessageId&&clearTimeout(this.timeoutMessageId)};x.prototype.init=function(){this.buildIndicator(),this.initUpdateSpan(),this.initButtonClickHandler(),"govukFrontendExitThisPageKeypress"in document.body.dataset||(document.addEventListener("keyup",this.handleKeypress.bind(this),!0),document.body.dataset.govukFrontendExitThisPageKeypress="true"),window.addEventListener("onpageshow"in window?"pageshow":"DOMContentLoaded",this.resetPage.bind(this))};function F(t){if(!(t instanceof HTMLElement))return this;this.$module=t,this.$menuButton=t.querySelector(".govuk-js-header-toggle"),this.$menu=this.$menuButton&&t.querySelector("#"+this.$menuButton.getAttribute("aria-controls")),this.menuIsOpen=!1,this.mql=null}F.prototype.init=function(){!this.$module||!this.$menuButton||!this.$menu||("matchMedia"in window?(this.mql=window.matchMedia("(min-width: 48.0625em)"),"addEventListener"in this.mql?this.mql.addEventListener("change",this.syncState.bind(this)):this.mql.addListener(this.syncState.bind(this)),this.syncState(),this.$menuButton.addEventListener("click",this.handleMenuButtonClick.bind(this))):this.$menuButton.setAttribute("hidden",""))};F.prototype.syncState=function(){this.mql.matches?(this.$menu.removeAttribute("hidden"),this.$menuButton.setAttribute("hidden","")):(this.$menuButton.removeAttribute("hidden"),this.$menuButton.setAttribute("aria-expanded",this.menuIsOpen.toString()),this.menuIsOpen?this.$menu.removeAttribute("hidden"):this.$menu.setAttribute("hidden",""))};F.prototype.handleMenuButtonClick=function(){this.menuIsOpen=!this.menuIsOpen,this.syncState()};function W(t,e){if(!(t instanceof HTMLElement))return this;this.$module=t;var n={disableAutoFocus:!1};this.config=_(n,e||{},I(t.dataset))}W.prototype.init=function(){this.$module&&this.setFocus()};W.prototype.setFocus=function(){var t=this.$module;this.config.disableAutoFocus||t.getAttribute("role")==="alert"&&(t.getAttribute("tabindex")||(t.setAttribute("tabindex","-1"),t.addEventListener("blur",function(){t.removeAttribute("tabindex")})),t.focus())};function j(t){if(!(t instanceof HTMLElement))return this;var e=t.querySelectorAll('input[type="radio"]');if(!e.length)return this;this.$module=t,this.$inputs=e}j.prototype.init=function(){if(!(!this.$module||!this.$inputs)){var t=this.$module,e=this.$inputs;w(e,function(n){var r=n.getAttribute("data-aria-controls");!r||!document.getElementById(r)||(n.setAttribute("aria-controls",r),n.removeAttribute("data-aria-controls"))}),window.addEventListener("onpageshow"in window?"pageshow":"DOMContentLoaded",this.syncAllConditionalReveals.bind(this)),this.syncAllConditionalReveals(),t.addEventListener("click",this.handleClick.bind(this))}};j.prototype.syncAllConditionalReveals=function(){w(this.$inputs,this.syncConditionalRevealWithInputState.bind(this))};j.prototype.syncConditionalRevealWithInputState=function(t){var e=t.getAttribute("aria-controls");if(e){var n=document.getElementById(e);if(n&&n.classList.contains("govuk-radios__conditional")){var r=t.checked;t.setAttribute("aria-expanded",r.toString()),n.classList.toggle("govuk-radios__conditional--hidden",!r)}}};j.prototype.handleClick=function(t){var e=this,n=t.target;if(!(!(n instanceof HTMLInputElement)||n.type!=="radio")){var r=document.querySelectorAll('input[type="radio"][aria-controls]'),o=n.form,l=n.name;w(r,function(s){var i=s.form===o,u=s.name===l;u&&i&&e.syncConditionalRevealWithInputState(s)})}};function M(t){if(!(t instanceof HTMLAnchorElement))return this;this.$module=t,this.$linkedElement=null,this.linkedElementListener=!1}M.prototype.init=function(){if(this.$module){var t=this.getLinkedElement();t&&(this.$linkedElement=t,this.$module.addEventListener("click",this.focusLinkedElement.bind(this)))}};M.prototype.getLinkedElement=function(){var t=this.getFragmentFromUrl();return t?document.getElementById(t):null};M.prototype.focusLinkedElement=function(){var t=this.$linkedElement;t.getAttribute("tabindex")||(t.setAttribute("tabindex","-1"),t.classList.add("govuk-skip-link-focused-element"),this.linkedElementListener||(this.$linkedElement.addEventListener("blur",this.removeFocusProperties.bind(this)),this.linkedElementListener=!0)),t.focus()};M.prototype.removeFocusProperties=function(){this.$linkedElement.removeAttribute("tabindex"),this.$linkedElement.classList.remove("govuk-skip-link-focused-element")};M.prototype.getFragmentFromUrl=function(){if(this.$module.hash)return this.$module.hash.split("#").pop()};(function(t){var e="document"in this&&"nextElementSibling"in document.documentElement;e||Object.defineProperty(Element.prototype,"nextElementSibling",{get:function(){for(var n=this.nextSibling;n&&n.nodeType!==1;)n=n.nextSibling;return n}})}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{});(function(t){var e="document"in this&&"previousElementSibling"in document.documentElement;e||Object.defineProperty(Element.prototype,"previousElementSibling",{get:function(){for(var n=this.previousSibling;n&&n.nodeType!==1;)n=n.previousSibling;return n}})}).call(typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||{});function b(t){if(!(t instanceof HTMLElement))return this;var e=t.querySelectorAll("a.govuk-tabs__tab");if(!e.length)return this;this.$module=t,this.$tabs=e,this.keys={left:37,right:39,up:38,down:40},this.jsHiddenClass="govuk-tabs__panel--hidden",this.boundTabClick=this.onTabClick.bind(this),this.boundTabKeydown=this.onTabKeydown.bind(this),this.boundOnHashChange=this.onHashChange.bind(this),this.changingHash=!1}b.prototype.init=function(){!this.$module||!this.$tabs||(typeof window.matchMedia=="function"?this.setupResponsiveChecks():this.setup())};b.prototype.setupResponsiveChecks=function(){this.mql=window.matchMedia("(min-width: 40.0625em)"),this.mql.addListener(this.checkMode.bind(this)),this.checkMode()};b.prototype.checkMode=function(){this.mql.matches?this.setup():this.teardown()};b.prototype.setup=function(){var t=this,e=this.$module,n=this.$tabs,r=e.querySelector(".govuk-tabs__list"),o=e.querySelectorAll(".govuk-tabs__list-item");if(!(!n||!r||!o)){r.setAttribute("role","tablist"),w(o,function(s){s.setAttribute("role","presentation")}),w(n,function(s){t.setAttributes(s),s.addEventListener("click",t.boundTabClick,!0),s.addEventListener("keydown",t.boundTabKeydown,!0),t.hideTab(s)});var l=this.getTab(window.location.hash)||this.$tabs[0];l&&(this.showTab(l),window.addEventListener("hashchange",this.boundOnHashChange,!0))}};b.prototype.teardown=function(){var t=this,e=this.$module,n=this.$tabs,r=e.querySelector(".govuk-tabs__list"),o=e.querySelectorAll("a.govuk-tabs__list-item");!n||!r||!o||(r.removeAttribute("role"),w(o,function(l){l.removeAttribute("role")}),w(n,function(l){l.removeEventListener("click",t.boundTabClick,!0),l.removeEventListener("keydown",t.boundTabKeydown,!0),t.unsetAttributes(l)}),window.removeEventListener("hashchange",this.boundOnHashChange,!0))};b.prototype.onHashChange=function(){var t=window.location.hash,e=this.getTab(t);if(e){if(this.changingHash){this.changingHash=!1;return}var n=this.getCurrentTab();n&&(this.hideTab(n),this.showTab(e),e.focus())}};b.prototype.hideTab=function(t){this.unhighlightTab(t),this.hidePanel(t)};b.prototype.showTab=function(t){this.highlightTab(t),this.showPanel(t)};b.prototype.getTab=function(t){return this.$module.querySelector('a.govuk-tabs__tab[href="'+t+'"]')};b.prototype.setAttributes=function(t){var e=this.getHref(t).slice(1);t.setAttribute("id","tab_"+e),t.setAttribute("role","tab"),t.setAttribute("aria-controls",e),t.setAttribute("aria-selected","false"),t.setAttribute("tabindex","-1");var n=this.getPanel(t);n&&(n.setAttribute("role","tabpanel"),n.setAttribute("aria-labelledby",t.id),n.classList.add(this.jsHiddenClass))};b.prototype.unsetAttributes=function(t){t.removeAttribute("id"),t.removeAttribute("role"),t.removeAttribute("aria-controls"),t.removeAttribute("aria-selected"),t.removeAttribute("tabindex");var e=this.getPanel(t);e&&(e.removeAttribute("role"),e.removeAttribute("aria-labelledby"),e.classList.remove(this.jsHiddenClass))};b.prototype.onTabClick=function(t){var e=this.getCurrentTab(),n=t.currentTarget;!e||!(n instanceof HTMLAnchorElement)||(t.preventDefault(),this.hideTab(e),this.showTab(n),this.createHistoryEntry(n))};b.prototype.createHistoryEntry=function(t){var e=this.getPanel(t);if(e){var n=e.id;e.id="",this.changingHash=!0,window.location.hash=this.getHref(t).slice(1),e.id=n}};b.prototype.onTabKeydown=function(t){switch(t.keyCode){case this.keys.left:case this.keys.up:this.activatePreviousTab(),t.preventDefault();break;case this.keys.right:case this.keys.down:this.activateNextTab(),t.preventDefault();break}};b.prototype.activateNextTab=function(){var t=this.getCurrentTab();if(!(!t||!t.parentElement)){var e=t.parentElement.nextElementSibling;if(e){var n=e.querySelector("a.govuk-tabs__tab");n&&(this.hideTab(t),this.showTab(n),n.focus(),this.createHistoryEntry(n))}}};b.prototype.activatePreviousTab=function(){var t=this.getCurrentTab();if(!(!t||!t.parentElement)){var e=t.parentElement.previousElementSibling;if(e){var n=e.querySelector("a.govuk-tabs__tab");n&&(this.hideTab(t),this.showTab(n),n.focus(),this.createHistoryEntry(n))}}};b.prototype.getPanel=function(t){return this.$module.querySelector(this.getHref(t))};b.prototype.showPanel=function(t){var e=this.getPanel(t);e&&e.classList.remove(this.jsHiddenClass)};b.prototype.hidePanel=function(t){var e=this.getPanel(t);e&&e.classList.add(this.jsHiddenClass)};b.prototype.unhighlightTab=function(t){t.parentElement&&(t.setAttribute("aria-selected","false"),t.parentElement.classList.remove("govuk-tabs__list-item--selected"),t.setAttribute("tabindex","-1"))};b.prototype.highlightTab=function(t){t.parentElement&&(t.setAttribute("aria-selected","true"),t.parentElement.classList.add("govuk-tabs__list-item--selected"),t.setAttribute("tabindex","0"))};b.prototype.getCurrentTab=function(){return this.$module.querySelector(".govuk-tabs__list-item--selected a.govuk-tabs__tab")};b.prototype.getHref=function(t){var e=t.getAttribute("href"),n=e.slice(e.indexOf("#"),e.length);return n};function rt(t){t=typeof t<"u"?t:{};var e=t.scope instanceof HTMLElement?t.scope:document,n=e.querySelectorAll('[data-module="govuk-accordion"]');w(n,function(d){new S(d,t.accordion).init()});var r=e.querySelectorAll('[data-module="govuk-button"]');w(r,function(d){new B(d,t.button).init()});var o=e.querySelectorAll('[data-module="govuk-character-count"]');w(o,function(d){new L(d,t.characterCount).init()});var l=e.querySelectorAll('[data-module="govuk-checkboxes"]');w(l,function(d){new k(d).init()});var s=e.querySelectorAll('[data-module="govuk-details"]');w(s,function(d){new O(d).init()});var i=e.querySelector('[data-module="govuk-error-summary"]');i&&new A(i,t.errorSummary).init();var u=e.querySelectorAll('[data-module="govuk-exit-this-page"]');w(u,function(d){new x(d,t.exitThisPage).init()});var a=e.querySelector('[data-module="govuk-header"]');a&&new F(a).init();var c=e.querySelectorAll('[data-module="govuk-notification-banner"]');w(c,function(d){new W(d,t.notificationBanner).init()});var h=e.querySelectorAll('[data-module="govuk-radios"]');w(h,function(d){new j(d).init()});var p=e.querySelector('[data-module="govuk-skip-link"]');p&&new M(p).init();var m=e.querySelectorAll('[data-module="govuk-tabs"]');w(m,function(d){new b(d).init()})}export{rt as i}; diff --git a/browse_dropdown_filters/assets/all-ecff5010.css b/browse_dropdown_filters/assets/all-ecff5010.css deleted file mode 100644 index edb5ad69a..000000000 --- a/browse_dropdown_filters/assets/all-ecff5010.css +++ /dev/null @@ -1 +0,0 @@ -@charset "UTF-8";:root{--govuk-frontend-version: "4.7.0"}.govuk-link,.govuk-prose a{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:underline}/*! Copyright (c) 2011 by Margaret Calvert & Henrik Kubel. All rights reserved. The font has been customised for exclusive use on gov.uk. This cut is not commercially available. */@font-face{font-family:GDS Transport;font-style:normal;font-weight:400;src:url(/atip/browse_dropdown_filters/assets/fonts/light-94a07e06a1-v2.woff2) format("woff2"),url(/atip/browse_dropdown_filters/assets/fonts/light-f591b13f7d-v2.woff) format("woff");font-display:fallback}@font-face{font-family:GDS Transport;font-style:normal;font-weight:700;src:url(/atip/browse_dropdown_filters/assets/fonts/bold-b542beb274-v2.woff2) format("woff2"),url(/atip/browse_dropdown_filters/assets/fonts/bold-affa96571d-v2.woff) format("woff");font-display:fallback}@media print{.govuk-link,.govuk-prose a{font-family:sans-serif}}.govuk-link:focus,.govuk-prose a:focus{outline:3px solid transparent;color:#0b0c0c;background-color:#fd0;box-shadow:0 -2px #fd0,0 4px #0b0c0c;text-decoration:none;-webkit-box-decoration-break:clone;box-decoration-break:clone}.govuk-link:link,.govuk-prose a:link{color:#1d70b8}.govuk-link:visited,.govuk-prose a:visited{color:#4c2c92}.govuk-link:hover,.govuk-prose a:hover{color:#003078}.govuk-link:active,.govuk-prose a:active{color:#0b0c0c}.govuk-link:focus,.govuk-prose a:focus{color:#0b0c0c}@media print{[href^="/"].govuk-link:after,.govuk-prose a[href^="/"]:after,[href^="http://"].govuk-link:after,.govuk-prose a[href^="http://"]:after,[href^="https://"].govuk-link:after,.govuk-prose a[href^="https://"]:after{content:" (" attr(href) ")";font-size:90%;word-wrap:break-word}}.govuk-link--muted:link,.govuk-link--muted:visited{color:#505a5f}.govuk-link--muted:hover,.govuk-link--muted:active{color:#0b0c0c}.govuk-link--muted:focus{color:#0b0c0c}.govuk-link--text-colour:link,.govuk-link--text-colour:visited{color:#0b0c0c}@media print{.govuk-link--text-colour:link,.govuk-link--text-colour:visited{color:#000}}.govuk-link--text-colour:hover{color:#0b0c0cfc}.govuk-link--text-colour:active,.govuk-link--text-colour:focus{color:#0b0c0c}@media print{.govuk-link--text-colour:active,.govuk-link--text-colour:focus{color:#000}}.govuk-link--inverse:link,.govuk-link--inverse:visited{color:#fff}.govuk-link--inverse:hover,.govuk-link--inverse:active{color:#fffffffc}.govuk-link--inverse:focus{color:#0b0c0c}.govuk-link--no-underline:not(:hover):not(:active){text-decoration:none}.govuk-link--no-visited-state:link,.govuk-link--no-visited-state:visited{color:#1d70b8}.govuk-link--no-visited-state:hover{color:#003078}.govuk-link--no-visited-state:active{color:#0b0c0c}.govuk-link--no-visited-state:focus{color:#0b0c0c}.govuk-list{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:16px;font-size:1rem;line-height:1.25;color:#0b0c0c;margin-top:0;margin-bottom:15px;padding-left:0;list-style-type:none}@media print{.govuk-list{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-list{font-size:19px;font-size:1.1875rem;line-height:1.3157894737}}@media print{.govuk-list{font-size:14pt;line-height:1.15}}@media print{.govuk-list{color:#000}}@media (min-width: 40.0625em){.govuk-list{margin-bottom:20px}}.govuk-list .govuk-list{margin-top:10px}.govuk-list>li{margin-bottom:5px}.govuk-list--bullet,.govuk-prose ul{padding-left:20px;list-style-type:disc}.govuk-list--number{padding-left:20px;list-style-type:decimal}.govuk-list--bullet>li,.govuk-prose ul>li,.govuk-list--number>li{margin-bottom:0}@media (min-width: 40.0625em){.govuk-list--bullet>li,.govuk-prose ul>li,.govuk-list--number>li{margin-bottom:5px}}.govuk-list--spaced>li{margin-bottom:10px}@media (min-width: 40.0625em){.govuk-list--spaced>li{margin-bottom:15px}}.govuk-heading-xl{color:#0b0c0c;font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:700;font-size:32px;font-size:2rem;line-height:1.09375;display:block;margin-top:0;margin-bottom:30px}@media print{.govuk-heading-xl{color:#000}}@media print{.govuk-heading-xl{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-heading-xl{font-size:48px;font-size:3rem;line-height:1.0416666667}}@media print{.govuk-heading-xl{font-size:32pt;line-height:1.15}}@media (min-width: 40.0625em){.govuk-heading-xl{margin-bottom:50px}}.govuk-heading-l,.govuk-prose h1{color:#0b0c0c;font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:700;font-size:24px;font-size:1.5rem;line-height:1.0416666667;display:block;margin-top:0;margin-bottom:20px}@media print{.govuk-heading-l,.govuk-prose h1{color:#000}}@media print{.govuk-heading-l,.govuk-prose h1{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-heading-l,.govuk-prose h1{font-size:36px;font-size:2.25rem;line-height:1.1111111111}}@media print{.govuk-heading-l,.govuk-prose h1{font-size:24pt;line-height:1.05}}@media (min-width: 40.0625em){.govuk-heading-l,.govuk-prose h1{margin-bottom:30px}}.govuk-heading-m,.govuk-prose h2{color:#0b0c0c;font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:700;font-size:18px;font-size:1.125rem;line-height:1.1111111111;display:block;margin-top:0;margin-bottom:15px}@media print{.govuk-heading-m,.govuk-prose h2{color:#000}}@media print{.govuk-heading-m,.govuk-prose h2{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-heading-m,.govuk-prose h2{font-size:24px;font-size:1.5rem;line-height:1.25}}@media print{.govuk-heading-m,.govuk-prose h2{font-size:18pt;line-height:1.15}}@media (min-width: 40.0625em){.govuk-heading-m,.govuk-prose h2{margin-bottom:20px}}.govuk-heading-s{color:#0b0c0c;font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:700;font-size:16px;font-size:1rem;line-height:1.25;display:block;margin-top:0;margin-bottom:15px}@media print{.govuk-heading-s{color:#000}}@media print{.govuk-heading-s{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-heading-s{font-size:19px;font-size:1.1875rem;line-height:1.3157894737}}@media print{.govuk-heading-s{font-size:14pt;line-height:1.15}}@media (min-width: 40.0625em){.govuk-heading-s{margin-bottom:20px}}.govuk-caption-xl{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:18px;font-size:1.125rem;line-height:1.1111111111;display:block;margin-bottom:5px;color:#505a5f}@media print{.govuk-caption-xl{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-caption-xl{font-size:27px;font-size:1.6875rem;line-height:1.1111111111}}@media print{.govuk-caption-xl{font-size:18pt;line-height:1.15}}.govuk-caption-l{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:18px;font-size:1.125rem;line-height:1.1111111111;display:block;margin-bottom:5px;color:#505a5f}@media print{.govuk-caption-l{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-caption-l{font-size:24px;font-size:1.5rem;line-height:1.25}}@media print{.govuk-caption-l{font-size:18pt;line-height:1.15}}@media (min-width: 40.0625em){.govuk-caption-l{margin-bottom:0}}.govuk-caption-m{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:16px;font-size:1rem;line-height:1.25;display:block;color:#505a5f}@media print{.govuk-caption-m{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-caption-m{font-size:19px;font-size:1.1875rem;line-height:1.3157894737}}@media print{.govuk-caption-m{font-size:14pt;line-height:1.15}}.govuk-body-lead,.govuk-body-l{color:#0b0c0c;font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:18px;font-size:1.125rem;line-height:1.1111111111;margin-top:0;margin-bottom:20px}@media print{.govuk-body-lead,.govuk-body-l{color:#000}}@media print{.govuk-body-lead,.govuk-body-l{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-body-lead,.govuk-body-l{font-size:24px;font-size:1.5rem;line-height:1.25}}@media print{.govuk-body-lead,.govuk-body-l{font-size:18pt;line-height:1.15}}@media (min-width: 40.0625em){.govuk-body-lead,.govuk-body-l{margin-bottom:30px}}.govuk-body,.govuk-prose p,.govuk-body-m{color:#0b0c0c;font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:16px;font-size:1rem;line-height:1.25;margin-top:0;margin-bottom:15px}@media print{.govuk-body,.govuk-prose p,.govuk-body-m{color:#000}}@media print{.govuk-body,.govuk-prose p,.govuk-body-m{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-body,.govuk-prose p,.govuk-body-m{font-size:19px;font-size:1.1875rem;line-height:1.3157894737}}@media print{.govuk-body,.govuk-prose p,.govuk-body-m{font-size:14pt;line-height:1.15}}@media (min-width: 40.0625em){.govuk-body,.govuk-prose p,.govuk-body-m{margin-bottom:20px}}.govuk-body-s{color:#0b0c0c;font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:14px;font-size:.875rem;line-height:1.1428571429;margin-top:0;margin-bottom:15px}@media print{.govuk-body-s{color:#000}}@media print{.govuk-body-s{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-body-s{font-size:16px;font-size:1rem;line-height:1.25}}@media print{.govuk-body-s{font-size:14pt;line-height:1.2}}@media (min-width: 40.0625em){.govuk-body-s{margin-bottom:20px}}.govuk-body-xs{color:#0b0c0c;font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:12px;font-size:.75rem;line-height:1.25;margin-top:0;margin-bottom:15px}@media print{.govuk-body-xs{color:#000}}@media print{.govuk-body-xs{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-body-xs{font-size:14px;font-size:.875rem;line-height:1.4285714286}}@media print{.govuk-body-xs{font-size:12pt;line-height:1.2}}@media (min-width: 40.0625em){.govuk-body-xs{margin-bottom:20px}}.govuk-body-l+.govuk-heading-l,.govuk-prose .govuk-body-l+h1,.govuk-body-lead+.govuk-heading-l,.govuk-prose .govuk-body-lead+h1{padding-top:5px}@media (min-width: 40.0625em){.govuk-body-l+.govuk-heading-l,.govuk-prose .govuk-body-l+h1,.govuk-body-lead+.govuk-heading-l,.govuk-prose .govuk-body-lead+h1{padding-top:10px}}.govuk-body-m+.govuk-heading-l,.govuk-prose .govuk-body-m+h1,.govuk-body+.govuk-heading-l,.govuk-prose p+.govuk-heading-l,.govuk-prose .govuk-body+h1,.govuk-prose p+h1,.govuk-body-s+.govuk-heading-l,.govuk-prose .govuk-body-s+h1,.govuk-list+.govuk-heading-l,.govuk-prose .govuk-list+h1{padding-top:15px}@media (min-width: 40.0625em){.govuk-body-m+.govuk-heading-l,.govuk-prose .govuk-body-m+h1,.govuk-body+.govuk-heading-l,.govuk-prose p+.govuk-heading-l,.govuk-prose .govuk-body+h1,.govuk-prose p+h1,.govuk-body-s+.govuk-heading-l,.govuk-prose .govuk-body-s+h1,.govuk-list+.govuk-heading-l,.govuk-prose .govuk-list+h1{padding-top:20px}}.govuk-body-m+.govuk-heading-m,.govuk-prose .govuk-body-m+h2,.govuk-body+.govuk-heading-m,.govuk-prose p+.govuk-heading-m,.govuk-prose .govuk-body+h2,.govuk-prose p+h2,.govuk-body-s+.govuk-heading-m,.govuk-prose .govuk-body-s+h2,.govuk-list+.govuk-heading-m,.govuk-prose .govuk-list+h2,.govuk-body-m+.govuk-heading-s,.govuk-body+.govuk-heading-s,.govuk-prose p+.govuk-heading-s,.govuk-body-s+.govuk-heading-s,.govuk-list+.govuk-heading-s{padding-top:5px}@media (min-width: 40.0625em){.govuk-body-m+.govuk-heading-m,.govuk-prose .govuk-body-m+h2,.govuk-body+.govuk-heading-m,.govuk-prose p+.govuk-heading-m,.govuk-prose .govuk-body+h2,.govuk-prose p+h2,.govuk-body-s+.govuk-heading-m,.govuk-prose .govuk-body-s+h2,.govuk-list+.govuk-heading-m,.govuk-prose .govuk-list+h2,.govuk-body-m+.govuk-heading-s,.govuk-body+.govuk-heading-s,.govuk-prose p+.govuk-heading-s,.govuk-body-s+.govuk-heading-s,.govuk-list+.govuk-heading-s{padding-top:10px}}.govuk-section-break{margin:0;border:0}.govuk-section-break--xl{margin-top:30px;margin-bottom:30px}@media (min-width: 40.0625em){.govuk-section-break--xl{margin-top:50px}}@media (min-width: 40.0625em){.govuk-section-break--xl{margin-bottom:50px}}.govuk-section-break--l{margin-top:20px;margin-bottom:20px}@media (min-width: 40.0625em){.govuk-section-break--l{margin-top:30px}}@media (min-width: 40.0625em){.govuk-section-break--l{margin-bottom:30px}}.govuk-section-break--m{margin-top:15px;margin-bottom:15px}@media (min-width: 40.0625em){.govuk-section-break--m{margin-top:20px}}@media (min-width: 40.0625em){.govuk-section-break--m{margin-bottom:20px}}.govuk-section-break--visible{border-bottom:1px solid #b1b4b6}.govuk-button-group{margin-bottom:5px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center}@media (min-width: 40.0625em){.govuk-button-group{margin-bottom:15px}}.govuk-button-group .govuk-link,.govuk-button-group .govuk-prose a,.govuk-prose .govuk-button-group a{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:16px;font-size:1rem;line-height:1.1875;display:inline-block;max-width:100%;margin-top:5px;margin-bottom:20px;text-align:center}@media print{.govuk-button-group .govuk-link,.govuk-button-group .govuk-prose a,.govuk-prose .govuk-button-group a{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-button-group .govuk-link,.govuk-button-group .govuk-prose a,.govuk-prose .govuk-button-group a{font-size:19px;font-size:1.1875rem;line-height:1}}@media print{.govuk-button-group .govuk-link,.govuk-button-group .govuk-prose a,.govuk-prose .govuk-button-group a{font-size:14pt;line-height:19px}}.govuk-button-group .govuk-button{margin-bottom:17px}@media (min-width: 40.0625em){.govuk-button-group{margin-right:-15px;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:baseline;align-items:baseline}.govuk-button-group .govuk-button,.govuk-button-group .govuk-link,.govuk-button-group .govuk-prose a,.govuk-prose .govuk-button-group a{margin-right:15px}.govuk-button-group .govuk-link,.govuk-button-group .govuk-prose a,.govuk-prose .govuk-button-group a{text-align:left}}.govuk-form-group{margin-bottom:20px}.govuk-form-group:after{content:"";display:block;clear:both}@media (min-width: 40.0625em){.govuk-form-group{margin-bottom:30px}}.govuk-form-group .govuk-form-group:last-of-type{margin-bottom:0}.govuk-form-group--error{padding-left:15px;border-left:5px solid #d4351c}.govuk-form-group--error .govuk-form-group{padding:0;border:0}.govuk-grid-row{margin-right:-15px;margin-left:-15px}.govuk-grid-row:after{content:"";display:block;clear:both}.govuk-grid-column-one-quarter{box-sizing:border-box;width:100%;padding:0 15px}@media (min-width: 40.0625em){.govuk-grid-column-one-quarter{width:25%;float:left}}.govuk-grid-column-one-third{box-sizing:border-box;width:100%;padding:0 15px}@media (min-width: 40.0625em){.govuk-grid-column-one-third{width:33.3333333333%;float:left}}.govuk-grid-column-one-half{box-sizing:border-box;width:100%;padding:0 15px}@media (min-width: 40.0625em){.govuk-grid-column-one-half{width:50%;float:left}}.govuk-grid-column-two-thirds{box-sizing:border-box;width:100%;padding:0 15px}@media (min-width: 40.0625em){.govuk-grid-column-two-thirds{width:66.6666666667%;float:left}}.govuk-grid-column-three-quarters{box-sizing:border-box;width:100%;padding:0 15px}@media (min-width: 40.0625em){.govuk-grid-column-three-quarters{width:75%;float:left}}.govuk-grid-column-full{box-sizing:border-box;width:100%;padding:0 15px}@media (min-width: 40.0625em){.govuk-grid-column-full{width:100%;float:left}}.govuk-grid-column-one-quarter-from-desktop{box-sizing:border-box;padding:0 15px}@media (min-width: 48.0625em){.govuk-grid-column-one-quarter-from-desktop{width:25%;float:left}}.govuk-grid-column-one-third-from-desktop{box-sizing:border-box;padding:0 15px}@media (min-width: 48.0625em){.govuk-grid-column-one-third-from-desktop{width:33.3333333333%;float:left}}.govuk-grid-column-one-half-from-desktop{box-sizing:border-box;padding:0 15px}@media (min-width: 48.0625em){.govuk-grid-column-one-half-from-desktop{width:50%;float:left}}.govuk-grid-column-two-thirds-from-desktop{box-sizing:border-box;padding:0 15px}@media (min-width: 48.0625em){.govuk-grid-column-two-thirds-from-desktop{width:66.6666666667%;float:left}}.govuk-grid-column-three-quarters-from-desktop{box-sizing:border-box;padding:0 15px}@media (min-width: 48.0625em){.govuk-grid-column-three-quarters-from-desktop{width:75%;float:left}}.govuk-grid-column-full-from-desktop{box-sizing:border-box;padding:0 15px}@media (min-width: 48.0625em){.govuk-grid-column-full-from-desktop{width:100%;float:left}}.govuk-main-wrapper{display:block;padding-top:20px;padding-bottom:20px}@media (min-width: 40.0625em){.govuk-main-wrapper{padding-top:40px;padding-bottom:40px}}.govuk-main-wrapper--auto-spacing:first-child,.govuk-main-wrapper--l{padding-top:30px}@media (min-width: 40.0625em){.govuk-main-wrapper--auto-spacing:first-child,.govuk-main-wrapper--l{padding-top:50px}}.govuk-template{background-color:#f3f2f1;-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%}@supports (position: -webkit-sticky) or (position: sticky){.govuk-template{scroll-padding-top:60px}.govuk-template:not(:has(.govuk-exit-this-page)){scroll-padding-top:0}}@media screen{.govuk-template{overflow-y:scroll}}.govuk-template__body{margin:0;background-color:#fff}.govuk-width-container{max-width:960px;margin-right:15px;margin-left:15px}@supports (margin: max(0px)){.govuk-width-container{margin-right:max(15px,calc(15px + env(safe-area-inset-right)));margin-left:max(15px,calc(15px + env(safe-area-inset-left)))}}@media (min-width: 40.0625em){.govuk-width-container{margin-right:30px;margin-left:30px}@supports (margin: max(0px)){.govuk-width-container{margin-right:max(30px,calc(15px + env(safe-area-inset-right)));margin-left:max(30px,calc(15px + env(safe-area-inset-left)))}}}@media (min-width: 1020px){.govuk-width-container{margin-right:auto;margin-left:auto}@supports (margin: max(0px)){.govuk-width-container{margin-right:auto;margin-left:auto}}}.govuk-accordion{margin-bottom:20px}@media (min-width: 40.0625em){.govuk-accordion{margin-bottom:30px}}.govuk-accordion__section{padding-top:15px}.govuk-accordion__section-heading{margin-top:0;margin-bottom:0;padding-top:15px;padding-bottom:15px}.govuk-accordion__section-button{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:700;font-size:18px;font-size:1.125rem;line-height:1.1111111111;color:#0b0c0c;display:block;margin-bottom:0;padding-top:15px}@media print{.govuk-accordion__section-button{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-accordion__section-button{font-size:24px;font-size:1.5rem;line-height:1.25}}@media print{.govuk-accordion__section-button{font-size:18pt;line-height:1.15}}@media print{.govuk-accordion__section-button{color:#000}}.govuk-accordion__section-content>:last-child{margin-bottom:0}.js-enabled .govuk-accordion{border-bottom:1px solid #b1b4b6}.js-enabled .govuk-accordion__section{padding-top:0}.js-enabled .govuk-accordion__section-content{display:none;padding-top:15px;padding-bottom:30px}@media (min-width: 40.0625em){.js-enabled .govuk-accordion__section-content{padding-bottom:50px}}.js-enabled .govuk-accordion__section-content[hidden]{padding-top:0;padding-bottom:0}@supports (content-visibility: hidden){.js-enabled .govuk-accordion__section-content[hidden]{content-visibility:hidden;display:inherit}}.js-enabled .govuk-accordion__section--expanded .govuk-accordion__section-content{display:block}.js-enabled .govuk-accordion__show-all{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:16px;font-size:1rem;line-height:1.25;position:relative;z-index:1;margin-bottom:9px;padding:5px 2px 5px 0;border-width:0;color:#1d70b8;background:none;cursor:pointer;-webkit-appearance:none}@media print{.js-enabled .govuk-accordion__show-all{font-family:sans-serif}}@media (min-width: 40.0625em){.js-enabled .govuk-accordion__show-all{font-size:19px;font-size:1.1875rem;line-height:1.3157894737}}@media print{.js-enabled .govuk-accordion__show-all{font-size:14pt;line-height:1.15}}@media (min-width: 40.0625em){.js-enabled .govuk-accordion__show-all{margin-bottom:14px}}.js-enabled .govuk-accordion__show-all::-moz-focus-inner{padding:0;border:0}.js-enabled .govuk-accordion__show-all:hover{color:#0b0c0c;background:#f3f2f1;box-shadow:0 -2px #f3f2f1,0 4px #f3f2f1}.js-enabled .govuk-accordion__show-all:hover .govuk-accordion__section-toggle-text{color:#0b0c0c}.js-enabled .govuk-accordion__show-all:hover .govuk-accordion-nav__chevron{color:#0b0c0c;background:#0b0c0c}.js-enabled .govuk-accordion__show-all:hover .govuk-accordion-nav__chevron:after{color:#f3f2f1}.js-enabled .govuk-accordion__show-all:focus{outline:3px solid transparent;color:#0b0c0c;background-color:#fd0;box-shadow:0 -2px #fd0,0 4px #0b0c0c;text-decoration:none;-webkit-box-decoration-break:clone;box-decoration-break:clone}.js-enabled .govuk-accordion__show-all:focus .govuk-accordion-nav__chevron{background:#0b0c0c}.js-enabled .govuk-accordion__show-all:focus .govuk-accordion-nav__chevron:after{color:#fd0}.js-enabled .govuk-accordion__section-heading{padding:0}.js-enabled .govuk-accordion-nav__chevron{box-sizing:border-box;display:inline-block;position:relative;width:1.25rem;height:1.25rem;border:.0625rem solid;border-radius:50%;vertical-align:middle}.js-enabled .govuk-accordion-nav__chevron:after{content:"";box-sizing:border-box;display:block;position:absolute;bottom:.3125rem;left:.375rem;width:.375rem;height:.375rem;-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg);border-top:.125rem solid;border-right:.125rem solid}.js-enabled .govuk-accordion-nav__chevron--down{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.js-enabled .govuk-accordion__section-button{width:100%;padding:10px 0 0;border:0;border-top:1px solid #b1b4b6;border-bottom:10px solid transparent;color:#0b0c0c;background:none;text-align:left;cursor:pointer;-webkit-appearance:none}@media (min-width: 40.0625em){.js-enabled .govuk-accordion__section-button{padding-bottom:10px}}.js-enabled .govuk-accordion__section-button:active{color:#0b0c0c;background:none}.js-enabled .govuk-accordion__section-button:hover{color:#0b0c0c;background:#f3f2f1}.js-enabled .govuk-accordion__section-button:hover .govuk-accordion__section-toggle-text{color:#0b0c0c}.js-enabled .govuk-accordion__section-button:hover .govuk-accordion-nav__chevron{color:#0b0c0c;background:#0b0c0c}.js-enabled .govuk-accordion__section-button:hover .govuk-accordion-nav__chevron:after{color:#f3f2f1}.js-enabled .govuk-accordion__section-button:focus{outline:0}.js-enabled .govuk-accordion__section-button:focus .govuk-accordion__section-heading-text-focus,.js-enabled .govuk-accordion__section-button:focus .govuk-accordion__section-summary-focus,.js-enabled .govuk-accordion__section-button:focus .govuk-accordion__section-toggle-focus{outline:3px solid transparent;color:#0b0c0c;background-color:#fd0;box-shadow:0 -2px #fd0,0 4px #0b0c0c;text-decoration:none;-webkit-box-decoration-break:clone;box-decoration-break:clone}.js-enabled .govuk-accordion__section-button:focus .govuk-accordion-nav__chevron{color:#0b0c0c;background:#0b0c0c}.js-enabled .govuk-accordion__section-button:focus .govuk-accordion-nav__chevron:after{color:#fd0}.js-enabled .govuk-accordion__section-button::-moz-focus-inner{padding:0;border:0}.js-enabled .govuk-accordion__section--expanded .govuk-accordion__section-button{padding-bottom:15px;border-bottom:0}@media (min-width: 40.0625em){.js-enabled .govuk-accordion__section--expanded .govuk-accordion__section-button{padding-bottom:20px}}.js-enabled .govuk-accordion__section-button:focus .govuk-accordion__section-toggle-focus{padding-bottom:3px}@media (min-width: 48.0625em){.js-enabled .govuk-accordion__section-button:focus .govuk-accordion__section-toggle-focus{padding-bottom:2px}}.js-enabled .govuk-accordion__section-toggle,.js-enabled .govuk-accordion__section-heading-text,.js-enabled .govuk-accordion__section-summary{display:block;margin-bottom:13px}.js-enabled .govuk-accordion__section-toggle .govuk-accordion__section-heading-text-focus,.js-enabled .govuk-accordion__section-toggle .govuk-accordion__section-summary-focus,.js-enabled .govuk-accordion__section-toggle .govuk-accordion__section-toggle-focus,.js-enabled .govuk-accordion__section-heading-text .govuk-accordion__section-heading-text-focus,.js-enabled .govuk-accordion__section-heading-text .govuk-accordion__section-summary-focus,.js-enabled .govuk-accordion__section-heading-text .govuk-accordion__section-toggle-focus,.js-enabled .govuk-accordion__section-summary .govuk-accordion__section-heading-text-focus,.js-enabled .govuk-accordion__section-summary .govuk-accordion__section-summary-focus,.js-enabled .govuk-accordion__section-summary .govuk-accordion__section-toggle-focus{display:inline}.js-enabled .govuk-accordion__section-toggle{font-size:16px;font-size:1rem;line-height:1.25;font-weight:400;color:#1d70b8}@media (min-width: 40.0625em){.js-enabled .govuk-accordion__section-toggle{font-size:19px;font-size:1.1875rem;line-height:1.3157894737}}@media print{.js-enabled .govuk-accordion__section-toggle{font-size:14pt;line-height:1.15}}.js-enabled .govuk-accordion__show-all-text,.js-enabled .govuk-accordion__section-toggle-text{margin-left:5px;vertical-align:middle}@media screen and (forced-colors: active){.js-enabled .govuk-accordion__show-all:hover .govuk-accordion-nav__chevron,.js-enabled .govuk-accordion__section-button:hover .govuk-accordion-nav__chevron{background-color:transparent}.js-enabled .govuk-accordion__show-all:focus .govuk-accordion__section-heading-text-focus,.js-enabled .govuk-accordion__show-all:focus .govuk-accordion__section-summary-focus,.js-enabled .govuk-accordion__show-all:focus .govuk-accordion__section-toggle-focus,.js-enabled .govuk-accordion__show-all:focus .govuk-accordion-nav__chevron,.js-enabled .govuk-accordion__section-button:focus .govuk-accordion__section-heading-text-focus,.js-enabled .govuk-accordion__section-button:focus .govuk-accordion__section-summary-focus,.js-enabled .govuk-accordion__section-button:focus .govuk-accordion__section-toggle-focus,.js-enabled .govuk-accordion__section-button:focus .govuk-accordion-nav__chevron{background:transparent;background-color:transparent}}@media (hover: none){.js-enabled .govuk-accordion__section-header:hover{border-top-color:#b1b4b6;box-shadow:inset 0 3px #1d70b8}.js-enabled .govuk-accordion__section-header:hover .govuk-accordion__section-button{border-top-color:#b1b4b6}}.govuk-back-link{font-size:14px;font-size:.875rem;line-height:1.1428571429;font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:underline;display:inline-block;position:relative;margin-top:15px;margin-bottom:15px;padding-left:.875em}@media (min-width: 40.0625em){.govuk-back-link{font-size:16px;font-size:1rem;line-height:1.25}}@media print{.govuk-back-link{font-size:14pt;line-height:1.2}}@media print{.govuk-back-link{font-family:sans-serif}}.govuk-back-link:focus{outline:3px solid transparent;color:#0b0c0c;background-color:#fd0;box-shadow:0 -2px #fd0,0 4px #0b0c0c;text-decoration:none;-webkit-box-decoration-break:clone;box-decoration-break:clone}.govuk-back-link:link,.govuk-back-link:visited{color:#0b0c0c}@media print{.govuk-back-link:link,.govuk-back-link:visited{color:#000}}.govuk-back-link:hover{color:#0b0c0cfc}.govuk-back-link:active,.govuk-back-link:focus{color:#0b0c0c}@media print{.govuk-back-link:active,.govuk-back-link:focus{color:#000}}.govuk-back-link:before{content:"";display:block;position:absolute;top:0;bottom:0;left:.1875em;width:.4375em;height:.4375em;margin:auto 0;-webkit-transform:rotate(225deg);-ms-transform:rotate(225deg);transform:rotate(225deg);border:solid;border-width:1px 1px 0 0;border-color:#505a5f}@supports (border-width: max(0px)){.govuk-back-link:before{border-width:max(1px,.0625em) max(1px,.0625em) 0 0;font-size:max(16px,1em)}}.govuk-back-link:focus:before{border-color:#0b0c0c}.govuk-back-link:after{content:"";position:absolute;top:-14px;right:0;bottom:-14px;left:0}.govuk-back-link--inverse:link,.govuk-back-link--inverse:visited{color:#fff}.govuk-back-link--inverse:hover,.govuk-back-link--inverse:active{color:#fffffffc}.govuk-back-link--inverse:focus{color:#0b0c0c}.govuk-back-link--inverse:before{border-color:currentcolor}.govuk-breadcrumbs{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:14px;font-size:.875rem;line-height:1.1428571429;color:#0b0c0c;margin-top:15px;margin-bottom:10px}@media print{.govuk-breadcrumbs{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-breadcrumbs{font-size:16px;font-size:1rem;line-height:1.25}}@media print{.govuk-breadcrumbs{font-size:14pt;line-height:1.2}}@media print{.govuk-breadcrumbs{color:#000}}.govuk-breadcrumbs__list{margin:0;padding:0;list-style-type:none}.govuk-breadcrumbs__list:after{content:"";display:block;clear:both}.govuk-breadcrumbs__list-item{display:inline-block;position:relative;margin-bottom:5px;margin-left:.625em;padding-left:.9784375em;float:left}.govuk-breadcrumbs__list-item:before{content:"";display:block;position:absolute;top:0;bottom:0;left:-.206875em;width:.4375em;height:.4375em;margin:auto 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);border:solid;border-width:1px 1px 0 0;border-color:#505a5f}@supports (border-width: max(0px)){.govuk-breadcrumbs__list-item:before{border-width:max(1px,.0625em) max(1px,.0625em) 0 0;font-size:max(16px,1em)}}.govuk-breadcrumbs__list-item:first-child{margin-left:0;padding-left:0}.govuk-breadcrumbs__list-item:first-child:before{content:none;display:none}.govuk-breadcrumbs__link{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:underline}@media print{.govuk-breadcrumbs__link{font-family:sans-serif}}.govuk-breadcrumbs__link:focus{outline:3px solid transparent;color:#0b0c0c;background-color:#fd0;box-shadow:0 -2px #fd0,0 4px #0b0c0c;text-decoration:none;-webkit-box-decoration-break:clone;box-decoration-break:clone}.govuk-breadcrumbs__link:link,.govuk-breadcrumbs__link:visited{color:#0b0c0c}@media print{.govuk-breadcrumbs__link:link,.govuk-breadcrumbs__link:visited{color:#000}}.govuk-breadcrumbs__link:hover{color:#0b0c0cfc}.govuk-breadcrumbs__link:active,.govuk-breadcrumbs__link:focus{color:#0b0c0c}@media print{.govuk-breadcrumbs__link:active,.govuk-breadcrumbs__link:focus{color:#000}}@media (max-width: 40.0525em){.govuk-breadcrumbs--collapse-on-mobile .govuk-breadcrumbs__list-item{display:none}.govuk-breadcrumbs--collapse-on-mobile .govuk-breadcrumbs__list-item:first-child,.govuk-breadcrumbs--collapse-on-mobile .govuk-breadcrumbs__list-item:last-child{display:inline-block}.govuk-breadcrumbs--collapse-on-mobile .govuk-breadcrumbs__list-item:before{top:.375em;margin:0}.govuk-breadcrumbs--collapse-on-mobile .govuk-breadcrumbs__list{display:-ms-flexbox;display:flex}}.govuk-breadcrumbs--inverse,.govuk-breadcrumbs--inverse .govuk-breadcrumbs__link:link,.govuk-breadcrumbs--inverse .govuk-breadcrumbs__link:visited{color:#fff}.govuk-breadcrumbs--inverse .govuk-breadcrumbs__link:hover,.govuk-breadcrumbs--inverse .govuk-breadcrumbs__link:active{color:#fffffffc}.govuk-breadcrumbs--inverse .govuk-breadcrumbs__link:focus{color:#0b0c0c}.govuk-breadcrumbs--inverse .govuk-breadcrumbs__list-item:before{border-color:currentcolor}.govuk-button{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:16px;font-size:1rem;line-height:1.1875;box-sizing:border-box;display:inline-block;position:relative;width:100%;margin:0 0 22px;padding:8px 10px 7px;border:2px solid transparent;border-radius:0;color:#fff;background-color:#00703c;box-shadow:0 2px #002d18;text-align:center;vertical-align:top;cursor:pointer;-webkit-appearance:none}@media print{.govuk-button{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-button{font-size:19px;font-size:1.1875rem;line-height:1}}@media print{.govuk-button{font-size:14pt;line-height:19px}}@media (min-width: 40.0625em){.govuk-button{margin-bottom:32px}}@media (min-width: 40.0625em){.govuk-button{width:auto}}.govuk-button:link,.govuk-button:visited,.govuk-button:active,.govuk-button:hover{color:#fff;text-decoration:none}.govuk-button::-moz-focus-inner{padding:0;border:0}.govuk-button:hover{background-color:#005a30}.govuk-button:active{top:2px}.govuk-button:focus{border-color:#fd0;outline:3px solid transparent;box-shadow:inset 0 0 0 1px #fd0}.govuk-button:focus:not(:active):not(:hover){border-color:#fd0;color:#0b0c0c;background-color:#fd0;box-shadow:0 2px #0b0c0c}.govuk-button:before{content:"";display:block;position:absolute;top:-2px;right:-2px;bottom:-4px;left:-2px;background:transparent}.govuk-button:active:before{top:-4px}.govuk-button--disabled,.govuk-button[disabled=disabled],.govuk-button[disabled]{opacity:.5}.govuk-button--disabled:hover,.govuk-button[disabled=disabled]:hover,.govuk-button[disabled]:hover{background-color:#00703c;cursor:not-allowed}.govuk-button--disabled:active,.govuk-button[disabled=disabled]:active,.govuk-button[disabled]:active{top:0;box-shadow:0 2px #002d18}.govuk-button--secondary{background-color:#f3f2f1;box-shadow:0 2px #929191}.govuk-button--secondary,.govuk-button--secondary:link,.govuk-button--secondary:visited,.govuk-button--secondary:active,.govuk-button--secondary:hover{color:#0b0c0c}.govuk-button--secondary:hover{background-color:#dbdad9}.govuk-button--secondary:hover[disabled]{background-color:#f3f2f1}.govuk-button--warning{background-color:#d4351c;box-shadow:0 2px #55150b}.govuk-button--warning,.govuk-button--warning:link,.govuk-button--warning:visited,.govuk-button--warning:active,.govuk-button--warning:hover{color:#fff}.govuk-button--warning:hover{background-color:#aa2a16}.govuk-button--warning:hover[disabled]{background-color:#d4351c}.govuk-button--inverse{background-color:#fff;box-shadow:0 2px #144e81}.govuk-button--inverse,.govuk-button--inverse:link,.govuk-button--inverse:visited,.govuk-button--inverse:active,.govuk-button--inverse:hover{color:#1d70b8}.govuk-button--inverse:hover{background-color:#e8f1f8}.govuk-button--inverse:hover[disabled]{background-color:#fff}.govuk-button--start{font-weight:700;font-size:18px;font-size:1.125rem;line-height:1;display:-ms-inline-flexbox;display:inline-flex;min-height:auto;-ms-flex-pack:center;justify-content:center}@media (min-width: 40.0625em){.govuk-button--start{font-size:24px;font-size:1.5rem;line-height:1}}@media print{.govuk-button--start{font-size:18pt;line-height:1}}.govuk-button__start-icon{margin-left:5px;vertical-align:middle;-ms-flex-negative:0;flex-shrink:0;-ms-flex-item-align:center;align-self:center;forced-color-adjust:auto}@media (min-width: 48.0625em){.govuk-button__start-icon{margin-left:10px}}.govuk-error-message{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:700;font-size:16px;font-size:1rem;line-height:1.25;display:block;margin-top:0;margin-bottom:15px;clear:both;color:#d4351c}@media print{.govuk-error-message{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-error-message{font-size:19px;font-size:1.1875rem;line-height:1.3157894737}}@media print{.govuk-error-message{font-size:14pt;line-height:1.15}}.govuk-fieldset{min-width:0;margin:0;padding:0;border:0}.govuk-fieldset:after{content:"";display:block;clear:both}@supports not (caret-color: auto){.govuk-fieldset,x:-moz-any-link{display:table-cell}}.govuk-fieldset__legend{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:16px;font-size:1rem;line-height:1.25;color:#0b0c0c;box-sizing:border-box;display:table;max-width:100%;margin-bottom:10px;padding:0;white-space:normal}@media print{.govuk-fieldset__legend{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-fieldset__legend{font-size:19px;font-size:1.1875rem;line-height:1.3157894737}}@media print{.govuk-fieldset__legend{font-size:14pt;line-height:1.15}}@media print{.govuk-fieldset__legend{color:#000}}.govuk-fieldset__legend--xl{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:700;font-size:32px;font-size:2rem;line-height:1.09375;margin-bottom:15px}@media print{.govuk-fieldset__legend--xl{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-fieldset__legend--xl{font-size:48px;font-size:3rem;line-height:1.0416666667}}@media print{.govuk-fieldset__legend--xl{font-size:32pt;line-height:1.15}}.govuk-fieldset__legend--l{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:700;font-size:24px;font-size:1.5rem;line-height:1.0416666667;margin-bottom:15px}@media print{.govuk-fieldset__legend--l{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-fieldset__legend--l{font-size:36px;font-size:2.25rem;line-height:1.1111111111}}@media print{.govuk-fieldset__legend--l{font-size:24pt;line-height:1.05}}.govuk-fieldset__legend--m{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:700;font-size:18px;font-size:1.125rem;line-height:1.1111111111;margin-bottom:15px}@media print{.govuk-fieldset__legend--m{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-fieldset__legend--m{font-size:24px;font-size:1.5rem;line-height:1.25}}@media print{.govuk-fieldset__legend--m{font-size:18pt;line-height:1.15}}.govuk-fieldset__legend--s{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:700;font-size:16px;font-size:1rem;line-height:1.25}@media print{.govuk-fieldset__legend--s{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-fieldset__legend--s{font-size:19px;font-size:1.1875rem;line-height:1.3157894737}}@media print{.govuk-fieldset__legend--s{font-size:14pt;line-height:1.15}}.govuk-fieldset__heading{margin:0;font-size:inherit;font-weight:inherit}.govuk-hint{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:16px;font-size:1rem;line-height:1.25;margin-bottom:15px;color:#505a5f}@media print{.govuk-hint{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-hint{font-size:19px;font-size:1.1875rem;line-height:1.3157894737}}@media print{.govuk-hint{font-size:14pt;line-height:1.15}}.govuk-label:not(.govuk-label--m):not(.govuk-label--l):not(.govuk-label--xl)+.govuk-hint{margin-bottom:10px}.govuk-fieldset__legend:not(.govuk-fieldset__legend--m):not(.govuk-fieldset__legend--l):not(.govuk-fieldset__legend--xl)+.govuk-hint{margin-bottom:10px}.govuk-fieldset__legend+.govuk-hint{margin-top:-5px}.govuk-label{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:16px;font-size:1rem;line-height:1.25;color:#0b0c0c;display:block;margin-bottom:5px}@media print{.govuk-label{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-label{font-size:19px;font-size:1.1875rem;line-height:1.3157894737}}@media print{.govuk-label{font-size:14pt;line-height:1.15}}@media print{.govuk-label{color:#000}}.govuk-label--xl{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:700;font-size:32px;font-size:2rem;line-height:1.09375;margin-bottom:15px}@media print{.govuk-label--xl{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-label--xl{font-size:48px;font-size:3rem;line-height:1.0416666667}}@media print{.govuk-label--xl{font-size:32pt;line-height:1.15}}.govuk-label--l{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:700;font-size:24px;font-size:1.5rem;line-height:1.0416666667;margin-bottom:15px}@media print{.govuk-label--l{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-label--l{font-size:36px;font-size:2.25rem;line-height:1.1111111111}}@media print{.govuk-label--l{font-size:24pt;line-height:1.05}}.govuk-label--m{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:700;font-size:18px;font-size:1.125rem;line-height:1.1111111111;margin-bottom:10px}@media print{.govuk-label--m{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-label--m{font-size:24px;font-size:1.5rem;line-height:1.25}}@media print{.govuk-label--m{font-size:18pt;line-height:1.15}}.govuk-label--s{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:700;font-size:16px;font-size:1rem;line-height:1.25}@media print{.govuk-label--s{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-label--s{font-size:19px;font-size:1.1875rem;line-height:1.3157894737}}@media print{.govuk-label--s{font-size:14pt;line-height:1.15}}.govuk-label-wrapper{margin:0}.govuk-checkboxes__item{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:16px;font-size:1rem;line-height:1.25;display:block;position:relative;min-height:40px;margin-bottom:10px;padding-left:40px;clear:left}@media print{.govuk-checkboxes__item{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-checkboxes__item{font-size:19px;font-size:1.1875rem;line-height:1.3157894737}}@media print{.govuk-checkboxes__item{font-size:14pt;line-height:1.15}}.govuk-checkboxes__item:last-child,.govuk-checkboxes__item:last-of-type{margin-bottom:0}.govuk-checkboxes__input{cursor:pointer;position:absolute;z-index:1;top:-2px;left:-2px;width:44px;height:44px;margin:0;opacity:0}.govuk-checkboxes__label{display:inline-block;margin-bottom:0;padding:8px 15px 5px;cursor:pointer;-ms-touch-action:manipulation;touch-action:manipulation}.govuk-checkboxes__label:before{content:"";box-sizing:border-box;position:absolute;top:0;left:0;width:40px;height:40px;border:2px solid currentcolor;background:transparent}.govuk-checkboxes__label:after{content:"";box-sizing:border-box;position:absolute;top:11px;left:9px;width:23px;height:12px;-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg);border:solid;border-width:0 0 5px 5px;border-top-color:transparent;opacity:0;background:transparent}.govuk-checkboxes__hint{display:block;padding-right:15px;padding-left:15px}.govuk-checkboxes__input:focus+.govuk-checkboxes__label:before{border-width:4px;outline:3px solid transparent;outline-offset:1px;box-shadow:0 0 0 3px #fd0}@media screen and (forced-colors: active),(-ms-high-contrast: active){.govuk-checkboxes__input:focus+.govuk-checkboxes__label:before{outline-color:Highlight}}.govuk-checkboxes__input:checked+.govuk-checkboxes__label:after{opacity:1}.govuk-checkboxes__input:disabled,.govuk-checkboxes__input:disabled+.govuk-checkboxes__label{cursor:not-allowed}.govuk-checkboxes__input:disabled+.govuk-checkboxes__label,.govuk-checkboxes__input:disabled~.govuk-hint{opacity:.5}.govuk-checkboxes__divider{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:16px;font-size:1rem;line-height:1.25;color:#0b0c0c;width:40px;margin-bottom:10px;text-align:center}@media print{.govuk-checkboxes__divider{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-checkboxes__divider{font-size:19px;font-size:1.1875rem;line-height:1.3157894737}}@media print{.govuk-checkboxes__divider{font-size:14pt;line-height:1.15}}@media print{.govuk-checkboxes__divider{color:#000}}.govuk-checkboxes__conditional{margin-bottom:15px;margin-left:18px;padding-left:33px;border-left:4px solid #b1b4b6}@media (min-width: 40.0625em){.govuk-checkboxes__conditional{margin-bottom:20px}}.js-enabled .govuk-checkboxes__conditional--hidden{display:none}.govuk-checkboxes__conditional>:last-child{margin-bottom:0}.govuk-checkboxes--small .govuk-checkboxes__item{min-height:0;margin-bottom:0;padding-left:34px;float:left}.govuk-checkboxes--small .govuk-checkboxes__item:after{content:"";display:block;clear:both}.govuk-checkboxes--small .govuk-checkboxes__input{left:-10px}.govuk-checkboxes--small .govuk-checkboxes__label{margin-top:-2px;padding:13px 15px 13px 1px;float:left}@media (min-width: 40.0625em){.govuk-checkboxes--small .govuk-checkboxes__label{padding:11px 15px 10px 1px}}.govuk-checkboxes--small .govuk-checkboxes__label:before{top:8px;width:24px;height:24px}.govuk-checkboxes--small .govuk-checkboxes__label:after{top:15px;left:6px;width:12px;height:6.5px;border-width:0 0 3px 3px}.govuk-checkboxes--small .govuk-checkboxes__hint{padding:0;clear:both}.govuk-checkboxes--small .govuk-checkboxes__conditional{margin-left:10px;padding-left:20px;clear:both}.govuk-checkboxes--small .govuk-checkboxes__item:hover .govuk-checkboxes__input:not(:disabled)+.govuk-checkboxes__label:before{box-shadow:0 0 0 10px #b1b4b6}.govuk-checkboxes--small .govuk-checkboxes__item:hover .govuk-checkboxes__input:focus+.govuk-checkboxes__label:before{box-shadow:0 0 0 3px #fd0,0 0 0 10px #b1b4b6}@media (hover: none),(pointer: coarse){.govuk-checkboxes--small .govuk-checkboxes__item:hover .govuk-checkboxes__input:not(:disabled)+.govuk-checkboxes__label:before{box-shadow:initial}.govuk-checkboxes--small .govuk-checkboxes__item:hover .govuk-checkboxes__input:focus+.govuk-checkboxes__label:before{box-shadow:0 0 0 3px #fd0}}.govuk-textarea{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:16px;font-size:1rem;line-height:1.25;box-sizing:border-box;display:block;width:100%;min-height:40px;margin-bottom:20px;padding:5px;resize:vertical;border:2px solid #0b0c0c;border-radius:0;-webkit-appearance:none}@media print{.govuk-textarea{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-textarea{font-size:19px;font-size:1.1875rem;line-height:1.25}}@media print{.govuk-textarea{font-size:14pt;line-height:1.25}}@media (min-width: 40.0625em){.govuk-textarea{margin-bottom:30px}}.govuk-textarea:focus{outline:3px solid #ffdd00;outline-offset:0;box-shadow:inset 0 0 0 2px}.govuk-textarea:disabled{opacity:.5;color:inherit;background-color:transparent;cursor:not-allowed}.govuk-textarea--error{border-color:#d4351c}.govuk-textarea--error:focus{border-color:#0b0c0c}.govuk-character-count{margin-bottom:20px}@media (min-width: 40.0625em){.govuk-character-count{margin-bottom:30px}}.govuk-character-count .govuk-form-group,.govuk-character-count .govuk-textarea{margin-bottom:5px}.govuk-character-count__message{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-font-feature-settings:"tnum" 1;font-feature-settings:"tnum" 1;font-weight:400;margin-top:0;margin-bottom:0}@media print{.govuk-character-count__message{font-family:sans-serif}}@supports (font-variant-numeric: tabular-nums){.govuk-character-count__message{-webkit-font-feature-settings:normal;font-feature-settings:normal;font-variant-numeric:tabular-nums}}.govuk-character-count__message:after{content:"​"}.govuk-character-count__message--disabled{visibility:hidden}.govuk-cookie-banner{padding-top:20px;border-bottom:10px solid transparent;background-color:#f3f2f1}.govuk-cookie-banner[hidden]{display:none}.govuk-cookie-banner__message{margin-bottom:-10px}.govuk-cookie-banner__message[hidden]{display:none}.govuk-cookie-banner__message:focus{outline:none}.govuk-input{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:16px;font-size:1rem;line-height:1.25;box-sizing:border-box;width:100%;height:40px;height:2.5rem;margin-top:0;padding:5px;border:2px solid #0b0c0c;border-radius:0;-webkit-appearance:none;appearance:none}@media print{.govuk-input{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-input{font-size:19px;font-size:1.1875rem;line-height:1.3157894737}}@media print{.govuk-input{font-size:14pt;line-height:1.15}}.govuk-input:focus{outline:3px solid #ffdd00;outline-offset:0;box-shadow:inset 0 0 0 2px}.govuk-input:disabled{opacity:.5;color:inherit;background-color:transparent;cursor:not-allowed}.govuk-input::-webkit-outer-spin-button,.govuk-input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}.govuk-input[type=number]{-moz-appearance:textfield}.govuk-input--error{border-color:#d4351c}.govuk-input--error:focus{border-color:#0b0c0c}.govuk-input--extra-letter-spacing{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-font-feature-settings:"tnum" 1;font-feature-settings:"tnum" 1;font-weight:400;letter-spacing:.05em}@media print{.govuk-input--extra-letter-spacing{font-family:sans-serif}}@supports (font-variant-numeric: tabular-nums){.govuk-input--extra-letter-spacing{-webkit-font-feature-settings:normal;font-feature-settings:normal;font-variant-numeric:tabular-nums}}.govuk-input--width-30{max-width:29.5em}.govuk-input--width-20{max-width:20.5em}.govuk-input--width-10{max-width:11.5em}.govuk-input--width-5{max-width:5.5em}.govuk-input--width-4{max-width:4.5em}.govuk-input--width-3{max-width:3.75em}.govuk-input--width-2{max-width:2.75em}.govuk-input__wrapper{display:-ms-flexbox;display:flex}.govuk-input__wrapper .govuk-input{-ms-flex:0 1 auto;flex:0 1 auto}.govuk-input__wrapper .govuk-input:focus{z-index:1}@media (max-width: 19.99em){.govuk-input__wrapper{display:block}.govuk-input__wrapper .govuk-input{max-width:100%}}.govuk-input__prefix,.govuk-input__suffix{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:16px;font-size:1rem;line-height:1.25;box-sizing:border-box;display:inline-block;min-width:40px;min-width:2.5rem;height:40px;height:2.5rem;padding:5px;border:2px solid #0b0c0c;background-color:#f3f2f1;text-align:center;white-space:nowrap;cursor:default;-ms-flex:0 0 auto;flex:0 0 auto}@media print{.govuk-input__prefix,.govuk-input__suffix{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-input__prefix,.govuk-input__suffix{font-size:19px;font-size:1.1875rem;line-height:1.3157894737}}@media print{.govuk-input__prefix,.govuk-input__suffix{font-size:14pt;line-height:1.15}}@media (max-width: 40.0525em){.govuk-input__prefix,.govuk-input__suffix{line-height:1.6}}@media (max-width: 19.99em){.govuk-input__prefix,.govuk-input__suffix{display:block;height:100%;white-space:normal}}@media (max-width: 19.99em){.govuk-input__prefix{border-bottom:0}}@media (min-width: 20em){.govuk-input__prefix{border-right:0}}@media (max-width: 19.99em){.govuk-input__suffix{border-top:0}}@media (min-width: 20em){.govuk-input__suffix{border-left:0}}.govuk-date-input{font-size:0}.govuk-date-input:after{content:"";display:block;clear:both}.govuk-date-input__item{display:inline-block;margin-right:20px;margin-bottom:0}.govuk-date-input__label{display:block}.govuk-date-input__input{margin-bottom:0}.govuk-details{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:16px;font-size:1rem;line-height:1.25;color:#0b0c0c;margin-bottom:20px;display:block}@media print{.govuk-details{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-details{font-size:19px;font-size:1.1875rem;line-height:1.3157894737}}@media print{.govuk-details{font-size:14pt;line-height:1.15}}@media print{.govuk-details{color:#000}}@media (min-width: 40.0625em){.govuk-details{margin-bottom:30px}}.govuk-details__summary{display:inline-block;position:relative;margin-bottom:5px;padding-left:25px;color:#1d70b8;cursor:pointer}.govuk-details__summary:hover{color:#003078}.govuk-details__summary:focus{outline:3px solid transparent;color:#0b0c0c;background-color:#fd0;box-shadow:0 -2px #fd0,0 4px #0b0c0c;text-decoration:none;-webkit-box-decoration-break:clone;box-decoration-break:clone}.govuk-details__summary-text{text-decoration:underline}.govuk-details__summary:focus .govuk-details__summary-text{text-decoration:none}.govuk-details__summary::-webkit-details-marker{display:none}.govuk-details__summary:before{content:"";position:absolute;top:-1px;bottom:0;left:0;margin:auto;display:block;width:0;height:0;border-style:solid;border-color:transparent;-webkit-clip-path:polygon(0% 0%,100% 50%,0% 100%);clip-path:polygon(0% 0%,100% 50%,0% 100%);border-width:7px 0 7px 12.124px;border-left-color:inherit}.govuk-details[open]>.govuk-details__summary:before{display:block;width:0;height:0;border-style:solid;border-color:transparent;-webkit-clip-path:polygon(0% 0%,50% 100%,100% 0%);clip-path:polygon(0% 0%,50% 100%,100% 0%);border-width:12.124px 7px 0 7px;border-top-color:inherit}.govuk-details__text{padding-top:15px;padding-bottom:15px;padding-left:20px;border-left:5px solid #b1b4b6}.govuk-details__text p{margin-top:0;margin-bottom:20px}.govuk-details__text>:last-child{margin-bottom:0}.govuk-error-summary{color:#0b0c0c;padding:15px;margin-bottom:30px;border:5px solid #d4351c}@media print{.govuk-error-summary{color:#000}}@media (min-width: 40.0625em){.govuk-error-summary{padding:20px}}@media (min-width: 40.0625em){.govuk-error-summary{margin-bottom:50px}}.govuk-error-summary:focus{outline:3px solid #ffdd00}.govuk-error-summary__title{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:700;font-size:18px;font-size:1.125rem;line-height:1.1111111111;margin-top:0;margin-bottom:15px}@media print{.govuk-error-summary__title{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-error-summary__title{font-size:24px;font-size:1.5rem;line-height:1.25}}@media print{.govuk-error-summary__title{font-size:18pt;line-height:1.15}}@media (min-width: 40.0625em){.govuk-error-summary__title{margin-bottom:20px}}.govuk-error-summary__body{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:16px;font-size:1rem;line-height:1.25}@media print{.govuk-error-summary__body{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-error-summary__body{font-size:19px;font-size:1.1875rem;line-height:1.3157894737}}@media print{.govuk-error-summary__body{font-size:14pt;line-height:1.15}}.govuk-error-summary__body p{margin-top:0;margin-bottom:15px}@media (min-width: 40.0625em){.govuk-error-summary__body p{margin-bottom:20px}}.govuk-error-summary__list{margin-top:0;margin-bottom:0}.govuk-error-summary__list a{font-weight:700;font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:underline}@media print{.govuk-error-summary__list a{font-family:sans-serif}}.govuk-error-summary__list a:focus{outline:3px solid transparent;color:#0b0c0c;background-color:#fd0;box-shadow:0 -2px #fd0,0 4px #0b0c0c;text-decoration:none;-webkit-box-decoration-break:clone;box-decoration-break:clone}.govuk-error-summary__list a:link,.govuk-error-summary__list a:visited{color:#d4351c}.govuk-error-summary__list a:hover{color:#942514}.govuk-error-summary__list a:active{color:#d4351c}.govuk-error-summary__list a:focus{color:#0b0c0c}.govuk-exit-this-page{margin-bottom:30px;position:-webkit-sticky;position:sticky;z-index:1000;top:0;left:0;width:100%}@media (min-width: 40.0625em){.govuk-exit-this-page{margin-bottom:50px}}@media (min-width: 40.0625em){.govuk-exit-this-page{display:inline-block;right:0;left:auto;width:auto;float:right}}.govuk-exit-this-page__button{margin-bottom:0}.govuk-exit-this-page__indicator{padding:10px 10px 0;display:none;color:inherit;line-height:0;text-align:center;pointer-events:none}.govuk-exit-this-page__indicator--visible{display:block}.govuk-exit-this-page__indicator-light{box-sizing:border-box;display:inline-block;width:.75em;height:.75em;margin:0 .125em;border-width:2px;border-style:solid;border-radius:50%;border-color:currentcolor}.govuk-exit-this-page__indicator-light--on{border-width:.375em}@media only print{.govuk-exit-this-page{display:none}}.govuk-exit-this-page-overlay{position:fixed;z-index:9999;top:0;right:0;bottom:0;left:0;background-color:#fff}.govuk-exit-this-page-hide-content *{display:none!important}.govuk-exit-this-page-hide-content .govuk-exit-this-page-overlay{display:block!important}.govuk-file-upload{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:16px;font-size:1rem;line-height:1.25;color:#0b0c0c;max-width:100%;margin-left:-5px;padding:5px}@media print{.govuk-file-upload{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-file-upload{font-size:19px;font-size:1.1875rem;line-height:1.3157894737}}@media print{.govuk-file-upload{font-size:14pt;line-height:1.15}}@media print{.govuk-file-upload{color:#000}}.govuk-file-upload::-webkit-file-upload-button{-webkit-appearance:button;color:inherit;font:inherit}.govuk-file-upload:focus{outline:3px solid #ffdd00;box-shadow:inset 0 0 0 4px #0b0c0c}.govuk-file-upload:focus-within{outline:3px solid #ffdd00;box-shadow:inset 0 0 0 4px #0b0c0c}.govuk-file-upload:disabled{opacity:.5;cursor:not-allowed}.govuk-footer{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:14px;font-size:.875rem;line-height:1.1428571429;padding-top:25px;padding-bottom:15px;border-top:1px solid #b1b4b6;color:#0b0c0c;background:#f3f2f1}@media print{.govuk-footer{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-footer{font-size:16px;font-size:1rem;line-height:1.25}}@media print{.govuk-footer{font-size:14pt;line-height:1.2}}@media (min-width: 40.0625em){.govuk-footer{padding-top:40px}}@media (min-width: 40.0625em){.govuk-footer{padding-bottom:25px}}.govuk-footer__link{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:underline}@media print{.govuk-footer__link{font-family:sans-serif}}.govuk-footer__link:focus{outline:3px solid transparent;color:#0b0c0c;background-color:#fd0;box-shadow:0 -2px #fd0,0 4px #0b0c0c;text-decoration:none;-webkit-box-decoration-break:clone;box-decoration-break:clone}.govuk-footer__link:link,.govuk-footer__link:visited{color:#0b0c0c}@media print{.govuk-footer__link:link,.govuk-footer__link:visited{color:#000}}.govuk-footer__link:hover{color:#0b0c0cfc}.govuk-footer__link:active,.govuk-footer__link:focus{color:#0b0c0c}@media print{.govuk-footer__link:active,.govuk-footer__link:focus{color:#000}}.govuk-footer__section-break{margin:0 0 30px;border:0;border-bottom:1px solid #b1b4b6}@media (min-width: 40.0625em){.govuk-footer__section-break{margin-bottom:50px}}.govuk-footer__meta{display:-ms-flexbox;display:flex;margin-right:-15px;margin-left:-15px;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:center;justify-content:center}.govuk-footer__meta-item{margin-right:15px;margin-bottom:25px;margin-left:15px}.govuk-footer__meta-item--grow{-ms-flex:1;flex:1}@media (max-width: 40.0525em){.govuk-footer__meta-item--grow{-ms-flex-preferred-size:320px;flex-basis:320px}}.govuk-footer__licence-logo{display:inline-block;margin-right:10px;vertical-align:top;forced-color-adjust:auto}@media (max-width: 48.0525em){.govuk-footer__licence-logo{margin-bottom:15px}}.govuk-footer__licence-description{display:inline-block}.govuk-footer__copyright-logo{display:inline-block;min-width:125px;padding-top:112px;background-image:url(/atip/browse_dropdown_filters/assets/images/govuk-crest.png);background-repeat:no-repeat;background-position:50% 0%;background-size:125px 102px;text-align:center;white-space:nowrap}@media only screen and (-webkit-min-device-pixel-ratio: 2),only screen and (min-resolution: 192dpi),only screen and (min-resolution: 2dppx){.govuk-footer__copyright-logo{background-image:url(/atip/browse_dropdown_filters/assets/images/govuk-crest-2x.png)}}.govuk-footer__inline-list{margin-top:0;margin-bottom:15px;padding:0}.govuk-footer__meta-custom{margin-bottom:20px}.govuk-footer__inline-list-item{display:inline-block;margin-right:15px;margin-bottom:5px}.govuk-footer__heading{margin-bottom:30px;padding-bottom:20px;border-bottom:1px solid #b1b4b6}@media (max-width: 40.0525em){.govuk-footer__heading{padding-bottom:10px}}.govuk-footer__navigation{margin-right:-15px;margin-left:-15px}.govuk-footer__navigation:after{content:"";display:block;clear:both}.govuk-footer__section{display:inline-block;margin-bottom:30px;vertical-align:top}.govuk-footer__list{margin:0;padding:0;list-style:none;-webkit-column-gap:30px;column-gap:30px}@media (min-width: 48.0625em){.govuk-footer__list--columns-2{-webkit-column-count:2;column-count:2}.govuk-footer__list--columns-3{-webkit-column-count:3;column-count:3}}.govuk-footer__list-item{margin-bottom:15px}@media (min-width: 40.0625em){.govuk-footer__list-item{margin-bottom:20px}}.govuk-footer__list-item:last-child{margin-bottom:0}.govuk-header{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:14px;font-size:.875rem;line-height:1.1428571429;border-bottom:10px solid #ffffff;color:#fff;background:#0b0c0c}@media print{.govuk-header{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-header{font-size:16px;font-size:1rem;line-height:1.25}}@media print{.govuk-header{font-size:14pt;line-height:1.2}}.govuk-header__container--full-width{padding:0 15px;border-color:#1d70b8}.govuk-header__container--full-width .govuk-header__menu-button{right:15px}.govuk-header__container{position:relative;margin-bottom:-10px;padding-top:10px;border-bottom:10px solid #1d70b8}.govuk-header__container:after{content:"";display:block;clear:both}.govuk-header__logotype{display:inline-block;margin-right:5px}@media (forced-colors: active){.govuk-header__logotype{forced-color-adjust:none;color:linktext}}.govuk-header__logotype:last-child{margin-right:0}.govuk-header__logotype-crown{position:relative;top:-1px;margin-right:1px;fill:currentcolor;vertical-align:top}.govuk-header__logotype-crown-fallback-image{width:36px;height:32px;border:0;vertical-align:bottom}.govuk-header__product-name{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:18px;font-size:1.125rem;line-height:1;display:inline-table}@media print{.govuk-header__product-name{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-header__product-name{font-size:24px;font-size:1.5rem;line-height:1}}@media print{.govuk-header__product-name{font-size:18pt;line-height:1}}.govuk-header__link{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none}@media print{.govuk-header__link{font-family:sans-serif}}.govuk-header__link:link,.govuk-header__link:visited{color:#fff}.govuk-header__link:hover,.govuk-header__link:active{color:#fffffffc}.govuk-header__link:focus{color:#0b0c0c}.govuk-header__link:hover{text-decoration:underline;text-decoration-thickness:3px;text-underline-offset:.1578em}.govuk-header__link:focus{outline:3px solid transparent;color:#0b0c0c;background-color:#fd0;box-shadow:0 -2px #fd0,0 4px #0b0c0c;text-decoration:none;-webkit-box-decoration-break:clone;box-decoration-break:clone}.govuk-header__link--homepage{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:700;display:inline-block;margin-right:10px;font-size:30px;line-height:1}@media print{.govuk-header__link--homepage{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-header__link--homepage{display:inline}.govuk-header__link--homepage:focus{box-shadow:0 0 #fd0}}.govuk-header__link--homepage:link,.govuk-header__link--homepage:visited{text-decoration:none}.govuk-header__link--homepage:hover,.govuk-header__link--homepage:active{margin-bottom:-3px;border-bottom:3px solid}.govuk-header__link--homepage:focus{margin-bottom:0;border-bottom:0}.govuk-header__service-name,.govuk-header__link--service-name{display:inline-block;margin-bottom:10px;font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:700;font-size:18px;font-size:1.125rem;line-height:1.1111111111}@media print{.govuk-header__service-name,.govuk-header__link--service-name{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-header__service-name,.govuk-header__link--service-name{font-size:24px;font-size:1.5rem;line-height:1.25}}@media print{.govuk-header__service-name,.govuk-header__link--service-name{font-size:18pt;line-height:1.15}}.govuk-header__logo,.govuk-header__content{box-sizing:border-box}.govuk-header__logo{margin-bottom:10px;padding-right:50px}@media (min-width: 48.0625em){.govuk-header__logo{width:33.33%;padding-right:15px;float:left;vertical-align:top}}@media (min-width: 48.0625em){.govuk-header__content{width:66.66%;padding-left:15px;float:left}}.govuk-header__menu-button{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:14px;font-size:.875rem;line-height:1.1428571429;display:none;position:absolute;top:20px;right:0;margin:0;padding:0;border:0;color:#fff;background:none;cursor:pointer}@media print{.govuk-header__menu-button{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-header__menu-button{font-size:16px;font-size:1rem;line-height:1.25}}@media print{.govuk-header__menu-button{font-size:14pt;line-height:1.2}}.govuk-header__menu-button:hover{-webkit-text-decoration:solid underline 3px;text-decoration:solid underline 3px;text-underline-offset:.1578em}.govuk-header__menu-button:focus{outline:3px solid transparent;color:#0b0c0c;background-color:#fd0;box-shadow:0 -2px #fd0,0 4px #0b0c0c;text-decoration:none;-webkit-box-decoration-break:clone;box-decoration-break:clone}.govuk-header__menu-button:after{display:inline-block;width:0;height:0;border-style:solid;border-color:transparent;-webkit-clip-path:polygon(0% 0%,50% 100%,100% 0%);clip-path:polygon(0% 0%,50% 100%,100% 0%);border-width:8.66px 5px 0 5px;border-top-color:inherit;content:"";margin-left:5px}.govuk-header__menu-button[aria-expanded=true]:after{display:inline-block;width:0;height:0;border-style:solid;border-color:transparent;-webkit-clip-path:polygon(50% 0%,0% 100%,100% 100%);clip-path:polygon(50% 0%,0% 100%,100% 100%);border-width:0 5px 8.66px 5px;border-bottom-color:inherit}@media (min-width: 40.0625em){.govuk-header__menu-button{top:15px}}.js-enabled .govuk-header__menu-button{display:block}.govuk-header__menu-button[hidden],.js-enabled .govuk-header__menu-button[hidden]{display:none}@media (min-width: 48.0625em){.govuk-header__navigation{margin-bottom:10px}}.govuk-header__navigation-list{margin:0;padding:0;list-style:none}.govuk-header__navigation-list[hidden]{display:none}@media (min-width: 48.0625em){.govuk-header__navigation--end{margin:0;padding:5px 0;text-align:right}}.govuk-header__navigation--no-service-name{padding-top:40px}.govuk-header__navigation-item{padding:10px 0;border-bottom:1px solid #2e3133}@media (min-width: 48.0625em){.govuk-header__navigation-item{display:inline-block;margin-right:15px;padding:5px 0;border:0}}.govuk-header__navigation-item a{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:700;font-size:14px;font-size:.875rem;line-height:1.1428571429;white-space:nowrap}@media print{.govuk-header__navigation-item a{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-header__navigation-item a{font-size:16px;font-size:1rem;line-height:1.25}}@media print{.govuk-header__navigation-item a{font-size:14pt;line-height:1.2}}.govuk-header__navigation-item--active a:link,.govuk-header__navigation-item--active a:hover,.govuk-header__navigation-item--active a:visited{color:#1d8feb}@media print{.govuk-header__navigation-item--active a{color:#1d70b8}}.govuk-header__navigation-item--active a:focus{color:#0b0c0c}.govuk-header__navigation-item:last-child{margin-right:0;border-bottom:0}@media print{.govuk-header{border-bottom-width:0;color:#0b0c0c;background:transparent}.govuk-header__logotype-crown-fallback-image{display:none}.govuk-header__link:link,.govuk-header__link:visited{color:#0b0c0c}.govuk-header__link:after{display:none}}.govuk-inset-text{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:16px;font-size:1rem;line-height:1.25;color:#0b0c0c;padding:15px;margin-top:20px;margin-bottom:20px;clear:both;border-left:10px solid #b1b4b6}@media print{.govuk-inset-text{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-inset-text{font-size:19px;font-size:1.1875rem;line-height:1.3157894737}}@media print{.govuk-inset-text{font-size:14pt;line-height:1.15}}@media print{.govuk-inset-text{color:#000}}@media (min-width: 40.0625em){.govuk-inset-text{margin-top:30px}}@media (min-width: 40.0625em){.govuk-inset-text{margin-bottom:30px}}.govuk-inset-text>:first-child{margin-top:0}.govuk-inset-text>:only-child,.govuk-inset-text>:last-child{margin-bottom:0}.govuk-notification-banner{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:16px;font-size:1rem;line-height:1.25;margin-bottom:30px;border:5px solid #1d70b8;background-color:#1d70b8}@media print{.govuk-notification-banner{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-notification-banner{font-size:19px;font-size:1.1875rem;line-height:1.3157894737}}@media print{.govuk-notification-banner{font-size:14pt;line-height:1.15}}@media (min-width: 40.0625em){.govuk-notification-banner{margin-bottom:50px}}.govuk-notification-banner:focus{outline:3px solid #ffdd00}.govuk-notification-banner__header{padding:2px 15px 5px;border-bottom:1px solid transparent}@media (min-width: 40.0625em){.govuk-notification-banner__header{padding:2px 20px 5px}}.govuk-notification-banner__title{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:700;font-size:16px;font-size:1rem;line-height:1.25;margin:0;padding:0;color:#fff}@media print{.govuk-notification-banner__title{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-notification-banner__title{font-size:19px;font-size:1.1875rem;line-height:1.3157894737}}@media print{.govuk-notification-banner__title{font-size:14pt;line-height:1.15}}.govuk-notification-banner__content{color:#0b0c0c;padding:15px;background-color:#fff}@media print{.govuk-notification-banner__content{color:#000}}@media (min-width: 40.0625em){.govuk-notification-banner__content{padding:20px}}.govuk-notification-banner__content>*{box-sizing:border-box;max-width:605px}.govuk-notification-banner__content>:last-child{margin-bottom:0}.govuk-notification-banner__heading{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:700;font-size:18px;font-size:1.125rem;line-height:1.1111111111;margin:0 0 15px;padding:0}@media print{.govuk-notification-banner__heading{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-notification-banner__heading{font-size:24px;font-size:1.5rem;line-height:1.25}}@media print{.govuk-notification-banner__heading{font-size:18pt;line-height:1.15}}.govuk-notification-banner__link{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:underline}@media print{.govuk-notification-banner__link{font-family:sans-serif}}.govuk-notification-banner__link:focus{outline:3px solid transparent;color:#0b0c0c;background-color:#fd0;box-shadow:0 -2px #fd0,0 4px #0b0c0c;text-decoration:none;-webkit-box-decoration-break:clone;box-decoration-break:clone}.govuk-notification-banner__link:link,.govuk-notification-banner__link:visited{color:#1d70b8}.govuk-notification-banner__link:hover{color:#003078}.govuk-notification-banner__link:active{color:#0b0c0c}.govuk-notification-banner__link:focus{color:#0b0c0c}.govuk-notification-banner--success{border-color:#00703c;background-color:#00703c}.govuk-notification-banner--success .govuk-notification-banner__link:link,.govuk-notification-banner--success .govuk-notification-banner__link:visited{color:#00703c}.govuk-notification-banner--success .govuk-notification-banner__link:hover{color:#004e2a}.govuk-notification-banner--success .govuk-notification-banner__link:active{color:#00703c}.govuk-notification-banner--success .govuk-notification-banner__link:focus{color:#0b0c0c}.govuk-pagination{margin-bottom:20px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap}@media (min-width: 40.0625em){.govuk-pagination{margin-bottom:30px}}@media (min-width: 40.0625em){.govuk-pagination{-ms-flex-direction:row;flex-direction:row;-ms-flex-align:start;align-items:flex-start}}.govuk-pagination__list{margin:0;padding:0;list-style:none}.govuk-pagination__item,.govuk-pagination__next,.govuk-pagination__prev{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:16px;font-size:1rem;line-height:1.25;box-sizing:border-box;position:relative;min-width:45px;min-height:45px;padding:10px 15px;float:left}@media print{.govuk-pagination__item,.govuk-pagination__next,.govuk-pagination__prev{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-pagination__item,.govuk-pagination__next,.govuk-pagination__prev{font-size:19px;font-size:1.1875rem;line-height:1.3157894737}}@media print{.govuk-pagination__item,.govuk-pagination__next,.govuk-pagination__prev{font-size:14pt;line-height:1.15}}.govuk-pagination__item:hover,.govuk-pagination__next:hover,.govuk-pagination__prev:hover{background-color:#f3f2f1}.govuk-pagination__item{display:none;text-align:center}@media (min-width: 40.0625em){.govuk-pagination__item{display:block}}.govuk-pagination__prev,.govuk-pagination__next{font-weight:700}.govuk-pagination__prev .govuk-pagination__link,.govuk-pagination__next .govuk-pagination__link{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.govuk-pagination__prev{padding-left:0}.govuk-pagination__next{padding-right:0}.govuk-pagination__item--current,.govuk-pagination__item--ellipses,.govuk-pagination__item:first-child,.govuk-pagination__item:last-child{display:block}.govuk-pagination__item--current{font-weight:700;outline:1px solid transparent;background-color:#1d70b8}.govuk-pagination__item--current:hover{background-color:#1d70b8}.govuk-pagination__item--current .govuk-pagination__link:link,.govuk-pagination__item--current .govuk-pagination__link:visited{color:#fff}.govuk-pagination__item--current .govuk-pagination__link:hover,.govuk-pagination__item--current .govuk-pagination__link:active{color:#fffffffc}.govuk-pagination__item--current .govuk-pagination__link:focus{color:#0b0c0c}.govuk-pagination__item--ellipses{font-weight:700;color:#505a5f}.govuk-pagination__item--ellipses:hover{background-color:transparent}.govuk-pagination__link{display:block;min-width:15px}@media screen{.govuk-pagination__link:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0}}.govuk-pagination__link:hover .govuk-pagination__link-title--decorated,.govuk-pagination__link:active .govuk-pagination__link-title--decorated{text-decoration:underline}.govuk-pagination__link:focus .govuk-pagination__icon{color:#0b0c0c}.govuk-pagination__link:focus .govuk-pagination__link-label{text-decoration:none}.govuk-pagination__link:focus .govuk-pagination__link-title--decorated{text-decoration:none}.govuk-pagination__link-label{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:16px;font-size:1rem;line-height:1.25;text-decoration:underline;display:inline-block;padding-left:30px}@media print{.govuk-pagination__link-label{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-pagination__link-label{font-size:19px;font-size:1.1875rem;line-height:1.3157894737}}@media print{.govuk-pagination__link-label{font-size:14pt;line-height:1.15}}.govuk-pagination__icon{width:.9375rem;height:.8125rem;color:#505a5f;fill:currentcolor;forced-color-adjust:auto}.govuk-pagination__icon--prev{margin-right:15px}.govuk-pagination__icon--next{margin-left:15px}.govuk-pagination--block{display:block}.govuk-pagination--block .govuk-pagination__item{padding:15px;float:none}.govuk-pagination--block .govuk-pagination__next,.govuk-pagination--block .govuk-pagination__prev{padding-left:0;float:none}.govuk-pagination--block .govuk-pagination__next{padding-right:15px}.govuk-pagination--block .govuk-pagination__next .govuk-pagination__icon{margin-left:0}.govuk-pagination--block .govuk-pagination__prev+.govuk-pagination__next{border-top:1px solid #b1b4b6}.govuk-pagination--block .govuk-pagination__link,.govuk-pagination--block .govuk-pagination__link-title{display:inline}.govuk-pagination--block .govuk-pagination__link-title:after{content:"";display:block}.govuk-pagination--block .govuk-pagination__link{text-align:left}.govuk-pagination--block .govuk-pagination__link:focus .govuk-pagination__link-label{outline:3px solid transparent;color:#0b0c0c;background-color:#fd0;box-shadow:0 -2px #fd0,0 4px #0b0c0c;text-decoration:none;-webkit-box-decoration-break:clone;box-decoration-break:clone}.govuk-pagination--block .govuk-pagination__link:not(:focus){text-decoration:none}.govuk-pagination--block .govuk-pagination__icon{margin-right:10px}.govuk-panel{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:16px;font-size:1rem;line-height:1.25;box-sizing:border-box;margin-bottom:15px;padding:35px;border:5px solid transparent;text-align:center}@media print{.govuk-panel{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-panel{font-size:19px;font-size:1.1875rem;line-height:1.3157894737}}@media print{.govuk-panel{font-size:14pt;line-height:1.15}}@media (max-width: 40.0525em){.govuk-panel{padding:10px;overflow-wrap:break-word;word-wrap:break-word}}.govuk-panel--confirmation{color:#fff;background:#00703c}@media print{.govuk-panel--confirmation{border-color:currentcolor;color:#000;background:none}}.govuk-panel__title{margin-top:0;margin-bottom:30px;font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:700;font-size:32px;font-size:2rem;line-height:1.09375}@media print{.govuk-panel__title{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-panel__title{font-size:48px;font-size:3rem;line-height:1.0416666667}}@media print{.govuk-panel__title{font-size:32pt;line-height:1.15}}.govuk-panel__title:last-child{margin-bottom:0}.govuk-panel__body{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:24px;font-size:1.5rem;line-height:1.0416666667}@media print{.govuk-panel__body{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-panel__body{font-size:36px;font-size:2.25rem;line-height:1.1111111111}}@media print{.govuk-panel__body{font-size:24pt;line-height:1.05}}.govuk-tag{display:inline-block;outline:2px solid transparent;outline-offset:-2px;color:#fff;background-color:#1d70b8;letter-spacing:1px;text-decoration:none;text-transform:uppercase;font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:700;font-size:14px;font-size:.875rem;line-height:1;padding:5px 8px 4px}@media print{.govuk-tag{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-tag{font-size:16px;font-size:1rem;line-height:1}}@media print{.govuk-tag{font-size:14pt;line-height:1}}.govuk-tag--grey{color:#383f43;background:#eeefef}.govuk-tag--purple{color:#3d2375;background:#dbd5e9}.govuk-tag--turquoise{color:#10403c;background:#bfe3e0}.govuk-tag--blue{color:#144e81;background:#d2e2f1}.govuk-tag--yellow{color:#594d00;background:#fff7bf}.govuk-tag--orange{color:#6e3619;background:#fcd6c3}.govuk-tag--red{color:#942514;background:#f6d7d2}.govuk-tag--pink{color:#80224d;background:#f7d7e6}.govuk-tag--green{color:#005a30;background:#cce2d8}.govuk-phase-banner{padding-top:10px;padding-bottom:10px;border-bottom:1px solid #b1b4b6}.govuk-phase-banner__content{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:14px;font-size:.875rem;line-height:1.1428571429;color:#0b0c0c;display:table;margin:0}@media print{.govuk-phase-banner__content{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-phase-banner__content{font-size:16px;font-size:1rem;line-height:1.25}}@media print{.govuk-phase-banner__content{font-size:14pt;line-height:1.2}}@media print{.govuk-phase-banner__content{color:#000}}.govuk-phase-banner__content__tag{margin-right:10px}.govuk-phase-banner__text{display:table-cell;vertical-align:middle}.govuk-tabs{margin-top:5px;margin-bottom:20px}@media (min-width: 40.0625em){.govuk-tabs{margin-bottom:30px}}.govuk-tabs__title{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:16px;font-size:1rem;line-height:1.25;color:#0b0c0c;margin-bottom:10px}@media print{.govuk-tabs__title{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-tabs__title{font-size:19px;font-size:1.1875rem;line-height:1.3157894737}}@media print{.govuk-tabs__title{font-size:14pt;line-height:1.15}}@media print{.govuk-tabs__title{color:#000}}.govuk-tabs__list{margin:0 0 20px;padding:0;list-style:none}@media (min-width: 40.0625em){.govuk-tabs__list{margin-bottom:30px}}.govuk-tabs__list-item{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:16px;font-size:1rem;line-height:1.25;margin-left:25px}@media print{.govuk-tabs__list-item{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-tabs__list-item{font-size:19px;font-size:1.1875rem;line-height:1.3157894737}}@media print{.govuk-tabs__list-item{font-size:14pt;line-height:1.15}}.govuk-tabs__list-item:before{color:#0b0c0c;content:"—";margin-left:-25px;padding-right:5px}@media print{.govuk-tabs__list-item:before{color:#000}}.govuk-tabs__tab{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:underline;display:inline-block;margin-bottom:10px}@media print{.govuk-tabs__tab{font-family:sans-serif}}.govuk-tabs__tab:focus{outline:3px solid transparent;color:#0b0c0c;background-color:#fd0;box-shadow:0 -2px #fd0,0 4px #0b0c0c;text-decoration:none;-webkit-box-decoration-break:clone;box-decoration-break:clone}.govuk-tabs__tab:link{color:#1d70b8}.govuk-tabs__tab:visited{color:#4c2c92}.govuk-tabs__tab:hover{color:#003078}.govuk-tabs__tab:active{color:#0b0c0c}.govuk-tabs__tab:focus{color:#0b0c0c}.govuk-tabs__panel{margin-bottom:30px}@media (min-width: 40.0625em){.govuk-tabs__panel{margin-bottom:50px}}@media (min-width: 40.0625em){.js-enabled .govuk-tabs__list{margin-bottom:0;border-bottom:1px solid #b1b4b6}.js-enabled .govuk-tabs__list:after{content:"";display:block;clear:both}.js-enabled .govuk-tabs__title{display:none}.js-enabled .govuk-tabs__list-item{position:relative;margin-right:5px;margin-bottom:0;margin-left:0;padding:10px 20px;float:left;background-color:#f3f2f1;text-align:center}.js-enabled .govuk-tabs__list-item:before{content:none}.js-enabled .govuk-tabs__list-item--selected{position:relative;margin-top:-5px;margin-bottom:-1px;padding:14px 19px 16px;border:1px solid #b1b4b6;border-bottom:0;background-color:#fff}.js-enabled .govuk-tabs__list-item--selected .govuk-tabs__tab{text-decoration:none}.js-enabled .govuk-tabs__tab{margin-bottom:0}.js-enabled .govuk-tabs__tab:link,.js-enabled .govuk-tabs__tab:visited{color:#0b0c0c}}@media print and (min-width: 40.0625em){.js-enabled .govuk-tabs__tab:link,.js-enabled .govuk-tabs__tab:visited{color:#000}}@media (min-width: 40.0625em){.js-enabled .govuk-tabs__tab:hover{color:#0b0c0cfc}.js-enabled .govuk-tabs__tab:active,.js-enabled .govuk-tabs__tab:focus{color:#0b0c0c}}@media print and (min-width: 40.0625em){.js-enabled .govuk-tabs__tab:active,.js-enabled .govuk-tabs__tab:focus{color:#000}}@media (min-width: 40.0625em){.js-enabled .govuk-tabs__tab:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0}.js-enabled .govuk-tabs__panel{margin-bottom:0;padding:30px 20px;border:1px solid #b1b4b6;border-top:0}.js-enabled .govuk-tabs__panel>:last-child{margin-bottom:0}.js-enabled .govuk-tabs__panel--hidden{display:none}}.govuk-radios__item{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:16px;font-size:1rem;line-height:1.25;display:block;position:relative;min-height:40px;margin-bottom:10px;padding-left:40px;clear:left}@media print{.govuk-radios__item{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-radios__item{font-size:19px;font-size:1.1875rem;line-height:1.3157894737}}@media print{.govuk-radios__item{font-size:14pt;line-height:1.15}}.govuk-radios__item:last-child,.govuk-radios__item:last-of-type{margin-bottom:0}.govuk-radios__input{cursor:pointer;position:absolute;z-index:1;top:-2px;left:-2px;width:44px;height:44px;margin:0;opacity:0}.govuk-radios__label{display:inline-block;margin-bottom:0;padding:8px 15px 5px;cursor:pointer;-ms-touch-action:manipulation;touch-action:manipulation}.govuk-radios__label:before{content:"";box-sizing:border-box;position:absolute;top:0;left:0;width:40px;height:40px;border:2px solid currentcolor;border-radius:50%;background:transparent}.govuk-radios__label:after{content:"";position:absolute;top:10px;left:10px;width:0;height:0;border:10px solid currentcolor;border-radius:50%;opacity:0;background:currentcolor}.govuk-radios__hint{display:block;padding-right:15px;padding-left:15px}.govuk-radios__input:focus+.govuk-radios__label:before{border-width:4px;outline:3px solid transparent;outline-offset:1px;box-shadow:0 0 0 4px #fd0}@media screen and (forced-colors: active),(-ms-high-contrast: active){.govuk-radios__input:focus+.govuk-radios__label:before{outline-color:Highlight}}.govuk-radios__input:checked+.govuk-radios__label:after{opacity:1}.govuk-radios__input:disabled,.govuk-radios__input:disabled+.govuk-radios__label{cursor:not-allowed}.govuk-radios__input:disabled+.govuk-radios__label,.govuk-radios__input:disabled~.govuk-hint{opacity:.5}@media (min-width: 40.0625em){.govuk-radios--inline:after{content:"";display:block;clear:both}.govuk-radios--inline .govuk-radios__item{margin-right:20px;float:left;clear:none}}.govuk-radios__divider{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:16px;font-size:1rem;line-height:1.25;color:#0b0c0c;width:40px;margin-bottom:10px;text-align:center}@media print{.govuk-radios__divider{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-radios__divider{font-size:19px;font-size:1.1875rem;line-height:1.3157894737}}@media print{.govuk-radios__divider{font-size:14pt;line-height:1.15}}@media print{.govuk-radios__divider{color:#000}}.govuk-radios__conditional{margin-bottom:15px;margin-left:18px;padding-left:33px;border-left:4px solid #b1b4b6}@media (min-width: 40.0625em){.govuk-radios__conditional{margin-bottom:20px}}.js-enabled .govuk-radios__conditional--hidden{display:none}.govuk-radios__conditional>:last-child{margin-bottom:0}.govuk-radios--small .govuk-radios__item{min-height:0;margin-bottom:0;padding-left:34px;float:left}.govuk-radios--small .govuk-radios__item:after{content:"";display:block;clear:both}.govuk-radios--small .govuk-radios__input{left:-10px}.govuk-radios--small .govuk-radios__label{margin-top:-2px;padding:13px 15px 13px 1px;float:left}@media (min-width: 40.0625em){.govuk-radios--small .govuk-radios__label{padding:11px 15px 10px 1px}}.govuk-radios--small .govuk-radios__label:before{top:8px;width:24px;height:24px}.govuk-radios--small .govuk-radios__label:after{top:15px;left:7px;border-width:5px}.govuk-radios--small .govuk-radios__hint{padding:0;clear:both;pointer-events:none}.govuk-radios--small .govuk-radios__conditional{margin-left:10px;padding-left:20px;clear:both}.govuk-radios--small .govuk-radios__divider{width:24px;margin-bottom:5px}.govuk-radios--small .govuk-radios__item:hover .govuk-radios__input:not(:disabled)+.govuk-radios__label:before{box-shadow:0 0 0 10px #b1b4b6}.govuk-radios--small .govuk-radios__item:hover .govuk-radios__input:focus+.govuk-radios__label:before{box-shadow:0 0 0 4px #fd0,0 0 0 10px #b1b4b6}@media (hover: none),(pointer: coarse){.govuk-radios--small .govuk-radios__item:hover .govuk-radios__input:not(:disabled)+.govuk-radios__label:before{box-shadow:initial}.govuk-radios--small .govuk-radios__item:hover .govuk-radios__input:focus+.govuk-radios__label:before{box-shadow:0 0 0 4px #fd0}}.govuk-select{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:16px;font-size:1rem;line-height:1.25;box-sizing:border-box;min-width:11.5em;max-width:100%;height:40px;height:2.5rem;padding:5px;border:2px solid #0b0c0c;color:#0b0c0c;background-color:#fff}@media print{.govuk-select{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-select{font-size:19px;font-size:1.1875rem;line-height:1.25}}@media print{.govuk-select{font-size:14pt;line-height:1.25}}.govuk-select:focus{outline:3px solid #ffdd00;outline-offset:0;box-shadow:inset 0 0 0 2px}.govuk-select:disabled{opacity:.5;color:inherit;cursor:not-allowed}.govuk-select option:active,.govuk-select option:checked,.govuk-select:focus::-ms-value{color:#fff;background-color:#1d70b8}.govuk-select--error{border-color:#d4351c}.govuk-select--error:focus{border-color:#0b0c0c}.govuk-skip-link{position:absolute!important;width:1px!important;height:1px!important;margin:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;-webkit-clip-path:inset(50%)!important;clip-path:inset(50%)!important;white-space:nowrap!important;font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:underline;font-size:14px;font-size:.875rem;line-height:1.1428571429;display:block;padding:10px 15px}.govuk-skip-link:active,.govuk-skip-link:focus{position:static!important;width:auto!important;height:auto!important;margin:inherit!important;overflow:visible!important;clip:auto!important;-webkit-clip-path:none!important;clip-path:none!important;white-space:inherit!important}@media print{.govuk-skip-link{font-family:sans-serif}}.govuk-skip-link:link,.govuk-skip-link:visited{color:#0b0c0c}@media print{.govuk-skip-link:link,.govuk-skip-link:visited{color:#000}}.govuk-skip-link:hover{color:#0b0c0cfc}.govuk-skip-link:active,.govuk-skip-link:focus{color:#0b0c0c}@media print{.govuk-skip-link:active,.govuk-skip-link:focus{color:#000}}@media (min-width: 40.0625em){.govuk-skip-link{font-size:16px;font-size:1rem;line-height:1.25}}@media print{.govuk-skip-link{font-size:14pt;line-height:1.2}}@supports (padding: max(0px)){.govuk-skip-link{padding-right:max(15px,calc(15px + env(safe-area-inset-right)));padding-left:max(15px,calc(15px + env(safe-area-inset-left)))}}.govuk-skip-link:focus{outline:3px solid #ffdd00;outline-offset:0;background-color:#fd0}.govuk-skip-link-focused-element:focus{outline:none}.govuk-summary-list{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:16px;font-size:1rem;line-height:1.25;color:#0b0c0c;margin:0 0 20px}@media print{.govuk-summary-list{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-summary-list{font-size:19px;font-size:1.1875rem;line-height:1.3157894737}}@media print{.govuk-summary-list{font-size:14pt;line-height:1.15}}@media print{.govuk-summary-list{color:#000}}@media (min-width: 40.0625em){.govuk-summary-list{display:table;width:100%;table-layout:fixed;border-collapse:collapse}}@media (min-width: 40.0625em){.govuk-summary-list{margin-bottom:30px}}.govuk-summary-list__row{border-bottom:1px solid #b1b4b6}@media (max-width: 40.0525em){.govuk-summary-list__row{margin-bottom:15px}}@media (min-width: 40.0625em){.govuk-summary-list__row{display:table-row}}.govuk-summary-list__row:not(.govuk-summary-list__row--no-actions)>:last-child{padding-right:0}@media (min-width: 40.0625em){.govuk-summary-list__row--no-actions:after{content:"";display:table-cell;width:20%}}.govuk-summary-list__key,.govuk-summary-list__value,.govuk-summary-list__actions{margin:0}@media (min-width: 40.0625em){.govuk-summary-list__key,.govuk-summary-list__value,.govuk-summary-list__actions{display:table-cell;padding-top:10px;padding-right:20px;padding-bottom:10px}}.govuk-summary-list__actions{margin-bottom:15px}@media (min-width: 40.0625em){.govuk-summary-list__actions{width:20%;padding-right:0;text-align:right}}.govuk-summary-list__key,.govuk-summary-list__value{word-wrap:break-word;overflow-wrap:break-word}.govuk-summary-list__key{margin-bottom:5px;font-weight:700}@media (min-width: 40.0625em){.govuk-summary-list__key{width:30%}}@media (max-width: 40.0525em){.govuk-summary-list__value{margin-bottom:15px}}.govuk-summary-list__value>p{margin-bottom:10px}.govuk-summary-list__value>:last-child{margin-bottom:0}.govuk-summary-list__actions-list{width:100%;margin:0;padding:0}.govuk-summary-list__actions-list-item{display:inline-block}@media (max-width: 40.0525em){.govuk-summary-list__actions-list-item{margin-right:10px;padding-right:10px}.govuk-summary-list__actions-list-item:not(:last-child){border-right:1px solid #b1b4b6}.govuk-summary-list__actions-list-item:last-child{margin-right:0;padding-right:0;border:0}}@media (min-width: 40.0625em){.govuk-summary-list__actions-list-item{margin-left:10px;padding-left:10px}.govuk-summary-list__actions-list-item:not(:first-child){border-left:1px solid #b1b4b6}.govuk-summary-list__actions-list-item:first-child{margin-left:0;padding-left:0;border:0}}.govuk-summary-list--no-border .govuk-summary-list__row{border:0}@media (min-width: 40.0625em){.govuk-summary-list--no-border .govuk-summary-list__key,.govuk-summary-list--no-border .govuk-summary-list__value,.govuk-summary-list--no-border .govuk-summary-list__actions{padding-bottom:11px}}.govuk-summary-list__row--no-border{border:0}@media (min-width: 40.0625em){.govuk-summary-list__row--no-border .govuk-summary-list__key,.govuk-summary-list__row--no-border .govuk-summary-list__value,.govuk-summary-list__row--no-border .govuk-summary-list__actions{padding-bottom:11px}}.govuk-summary-card{margin-bottom:20px;border:1px solid #b1b4b6}@media (min-width: 40.0625em){.govuk-summary-card{margin-bottom:30px}}.govuk-summary-card__title-wrapper{padding:15px;border-bottom:1px solid transparent;background-color:#f3f2f1}@media (min-width: 40.0625em){.govuk-summary-card__title-wrapper{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-wrap:nowrap;flex-wrap:nowrap;padding:15px 20px}}.govuk-summary-card__title{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:700;font-size:16px;font-size:1rem;line-height:1.25;margin:5px 20px 10px 0}@media print{.govuk-summary-card__title{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-summary-card__title{font-size:19px;font-size:1.1875rem;line-height:1.3157894737}}@media print{.govuk-summary-card__title{font-size:14pt;line-height:1.15}}@media (min-width: 40.0625em){.govuk-summary-card__title{margin-bottom:5px}}.govuk-summary-card__actions{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:700;font-size:16px;font-size:1rem;line-height:1.25;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;row-gap:10px;margin:5px 0;padding:0;list-style:none}@media print{.govuk-summary-card__actions{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-summary-card__actions{font-size:19px;font-size:1.1875rem;line-height:1.3157894737}}@media print{.govuk-summary-card__actions{font-size:14pt;line-height:1.15}}@media (min-width: 40.0625em){.govuk-summary-card__actions{-ms-flex-pack:right;justify-content:right;text-align:right}}.govuk-summary-card__action{display:inline;margin:0 10px 0 0;padding-right:10px;border-right:1px solid #b1b4b6}@media (min-width: 40.0625em){.govuk-summary-card__action{margin-right:0}}@media screen and (-ms-high-contrast: active),(-ms-high-contrast: none){.govuk-summary-card__action{margin-bottom:5px}}.govuk-summary-card__action:last-child{margin:0;padding-right:0;border-right:none}@media (min-width: 40.0625em){.govuk-summary-card__action:last-child{padding-left:10px}}@media screen and (-ms-high-contrast: active),(-ms-high-contrast: none){.govuk-summary-card__action:last-child{margin-bottom:0}}.govuk-summary-card__content{padding:15px 15px 0}@media (min-width: 40.0625em){.govuk-summary-card__content{padding:15px 20px}}.govuk-summary-card__content .govuk-summary-list{margin-bottom:0}.govuk-summary-card__content .govuk-summary-list__row:last-of-type{margin-bottom:0;border-bottom:none}.govuk-table{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:16px;font-size:1rem;line-height:1.25;color:#0b0c0c;width:100%;margin-bottom:20px;border-spacing:0;border-collapse:collapse}@media print{.govuk-table{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-table{font-size:19px;font-size:1.1875rem;line-height:1.3157894737}}@media print{.govuk-table{font-size:14pt;line-height:1.15}}@media print{.govuk-table{color:#000}}@media (min-width: 40.0625em){.govuk-table{margin-bottom:30px}}.govuk-table__header{font-weight:700}.govuk-table__header,.govuk-table__cell{padding:10px 20px 10px 0;border-bottom:1px solid #b1b4b6;text-align:left;vertical-align:top}.govuk-table__cell--numeric{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-font-feature-settings:"tnum" 1;font-feature-settings:"tnum" 1;font-weight:400}@media print{.govuk-table__cell--numeric{font-family:sans-serif}}@supports (font-variant-numeric: tabular-nums){.govuk-table__cell--numeric{-webkit-font-feature-settings:normal;font-feature-settings:normal;font-variant-numeric:tabular-nums}}.govuk-table__header--numeric,.govuk-table__cell--numeric{text-align:right}.govuk-table__header:last-child,.govuk-table__cell:last-child{padding-right:0}.govuk-table__caption{font-weight:700;display:table-caption;text-align:left}.govuk-table__caption--xl{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:700;font-size:32px;font-size:2rem;line-height:1.09375;margin-bottom:15px}@media print{.govuk-table__caption--xl{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-table__caption--xl{font-size:48px;font-size:3rem;line-height:1.0416666667}}@media print{.govuk-table__caption--xl{font-size:32pt;line-height:1.15}}.govuk-table__caption--l{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:700;font-size:24px;font-size:1.5rem;line-height:1.0416666667;margin-bottom:15px}@media print{.govuk-table__caption--l{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-table__caption--l{font-size:36px;font-size:2.25rem;line-height:1.1111111111}}@media print{.govuk-table__caption--l{font-size:24pt;line-height:1.05}}.govuk-table__caption--m{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:700;font-size:18px;font-size:1.125rem;line-height:1.1111111111;margin-bottom:15px}@media print{.govuk-table__caption--m{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-table__caption--m{font-size:24px;font-size:1.5rem;line-height:1.25}}@media print{.govuk-table__caption--m{font-size:18pt;line-height:1.15}}.govuk-table__caption--s{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:700;font-size:16px;font-size:1rem;line-height:1.25}@media print{.govuk-table__caption--s{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-table__caption--s{font-size:19px;font-size:1.1875rem;line-height:1.3157894737}}@media print{.govuk-table__caption--s{font-size:14pt;line-height:1.15}}.govuk-warning-text{position:relative;margin-bottom:20px;padding:10px 0}@media (min-width: 40.0625em){.govuk-warning-text{margin-bottom:30px}}.govuk-warning-text__assistive{position:absolute!important;width:1px!important;height:1px!important;margin:0!important;padding:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;-webkit-clip-path:inset(50%)!important;clip-path:inset(50%)!important;border:0!important;white-space:nowrap!important}.govuk-warning-text__assistive:before{content:" "}.govuk-warning-text__assistive:after{content:" "}.govuk-warning-text__icon{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:700;box-sizing:border-box;display:inline-block;position:absolute;left:0;min-width:35px;min-height:35px;margin-top:-7px;border:3px solid #0b0c0c;border-radius:50%;color:#fff;background:#0b0c0c;font-size:30px;line-height:29px;text-align:center;-webkit-user-select:none;-ms-user-select:none;user-select:none;forced-color-adjust:none}@media print{.govuk-warning-text__icon{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-warning-text__icon{margin-top:-5px}}@media screen and (forced-colors: active){.govuk-warning-text__icon{border-color:windowText;color:windowText;background:transparent}}.govuk-warning-text__text{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:700;font-size:16px;font-size:1rem;line-height:1.25;color:#0b0c0c;display:block;padding-left:45px}@media print{.govuk-warning-text__text{font-family:sans-serif}}@media (min-width: 40.0625em){.govuk-warning-text__text{font-size:19px;font-size:1.1875rem;line-height:1.3157894737}}@media print{.govuk-warning-text__text{font-size:14pt;line-height:1.15}}@media print{.govuk-warning-text__text{color:#000}}.govuk-clearfix:after{content:"";display:block;clear:both}.govuk-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;margin:0!important;padding:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;-webkit-clip-path:inset(50%)!important;clip-path:inset(50%)!important;border:0!important;white-space:nowrap!important}.govuk-visually-hidden:before{content:" "}.govuk-visually-hidden:after{content:" "}.govuk-visually-hidden-focusable{position:absolute!important;width:1px!important;height:1px!important;margin:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;-webkit-clip-path:inset(50%)!important;clip-path:inset(50%)!important;white-space:nowrap!important}.govuk-visually-hidden-focusable:active,.govuk-visually-hidden-focusable:focus{position:static!important;width:auto!important;height:auto!important;margin:inherit!important;overflow:visible!important;clip:auto!important;-webkit-clip-path:none!important;clip-path:none!important;white-space:inherit!important}.govuk-\!-display-inline{display:inline!important}.govuk-\!-display-inline-block{display:inline-block!important}.govuk-\!-display-block{display:block!important}.govuk-\!-display-none{display:none!important}@media print{.govuk-\!-display-none-print{display:none!important}}.govuk-\!-margin-0{margin:0!important}.govuk-\!-margin-top-0{margin-top:0!important}.govuk-\!-margin-right-0{margin-right:0!important}.govuk-\!-margin-bottom-0{margin-bottom:0!important}.govuk-\!-margin-left-0{margin-left:0!important}.govuk-\!-margin-1{margin:5px!important}.govuk-\!-margin-top-1{margin-top:5px!important}.govuk-\!-margin-right-1{margin-right:5px!important}.govuk-\!-margin-bottom-1{margin-bottom:5px!important}.govuk-\!-margin-left-1{margin-left:5px!important}.govuk-\!-margin-2{margin:10px!important}.govuk-\!-margin-top-2{margin-top:10px!important}.govuk-\!-margin-right-2{margin-right:10px!important}.govuk-\!-margin-bottom-2{margin-bottom:10px!important}.govuk-\!-margin-left-2{margin-left:10px!important}.govuk-\!-margin-3{margin:15px!important}.govuk-\!-margin-top-3{margin-top:15px!important}.govuk-\!-margin-right-3{margin-right:15px!important}.govuk-\!-margin-bottom-3{margin-bottom:15px!important}.govuk-\!-margin-left-3{margin-left:15px!important}.govuk-\!-margin-4{margin:15px!important}@media (min-width: 40.0625em){.govuk-\!-margin-4{margin:20px!important}}.govuk-\!-margin-top-4{margin-top:15px!important}@media (min-width: 40.0625em){.govuk-\!-margin-top-4{margin-top:20px!important}}.govuk-\!-margin-right-4{margin-right:15px!important}@media (min-width: 40.0625em){.govuk-\!-margin-right-4{margin-right:20px!important}}.govuk-\!-margin-bottom-4{margin-bottom:15px!important}@media (min-width: 40.0625em){.govuk-\!-margin-bottom-4{margin-bottom:20px!important}}.govuk-\!-margin-left-4{margin-left:15px!important}@media (min-width: 40.0625em){.govuk-\!-margin-left-4{margin-left:20px!important}}.govuk-\!-margin-5{margin:15px!important}@media (min-width: 40.0625em){.govuk-\!-margin-5{margin:25px!important}}.govuk-\!-margin-top-5{margin-top:15px!important}@media (min-width: 40.0625em){.govuk-\!-margin-top-5{margin-top:25px!important}}.govuk-\!-margin-right-5{margin-right:15px!important}@media (min-width: 40.0625em){.govuk-\!-margin-right-5{margin-right:25px!important}}.govuk-\!-margin-bottom-5{margin-bottom:15px!important}@media (min-width: 40.0625em){.govuk-\!-margin-bottom-5{margin-bottom:25px!important}}.govuk-\!-margin-left-5{margin-left:15px!important}@media (min-width: 40.0625em){.govuk-\!-margin-left-5{margin-left:25px!important}}.govuk-\!-margin-6{margin:20px!important}@media (min-width: 40.0625em){.govuk-\!-margin-6{margin:30px!important}}.govuk-\!-margin-top-6{margin-top:20px!important}@media (min-width: 40.0625em){.govuk-\!-margin-top-6{margin-top:30px!important}}.govuk-\!-margin-right-6{margin-right:20px!important}@media (min-width: 40.0625em){.govuk-\!-margin-right-6{margin-right:30px!important}}.govuk-\!-margin-bottom-6{margin-bottom:20px!important}@media (min-width: 40.0625em){.govuk-\!-margin-bottom-6{margin-bottom:30px!important}}.govuk-\!-margin-left-6{margin-left:20px!important}@media (min-width: 40.0625em){.govuk-\!-margin-left-6{margin-left:30px!important}}.govuk-\!-margin-7{margin:25px!important}@media (min-width: 40.0625em){.govuk-\!-margin-7{margin:40px!important}}.govuk-\!-margin-top-7{margin-top:25px!important}@media (min-width: 40.0625em){.govuk-\!-margin-top-7{margin-top:40px!important}}.govuk-\!-margin-right-7{margin-right:25px!important}@media (min-width: 40.0625em){.govuk-\!-margin-right-7{margin-right:40px!important}}.govuk-\!-margin-bottom-7{margin-bottom:25px!important}@media (min-width: 40.0625em){.govuk-\!-margin-bottom-7{margin-bottom:40px!important}}.govuk-\!-margin-left-7{margin-left:25px!important}@media (min-width: 40.0625em){.govuk-\!-margin-left-7{margin-left:40px!important}}.govuk-\!-margin-8{margin:30px!important}@media (min-width: 40.0625em){.govuk-\!-margin-8{margin:50px!important}}.govuk-\!-margin-top-8{margin-top:30px!important}@media (min-width: 40.0625em){.govuk-\!-margin-top-8{margin-top:50px!important}}.govuk-\!-margin-right-8{margin-right:30px!important}@media (min-width: 40.0625em){.govuk-\!-margin-right-8{margin-right:50px!important}}.govuk-\!-margin-bottom-8{margin-bottom:30px!important}@media (min-width: 40.0625em){.govuk-\!-margin-bottom-8{margin-bottom:50px!important}}.govuk-\!-margin-left-8{margin-left:30px!important}@media (min-width: 40.0625em){.govuk-\!-margin-left-8{margin-left:50px!important}}.govuk-\!-margin-9{margin:40px!important}@media (min-width: 40.0625em){.govuk-\!-margin-9{margin:60px!important}}.govuk-\!-margin-top-9{margin-top:40px!important}@media (min-width: 40.0625em){.govuk-\!-margin-top-9{margin-top:60px!important}}.govuk-\!-margin-right-9{margin-right:40px!important}@media (min-width: 40.0625em){.govuk-\!-margin-right-9{margin-right:60px!important}}.govuk-\!-margin-bottom-9{margin-bottom:40px!important}@media (min-width: 40.0625em){.govuk-\!-margin-bottom-9{margin-bottom:60px!important}}.govuk-\!-margin-left-9{margin-left:40px!important}@media (min-width: 40.0625em){.govuk-\!-margin-left-9{margin-left:60px!important}}.govuk-\!-padding-0{padding:0!important}.govuk-\!-padding-top-0{padding-top:0!important}.govuk-\!-padding-right-0{padding-right:0!important}.govuk-\!-padding-bottom-0{padding-bottom:0!important}.govuk-\!-padding-left-0{padding-left:0!important}.govuk-\!-padding-1{padding:5px!important}.govuk-\!-padding-top-1{padding-top:5px!important}.govuk-\!-padding-right-1{padding-right:5px!important}.govuk-\!-padding-bottom-1{padding-bottom:5px!important}.govuk-\!-padding-left-1{padding-left:5px!important}.govuk-\!-padding-2{padding:10px!important}.govuk-\!-padding-top-2{padding-top:10px!important}.govuk-\!-padding-right-2{padding-right:10px!important}.govuk-\!-padding-bottom-2{padding-bottom:10px!important}.govuk-\!-padding-left-2{padding-left:10px!important}.govuk-\!-padding-3{padding:15px!important}.govuk-\!-padding-top-3{padding-top:15px!important}.govuk-\!-padding-right-3{padding-right:15px!important}.govuk-\!-padding-bottom-3{padding-bottom:15px!important}.govuk-\!-padding-left-3{padding-left:15px!important}.govuk-\!-padding-4{padding:15px!important}@media (min-width: 40.0625em){.govuk-\!-padding-4{padding:20px!important}}.govuk-\!-padding-top-4{padding-top:15px!important}@media (min-width: 40.0625em){.govuk-\!-padding-top-4{padding-top:20px!important}}.govuk-\!-padding-right-4{padding-right:15px!important}@media (min-width: 40.0625em){.govuk-\!-padding-right-4{padding-right:20px!important}}.govuk-\!-padding-bottom-4{padding-bottom:15px!important}@media (min-width: 40.0625em){.govuk-\!-padding-bottom-4{padding-bottom:20px!important}}.govuk-\!-padding-left-4{padding-left:15px!important}@media (min-width: 40.0625em){.govuk-\!-padding-left-4{padding-left:20px!important}}.govuk-\!-padding-5{padding:15px!important}@media (min-width: 40.0625em){.govuk-\!-padding-5{padding:25px!important}}.govuk-\!-padding-top-5{padding-top:15px!important}@media (min-width: 40.0625em){.govuk-\!-padding-top-5{padding-top:25px!important}}.govuk-\!-padding-right-5{padding-right:15px!important}@media (min-width: 40.0625em){.govuk-\!-padding-right-5{padding-right:25px!important}}.govuk-\!-padding-bottom-5{padding-bottom:15px!important}@media (min-width: 40.0625em){.govuk-\!-padding-bottom-5{padding-bottom:25px!important}}.govuk-\!-padding-left-5{padding-left:15px!important}@media (min-width: 40.0625em){.govuk-\!-padding-left-5{padding-left:25px!important}}.govuk-\!-padding-6{padding:20px!important}@media (min-width: 40.0625em){.govuk-\!-padding-6{padding:30px!important}}.govuk-\!-padding-top-6{padding-top:20px!important}@media (min-width: 40.0625em){.govuk-\!-padding-top-6{padding-top:30px!important}}.govuk-\!-padding-right-6{padding-right:20px!important}@media (min-width: 40.0625em){.govuk-\!-padding-right-6{padding-right:30px!important}}.govuk-\!-padding-bottom-6{padding-bottom:20px!important}@media (min-width: 40.0625em){.govuk-\!-padding-bottom-6{padding-bottom:30px!important}}.govuk-\!-padding-left-6{padding-left:20px!important}@media (min-width: 40.0625em){.govuk-\!-padding-left-6{padding-left:30px!important}}.govuk-\!-padding-7{padding:25px!important}@media (min-width: 40.0625em){.govuk-\!-padding-7{padding:40px!important}}.govuk-\!-padding-top-7{padding-top:25px!important}@media (min-width: 40.0625em){.govuk-\!-padding-top-7{padding-top:40px!important}}.govuk-\!-padding-right-7{padding-right:25px!important}@media (min-width: 40.0625em){.govuk-\!-padding-right-7{padding-right:40px!important}}.govuk-\!-padding-bottom-7{padding-bottom:25px!important}@media (min-width: 40.0625em){.govuk-\!-padding-bottom-7{padding-bottom:40px!important}}.govuk-\!-padding-left-7{padding-left:25px!important}@media (min-width: 40.0625em){.govuk-\!-padding-left-7{padding-left:40px!important}}.govuk-\!-padding-8{padding:30px!important}@media (min-width: 40.0625em){.govuk-\!-padding-8{padding:50px!important}}.govuk-\!-padding-top-8{padding-top:30px!important}@media (min-width: 40.0625em){.govuk-\!-padding-top-8{padding-top:50px!important}}.govuk-\!-padding-right-8{padding-right:30px!important}@media (min-width: 40.0625em){.govuk-\!-padding-right-8{padding-right:50px!important}}.govuk-\!-padding-bottom-8{padding-bottom:30px!important}@media (min-width: 40.0625em){.govuk-\!-padding-bottom-8{padding-bottom:50px!important}}.govuk-\!-padding-left-8{padding-left:30px!important}@media (min-width: 40.0625em){.govuk-\!-padding-left-8{padding-left:50px!important}}.govuk-\!-padding-9{padding:40px!important}@media (min-width: 40.0625em){.govuk-\!-padding-9{padding:60px!important}}.govuk-\!-padding-top-9{padding-top:40px!important}@media (min-width: 40.0625em){.govuk-\!-padding-top-9{padding-top:60px!important}}.govuk-\!-padding-right-9{padding-right:40px!important}@media (min-width: 40.0625em){.govuk-\!-padding-right-9{padding-right:60px!important}}.govuk-\!-padding-bottom-9{padding-bottom:40px!important}@media (min-width: 40.0625em){.govuk-\!-padding-bottom-9{padding-bottom:60px!important}}.govuk-\!-padding-left-9{padding-left:40px!important}@media (min-width: 40.0625em){.govuk-\!-padding-left-9{padding-left:60px!important}}.govuk-\!-margin-static-0,.govuk-\!-static-margin-0{margin:0!important}.govuk-\!-margin-top-static-0,.govuk-\!-static-margin-top-0{margin-top:0!important}.govuk-\!-margin-right-static-0,.govuk-\!-static-margin-right-0{margin-right:0!important}.govuk-\!-margin-bottom-static-0,.govuk-\!-static-margin-bottom-0{margin-bottom:0!important}.govuk-\!-margin-left-static-0,.govuk-\!-static-margin-left-0{margin-left:0!important}.govuk-\!-margin-static-1,.govuk-\!-static-margin-1{margin:5px!important}.govuk-\!-margin-top-static-1,.govuk-\!-static-margin-top-1{margin-top:5px!important}.govuk-\!-margin-right-static-1,.govuk-\!-static-margin-right-1{margin-right:5px!important}.govuk-\!-margin-bottom-static-1,.govuk-\!-static-margin-bottom-1{margin-bottom:5px!important}.govuk-\!-margin-left-static-1,.govuk-\!-static-margin-left-1{margin-left:5px!important}.govuk-\!-margin-static-2,.govuk-\!-static-margin-2{margin:10px!important}.govuk-\!-margin-top-static-2,.govuk-\!-static-margin-top-2{margin-top:10px!important}.govuk-\!-margin-right-static-2,.govuk-\!-static-margin-right-2{margin-right:10px!important}.govuk-\!-margin-bottom-static-2,.govuk-\!-static-margin-bottom-2{margin-bottom:10px!important}.govuk-\!-margin-left-static-2,.govuk-\!-static-margin-left-2{margin-left:10px!important}.govuk-\!-margin-static-3,.govuk-\!-static-margin-3{margin:15px!important}.govuk-\!-margin-top-static-3,.govuk-\!-static-margin-top-3{margin-top:15px!important}.govuk-\!-margin-right-static-3,.govuk-\!-static-margin-right-3{margin-right:15px!important}.govuk-\!-margin-bottom-static-3,.govuk-\!-static-margin-bottom-3{margin-bottom:15px!important}.govuk-\!-margin-left-static-3,.govuk-\!-static-margin-left-3{margin-left:15px!important}.govuk-\!-margin-static-4,.govuk-\!-static-margin-4{margin:20px!important}.govuk-\!-margin-top-static-4,.govuk-\!-static-margin-top-4{margin-top:20px!important}.govuk-\!-margin-right-static-4,.govuk-\!-static-margin-right-4{margin-right:20px!important}.govuk-\!-margin-bottom-static-4,.govuk-\!-static-margin-bottom-4{margin-bottom:20px!important}.govuk-\!-margin-left-static-4,.govuk-\!-static-margin-left-4{margin-left:20px!important}.govuk-\!-margin-static-5,.govuk-\!-static-margin-5{margin:25px!important}.govuk-\!-margin-top-static-5,.govuk-\!-static-margin-top-5{margin-top:25px!important}.govuk-\!-margin-right-static-5,.govuk-\!-static-margin-right-5{margin-right:25px!important}.govuk-\!-margin-bottom-static-5,.govuk-\!-static-margin-bottom-5{margin-bottom:25px!important}.govuk-\!-margin-left-static-5,.govuk-\!-static-margin-left-5{margin-left:25px!important}.govuk-\!-margin-static-6,.govuk-\!-static-margin-6{margin:30px!important}.govuk-\!-margin-top-static-6,.govuk-\!-static-margin-top-6{margin-top:30px!important}.govuk-\!-margin-right-static-6,.govuk-\!-static-margin-right-6{margin-right:30px!important}.govuk-\!-margin-bottom-static-6,.govuk-\!-static-margin-bottom-6{margin-bottom:30px!important}.govuk-\!-margin-left-static-6,.govuk-\!-static-margin-left-6{margin-left:30px!important}.govuk-\!-margin-static-7,.govuk-\!-static-margin-7{margin:40px!important}.govuk-\!-margin-top-static-7,.govuk-\!-static-margin-top-7{margin-top:40px!important}.govuk-\!-margin-right-static-7,.govuk-\!-static-margin-right-7{margin-right:40px!important}.govuk-\!-margin-bottom-static-7,.govuk-\!-static-margin-bottom-7{margin-bottom:40px!important}.govuk-\!-margin-left-static-7,.govuk-\!-static-margin-left-7{margin-left:40px!important}.govuk-\!-margin-static-8,.govuk-\!-static-margin-8{margin:50px!important}.govuk-\!-margin-top-static-8,.govuk-\!-static-margin-top-8{margin-top:50px!important}.govuk-\!-margin-right-static-8,.govuk-\!-static-margin-right-8{margin-right:50px!important}.govuk-\!-margin-bottom-static-8,.govuk-\!-static-margin-bottom-8{margin-bottom:50px!important}.govuk-\!-margin-left-static-8,.govuk-\!-static-margin-left-8{margin-left:50px!important}.govuk-\!-margin-static-9,.govuk-\!-static-margin-9{margin:60px!important}.govuk-\!-margin-top-static-9,.govuk-\!-static-margin-top-9{margin-top:60px!important}.govuk-\!-margin-right-static-9,.govuk-\!-static-margin-right-9{margin-right:60px!important}.govuk-\!-margin-bottom-static-9,.govuk-\!-static-margin-bottom-9{margin-bottom:60px!important}.govuk-\!-margin-left-static-9,.govuk-\!-static-margin-left-9{margin-left:60px!important}.govuk-\!-padding-static-0,.govuk-\!-static-padding-0{padding:0!important}.govuk-\!-padding-top-static-0,.govuk-\!-static-padding-top-0{padding-top:0!important}.govuk-\!-padding-right-static-0,.govuk-\!-static-padding-right-0{padding-right:0!important}.govuk-\!-padding-bottom-static-0,.govuk-\!-static-padding-bottom-0{padding-bottom:0!important}.govuk-\!-padding-left-static-0,.govuk-\!-static-padding-left-0{padding-left:0!important}.govuk-\!-padding-static-1,.govuk-\!-static-padding-1{padding:5px!important}.govuk-\!-padding-top-static-1,.govuk-\!-static-padding-top-1{padding-top:5px!important}.govuk-\!-padding-right-static-1,.govuk-\!-static-padding-right-1{padding-right:5px!important}.govuk-\!-padding-bottom-static-1,.govuk-\!-static-padding-bottom-1{padding-bottom:5px!important}.govuk-\!-padding-left-static-1,.govuk-\!-static-padding-left-1{padding-left:5px!important}.govuk-\!-padding-static-2,.govuk-\!-static-padding-2{padding:10px!important}.govuk-\!-padding-top-static-2,.govuk-\!-static-padding-top-2{padding-top:10px!important}.govuk-\!-padding-right-static-2,.govuk-\!-static-padding-right-2{padding-right:10px!important}.govuk-\!-padding-bottom-static-2,.govuk-\!-static-padding-bottom-2{padding-bottom:10px!important}.govuk-\!-padding-left-static-2,.govuk-\!-static-padding-left-2{padding-left:10px!important}.govuk-\!-padding-static-3,.govuk-\!-static-padding-3{padding:15px!important}.govuk-\!-padding-top-static-3,.govuk-\!-static-padding-top-3{padding-top:15px!important}.govuk-\!-padding-right-static-3,.govuk-\!-static-padding-right-3{padding-right:15px!important}.govuk-\!-padding-bottom-static-3,.govuk-\!-static-padding-bottom-3{padding-bottom:15px!important}.govuk-\!-padding-left-static-3,.govuk-\!-static-padding-left-3{padding-left:15px!important}.govuk-\!-padding-static-4,.govuk-\!-static-padding-4{padding:20px!important}.govuk-\!-padding-top-static-4,.govuk-\!-static-padding-top-4{padding-top:20px!important}.govuk-\!-padding-right-static-4,.govuk-\!-static-padding-right-4{padding-right:20px!important}.govuk-\!-padding-bottom-static-4,.govuk-\!-static-padding-bottom-4{padding-bottom:20px!important}.govuk-\!-padding-left-static-4,.govuk-\!-static-padding-left-4{padding-left:20px!important}.govuk-\!-padding-static-5,.govuk-\!-static-padding-5{padding:25px!important}.govuk-\!-padding-top-static-5,.govuk-\!-static-padding-top-5{padding-top:25px!important}.govuk-\!-padding-right-static-5,.govuk-\!-static-padding-right-5{padding-right:25px!important}.govuk-\!-padding-bottom-static-5,.govuk-\!-static-padding-bottom-5{padding-bottom:25px!important}.govuk-\!-padding-left-static-5,.govuk-\!-static-padding-left-5{padding-left:25px!important}.govuk-\!-padding-static-6,.govuk-\!-static-padding-6{padding:30px!important}.govuk-\!-padding-top-static-6,.govuk-\!-static-padding-top-6{padding-top:30px!important}.govuk-\!-padding-right-static-6,.govuk-\!-static-padding-right-6{padding-right:30px!important}.govuk-\!-padding-bottom-static-6,.govuk-\!-static-padding-bottom-6{padding-bottom:30px!important}.govuk-\!-padding-left-static-6,.govuk-\!-static-padding-left-6{padding-left:30px!important}.govuk-\!-padding-static-7,.govuk-\!-static-padding-7{padding:40px!important}.govuk-\!-padding-top-static-7,.govuk-\!-static-padding-top-7{padding-top:40px!important}.govuk-\!-padding-right-static-7,.govuk-\!-static-padding-right-7{padding-right:40px!important}.govuk-\!-padding-bottom-static-7,.govuk-\!-static-padding-bottom-7{padding-bottom:40px!important}.govuk-\!-padding-left-static-7,.govuk-\!-static-padding-left-7{padding-left:40px!important}.govuk-\!-padding-static-8,.govuk-\!-static-padding-8{padding:50px!important}.govuk-\!-padding-top-static-8,.govuk-\!-static-padding-top-8{padding-top:50px!important}.govuk-\!-padding-right-static-8,.govuk-\!-static-padding-right-8{padding-right:50px!important}.govuk-\!-padding-bottom-static-8,.govuk-\!-static-padding-bottom-8{padding-bottom:50px!important}.govuk-\!-padding-left-static-8,.govuk-\!-static-padding-left-8{padding-left:50px!important}.govuk-\!-padding-static-9,.govuk-\!-static-padding-9{padding:60px!important}.govuk-\!-padding-top-static-9,.govuk-\!-static-padding-top-9{padding-top:60px!important}.govuk-\!-padding-right-static-9,.govuk-\!-static-padding-right-9{padding-right:60px!important}.govuk-\!-padding-bottom-static-9,.govuk-\!-static-padding-bottom-9{padding-bottom:60px!important}.govuk-\!-padding-left-static-9,.govuk-\!-static-padding-left-9{padding-left:60px!important}.govuk-\!-text-align-left{text-align:left!important}.govuk-\!-text-align-centre{text-align:center!important}.govuk-\!-text-align-right{text-align:right!important}.govuk-\!-font-size-80{font-size:53px!important;font-size:3.3125rem!important;line-height:1.0377358491!important}@media (min-width: 40.0625em){.govuk-\!-font-size-80{font-size:80px!important;font-size:5rem!important;line-height:1!important}}@media print{.govuk-\!-font-size-80{font-size:53pt!important;line-height:1.1!important}}.govuk-\!-font-size-48{font-size:32px!important;font-size:2rem!important;line-height:1.09375!important}@media (min-width: 40.0625em){.govuk-\!-font-size-48{font-size:48px!important;font-size:3rem!important;line-height:1.0416666667!important}}@media print{.govuk-\!-font-size-48{font-size:32pt!important;line-height:1.15!important}}.govuk-\!-font-size-36{font-size:24px!important;font-size:1.5rem!important;line-height:1.0416666667!important}@media (min-width: 40.0625em){.govuk-\!-font-size-36{font-size:36px!important;font-size:2.25rem!important;line-height:1.1111111111!important}}@media print{.govuk-\!-font-size-36{font-size:24pt!important;line-height:1.05!important}}.govuk-\!-font-size-27{font-size:18px!important;font-size:1.125rem!important;line-height:1.1111111111!important}@media (min-width: 40.0625em){.govuk-\!-font-size-27{font-size:27px!important;font-size:1.6875rem!important;line-height:1.1111111111!important}}@media print{.govuk-\!-font-size-27{font-size:18pt!important;line-height:1.15!important}}.govuk-\!-font-size-24{font-size:18px!important;font-size:1.125rem!important;line-height:1.1111111111!important}@media (min-width: 40.0625em){.govuk-\!-font-size-24{font-size:24px!important;font-size:1.5rem!important;line-height:1.25!important}}@media print{.govuk-\!-font-size-24{font-size:18pt!important;line-height:1.15!important}}.govuk-\!-font-size-19{font-size:16px!important;font-size:1rem!important;line-height:1.25!important}@media (min-width: 40.0625em){.govuk-\!-font-size-19{font-size:19px!important;font-size:1.1875rem!important;line-height:1.3157894737!important}}@media print{.govuk-\!-font-size-19{font-size:14pt!important;line-height:1.15!important}}.govuk-\!-font-size-16{font-size:14px!important;font-size:.875rem!important;line-height:1.1428571429!important}@media (min-width: 40.0625em){.govuk-\!-font-size-16{font-size:16px!important;font-size:1rem!important;line-height:1.25!important}}@media print{.govuk-\!-font-size-16{font-size:14pt!important;line-height:1.2!important}}.govuk-\!-font-size-14{font-size:12px!important;font-size:.75rem!important;line-height:1.25!important}@media (min-width: 40.0625em){.govuk-\!-font-size-14{font-size:14px!important;font-size:.875rem!important;line-height:1.4285714286!important}}@media print{.govuk-\!-font-size-14{font-size:12pt!important;line-height:1.2!important}}.govuk-\!-font-weight-regular{font-weight:400!important}.govuk-\!-font-weight-bold{font-weight:700!important}.govuk-\!-width-full,.govuk-\!-width-three-quarters{width:100%!important}@media (min-width: 40.0625em){.govuk-\!-width-three-quarters{width:75%!important}}.govuk-\!-width-two-thirds{width:100%!important}@media (min-width: 40.0625em){.govuk-\!-width-two-thirds{width:66.66%!important}}.govuk-\!-width-one-half{width:100%!important}@media (min-width: 40.0625em){.govuk-\!-width-one-half{width:50%!important}}.govuk-\!-width-one-third{width:100%!important}@media (min-width: 40.0625em){.govuk-\!-width-one-third{width:33.33%!important}}.govuk-\!-width-one-quarter{width:100%!important}@media (min-width: 40.0625em){.govuk-\!-width-one-quarter{width:25%!important}} diff --git a/browse_dropdown_filters/assets/authorities-80e824dc.geojson b/browse_dropdown_filters/assets/authorities-80e824dc.geojson deleted file mode 100644 index 65a791de3..000000000 --- a/browse_dropdown_filters/assets/authorities-80e824dc.geojson +++ /dev/null @@ -1 +0,0 @@ -{"type":"FeatureCollection","name":"lads_tas_combined","crs":{"type":"name","properties":{"name":"urn:ogc:def:crs:OGC:1.3:CRS84"}},"features":[{"type":"Feature","properties":{"name":"Bedford","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-0.476261345982474,52.3180638528938],[-0.487140256860804,52.3210826554636],[-0.519829880170178,52.3176925680897],[-0.514051195755829,52.3146970761678],[-0.540604794738771,52.29149185875821],[-0.531190184929433,52.2704024303694],[-0.539324957851375,52.26609490416139],[-0.541311924118424,52.2563172707037],[-0.554738089361645,52.2581798178147],[-0.565693055132987,52.2534682264436],[-0.588111036843781,52.2707783583702],[-0.586335338989988,52.2728313341511],[-0.600306508992765,52.27788786836089],[-0.610617039099608,52.2794979472719],[-0.626978099135445,52.2748773880713],[-0.631412540233443,52.2700475944602],[-0.639908260903836,52.272442010704],[-0.653655470981071,52.2682893071709],[-0.63733162156624,52.2273176317195],[-0.66146038898971,52.208126189804],[-0.668135637658982,52.1950341117758],[-0.657448076334108,52.1897753452686],[-0.6431603115272,52.188844861935905],[-0.639510057352226,52.1834349069605],[-0.627446652788111,52.18154546832049],[-0.628254510983892,52.1725363417791],[-0.634906765468806,52.16813306027609],[-0.630670852955621,52.154923975729204],[-0.640781511339957,52.1527722744294],[-0.635451654776416,52.1392536208873],[-0.61928420225634,52.1330659541041],[-0.607249381411581,52.1338687517842],[-0.591810331121503,52.1106918880999],[-0.583232659181244,52.104548974399705],[-0.589185945140159,52.0974991888419],[-0.582526255529375,52.09835983381739],[-0.578297284440013,52.0941144803371],[-0.56762196936698,52.09497071170739],[-0.561803403705596,52.0923247616261],[-0.550085459682615,52.0807045527474],[-0.541585672597151,52.08188277520709],[-0.533487842576534,52.0771401049529],[-0.51781628543909,52.0678905781751],[-0.517895643235148,52.06033065035079],[-0.511517523568796,52.0595588479121],[-0.509814334267653,52.05502533446581],[-0.504488933841949,52.0567813744139],[-0.499602964236489,52.06744342033859],[-0.504474233740156,52.07072785274091],[-0.486122668461448,52.0838801587686],[-0.47152698515917,52.0880086570609],[-0.457752752518123,52.0728358820159],[-0.440033276196237,52.06328741387679],[-0.429862716351285,52.067773154574404],[-0.397016891133653,52.0710031744821],[-0.38964862344955,52.0745730959627],[-0.384902381057375,52.075574502543],[-0.389148882923144,52.0808801249641],[-0.376908470454649,52.0877399586312],[-0.381187525495222,52.093565053964596],[-0.37458753078344,52.097188655689806],[-0.371399523465257,52.09456859291149],[-0.366694093256815,52.0968178802168],[-0.3678128062763,52.0992862878215],[-0.356108892660156,52.1077285732615],[-0.353015111430785,52.106364462387],[-0.344804182727541,52.115955794829105],[-0.362033524379849,52.14292003106021],[-0.357798971759897,52.14600364947001],[-0.349149680406883,52.1453299495132],[-0.335068622455048,52.1560970269537],[-0.330065263038634,52.16534160165461],[-0.321264506179038,52.168837647152],[-0.310781767771191,52.167127963048806],[-0.304274544252793,52.1669068703855],[-0.301678140430968,52.1782250079898],[-0.28911707135863,52.1909257732246],[-0.249785149179338,52.184371027171494],[-0.244001867319279,52.1826845754175],[-0.240723002820836,52.1901931437342],[-0.264911990138627,52.2057211534675],[-0.261927463111695,52.2096325334155],[-0.274204697772444,52.20872037280031],[-0.292968197585348,52.2076455362583],[-0.299390504833968,52.2160435815157],[-0.286631294016872,52.2348479550748],[-0.285693744441477,52.2374014689055],[-0.29320898808327,52.2405161819444],[-0.313688007655852,52.238998817430904],[-0.319996605501729,52.2427078809809],[-0.334493652011644,52.242920581241506],[-0.34346885979841,52.241874420985205],[-0.341010840873401,52.230647493777795],[-0.359038102644697,52.23473528254559],[-0.374375681124288,52.2329982884739],[-0.38196758301413,52.2687072512921],[-0.38101343524632,52.2731349422829],[-0.372175068758848,52.2734998531163],[-0.375009968281875,52.2804693783712],[-0.380572442546044,52.2826667899994],[-0.392955129522688,52.2823658176732],[-0.398979469350676,52.2787288881547],[-0.406907339620158,52.2874758595882],[-0.410158813316834,52.2844968126785],[-0.421767439464139,52.2849474985045],[-0.42264235286022,52.289375665233],[-0.435761112192004,52.2966568800962],[-0.436088655177378,52.3144708459939],[-0.44418351855703,52.3142316300993],[-0.465365756545097,52.3229532812371],[-0.476261345982474,52.3180638528938]]]}},{"type":"Feature","properties":{"name":"Blackburn with Darwen","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-2.46580771374763,53.7808134079364],[-2.47708746617598,53.781047613304196],[-2.48082634103419,53.77399159613649],[-2.49476181344398,53.7701582145224],[-2.49895829211865,53.7686200613969],[-2.50941241263574,53.7692160457651],[-2.52877921503513,53.7594755696162],[-2.54572430595399,53.7594275902011],[-2.5512980543086,53.7563883886878],[-2.55398712642003,53.7497078208663],[-2.561601608529939,53.7469013543165],[-2.56459126766983,53.7424589077342],[-2.55715498570588,53.734612111348795],[-2.55689169226412,53.727435465381],[-2.54631070691649,53.7249765175104],[-2.54733268325063,53.72244621115381],[-2.540800128557561,53.7196698020321],[-2.53946770263322,53.7146676529108],[-2.54326067158572,53.7098958282085],[-2.5397927263795,53.7021915934265],[-2.53193140592088,53.6964429364532],[-2.51567629066042,53.6923821272296],[-2.51834560871478,53.677655082292],[-2.52567958969004,53.6745590318101],[-2.53234403392868,53.66490226532131],[-2.52227000447068,53.64817810297609],[-2.52457325583045,53.6412866001381],[-2.52006160283167,53.630481682948],[-2.51132292934796,53.6269949667172],[-2.51041411642028,53.6263630170878],[-2.47299283803697,53.616631873583295],[-2.46601942868202,53.6216990218224],[-2.4537808878436,53.621974422023406],[-2.45828927754248,53.6246312139176],[-2.45064390657436,53.62780528260839],[-2.45027035776665,53.6414320693689],[-2.43872438284017,53.6460454486624],[-2.426143740891951,53.635010270829],[-2.42585341472569,53.6258594377518],[-2.41992826099158,53.62360987497901],[-2.40537554735878,53.6251432017866],[-2.40120935798549,53.6245990605314],[-2.39784578147011,53.6322081798918],[-2.37913211400899,53.6308703634519],[-2.37032788754394,53.6315343318487],[-2.36866405039552,53.6369502844871],[-2.3724943982039,53.6422936922074],[-2.36705496434831,53.64506182144811],[-2.36264103428531,53.655988731825495],[-2.3712361929384,53.6670806553965],[-2.37593465642022,53.6756416005622],[-2.374424274653709,53.687254434248594],[-2.398348278057469,53.691559862881206],[-2.41098929578139,53.705136741501605],[-2.43386860052447,53.7191816990193],[-2.43355266447963,53.727623516393],[-2.4385861398816,53.7322834781039],[-2.43965801883093,53.7483083078026],[-2.45178024416893,53.75645436007421],[-2.44631709415123,53.7665897010512],[-2.45549664862809,53.7740320806345],[-2.46580771374763,53.7808134079364]]]}},{"type":"Feature","properties":{"name":"Blackpool","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-3.01523753817441,53.842771384794304],[-3.01793752339576,53.847369716426],[-3.014311900597,53.8505670444498],[-3.0226200310534,53.8617203187043],[-3.02283835974531,53.8627255550794],[-3.01975135328489,53.86859776972619],[-3.03684698199948,53.8750787994305],[-3.047968438432,53.87559257170769],[-3.049230291352531,53.86598655115811],[-3.0512672220839,53.8577300241082],[-3.051401034177609,53.8571875283741],[-3.05291024825252,53.8516197556862],[-3.05557594672643,53.8417818823285],[-3.05573119773682,53.8412087777203],[-3.05642095589189,53.8296336804599],[-3.05647408830484,53.8287417771843],[-3.05662532165961,53.81916438975661],[-3.05661739793771,53.81897177002871],[-3.05634757251385,53.8124115754793],[-3.05630525326159,53.8113824537424],[-3.057310906112761,53.7987833581965],[-3.05733305460964,53.79850577380219],[-3.056917319164261,53.795496562246306],[-3.06101064072762,53.795329152877],[-3.0566919204234,53.795105761944804],[-3.05878735130784,53.78402809204751],[-3.058707081452281,53.7837194937709],[-3.05684992434024,53.7765741399837],[-3.03977139444098,53.7796061180888],[-3.03276532099278,53.7807489467864],[-3.02880130418184,53.7731167798034],[-3.01546728507995,53.77458135356831],[-2.99647825993957,53.7745040254686],[-3.00612176257234,53.787991514772806],[-2.9993459561573,53.7942646179874],[-2.98461052323753,53.7937769873895],[-2.9895373820658,53.80046269289029],[-2.98667467129857,53.8021851606123],[-2.99450953084273,53.817672157848904],[-3.010652930056629,53.8261939007195],[-3.0137733639311,53.829206446025],[-3.00720227069484,53.832901218208306],[-3.01153590972736,53.83719082474191],[-3.01555557914246,53.84071079319181],[-3.01911079456702,53.8370898302399],[-3.02046454164251,53.84076881431951],[-3.01523753817441,53.842771384794304]]]}},{"type":"Feature","properties":{"name":"Bournemouth, Christchurch and Poole","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-1.85661811377501,50.8048858382402],[-1.86459854716569,50.8066202120829],[-1.86448352277489,50.7957866870509],[-1.86532501309232,50.77392200530301],[-1.87338279385872,50.763380463127],[-1.874509951505161,50.76474251939191],[-1.88099545312296,50.770651172983904],[-1.893892911742,50.780091306964],[-1.91013451833689,50.775280329627904],[-1.91997650066809,50.7738757004585],[-1.91960184916701,50.7840365367924],[-1.93206507330882,50.78002746961919],[-1.93699894925823,50.7826724469159],[-1.93561145177239,50.7920943856288],[-1.93616075321464,50.797208852555],[-1.94087806813949,50.7988086064864],[-1.95073866715184,50.7906701074516],[-1.95832726108047,50.7892935862265],[-1.96899370028007,50.792390340421804],[-1.99109549865422,50.791405666737504],[-2.0058746084598,50.79092647885561],[-1.9991328618375,50.7881281243351],[-2.00932066886414,50.7825892397548],[-2.01025659697458,50.7737880866931],[-2.01270606977005,50.7485012267701],[-2.01273721666432,50.7483006560862],[-2.01661523118871,50.7363345702672],[-2.02252181236545,50.7365655496902],[-2.02467898106547,50.7294005417318],[-2.036358614007971,50.72527556831561],[-2.03504398861547,50.7228132333791],[-2.04022710741169,50.7190633101417],[-2.01056077280389,50.710391326187],[-2.00135761900601,50.71074017767081],[-2.00024580232654,50.71078223837609],[-1.996583399135299,50.7072929403562],[-1.98650393151947,50.708197661727],[-1.98684386519538,50.7098340012836],[-1.99319330063883,50.71223059757819],[-1.99456467876081,50.713171421248795],[-1.99378935857664,50.7177468837055],[-2.00135796307638,50.71774641138501],[-2.00316120592022,50.7177461741543],[-2.0072961515772,50.7268509897505],[-2.01140062300153,50.7265844536439],[-2.00552557647054,50.7296010759853],[-2.0118135138978,50.7288361825255],[-2.01051683048643,50.732688943014],[-2.01033104432467,50.7332409066495],[-2.00135874650887,50.7358933379046],[-1.99596095998786,50.737488488987395],[-1.99195304237092,50.7297869820642],[-1.99924301869114,50.7301344926416],[-2.00135849512244,50.729957724364695],[-2.0050654877711,50.7296478055308],[-2.00135848863344,50.7298050109974],[-1.9989100688029,50.72990873393859],[-1.992329196533571,50.729530524770404],[-1.99225439454616,50.723406742367295],[-1.98455268530886,50.7203060896271],[-1.98958624706885,50.7188337429493],[-1.99190921550623,50.7124649136403],[-1.97268419341131,50.710422400648],[-1.96308080383804,50.7157321090106],[-1.95759451413208,50.7152483348695],[-1.96038207758796,50.71193202687309],[-1.95381654479714,50.70832329542609],[-1.95024424407263,50.7114934535047],[-1.94950098311628,50.7112907254988],[-1.94931345454125,50.7112114650896],[-1.94875157952421,50.7101845558201],[-1.94873039730724,50.7101511244273],[-1.94896250538668,50.7075487013503],[-1.949652702138551,50.7071451821233],[-1.95319527899825,50.7079030992653],[-1.95231123573963,50.7040888815555],[-1.95009202293337,50.70586320324221],[-1.94813836540867,50.7074250601863],[-1.95124010076533,50.7043073809214],[-1.951463316537529,50.704067916371194],[-1.95137583171339,50.70412343732739],[-1.95080281494809,50.7044870901714],[-1.94736876466497,50.7067061974975],[-1.93212740370537,50.6961467452552],[-1.9400074216236,50.689097337710905],[-1.9512774575054,50.68661550903679],[-1.9478094101184,50.6826768814321],[-1.92054203681289,50.7007012745634],[-1.902368074931041,50.7087733481132],[-1.90089939925553,50.709425432926],[-1.87925439854258,50.7146931626445],[-1.87619586403308,50.7154370961419],[-1.86518879585138,50.7174528351238],[-1.8648799878008,50.71748178796219],[-1.84418563568598,50.719420091418804],[-1.84380058576083,50.7194561203253],[-1.837878681155781,50.720097383473004],[-1.83103784492116,50.7203164139475],[-1.81635845542058,50.72078506001609],[-1.80918698243759,50.72068922338351],[-1.80256454272012,50.7199904279812],[-1.76927729366597,50.7164718903875],[-1.76862271729031,50.7162967187631],[-1.76682686149852,50.71610688737971],[-1.74884156008202,50.7110424145048],[-1.74491586455112,50.7147965118154],[-1.74110091120498,50.7232608938983],[-1.74269078748914,50.721531470461],[-1.74602993583266,50.7154813130678],[-1.75011579864097,50.7174324954599],[-1.747051486984,50.71803471622321],[-1.76342930490591,50.7186050088198],[-1.76570925352408,50.7198622345655],[-1.76087326995483,50.7201159551507],[-1.76699749372796,50.721765025659],[-1.76947331680195,50.72768252257719],[-1.77056819447297,50.7302989622187],[-1.7656935421818,50.7288983443127],[-1.76433348122147,50.723328894187205],[-1.76029137322098,50.7228341662516],[-1.76199597926117,50.7252881764461],[-1.7575237039338,50.7235676680737],[-1.75708723392253,50.7301799906368],[-1.75416738664181,50.7274077470094],[-1.74342764381778,50.7282605755048],[-1.74235694252529,50.7237191501439],[-1.7415042066345,50.7238992085587],[-1.74112706155002,50.724070268161604],[-1.72215329145438,50.7346611255295],[-1.71795343948768,50.735043455011],[-1.692547967083,50.737352830058605],[-1.69174789486832,50.737282643639105],[-1.68463619019697,50.7438222890628],[-1.68181881885181,50.7518475287595],[-1.72703528870617,50.75101460665561],[-1.74416871755885,50.7474553887605],[-1.74465615100658,50.7560727437326],[-1.73895962345847,50.7632705334556],[-1.74905895541021,50.7795101230945],[-1.77011733009873,50.7725488320774],[-1.76888155844042,50.7697829484213],[-1.77606489327831,50.7663528473219],[-1.78342488463905,50.7646492694894],[-1.78827683003831,50.7668695239097],[-1.78786824551276,50.7788551166957],[-1.79752276226219,50.78383640269261],[-1.80096531345132,50.7918846660534],[-1.80596719919514,50.7920207959395],[-1.80086788601507,50.7941183019949],[-1.8039049599245,50.7959652097351],[-1.83384972291906,50.800041542589],[-1.845232465707169,50.8096058854495],[-1.85661811377501,50.8048858382402]]]}},{"type":"Feature","properties":{"name":"Bracknell Forest","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-0.769641635286935,51.4677586073994],[-0.78256490664671,51.4686900761317],[-0.785704988930728,51.4577882377543],[-0.799347594481972,51.4461353315426],[-0.800019761547891,51.4411821496758],[-0.796675981788752,51.414458696095096],[-0.792505466831662,51.4088496305634],[-0.801801966817938,51.4075402399569],[-0.800754177789556,51.4038464199448],[-0.796830248913774,51.3940075517086],[-0.793124866392451,51.3846077844273],[-0.788839993914029,51.37175070681919],[-0.809589698057002,51.3709075676912],[-0.819715311448264,51.3672053441816],[-0.822091892948763,51.3661727188733],[-0.837349302933734,51.3528712213498],[-0.828124465613097,51.3528639187135],[-0.819049123216077,51.3488297878998],[-0.814080123581975,51.3415651993036],[-0.801376228360433,51.3414771525007],[-0.794929000441769,51.3409595967118],[-0.784648137905585,51.3382306123356],[-0.775466206963731,51.3319589032434],[-0.77267997509833,51.3328431504599],[-0.758192612140745,51.3405684497557],[-0.759435167562702,51.3434698965903],[-0.748053035595279,51.35234813253431],[-0.744325979010401,51.3545689403745],[-0.735335360826244,51.3650095832703],[-0.735258360031567,51.36504021693499],[-0.667634283855982,51.3845713456129],[-0.673162950295025,51.3887407454549],[-0.696540470455116,51.4109103697849],[-0.678977587682033,51.42994906619101],[-0.667948432998634,51.4307478329787],[-0.663096137160277,51.426015741099505],[-0.644504362781734,51.4194265555877],[-0.638326548363823,51.41465499457771],[-0.631309270281672,51.4144545434314],[-0.631229508633161,51.4228614302753],[-0.637146191485687,51.4280046717869],[-0.630552938632746,51.442192361264],[-0.653868452302857,51.4413678580181],[-0.661982328325828,51.44431933378791],[-0.658258654706319,51.45308236413891],[-0.656755756603434,51.4614941608613],[-0.665015833388763,51.4624661439658],[-0.672746126800362,51.4578491131412],[-0.688866170515666,51.4669598587046],[-0.705709241255092,51.46773796002261],[-0.71441818197128,51.46714416408581],[-0.724526232749236,51.45613915261771],[-0.740771205534978,51.4588310399831],[-0.752752386472378,51.4622270587016],[-0.757329114646446,51.4590249741995],[-0.76462816963277,51.45972261974399],[-0.769641635286935,51.4677586073994]]]}},{"type":"Feature","properties":{"name":"Brighton and Hove","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-0.16586491711958,50.8923323900159],[-0.182422854403572,50.888324776627805],[-0.181861238685437,50.88090452435829],[-0.189747886546521,50.8744159916249],[-0.18773445855603,50.8685704699966],[-0.198987634717188,50.8701206108588],[-0.202637218331058,50.8758570919399],[-0.205401741503504,50.8700872420458],[-0.213882276183813,50.8704646630267],[-0.214146986476273,50.8751794474032],[-0.226719329968901,50.878180638673705],[-0.239238286310074,50.8678855967986],[-0.244970867103618,50.8638089043948],[-0.239752980304111,50.8619523263178],[-0.225966102986527,50.8429313396889],[-0.222906153132839,50.83908859160789],[-0.216617971698271,50.8275951943654],[-0.216037848219507,50.82757206138161],[-0.208353054090653,50.8266776830536],[-0.191659323360819,50.8255557693167],[-0.181282110617299,50.8243575472177],[-0.166936576422847,50.8230923461704],[-0.156950741150253,50.8217675815953],[-0.136919237385358,50.818571184850704],[-0.136876482915546,50.8185639118526],[-0.123915542315185,50.81635832730169],[-0.113036375470302,50.8143436889818],[-0.11295876841322,50.814322111216896],[-0.107512914156387,50.8128077709586],[-0.107744154735857,50.8116171292691],[-0.106386422603212,50.808265653362],[-0.10720837465994,50.8115799279195],[-0.094062070534173,50.8106663469338],[-0.095576182488802,50.8092857972248],[-0.096701623929591,50.8085501583464],[-0.106161150905902,50.8095552703332],[-0.096980178530702,50.8083680767905],[-0.096416216833691,50.8085198199613],[-0.091878328749278,50.8117026378898],[-0.075989486435723,50.807126243968],[-0.041789198101128,50.7995347391925],[-0.038459159913717,50.799196794125],[-0.038229156090388,50.79948657009219],[-0.037993638791248,50.7994588496822],[-0.016586079716729,50.8162744496735],[-0.02042837615218,50.8218303556257],[-0.030229168484917,50.8173492120796],[-0.045968393113643,50.8218246617317],[-0.042167255717275,50.8248169836935],[-0.03684254950848,50.8412388952519],[-0.045585649821553,50.844967773348905],[-0.073441854838679,50.8412445322818],[-0.070778872004243,50.8458187633889],[-0.075261619555187,50.8506998038332],[-0.083236154129929,50.8631728646175],[-0.084927634243044,50.8731196294769],[-0.097519263621995,50.8779454253866],[-0.104915162007817,50.8723431669333],[-0.120090044594647,50.8735624808927],[-0.124209644527113,50.877975291750396],[-0.135283671366533,50.8781049946469],[-0.135010046704454,50.88663451601909],[-0.137140727458006,50.88457930411409],[-0.14461164652197,50.8869799768156],[-0.15252627051728,50.88544430025641],[-0.152972998833407,50.8798619759224],[-0.166428238634655,50.88090680343391],[-0.16586491711958,50.8923323900159]]]}},{"type":"Feature","properties":{"name":"Buckinghamshire","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-0.951872932630787,52.0815336222521],[-0.960762853813877,52.07864436279769],[-0.967805300661276,52.0709109281604],[-1.00754062014193,52.0720954322454],[-1.02631761576578,52.07568210972819],[-1.04223773894522,52.0738759215994],[-1.0295507824706,52.0701064298429],[-1.02640491077933,52.0644170285475],[-1.03094696358392,52.06289719829031],[-1.04004871367695,52.0659243091266],[-1.05295894974226,52.0596604137393],[-1.06205550082263,52.0627362313046],[-1.07165653508678,52.0581350813041],[-1.07665188380507,52.0588513144433],[-1.08327537226131,52.0523610927201],[-1.11722422057839,52.047345044162704],[-1.13125692802285,52.0328694537647],[-1.13615988100239,52.0200657662551],[-1.11808639729751,52.0154261720851],[-1.11197965433708,52.0165923192432],[-1.10287760239104,52.0120897203171],[-1.0959191417349,52.0149695102705],[-1.08806201965996,52.005781963109506],[-1.07715485149777,52.0088233112622],[-1.07392826499607,52.00632180906501],[-1.060847344146,52.0086108302234],[-1.05317192410626,52.0025360993267],[-1.07818603361476,51.9810573532075],[-1.09523554148005,51.9571226711615],[-1.08191070921201,51.95099886814891],[-1.07895146640041,51.9433664355141],[-1.0570110701296,51.9492854178967],[-1.05591878344624,51.9425987397017],[-1.06211152138417,51.93513682147951],[-1.0775489766958,51.9316433756794],[-1.07553464426011,51.9299381386112],[-1.0866733468149,51.9226458788993],[-1.07935639023285,51.917221982244904],[-1.08627905028487,51.9053194575681],[-1.08425394583128,51.8995449104214],[-1.09351899137334,51.89393689670269],[-1.06897524962351,51.8872626698247],[-1.07760518877841,51.876730766172],[-1.06916605487643,51.87464490989671],[-1.0646424320269,51.86869718334621],[-1.06603118926824,51.8528166936942],[-1.06197784920729,51.8441266357268],[-1.0471229362899,51.839813663525405],[-1.06190663992774,51.832384099037],[-1.06858822372448,51.8346355486796],[-1.07844944295484,51.8292545769782],[-1.12159886352224,51.8453420987276],[-1.14067612335695,51.8346897793604],[-1.11009656481819,51.8173050363525],[-1.12488968962276,51.80751121424459],[-1.11740594422599,51.79916705564871],[-1.12354117099906,51.7941812934693],[-1.11999199769274,51.792292679969],[-1.1219433760433,51.78708060087321],[-1.11538222756803,51.786899238899004],[-1.10636133376123,51.781630502706],[-1.08294808702326,51.7802959088154],[-1.07884842166186,51.7712660868914],[-1.08280072816908,51.7641145267598],[-1.08085173738086,51.756553657355],[-1.07289187228219,51.758322808374004],[-1.06638474209488,51.7536246219018],[-1.05497291367935,51.752181152198105],[-1.04547146097639,51.7445992127829],[-1.03362947846765,51.7445913153948],[-1.02962245233168,51.745958569062],[-1.02982767504363,51.7578812989774],[-1.00152168150882,51.7548060087333],[-0.98335282784315,51.7524253401609],[-0.979612216726482,51.7607182368057],[-0.973852785785747,51.758017385782],[-0.954122405769175,51.7578469475703],[-0.944908128981125,51.753639410810706],[-0.933204634951446,51.7523403375452],[-0.928477641856041,51.7459363804543],[-0.924115298282359,51.7477150779008],[-0.918271981676962,51.73721231154511],[-0.912782127785908,51.7370282589383],[-0.904027615988972,51.73199614919],[-0.897164846303656,51.7228485516005],[-0.887682430834599,51.718343369319705],[-0.886557787778826,51.70508339456941],[-0.894772980132941,51.692522289090405],[-0.879895887122356,51.6808648769757],[-0.886763509224145,51.681390558767],[-0.897896373360577,51.6764007553867],[-0.884134738409278,51.673774778444006],[-0.877706762468148,51.6683850758408],[-0.894745408592195,51.66825435493741],[-0.910381089773741,51.6738494086506],[-0.9177290186767,51.672400407801206],[-0.924889163522498,51.6654275018472],[-0.932212883219972,51.66486846668321],[-0.923098238248616,51.6569966727556],[-0.927251214485182,51.6514436207499],[-0.929430643277009,51.655748967723305],[-0.933169253013909,51.6526017316578],[-0.946317539698129,51.65378409314949],[-0.944983566135686,51.6497905886714],[-0.950725842013544,51.6507411973348],[-0.93753796408359,51.641649107884305],[-0.935399465251419,51.6356575652282],[-0.950029511752735,51.628907164704806],[-0.949793442539434,51.620677719526],[-0.938644424025197,51.617786881243994],[-0.94313882206788,51.6050164379807],[-0.933667157257366,51.60165980366391],[-0.929140186536174,51.60432357377871],[-0.920174961543613,51.6036114161861],[-0.916898658092151,51.5992900750035],[-0.92487957313995,51.590888417516],[-0.94147123230418,51.5855069546108],[-0.939278571691587,51.574058231357604],[-0.924146199566411,51.5635245719703],[-0.901680596010387,51.556165773804295],[-0.903193462906486,51.545878412467],[-0.896882190115767,51.5448630133878],[-0.887370264358319,51.559471252024],[-0.879723063740375,51.5621275792716],[-0.872748076470877,51.56031104391799],[-0.862525039114666,51.54902011098161],[-0.842743668055121,51.5447586197339],[-0.837597840945815,51.5469871957154],[-0.82888585703159,51.5456300095593],[-0.824150378287284,51.5504851220621],[-0.810515002812092,51.5526972786962],[-0.794470592464457,51.551157835451505],[-0.790974554263495,51.552838403265106],[-0.782517155553262,51.55616885227351],[-0.774155229783171,51.567012583456],[-0.75746112875253,51.56481763728479],[-0.748831514973853,51.5684099625002],[-0.727863673776803,51.5772429333552],[-0.716905844381395,51.5771946270476],[-0.711201689694814,51.5643241294255],[-0.705468161159156,51.5622458536847],[-0.698812870546783,51.56559094166491],[-0.694176987502014,51.5621755151605],[-0.692678085759794,51.544024802939205],[-0.702051569445409,51.523947554259],[-0.701504417773722,51.5211717152837],[-0.70316470355774,51.511106736300796],[-0.688466783467262,51.5084722998695],[-0.678498802912156,51.4945639406358],[-0.662284169244357,51.48792634245999],[-0.65193588330102,51.4854707874074],[-0.6482191202599,51.4882317595656],[-0.633827949917419,51.4926949666098],[-0.644447039148926,51.4964852513877],[-0.642211995205478,51.5006272384143],[-0.642970370128307,51.50269347262981],[-0.653464549384195,51.500506993971605],[-0.653921160054979,51.5042260292446],[-0.659271318680068,51.5049023574704],[-0.653899666856739,51.5121929215372],[-0.654978652091332,51.5188082405088],[-0.660143496671552,51.5203572288534],[-0.659944895908714,51.5284469814789],[-0.6479911753946,51.5325865301694],[-0.639722789893743,51.5371326481693],[-0.624770176591683,51.5380058540932],[-0.619702799434341,51.5378798132969],[-0.617806868269875,51.5345950984631],[-0.610536159191516,51.5315021976202],[-0.596221574439372,51.5279298594791],[-0.594984912536923,51.5242332209236],[-0.58099165870603,51.5230741288253],[-0.57597876001082,51.5339101490931],[-0.567256016672106,51.53298103609501],[-0.568008058619701,51.5302863370964],[-0.57509465893991,51.52929987223639],[-0.56504435973228,51.5206922353295],[-0.568645380298278,51.51136446107749],[-0.56397106484503,51.510199566607504],[-0.528111467916711,51.5097064146455],[-0.527947845746455,51.5097641852293],[-0.528751480303224,51.4970691253188],[-0.531819526768283,51.493394462143506],[-0.490024731194161,51.494747634396],[-0.483173971834354,51.5066477306099],[-0.485535850653921,51.510027807206804],[-0.48978652323901,51.51152682866271],[-0.491631151571753,51.5188970612925],[-0.488973663150961,51.52908874485281],[-0.49548974434616,51.538429206093],[-0.49103033077808,51.5445585993485],[-0.477329881579631,51.5552720841679],[-0.477013553382512,51.5596450203677],[-0.482793739750471,51.5628216688482],[-0.484026264608682,51.5751273277532],[-0.494825295709162,51.5847772588806],[-0.49963463786021,51.5967032410002],[-0.500595886737316,51.5996898995638],[-0.517836757296159,51.6002495506482],[-0.522501789242093,51.6050615818205],[-0.530059300191249,51.6171511231726],[-0.534130552322406,51.6371508895353],[-0.539260817248429,51.63803939127659],[-0.537391593287301,51.6429069683246],[-0.530927778365943,51.64913347458],[-0.536666063805369,51.6523694496702],[-0.536891506831177,51.6606244728575],[-0.532626076017035,51.6630071884138],[-0.524254427397298,51.6579368917033],[-0.520994790005152,51.6680453786674],[-0.514718484178302,51.665452870386],[-0.505107856324304,51.6730768935581],[-0.51089720710158,51.67981721744031],[-0.524934113014587,51.6787210002338],[-0.5242727897625,51.6821126557481],[-0.538889081532902,51.679834158485],[-0.548696117291794,51.6826712819357],[-0.543217420102413,51.695135860069904],[-0.547668033138723,51.70318141446891],[-0.563147920499785,51.7116821487297],[-0.561099393103364,51.7180792836397],[-0.550413609644404,51.72304289025951],[-0.553596792664468,51.7284108013512],[-0.550082820807204,51.7305750653227],[-0.553720360510688,51.7340647307949],[-0.560646328420069,51.7340760129433],[-0.559245255678629,51.7373319209044],[-0.56558297032842,51.736546153994],[-0.563699987436117,51.739617341318805],[-0.572762931812711,51.7358638544685],[-0.582498323989586,51.7453260711751],[-0.586379726976092,51.752115950395],[-0.612935985356938,51.74742725606251],[-0.613766437742306,51.750913342212094],[-0.628487583161682,51.7546000043377],[-0.643665829009842,51.754087278926],[-0.673469490089942,51.768471739287506],[-0.676185728108665,51.7784643981323],[-0.681499831599607,51.78805913881689],[-0.690190999010662,51.79233921082721],[-0.682189889465158,51.7945841952136],[-0.682650033195759,51.7972095383621],[-0.701147559853478,51.8148625885959],[-0.709295276544129,51.8205395961038],[-0.719216744430734,51.8161378650891],[-0.723653476773253,51.8177730671437],[-0.745678020612612,51.8420936389668],[-0.736335413246888,51.8424063980913],[-0.731187841864694,51.8489705406749],[-0.722568308376872,51.8500453072874],[-0.720268145545602,51.8561471011597],[-0.710585534394999,51.85777864766721],[-0.7070763034413,51.854414119908],[-0.699777730404245,51.8580122332279],[-0.692311242384645,51.85704474531579],[-0.686767774211115,51.84924025451081],[-0.695451174124327,51.84111049210781],[-0.687053647139483,51.83911536359409],[-0.667214196976871,51.8158103335771],[-0.659031388891668,51.8154359423854],[-0.647770441650684,51.813605794706],[-0.635948892023481,51.818020051884],[-0.632939595714382,51.8199461874726],[-0.611869248475584,51.8120447782419],[-0.594832272868406,51.8140229730984],[-0.591654826308663,51.8081357910766],[-0.581825667306615,51.8069054436194],[-0.575170363479958,51.81881732597379],[-0.567144721879603,51.8198051028464],[-0.560787406154397,51.826382297368006],[-0.558348333792725,51.8247878582692],[-0.560656237503438,51.830082630502],[-0.557137733245316,51.830966586363],[-0.553628614556977,51.826712674402],[-0.54899190205498,51.827986340021106],[-0.543650555088771,51.8245178244047],[-0.537628502381233,51.83141085022721],[-0.564052933383221,51.8470960952908],[-0.566819518134803,51.8508083640193],[-0.563679820599427,51.8512393925917],[-0.569267617683864,51.8517642656497],[-0.569247930029894,51.85807058288499],[-0.583563578497735,51.8703238406752],[-0.60897043800943,51.87556358637269],[-0.6200891563295,51.8854855177811],[-0.628424226034585,51.8821204414468],[-0.651979972895783,51.88679051294871],[-0.65950654049823,51.89056033002381],[-0.66023360337121,51.89455283853079],[-0.673236140138405,51.9018177464874],[-0.69221985900819,51.9001623972571],[-0.702156753865155,51.909119113469],[-0.691463466785638,51.927054891885206],[-0.681578635989452,51.9351420735885],[-0.680318496831893,51.9355019734611],[-0.682345611001697,51.9427366236895],[-0.670345893453668,51.9438199830304],[-0.671930830684543,51.95598965654851],[-0.662102521594579,51.955572649706895],[-0.651233611908249,51.9682810837827],[-0.652978332552365,51.9692289650499],[-0.669063757912304,51.9784877248414],[-0.677326210797824,51.9767223085569],[-0.696150071646608,51.9822064596333],[-0.701570809224346,51.9869616074809],[-0.713384194020656,51.9898164964533],[-0.717869666553683,51.9824161147126],[-0.713941366477039,51.9778705046005],[-0.740379237640103,51.969862627181094],[-0.747555029494841,51.9735571577554],[-0.743646887316823,51.975247306573],[-0.761780490181612,51.98533948000641],[-0.771206020310458,51.982912508217304],[-0.776278010572816,51.9886252768205],[-0.789240125450465,51.98794822588739],[-0.803504262578806,51.98550360900341],[-0.812243030197897,52.0060156555087],[-0.817996393171979,52.00607179192979],[-0.819817648789318,52.0122859293589],[-0.82720756311364,52.015210048322295],[-0.844877772194392,52.0226822894792],[-0.866951146350165,52.0400983817301],[-0.871325629151714,52.04025185257261],[-0.877468741364391,52.0299715979081],[-0.883018771335361,52.0282413942606],[-0.890118209223622,52.0315605650901],[-0.906030231113269,52.02122110917159],[-0.930207238809054,52.0431269425544],[-0.9378800409838,52.061201900946],[-0.933744232825951,52.062636458215],[-0.939316084838664,52.0621597892116],[-0.939279156357086,52.0673536618249],[-0.94439062513629,52.07003207573191],[-0.940055794165603,52.0758419455207],[-0.951872932630787,52.0815336222521]]]}},{"type":"Feature","properties":{"name":"Cambridgeshire and Peterborough Combined Authority","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-0.058023707720777,52.6740916470594],[-0.063785180485854,52.6752243731439],[-0.065445389582436,52.6719958320249],[-0.074610880584377,52.6720740979517],[-0.08783701682411,52.6667802663867],[-0.102195958212229,52.6722061953853],[-0.139501708622985,52.6548617585846],[-0.14106199482318,52.6515074247825],[-0.180020104975691,52.6605611585471],[-0.192867813968712,52.652438511053],[-0.206037616936727,52.6680733124595],[-0.212501332962663,52.6666794930237],[-0.224498479882849,52.6654635657588],[-0.258664797827536,52.6516453733237],[-0.279083338474977,52.6660041709845],[-0.309971999601339,52.6734783337249],[-0.335037147761973,52.6748659736262],[-0.3399513291303,52.666066472699804],[-0.359424307099361,52.6600297111773],[-0.362807605045879,52.660106146968104],[-0.417499669302443,52.6467731162252],[-0.45047612776816,52.6541283428577],[-0.453036205294368,52.649245495696],[-0.467636162684949,52.649899198870294],[-0.475831476553135,52.6487147491004],[-0.475244651771167,52.6450578153139],[-0.484320104749261,52.6461290847593],[-0.494773452953128,52.6403140726876],[-0.488823841117811,52.63283089994],[-0.486107690989908,52.634421725773],[-0.473503473924115,52.628234499997305],[-0.470961263649924,52.6179533112223],[-0.473729251125261,52.614433209587304],[-0.479636967183359,52.6144498270105],[-0.481024270619405,52.6027868894193],[-0.4854397912319,52.60217993771321],[-0.490706771078668,52.5905342881833],[-0.497651443767072,52.5868509766981],[-0.492359814763782,52.5816716791885],[-0.478834287538595,52.5774385740388],[-0.478814868225147,52.573645147065],[-0.425027614243866,52.5824127247453],[-0.415381402678347,52.57874263974791],[-0.41569532371087,52.5701041455316],[-0.407290921113568,52.564054854816995],[-0.419593787330186,52.558961955043294],[-0.415338798339301,52.55155334495251],[-0.402060473161994,52.5483216266858],[-0.401283297186851,52.5386846825222],[-0.404668302768303,52.5323072015659],[-0.413345810543271,52.5284300113759],[-0.411846469441588,52.52475337568119],[-0.390749004399196,52.51943990666421],[-0.377926602923271,52.5106578551389],[-0.354345203263394,52.5064950723187],[-0.352175354622898,52.5033252295446],[-0.359194775076337,52.4973412596548],[-0.359399580960367,52.4898590691293],[-0.350068186216531,52.48254820017161],[-0.349718273910449,52.4728878132779],[-0.341590492473876,52.4669426273503],[-0.352892337192092,52.46106031524471],[-0.370217036825639,52.43993027141731],[-0.371866772917785,52.43684296790261],[-0.362408041008102,52.433531278028404],[-0.389544747421009,52.4217659558199],[-0.410834122698877,52.4127939695696],[-0.417072832141305,52.4115991109509],[-0.419611916479489,52.407324614510095],[-0.416156971603511,52.4035893352168],[-0.432919630273349,52.3963293702314],[-0.443761325863617,52.3838572269822],[-0.454937588159616,52.3857021565881],[-0.45683167428787,52.3823291652305],[-0.46829043845482,52.3828935906478],[-0.469888285346607,52.379895964496],[-0.484760700570653,52.3816312426028],[-0.486737594777736,52.379031219962506],[-0.495946267815481,52.379515530279505],[-0.488518815845791,52.374023541934996],[-0.499486806912858,52.3669929186284],[-0.498701137705854,52.3601003499178],[-0.477338735545641,52.34840941521091],[-0.483264192761938,52.3409032974573],[-0.466656737619639,52.3389275764],[-0.465365756545097,52.3229532812371],[-0.44418351855703,52.3142316300993],[-0.436088655177378,52.3144708459939],[-0.435761112192004,52.2966568800962],[-0.42264235286022,52.289375665233],[-0.421767439464139,52.2849474985045],[-0.410158813316834,52.2844968126785],[-0.406907339620158,52.2874758595882],[-0.398979469350676,52.2787288881547],[-0.392955129522688,52.2823658176732],[-0.380572442546044,52.2826667899994],[-0.375009968281875,52.2804693783712],[-0.372175068758848,52.2734998531163],[-0.38101343524632,52.2731349422829],[-0.38196758301413,52.2687072512921],[-0.374375681124288,52.2329982884739],[-0.359038102644697,52.23473528254559],[-0.341010840873401,52.230647493777795],[-0.34346885979841,52.241874420985205],[-0.334493652011644,52.242920581241506],[-0.319996605501729,52.2427078809809],[-0.313688007655852,52.238998817430904],[-0.29320898808327,52.2405161819444],[-0.285693744441477,52.2374014689055],[-0.286631294016872,52.2348479550748],[-0.299390504833968,52.2160435815157],[-0.292968197585348,52.2076455362583],[-0.274204697772444,52.20872037280031],[-0.261927463111695,52.2096325334155],[-0.264911990138627,52.2057211534675],[-0.240723002820836,52.1901931437342],[-0.244001867319279,52.1826845754175],[-0.249785149179338,52.184371027171494],[-0.26069408798734,52.1764014218502],[-0.254399134155224,52.1721847777994],[-0.228862940566612,52.1662427906673],[-0.216624324385539,52.1587355439061],[-0.234804043652189,52.144726758307],[-0.206204269295573,52.14444897184279],[-0.171534734092178,52.1395025909765],[-0.163750615790458,52.14012801971711],[-0.15967310916165,52.1440684002048],[-0.150513430770291,52.1436194908411],[-0.149834647855058,52.1389412319963],[-0.144445035225132,52.13820375735641],[-0.143931724268567,52.1177357084453],[-0.147860099234133,52.1141949676641],[-0.149559396778212,52.0898200452803],[-0.157331873594096,52.0805235103049],[-0.147505493490738,52.069403111962],[-0.155121032648697,52.0530610998673],[-0.144576187175316,52.0469904651766],[-0.133729866748337,52.0462328527372],[-0.122338660710822,52.0296361154391],[-0.126567501937775,52.0209218759846],[-0.120998829974349,52.019521277353796],[-0.107694005461655,52.0283551804766],[-0.079088400269028,52.03788689882929],[-0.054212163156385,52.046621802763],[-0.035724638841093,52.0587923576566],[-0.024412376117604,52.0633159918567],[-0.012558732322164,52.0616420510436],[-0.001383047689061,52.051665179532996],[0.007186278995233,52.049533111612895],[0.039849539461947,52.0532246291455],[0.052098379848679,52.024630783021806],[0.068127418901375,52.00578873916311],[0.071460854084171,52.00828215861291],[0.079062556854306,52.0077220414849],[0.092254337831655,52.0216539889866],[0.094195148005894,52.032874217192905],[0.101155696533364,52.03885686046619],[0.105736213487718,52.0602611071123],[0.119077515908339,52.0599625876485],[0.128135198304803,52.0473225716999],[0.151116953867509,52.0528518020285],[0.152634479462334,52.05031792207121],[0.160577506278591,52.0520986827448],[0.160756717469488,52.04843997564421],[0.166396143400974,52.048190780182],[0.167570276572422,52.0549998115474],[0.186373372610965,52.0566612923949],[0.189916315048695,52.06219958235091],[0.183194362384494,52.07318345540789],[0.19396992473634,52.0754814406526],[0.203459400262098,52.0926741553906],[0.210142693897074,52.0916398950268],[0.235208003627414,52.08900005039101],[0.252010257040759,52.0770934259582],[0.276228961971443,52.092638303593894],[0.286011765577546,52.09040765130239],[0.32467398462829,52.07278328743791],[0.343856926728379,52.051013347973],[0.363835668614455,52.0436195749848],[0.371722417518953,52.0373694076637],[0.389695372823124,52.0364665943425],[0.388189336220024,52.04371744611],[0.379612827815692,52.0495627147372],[0.390420040825059,52.0602880948417],[0.404638263575799,52.0655023804364],[0.40709249057185,52.0707939313001],[0.40197099455091,52.0724865296746],[0.399507894275503,52.08415888315349],[0.394180399345528,52.08435355699151],[0.390833155115899,52.0890141302074],[0.394996785207166,52.0959681296318],[0.386864308159335,52.0973049038859],[0.388687744065407,52.0992121582748],[0.381803808187178,52.1027012943415],[0.389589786598814,52.1174705817835],[0.398340479646194,52.11879195816951],[0.396362622756329,52.122359100601805],[0.408576714286968,52.1237045693355],[0.40470623552758,52.12928537663811],[0.410002587792837,52.13439834030849],[0.418283006486572,52.1343556337397],[0.420886391436469,52.1556392018357],[0.417276418385201,52.1593066842157],[0.435915802809098,52.1594950938253],[0.43870617882601,52.1657115885769],[0.444360807336481,52.1647464859777],[0.444522267942986,52.1710820146518],[0.452191370484852,52.17320424649391],[0.463702800013869,52.170544294998194],[0.470730328668491,52.163258851412],[0.477241421275606,52.1675707917579],[0.491332842084376,52.1651020323233],[0.487464957425403,52.1697969640223],[0.493964683725541,52.1814956863992],[0.494975275012035,52.18873312220871],[0.502555616997777,52.1960265897797],[0.503130324161239,52.207036041579],[0.508650473280145,52.21398086080771],[0.51282087575082,52.2136889315597],[0.514484042486228,52.2267794084401],[0.494931496203922,52.2392580216355],[0.480337244966199,52.232681926845196],[0.471856801995224,52.2403425358897],[0.46511176687036,52.24037566413289],[0.455561270907071,52.247594282354505],[0.450421570152333,52.2433353336166],[0.44340437206472,52.242637336282904],[0.42696480396438,52.25360276802849],[0.414517804147287,52.247861137919294],[0.421335031399158,52.2396913210168],[0.40880884586835,52.2390510976157],[0.394960036284691,52.2306797170433],[0.384648200907713,52.2340062175449],[0.371248876090756,52.226556160209],[0.35742293324045,52.2341583287445],[0.342684099441605,52.2423433461623],[0.356664711325497,52.2462879095343],[0.360307524405684,52.2502326305975],[0.340002513478712,52.26768786542281],[0.355225451242789,52.2793215334246],[0.350650252080052,52.2829601200883],[0.359222161181061,52.289157536255594],[0.360736448039976,52.29781370367921],[0.37786942403728,52.2912518716526],[0.382723057789948,52.2932662512981],[0.385362779142747,52.2829977648172],[0.395354187741072,52.2804547427102],[0.409547153241636,52.2690352970826],[0.419626953677378,52.2597600605532],[0.424206341730438,52.2558715739394],[0.498802934867457,52.27302139198121],[0.495845672174338,52.280372382894605],[0.504701064699239,52.2863648182628],[0.47287278737114,52.3039421314874],[0.46209292186592,52.3088146476053],[0.457500081609791,52.316295726686],[0.431376631558306,52.3158254305483],[0.424221634123734,52.329216364395194],[0.436324063532782,52.333533709354306],[0.442501205517931,52.3488315513591],[0.42752166267697,52.3537039171192],[0.420053117982932,52.35215484546399],[0.419224796208912,52.3579359065842],[0.407691561003436,52.3615120485815],[0.382085581540506,52.3962733461799],[0.374777423612123,52.4097288652912],[0.425313414692045,52.43032724411509],[0.423207624813538,52.4339655560324],[0.429344099524506,52.4364266700427],[0.423470839569457,52.451045295992905],[0.428529094955595,52.45465261463091],[0.402089510181204,52.4653483061529],[0.391915782314741,52.475528557402306],[0.380706411169306,52.479539458722506],[0.367143783376751,52.495943283274705],[0.367062169051718,52.5011737855372],[0.362092920592118,52.49893253533251],[0.345033484930949,52.5016852724506],[0.330937655942884,52.5091357776997],[0.318305492988394,52.5076575263684],[0.317292909515966,52.5130077671413],[0.309360655162502,52.5136222736722],[0.256476359467244,52.50771429183041],[0.246040899012424,52.4998913009411],[0.238787960457548,52.5091860814808],[0.236319141863767,52.5072905693362],[0.206123341125585,52.5196351215419],[0.219706573975459,52.52314673469921],[0.223173329346949,52.5213840058168],[0.222386750717899,52.52391019833001],[0.230591211600485,52.5279099439945],[0.225604584567381,52.532569863177194],[0.220292412228595,52.5289210167477],[0.214940166362892,52.5320516247085],[0.208134330003767,52.5300873501842],[0.205847372735243,52.5338508152413],[0.213145009972898,52.538171700616594],[0.203871743966295,52.5454050574981],[0.2112362214072,52.5452362372342],[0.214625645028992,52.549106661398],[0.205139877280549,52.547900883299405],[0.204708359463945,52.5546561656616],[0.214097363073335,52.55619927217351],[0.217238460682305,52.56059400198421],[0.205631532529288,52.5655691362133],[0.218486060675396,52.5722264060727],[0.215780264609182,52.579446062219],[0.202611202338089,52.5800954318547],[0.199147719762661,52.5917920604483],[0.193852427235163,52.5921033640504],[0.191599589117174,52.6015168574656],[0.201518805047912,52.60313580478281],[0.205613747965295,52.611803047212206],[0.217386506848081,52.6145254711317],[0.210864677693126,52.61792837356921],[0.219300091055415,52.6218124223759],[0.192027889277547,52.63426554818881],[0.172059654600112,52.64869432261331],[0.169595150039996,52.6527560231551],[0.178340341577839,52.6526360528827],[0.176278783416009,52.65569144225069],[0.18384177886579,52.6556620737875],[0.184429622077569,52.6721408170752],[0.181078735157251,52.672099160325494],[0.184716621631441,52.6778946663696],[0.179815918580434,52.677633255036],[0.157144647652993,52.679692686706],[0.153643849693306,52.6821777181757],[0.15635300101668,52.707834957250604],[0.171626068420179,52.73803170247571],[0.170180985553627,52.739894147841],[0.132975309366633,52.7393044772068],[0.113685341276425,52.7299901125966],[0.098788989899149,52.7303403160033],[0.088984857202413,52.7236759172043],[0.063904199867696,52.7274361166459],[0.048018423926677,52.71878510693351],[0.044149475987283,52.7143823496307],[0.048012878520151,52.68104979003319],[0.021500352427817,52.66488728846459],[-0.031270683265058,52.66153274398539],[-0.032102883694938,52.6653607087669],[-0.044925454984588,52.6691900703945],[-0.058023707720777,52.6740916470594]]]}},{"type":"Feature","properties":{"name":"Central Bedfordshire","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-0.254399134155224,52.1721847777994],[-0.26069408798734,52.1764014218502],[-0.249785149179338,52.184371027171494],[-0.28911707135863,52.1909257732246],[-0.301678140430968,52.1782250079898],[-0.304274544252793,52.1669068703855],[-0.310781767771191,52.167127963048806],[-0.321264506179038,52.168837647152],[-0.330065263038634,52.16534160165461],[-0.335068622455048,52.1560970269537],[-0.349149680406883,52.1453299495132],[-0.357798971759897,52.14600364947001],[-0.362033524379849,52.14292003106021],[-0.344804182727541,52.115955794829105],[-0.353015111430785,52.106364462387],[-0.356108892660156,52.1077285732615],[-0.3678128062763,52.0992862878215],[-0.366694093256815,52.0968178802168],[-0.371399523465257,52.09456859291149],[-0.37458753078344,52.097188655689806],[-0.381187525495222,52.093565053964596],[-0.376908470454649,52.0877399586312],[-0.389148882923144,52.0808801249641],[-0.384902381057375,52.075574502543],[-0.38964862344955,52.0745730959627],[-0.397016891133653,52.0710031744821],[-0.429862716351285,52.067773154574404],[-0.440033276196237,52.06328741387679],[-0.457752752518123,52.0728358820159],[-0.47152698515917,52.0880086570609],[-0.486122668461448,52.0838801587686],[-0.504474233740156,52.07072785274091],[-0.499602964236489,52.06744342033859],[-0.504488933841949,52.0567813744139],[-0.509814334267653,52.05502533446581],[-0.511517523568796,52.0595588479121],[-0.517895643235148,52.06033065035079],[-0.51781628543909,52.0678905781751],[-0.533487842576534,52.0771401049529],[-0.541585672597151,52.08188277520709],[-0.550085459682615,52.0807045527474],[-0.561803403705596,52.0923247616261],[-0.56762196936698,52.09497071170739],[-0.578297284440013,52.0941144803371],[-0.582526255529375,52.09835983381739],[-0.589185945140159,52.0974991888419],[-0.583232659181244,52.104548974399705],[-0.591810331121503,52.1106918880999],[-0.601872296954805,52.10502749790171],[-0.596751287866456,52.1016849141697],[-0.603959162445068,52.0991243426225],[-0.605791266651691,52.0921194755494],[-0.631357876763902,52.080974923562],[-0.64158395416267,52.0677213446807],[-0.651008115699226,52.064144004289396],[-0.66897597717708,52.0487168407765],[-0.658399825157736,52.04406174725711],[-0.643075775484512,52.0368909335467],[-0.640329250663556,52.023660794933804],[-0.651023980572764,52.0184860767988],[-0.643476890212709,52.0108547037243],[-0.6506565522154,52.0096701876894],[-0.661689665376442,51.99973638534621],[-0.656172710242462,51.9820259504293],[-0.645680806107934,51.9722283113145],[-0.652978332552365,51.9692289650499],[-0.651233611908249,51.9682810837827],[-0.662102521594579,51.955572649706895],[-0.671930830684543,51.95598965654851],[-0.670345893453668,51.9438199830304],[-0.682345611001697,51.9427366236895],[-0.680318496831893,51.9355019734611],[-0.681578635989452,51.9351420735885],[-0.691463466785638,51.927054891885206],[-0.702156753865155,51.909119113469],[-0.69221985900819,51.9001623972571],[-0.673236140138405,51.9018177464874],[-0.66023360337121,51.89455283853079],[-0.65950654049823,51.89056033002381],[-0.651979972895783,51.88679051294871],[-0.628424226034585,51.8821204414468],[-0.6200891563295,51.8854855177811],[-0.60897043800943,51.87556358637269],[-0.583563578497735,51.8703238406752],[-0.569247930029894,51.85807058288499],[-0.569267617683864,51.8517642656497],[-0.563679820599427,51.8512393925917],[-0.566819518134803,51.8508083640193],[-0.564052933383221,51.8470960952908],[-0.537628502381233,51.83141085022721],[-0.543650555088771,51.8245178244047],[-0.54899190205498,51.827986340021106],[-0.553628614556977,51.826712674402],[-0.54168481871377,51.8184447038958],[-0.543179757873722,51.81546351723589],[-0.524100219889923,51.80581119201871],[-0.519728847877412,51.8050953620297],[-0.502282758285977,51.81545869409139],[-0.501593732786462,51.82148699706589],[-0.511192917001904,51.8258936103662],[-0.506016779872407,51.8272998264938],[-0.501818268966651,51.8367948225647],[-0.491881849047484,51.8352784677103],[-0.490932895044853,51.8428193896854],[-0.479570821304971,51.8421443184688],[-0.471195676810699,51.84546786971771],[-0.47829846763004,51.85313650259181],[-0.470419996730907,51.8557101697987],[-0.46410445097099,51.8501473635275],[-0.45406309306899,51.8530325282195],[-0.447524508948031,51.8476015346548],[-0.438986392340041,51.8518351278902],[-0.425234924861339,51.8467206438445],[-0.421500810100557,51.85020522604991],[-0.40485880669367,51.8406074632762],[-0.373959116100986,51.8291906682165],[-0.368730269619423,51.831082987397394],[-0.364370661021056,51.8398913223753],[-0.363302563864236,51.8421051218226],[-0.35603050120907,51.8405132485432],[-0.339485896124555,51.8496055501941],[-0.352871725373492,51.8635431685598],[-0.354833888657067,51.8740145293011],[-0.368298321917114,51.8730602121632],[-0.365784241517425,51.8707621163866],[-0.369755351222524,51.868115230406204],[-0.389297197133419,51.8715639931044],[-0.391467766236908,51.8701290142886],[-0.400893388932862,51.8686515399783],[-0.409121494206001,51.86149496706451],[-0.416125595170405,51.861995083806896],[-0.414417268771617,51.8590352508716],[-0.423049532791485,51.8546212471378],[-0.449402741017434,51.8783477372326],[-0.466621143224371,51.8881648520249],[-0.483940621083587,51.8883001497858],[-0.484843589027866,51.89130585127899],[-0.499807906101467,51.8978309814103],[-0.505923085960359,51.9006124971274],[-0.494046758228838,51.9060746839948],[-0.491520429531456,51.90632649313831],[-0.482072718284253,51.9089960858903],[-0.478496583375607,51.917331002601095],[-0.485701416266266,51.9227011901167],[-0.462387863303657,51.9235976114163],[-0.4518566269223,51.9247561867673],[-0.43781594492692,51.9277474618813],[-0.426038596373424,51.92668864086069],[-0.421681634403011,51.925680737963106],[-0.422364584067237,51.92051965312879],[-0.419064998588213,51.912303645197504],[-0.407559825373171,51.9106916633068],[-0.402437002914537,51.90970319444481],[-0.401219962878555,51.9130531686578],[-0.385615555724027,51.91568039597941],[-0.383550653786287,51.9182721994392],[-0.389213632813862,51.9257808934839],[-0.405607109518841,51.9324543523464],[-0.402482260582949,51.933410181376196],[-0.405823940976724,51.9434310013028],[-0.399439484751453,51.967671399672405],[-0.393432815156759,51.9685769398775],[-0.39026599459086,51.9777284725129],[-0.380686423367772,51.9794323181689],[-0.378205738028609,51.9716357778397],[-0.382912026325528,51.9514137084508],[-0.372582345461213,51.9480188688508],[-0.350225341620276,51.9575781039653],[-0.349173618940447,51.963736946824795],[-0.350799424261708,51.972896936710804],[-0.363732328770167,51.97520920376421],[-0.367157519155375,51.98376097166851],[-0.358721683055515,51.9855463264559],[-0.338675386871316,51.9827546444479],[-0.311555453163235,51.982109914959295],[-0.306815355893463,51.9890689032727],[-0.295325513111954,51.99540425540099],[-0.300054242147805,52.0007805349847],[-0.283893437171196,52.00182026713691],[-0.283375312475573,51.9966603015254],[-0.272281412865576,51.9881356301887],[-0.27390055373757,51.9812095346546],[-0.260255094968933,51.97970481960609],[-0.257448532425214,51.98538588563851],[-0.247889109786431,51.9851729767287],[-0.244078670645728,51.9990232893037],[-0.236867969738207,51.9979471688387],[-0.213498072869146,52.0084509436565],[-0.201256006066088,52.0098246885529],[-0.219493434451981,52.03674125914831],[-0.194982619305265,52.0624150813563],[-0.172619414626835,52.0602099377647],[-0.164166052138528,52.07703547259041],[-0.157331873594096,52.0805235103049],[-0.149559396778212,52.0898200452803],[-0.147860099234133,52.1141949676641],[-0.143931724268567,52.1177357084453],[-0.144445035225132,52.13820375735641],[-0.149834647855058,52.1389412319963],[-0.150513430770291,52.1436194908411],[-0.15967310916165,52.1440684002048],[-0.163750615790458,52.14012801971711],[-0.171534734092178,52.1395025909765],[-0.206204269295573,52.14444897184279],[-0.234804043652189,52.144726758307],[-0.216624324385539,52.1587355439061],[-0.228862940566612,52.1662427906673],[-0.254399134155224,52.1721847777994]]]}},{"type":"Feature","properties":{"name":"Cheshire East","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-2.40069772399879,53.3752206141119],[-2.41059642851077,53.3838655674642],[-2.42658992510444,53.38746151693581],[-2.42872346408877,53.3764058211629],[-2.439663062122,53.370542175359006],[-2.43987999487119,53.36666264560979],[-2.45884201824813,53.3682855996021],[-2.464995576724339,53.3635309658511],[-2.48687843882333,53.3679038004418],[-2.505823456891251,53.3554851308386],[-2.52104960816655,53.3479004826802],[-2.51839296054763,53.3423902754329],[-2.49396788490726,53.343298573682496],[-2.512277409703251,53.3213457772606],[-2.50290842610369,53.3133833351068],[-2.505533104261191,53.3106810260786],[-2.50169535038024,53.2986441431165],[-2.49759066404509,53.2993408950856],[-2.49800605204794,53.289908956227],[-2.48507635888075,53.2908242620056],[-2.46999929639836,53.2857206350048],[-2.46445731784584,53.28727947103279],[-2.44689066170166,53.2801142296791],[-2.45048311658097,53.2781708045891],[-2.44408944771518,53.270471539455],[-2.43366919208566,53.2686276571636],[-2.42745862054919,53.2611731355367],[-2.422885196312,53.2600685960115],[-2.41445485676336,53.2683194002073],[-2.40000166044717,53.265330575945605],[-2.394115156194999,53.266754308220506],[-2.38824871707801,53.264966839343],[-2.38823377386696,53.2613349521624],[-2.38686160552567,53.26409943071191],[-2.378991841186401,53.26337604137171],[-2.38153754779386,53.2578397971959],[-2.37039950475514,53.2544799494978],[-2.36415236004256,53.2485010688601],[-2.34901131460463,53.2486741719984],[-2.34635313770005,53.2409372134946],[-2.35913090712075,53.2333613144022],[-2.36379985115036,53.22357084417221],[-2.39628927821287,53.2343623560282],[-2.39885893413675,53.2282763238947],[-2.402821736110969,53.2292957526187],[-2.39787804302048,53.2252278607696],[-2.40117228412505,53.2217587591391],[-2.414181798597629,53.21929976543681],[-2.40883117224796,53.2118053626017],[-2.41016086415475,53.2056963595254],[-2.40088892693651,53.2032830985173],[-2.39503275570858,53.2061000742529],[-2.389862019983359,53.196085559906],[-2.37255999218109,53.1955514293284],[-2.371152358822469,53.190440214311],[-2.37692254177232,53.187261555492704],[-2.36869299391766,53.1830375114804],[-2.37820200198146,53.1720815844681],[-2.3921096750195,53.179915218434],[-2.39805635012258,53.1772131933818],[-2.39794213970378,53.1722984172816],[-2.40657953707285,53.1741370507097],[-2.41632162675719,53.187892260709],[-2.4306634553297,53.1979652850791],[-2.43451693346036,53.1966748349682],[-2.44312284066788,53.201363125177],[-2.45119420071354,53.19945945813879],[-2.45643584892998,53.2026340914525],[-2.46025570906483,53.19908133643351],[-2.45733300678703,53.17661671834671],[-2.44198464678317,53.16880683443541],[-2.44325426777797,53.1601943483571],[-2.45465994057338,53.1609377153075],[-2.4564654496211,53.1568677846776],[-2.46907394422686,53.15276202585989],[-2.486180207689081,53.1601567418589],[-2.485024706851569,53.162737748001],[-2.49619430804823,53.164282614647],[-2.50627915275411,53.1589863517269],[-2.520565609143881,53.160409797819405],[-2.5268653295633,53.1528386322101],[-2.54225131705465,53.149760869777],[-2.55968043531009,53.1618833282777],[-2.56675995665832,53.1626075346926],[-2.57667076017224,53.161981014565704],[-2.583580969412449,53.1554979028643],[-2.59650472428264,53.15887206973381],[-2.59749477128694,53.1552032264289],[-2.588797789521419,53.1465840878434],[-2.59208979731994,53.1445047763271],[-2.60433350998973,53.1451020993308],[-2.611685991957271,53.15055859207891],[-2.6231793585589,53.151432019702],[-2.629067876741721,53.14867285123181],[-2.64078791397183,53.139860352859706],[-2.64042854101919,53.129063825154],[-2.65973028828682,53.1307164169775],[-2.66243653007457,53.1213491468155],[-2.67114512359379,53.11587001256039],[-2.696628488287749,53.1199680071161],[-2.70605412094603,53.1185091315368],[-2.71136358397739,53.0936424027863],[-2.73173861065917,53.09180898420941],[-2.73492958613957,53.0865530812722],[-2.74546617975236,53.08215653516869],[-2.7529286634929,53.0692262393893],[-2.7410736974235,53.0645229171909],[-2.732422993528071,53.05768356766131],[-2.73469887537351,53.05508423513451],[-2.718262812012151,53.04421409575961],[-2.702410556473561,53.054321250716],[-2.66881731014789,53.03865393652299],[-2.67877063490427,53.0326589803057],[-2.67932102953477,53.025939639074906],[-2.68501806748409,53.021713246771],[-2.678320565613991,53.01501111378851],[-2.68855490621211,53.0124863584248],[-2.69929243706707,52.9954387986715],[-2.6870784850997,52.9868304777299],[-2.67466228547344,52.985662810387204],[-2.65235683870577,52.9949944628385],[-2.64280514793621,52.99348067375009],[-2.63507452063149,52.9967342129058],[-2.6280281628417,52.9951689864564],[-2.62194000405297,52.986742232504305],[-2.60773406479019,52.988362147215305],[-2.60568393052363,52.97939822222429],[-2.594889067849059,52.979607147503],[-2.59962988507348,52.975432932539],[-2.59275619461528,52.9741694713771],[-2.59844664203957,52.9717182403168],[-2.597693471280309,52.9630059899653],[-2.58911083963905,52.9586522241747],[-2.586202985499541,52.95531443492861],[-2.57814373223453,52.9557288913684],[-2.57029254408744,52.9597428339962],[-2.5734924463511,52.9627164257958],[-2.561262882584721,52.96495210511421],[-2.5536974510078,52.9574662054001],[-2.54635522864471,52.9568377030709],[-2.52951582206291,52.9471648775005],[-2.52328068180159,52.9543552873514],[-2.5213195662134,52.9743015514111],[-2.50689718718958,52.9649126134856],[-2.49902312961341,52.9684347482672],[-2.4917008089993,52.9676840793743],[-2.48115277114678,52.9588178873791],[-2.475083773834999,52.96248938132259],[-2.45025707485373,52.96605155073019],[-2.442957468781779,52.9707391423316],[-2.43461402318991,52.9695213474101],[-2.43816862955627,52.985567722928295],[-2.41086210522397,52.98792531664],[-2.40447509904863,52.9916535770271],[-2.40698671538335,52.99591662442201],[-2.38973475249817,52.995392203215296],[-2.38079367936827,52.99841106225491],[-2.38304468514478,53.0077867863604],[-2.37046780521562,53.0145758528387],[-2.384227391081021,53.0261675781643],[-2.37978504906831,53.02759141864241],[-2.38617066041114,53.0335638323062],[-2.38215914563461,53.0458496954898],[-2.38512366576312,53.0480909972802],[-2.37505980292515,53.054530720380406],[-2.35757896496723,53.05471851161159],[-2.353735258352569,53.0588488367202],[-2.34859444338724,53.0558257572991],[-2.33051505526749,53.070860452521494],[-2.32900939016106,53.0765798964248],[-2.31672798268146,53.0811150720024],[-2.30339645880176,53.08296118883789],[-2.29446090281441,53.078295845639204],[-2.281690216685531,53.0803160704102],[-2.27528900821487,53.0821891316426],[-2.2771057842415,53.0859055116809],[-2.25589895456444,53.090674159951],[-2.25324849091567,53.0939769935289],[-2.24650870143613,53.0902166577942],[-2.23795141697789,53.101047144668996],[-2.22307362111558,53.1037952188077],[-2.2113149262639,53.1158244641231],[-2.19350962891906,53.129620649252],[-2.18653381017354,53.13597727100209],[-2.1732802262854,53.1476049272708],[-2.15954293648532,53.152906092536],[-2.15564486007666,53.1596189582844],[-2.14141084525282,53.15665239210911],[-2.14486585803342,53.173767794645],[-2.14073139793868,53.183578687823704],[-2.13346397503861,53.1828150167551],[-2.12787018937877,53.17462867367811],[-2.114413216571419,53.1725408816396],[-2.1153640261389,53.1695169310491],[-2.10038095023658,53.169566496295104],[-2.09070204345616,53.17229081899681],[-2.08723683310095,53.1698537692042],[-2.07804988230038,53.1704426893823],[-2.05824238422747,53.176321309854806],[-2.05921518155396,53.1809006459014],[-2.05228942969468,53.1839592991013],[-2.05498629363975,53.1864875164726],[-2.04641792897177,53.192681847338505],[-2.028554852885521,53.1933536568874],[-2.01817915668168,53.189052794187],[-2.00166572601453,53.1930552402503],[-1.987407758670291,53.21358584871461],[-1.99026453573037,53.2229988991032],[-1.97606495086031,53.227529768486],[-1.97485875420975,53.2310610534684],[-1.98188326046324,53.2385793911929],[-1.99973122358111,53.24504885623911],[-2.00033274687168,53.2554386481807],[-2.009481851247089,53.260652454988296],[-2.00519729687241,53.2690399521849],[-2.00813437677626,53.2874882743828],[-2.00932914808123,53.3023141546959],[-2.00155104700482,53.3189218127238],[-2.01026597066413,53.3228970363096],[-2.00928300059075,53.3313885886372],[-2.013649944324539,53.3324201566667],[-2.01431920100565,53.3400585126535],[-2.00465983481896,53.346009660235595],[-2.00806522440504,53.35496670043139],[-2.0089981072363,53.3620109951229],[-2.0218166254234,53.366757098691],[-2.0271286327421,53.363767343617006],[-2.03408638701547,53.367752831454],[-2.031058463243001,53.37026238610941],[-2.040563624895011,53.3740877663963],[-2.05532046861855,53.36689114755761],[-2.0611634123619,53.3584382505572],[-2.07855305589208,53.358148672312204],[-2.09495154896013,53.366035950169],[-2.10392850224723,53.36608244800111],[-2.11440472215977,53.3646396308951],[-2.1231957229973,53.3619466331234],[-2.12814857237164,53.364614755849],[-2.13902531020559,53.36731701160131],[-2.138196731806,53.3568913122976],[-2.14253276678546,53.354189581475204],[-2.15119059702052,53.34813313535721],[-2.14409931007101,53.3428710074742],[-2.15000843800523,53.338297487851406],[-2.15253543959371,53.3285532755778],[-2.15985776182758,53.32810402222951],[-2.18487676886287,53.332691419754504],[-2.19416286501527,53.338650441058405],[-2.18097727745663,53.3440438011382],[-2.18801518077824,53.3487366198004],[-2.18544088377377,53.3526597696074],[-2.20829169487155,53.354996616101204],[-2.21614170311279,53.358866638158695],[-2.23298161296768,53.358795182821],[-2.24079008412411,53.3595742669914],[-2.25644728585402,53.3606768412766],[-2.2670766725644,53.35057345754301],[-2.28064612215112,53.3459681637056],[-2.28793341075338,53.3430861116573],[-2.30166163948606,53.3402241854423],[-2.29693022964698,53.3485838120438],[-2.31399816114173,53.3574246421479],[-2.32342362533264,53.3582668293845],[-2.3243983139176,53.36137967102991],[-2.32904732552465,53.3607826760723],[-2.32989655969821,53.3639381419927],[-2.34008376436776,53.3673729049755],[-2.34900601835613,53.3658981566704],[-2.35396207496566,53.3682092578586],[-2.36502717938874,53.36310597133241],[-2.38469686434926,53.3700437099611],[-2.40069772399879,53.3752206141119]]]}},{"type":"Feature","properties":{"name":"Cheshire West and Chester","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-2.51839296054763,53.3423902754329],[-2.53945290311962,53.33639028752031],[-2.544529022372941,53.3305254811008],[-2.55166436777914,53.3323739959253],[-2.561875078127809,53.3233428508857],[-2.58628365884663,53.3293945885969],[-2.59522305170231,53.32245437116751],[-2.609086515520691,53.3120712133787],[-2.610070593570001,53.318030312126],[-2.61684400100499,53.3206479832224],[-2.62102390854692,53.3192202490995],[-2.61780100563941,53.316135092996205],[-2.62412274757937,53.3093981931032],[-2.6325085665864,53.30752104489011],[-2.64506142803031,53.3101350721447],[-2.64155693821446,53.3050347970597],[-2.68535245084734,53.31533169001159],[-2.70079881188986,53.3058055466183],[-2.72096558513255,53.3127601289393],[-2.73065143414804,53.3119834383632],[-2.7344799457942,53.3071679636179],[-2.73929214925888,53.306870369551],[-2.75248024911202,53.314734130401],[-2.75279179802408,53.3145695944132],[-2.78896613468561,53.29545091967551],[-2.79095809380464,53.2962419153818],[-2.81595602191875,53.3061631541104],[-2.84299741520689,53.3075365803564],[-2.84774599999753,53.3062552639172],[-2.84828815838519,53.3021146742696],[-2.839601095268431,53.2987369178401],[-2.85396195212893,53.2952784849701],[-2.85556823597895,53.2920219419777],[-2.87838965649441,53.29078282010861],[-2.88684078453712,53.2931599794236],[-2.90053434197305,53.2970099236817],[-2.90169861259955,53.2976987520623],[-2.90362636993272,53.2988392135723],[-2.904650952215099,53.299466071021996],[-2.91477813940676,53.30566058738431],[-2.92857185482182,53.3082489283384],[-2.92876393030535,53.3084068394297],[-2.9316025858093,53.30606879652561],[-2.9395513248261,53.3104155952951],[-2.946587235322041,53.3055264796012],[-2.96803333271532,53.3012551099336],[-2.98016383262413,53.304659025589],[-2.99273779101907,53.3071087583506],[-3.01283698795953,53.298970797262],[-3.02975998329551,53.2989920992903],[-3.048390739783609,53.3109606091392],[-3.05965916378639,53.3090038491563],[-3.07264584478872,53.315852811476404],[-3.083081090211441,53.310785778258506],[-3.1065625931004,53.2981098134602],[-3.10353737098162,53.2991501964748],[-3.10598338497347,53.2952100662858],[-3.09665622890249,53.2971686385921],[-3.103761763980041,53.2952854771672],[-3.09639621731371,53.2942234734611],[-3.10958475197974,53.293143270761504],[-3.10336127830915,53.2914472528263],[-3.10844948283661,53.290322237229795],[-3.10131001064997,53.2907308330837],[-3.1045388947079,53.2887108080074],[-3.10119497040552,53.28690251885509],[-3.09771016877136,53.2901761194685],[-3.098900000619011,53.28679154804071],[-3.09335287456405,53.2880893416728],[-3.09631390662565,53.28433253860009],[-3.08374043581996,53.290056731984],[-3.090638569932,53.28453380056041],[-3.083879920492881,53.2794509171087],[-3.08159658541842,53.2813261199628],[-3.07690965474085,53.2795446646132],[-3.07303564325734,53.2776290626308],[-3.064175842185271,53.2732469880056],[-3.07348352880117,53.2773725493557],[-3.07752091342265,53.27916161354781],[-3.07833738667489,53.278649003712005],[-3.07737910610625,53.2751412650631],[-3.077077044273671,53.2740354572248],[-3.07754332117356,53.2750471984561],[-3.07900923684945,53.278227652941],[-3.0918170388319,53.278336660101694],[-3.084662025216001,53.2746813672323],[-3.08492174992992,53.2745180537059],[-3.09236398972628,53.27614278103359],[-3.08794931921777,53.272618015810906],[-3.08414276335973,53.2712663658082],[-3.078059661665009,53.2691059159872],[-3.08456112853422,53.2710266493016],[-3.08493208980761,53.2711362264318],[-3.08488588405264,53.2708405676056],[-3.084298628564599,53.2670824644318],[-3.08705511544319,53.2695975634072],[-3.08896346943702,53.2713385904178],[-3.09085610358807,53.268697344596106],[-3.089738932792911,53.2680595418993],[-3.08114980786968,53.2631549379493],[-3.089586251534219,53.267348888387],[-3.09159183431844,53.2646769357493],[-3.08413830615183,53.2623386099041],[-3.09173814836274,53.2645344594402],[-3.09205859703414,53.26673007210271],[-3.09250115087244,53.2697618751013],[-3.096679763498019,53.27232141166889],[-3.101328982235581,53.266947230219],[-3.0974437478442,53.2636432016436],[-3.09735539647322,53.2635750270962],[-3.07442455880501,53.25370752333371],[-3.06111635612874,53.2527195881167],[-3.04867070156356,53.252209485944],[-3.03606321917434,53.2518064415822],[-3.02590523620471,53.2484562331852],[-3.01642307999594,53.2441217040651],[-2.949510091719,53.2112797159544],[-2.94367573975835,53.204025924028095],[-2.92229929317117,53.18929267172491],[-2.920395401555011,53.1825735754413],[-2.92031923594333,53.179430795747194],[-2.92784027300696,53.1714108576278],[-2.94030431761433,53.16674166136189],[-2.962841004300619,53.161994200577396],[-2.97092595816805,53.1607824008739],[-2.98149190787267,53.156291907487905],[-2.98995676868437,53.1575423672658],[-2.99292900752875,53.1532880715486],[-2.98456488845346,53.1477796901282],[-2.97949802680966,53.150621646048705],[-2.96381312518341,53.1327575250671],[-2.94690567901902,53.1272704120197],[-2.94367033475339,53.121625733068],[-2.92083628700424,53.1184237773477],[-2.91023233565262,53.1126389642335],[-2.89700150898169,53.11399427729509],[-2.88649976236547,53.1213838008134],[-2.88094231782242,53.121374734102],[-2.88387882843162,53.1113435262989],[-2.891715934616951,53.1093946610141],[-2.89337950720479,53.1041766150653],[-2.88730377718142,53.1044224595121],[-2.893486745639,53.09624189973601],[-2.89781982506262,53.0964151786431],[-2.89483798746909,53.0988144096168],[-2.8993999877082,53.0979251307966],[-2.90094374755769,53.090833534236104],[-2.89357617271463,53.091552466057],[-2.89105116344755,53.0875109726962],[-2.87572225442175,53.081522028533605],[-2.88175073390281,53.0745944790141],[-2.875362703575501,53.0733013685121],[-2.87765277501084,53.0689202210622],[-2.86935778825608,53.0697442545298],[-2.86550863241197,53.0660210939108],[-2.87043378383573,53.064191874081196],[-2.86151314240195,53.0607743460048],[-2.872562737224929,53.0587080455399],[-2.86095963670318,53.057645577620406],[-2.86709331211026,53.0567407412946],[-2.85923562405487,53.054164796080194],[-2.8660908449665,53.0527360816168],[-2.86834048155913,53.0500624767763],[-2.86342001402353,53.052124439829996],[-2.86311870843391,53.048622578026],[-2.87011791101549,53.0453605932239],[-2.86160123755242,53.04382515663921],[-2.8667042511445,53.0405626123359],[-2.86187298241954,53.0386038791533],[-2.85571506741516,53.0372559042528],[-2.86049595381441,53.0285537377186],[-2.858701781546829,53.01989990840039],[-2.84406201373811,53.017668367073504],[-2.83776963886619,53.010664242673],[-2.840856397663349,53.00844183451859],[-2.835995589962951,52.997150146825],[-2.80331096843627,52.9895941853701],[-2.792364835499539,52.9909144444446],[-2.79096713547684,52.9953025449497],[-2.784901600068641,52.9939034622479],[-2.78194557950969,52.9962827009012],[-2.77973586033784,52.9933818166519],[-2.76561650484183,52.9941359144268],[-2.7599401790776,52.9864196664707],[-2.74374138657614,52.9871475207658],[-2.726840606533699,52.9832729462979],[-2.711878683427349,52.9860844169537],[-2.69929243706707,52.9954387986715],[-2.68855490621211,53.0124863584248],[-2.678320565613991,53.01501111378851],[-2.68501806748409,53.021713246771],[-2.67932102953477,53.025939639074906],[-2.67877063490427,53.0326589803057],[-2.66881731014789,53.03865393652299],[-2.702410556473561,53.054321250716],[-2.718262812012151,53.04421409575961],[-2.73469887537351,53.05508423513451],[-2.732422993528071,53.05768356766131],[-2.7410736974235,53.0645229171909],[-2.7529286634929,53.0692262393893],[-2.74546617975236,53.08215653516869],[-2.73492958613957,53.0865530812722],[-2.73173861065917,53.09180898420941],[-2.71136358397739,53.0936424027863],[-2.70605412094603,53.1185091315368],[-2.696628488287749,53.1199680071161],[-2.67114512359379,53.11587001256039],[-2.66243653007457,53.1213491468155],[-2.65973028828682,53.1307164169775],[-2.64042854101919,53.129063825154],[-2.64078791397183,53.139860352859706],[-2.629067876741721,53.14867285123181],[-2.6231793585589,53.151432019702],[-2.611685991957271,53.15055859207891],[-2.60433350998973,53.1451020993308],[-2.59208979731994,53.1445047763271],[-2.588797789521419,53.1465840878434],[-2.59749477128694,53.1552032264289],[-2.59650472428264,53.15887206973381],[-2.583580969412449,53.1554979028643],[-2.57667076017224,53.161981014565704],[-2.56675995665832,53.1626075346926],[-2.55968043531009,53.1618833282777],[-2.54225131705465,53.149760869777],[-2.5268653295633,53.1528386322101],[-2.520565609143881,53.160409797819405],[-2.50627915275411,53.1589863517269],[-2.49619430804823,53.164282614647],[-2.485024706851569,53.162737748001],[-2.486180207689081,53.1601567418589],[-2.46907394422686,53.15276202585989],[-2.4564654496211,53.1568677846776],[-2.45465994057338,53.1609377153075],[-2.44325426777797,53.1601943483571],[-2.44198464678317,53.16880683443541],[-2.45733300678703,53.17661671834671],[-2.46025570906483,53.19908133643351],[-2.45643584892998,53.2026340914525],[-2.45119420071354,53.19945945813879],[-2.44312284066788,53.201363125177],[-2.43451693346036,53.1966748349682],[-2.4306634553297,53.1979652850791],[-2.41632162675719,53.187892260709],[-2.40657953707285,53.1741370507097],[-2.39794213970378,53.1722984172816],[-2.39805635012258,53.1772131933818],[-2.3921096750195,53.179915218434],[-2.37820200198146,53.1720815844681],[-2.36869299391766,53.1830375114804],[-2.37692254177232,53.187261555492704],[-2.371152358822469,53.190440214311],[-2.37255999218109,53.1955514293284],[-2.389862019983359,53.196085559906],[-2.39503275570858,53.2061000742529],[-2.40088892693651,53.2032830985173],[-2.41016086415475,53.2056963595254],[-2.40883117224796,53.2118053626017],[-2.414181798597629,53.21929976543681],[-2.40117228412505,53.2217587591391],[-2.39787804302048,53.2252278607696],[-2.402821736110969,53.2292957526187],[-2.39885893413675,53.2282763238947],[-2.39628927821287,53.2343623560282],[-2.36379985115036,53.22357084417221],[-2.35913090712075,53.2333613144022],[-2.34635313770005,53.2409372134946],[-2.34901131460463,53.2486741719984],[-2.36415236004256,53.2485010688601],[-2.37039950475514,53.2544799494978],[-2.38153754779386,53.2578397971959],[-2.378991841186401,53.26337604137171],[-2.38686160552567,53.26409943071191],[-2.38823377386696,53.2613349521624],[-2.38824871707801,53.264966839343],[-2.394115156194999,53.266754308220506],[-2.40000166044717,53.265330575945605],[-2.41445485676336,53.2683194002073],[-2.422885196312,53.2600685960115],[-2.42745862054919,53.2611731355367],[-2.43366919208566,53.2686276571636],[-2.44408944771518,53.270471539455],[-2.45048311658097,53.2781708045891],[-2.44689066170166,53.2801142296791],[-2.46445731784584,53.28727947103279],[-2.46999929639836,53.2857206350048],[-2.48507635888075,53.2908242620056],[-2.49800605204794,53.289908956227],[-2.49759066404509,53.2993408950856],[-2.50169535038024,53.2986441431165],[-2.505533104261191,53.3106810260786],[-2.50290842610369,53.3133833351068],[-2.512277409703251,53.3213457772606],[-2.49396788490726,53.343298573682496],[-2.51839296054763,53.3423902754329]]]}},{"type":"Feature","properties":{"name":"Cornwall","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-5.71076300047584,50.05799910894421],[-5.716979495586959,50.0686729823523],[-5.709825329287111,50.1274666629698],[-5.704815564598939,50.1348740430618],[-5.693133944664038,50.1489390661389],[-5.673055997073221,50.1663063418398],[-4.555084904273581,50.92593027898911],[-4.54589922271348,50.9286387528797],[-4.47124986819763,50.9312684886808],[-4.45619424641576,50.9289931943523],[-4.180304464582511,50.50293948367321],[-4.16709195529336,50.3503166874711],[-4.169991667428841,50.34332498367131],[-4.18837136254808,50.317671346061],[-5.18561735834665,49.9631055650879],[-5.198779449189941,49.95896186085889],[-5.200000268366189,49.9589864194594],[-5.215718909311889,49.9595251547211],[-5.67927228713674,50.0349931238978],[-5.71076300047584,50.05799910894421]]]}},{"type":"Feature","properties":{"name":"Cumbria","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-3.63613923411106,54.5078196632736],[-3.63880287364147,54.5170684448667],[-3.638731560539981,54.5174241704796],[-3.578069056227009,54.6517030229512],[-3.39886993497874,54.8685058326993],[-3.36698781532365,54.8914698718355],[-3.28330649706739,54.9421233213207],[-3.05092854160806,55.0528035980455],[-2.82550257520544,55.1383140722935],[-2.68979023468094,55.1889842117909],[-2.48634115497866,55.0830455152498],[-2.31208952139602,54.791015046825],[-2.17239803091537,54.5324441161867],[-2.16239333141251,54.5039428009932],[-2.15936715432156,54.47114392334469],[-2.32564664212512,54.24143834840971],[-2.33765745303457,54.2375990714247],[-3.17311782971819,54.0470912389339],[-3.19561465348076,54.0442603785904],[-3.20969137922897,54.047523237672],[-3.26404413059651,54.1025831656609],[-3.63613923411106,54.5078196632736]]]}},{"type":"Feature","properties":{"name":"Derby","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-1.48362220107064,52.9672734640602],[-1.49647165407623,52.9649687403579],[-1.49780064883704,52.956004666542306],[-1.50764397797264,52.95433058592389],[-1.508028820759,52.9374518096928],[-1.52126133847826,52.9323854389006],[-1.52700639658315,52.9324174504286],[-1.53964530100495,52.924449495526304],[-1.54406849888716,52.9242077388049],[-1.55287594177279,52.922578121018105],[-1.55106791853248,52.9170527787489],[-1.55685223049924,52.9146787744349],[-1.55511018224999,52.9060505744616],[-1.54862364276382,52.9008742418454],[-1.53963771099944,52.8939422093734],[-1.53867104945318,52.8885502109345],[-1.52637200032056,52.8909110864853],[-1.52319785749613,52.8873412346054],[-1.51461189123074,52.8847059073886],[-1.50311222561322,52.8848454480296],[-1.50200364750581,52.8816018491224],[-1.49949452355587,52.8827042536493],[-1.49988997478492,52.8772637210539],[-1.49359496207843,52.87363493427961],[-1.49519123744862,52.87037764122189],[-1.46766195914465,52.87053628096421],[-1.46716475132315,52.8729234342929],[-1.4499075912198,52.8669486384896],[-1.44622683054701,52.8613094242586],[-1.43821156528524,52.86169069710349],[-1.42356745031988,52.86507804909121],[-1.4297778370559,52.8702104211682],[-1.41646453590557,52.8756986980564],[-1.42037723841684,52.881917030701096],[-1.40973401973616,52.8864393940575],[-1.4027722736366,52.9004624528618],[-1.38826315892156,52.9014683128634],[-1.3917705351519,52.9074076942811],[-1.38779309196597,52.9114316709592],[-1.38960775830846,52.92273987215561],[-1.38393284601608,52.9238163688169],[-1.38529928561547,52.9263800287302],[-1.40357397046704,52.9322352536738],[-1.41449882761474,52.9312108230368],[-1.41616166739345,52.9313546962443],[-1.42396412434777,52.9356510691741],[-1.40928062885273,52.9503226440389],[-1.43403365632871,52.951309465715006],[-1.45274920675228,52.9474614994859],[-1.46256885491698,52.9498407438307],[-1.46855219193081,52.9506623061892],[-1.46759461889684,52.955689398676],[-1.46764195834883,52.9648210295907],[-1.47463054024943,52.9659280296716],[-1.47763998390297,52.96440765393181],[-1.48008490605248,52.9681148032913],[-1.48362220107064,52.9672734640602]]]}},{"type":"Feature","properties":{"name":"Derbyshire","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-1.89410949217378,53.5336117793005],[-1.89932200438852,53.538112128509404],[-1.90962083195551,53.5383909865468],[-1.92244468164089,53.530815062066],[-1.92678065561025,53.5209487496897],[-1.91676643607638,53.51449576001661],[-1.92197284577495,53.5099546848918],[-1.95133267475833,53.5041988388905],[-1.96338598926022,53.509827260669],[-1.97271965323536,53.5024861303839],[-1.97463068295105,53.4879351084242],[-1.98707495748109,53.4816586458083],[-1.98853068333571,53.4700249315489],[-1.98153249272799,53.4645050571844],[-1.987429782677461,53.4589033073706],[-1.98690112931495,53.45431634016891],[-1.99821418115247,53.4457724815817],[-2.00830558547645,53.4414522459984],[-2.00421605197447,53.4359217858561],[-2.01365546338078,53.4398832346574],[-2.02732024115649,53.4324027446138],[-2.0262554175393,53.42986516142861],[-2.01972433303058,53.4251186793694],[-2.02370962953136,53.420551713499904],[-2.0136971820304,53.4158901098022],[-1.99232947055908,53.4151931330374],[-2.00505225890324,53.3905393757253],[-2.00464286724195,53.3863272775011],[-2.01971446141798,53.3805954646894],[-2.01708408317754,53.3778327563457],[-2.02199563874542,53.3759578039565],[-2.026208991537,53.3736181415147],[-2.03377543264394,53.37554156977829],[-2.031058463243001,53.37026238610941],[-2.03408638701547,53.367752831454],[-2.0271286327421,53.363767343617006],[-2.0218166254234,53.366757098691],[-2.0089981072363,53.3620109951229],[-2.00806522440504,53.35496670043139],[-2.00465983481896,53.346009660235595],[-2.01431920100565,53.3400585126535],[-2.013649944324539,53.3324201566667],[-2.00928300059075,53.3313885886372],[-2.01026597066413,53.3228970363096],[-2.00155104700482,53.3189218127238],[-2.00932914808123,53.3023141546959],[-2.00813437677626,53.2874882743828],[-2.00519729687241,53.2690399521849],[-2.009481851247089,53.260652454988296],[-2.00033274687168,53.2554386481807],[-1.99973122358111,53.24504885623911],[-1.98188326046324,53.2385793911929],[-1.97485875420975,53.2310610534684],[-1.97606495086031,53.227529768486],[-1.99026453573037,53.2229988991032],[-1.987407758670291,53.21358584871461],[-1.96236461007117,53.2262417356404],[-1.95670722983203,53.2137476093571],[-1.9376925389065,53.2117778499956],[-1.90804412064958,53.1985399552552],[-1.89863293086253,53.1999569790687],[-1.8849343481012,53.19656741989381],[-1.87397365004863,53.1953607549267],[-1.83717586580524,53.1757590017478],[-1.81607333504688,53.158636375845],[-1.81202512678931,53.1527440795625],[-1.82215771084988,53.1380626910397],[-1.81410167585432,53.1319352609279],[-1.80093361132616,53.11515849452821],[-1.78975575754985,53.10956349571],[-1.7837258959914,53.1028279820508],[-1.78297133879133,53.093334233260904],[-1.79229496417466,53.0915260613413],[-1.79423901989599,53.088394057015],[-1.78860479463554,53.0809052932279],[-1.79135559873188,53.0781999911771],[-1.78564308883434,53.0631115823998],[-1.77565273133291,53.0593546425468],[-1.78414518174691,53.0547076546788],[-1.77898129670065,53.0448443741093],[-1.77873412098345,53.043013716422706],[-1.7681938448564,53.0440382008205],[-1.75903746906611,53.0375523348905],[-1.76154345131445,53.0333990244926],[-1.7571882102809,53.0287959427956],[-1.76373080887802,53.021428059838506],[-1.75771862889042,53.017144397605506],[-1.762870026914,53.013372930969],[-1.76355601441196,53.0113931092346],[-1.76624027105953,53.0069955096272],[-1.76256960898942,52.9996692928129],[-1.7893524368084,52.992760211359496],[-1.78752146310807,52.9894264291889],[-1.79339128565297,52.9896417301731],[-1.79677925518143,52.9851043622033],[-1.80470933044394,52.98551769751351],[-1.803223764302671,52.9813513890413],[-1.82611223010624,52.97748747712121],[-1.83018560463517,52.9713464845054],[-1.82554522020413,52.9618220218345],[-1.83447729042191,52.9549184323082],[-1.82875545916929,52.94776567769019],[-1.835582595658509,52.94526458245021],[-1.83309485659879,52.941269867850906],[-1.83945885371924,52.9413802440674],[-1.84927912541296,52.9356074955189],[-1.84954459347969,52.9311095994993],[-1.85295242824884,52.93170535463031],[-1.85657559960297,52.9233909598958],[-1.85456863270552,52.9199753455107],[-1.84750775487329,52.9201507682638],[-1.84895229066283,52.9166341766351],[-1.84796261303534,52.9129876949903],[-1.84260775641721,52.91298884518271],[-1.847579130724361,52.90996503326681],[-1.84409313881335,52.90721335422491],[-1.83338633475829,52.9021252839973],[-1.82999902468756,52.896588403719],[-1.83424857833344,52.8955112082222],[-1.83295463957252,52.887452189693],[-1.82670890885525,52.883985944297],[-1.82202392326266,52.88603854252981],[-1.82362238868557,52.8828802568378],[-1.81105273705371,52.8806531841501],[-1.80137781460864,52.886173070016895],[-1.78814837096325,52.88001685713301],[-1.78373028684108,52.8839642256865],[-1.77722065071375,52.8838147408519],[-1.77423194761186,52.8792595099856],[-1.75858465600575,52.8772206333035],[-1.75070306479113,52.8737102161968],[-1.75226722347909,52.8688078908149],[-1.74758636031624,52.870578917994],[-1.74600328186458,52.8686931604978],[-1.74955798221329,52.866773807630906],[-1.7397849907676,52.8676684564315],[-1.73916486742502,52.8648066581913],[-1.72642356787278,52.8630547738396],[-1.72532205465213,52.8596631847173],[-1.72216965445728,52.8632607128242],[-1.71696917085594,52.8607862453265],[-1.71766526860958,52.8645212406195],[-1.71206048032378,52.865920938954005],[-1.70346099030951,52.8663943193027],[-1.70060876646215,52.8605835236092],[-1.6899853540816,52.8644353819213],[-1.6746168689293,52.8611338335612],[-1.65868103302685,52.85679048246679],[-1.64263211142039,52.8563270417033],[-1.63515128669505,52.85298366549749],[-1.62656649953422,52.8543646887182],[-1.62823482259787,52.8518618669399],[-1.6190821096592,52.8460158181917],[-1.60705846961168,52.8433714012095],[-1.59890430514092,52.8377599038265],[-1.59128667483578,52.8362614019305],[-1.59189550105737,52.832270320087794],[-1.58797644349777,52.8315367418831],[-1.58862283826578,52.828945523752],[-1.60286693041514,52.8263007437787],[-1.61033983354632,52.8156171695088],[-1.59182686047041,52.8094905911784],[-1.58894635200613,52.7998222132013],[-1.59351333803758,52.7969316313824],[-1.59785011420253,52.7983442514156],[-1.60354934407712,52.79545531950911],[-1.60265842620209,52.7919850528518],[-1.61172271421689,52.7898627594367],[-1.61372053961796,52.7861549383811],[-1.60941662654359,52.7844535293935],[-1.61246242918384,52.78121820674849],[-1.61928932345148,52.7851679195997],[-1.62695771616391,52.7797724665294],[-1.63824276096365,52.7867285159005],[-1.64992983448513,52.779482013267106],[-1.66560381957049,52.7851627510546],[-1.67073946776933,52.78107055644891],[-1.67004708926369,52.7735947639117],[-1.67017911692501,52.773395527556595],[-1.6820666460962,52.7701916595409],[-1.68596781150447,52.7590126455582],[-1.69676386785056,52.752861205326],[-1.69223515761963,52.744122540808696],[-1.69761925670266,52.74376322590491],[-1.69788586316216,52.7353820162554],[-1.70415800106741,52.7320787781291],[-1.69695168059392,52.7271945309901],[-1.67794426981137,52.7275040897193],[-1.67559468302182,52.7248699524539],[-1.65660772699026,52.72174847290909],[-1.65929092215423,52.714083432649005],[-1.65430141943156,52.7082086780267],[-1.655041567809,52.6987985798052],[-1.63765313657185,52.6996754463897],[-1.635340511504,52.7024830598539],[-1.62525102440732,52.6974227910037],[-1.61537471532626,52.700707476484496],[-1.60549448912841,52.6965388876791],[-1.59754104512465,52.7004217669502],[-1.57711928771893,52.7117631870917],[-1.56692999849833,52.710070464098706],[-1.5500801007923,52.7202785225279],[-1.55024133352837,52.72561899775759],[-1.54531749224936,52.728236973920005],[-1.54533394631063,52.7329214661393],[-1.55617529201148,52.7398144076072],[-1.56249262187869,52.75058683697941],[-1.55484256321815,52.762021018432705],[-1.54744213285114,52.7641344065723],[-1.53961993387858,52.76008597238631],[-1.52958418964007,52.7610939575467],[-1.52534823948472,52.7655279888722],[-1.50394313837263,52.7674623433413],[-1.49575676445072,52.7598909757621],[-1.49242760083499,52.759452519476206],[-1.47846241554029,52.7636881186274],[-1.46645195385337,52.7679723007631],[-1.45588204268026,52.7770946625567],[-1.45949796627851,52.7770832796572],[-1.45764759025668,52.784401396906695],[-1.46280774702283,52.78679259383819],[-1.45487275143793,52.78898680424889],[-1.44189018217823,52.7935329073834],[-1.44356155232193,52.8027441687288],[-1.41770445879577,52.8016155011951],[-1.39779374630728,52.82352276736619],[-1.38793618388406,52.8330976564398],[-1.39432284230238,52.83677287261939],[-1.38821290604954,52.8394035046651],[-1.38112488737048,52.846048816540105],[-1.36553726594229,52.851573516493],[-1.35805633302493,52.8560883229882],[-1.35100006081424,52.8534152285957],[-1.35189518511588,52.857638858182305],[-1.34340389046458,52.8627945596902],[-1.34486272111745,52.867532885588105],[-1.3388815845341,52.8646105746946],[-1.32037894510166,52.8690926805089],[-1.31930687515051,52.8728694279118],[-1.30933158402117,52.8733548309291],[-1.30599463322981,52.8770804463604],[-1.28948669216352,52.8724577285142],[-1.27842748173134,52.875593223358706],[-1.26788907937114,52.8733686514596],[-1.26610427530758,52.87331182169931],[-1.25361099778125,52.87928582829839],[-1.24005549011668,52.8801088572395],[-1.23898534810158,52.8835243372726],[-1.24639858780154,52.8891378624584],[-1.23970599304057,52.892289237496094],[-1.24742362041207,52.8986992568112],[-1.24661598896431,52.90309989441149],[-1.25647464523174,52.9017856493761],[-1.27168556230913,52.9051132050397],[-1.28193610087569,52.910756190768595],[-1.28282150884071,52.91928894456381],[-1.28577706138121,52.9260650757905],[-1.2781319803867,52.9336276315613],[-1.27915905898206,52.9368288955695],[-1.28113338190219,52.9408050658292],[-1.28277223488479,52.94555690957641],[-1.28241369178995,52.9512352046975],[-1.29250116524851,52.95557367756],[-1.29056289692332,52.9597737746676],[-1.28774933165725,52.9696624541577],[-1.29498660469883,52.9798645217354],[-1.297763250917,52.989688052682204],[-1.30071999771818,52.9918305136975],[-1.30744372494867,53.0036547888145],[-1.30798563898118,53.0038728201786],[-1.31335542530561,53.00523888572231],[-1.3226987084974,53.02159174652151],[-1.32802292959309,53.0292358606881],[-1.33311042063717,53.03388230610831],[-1.33577283024486,53.0507431645501],[-1.33586846310334,53.05296584669221],[-1.34411229730592,53.0623315669311],[-1.34383457830861,53.0687295616196],[-1.33471712413769,53.0775721207868],[-1.33163547679324,53.0809878876668],[-1.30323570997794,53.088083753762504],[-1.30925140895617,53.096770174260406],[-1.30072893365452,53.1016202841886],[-1.31183281292282,53.1087057277635],[-1.31066232067538,53.1102567490466],[-1.31229251664658,53.1163203057354],[-1.31424760648306,53.12491431695881],[-1.3217802282925,53.1306503063911],[-1.31513872250266,53.1360802767861],[-1.31881519142677,53.13971854663939],[-1.32558340645085,53.156474886819005],[-1.32344684110941,53.1623424531774],[-1.31655016334559,53.1653619517486],[-1.30071178856708,53.1642145389807],[-1.29596178794204,53.1712248619122],[-1.28875775031709,53.171455291778706],[-1.28195979961097,53.1674206172274],[-1.26897895743025,53.16819389660459],[-1.25993009829984,53.1644809106531],[-1.25317195893866,53.1655178811434],[-1.24168910780375,53.1781488083139],[-1.22991342830116,53.178494008476605],[-1.21566099193439,53.1809072918079],[-1.20429187252152,53.1823583417241],[-1.19880149028466,53.18308930367121],[-1.1950553172322,53.1893591659548],[-1.20096989981198,53.2039603128612],[-1.20473777440564,53.20828249392531],[-1.20942448225347,53.2176967645087],[-1.20199681749734,53.23555531874091],[-1.21245933128975,53.2455858747039],[-1.20261704291875,53.2611191046194],[-1.17479721143818,53.2651132429105],[-1.18154150249029,53.2700320636288],[-1.1664875414478,53.277655368261],[-1.1801170205129,53.287134745935305],[-1.17156289293514,53.2946379730149],[-1.17432521143318,53.29836415608311],[-1.17417524206695,53.302534187434],[-1.17942724363697,53.30640581961989],[-1.1872198898994,53.3039792852605],[-1.19974106069052,53.3114394544059],[-1.2032390468772,53.30422324058411],[-1.21987804757969,53.3040779724751],[-1.23044035253652,53.30855813959249],[-1.23606426389793,53.30660680454],[-1.24332977849925,53.30164905470209],[-1.25429413883004,53.3017548282498],[-1.2735976013037,53.31044010234591],[-1.28201141324174,53.3094625902199],[-1.29567816421914,53.3150369724564],[-1.29515875672233,53.321791521126706],[-1.28858902654107,53.32622805490391],[-1.2990721903367,53.33253259327711],[-1.31229934658408,53.3341648270949],[-1.31053730161266,53.32935383790889],[-1.32165867760413,53.3256874313088],[-1.32466917492843,53.3288100139839],[-1.32830019566931,53.3289742096465],[-1.3402595397932,53.3155346848568],[-1.34723808333142,53.3188688916257],[-1.36177742459028,53.31848555099639],[-1.36262274042287,53.3150356347356],[-1.38507643737761,53.3177808770315],[-1.39200397141391,53.3226487145027],[-1.38657329018515,53.3348845432082],[-1.38882358979614,53.336447102605206],[-1.40874684512064,53.3419650586082],[-1.42086649613,53.334567952456005],[-1.44213573422471,53.3373845199322],[-1.46169772685613,53.328450395646],[-1.45522778964177,53.3218691603844],[-1.46786581929666,53.317158487300205],[-1.47438659301745,53.3184906946781],[-1.49612666412277,53.3163865562103],[-1.5104880908767,53.3160462499215],[-1.52618529691351,53.3104034488408],[-1.53121491084347,53.31065152365831],[-1.5367688622067,53.304748674427806],[-1.54907599561487,53.3069826936105],[-1.55845761275355,53.3053224657301],[-1.56182692570391,53.3066022697826],[-1.55575188364951,53.3115488459116],[-1.56136488528553,53.31582118886211],[-1.58053389587991,53.3117380892291],[-1.58300458734422,53.3157224733736],[-1.57892430901633,53.3166951255445],[-1.58490201019108,53.3215879523676],[-1.59909327897252,53.311318199687605],[-1.60152504315608,53.3182054025283],[-1.6092015844932,53.3226639610628],[-1.6254937445137,53.3164239788115],[-1.63272698677736,53.3208392129653],[-1.61230306160512,53.3432186697883],[-1.60157558241263,53.3426090127146],[-1.59054795436381,53.345920985244],[-1.625603752025671,53.3520618983508],[-1.63059203910696,53.3561609740116],[-1.66395050906038,53.3668929263389],[-1.66329148162487,53.3742482327585],[-1.6535305185542,53.3848521081155],[-1.65381782187416,53.39191082711051],[-1.66808924679528,53.393071191804296],[-1.68182866242726,53.4017807016375],[-1.69452121635221,53.4011611629056],[-1.70496532088341,53.405055973958504],[-1.70394502168919,53.4149085808253],[-1.71678157348296,53.4192991306346],[-1.72995113840574,53.41598563940549],[-1.74671906273467,53.4261649304386],[-1.74427301019628,53.43129665974159],[-1.74972822931623,53.43911925987649],[-1.74367441569702,53.4450137324182],[-1.74682471239449,53.4634099983437],[-1.76843734147339,53.4647669327866],[-1.77619997596228,53.4683257814682],[-1.77906318250375,53.474221193543904],[-1.79110661271706,53.4757816166497],[-1.80147063244941,53.48099176075039],[-1.80026299053966,53.4933551642397],[-1.79500092224839,53.4959187309494],[-1.79628821898355,53.503152990572],[-1.81039889127308,53.5063401493489],[-1.80077865319122,53.5113785292377],[-1.81952377656311,53.5134280919329],[-1.82222878111984,53.5210909218023],[-1.82715106039428,53.5235079174762],[-1.84182082823365,53.5199087802658],[-1.87349262570415,53.5404296508189],[-1.89410949217378,53.5336117793005]],[[-1.54406849888716,52.9242077388049],[-1.53964530100495,52.924449495526304],[-1.52700639658315,52.9324174504286],[-1.52126133847826,52.9323854389006],[-1.508028820759,52.9374518096928],[-1.50764397797264,52.95433058592389],[-1.49780064883704,52.956004666542306],[-1.49647165407623,52.9649687403579],[-1.48362220107064,52.9672734640602],[-1.48008490605248,52.9681148032913],[-1.47763998390297,52.96440765393181],[-1.47463054024943,52.9659280296716],[-1.46764195834883,52.9648210295907],[-1.46759461889684,52.955689398676],[-1.46855219193081,52.9506623061892],[-1.46256885491698,52.9498407438307],[-1.45274920675228,52.9474614994859],[-1.43403365632871,52.951309465715006],[-1.40928062885273,52.9503226440389],[-1.42396412434777,52.9356510691741],[-1.41616166739345,52.9313546962443],[-1.41449882761474,52.9312108230368],[-1.40357397046704,52.9322352536738],[-1.38529928561547,52.9263800287302],[-1.38393284601608,52.9238163688169],[-1.38960775830846,52.92273987215561],[-1.38779309196597,52.9114316709592],[-1.3917705351519,52.9074076942811],[-1.38826315892156,52.9014683128634],[-1.4027722736366,52.9004624528618],[-1.40973401973616,52.8864393940575],[-1.42037723841684,52.881917030701096],[-1.41646453590557,52.8756986980564],[-1.4297778370559,52.8702104211682],[-1.42356745031988,52.86507804909121],[-1.43821156528524,52.86169069710349],[-1.44622683054701,52.8613094242586],[-1.4499075912198,52.8669486384896],[-1.46716475132315,52.8729234342929],[-1.46766195914465,52.87053628096421],[-1.49519123744862,52.87037764122189],[-1.49359496207843,52.87363493427961],[-1.49988997478492,52.8772637210539],[-1.49949452355587,52.8827042536493],[-1.50200364750581,52.8816018491224],[-1.50311222561322,52.8848454480296],[-1.51461189123074,52.8847059073886],[-1.52319785749613,52.8873412346054],[-1.52637200032056,52.8909110864853],[-1.53867104945318,52.8885502109345],[-1.53963771099944,52.8939422093734],[-1.54862364276382,52.9008742418454],[-1.55511018224999,52.9060505744616],[-1.55685223049924,52.9146787744349],[-1.55106791853248,52.9170527787489],[-1.55287594177279,52.922578121018105],[-1.54406849888716,52.9242077388049]]]}},{"type":"Feature","properties":{"name":"Devon","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-4.493502414284669,50.792912370258996],[-4.68057246853434,51.1724248313757],[-4.67975699531534,51.19415548134409],[-4.6789685588005,51.19694451591371],[-4.67734739354856,51.2024646120538],[-3.78542444693296,51.2463935834368],[-3.720549186668761,51.23306756052369],[-3.052398841450151,50.9082765870699],[-2.892867866923399,50.8047942407741],[-2.88702921912511,50.796177699097505],[-2.88703944680701,50.7925228190839],[-2.94741210988176,50.7182864230944],[-3.64051497564688,50.22178475546699],[-3.656450087861101,50.2177981657641],[-3.7082206496384,50.20540463243461],[-3.721187477483531,50.2028749449197],[-3.78998063859264,50.20992904757901],[-3.82305652453488,50.2171443499881],[-4.05069598149135,50.2943359598543],[-4.10742747280064,50.3150696354728],[-4.118998255252019,50.3193411675659],[-4.23641170400937,50.45940626171121],[-4.493502414284669,50.792912370258996]]]}},{"type":"Feature","properties":{"name":"Dorset","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-2.9530673537135,50.7284970686059],[-2.96130299095557,50.8155547839501],[-2.941682385894449,50.8358959386606],[-2.93007107233669,50.840958658310704],[-2.59584521904693,50.9813399701132],[-2.54743511832829,50.9995416872973],[-2.343670280326549,51.074640195354],[-2.32585275983044,51.0796755881052],[-2.291269285808319,51.0770754753337],[-2.24469618593833,51.07231084386691],[-1.95682488695197,50.989831732335695],[-1.810658089669101,50.9272033833848],[-1.79061492044422,50.8363141194303],[-1.80137345969877,50.799714504323305],[-1.8039049599245,50.7959652097351],[-1.95132317287504,50.594486708102195],[-1.96095414231784,50.5909949610198],[-2.45726223017215,50.51338530107721],[-2.94741210988176,50.7182864230944],[-2.9530673537135,50.7284970686059]]]}},{"type":"Feature","properties":{"name":"East Riding of Yorkshire","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-1.08563923446869,53.6623934753973],[-1.10335931463428,53.669499315006206],[-1.10176849612767,53.6743927984839],[-0.925294992911636,53.991518374903904],[-0.878419396623246,54.017200923145595],[-0.418250115583672,54.1740634171995],[-0.390747238234669,54.17652070623651],[-0.2126028937597,54.1576066678597],[-0.187070880227468,54.15369862215141],[-0.170541827208613,54.1507115433804],[-0.095078738898567,54.12880792152501],[-0.093751642298519,54.1284006983093],[-0.078037167434759,54.1160836766988],[-0.077102858148283,54.1142692121052],[0.141776539465768,53.62198562939201],[0.145671153540994,53.6084432253511],[0.146250004746449,53.6037523775597],[0.146626040286442,53.599625996278],[0.141762505315534,53.59541596616809],[0.108346644001934,53.57147194611001],[-0.84826408757923,53.6330366610864],[-1.07119009364024,53.6579051388127],[-1.08563923446869,53.6623934753973]]]}},{"type":"Feature","properties":{"name":"East Sussex","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[0.658637308753122,50.869950515986794],[0.669532003478976,50.8734930673309],[0.682527557459008,50.8858574818326],[0.709551730755152,50.90184020160711],[0.709802939988421,50.90198869027671],[0.74977468964116,50.92218003867901],[0.774608367748936,50.9275991031584],[0.772016625616782,50.93126196191331],[0.788087914509276,50.9332862809526],[0.844483485731208,50.92519846558051],[0.854695883922141,50.92373060865971],[0.867891381774926,50.933262295643],[0.859629393707255,50.9396802528287],[0.855967970123694,50.953128606606406],[0.846112519429836,50.9518535867317],[0.841401377893081,50.95760882872231],[0.829868687482888,50.945665184317],[0.81906777669583,50.94545503546151],[0.812941746895733,50.941999575237],[0.81346348882143,50.9490108107153],[0.784327858018418,50.9772296872172],[0.777134928696756,50.97542835001051],[0.781702624180719,50.9828859380542],[0.777026622994548,50.9848553722537],[0.781053751673283,50.9864991527605],[0.778956704972181,50.9894920251371],[0.741094136513642,51.0006438035686],[0.711254870521683,50.9984717404916],[0.706770603419155,50.9936018231459],[0.699219875965116,50.9984904758231],[0.680959765479555,51.0015365955562],[0.662105610609222,51.0174724742672],[0.654992444057921,51.01471934173101],[0.6466862765488,51.0168372783725],[0.637163204906581,51.0118765386125],[0.627661934646063,51.01785153968239],[0.605390823945922,51.0120699758106],[0.568381149722978,51.003814687572905],[0.56365161228607,51.0074398226821],[0.542030181668798,51.01094431769091],[0.537640472235495,51.0216520254854],[0.526002809904306,51.0227839273032],[0.508456204026345,51.0241253285848],[0.496107904544594,51.0306344700043],[0.47801789445496,51.0290544237468],[0.468046061650009,51.0325833410796],[0.466090465895236,51.0427365915612],[0.471401333985804,51.0490776384538],[0.45370640226165,51.056957797936],[0.440817076539136,51.0579166204431],[0.425572791823271,51.0640665982438],[0.418263393533167,51.06262929157239],[0.417777749297943,51.0678930674207],[0.411311270186777,51.065886985253705],[0.40900543898217,51.0693926855529],[0.400918348471493,51.071176259607306],[0.406613379245674,51.0796860329918],[0.396473803046943,51.083096151807894],[0.390829561284074,51.08133112410821],[0.391641939393301,51.0857836195949],[0.373903542083923,51.0884647235483],[0.364688327253167,51.0881586408906],[0.356770383729904,51.083060872652204],[0.35081999106108,51.0840683339465],[0.353978119632222,51.093619160403094],[0.350771363066755,51.09898824749731],[0.358960077769589,51.10447856155499],[0.334703413315617,51.105564570439405],[0.324571569957101,51.1121313557753],[0.330079124516764,51.11780282256921],[0.326226680097701,51.1224385086223],[0.32526557205646,51.122880303244],[0.298718595769968,51.1181595000985],[0.279667003051727,51.11784547713],[0.27594039409943,51.1204075138194],[0.272446454999563,51.118629970762306],[0.278942297166629,51.11467676725001],[0.275670535951605,51.1123554347649],[0.266264957339552,51.1150985993233],[0.252281977876107,51.1144199229291],[0.24830420006037,51.1155684615832],[0.243337557346786,51.1152771354235],[0.227445370222617,51.1242408126274],[0.199560927435158,51.1169136134653],[0.162598339697813,51.1163978523646],[0.153437893112386,51.1205834380452],[0.150062666031672,51.13117589418201],[0.154608144190192,51.1375360365462],[0.160747944274821,51.1373192644889],[0.160967078916994,51.1406347224217],[0.136015911629745,51.1470143323685],[0.125932669824761,51.14694620960379],[0.078187899340729,51.1399459198045],[0.050016528693635,51.1426500167773],[0.027361224766083,51.139850507099396],[0.025496325985564,51.1273228660186],[0.028152554952846,51.1177196620482],[0.04456545831132,51.1106493987571],[0.0254502287021,51.10901964631971],[0.018737168742006,51.1037288901936],[0.018618567911213,51.10357551357941],[0.009505046216635,51.1103919565056],[0.005029797566758,51.10525805871401],[0.011365640374905,51.102605070949906],[0.002940293338212,51.1022919752115],[-0.010865408338108,51.0964985960045],[-0.021333183873178,51.0967553189714],[-0.026169564833897,51.09174961590019],[-0.036196544280962,51.093457201480604],[-0.032803272814943,51.0923879936845],[-0.026852099218016,51.0751128713046],[-0.013256608824852,51.073967102914196],[-0.014970110212759,51.0693520727275],[-0.008548157404384,51.056457988024505],[0.013725555064109,51.0570126028937],[0.00772055085016,51.0509069882387],[-0.003001727690095,51.0475643235525],[-0.002016804897855,51.0430679498221],[-0.007903784464015,51.0389883743465],[-0.001565492340491,51.0357549877935],[-0.021913681842187,51.0265124439424],[-0.022172325063182,51.016786024185194],[-0.016007899626656,51.0148027944254],[-0.020096386881318,51.00346762942661],[-0.016409780703526,51.0025138340307],[-0.024604259008753,50.98002517422481],[-0.036300434867983,50.9771907015263],[-0.036717832171975,50.9797923088075],[-0.046985479267049,50.98120812615291],[-0.053537160427674,50.9794782277521],[-0.063712846508505,50.97921188420009],[-0.070525214016451,50.9913454148652],[-0.083820398434261,50.990718694188395],[-0.093067395216287,50.979227762023406],[-0.102701641669205,50.9808433468036],[-0.115214890805893,50.9760771371799],[-0.116106834033302,50.970369100789895],[-0.116308550072949,50.9671760553006],[-0.110385241659906,50.9678070578889],[-0.106356713662344,50.9629222015416],[-0.104688628241005,50.9456054302945],[-0.105426331575743,50.9431100541619],[-0.118058555919375,50.9452561128614],[-0.119975755282267,50.9416986107216],[-0.116868200858764,50.9410711279862],[-0.128386744919821,50.9189348671043],[-0.13337012792884,50.8939803435906],[-0.135010046704454,50.88663451601909],[-0.135283671366533,50.8781049946469],[-0.124209644527113,50.877975291750396],[-0.120090044594647,50.8735624808927],[-0.104915162007817,50.8723431669333],[-0.097519263621995,50.8779454253866],[-0.084927634243044,50.8731196294769],[-0.083236154129929,50.8631728646175],[-0.075261619555187,50.8506998038332],[-0.070778872004243,50.8458187633889],[-0.073441854838679,50.8412445322818],[-0.045585649821553,50.844967773348905],[-0.03684254950848,50.8412388952519],[-0.042167255717275,50.8248169836935],[-0.045968393113643,50.8218246617317],[-0.030229168484917,50.8173492120796],[-0.02042837615218,50.8218303556257],[-0.016586079716729,50.8162744496735],[-0.037993638791248,50.7994588496822],[-0.014987467620192,50.79274979704719],[-0.012607577467851,50.7920554078204],[-0.012250959586455,50.791959651553206],[-0.000073238207494,50.78868891138449],[0.003320424472781,50.7880374883078],[0.029289591604533,50.783048812828],[0.029678817466635,50.7829739899949],[0.038557851155914,50.7817453311897],[0.052724011691769,50.7797835202322],[0.056146976463592,50.7774153597328],[0.053384744201285,50.7794690269311],[0.053643181951928,50.779692800529],[0.052384262691387,50.7807059636213],[0.055516572820117,50.781314837799],[0.055667042912034,50.781445113123006],[0.055887814728747,50.7816362529696],[0.057309303506564,50.781700232231],[0.058239623257047,50.7823088633254],[0.066773310798935,50.7824834522624],[0.066996769224059,50.782397414393095],[0.070134616070145,50.7811891723776],[0.091729883963609,50.7728698589384],[0.104019051463138,50.7662766683329],[0.104374514098296,50.76608555619659],[0.123948852211865,50.758114844157305],[0.137837630910892,50.755761763345504],[0.1489427307005,50.75908414954],[0.150127752257201,50.758749724005206],[0.150165110964979,50.7587391804776],[0.18876855097626,50.7478356531504],[0.209927966912841,50.7384066331821],[0.240908388187749,50.7349441845873],[0.258222661568121,50.737650970381],[0.266592666959579,50.7469964792022],[0.271557566118727,50.75253793433439],[0.291531680871911,50.7658090827429],[0.29170922950291,50.7659269961854],[0.308847686260925,50.7767071636084],[0.315578768862583,50.7809390031136],[0.315757204681181,50.7810511708186],[0.320422802981954,50.782429648794405],[0.329786641485047,50.7863057283815],[0.332610045932378,50.790162591572],[0.332117265727665,50.7908161813104],[0.335977973365691,50.794762348138],[0.339189599752383,50.799147683631105],[0.349963764592404,50.8098223697895],[0.35810812958924,50.8129208068016],[0.358345364431831,50.8131050382979],[0.359552351184159,50.8134701377338],[0.377512425932031,50.8202989644588],[0.37819128075866,50.820460413893],[0.42729989655128,50.83212617302491],[0.427619505593781,50.832160447589],[0.463002763041975,50.83594922589769],[0.463922492857536,50.8360320795295],[0.476173830447649,50.83713507604671],[0.476648060050581,50.8372407088076],[0.503065731045523,50.8431212864815],[0.513143449135548,50.84487447263271],[0.519118315226333,50.8468614474081],[0.535443793685749,50.8487460377163],[0.543450410236007,50.8501348783911],[0.543733670564703,50.8501840016545],[0.555812629002094,50.8514239530449],[0.571684234249906,50.85305117909661],[0.586781938884104,50.854037541765],[0.587146038179396,50.854062039709106],[0.589436013141253,50.8542160903051],[0.605984638836392,50.8585054944686],[0.608871731179275,50.8597625357736],[0.658637308753122,50.869950515986794]]]}},{"type":"Feature","properties":{"name":"Essex","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-0.0122587363441,51.6462340740994],[-0.019730428542926,51.703274299588],[-0.012980103073153,51.74275127571919],[0.068127418901375,52.00578873916311],[0.105736213487718,52.0602611071123],[0.203459400262098,52.0926741553906],[0.276228961971443,52.092638303593894],[0.683116594446314,52.0870401677281],[1.29169200184392,51.9492867145416],[1.29655838963736,51.9356054640597],[1.2922493572689,51.870390142225595],[1.28722667880968,51.859263218785],[1.23876185276414,51.8212462538985],[0.929866927769687,51.592446367997],[0.886572783590085,51.5695890793865],[0.866370064397508,51.5589408418077],[0.848619668975376,51.5513920080604],[0.821153104826494,51.540605168187],[0.573330417577274,51.5078289934012],[0.553567185866318,51.5099355320107],[0.072823688436591,51.6046896927684],[0.062545617152457,51.6070771557351],[0.040786865122187,51.6157291361523],[-0.0122587363441,51.6462340740994]]]}},{"type":"Feature","properties":{"name":"Gloucestershire","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-1.75094038357399,52.09543138427309],[-1.76764874769465,52.1125925601067],[-1.78941728675708,52.1063748337746],[-1.79013499514956,52.1005915342611],[-1.802288737622429,52.0969414695018],[-1.81273665650818,52.0787440014706],[-1.81894341276327,52.0854041151211],[-1.83175334172358,52.0727693542685],[-1.84661960637666,52.0794210956629],[-1.85338863530379,52.072367420405506],[-1.85560691263515,52.0744406659241],[-1.86904499487076,52.0738565368096],[-1.87200505095905,52.07191686605991],[-1.87168224491349,52.065426116581094],[-1.86498840401184,52.0662781575546],[-1.86287745945827,52.0634319528479],[-1.86344917989937,52.05341772306199],[-1.83458593855756,52.0437303163566],[-1.82975128600407,52.0390716050811],[-1.83056034585543,52.0321390322638],[-1.8250228816679,52.030933413556795],[-1.83565953282706,52.0225025859992],[-1.8353091289734,52.00916242116529],[-1.83905030714283,52.0067831284916],[-1.86154357558555,52.0126276661012],[-1.86226882816264,52.017485338390095],[-1.91344602070409,52.0444612406154],[-1.92215719605332,52.0356149137518],[-1.9270448826783,52.0366609263713],[-1.93173022075699,52.0299592834289],[-1.94752094126592,52.0318949293304],[-1.95138760292282,52.0377252735293],[-1.98413574037062,52.0358792744237],[-1.9951896393208,52.02656314175431],[-1.99856512357771,52.02966774782351],[-2.02365946276158,52.0169532964146],[-2.02927127218363,52.0128396671609],[-2.026996994859109,52.0105880398603],[-2.038252567333751,52.0095626846595],[-2.03835621126119,52.0046006235229],[-2.04951417600198,52.0037962185805],[-2.048683005885001,52.0071151037199],[-2.05929352374806,52.0094738303279],[-2.06078374065176,52.0146805603219],[-2.08487319407292,52.0104785846223],[-2.09767393678768,52.0130633227629],[-2.108728275839431,52.014279037573],[-2.11803814282315,52.0143877780167],[-2.12111733790517,52.01129269425739],[-2.1315234008533,52.0059068029097],[-2.13520211576955,51.99970434062811],[-2.14185772526002,51.9998152166019],[-2.13906369390974,52.0039498203318],[-2.15078195954122,52.0066280416879],[-2.149655308879309,52.011256168678294],[-2.13939720724878,52.027891849687],[-2.117219854815791,52.03361442799721],[-2.1183837199463,52.0421086149382],[-2.15813398340215,52.050205656887],[-2.17138093353095,52.0475735011324],[-2.18067935412919,52.04172812387811],[-2.17690606521531,52.0225592300147],[-2.18768330302322,52.0190801576711],[-2.18406559054382,52.0139009430448],[-2.16412790281408,52.0034004435723],[-2.16472740060025,51.99607300977701],[-2.1749071210172,51.99614097196459],[-2.181106379039869,51.999483391248894],[-2.17942583356144,51.9948475692988],[-2.18508403441562,51.990560978857395],[-2.20288600060755,51.99636299135051],[-2.2206132435217,51.9954966448483],[-2.25135998124032,51.966564934215704],[-2.27055558557873,51.9689390809737],[-2.28829064497739,51.9706681642951],[-2.30043302609069,51.9667752646008],[-2.30946536146718,51.9706466995995],[-2.31261970069138,51.97650497457601],[-2.32653298644337,51.9757878171901],[-2.32065696637927,51.9921284122742],[-2.32470967818414,52.0035672783312],[-2.32942304043216,52.0068286026801],[-2.3404932556809,52.00674044245301],[-2.35254266829771,52.0135353102849],[-2.35137852244174,52.02135902903941],[-2.38698268471681,52.0121665271175],[-2.39289223171328,52.01295877004241],[-2.3990184898963,51.9961459478794],[-2.41319627507641,51.9940903078117],[-2.43660749577437,51.9968432309365],[-2.436115347404531,52.0145744033137],[-2.46354198509105,52.014411058017],[-2.46255406796107,52.0219099783722],[-2.46620453668243,52.02372347717311],[-2.47893230092191,52.02253041104],[-2.48036569317797,52.0160607841446],[-2.49125236025256,52.0104908372811],[-2.4854967162393,52.0003323100104],[-2.47764646244236,52.00015052976959],[-2.47097993694179,51.9947774697872],[-2.48863786343256,51.9874076056944],[-2.494912933323751,51.98107520682671],[-2.49224484623915,51.96412877731421],[-2.499030144769339,51.9637180821612],[-2.50090645407367,51.9606091442864],[-2.49018750591508,51.9549792921229],[-2.4861074430909,51.95742019688709],[-2.47372852291771,51.956538375039905],[-2.465487017323091,51.951696407247695],[-2.46338445871247,51.9392694932214],[-2.46787865506536,51.937379783476],[-2.466043000693801,51.9279745035373],[-2.44644962304205,51.9150883093871],[-2.44015427785163,51.9024420675997],[-2.44538855052067,51.9005558238502],[-2.43931477036816,51.8995141872491],[-2.446009544389681,51.893994548688],[-2.46521347137183,51.892991318262],[-2.47340817682412,51.8855536342335],[-2.480734270864851,51.8857252257862],[-2.48672835462937,51.884716038727404],[-2.48779469274655,51.8804175459086],[-2.493861264943571,51.8800028157662],[-2.49465604213406,51.884239701415],[-2.50025379604018,51.8817380504138],[-2.5018679321442,51.8863121453052],[-2.50862440109418,51.8851690569453],[-2.52223340432222,51.86469599921849],[-2.53405179974821,51.86039631842231],[-2.56165731912739,51.8642920037339],[-2.576099586659971,51.8625497269983],[-2.5852188604977,51.8599304778052],[-2.57882169171365,51.8518494056923],[-2.58619788884871,51.84978532610081],[-2.59953949895494,51.85653144351309],[-2.60640062095109,51.852025789094895],[-2.609434135620221,51.8467969254532],[-2.621593596422441,51.84332467075771],[-2.62546695815918,51.8389640024544],[-2.63671005341688,51.8430952612886],[-2.63630654696853,51.839491096401304],[-2.65040070567432,51.8261246889383],[-2.65016432004087,51.8241146811533],[-2.66087144177876,51.822753864529],[-2.65953874455198,51.81068237416131],[-2.67261076788278,51.8089061830262],[-2.67830266600361,51.8033185575836],[-2.66981057919979,51.7942734507367],[-2.67584421685202,51.7880690712184],[-2.67505351328664,51.776776810038406],[-2.68045213470349,51.7689294147768],[-2.67326549027725,51.75987596341359],[-2.66293180649694,51.7547349285939],[-2.66950787586876,51.7427587871429],[-2.672580974113739,51.7360435150639],[-2.68754079653479,51.730426259148],[-2.680484758745481,51.7246455188561],[-2.67932159364552,51.71407127751911],[-2.66849743237528,51.7060133506718],[-2.67150880865317,51.7006184484389],[-2.683629683383991,51.702758536060706],[-2.68314470775769,51.7000567137902],[-2.67406961091556,51.6975592294413],[-2.66889634060935,51.691334364853],[-2.67283591342456,51.68166395864869],[-2.656986404933201,51.67358587880219],[-2.66844465329776,51.66926986868021],[-2.68429367317205,51.6683288189262],[-2.6849965654919,51.66122761782051],[-2.67809152351563,51.659776919655606],[-2.66597684034939,51.6644671497391],[-2.680059684461,51.6485818184246],[-2.67738500274821,51.6445537592829],[-2.6706557768047,51.6464059813248],[-2.66644669981511,51.6433207633078],[-2.66745081466216,51.6342896986155],[-2.66736570792563,51.6336459155782],[-2.65518589314373,51.6227475146619],[-2.65934191558259,51.6165676122213],[-2.65613479309018,51.61021049442859],[-2.65124432969432,51.6097539870755],[-2.64769714521889,51.6132894222678],[-2.64875772467274,51.6313837329071],[-2.62363357035498,51.6539829183899],[-2.625949406034211,51.6606153654177],[-2.60999005665618,51.6724091606476],[-2.579975194804,51.6835305769558],[-2.57481554942366,51.68544106165471],[-2.57133385749219,51.6888326934652],[-2.57080654132759,51.688379255507805],[-2.54371799616009,51.69749027402101],[-2.51458322548519,51.7072784481261],[-2.50533337796562,51.710383643518796],[-2.496239675308709,51.7262055531841],[-2.49376207173078,51.7279633286508],[-2.47883547944317,51.7349890511142],[-2.47732537373911,51.7396916533871],[-2.4773660044643,51.7397491884626],[-2.47757496260631,51.740045079645],[-2.43761185322522,51.7590434419807],[-2.43782146600749,51.7593337617676],[-2.43422835726345,51.7600594391648],[-2.40463997921253,51.772812196468706],[-2.40569117406359,51.777870664210305],[-2.41134856038994,51.77978772069589],[-2.44139763769684,51.7814552300213],[-2.448432069354019,51.7849199095912],[-2.450209304760321,51.79229697148511],[-2.45133963841297,51.7969876061829],[-2.45179433484176,51.798874214775],[-2.44061923296423,51.81257699286439],[-2.44059836040735,51.81260257750851],[-2.42393581265048,51.8193054879618],[-2.414553684229141,51.8171154263051],[-2.40175439316455,51.80428081273],[-2.39040997176166,51.800848324852204],[-2.38988649646593,51.8007255346801],[-2.3895834667137,51.8005981849123],[-2.36925480353324,51.7944431096477],[-2.3514883885215,51.79774179559331],[-2.35072124174485,51.7978841602233],[-2.35004237386291,51.799123615107405],[-2.34800999185562,51.8028338228339],[-2.36037974099849,51.8068659791372],[-2.36323062215408,51.8215785585895],[-2.3608019169857,51.82721634108751],[-2.35038703160491,51.82976087973629],[-2.35325006441172,51.82879782193431],[-2.35976388430485,51.8266063101796],[-2.36167603297644,51.8222154330536],[-2.35934797130809,51.8111768408714],[-2.34580516426246,51.8039165395557],[-2.34714669742062,51.7976898344504],[-2.354204495964081,51.7940391265596],[-2.35425069467288,51.7940363654314],[-2.37488320331898,51.79280146323999],[-2.41260928765107,51.805317701485706],[-2.42459797804573,51.8150493765168],[-2.434864686145449,51.8099542666082],[-2.444118760839519,51.79976125938519],[-2.44702445454518,51.7926848429955],[-2.4407729970534,51.7883017894902],[-2.413039481890911,51.7860585847644],[-2.38371957489988,51.7757559481191],[-2.37932797095086,51.7662780463811],[-2.3820371608502,51.75917236309541],[-2.383216708267069,51.7586377818501],[-2.43262239925047,51.7362246973031],[-2.44945513642474,51.7398210914734],[-2.472301843305031,51.7259880990482],[-2.48185529471287,51.725650814006],[-2.489003358297449,51.6996644963601],[-2.49004752289599,51.70015045760011],[-2.49331389816177,51.6977130295207],[-2.5086489798893,51.68626498982871],[-2.53239246109301,51.6780584361753],[-2.50900558238918,51.6660011320012],[-2.48964025298392,51.66396152257661],[-2.49303412051546,51.651901309824],[-2.48497017811078,51.6484192097435],[-2.49067532485481,51.6448339839705],[-2.48557179610517,51.64507003709],[-2.47033486962957,51.6474744011858],[-2.46044163290382,51.652601902119],[-2.44565551167838,51.649333840906],[-2.44298352047969,51.6524918799746],[-2.43083429672714,51.6465622112125],[-2.407216385391859,51.6411985452155],[-2.39883618726571,51.645810317302],[-2.39478337462343,51.6421203920689],[-2.39714244145639,51.6395543584828],[-2.38598850246378,51.6399431096316],[-2.38818156672031,51.6371745605733],[-2.40047490634886,51.6351434811121],[-2.38890966915367,51.627540374568504],[-2.39503181777046,51.6048989314471],[-2.39309999157226,51.5970755244765],[-2.37057655800009,51.59761370717621],[-2.365581359663731,51.6037346228316],[-2.352785577227261,51.5966956428285],[-2.34401934720479,51.5964986446591],[-2.34411179506057,51.5942289154279],[-2.33525249178929,51.59425365514511],[-2.33417576290482,51.59663315271231],[-2.33106834527488,51.5916039726172],[-2.3198465858343,51.5939154226095],[-2.31657005647675,51.589834040918596],[-2.30825311590234,51.5928647517591],[-2.30009795021309,51.591481491242],[-2.29654955961151,51.5949945290109],[-2.291637286721,51.5936959211034],[-2.29408573554953,51.588573537056],[-2.28350315504068,51.5849635207109],[-2.287277558283979,51.5831568770125],[-2.2808884197401,51.5813129257706],[-2.28274577923905,51.578516562024596],[-2.27656182594913,51.5798963194431],[-2.27255905245869,51.5775903274116],[-2.26745328375231,51.5827174702195],[-2.24511651561049,51.5814094740082],[-2.24186688776213,51.5921071677432],[-2.22294437516111,51.5961100251507],[-2.210813308026209,51.6029597866565],[-2.20595427860883,51.60129415743759],[-2.20655236834298,51.5959494452395],[-2.1924428757715,51.5958134940986],[-2.19001237832702,51.59250314960839],[-2.18106244530722,51.59650780730339],[-2.18277554131831,51.5992296020758],[-2.15253791543564,51.5903416239803],[-2.10809692043985,51.63091865859231],[-2.07341140682766,51.6594989668112],[-2.05717380115619,51.6724431322141],[-2.01559230513293,51.65051550026101],[-2.00321095121292,51.6489791305171],[-1.995307446724951,51.6513635984319],[-1.98477739470418,51.64318421960069],[-1.97647768594881,51.6433474939424],[-1.97732728414873,51.638091260896],[-1.96874112178899,51.6399595649838],[-1.95051918865219,51.6369627916609],[-1.96305686286434,51.6586563942531],[-1.95788627369765,51.65968157048],[-1.95223949841581,51.6678175443141],[-1.94205954029405,51.6704168715615],[-1.93107648068076,51.6629948162478],[-1.92090498005307,51.6572437744879],[-1.90390253495955,51.6560279482084],[-1.88839733772518,51.6488587618572],[-1.87632568520428,51.6530852275626],[-1.88735195230874,51.66008268413769],[-1.89901313594195,51.6796865091691],[-1.89328914846433,51.6769391169676],[-1.87388368376944,51.682589831143204],[-1.85048414193447,51.6562848044654],[-1.83447111005641,51.6575203024711],[-1.81519817902053,51.6635292644137],[-1.82317089688883,51.6734843285402],[-1.81247158558176,51.6859999779548],[-1.81936637140581,51.6942612982145],[-1.81848786092503,51.70230997878801],[-1.81194238645542,51.703145713031404],[-1.78861685777866,51.6670018975245],[-1.77698862281829,51.6693909414219],[-1.77027478254481,51.6679699827664],[-1.76631971520486,51.6626841594663],[-1.7537928604015,51.66221535879169],[-1.73921256464876,51.6674259261254],[-1.72755368076921,51.6672098345907],[-1.71105528242177,51.671792947318195],[-1.70966046777436,51.68165683721269],[-1.69683095088565,51.6920420122024],[-1.68305860763384,51.6901103608739],[-1.67601545528862,51.6884070407182],[-1.67520821810946,51.68253524078211],[-1.66845860139018,51.6804375698815],[-1.64825374342062,51.6840870667632],[-1.65743813962788,51.69645132204031],[-1.6646996737265,51.6968786945925],[-1.6861662033357,51.7101759451736],[-1.69370645393313,51.721587917113],[-1.69581834766911,51.72377291612],[-1.68550782018289,51.7306341692012],[-1.6870208353919,51.7398840237491],[-1.69486551241876,51.748575013910894],[-1.70070464063817,51.7705842309133],[-1.71948863302901,51.783211828608],[-1.68375295466747,51.8013375250482],[-1.67685963544216,51.817024675023],[-1.68112008394852,51.8160526645229],[-1.68646159226861,51.834455791808],[-1.67638499897572,51.8503096863382],[-1.67869369640775,51.8529225185115],[-1.68635122945085,51.86629235359341],[-1.66711188278055,51.8770000586035],[-1.66895716387556,51.881504378386495],[-1.6586519744456,51.8965511935467],[-1.64488272263789,51.89460076531089],[-1.63325262377541,51.8995830309447],[-1.63374549783719,51.9054746367277],[-1.63484112597183,51.9128831128553],[-1.6448892968022,51.913715799327],[-1.64118208193421,51.9215618315515],[-1.64552984349675,51.922294256844104],[-1.61518893058729,51.9376816298851],[-1.63249065036283,51.955651458834694],[-1.64892655470324,51.9589248394723],[-1.65536694409537,51.9575034685354],[-1.65237458389309,51.96151186323759],[-1.66252911046192,51.96400494758],[-1.66894325930551,51.9752727375736],[-1.66575430454863,51.9874888219864],[-1.66988807051888,51.993090207615],[-1.66581849541067,51.9972469296876],[-1.64283802229205,52.0092030911085],[-1.63864863062525,52.0204865756871],[-1.62840492984826,52.0272069508685],[-1.62014522055607,52.0277118990043],[-1.61771611527823,52.0319190391394],[-1.62441776103734,52.03898135213619],[-1.64537471554456,52.0342317283581],[-1.65354944389513,52.0354023453474],[-1.66106531411264,52.0316138657779],[-1.66887815507333,52.0365820230636],[-1.69398075504565,52.0395278989016],[-1.69017980345498,52.05473599117761],[-1.69956095812339,52.054629852210695],[-1.70514106701663,52.0597066230704],[-1.70173137601653,52.072809303274205],[-1.70988219909862,52.0733492811803],[-1.71295296232755,52.0665849047502],[-1.73067148453835,52.073399301398],[-1.72856052811281,52.1001203055535],[-1.73789287454049,52.0917484953698],[-1.74240461279906,52.0919903676213],[-1.75094038357399,52.09543138427309]]]}},{"type":"Feature","properties":{"name":"Greater London","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[0.159048794054703,51.5120717943002],[0.159207809614416,51.5120158872491],[0.178574966651708,51.5052038630705],[0.182035195733018,51.4986273278369],[0.187684066854566,51.4878588743526],[0.210553951469516,51.4902431073138],[0.211870087476876,51.4899589563564],[0.214156929096117,51.4960396107991],[0.229965346752887,51.4993659214869],[0.226603240645007,51.50656717646961],[0.241919319205915,51.5079601287124],[0.237176008191511,51.5193344362336],[0.244905837771846,51.5187594749353],[0.240724591766995,51.5212073883266],[0.242858022678213,51.5243918777517],[0.245837496291796,51.5235161806434],[0.250852048177843,51.5288186252726],[0.253834321156039,51.517885874243206],[0.262307887784357,51.5179304907096],[0.266638181379091,51.5229558888952],[0.265347269252144,51.5321502678322],[0.322441492821971,51.540517854235596],[0.331429402036812,51.5400454610513],[0.333902599889603,51.5424937049473],[0.327816065130876,51.55099457039271],[0.315294827033387,51.5578352949458],[0.313035077012051,51.56581813196159],[0.2901959815454,51.56450971701089],[0.287155261861081,51.5727210622626],[0.272098974782147,51.5877465246785],[0.269878876965455,51.599574795252],[0.260875028634171,51.6003896951703],[0.253916397406628,51.6019201240327],[0.263326036885848,51.60917538957711],[0.224087730411796,51.6317377623678],[0.208499434666776,51.6266822786808],[0.200311572560423,51.6249357585131],[0.181238050234538,51.6258265968908],[0.168901299261908,51.62142017045699],[0.151073416180365,51.6232470429201],[0.13818423398537,51.623545396101896],[0.12918755086688,51.6214434510122],[0.119307301579151,51.6153685035469],[0.116715292221065,51.6169224573257],[0.103837892902431,51.61255136555981],[0.098068391136137,51.6154215814252],[0.092284867930696,51.6135742646308],[0.094692625571188,51.6107471577656],[0.088921970411143,51.60485357160481],[0.079170229019141,51.607047420655],[0.072823688436591,51.6046896927684],[0.062545617152457,51.6070771557351],[0.048094097900538,51.6133228726355],[0.05370964275064,51.6182810257661],[0.040786865122187,51.6157291361523],[0.02181441260303,51.62882722018549],[0.025224408089044,51.6352496039113],[0.02515921561762,51.6372893906118],[0.02271954314114,51.6411154937777],[0.001067281336261,51.6417623958215],[-0.0122587363441,51.6462340740994],[-0.011837258196909,51.6488475117328],[-0.009831421729795,51.66177044823791],[-0.010328400591473,51.676664671279006],[-0.011918676012088,51.6808778146802],[-0.033399956934476,51.6824948872414],[-0.048920429098712,51.6840471822187],[-0.062016734252041,51.6830080596294],[-0.083910020064384,51.689965004471404],[-0.10577913835527,51.69187564599321],[-0.118098711044608,51.6889625446564],[-0.149370126892843,51.68551835891131],[-0.163493271938224,51.6881150805638],[-0.163503164635797,51.68591699834371],[-0.172473161628764,51.6730913561043],[-0.176385932804326,51.67264498076181],[-0.182085377482676,51.6686040585302],[-0.191066699325158,51.6638967062225],[-0.199871677333062,51.6701702737025],[-0.211133866333014,51.6669549343179],[-0.207863695984533,51.6628611807608],[-0.226462691430813,51.6571618666928],[-0.228919311402986,51.659975810306],[-0.249348030054731,51.65605781271851],[-0.251557001565979,51.6479525884127],[-0.257354301474541,51.6418396413203],[-0.263272164999239,51.64483349962651],[-0.27312203907596,51.6411939601688],[-0.273713530385737,51.6386739655432],[-0.302620968997866,51.6362076906198],[-0.304455276938232,51.63635004858449],[-0.316672226651474,51.6405356329504],[-0.317549436837774,51.640216342336004],[-0.339858630239014,51.63073780641619],[-0.362621240927378,51.6235048820097],[-0.368174480274324,51.620652509242404],[-0.384572188415174,51.6161681211166],[-0.385871918947026,51.615820108280104],[-0.403994456633449,51.613184059045],[-0.404050154365865,51.6131839959912],[-0.41199138823261,51.6141856889359],[-0.440575301279442,51.6200732393013],[-0.457160195310364,51.6123020822686],[-0.459759477118413,51.6131422508396],[-0.497042456594896,51.6316977908827],[-0.499965055290516,51.6291733065649],[-0.50015459518905,51.6220683245259],[-0.495389391821044,51.6186875485239],[-0.499231538736378,51.6089281161288],[-0.496313359970916,51.6023984486726],[-0.500595886737316,51.5996898995638],[-0.49963463786021,51.5967032410002],[-0.494825295709162,51.5847772588806],[-0.484026264608682,51.5751273277532],[-0.482793739750471,51.5628216688482],[-0.477013553382512,51.5596450203677],[-0.477329881579631,51.5552720841679],[-0.49103033077808,51.5445585993485],[-0.49548974434616,51.538429206093],[-0.488973663150961,51.52908874485281],[-0.491631151571753,51.5188970612925],[-0.48978652323901,51.51152682866271],[-0.485535850653921,51.510027807206804],[-0.483173971834354,51.5066477306099],[-0.490024731194161,51.494747634396],[-0.490116783259263,51.494578915113],[-0.499169215876422,51.48858121367061],[-0.509701400845035,51.469175947703405],[-0.493861634990079,51.4627229058023],[-0.458644591609625,51.4563100938075],[-0.461319946211036,51.45239126196691],[-0.456475094105894,51.4382245455337],[-0.446289383144423,51.4399960108031],[-0.447716872453478,51.43500298246591],[-0.43975229281263,51.434619596659],[-0.439983256329709,51.4306264500758],[-0.427831381608617,51.4292523695336],[-0.418585780722532,51.4321118872156],[-0.407775634811968,51.423578390611794],[-0.39134197049661,51.4223261130517],[-0.386641678029352,51.4200808195965],[-0.389649816289074,51.4106933301514],[-0.383350028118426,51.408538296028404],[-0.373860203915347,51.40849330584061],[-0.359139329301899,51.4119031603976],[-0.338342120465142,51.400848231002605],[-0.325860281127279,51.39143960527821],[-0.317697879461912,51.3936670802519],[-0.315958343747125,51.3876322521386],[-0.313111086424265,51.3887724742728],[-0.307365447908524,51.3783835469693],[-0.308471291881675,51.3757949805653],[-0.312651479529226,51.37475113750389],[-0.317898307628403,51.3697919645168],[-0.318481506558764,51.3657621902657],[-0.327923135992918,51.3521845134341],[-0.330655551869037,51.329009639034],[-0.323946904733229,51.32671606577821],[-0.30619199674676,51.335084410874906],[-0.297771117293604,51.3492612573375],[-0.28507723209459,51.3612106427655],[-0.288249074170444,51.3621165672627],[-0.28407531400389,51.365147556108006],[-0.274022551886991,51.370655282208],[-0.272545496689882,51.37226382612321],[-0.269064609019782,51.37356180704371],[-0.261148558997612,51.3795998002344],[-0.245030259031958,51.3800339656124],[-0.245041244589302,51.379960270458504],[-0.244679371284931,51.369061154542806],[-0.245404841047607,51.366845440699706],[-0.233949402392238,51.3653847836474],[-0.226943704152365,51.362625173256],[-0.217264425569081,51.3433870908233],[-0.229822680877552,51.3365228063624],[-0.220940778700181,51.329863040865206],[-0.21409520850526,51.33035052953501],[-0.213030837514285,51.3355410665542],[-0.202050653173641,51.3401414075991],[-0.197319341793986,51.3435951617074],[-0.187459117706562,51.3408122796846],[-0.172858210232725,51.330013463849504],[-0.163076714225111,51.33026421917081],[-0.164187026486933,51.3260405183736],[-0.156543168202182,51.3215085885945],[-0.161879752207213,51.3196257050228],[-0.158330470681896,51.3109853914119],[-0.154315337506222,51.310317896513794],[-0.157735020247375,51.3044275103801],[-0.151023184109817,51.30072193216989],[-0.143558982605151,51.3012603875361],[-0.137313517589503,51.30078090546449],[-0.124292859195443,51.2867586590943],[-0.117775245875414,51.2870948097597],[-0.115728818857484,51.2907281577305],[-0.101139812864712,51.296286656172704],[-0.094324198537707,51.2993539651557],[-0.097244716753407,51.30029536763869],[-0.088731978774133,51.3051045617358],[-0.08193167569138,51.3106472894563],[-0.082224109790183,51.3169577054],[-0.071016516489493,51.32123279407921],[-0.063994186935421,51.3186366052156],[-0.05625160319741,51.321664021092005],[-0.047868739591303,51.325245056529],[-0.050261219672833,51.3326393320538],[-0.041967080664043,51.3338103614329],[-0.037892270902319,51.3387044848688],[-0.022056700450286,51.3380996039451],[-0.014328038709478,51.32980466145221],[-0.010873929854156,51.3336283574389],[0.002294720966143,51.3291388513245],[0.006583254377009,51.3156522556827],[0.010348595099596,51.316140332005006],[0.012158501750626,51.2995981749523],[0.015009378507288,51.2917860709615],[0.019101247808221,51.2916841019891],[0.024839139154774,51.3021549332254],[0.032909419365926,51.3075209114754],[0.042620201159846,51.3013288993907],[0.042398883648016,51.2926788490678],[0.050789894915355,51.2939868835129],[0.058510226943699,51.2893537137148],[0.081579679005318,51.2918392351545],[0.091184788886724,51.29682736787],[0.082816244031514,51.3056336671173],[0.085029299907059,51.31602320349221],[0.104901952974141,51.3274128705861],[0.117903916477628,51.3296632259524],[0.121684470205226,51.3336363858989],[0.116681195400245,51.3413029595856],[0.119184939635519,51.344256879772495],[0.136958109807481,51.3441746039777],[0.141287334301148,51.349779106457206],[0.147284803129053,51.36701972944741],[0.151622150978868,51.3683837981381],[0.149600418363283,51.3735826174689],[0.153236330910372,51.3780364878889],[0.147725410110498,51.3926115078565],[0.161313215594569,51.392369729038606],[0.148869409057703,51.4084291289611],[0.148989832047652,51.40862342993711],[0.152932433172376,51.4087084822957],[0.153770119500224,51.41126513597231],[0.149159930322975,51.4124352235141],[0.154636645664461,51.4184698766412],[0.151158883829316,51.4204304354257],[0.153763537931545,51.427523235725396],[0.155875040956964,51.43087658324101],[0.164216990841068,51.42854646582461],[0.166851115352684,51.432072036320506],[0.170898856496104,51.4412023927623],[0.191012191202743,51.4487877160226],[0.192083488328661,51.4508420336828],[0.200233863315772,51.45259643158341],[0.20260814849742,51.4562301154661],[0.202880215955973,51.45826549813],[0.210612945126035,51.4624813117235],[0.2115688339007,51.475092673256306],[0.219202439132856,51.4796095648107],[0.217644190043408,51.4804485903159],[0.211683788803227,51.48272859310341],[0.200844593643595,51.4786571127252],[0.186537326334579,51.4804648842911],[0.186499591258576,51.4804808295509],[0.175197827350929,51.4852556418723],[0.172307112621799,51.49412754183041],[0.172147224337253,51.49461817013331],[0.172101162872704,51.4947595121121],[0.169380011573712,51.498861965919005],[0.166190946323591,51.50366863545969],[0.152013469178269,51.5061567090411],[0.151296375343893,51.5062825014827],[0.128620890855794,51.5132941547309],[0.120239031684623,51.5114451021843],[0.118787744080156,51.5113197929839],[0.092052129770036,51.50900811719881],[0.088027678119318,51.5047645133705],[0.083900670099878,51.5004117984515],[0.082721438159471,51.499167970453],[0.082431097095838,51.4988617114958],[0.076234544684947,51.4958916044833],[0.075924368054007,51.4958786849114],[0.075042961114245,51.4958419664446],[0.061103970493561,51.4952603963158],[0.045798128585544,51.494619889204195],[0.029744295013352,51.4939459388053],[0.029596384973964,51.4939397187015],[0.029045430853762,51.49391654689689],[0.015726420704485,51.4958944519781],[0.015415841713134,51.4960746978859],[0.005586873933653,51.5017778650203],[0.000852384060338,51.5045242753471],[-0.001005462502144,51.50189047453501],[-0.002240195926425,51.5001398603303],[0.001185809921792,51.492730562767406],[0.002473437043412,51.4899452462016],[-0.004618594967771,51.4847311634639],[-0.00470017229325,51.484671178011006],[-0.010925184985934,51.4839842247306],[-0.01785845738325,51.4832186949746],[-0.014999297431141,51.48176656469601],[-0.016834074573365,51.480245580629],[-0.018982511013924,51.47846680781711],[-0.022741556496681,51.4753541721059],[-0.01877978799785,51.4788985179352],[-0.017325245508825,51.48019965402501],[-0.017090318044949,51.48040979864129],[-0.02430585939016,51.4852044901356],[-0.024820913004898,51.4855466869121],[-0.032386326230778,51.4930562801132],[-0.032422051715732,51.4933701250389],[-0.033454609807965,51.502439236591805],[-0.033869578801483,51.5060830189342],[-0.042993061182713,51.5072176535123],[-0.047830233065954,51.5042441683806],[-0.047900539998805,51.5042009454976],[-0.052070693476852,51.50275048190441],[-0.057257628364583,51.50086320458819],[-0.05775603209464,51.5008510155389],[-0.073513887170686,51.5004645705815],[-0.070832535236546,51.5025172578646],[-0.072430668442199,51.503086985896395],[-0.076122953551043,51.504403137930105],[-0.088099844197771,51.5068307510948],[-0.08859908687242,51.5068848226538],[-0.104676526122011,51.50862492191],[-0.108707331712305,51.5084505305689],[-0.108805057906591,51.5084463004895],[-0.118324868424955,51.5057269329775],[-0.118823061311694,51.50384006484191],[-0.121352821058677,51.4943173909919],[-0.121983303893627,51.4931996945404],[-0.125070608172031,51.48772562727291],[-0.125525092498704,51.4869196597682],[-0.128091958615048,51.4852676612045],[-0.128430560959041,51.4850497281052],[-0.136144303705793,51.4842914943563],[-0.138108765259967,51.4840983082864],[-0.139801888301078,51.4839317789936],[-0.147406293946757,51.48318150686319],[-0.166275582534315,51.4813175702037],[-0.17129010950686,51.4797850913634],[-0.174155762141814,51.47890918217859],[-0.177949731420868,51.4706113709546],[-0.187114608204622,51.4641791529243],[-0.194915572703195,51.460661601714904],[-0.195098508505635,51.460614034553],[-0.20931714204621,51.4660909484408],[-0.209691744168807,51.4662350630862],[-0.214265733641228,51.467999134015706],[-0.215386353473437,51.46843128132501],[-0.223401522870407,51.4715216738115],[-0.223642311868644,51.47223165986631],[-0.224891478005853,51.47591455565569],[-0.225134822564229,51.4766319199247],[-0.225834410217329,51.47869414415711],[-0.228011328288862,51.4851101178221],[-0.235505416577919,51.4889505349782],[-0.248520909527052,51.4837346764794],[-0.251405180380742,51.47389377706259],[-0.251480720048389,51.4736359825557],[-0.251582335067772,51.4735973466137],[-0.260215048755059,51.4703144337835],[-0.270539522539533,51.47268043059981],[-0.273465153845283,51.47636765161211],[-0.277986808365265,51.48206518313611],[-0.278095528809912,51.4822021567663],[-0.27834252133451,51.4823184385095],[-0.287272129073823,51.4865216784335],[-0.295386562512078,51.484759483039],[-0.309820417549382,51.473756875013],[-0.31012093679786,51.4735277232241],[-0.319245650051518,51.468361331958],[-0.313854906653685,51.460745486439],[-0.313673393749735,51.4606574910062],[-0.305022033220876,51.4564626820492],[-0.304885867123853,51.4562360491053],[-0.302547817224562,51.4523442861917],[-0.305853232909415,51.4485109112634],[-0.329935975601981,51.44170083254641],[-0.326941894455216,51.4334695337683],[-0.326928618555641,51.4334330286381],[-0.325947416677613,51.4329364031656],[-0.325634190277715,51.4327954702645],[-0.318440402732133,51.4295582066725],[-0.318950894174912,51.4295046707333],[-0.31901378002931,51.4294980752364],[-0.319940908618239,51.4294008376814],[-0.320155158282653,51.4295140555238],[-0.320191773126606,51.4295334042274],[-0.328481718815092,51.4339479296832],[-0.328495017073711,51.4339831005002],[-0.331364063270804,51.4415697355629],[-0.330964782906169,51.4418849460865],[-0.330626186985562,51.4421522437012],[-0.325075276811457,51.446533688409],[-0.315798396056739,51.4466615144021],[-0.305944312743549,51.45089655953261],[-0.305721933936308,51.4509921173929],[-0.304279006346907,51.4516121349187],[-0.305515425258594,51.455100603679405],[-0.305559832304913,51.45522588397359],[-0.305892400035465,51.4561641079539],[-0.313776538623357,51.4596665212513],[-0.313872211174679,51.45970901638541],[-0.321386133831888,51.465168673165195],[-0.321712316644831,51.4654065967685],[-0.320219875927036,51.468880425183],[-0.319130915442988,51.47147551742201],[-0.308449292001495,51.4756715930869],[-0.308372862008595,51.4757015774785],[-0.306958809473683,51.4762536119496],[-0.304398983515156,51.47913657024],[-0.30431061260375,51.4792360883207],[-0.299091593713872,51.4851125630978],[-0.298964454878668,51.4852556927855],[-0.298209322669302,51.4854151157441],[-0.295419837580966,51.4860039770734],[-0.290706994661781,51.4869986720621],[-0.289886242416026,51.487171876333996],[-0.28744754811658,51.4876843138781],[-0.286871819688156,51.4874518056319],[-0.284113622024457,51.4863378321891],[-0.283824843454084,51.486221194219006],[-0.277084648927052,51.4834984511509],[-0.27493084453079,51.48080920104471],[-0.273371229042023,51.4788616396846],[-0.269154104837155,51.4735946537297],[-0.255783084832855,51.4726169005125],[-0.255740940674504,51.4726138164156],[-0.25521169579162,51.4725763934941],[-0.255065830748371,51.472924263257],[-0.249710507181285,51.4856921187455],[-0.244539277274199,51.488702955548696],[-0.243587037964877,51.4888646811721],[-0.24347085721075,51.4888844117893],[-0.23442253720035,51.4904206803966],[-0.234381339786281,51.4904276734632],[-0.227559643979108,51.48739391998761],[-0.226542139967936,51.4859538667002],[-0.224064562272722,51.4824470373943],[-0.223747436397827,51.4818953742973],[-0.222216221236814,51.479231526013],[-0.216664071246001,51.4695696729317],[-0.198026881149182,51.46535670365469],[-0.19737486402442,51.4652092462899],[-0.18879753560119,51.46683009880759],[-0.185901483695399,51.46737719243969],[-0.184468950907365,51.46764777797921],[-0.182357595596313,51.4718128335764],[-0.182317007249174,51.4718710962267],[-0.179438042764162,51.4775199243473],[-0.179399746723382,51.4775950547796],[-0.1828807609735,51.4774579943931],[-0.183856622798358,51.4774195523249],[-0.183785340372622,51.4774417050437],[-0.181663969506671,51.478100959050906],[-0.173218830005105,51.4807248611592],[-0.172383375678463,51.4809843869174],[-0.170615013391759,51.4815336822333],[-0.164339602964177,51.4834826457732],[-0.163805319798312,51.483648555755906],[-0.150582216264032,51.48540511081931],[-0.150332330164787,51.48543828989461],[-0.149979158603456,51.4854851824766],[-0.147470161153049,51.4853435045441],[-0.141875968135479,51.4850274154261],[-0.138151072157116,51.4848167967882],[-0.136490890379183,51.4854030742651],[-0.128457519716824,51.4882394309284],[-0.124856944842419,51.49436651465961],[-0.124654468169523,51.494716400396705],[-0.122264781903832,51.503895215556305],[-0.121349370238457,51.507410253139994],[-0.111474950392423,51.5107577789505],[-0.108527481118133,51.51081022995721],[-0.108446561292221,51.5108116688372],[-0.108221024305665,51.5108101253207],[-0.099877050449328,51.510752712752506],[-0.099330118870406,51.5106782318815],[-0.096331121670261,51.510269781679],[-0.095234030314503,51.5101203412866],[-0.092295879793253,51.509477182245604],[-0.091962496102686,51.5094041997119],[-0.088558275962621,51.5089220899626],[-0.085454998978337,51.5085976296705],[-0.085146443388475,51.5085629934355],[-0.081154813388515,51.508114799767],[-0.08037601393606,51.508027335837596],[-0.07935333120832,51.507844170996],[-0.07870235124186,51.5076784373144],[-0.059809037330103,51.50287885550771],[-0.0597656797869,51.502874151523],[-0.042098342865672,51.5097665256598],[-0.041881876537095,51.50971984717311],[-0.030373755045037,51.5071941458296],[-0.028866731629001,51.50236202071479],[-0.026211761662807,51.4939649696022],[-0.026192491194453,51.4939160563371],[-0.024403344916168,51.489374231405],[-0.016381664130718,51.4861488176913],[-0.006500019332994,51.4871241922925],[-0.003024499110289,51.4908752961792],[-0.003236257829909,51.4912702447847],[-0.008641068361193,51.5013483522813],[-0.007915284755688,51.502008109298096],[-0.002045856153879,51.5073426695626],[0.007557313809462,51.5073205024844],[0.008783859514699,51.50731761477249],[0.008375887938031,51.5086801911617],[0.009426226229115,51.5078980423496],[0.013480996833567,51.5048782757677],[0.015744986744584,51.5035211882606],[0.019038004226212,51.5015470655679],[0.024441540197002,51.49830719352519],[0.039116546785131,51.498567694601505],[0.06866134795883,51.4990865718774],[0.07090574313502,51.500642286962105],[0.077063944498871,51.50491024655789],[0.077337547009159,51.50517603090031],[0.079025060742889,51.50681525081921],[0.084580463180584,51.5122105298736],[0.096790117829937,51.5151511996254],[0.096069988079403,51.516750730515305],[0.096934223412043,51.5163260924743],[0.097590059079889,51.51600384192981],[0.097787466961423,51.51590684187119],[0.100509379900435,51.5145693106894],[0.109074895650993,51.5142500213923],[0.126345975161068,51.51944626587971],[0.141823670011567,51.51566280173069],[0.141864531167574,51.5156528103457],[0.143206847940588,51.51532457237],[0.158721674311475,51.5121868028489],[0.159048794054703,51.5120717943002]]]}},{"type":"Feature","properties":{"name":"Greater Manchester Combined Authority","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-2.353338549039631,53.6584829010328],[-2.35556983572558,53.6645072928049],[-2.3712361929384,53.6670806553965],[-2.36264103428531,53.655988731825495],[-2.36705496434831,53.64506182144811],[-2.3724943982039,53.6422936922074],[-2.36866405039552,53.6369502844871],[-2.37032788754394,53.6315343318487],[-2.37913211400899,53.6308703634519],[-2.39784578147011,53.6322081798918],[-2.40120935798549,53.6245990605314],[-2.40537554735878,53.6251432017866],[-2.41992826099158,53.62360987497901],[-2.42585341472569,53.6258594377518],[-2.426143740891951,53.635010270829],[-2.43872438284017,53.6460454486624],[-2.45027035776665,53.6414320693689],[-2.45064390657436,53.62780528260839],[-2.45828927754248,53.6246312139176],[-2.4537808878436,53.621974422023406],[-2.46601942868202,53.6216990218224],[-2.47299283803697,53.616631873583295],[-2.51041411642028,53.6263630170878],[-2.51132292934796,53.6269949667172],[-2.55661382600303,53.603657335036594],[-2.55959025075435,53.598912834856506],[-2.57400347666306,53.5942907719542],[-2.5830651141236,53.6046950781844],[-2.59592575554149,53.6108149806104],[-2.6151581746337,53.6028238399848],[-2.617395628581,53.5958362567361],[-2.62590677319225,53.5936832713985],[-2.63128335017892,53.6052180371491],[-2.63616105877765,53.60829063888921],[-2.65937035040167,53.6036477522573],[-2.68931258757785,53.6043028419438],[-2.69258712915669,53.5961457263082],[-2.69337000083952,53.5894137345098],[-2.70139839789914,53.5906229132239],[-2.71922182910363,53.57611149044791],[-2.71126970183046,53.56476753207211],[-2.70473810083237,53.561860478649905],[-2.71256798370416,53.5488374081508],[-2.71860791744407,53.5435601180093],[-2.71455924758554,53.5382801308922],[-2.71792555495459,53.5272111636733],[-2.73052451043225,53.520597608049506],[-2.72302700403764,53.510003003997],[-2.71000708874071,53.5146418520621],[-2.705460840417699,53.5047884302154],[-2.68018366593438,53.49949953298831],[-2.66632160468633,53.4997681178983],[-2.66293070246018,53.4928002402754],[-2.655915361017049,53.4903392339811],[-2.645540010746299,53.48025231989101],[-2.61213826989975,53.4811380914232],[-2.60786343105356,53.4708277475264],[-2.61454855713081,53.4703612423575],[-2.616764848086361,53.46624280951589],[-2.613111076989759,53.46177483123791],[-2.59972183449735,53.4610607632003],[-2.59610435390121,53.4564534028135],[-2.58397756839392,53.4538779376162],[-2.58331871677147,53.4488719056986],[-2.5767428316775,53.446057209294],[-2.57038994787401,53.4584755069628],[-2.54907568465009,53.461485853743],[-2.55263854410147,53.4678134069205],[-2.53643621977153,53.47150634167469],[-2.4963344588829,53.48092942195039],[-2.48914550962129,53.475848176679804],[-2.48971382174961,53.460282297438],[-2.47598650909522,53.4482376778519],[-2.478153329064769,53.4434174890128],[-2.46769963082216,53.43744294165511],[-2.46172387799054,53.4363687331607],[-2.451543595959579,53.4267090610449],[-2.44937818830286,53.4158914442799],[-2.45368136449011,53.41321284043819],[-2.46597670462298,53.4007478656207],[-2.47845617870327,53.3962182008363],[-2.47104407233731,53.39233791712961],[-2.46590580343097,53.394820107427506],[-2.458502663776191,53.3930114696486],[-2.44843869036698,53.394799812645],[-2.42658992510444,53.38746151693581],[-2.41059642851077,53.3838655674642],[-2.40069772399879,53.3752206141119],[-2.38469686434926,53.3700437099611],[-2.36502717938874,53.36310597133241],[-2.35396207496566,53.3682092578586],[-2.34900601835613,53.3658981566704],[-2.34008376436776,53.3673729049755],[-2.32989655969821,53.3639381419927],[-2.32904732552465,53.3607826760723],[-2.3243983139176,53.36137967102991],[-2.32342362533264,53.3582668293845],[-2.31399816114173,53.3574246421479],[-2.29693022964698,53.3485838120438],[-2.30166163948606,53.3402241854423],[-2.28793341075338,53.3430861116573],[-2.28064612215112,53.3459681637056],[-2.2670766725644,53.35057345754301],[-2.25644728585402,53.3606768412766],[-2.24079008412411,53.3595742669914],[-2.23298161296768,53.358795182821],[-2.21614170311279,53.358866638158695],[-2.20829169487155,53.354996616101204],[-2.18544088377377,53.3526597696074],[-2.18801518077824,53.3487366198004],[-2.18097727745663,53.3440438011382],[-2.19416286501527,53.338650441058405],[-2.18487676886287,53.332691419754504],[-2.15985776182758,53.32810402222951],[-2.15253543959371,53.3285532755778],[-2.15000843800523,53.338297487851406],[-2.14409931007101,53.3428710074742],[-2.15119059702052,53.34813313535721],[-2.14253276678546,53.354189581475204],[-2.138196731806,53.3568913122976],[-2.13902531020559,53.36731701160131],[-2.12814857237164,53.364614755849],[-2.1231957229973,53.3619466331234],[-2.11440472215977,53.3646396308951],[-2.10392850224723,53.36608244800111],[-2.09495154896013,53.366035950169],[-2.07855305589208,53.358148672312204],[-2.0611634123619,53.3584382505572],[-2.05532046861855,53.36689114755761],[-2.040563624895011,53.3740877663963],[-2.031058463243001,53.37026238610941],[-2.03377543264394,53.37554156977829],[-2.026208991537,53.3736181415147],[-2.02199563874542,53.3759578039565],[-2.01708408317754,53.3778327563457],[-2.01971446141798,53.3805954646894],[-2.00464286724195,53.3863272775011],[-2.00505225890324,53.3905393757253],[-1.99232947055908,53.4151931330374],[-2.0136971820304,53.4158901098022],[-2.02370962953136,53.420551713499904],[-2.01972433303058,53.4251186793694],[-2.0262554175393,53.42986516142861],[-2.02732024115649,53.4324027446138],[-2.01365546338078,53.4398832346574],[-2.00421605197447,53.4359217858561],[-2.00830558547645,53.4414522459984],[-1.99821418115247,53.4457724815817],[-1.98690112931495,53.45431634016891],[-1.987429782677461,53.4589033073706],[-1.98153249272799,53.4645050571844],[-1.98853068333571,53.4700249315489],[-1.98707495748109,53.4816586458083],[-1.97463068295105,53.4879351084242],[-1.97271965323536,53.5024861303839],[-1.96338598926022,53.509827260669],[-1.95133267475833,53.5041988388905],[-1.92197284577495,53.5099546848918],[-1.91676643607638,53.51449576001661],[-1.92678065561025,53.5209487496897],[-1.92244468164089,53.530815062066],[-1.90962083195551,53.5383909865468],[-1.9128846428011,53.5516436149553],[-1.92566597193519,53.5531893013427],[-1.92752155724135,53.554637475499],[-1.94272585126694,53.56164129411191],[-1.94810941608059,53.5728482016363],[-1.98164621160679,53.5893378442983],[-2.00947078713106,53.61677951113921],[-2.02303595762586,53.615839476909194],[-2.02681573905277,53.6241671470048],[-2.030903622805,53.6292176332916],[-2.02999663899406,53.6361692630858],[-2.041580057705589,53.6424873400301],[-2.03570939134714,53.659327667816],[-2.05291768413947,53.6703167320897],[-2.05485761323399,53.6756629213521],[-2.0507343300026,53.6795161050296],[-2.05124217318998,53.6836917604439],[-2.05671823327911,53.68305151743801],[-2.07339870520131,53.677510005816],[-2.08316723689427,53.678075213058705],[-2.087121379761951,53.6708099772639],[-2.11414141244869,53.671137547066],[-2.12538675399782,53.6748383473348],[-2.13412727235101,53.685734030873306],[-2.1422575495828,53.6780058071684],[-2.146328075898909,53.682231530348],[-2.15891698716886,53.660326022508904],[-2.16416780028259,53.6533738802296],[-2.16113585516063,53.6422484499288],[-2.18539583608629,53.6382240900954],[-2.180467825785421,53.6405496165462],[-2.18240718205755,53.6482576152029],[-2.1895842548159,53.6480253601141],[-2.20522850321208,53.6543488353298],[-2.21533691528303,53.6670814142389],[-2.21772889810502,53.6689807379205],[-2.22582386681298,53.6707678527565],[-2.23657496233667,53.6670071610434],[-2.26144134783303,53.65412319046099],[-2.26986609501716,53.6461366085906],[-2.26299780194533,53.62501155575661],[-2.256769014365561,53.620397954751],[-2.25791657220822,53.6164657412519],[-2.27178707180205,53.6145142314573],[-2.27255052543859,53.61851233444061],[-2.2828536648912,53.6202631492099],[-2.289993466203061,53.635245282191505],[-2.29573731502735,53.64149599365901],[-2.29761829621964,53.6518994926207],[-2.29382531285556,53.6579713683509],[-2.29895927555818,53.6666904790205],[-2.3155596138704,53.65507763505611],[-2.3253276773981,53.6554559513633],[-2.353338549039631,53.6584829010328]]]}},{"type":"Feature","properties":{"name":"Hampshire","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-1.955465580714811,50.9782663327052],[-1.95682488695197,50.989831732335695],[-1.68978806224739,51.2147685872006],[-1.52750728243899,51.3384659578415],[-1.41563002994336,51.37188346416901],[-1.08661908661563,51.3839155779629],[-0.917747809949221,51.3645565791178],[-0.828124465613097,51.3528639187135],[-0.784648137905585,51.3382306123356],[-0.775466206963731,51.3319589032434],[-0.767093450444421,51.3262248898307],[-0.746389810146413,51.31061923901759],[-0.745653331661332,51.3100329402967],[-0.73940050358514,51.29893936199439],[-0.731093833410657,51.2803620913767],[-0.730489797425043,51.2548997702577],[-0.744687419797277,51.1064108857188],[-0.753480635682262,51.0864557098491],[-0.936469449377521,50.7781541106154],[-1.55126836019426,50.7060870176651],[-1.55456305781769,50.7062439396856],[-1.74416871755885,50.7474553887605],[-1.78342488463905,50.7646492694894],[-1.78827683003831,50.7668695239097],[-1.955465580714811,50.9782663327052]]]}},{"type":"Feature","properties":{"name":"Herefordshire","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-2.805432560640451,52.38825207095971],[-2.85544157335808,52.3952980274035],[-2.86378535223407,52.3887138581651],[-2.88845681203454,52.385154203445],[-2.886506297711379,52.37851138486721],[-2.89313510339412,52.3740884938803],[-2.89306088266576,52.3796569145557],[-2.90542511454731,52.38578334529501],[-2.9176851490735,52.3862884794478],[-2.91955609796186,52.3845415006202],[-2.91400689592782,52.38213280585369],[-2.92231079516907,52.3751473465218],[-2.90080513581716,52.3672702614202],[-2.9261433373763,52.366995255805],[-2.93888929692198,52.361057983037696],[-2.93065583622018,52.3549933025819],[-2.93617133406098,52.3529349532354],[-2.93314924449305,52.3500521344638],[-2.954651356250571,52.3491547628498],[-2.96680116367831,52.3294490746378],[-2.986026646418349,52.3234685440193],[-2.99714715768153,52.3245277852396],[-3.00155734523004,52.3203430501254],[-3.00132035214736,52.299944151848706],[-3.00560327992807,52.290648089035805],[-3.01196233390466,52.288088889489],[-3.00936867488354,52.2828514659142],[-3.012617382239799,52.2794073161841],[-2.992726565109869,52.2728106085772],[-2.96492741042969,52.2743565358481],[-2.94962136496068,52.2695258658281],[-2.95591520035997,52.2709073181497],[-2.96503838029795,52.26812500073841],[-2.96489669428117,52.2623990470235],[-2.97750294290696,52.2597733685826],[-2.97857519699097,52.26236189957331],[-2.98986895099209,52.260507344549595],[-3.00550225677038,52.2642717235629],[-3.02680167793675,52.258055400916],[-3.04559875260537,52.25307209333361],[-3.04528493675853,52.246822611725],[-3.04993576560407,52.2450361301996],[-3.04367892076386,52.24554215865831],[-3.044215118433169,52.2379274562371],[-3.05524661092246,52.2376234302824],[-3.07312100464225,52.235792472766605],[-3.070373153711671,52.2292379042765],[-3.07801113811082,52.2160453231371],[-3.07209180392951,52.213087287644996],[-3.10208187078616,52.2027204256414],[-3.094651048892329,52.18374227303419],[-3.10140991621773,52.1772661379192],[-3.11248966538687,52.1736233343786],[-3.11245934549557,52.1702313030393],[-3.12199485648723,52.1669168328501],[-3.11693054241183,52.1604473036363],[-3.098896039964489,52.1547338860874],[-3.08403442129639,52.1631673858729],[-3.07443918104842,52.1600580459064],[-3.0725382658941,52.155773234787304],[-3.09369007605061,52.144305996423],[-3.13587330508285,52.1379083922528],[-3.13413719876664,52.133577916904],[-3.14122950743734,52.1299234350123],[-3.136814846381371,52.12332025544511],[-3.12806150953142,52.1245705006811],[-3.10498507710709,52.116727616734],[-3.10546572555448,52.105386239037],[-3.1227151698686,52.1031579308801],[-3.11886009940924,52.088727698721094],[-3.1258956184989,52.078310821605996],[-3.11833311578482,52.0701639276791],[-3.11641315616635,52.0658331796947],[-3.090780877459971,52.05082529449601],[-3.09281242205453,52.047478791914706],[-3.08649189139168,52.0411428335996],[-3.09919890693024,52.0226858085701],[-3.08689696098424,52.0139113865977],[-3.08408810673976,52.0041082542643],[-3.067367938563709,51.983142787940196],[-3.03960853930575,51.9664807823055],[-3.03533530451144,51.9597409119362],[-3.02594450042839,51.95728228723111],[-3.00852302843168,51.93808122595911],[-3.00812331564277,51.927130546673595],[-2.99924292508892,51.9234577824255],[-2.976665334473771,51.9274901991849],[-2.97179803059763,51.904964946585096],[-2.95248886559769,51.9062269871621],[-2.93392452368646,51.9150507181893],[-2.92804278507276,51.913892519661594],[-2.916243461086621,51.9176921363815],[-2.904135428832351,51.9251822011677],[-2.89243685795967,51.9253713484444],[-2.887048649118079,51.9281634667141],[-2.888657163345389,51.933462461903],[-2.88269920691322,51.9343421622585],[-2.875422571736289,51.9330887269101],[-2.86990788321878,51.9267921201199],[-2.85933656225694,51.927729170332405],[-2.84510746288266,51.9222133448571],[-2.86333336574936,51.9171762768401],[-2.86187161480982,51.9139790713439],[-2.85411359283818,51.9133015927417],[-2.85371032628077,51.91573537333171],[-2.84515029671471,51.9152216118196],[-2.84201935698752,51.9177542311784],[-2.836103039504859,51.90605080605939],[-2.82372544782233,51.9053007601144],[-2.80867045189897,51.8962278768455],[-2.79693166578633,51.8883893704651],[-2.76842319309657,51.8805360883667],[-2.77272239551718,51.87679486313],[-2.77879887552431,51.8658590666979],[-2.76950813685482,51.8623588459692],[-2.75687958883666,51.84590575235621],[-2.74114504457348,51.84247250992541],[-2.73884399096035,51.8366194156254],[-2.73154290806487,51.8413916870498],[-2.72758042926545,51.8401422467444],[-2.71960515391467,51.8489192761031],[-2.71610134718433,51.8407352526076],[-2.71022269587742,51.8390689535844],[-2.70511266084999,51.8456957702307],[-2.697336774890549,51.8447981340394],[-2.69336566959471,51.8338729575477],[-2.68700248327029,51.8330561778367],[-2.68285661738232,51.838456250052104],[-2.66619753963782,51.8356235570426],[-2.65819445387188,51.8327105157944],[-2.65685722559277,51.8268809153359],[-2.65040070567432,51.8261246889383],[-2.63630654696853,51.839491096401304],[-2.63671005341688,51.8430952612886],[-2.62546695815918,51.8389640024544],[-2.621593596422441,51.84332467075771],[-2.609434135620221,51.8467969254532],[-2.60640062095109,51.852025789094895],[-2.59953949895494,51.85653144351309],[-2.58619788884871,51.84978532610081],[-2.57882169171365,51.8518494056923],[-2.5852188604977,51.8599304778052],[-2.576099586659971,51.8625497269983],[-2.56165731912739,51.8642920037339],[-2.53405179974821,51.86039631842231],[-2.52223340432222,51.86469599921849],[-2.50862440109418,51.8851690569453],[-2.5018679321442,51.8863121453052],[-2.50025379604018,51.8817380504138],[-2.49465604213406,51.884239701415],[-2.493861264943571,51.8800028157662],[-2.48779469274655,51.8804175459086],[-2.48672835462937,51.884716038727404],[-2.480734270864851,51.8857252257862],[-2.47340817682412,51.8855536342335],[-2.46521347137183,51.892991318262],[-2.446009544389681,51.893994548688],[-2.43931477036816,51.8995141872491],[-2.44538855052067,51.9005558238502],[-2.44015427785163,51.9024420675997],[-2.44644962304205,51.9150883093871],[-2.466043000693801,51.9279745035373],[-2.46787865506536,51.937379783476],[-2.46338445871247,51.9392694932214],[-2.465487017323091,51.951696407247695],[-2.47372852291771,51.956538375039905],[-2.4861074430909,51.95742019688709],[-2.49018750591508,51.9549792921229],[-2.50090645407367,51.9606091442864],[-2.499030144769339,51.9637180821612],[-2.49224484623915,51.96412877731421],[-2.494912933323751,51.98107520682671],[-2.48863786343256,51.9874076056944],[-2.47097993694179,51.9947774697872],[-2.47764646244236,52.00015052976959],[-2.4854967162393,52.0003323100104],[-2.49125236025256,52.0104908372811],[-2.48036569317797,52.0160607841446],[-2.47893230092191,52.02253041104],[-2.46620453668243,52.02372347717311],[-2.46255406796107,52.0219099783722],[-2.46354198509105,52.014411058017],[-2.436115347404531,52.0145744033137],[-2.43660749577437,51.9968432309365],[-2.41319627507641,51.9940903078117],[-2.3990184898963,51.9961459478794],[-2.39289223171328,52.01295877004241],[-2.38698268471681,52.0121665271175],[-2.35137852244174,52.02135902903941],[-2.35064851112551,52.0299608892012],[-2.34859482007215,52.0489105709299],[-2.35154802879142,52.05637492925901],[-2.33942526722778,52.06892388208159],[-2.33829808061935,52.095448939712895],[-2.34911786384757,52.095645679681404],[-2.35453689556395,52.1193840101286],[-2.35554799552983,52.1282170861099],[-2.34460819223255,52.132591209629005],[-2.35120759312719,52.1418510521826],[-2.35872218952823,52.151896252933],[-2.36523051035654,52.1510033450793],[-2.379321191331531,52.1551116070678],[-2.39397206754993,52.1467488926355],[-2.40018930490306,52.148257265750004],[-2.41519497909439,52.1452402389999],[-2.43517518126441,52.168216624862694],[-2.43299570861097,52.1720330908032],[-2.42201077245267,52.1724127850032],[-2.42546171345892,52.1770171047692],[-2.41506827532585,52.1832622192139],[-2.41914639096168,52.18797235607669],[-2.40871069003951,52.1963647991277],[-2.40786325038783,52.2027213075803],[-2.4004795838345,52.20171709168171],[-2.40265913517806,52.2071499025878],[-2.396094587417529,52.20568594054429],[-2.39289423536217,52.2103276595967],[-2.40157902849572,52.2154014400083],[-2.40404121472583,52.22124767916619],[-2.39764811409897,52.221676614654],[-2.39650885729616,52.2247641931309],[-2.38645588304253,52.2222334398563],[-2.385911286021249,52.2264508196019],[-2.39328767388101,52.2310008840654],[-2.4142085044249,52.231723182207],[-2.423065242412139,52.23726051263439],[-2.46485757968369,52.2343739358296],[-2.47470174108041,52.24135908689459],[-2.47364891299787,52.2507250036778],[-2.46809895102878,52.256038011508],[-2.42799581004903,52.2706099357052],[-2.45140272258487,52.2850827749681],[-2.48338215226372,52.2843754678783],[-2.492006483373149,52.27817600426479],[-2.50311281254,52.2774495632506],[-2.50446709503181,52.2744751025436],[-2.49359795970876,52.2640346229933],[-2.4956508287493,52.2569415191676],[-2.51551742049644,52.2560069292144],[-2.522571003242051,52.25098710751241],[-2.52581952783101,52.2480966409567],[-2.53167300470246,52.2532767669944],[-2.54794939609127,52.24969786360249],[-2.553109285559,52.252475250871306],[-2.56737087048255,52.2501410659947],[-2.57420551071335,52.2527313850736],[-2.57614059019871,52.2477528329121],[-2.58543860543555,52.2482977141682],[-2.596468218389699,52.2442578024091],[-2.62887068275684,52.2403491753744],[-2.63423315516055,52.2507549279248],[-2.628293948092491,52.2611596533262],[-2.6143949618484,52.2657160519958],[-2.60673037911732,52.2756651282892],[-2.59644925787423,52.2765932656216],[-2.59896717623292,52.2835417972728],[-2.61260658952522,52.2867604026889],[-2.618448896575201,52.2822284133703],[-2.626256370675089,52.2888967532025],[-2.63987718684578,52.2863754817816],[-2.64422080695338,52.29375013461589],[-2.65241877920918,52.2952469285754],[-2.66320577515059,52.3039371898238],[-2.63632527933551,52.308952697623],[-2.632445426364411,52.305640859397606],[-2.61803476082432,52.3069569825661],[-2.62807366571302,52.313435433486205],[-2.6239344865987,52.32139413673979],[-2.62940034592666,52.3207142363175],[-2.63690021640328,52.3244814320283],[-2.64101522057462,52.3328479886783],[-2.65559525372245,52.333139289619],[-2.65984894243727,52.3347625883593],[-2.655967152653119,52.3378391661004],[-2.660287875161091,52.341365321493306],[-2.669676175306721,52.3415587791608],[-2.6892857779749,52.3162017194976],[-2.67994467101041,52.3151995621502],[-2.67981117516044,52.312023092938006],[-2.71412333550734,52.3088570855132],[-2.72466779678728,52.3198485263309],[-2.737171922237171,52.319476187247],[-2.74591471721661,52.3266549762349],[-2.76523112442209,52.3334539142976],[-2.76698682979255,52.33611261750669],[-2.748379763147911,52.334902399963305],[-2.73787987485354,52.3427964213324],[-2.74117961570956,52.34972168676689],[-2.73276668080261,52.35553248815769],[-2.748617456869471,52.3590229622447],[-2.76144295248166,52.3594677531817],[-2.792420108018479,52.3568636039561],[-2.795623736166911,52.36043911614621],[-2.7921122328537,52.37453370023571],[-2.7986503774247,52.3726601094873],[-2.80738886498952,52.3759676643394],[-2.805432560640451,52.38825207095971]]]}},{"type":"Feature","properties":{"name":"Hertfordshire","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-0.47829846763004,51.85313650259181],[-0.471195676810699,51.84546786971771],[-0.479570821304971,51.8421443184688],[-0.490932895044853,51.8428193896854],[-0.491881849047484,51.8352784677103],[-0.501818268966651,51.8367948225647],[-0.506016779872407,51.8272998264938],[-0.511192917001904,51.8258936103662],[-0.501593732786462,51.82148699706589],[-0.502282758285977,51.81545869409139],[-0.519728847877412,51.8050953620297],[-0.524100219889923,51.80581119201871],[-0.543179757873722,51.81546351723589],[-0.54168481871377,51.8184447038958],[-0.553628614556977,51.826712674402],[-0.557137733245316,51.830966586363],[-0.560656237503438,51.830082630502],[-0.558348333792725,51.8247878582692],[-0.560787406154397,51.826382297368006],[-0.567144721879603,51.8198051028464],[-0.575170363479958,51.81881732597379],[-0.581825667306615,51.8069054436194],[-0.591654826308663,51.8081357910766],[-0.594832272868406,51.8140229730984],[-0.611869248475584,51.8120447782419],[-0.632939595714382,51.8199461874726],[-0.635948892023481,51.818020051884],[-0.647770441650684,51.813605794706],[-0.659031388891668,51.8154359423854],[-0.667214196976871,51.8158103335771],[-0.687053647139483,51.83911536359409],[-0.695451174124327,51.84111049210781],[-0.686767774211115,51.84924025451081],[-0.692311242384645,51.85704474531579],[-0.699777730404245,51.8580122332279],[-0.7070763034413,51.854414119908],[-0.710585534394999,51.85777864766721],[-0.720268145545602,51.8561471011597],[-0.722568308376872,51.8500453072874],[-0.731187841864694,51.8489705406749],[-0.736335413246888,51.8424063980913],[-0.745678020612612,51.8420936389668],[-0.723653476773253,51.8177730671437],[-0.719216744430734,51.8161378650891],[-0.709295276544129,51.8205395961038],[-0.701147559853478,51.8148625885959],[-0.682650033195759,51.7972095383621],[-0.682189889465158,51.7945841952136],[-0.690190999010662,51.79233921082721],[-0.681499831599607,51.78805913881689],[-0.676185728108665,51.7784643981323],[-0.673469490089942,51.768471739287506],[-0.643665829009842,51.754087278926],[-0.628487583161682,51.7546000043377],[-0.613766437742306,51.750913342212094],[-0.612935985356938,51.74742725606251],[-0.586379726976092,51.752115950395],[-0.582498323989586,51.7453260711751],[-0.572762931812711,51.7358638544685],[-0.563699987436117,51.739617341318805],[-0.56558297032842,51.736546153994],[-0.559245255678629,51.7373319209044],[-0.560646328420069,51.7340760129433],[-0.553720360510688,51.7340647307949],[-0.550082820807204,51.7305750653227],[-0.553596792664468,51.7284108013512],[-0.550413609644404,51.72304289025951],[-0.561099393103364,51.7180792836397],[-0.563147920499785,51.7116821487297],[-0.547668033138723,51.70318141446891],[-0.543217420102413,51.695135860069904],[-0.548696117291794,51.6826712819357],[-0.538889081532902,51.679834158485],[-0.5242727897625,51.6821126557481],[-0.524934113014587,51.6787210002338],[-0.51089720710158,51.67981721744031],[-0.505107856324304,51.6730768935581],[-0.514718484178302,51.665452870386],[-0.520994790005152,51.6680453786674],[-0.524254427397298,51.6579368917033],[-0.532626076017035,51.6630071884138],[-0.536891506831177,51.6606244728575],[-0.536666063805369,51.6523694496702],[-0.530927778365943,51.64913347458],[-0.537391593287301,51.6429069683246],[-0.539260817248429,51.63803939127659],[-0.534130552322406,51.6371508895353],[-0.530059300191249,51.6171511231726],[-0.522501789242093,51.6050615818205],[-0.517836757296159,51.6002495506482],[-0.500595886737316,51.5996898995638],[-0.496313359970916,51.6023984486726],[-0.499231538736378,51.6089281161288],[-0.495389391821044,51.6186875485239],[-0.50015459518905,51.6220683245259],[-0.499965055290516,51.6291733065649],[-0.497042456594896,51.6316977908827],[-0.459759477118413,51.6131422508396],[-0.457160195310364,51.6123020822686],[-0.440575301279442,51.6200732393013],[-0.41199138823261,51.6141856889359],[-0.404050154365865,51.6131839959912],[-0.403994456633449,51.613184059045],[-0.385871918947026,51.615820108280104],[-0.384572188415174,51.6161681211166],[-0.368174480274324,51.620652509242404],[-0.362621240927378,51.6235048820097],[-0.339858630239014,51.63073780641619],[-0.317549436837774,51.640216342336004],[-0.316672226651474,51.6405356329504],[-0.304455276938232,51.63635004858449],[-0.302620968997866,51.6362076906198],[-0.273713530385737,51.6386739655432],[-0.27312203907596,51.6411939601688],[-0.263272164999239,51.64483349962651],[-0.257354301474541,51.6418396413203],[-0.251557001565979,51.6479525884127],[-0.249348030054731,51.65605781271851],[-0.228919311402986,51.659975810306],[-0.226462691430813,51.6571618666928],[-0.207863695984533,51.6628611807608],[-0.211133866333014,51.6669549343179],[-0.199871677333062,51.6701702737025],[-0.191066699325158,51.6638967062225],[-0.182085377482676,51.6686040585302],[-0.176385932804326,51.67264498076181],[-0.172473161628764,51.6730913561043],[-0.163503164635797,51.68591699834371],[-0.163493271938224,51.6881150805638],[-0.149370126892843,51.68551835891131],[-0.118098711044608,51.6889625446564],[-0.10577913835527,51.69187564599321],[-0.083910020064384,51.689965004471404],[-0.062016734252041,51.6830080596294],[-0.048920429098712,51.6840471822187],[-0.033399956934476,51.6824948872414],[-0.011918676012088,51.6808778146802],[-0.018496089131454,51.69843419871891],[-0.019730428542926,51.703274299588],[-0.017578811796404,51.7074034457771],[-0.015499543584089,51.7153277430149],[-0.014120259234248,51.72312083434831],[-0.013747258980605,51.7354001862105],[-0.012980103073153,51.74275127571919],[-0.006233784241641,51.7417099416065],[0.001257385923966,51.7451364987515],[0.002914285707284,51.7537995881408],[0.00417058179519,51.75537164666339],[0.012992315920007,51.757465452581],[0.014029057812047,51.7643799998415],[0.026799442907943,51.7741799003898],[0.042313984564794,51.7751306848802],[0.057663539389391,51.7796739282513],[0.063683682157844,51.7839531642186],[0.08974893232899,51.7840367545037],[0.099254510765636,51.7832307529417],[0.107320535815107,51.7879397433753],[0.111153492352018,51.7884510274623],[0.132452338711685,51.795852539268],[0.146141158428203,51.796243762479],[0.150766868798829,51.7970495131105],[0.15830881878831,51.8135169974375],[0.16700844602648,51.81327963451591],[0.172583035411387,51.8163043896198],[0.173021847901914,51.818880743949],[0.164745952512054,51.8192303969598],[0.166251617449305,51.8221540085985],[0.16120891213553,51.8259473012118],[0.166123403041705,51.8307066245677],[0.161698085654579,51.8321342416399],[0.161819014612862,51.8407531855915],[0.16316419765316,51.844774046286894],[0.166804589716402,51.85073671806891],[0.173398424484968,51.8497697874131],[0.169470895796512,51.8560164273553],[0.17046768802496,51.86162214375441],[0.182740410238069,51.8650954669032],[0.186372028578445,51.8635136407276],[0.195594279900795,51.8680863196043],[0.190850587958479,51.8718347935335],[0.193409587892196,51.87325291769099],[0.176707291681664,51.88158451716221],[0.175984845569384,51.88729373735741],[0.183901307345926,51.8933671715309],[0.179348982528558,51.89555407671289],[0.157068536086734,51.8900680825199],[0.124761446710298,51.8845855310094],[0.121764510736949,51.9111951395593],[0.124860092767776,51.9235389535614],[0.120270455520974,51.92656851584271],[0.118012969198225,51.948067628931],[0.114736202129577,51.9558357273674],[0.10560990601909,51.9634863783744],[0.10701203141805,51.9718178552015],[0.097845429765067,51.977209836971994],[0.096460611163959,51.9843259691199],[0.076845278728772,51.9808121929925],[0.069061011450733,51.9840425617869],[0.074321848151726,52.0008609032232],[0.068127418901375,52.00578873916311],[0.052098379848679,52.024630783021806],[0.039849539461947,52.0532246291455],[0.007186278995233,52.049533111612895],[-0.001383047689061,52.051665179532996],[-0.012558732322164,52.0616420510436],[-0.024412376117604,52.0633159918567],[-0.035724638841093,52.0587923576566],[-0.054212163156385,52.046621802763],[-0.079088400269028,52.03788689882929],[-0.107694005461655,52.0283551804766],[-0.120998829974349,52.019521277353796],[-0.126567501937775,52.0209218759846],[-0.122338660710822,52.0296361154391],[-0.133729866748337,52.0462328527372],[-0.144576187175316,52.0469904651766],[-0.155121032648697,52.0530610998673],[-0.147505493490738,52.069403111962],[-0.157331873594096,52.0805235103049],[-0.164166052138528,52.07703547259041],[-0.172619414626835,52.0602099377647],[-0.194982619305265,52.0624150813563],[-0.219493434451981,52.03674125914831],[-0.201256006066088,52.0098246885529],[-0.213498072869146,52.0084509436565],[-0.236867969738207,51.9979471688387],[-0.244078670645728,51.9990232893037],[-0.247889109786431,51.9851729767287],[-0.257448532425214,51.98538588563851],[-0.260255094968933,51.97970481960609],[-0.27390055373757,51.9812095346546],[-0.272281412865576,51.9881356301887],[-0.283375312475573,51.9966603015254],[-0.283893437171196,52.00182026713691],[-0.300054242147805,52.0007805349847],[-0.295325513111954,51.99540425540099],[-0.306815355893463,51.9890689032727],[-0.311555453163235,51.982109914959295],[-0.338675386871316,51.9827546444479],[-0.358721683055515,51.9855463264559],[-0.367157519155375,51.98376097166851],[-0.363732328770167,51.97520920376421],[-0.350799424261708,51.972896936710804],[-0.349173618940447,51.963736946824795],[-0.350225341620276,51.9575781039653],[-0.372582345461213,51.9480188688508],[-0.382912026325528,51.9514137084508],[-0.378205738028609,51.9716357778397],[-0.380686423367772,51.9794323181689],[-0.39026599459086,51.9777284725129],[-0.393432815156759,51.9685769398775],[-0.399439484751453,51.967671399672405],[-0.405823940976724,51.9434310013028],[-0.402482260582949,51.933410181376196],[-0.405607109518841,51.9324543523464],[-0.389213632813862,51.9257808934839],[-0.383550653786287,51.9182721994392],[-0.385615555724027,51.91568039597941],[-0.378390186333564,51.901645698550304],[-0.37390926927827,51.895313977511705],[-0.365134446174951,51.8943776246514],[-0.354645697882236,51.8845473347135],[-0.3498989071936,51.8787082193461],[-0.354833888657067,51.8740145293011],[-0.352871725373492,51.8635431685598],[-0.339485896124555,51.8496055501941],[-0.35603050120907,51.8405132485432],[-0.363302563864236,51.8421051218226],[-0.364370661021056,51.8398913223753],[-0.368730269619423,51.831082987397394],[-0.373959116100986,51.8291906682165],[-0.40485880669367,51.8406074632762],[-0.421500810100557,51.85020522604991],[-0.425234924861339,51.8467206438445],[-0.438986392340041,51.8518351278902],[-0.447524508948031,51.8476015346548],[-0.45406309306899,51.8530325282195],[-0.46410445097099,51.8501473635275],[-0.470419996730907,51.8557101697987],[-0.47829846763004,51.85313650259181]]]}},{"type":"Feature","properties":{"name":"Isle of Wight","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-1.28745856317761,50.7338625513171],[-1.28776132678747,50.7341389729532],[-1.29385961796168,50.750585364924504],[-1.29383038663976,50.7507151461264],[-1.29253971576834,50.7564445780253],[-1.29218869371711,50.75800254963289],[-1.29274446613483,50.758347076336605],[-1.29537672870629,50.7599787410179],[-1.29543530883191,50.7600150519044],[-1.29993225634406,50.766953889152],[-1.30810271485037,50.76721642438731],[-1.31152320251206,50.76668747094401],[-1.31973951801585,50.7653914528598],[-1.32030539858751,50.765199806218405],[-1.32807907917599,50.7579520296461],[-1.34253342798235,50.7526405286357],[-1.34596264747159,50.7466238995409],[-1.34612189601508,50.746461003718004],[-1.35332978714586,50.7390865613447],[-1.4087784193846,50.72558580295339],[-1.40947513968831,50.7251221714358],[-1.4078078343547,50.7238131320132],[-1.40115555458431,50.7272152193661],[-1.3959829009903,50.7263224595595],[-1.40008250348922,50.724146739731],[-1.38614325931585,50.7226360458322],[-1.39277235648464,50.7227095164006],[-1.38971857547376,50.7200076082731],[-1.39521034127393,50.7197447034251],[-1.38924155968313,50.7166342788172],[-1.36992457213877,50.7198235952855],[-1.37932903706301,50.7174628261406],[-1.37667300499211,50.710646806712205],[-1.37952121530057,50.7163383097055],[-1.39226301873653,50.7155323902502],[-1.39742936720994,50.7191743866822],[-1.39989415065201,50.7165918040343],[-1.40394236051302,50.72084914095681],[-1.40918399744268,50.7160891424876],[-1.4087447148476,50.717924620916],[-1.40347938499462,50.7244571201787],[-1.40783576374849,50.7212575131702],[-1.4099015090023,50.716491936273904],[-1.40929456323759,50.71590822110299],[-1.39972328970796,50.7107770640176],[-1.40244361442605,50.709292826593106],[-1.41219349002374,50.7143415845175],[-1.4070236541655,50.708555884695606],[-1.41290007072832,50.7115098063723],[-1.41303627021256,50.7035437494286],[-1.41352937171056,50.7154509414464],[-1.41604754022863,50.714117519352904],[-1.41674834731595,50.7137464038895],[-1.41552221709986,50.7152384515567],[-1.41246284709713,50.71896084381461],[-1.41378584225005,50.7189431080068],[-1.41826181648191,50.71888299354719],[-1.41307372387168,50.7204622738359],[-1.41196104310128,50.72080093502319],[-1.41275785347375,50.72113608760311],[-1.42116745370044,50.72467269261671],[-1.41205712689479,50.72456041634881],[-1.41678849484339,50.7253236279887],[-1.42739150448695,50.72609909234001],[-1.43468636472833,50.7232910607637],[-1.47011842537386,50.709640387138606],[-1.47627447714229,50.7089184058411],[-1.48713261322507,50.7068166371214],[-1.49345418036404,50.706901743592],[-1.50391018583695,50.7056730436543],[-1.50100840509995,50.70172717092421],[-1.4967568814384,50.7027044841103],[-1.49743812617385,50.700207421183805],[-1.50004609967704,50.70071411793],[-1.50134966395385,50.7009673583392],[-1.4978537377953,50.6981186382259],[-1.49800863504577,50.6980098308875],[-1.50194540847583,50.695244204187],[-1.49905982817654,50.694218661581104],[-1.50509146036756,50.693667192672194],[-1.50388637833676,50.6951408328545],[-1.50802907347937,50.6960305703027],[-1.50340420336797,50.6968893369574],[-1.4998352834462,50.6979536873634],[-1.50226385442806,50.699536019344],[-1.50338109431954,50.6971215645013],[-1.50279396415519,50.7030208223633],[-1.50493588646663,50.7013321955096],[-1.50457226778353,50.70467641626541],[-1.50967039709627,50.70581495574041],[-1.50298577036132,50.7067351429787],[-1.52379131514764,50.7062618251926],[-1.53132129784528,50.702369761734],[-1.53205550950461,50.7019902017847],[-1.53560781796028,50.6920347914543],[-1.5375993989851,50.6915429902203],[-1.53820388613848,50.6897371049525],[-1.53825131911865,50.6895953961463],[-1.54785842448536,50.6790904420253],[-1.54799756229198,50.678732383379796],[-1.5482386854764,50.6786745304318],[-1.54897819354726,50.6778656674941],[-1.56957111162001,50.673519824402],[-1.56933009307736,50.665628126837106],[-1.56982476836565,50.6655562356646],[-1.56990976216507,50.665361957846],[-1.58654257502514,50.6631252727173],[-1.57890192134537,50.6601481825425],[-1.53242483613171,50.6667927362111],[-1.5110357638081,50.670003265925004],[-1.48518299364819,50.666947797523406],[-1.46416679624319,50.6524451155698],[-1.46396378689947,50.6523049585203],[-1.44726963068313,50.643488294007106],[-1.43568422703762,50.6401561875022],[-1.3925430738532,50.6277340089793],[-1.39032489163218,50.6271181582841],[-1.39026829356965,50.6270901685826],[-1.3892955552381,50.6267980066969],[-1.38404342543261,50.6234901059158],[-1.37457292420351,50.618018563347405],[-1.36689766421087,50.6135827618722],[-1.35225181481676,50.606240141666504],[-1.33946516395556,50.6017897890684],[-1.31816381545215,50.5894543087182],[-1.30349596566832,50.5764882673781],[-1.29964623292,50.5759040283086],[-1.26911735851344,50.57956585041],[-1.2690760342585,50.5795708007397],[-1.24988523038878,50.580881971823],[-1.20479800447761,50.5930448403964],[-1.19621872408103,50.595115376748],[-1.18260622067861,50.5983951860798],[-1.17523874383546,50.6068095545618],[-1.17521452245115,50.6068372109973],[-1.17336418154552,50.616765273164596],[-1.17070370281314,50.6312843259033],[-1.17069478022835,50.6313329963888],[-1.16901549994875,50.636842455836],[-1.16600294388732,50.6440041756621],[-1.16045416271274,50.6493369865208],[-1.16008372843054,50.6495545677361],[-1.15259660267148,50.6539515893431],[-1.15223177036097,50.6541658132501],[-1.15190026551263,50.6543604651408],[-1.13259640027527,50.6621032860936],[-1.10931640283207,50.6654559685738],[-1.10903186315255,50.6654969150818],[-1.10894638097618,50.6655092162356],[-1.09805247534114,50.665226816547],[-1.09763838860091,50.6658298790273],[-1.09470570418184,50.6719836608902],[-1.06983492669321,50.6838808691082],[-1.0706727907811,50.6879282420764],[-1.08191190068462,50.6941737077735],[-1.08376658055738,50.69461850950201],[-1.09362054763937,50.6958004583218],[-1.09485021420764,50.6944132668898],[-1.09551329097405,50.6936652074074],[-1.09830798399017,50.69051202516929],[-1.10826190426559,50.69351486798081],[-1.10797011947732,50.693851667325],[-1.10283024136577,50.6997835944806],[-1.1038876421946,50.69626197921921],[-1.09614291250082,50.6942314098287],[-1.09779900643064,50.70613519206259],[-1.10139366644967,50.7073796902709],[-1.10156348915349,50.7076694698711],[-1.10970780844137,50.7215633046281],[-1.13684937604013,50.7270442482198],[-1.13766277655994,50.7272797358151],[-1.14375395859592,50.7290429421512],[-1.14489925791069,50.7293320706307],[-1.15037252439377,50.7307135831761],[-1.15120799506012,50.730924435706],[-1.15570875123372,50.7320600796454],[-1.16017581176672,50.7331869893758],[-1.161825348704,50.7332095323061],[-1.17463083322513,50.7333838596972],[-1.18266124964742,50.73349320353261],[-1.21612333137367,50.7349054317795],[-1.21755528485512,50.7349656497475],[-1.21988791313422,50.7319163841482],[-1.22493994489551,50.7253106994155],[-1.22546148760161,50.7246286552369],[-1.22509348453052,50.725919618158905],[-1.22440702615044,50.728327565805905],[-1.22354249407228,50.7313598003205],[-1.2144299060791,50.737643627757],[-1.21415662674439,50.7381261900649],[-1.23860144693855,50.7437145729222],[-1.23864368242142,50.7437242228707],[-1.23922967723529,50.743858108784295],[-1.24477243527321,50.7490110256555],[-1.24546624161763,50.7496559345861],[-1.25514129269615,50.7545589684574],[-1.25661120327659,50.755063312432405],[-1.25683091761488,50.7553232575209],[-1.2571534494477,50.7557048415901],[-1.26790748521975,50.7629059055008],[-1.27581180180943,50.7657536896845],[-1.28014058559468,50.76545944429859],[-1.28833993342054,50.7629644126646],[-1.2904659050356,50.754353616646],[-1.29042659633379,50.7542207686293],[-1.28658256713662,50.741225754288294],[-1.28638294741161,50.7405506765125],[-1.2758753922053,50.7319370719099],[-1.27563520980144,50.7317242871908],[-1.27606852402623,50.7313555560956],[-1.28927552572651,50.70973962764641],[-1.28988576272063,50.708569713927204],[-1.29069620847157,50.707416259279206],[-1.2910865053432,50.706777926988494],[-1.29102720186447,50.7065579508787],[-1.28937649338021,50.700614927638],[-1.28940528123827,50.7004883420042],[-1.28970932023614,50.699144717098804],[-1.29002539481171,50.6977383738698],[-1.2904035127196,50.6987458883526],[-1.29147837979288,50.7015863641082],[-1.2915935863307,50.7018907975117],[-1.29221801179883,50.7055315445595],[-1.29097776317691,50.7087599860024],[-1.28292173108355,50.7297199510499],[-1.28745856317761,50.7338625513171]]]}},{"type":"Feature","properties":{"name":"Isles of Scilly","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-6.341260674615561,49.88234051497581],[-6.377922338911649,49.8958995646142],[-6.362613118486292,49.96517481451661],[-6.36215907972712,49.9654294807697],[-6.35935720316664,49.9667791703361],[-6.35896675310717,49.96692414432321],[-6.326641426048901,49.9747825225662],[-6.2943041391816,49.9797448100687],[-6.29227615930643,49.9799856595644],[-6.289366503888469,49.9788427124994],[-6.26594660821261,49.9675332068277],[-6.26157681308705,49.9628436928804],[-6.27593968083456,49.9208304288164],[-6.27917539616379,49.9150754201636],[-6.28716651362069,49.91026518794191],[-6.341260674615561,49.88234051497581]]]}},{"type":"Feature","properties":{"name":"Kent","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[0.050016528693635,51.1426500167773],[0.033598951563527,51.2143379727583],[0.042398883648016,51.2926788490678],[0.155875040956964,51.43087658324101],[0.2115688339007,51.475092673256306],[0.219202439132856,51.4796095648107],[0.744648772436859,51.4472930765206],[1.4249248328212,51.3937887726707],[1.44205295433473,51.387192179168],[1.44322864309293,51.38567912134051],[1.44466427426731,51.3838313812569],[1.44753399513297,51.3801374346298],[1.44958517398544,51.377496728661505],[1.40106443053318,51.1651813893069],[1.37957862132471,51.1421788484779],[0.978406567929974,50.9128729204317],[0.938298979658136,50.912319766616605],[0.936864576900918,50.9123592416335],[0.935261387054844,50.9125787325647],[0.854695883922141,50.92373060865971],[0.050016528693635,51.1426500167773]]]}},{"type":"Feature","properties":{"name":"Kingston upon Hull","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-0.303884442486736,53.7984698595482],[-0.316134326202857,53.813270167288195],[-0.348593373585229,53.8089006657477],[-0.353805596026338,53.80851662196161],[-0.364763189196869,53.8037136408573],[-0.359405407063181,53.793404012695206],[-0.365008472705997,53.7922867965144],[-0.392212775747927,53.7911336884853],[-0.390526712721295,53.78248803268729],[-0.389934289616069,53.7796027656321],[-0.387406817843695,53.7707417554902],[-0.39852824670961,53.7672143610081],[-0.403624478007081,53.7648975985075],[-0.408572498373573,53.7605884284947],[-0.418203810999879,53.760632345122],[-0.422341662667568,53.750561064046195],[-0.403644450199966,53.7500126942714],[-0.41359060236651,53.7404178496496],[-0.419807295074181,53.734344552024],[-0.418969672771267,53.7196149037518],[-0.396953642821273,53.723155160283],[-0.396704970782307,53.7231951071622],[-0.384620196542874,53.7243475896532],[-0.332635073170785,53.738290503106],[-0.330231957518233,53.7477711959483],[-0.329973183512103,53.7475229235611],[-0.32695976581487,53.74463155279361],[-0.331103560038016,53.73859399612591],[-0.331186162894152,53.73833943231241],[-0.331134797333452,53.7383471878208],[-0.308866879629072,53.7417071387361],[-0.307204937877199,53.7419577175076],[-0.273243784773328,53.7409107089215],[-0.250256331009953,53.7333188178797],[-0.244338267340975,53.7375000054326],[-0.243285082392321,53.7386735905174],[-0.247339075314873,53.7418202319898],[-0.241403486910475,53.75490878052399],[-0.253365502755924,53.764553672752],[-0.254356472211789,53.7689377036641],[-0.252324831097553,53.781328333266],[-0.265658631786083,53.7823543175794],[-0.268325424458145,53.7850463724716],[-0.278250259007925,53.782060187612494],[-0.294388894744435,53.7929939657231],[-0.303884442486736,53.7984698595482]]]}},{"type":"Feature","properties":{"name":"Lancashire","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-3.04669858190109,53.5429583288114],[-3.05684992434024,53.7765741399837],[-3.050147900051059,53.9192152255226],[-2.83721686204006,54.1741724007201],[-2.81633331257252,54.18980961317149],[-2.799229702829091,54.1977319354818],[-2.45958529173133,54.2395684104832],[-2.11309296486617,53.915439302302005],[-2.04613032171259,53.8501412464577],[-2.04692463706631,53.8295102819506],[-2.16113585516063,53.6422484499288],[-2.25791657220822,53.6164657412519],[-2.82557439672137,53.48278168851281],[-2.84442114863858,53.4841303894131],[-2.97599365857425,53.5152910647451],[-3.03868418007969,53.5382992747303],[-3.04669858190109,53.5429583288114]]]}},{"type":"Feature","properties":{"name":"Leicester","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-1.17073705324324,52.6835623050385],[-1.17908579422551,52.6763977961205],[-1.17672479174943,52.66430599489869],[-1.18528923933493,52.6606440961908],[-1.18375440059207,52.650648360107496],[-1.19065594938898,52.6403938594434],[-1.19878730478176,52.6414716495702],[-1.20900491676431,52.6420917971444],[-1.21566919890431,52.6346878749785],[-1.20546527854315,52.6288726540376],[-1.20539540006651,52.6288164638234],[-1.20124422184056,52.62733214419331],[-1.17610408195908,52.61805664001891],[-1.16404746597888,52.60945324725769],[-1.17104522748136,52.6058182579667],[-1.16536981786299,52.60304733316881],[-1.16798443106576,52.6014258602767],[-1.1721252724006,52.5918257519043],[-1.15926696292557,52.5912398769588],[-1.15560629420498,52.5871530850172],[-1.15932881188333,52.5816660384859],[-1.14949577431606,52.5810241157686],[-1.14361854307226,52.5880254265962],[-1.12644146501897,52.5929237186566],[-1.12647677449355,52.5956794347884],[-1.11288642039182,52.5969512711057],[-1.10365075505458,52.595911794444],[-1.09536832303321,52.6073920912593],[-1.09663360912744,52.6163791921899],[-1.09323344849421,52.6161662136837],[-1.07433826394006,52.6134450408114],[-1.07048970747673,52.6180668313852],[-1.05524525065734,52.6248378975815],[-1.05618322392488,52.63219289067099],[-1.04696224710518,52.6346200812552],[-1.05096753699945,52.6439398215765],[-1.04861278988328,52.65499595639349],[-1.05894521556835,52.6564260394126],[-1.05674450102379,52.6638317829838],[-1.06445313145154,52.6647300168017],[-1.0750788495323,52.6696256375045],[-1.09782123381993,52.670082312518495],[-1.11465233179301,52.6727075487434],[-1.11881182169027,52.673186318861006],[-1.12908861777657,52.6653896805564],[-1.13771269460873,52.67538047885],[-1.14077945954512,52.6843864679349],[-1.14751834937643,52.6906624086312],[-1.152375829419,52.6884380717705],[-1.15725203286727,52.6915230260726],[-1.17073705324324,52.6835623050385]]]}},{"type":"Feature","properties":{"name":"Leicestershire","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-1.30933158402117,52.8733548309291],[-1.31930687515051,52.8728694279118],[-1.32037894510166,52.8690926805089],[-1.3388815845341,52.8646105746946],[-1.34486272111745,52.867532885588105],[-1.34340389046458,52.8627945596902],[-1.35189518511588,52.857638858182305],[-1.35100006081424,52.8534152285957],[-1.35805633302493,52.8560883229882],[-1.36553726594229,52.851573516493],[-1.38112488737048,52.846048816540105],[-1.38821290604954,52.8394035046651],[-1.39432284230238,52.83677287261939],[-1.38793618388406,52.8330976564398],[-1.39779374630728,52.82352276736619],[-1.41770445879577,52.8016155011951],[-1.44356155232193,52.8027441687288],[-1.44189018217823,52.7935329073834],[-1.45487275143793,52.78898680424889],[-1.46280774702283,52.78679259383819],[-1.45764759025668,52.784401396906695],[-1.45949796627851,52.7770832796572],[-1.45588204268026,52.7770946625567],[-1.46645195385337,52.7679723007631],[-1.47846241554029,52.7636881186274],[-1.49242760083499,52.759452519476206],[-1.49575676445072,52.7598909757621],[-1.50394313837263,52.7674623433413],[-1.52534823948472,52.7655279888722],[-1.52958418964007,52.7610939575467],[-1.53961993387858,52.76008597238631],[-1.54744213285114,52.7641344065723],[-1.55484256321815,52.762021018432705],[-1.56249262187869,52.75058683697941],[-1.55617529201148,52.7398144076072],[-1.54533394631063,52.7329214661393],[-1.54531749224936,52.728236973920005],[-1.55024133352837,52.72561899775759],[-1.5500801007923,52.7202785225279],[-1.56692999849833,52.710070464098706],[-1.57711928771893,52.7117631870917],[-1.59754104512465,52.7004217669502],[-1.58628530395622,52.69449844858999],[-1.5896451852037,52.68726080817841],[-1.57760844633783,52.6785784843171],[-1.569106299685,52.67966717445591],[-1.56647470269796,52.6776015987077],[-1.57042771087891,52.6758431675984],[-1.55177141577137,52.6674551064611],[-1.54728936256915,52.6559734205933],[-1.54242198174715,52.653626437163794],[-1.54280378580269,52.647620071576604],[-1.55604679633242,52.63827620111],[-1.57100016052294,52.63611990287511],[-1.56461026146334,52.6312420938326],[-1.56758317069744,52.62264179670439],[-1.55445434227788,52.61476141512681],[-1.56075676843526,52.5961562428648],[-1.54750728292123,52.5919467122752],[-1.5271552279268,52.5827378316751],[-1.52474703178799,52.573798641390106],[-1.52286777646333,52.5706005994426],[-1.50270561859239,52.5644709227619],[-1.48303467600142,52.5586832785554],[-1.45999402369308,52.551589927318204],[-1.42408394807535,52.53958834920759],[-1.41895772172901,52.537768003010704],[-1.41734425186395,52.5344553070612],[-1.39512719080899,52.5270459228751],[-1.32508812135485,52.50104232454121],[-1.30594754120562,52.493395280560506],[-1.25783058976019,52.4538925815372],[-1.23675360283845,52.436039495344204],[-1.23644413534428,52.435727332155],[-1.20161328230779,52.3967317959132],[-1.18938166251736,52.3963824115843],[-1.18399208837492,52.392171077156],[-1.1642206336604,52.39920366038821],[-1.15658234177901,52.4000511640659],[-1.14946966184269,52.39700821177549],[-1.13853571759182,52.4020437009117],[-1.13439150656399,52.4123012667109],[-1.12570336627157,52.417697187557],[-1.10196794853665,52.42483111938299],[-1.09335936923599,52.427682727705],[-1.09088423067457,52.43312263350751],[-1.07939151039954,52.4363340665716],[-1.06932517287747,52.43354638036529],[-1.05990322048017,52.42347897963051],[-1.04986022467205,52.4222623625444],[-1.04949662165329,52.4258402916163],[-1.03427367925882,52.4362852730348],[-1.03513382541734,52.4432463627922],[-1.04451053126691,52.4457480943696],[-1.02774073530018,52.4585046019945],[-1.00563676185312,52.46502592543289],[-1.00069265209655,52.470940417762904],[-0.976225393077406,52.4706701580952],[-0.96784897538398,52.4772098241986],[-0.947088989618786,52.4756999860989],[-0.942191918774036,52.467772522530794],[-0.916746124086227,52.4626461262568],[-0.904577930628361,52.4628792466615],[-0.9012806064268,52.4597558601064],[-0.889556847841394,52.470440531953],[-0.882361450241335,52.4714057488025],[-0.884534583724469,52.4813068147493],[-0.896921169454828,52.48550721462419],[-0.895601523154075,52.49204439390041],[-0.883721468945801,52.49226293612039],[-0.878965689011096,52.49793675787429],[-0.883408901784581,52.51380805502761],[-0.872610669221736,52.51839963372629],[-0.87099333364688,52.5247520456339],[-0.863299651840701,52.528333071686],[-0.84838759800829,52.5202622182414],[-0.845299173629488,52.5216958124708],[-0.845345353610835,52.519366903031404],[-0.830626939482888,52.5194589021784],[-0.820121757601639,52.5155410008461],[-0.812590397772968,52.5159521209528],[-0.81086689992306,52.5193673858818],[-0.796160634816982,52.516365134586906],[-0.787781835781209,52.5137117785551],[-0.774866784894676,52.5182763361657],[-0.756156309515431,52.51099471294071],[-0.746841685281296,52.51686619744961],[-0.726833413245234,52.5231636181507],[-0.715759937485516,52.5223443900515],[-0.713658337963826,52.524963968358],[-0.722554436267986,52.52677932868961],[-0.729952347927434,52.5329798490324],[-0.728540502218293,52.5358210029421],[-0.742206489930267,52.5394859770229],[-0.738864421751923,52.54888333797629],[-0.761789534693621,52.5691055542725],[-0.764790844915657,52.5811948855305],[-0.773907452392892,52.584375167411],[-0.787053143215661,52.59624840357641],[-0.801298368216512,52.597354452095],[-0.816694743227341,52.5935696799243],[-0.820950352829114,52.596454861719],[-0.818826550628407,52.6106573302521],[-0.805824670618499,52.6206878783449],[-0.810958004493582,52.62598444888731],[-0.801751683960027,52.6388395563642],[-0.809900777789424,52.6403025949092],[-0.808693242414139,52.6461260660919],[-0.792918228652028,52.6596833292643],[-0.790139768330246,52.6671845542484],[-0.782194609134004,52.669139587599],[-0.78322297955517,52.6724729324967],[-0.783992163181823,52.6770002226052],[-0.785804002353892,52.6942485775648],[-0.795744216907142,52.6968501265908],[-0.796342265966206,52.7036267555474],[-0.802427646722293,52.7032649588817],[-0.800234447564202,52.7077980700882],[-0.821752779818314,52.715678329360806],[-0.817398678851941,52.7251066456863],[-0.801191382846264,52.7367425887629],[-0.780672624379376,52.74057541751791],[-0.776484384415236,52.74393419175609],[-0.767653503615196,52.7436818157915],[-0.76472564398101,52.73919405771869],[-0.757978004873723,52.7397358371621],[-0.753319196793094,52.7365745594962],[-0.720210038908914,52.740962468142705],[-0.718197076373686,52.7447975972219],[-0.707544362547666,52.7455944259025],[-0.696156563808286,52.746528893913],[-0.696966794821744,52.7492204267694],[-0.684351040443784,52.7531096847561],[-0.684428783349143,52.7564800978882],[-0.671321175746437,52.7564112872532],[-0.664101453534753,52.756710460936],[-0.675659473943573,52.7775400226541],[-0.674109433892729,52.7877680256509],[-0.683106687063742,52.7946828754769],[-0.682041197399814,52.8117955933358],[-0.692399609579355,52.82178059160321],[-0.70583123012461,52.8380525274944],[-0.733673205773136,52.8669222034854],[-0.742722542356135,52.8831571783624],[-0.766592056271416,52.8867983634491],[-0.758468269907546,52.9004900497835],[-0.763966643031735,52.9031418376743],[-0.773801109125731,52.902536212378],[-0.774542835459734,52.9073426700269],[-0.76748321983487,52.9224644809994],[-0.762918863545684,52.92379608919061],[-0.766106812740015,52.9280256610769],[-0.755313033756398,52.9513786757836],[-0.778437336497995,52.959313820404],[-0.778278647253454,52.97692337951],[-0.796150034418614,52.9767315027749],[-0.809812386920476,52.9659796025487],[-0.812850938336058,52.9574642126954],[-0.820021885123097,52.9604644294128],[-0.833908629870818,52.945880503283206],[-0.822811634981401,52.94370708157731],[-0.834889388398823,52.939345532405305],[-0.841372678574138,52.928382892568],[-0.862893425264728,52.913113845254806],[-0.85763357391753,52.9056423200794],[-0.885480648270317,52.892621725218206],[-0.911976840653049,52.8835610855452],[-0.916924921846032,52.8789315831176],[-0.940573916542046,52.8768561313973],[-0.928121482481403,52.8660833095459],[-0.940827057037892,52.8615639322597],[-0.941175244269369,52.8539598331914],[-0.952771633929888,52.85040917099929],[-0.960851701085498,52.8433566644294],[-0.970612529973507,52.8449852738871],[-0.977074582062935,52.8407376633052],[-0.975051215913303,52.8292284274244],[-0.989003720968529,52.8182501371527],[-0.995675442788432,52.8212703496169],[-1.02193315697324,52.8220518883665],[-1.03628929191991,52.8158772842477],[-1.03669547443137,52.8159651527506],[-1.04976617823858,52.8134480920113],[-1.0592050477107,52.8172496258402],[-1.07173821252654,52.8140112117332],[-1.06881230510079,52.8212360453904],[-1.07443530143318,52.8247266344066],[-1.09148493631761,52.8200801962469],[-1.09419106682462,52.821968935189496],[-1.11916312408012,52.8191505334934],[-1.12124801302487,52.8123661253857],[-1.13089307263852,52.8058269116307],[-1.14396361539544,52.8038765836897],[-1.16187786123771,52.8063937503018],[-1.17667671245216,52.8026334424616],[-1.19613782241416,52.7901649582826],[-1.20028897382006,52.7937878733869],[-1.2112397806418,52.794929886414096],[-1.22195327821202,52.7917687287077],[-1.22840698829114,52.79310798596901],[-1.23187054060526,52.8006413007809],[-1.24536739827731,52.80616294345911],[-1.25536431835604,52.80415201304041],[-1.26192675778543,52.8104533294567],[-1.26094180629794,52.8179778242281],[-1.27003719602656,52.8233172125951],[-1.27436347501172,52.8361295182939],[-1.26693362244919,52.8374702030258],[-1.26907219041563,52.8403339522208],[-1.26621223436405,52.842753437571304],[-1.27220553440137,52.849439825366794],[-1.26456648187523,52.858368864858306],[-1.27528282314089,52.8603800401658],[-1.26788907937114,52.8733686514596],[-1.27842748173134,52.875593223358706],[-1.28948669216352,52.8724577285142],[-1.30599463322981,52.8770804463604],[-1.30933158402117,52.8733548309291]],[[-1.14361854307226,52.5880254265962],[-1.14949577431606,52.5810241157686],[-1.15932881188333,52.5816660384859],[-1.15560629420498,52.5871530850172],[-1.15926696292557,52.5912398769588],[-1.1721252724006,52.5918257519043],[-1.16798443106576,52.6014258602767],[-1.16536981786299,52.60304733316881],[-1.17104522748136,52.6058182579667],[-1.16404746597888,52.60945324725769],[-1.17610408195908,52.61805664001891],[-1.20124422184056,52.62733214419331],[-1.20539540006651,52.6288164638234],[-1.20546527854315,52.6288726540376],[-1.21566919890431,52.6346878749785],[-1.20900491676431,52.6420917971444],[-1.19878730478176,52.6414716495702],[-1.19065594938898,52.6403938594434],[-1.18375440059207,52.650648360107496],[-1.18528923933493,52.6606440961908],[-1.17672479174943,52.66430599489869],[-1.17908579422551,52.6763977961205],[-1.17073705324324,52.6835623050385],[-1.15725203286727,52.6915230260726],[-1.152375829419,52.6884380717705],[-1.14751834937643,52.6906624086312],[-1.14077945954512,52.6843864679349],[-1.13771269460873,52.67538047885],[-1.12908861777657,52.6653896805564],[-1.11881182169027,52.673186318861006],[-1.11465233179301,52.6727075487434],[-1.09782123381993,52.670082312518495],[-1.0750788495323,52.6696256375045],[-1.06445313145154,52.6647300168017],[-1.05674450102379,52.6638317829838],[-1.05894521556835,52.6564260394126],[-1.04861278988328,52.65499595639349],[-1.05096753699945,52.6439398215765],[-1.04696224710518,52.6346200812552],[-1.05618322392488,52.63219289067099],[-1.05524525065734,52.6248378975815],[-1.07048970747673,52.6180668313852],[-1.07433826394006,52.6134450408114],[-1.09323344849421,52.6161662136837],[-1.09663360912744,52.6163791921899],[-1.09536832303321,52.6073920912593],[-1.10365075505458,52.595911794444],[-1.11288642039182,52.5969512711057],[-1.12647677449355,52.5956794347884],[-1.12644146501897,52.5929237186566],[-1.14361854307226,52.5880254265962]]]}},{"type":"Feature","properties":{"name":"Lincolnshire","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-0.722597608787722,53.059922188952],[-0.73107451400749,53.0543457343132],[-0.749554900937766,53.0551098447195],[-0.753330872400811,53.0482422739359],[-0.760826457019771,53.02941033915871],[-0.776672919807498,53.024711127449905],[-0.788413809258192,53.0258533556871],[-0.795824908778034,53.0105980780874],[-0.804273711459655,53.0122456805369],[-0.800189486885073,53.0021937312509],[-0.777554194191861,52.9838066699412],[-0.778278647253454,52.97692337951],[-0.778437336497995,52.959313820404],[-0.755313033756398,52.9513786757836],[-0.766106812740015,52.9280256610769],[-0.762918863545684,52.92379608919061],[-0.76748321983487,52.9224644809994],[-0.774542835459734,52.9073426700269],[-0.773801109125731,52.902536212378],[-0.763966643031735,52.9031418376743],[-0.758468269907546,52.9004900497835],[-0.766592056271416,52.8867983634491],[-0.742722542356135,52.8831571783624],[-0.733673205773136,52.8669222034854],[-0.70583123012461,52.8380525274944],[-0.692399609579355,52.82178059160321],[-0.682041197399814,52.8117955933358],[-0.683106687063742,52.7946828754769],[-0.674109433892729,52.7877680256509],[-0.675659473943573,52.7775400226541],[-0.664101453534753,52.756710460936],[-0.608593611318584,52.75971343620051],[-0.6054438425778,52.750492944417694],[-0.5895658127116,52.7537745674077],[-0.572636470370485,52.7531090381208],[-0.566110752939568,52.7449876737797],[-0.560034137998978,52.7454723070414],[-0.539974276076003,52.7384017547715],[-0.542433641184147,52.723281449438495],[-0.512641138656786,52.71968043026921],[-0.505721256322316,52.71360493563069],[-0.49453090710973,52.7096532797771],[-0.451092101190137,52.7095802666596],[-0.444722185366354,52.70617298806701],[-0.430443229209799,52.7054219474813],[-0.432893622745984,52.6862565605954],[-0.461628727605691,52.6690615420785],[-0.483879517324992,52.6654535675629],[-0.494711775021688,52.664632363367],[-0.49386592990527,52.660716896277705],[-0.50667432122478,52.6595259212941],[-0.519017410629439,52.66652631089761],[-0.523586001633851,52.66523372024789],[-0.495025802128916,52.6402363852471],[-0.494773452953128,52.6403140726876],[-0.484320104749261,52.6461290847593],[-0.475244651771167,52.6450578153139],[-0.475831476553135,52.6487147491004],[-0.467636162684949,52.649899198870294],[-0.453036205294368,52.649245495696],[-0.45047612776816,52.6541283428577],[-0.417499669302443,52.6467731162252],[-0.362807605045879,52.660106146968104],[-0.359424307099361,52.6600297111773],[-0.3399513291303,52.666066472699804],[-0.335037147761973,52.6748659736262],[-0.309971999601339,52.6734783337249],[-0.279083338474977,52.6660041709845],[-0.258664797827536,52.6516453733237],[-0.224498479882849,52.6654635657588],[-0.212501332962663,52.6666794930237],[-0.206037616936727,52.6680733124595],[-0.192867813968712,52.652438511053],[-0.180020104975691,52.6605611585471],[-0.14106199482318,52.6515074247825],[-0.139501708622985,52.6548617585846],[-0.102195958212229,52.6722061953853],[-0.08783701682411,52.6667802663867],[-0.074610880584377,52.6720740979517],[-0.065445389582436,52.6719958320249],[-0.063785180485854,52.6752243731439],[-0.058023707720777,52.6740916470594],[-0.044925454984588,52.6691900703945],[-0.032102883694938,52.6653607087669],[-0.031270683265058,52.66153274398539],[0.021500352427817,52.66488728846459],[0.048012878520151,52.68104979003319],[0.044149475987283,52.7143823496307],[0.048018423926677,52.71878510693351],[0.063904199867696,52.7274361166459],[0.088984857202413,52.7236759172043],[0.098788989899149,52.7303403160033],[0.113685341276425,52.7299901125966],[0.132975309366633,52.7393044772068],[0.170180985553627,52.739894147841],[0.171626068420179,52.73803170247571],[0.186323197484379,52.7353486313374],[0.225738496870857,52.7564144042167],[0.272208555754368,52.772806361510106],[0.245084460578009,52.78452380680331],[0.251998070308398,52.7925634082965],[0.260905158553722,52.7960563918317],[0.253178593803342,52.7973551865719],[0.262704686382168,52.8036075807707],[0.268807332778324,52.8158366875915],[0.260734529109711,52.8152832181949],[0.245249322896739,52.8221806026798],[0.234338101479471,52.8233314960428],[0.216813149561601,52.8208834007087],[0.214905639995518,52.8226291982523],[0.209444563137556,52.8195182571073],[0.210926731243974,52.82187580851521],[0.215079923686474,52.82848039296971],[0.214598161482535,52.8288246727322],[0.201273942588601,52.8383436124769],[0.192806516584825,52.8523273133769],[0.185246737591413,52.8557018659285],[0.176331510149807,52.874116224234],[0.159371809046963,52.8803133644199],[0.151318472156955,52.8798732392945],[0.150349936678985,52.8822391678365],[0.150286836905936,52.8823932995595],[0.149768367248977,52.8821138082788],[0.139149628161661,52.87638905329921],[0.135877444122425,52.8746244653342],[0.145693278395232,52.8812353138279],[0.146809608141591,52.8819868015041],[0.145014386349435,52.8850924735135],[0.116162412281421,52.8936778153379],[0.088382080544697,52.8951252729192],[0.085911831084672,52.8998467696848],[0.079872721755093,52.898647111452505],[0.076990520452337,52.8980744354282],[0.079892290540888,52.8990555548308],[0.082558272842741,52.899956849856004],[0.079973297287004,52.9007461865708],[0.071940383799853,52.90319854340521],[0.07337774271858,52.90608484195601],[0.056376260184746,52.9033926270039],[0.069157797580135,52.908215533813],[0.065459314338301,52.9120965969175],[0.068550856517683,52.9187349195823],[0.032522400245401,52.9001925810932],[0.028061490673085,52.8990557735347],[0.027124639557576,52.898493821046706],[0.027997239726698,52.8990393978882],[0.009285122029677,52.894268352171906],[0.034652181924986,52.9033912828658],[0.020841767853439,52.9040647482769],[0.035628517255507,52.903823500553806],[0.036066791811337,52.904083770815106],[0.035834851286658,52.9133526305305],[0.038379435795133,52.9058689034834],[0.053171754519712,52.9158791801636],[0.049918921724726,52.9164137195058],[0.049473323784426,52.9164869373474],[0.049430372301006,52.916493994819106],[0.045061259148111,52.922702368602195],[0.044527508760304,52.923832772784905],[0.042643370065057,52.927822597850195],[0.051675068705923,52.9171952464905],[0.076505089631619,52.9314509423369],[0.076267828212891,52.9315566620796],[0.076044580547507,52.931650338401],[0.056464282943832,52.9301250531482],[0.074067460281771,52.932493594546],[0.07902888425842,52.93398338546869],[0.079005704558193,52.9392145178969],[0.078993245907492,52.9420274171446],[0.082134049032381,52.9458160395355],[0.093437171123673,52.9594442530928],[0.106720637223563,52.96641332340631],[0.151425050200805,53.0081071211682],[0.163108315222266,53.01312653870001],[0.199579669854424,53.0326490384572],[0.239196633060485,53.0459464174134],[0.265921065017401,53.061085201108604],[0.266347472165446,53.06132661396129],[0.294455213908171,53.0804082575504],[0.31567149310597,53.0887113690986],[0.313873095746664,53.0916847534187],[0.311295104862479,53.09486020429291],[0.319268976243647,53.0914025355985],[0.318570590231509,53.092135413665495],[0.326291631890571,53.0925116380745],[0.323682968874766,53.09119144844141],[0.330159815418528,53.0904614789341],[0.332372870503056,53.0866975504707],[0.333032535462736,53.087711697961005],[0.337337298084521,53.0943283966759],[0.337434160673566,53.094477254876104],[0.338917695390133,53.1017892761356],[0.348210789726189,53.10918433799261],[0.348133250407928,53.1140276818955],[0.348025421237048,53.12076323097621],[0.348041239907265,53.12101228798671],[0.349538305649106,53.1445590454438],[0.349562803551064,53.14478034484511],[0.352564087677102,53.1718766113054],[0.35274439664502,53.1730651167416],[0.355627376907466,53.1920584284764],[0.347399414366985,53.2083587327858],[0.347014557630581,53.209564897747704],[0.337184186535268,53.2403514773907],[0.322179964590588,53.26647105978431],[0.321897176885143,53.266827969039],[0.300050545092329,53.2943813076973],[0.300027852735005,53.2944099080999],[0.299739622757998,53.2947902763692],[0.281294844942021,53.319320413506595],[0.280622450409495,53.3202669343032],[0.243668256790191,53.3722173826536],[0.243584922029322,53.3724015948459],[0.234613116265788,53.392224709481],[0.231274589437193,53.3906230277743],[0.227040522221066,53.3966672539311],[0.228665828837893,53.40148995027491],[0.23285478022409,53.39742440819901],[0.228930969471723,53.402093868794104],[0.22853968605841,53.4025594460561],[0.217664700271258,53.4134156201659],[0.21458770574022,53.4096554407938],[0.208109331161369,53.4105108639546],[0.212043633014834,53.4159832812592],[0.206451293512394,53.40998954839421],[0.207627918083997,53.4133022891977],[0.20380598903533,53.4119677305331],[0.208506792611846,53.4155974894653],[0.201369387365113,53.4151646999492],[0.210577797718783,53.41696881148211],[0.189536114641344,53.4173197640094],[0.210590504431269,53.4173290672203],[0.204811531203374,53.4182594731646],[0.212471923780209,53.42139383727201],[0.20436375147295,53.4299704706189],[0.194774514410723,53.429998825636005],[0.187804612702328,53.4377082520006],[0.190172460422987,53.4402747123964],[0.200407582640514,53.4368482265334],[0.193845247579647,53.442853181347004],[0.185045514342218,53.4435044590526],[0.183793440587882,53.4479541716937],[0.191098184991299,53.4498971485954],[0.182053750963095,53.45250363606869],[0.179528725718248,53.45843201787821],[0.185024491088223,53.457034311632206],[0.172913893255748,53.4670411493384],[0.178618518718068,53.464840707671705],[0.172089203724995,53.4719306903898],[0.166755264255973,53.4710485333844],[0.159396626064545,53.47722165053969],[0.157359154015883,53.4789304827321],[0.158196263251029,53.4813202314211],[0.167556189709064,53.4770735622143],[0.168164852774028,53.47679735530971],[0.167883412952313,53.477067612976],[0.153988692114059,53.49040526844829],[0.147537042817011,53.4941148267881],[0.14417974834571,53.492743013756],[0.148133891617855,53.4877858250262],[0.143472570355748,53.481825500955],[0.1300896146286,53.4840364260287],[0.127572034083174,53.4905038122357],[0.132042478097478,53.4964727096362],[0.136308052010239,53.4956988571327],[0.125807525632776,53.4996251792121],[0.121800008110846,53.4981492205864],[0.121349290726328,53.5007787627524],[0.109384344478106,53.504118407712404],[0.10878651191317,53.50428522878509],[0.109362198920338,53.503671853970296],[0.117913519959526,53.4945583323976],[0.11237910146627,53.4911600846785],[0.115847129063787,53.489751959713],[0.110035650252343,53.4894421023669],[0.12153020351242,53.4838902855225],[0.108670911901127,53.4897278401616],[0.104190003288958,53.4917612787592],[0.108651528105328,53.48933674430701],[0.118779556910812,53.4838312201266],[0.108557616148482,53.4874417725564],[0.108467723375028,53.487473517508406],[0.107587440476716,53.4854847616431],[0.105675054779581,53.4885984656256],[0.105056725578546,53.4878639254581],[0.104907796849098,53.4877453112051],[0.102838149295508,53.4915558360994],[0.099306606676371,53.4897030704904],[0.101886490556781,53.4922180701656],[0.097246620627131,53.4882801805637],[0.092570112565631,53.4891865754296],[0.101770960701664,53.4927783809474],[0.096544594077181,53.4913167313446],[0.095758321690217,53.4947242890296],[0.090004253575385,53.4926433805033],[0.093128825779778,53.4940161251402],[0.085073948741631,53.4969387311944],[0.084995870486466,53.496967055967005],[0.078280716789168,53.5073100061695],[0.083762789584317,53.51177517493569],[0.089674848779942,53.5106056808732],[0.084999673602806,53.5163573925865],[0.079458965069143,53.51665711608311],[0.082490924619516,53.5126892025542],[0.077805459543145,53.5112532424887],[0.070570483898375,53.513788129332504],[0.06992504066386,53.5175670232681],[0.056576922143064,53.5212721279288],[0.056345995723368,53.5191517979704],[0.037764221072505,53.526719590590496],[0.050889290148134,53.5194217317513],[0.047383350405235,53.514659666599705],[0.057491713852242,53.5177340984069],[0.051403564910336,53.5143578618169],[0.061246511594742,53.514323321686405],[0.052377833873212,53.5139186150515],[0.052317373115179,53.5136661226986],[0.04954070890491,53.5118231960762],[0.038273129952435,53.513839994559206],[0.039386068030926,53.511585522935796],[0.032391075234767,53.5179443434054],[0.021979692320174,53.5199035936093],[0.017274432935263,53.5253599622783],[0.01642149026086,53.52632246247],[0.0053664526281,53.5196745978325],[-0.017430291488593,53.5150670085555],[-0.019548140992998,53.517975289758006],[-0.028638690535161,53.517337890582205],[-0.039600203026664,53.513116555071896],[-0.046613538113753,53.52009873027211],[-0.060544894312124,53.5197491181326],[-0.067095981129414,53.51683822174999],[-0.075262003890499,53.489335739927206],[-0.095488450310831,53.4859889965573],[-0.089803735537529,53.4776824153005],[-0.10782063241139,53.4698627577246],[-0.082209345071156,53.4511510063818],[-0.120343715760136,53.43356492337189],[-0.122786056566,53.437345839774],[-0.131879272038797,53.4359393973431],[-0.134248023731181,53.4407383542197],[-0.144500351665103,53.4409034035166],[-0.149227746736442,53.4466996653901],[-0.158507673042806,53.4615836699533],[-0.153680016923717,53.4656777580012],[-0.181804717740498,53.468649412252404],[-0.188565229273785,53.4845380584939],[-0.210604976147154,53.4862884751414],[-0.204086448790055,53.5117673428116],[-0.213624092361678,53.5263590362305],[-0.210589579218055,53.5317064650029],[-0.219879989463282,53.5326100488044],[-0.187529353437806,53.56361276652321],[-0.195185374970214,53.5716193575954],[-0.222558901329779,53.5680169282635],[-0.234668675193634,53.586250419398],[-0.239163914049111,53.5881621122746],[-0.251395553409818,53.584653076988],[-0.24847604907361,53.5936636925887],[-0.254473495982278,53.592488267852104],[-0.259360321014557,53.59696968284231],[-0.283038930960544,53.6044969359024],[-0.281194446717386,53.60626299807361],[-0.29211512919743,53.6132674312187],[-0.298237327255288,53.6125616967869],[-0.300930360808405,53.616388060241796],[-0.308555246775199,53.6143287578592],[-0.300753915339974,53.595539999885],[-0.303423841813591,53.5907900998412],[-0.310867879373955,53.590154580219],[-0.335938821094677,53.5586265922375],[-0.348658806858916,53.559512869527595],[-0.34585530802965,53.5579585504507],[-0.349379719334232,53.5558093340518],[-0.419669109582517,53.5637727874176],[-0.429001046046789,53.5745247151217],[-0.439407349017745,53.57029301991341],[-0.450776025259325,53.5579662836297],[-0.456908706548813,53.5592905848519],[-0.465671732127895,53.556023322872],[-0.467018371437879,53.548960692384895],[-0.490919376490564,53.5458744545144],[-0.50125785289296,53.5374615766105],[-0.430664749921137,53.5463371564568],[-0.421862353506164,53.534448079984095],[-0.414400079891137,53.535841609704704],[-0.408145080459695,53.53210886859831],[-0.405074524830151,53.5176169033637],[-0.444036592858546,53.5093918417857],[-0.475838532967563,53.508978933804094],[-0.488383657821996,53.5048602245041],[-0.480686587797683,53.496245386751],[-0.487771884719746,53.4878143775404],[-0.486630004727343,53.480470167782904],[-0.471749465254693,53.4748729017697],[-0.551791237347267,53.45952001887811],[-0.59947987315379,53.4564021066509],[-0.629752674978015,53.4582189924615],[-0.62664950589938,53.4620613702707],[-0.634806791242606,53.469551867823995],[-0.634058429571641,53.48539926787001],[-0.630134286594633,53.485994399663596],[-0.625726537074686,53.4955809553169],[-0.628193216650824,53.506823153880305],[-0.624491104429227,53.5128392148578],[-0.675706725168171,53.512525472803],[-0.687354907856837,53.516388800898795],[-0.701578281264133,53.5141826040011],[-0.739591684118626,53.519935949077905],[-0.752113860480161,53.500530608656],[-0.768109606084077,53.4989256083412],[-0.775623671693964,53.4890249838032],[-0.771568244935175,53.4792015606648],[-0.784388777567045,53.4766692157187],[-0.784364875033277,53.4633795465991],[-0.797483349537156,53.4550644469113],[-0.809539970863045,53.4436126661277],[-0.82016310807637,53.44112911292181],[-0.81940272945888,53.437162890484],[-0.817002950376436,53.4256646223724],[-0.803632365577952,53.4171429650424],[-0.788421349108204,53.4143576034985],[-0.791397571558166,53.41051529461381],[-0.785690561156439,53.40211820541891],[-0.777442868144384,53.3974083380444],[-0.776344733287152,53.39148223467739],[-0.790219652697241,53.3862921127519],[-0.786757536962154,53.3843090653077],[-0.775569382196442,53.3774026413517],[-0.786036473216742,53.374552993281306],[-0.791098332994525,53.3634793030877],[-0.780831843590513,53.36124716597259],[-0.773442568588355,53.3639877955655],[-0.75861635902076,53.3538375874827],[-0.764811639794798,53.346323950815304],[-0.758053842009266,53.3419101850886],[-0.766473605946302,53.3301074983394],[-0.760118268979831,53.3246858170727],[-0.750051550807065,53.3243173732238],[-0.75368613288448,53.3202517898223],[-0.753294826874351,53.31044030026389],[-0.74715298067211,53.30444487795359],[-0.750179231138818,53.2945415893939],[-0.757884107084989,53.292817897412],[-0.762983371728216,53.2995796803503],[-0.768517982745236,53.290581096636],[-0.778205595813031,53.2836087955952],[-0.764279778594267,53.2727392389111],[-0.773098858740922,53.2607361086255],[-0.770175411225677,53.2530973744272],[-0.778486870404097,53.2519926950049],[-0.77707445272525,53.2469081695812],[-0.73508333879074,53.2438739831484],[-0.734150803388177,53.2540040459026],[-0.694764022450452,53.2584022630891],[-0.688027280325921,53.25839124070309],[-0.666577004989044,53.239702496516905],[-0.675872140728609,53.2176443564103],[-0.697616436379696,53.2202372907866],[-0.714752926702038,53.207607769642],[-0.730569016450559,53.2107564502185],[-0.753766368007178,53.1881562848662],[-0.762167689470256,53.1882393676831],[-0.764137929460812,53.1815438027694],[-0.718160267478104,53.1772877899828],[-0.716028276283723,53.1704120819459],[-0.723232204800026,53.1551038705864],[-0.715375394751415,53.136882863606],[-0.732407362918311,53.1278015877576],[-0.731091968342561,53.12400295528591],[-0.716882507111126,53.11944396268719],[-0.721250544059523,53.1042679775761],[-0.729617825692047,53.0979020211063],[-0.724383220773675,53.09258902319571],[-0.706149360039511,53.08337842581601],[-0.710358283072346,53.079377817485295],[-0.698482165063602,53.0754675823197],[-0.698805874616782,53.0677463403882],[-0.695144260163121,53.0665304037453],[-0.701539000308792,53.0636633116388],[-0.713466500275659,53.06604655401681],[-0.716203841365838,53.0590587016488],[-0.722597608787722,53.059922188952]]]}},{"type":"Feature","properties":{"name":"Liverpool City Region Combined Authority","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-3.198518875705341,53.3757472181922],[-3.200367864844469,53.3875152778136],[-3.10051940107972,53.5693935592256],[-3.01409163674866,53.679129034507],[-2.97714577059521,53.6965349909235],[-2.96527621527027,53.6982022386331],[-2.95523031951581,53.6964959967848],[-2.61213826989975,53.4811380914232],[-2.58397756839392,53.4538779376162],[-2.5767428316775,53.446057209294],[-2.59522305170231,53.32245437116751],[-2.609086515520691,53.3120712133787],[-2.64155693821446,53.3050347970597],[-3.11072293929503,53.2962983182363],[-3.19057115642075,53.3682434485254],[-3.198518875705341,53.3757472181922]]]}},{"type":"Feature","properties":{"name":"Luton","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-0.419064998588213,51.912303645197504],[-0.422364584067237,51.92051965312879],[-0.421681634403011,51.925680737963106],[-0.426038596373424,51.92668864086069],[-0.43781594492692,51.9277474618813],[-0.4518566269223,51.9247561867673],[-0.462387863303657,51.9235976114163],[-0.485701416266266,51.9227011901167],[-0.478496583375607,51.917331002601095],[-0.482072718284253,51.9089960858903],[-0.491520429531456,51.90632649313831],[-0.494046758228838,51.9060746839948],[-0.505923085960359,51.9006124971274],[-0.499807906101467,51.8978309814103],[-0.484843589027866,51.89130585127899],[-0.483940621083587,51.8883001497858],[-0.466621143224371,51.8881648520249],[-0.449402741017434,51.8783477372326],[-0.423049532791485,51.8546212471378],[-0.414417268771617,51.8590352508716],[-0.416125595170405,51.861995083806896],[-0.409121494206001,51.86149496706451],[-0.400893388932862,51.8686515399783],[-0.391467766236908,51.8701290142886],[-0.389297197133419,51.8715639931044],[-0.369755351222524,51.868115230406204],[-0.365784241517425,51.8707621163866],[-0.368298321917114,51.8730602121632],[-0.354833888657067,51.8740145293011],[-0.3498989071936,51.8787082193461],[-0.354645697882236,51.8845473347135],[-0.365134446174951,51.8943776246514],[-0.37390926927827,51.895313977511705],[-0.378390186333564,51.901645698550304],[-0.385615555724027,51.91568039597941],[-0.401219962878555,51.9130531686578],[-0.402437002914537,51.90970319444481],[-0.407559825373171,51.9106916633068],[-0.419064998588213,51.912303645197504]]]}},{"type":"Feature","properties":{"name":"Medway","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[0.544003569633395,51.3278964123716],[0.399919664491311,51.3444569026071],[0.401283124306125,51.35295476259],[0.454310834253017,51.4634533384398],[0.468743597230634,51.4827715531711],[0.481491396074262,51.4871629927932],[0.547005324745015,51.4870463285653],[0.585781233209322,51.4844404073505],[0.659983867168387,51.4776769839281],[0.686039395389155,51.47509539128681],[0.703174915090527,51.471271292966605],[0.720386019001547,51.4597369960201],[0.722708359545191,51.453764156276094],[0.723245914245339,51.4434967117863],[0.610949442498035,51.3364738655695],[0.601403554174045,51.3333011048713],[0.544003569633395,51.3278964123716]]]}},{"type":"Feature","properties":{"name":"Milton Keynes","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-0.628254510983892,52.1725363417791],[-0.627446652788111,52.18154546832049],[-0.639510057352226,52.1834349069605],[-0.6431603115272,52.188844861935905],[-0.657448076334108,52.1897753452686],[-0.668135637658982,52.1950341117758],[-0.684653534591718,52.196336172166596],[-0.705455584072188,52.1915707007857],[-0.749734768722189,52.1668767684431],[-0.756810334647392,52.1674498428306],[-0.762047571674838,52.163446429151],[-0.76533176234871,52.17109913269301],[-0.777975100575612,52.1687324929908],[-0.792091270533438,52.1513294604513],[-0.80195676837323,52.15867880688581],[-0.807587882658753,52.1569790143848],[-0.814041227993611,52.14247234185],[-0.831966629471785,52.1436835087174],[-0.828204674516664,52.1326105528126],[-0.846738589125484,52.12941002742151],[-0.853529246702118,52.1316736999219],[-0.868983800094607,52.1306263108219],[-0.879935571684107,52.1266372203379],[-0.88068270735209,52.120190581104694],[-0.88730272859664,52.1145303275407],[-0.871450101645923,52.1117534347483],[-0.865270163728431,52.1029376751836],[-0.869530890831007,52.1000376603272],[-0.857917320685032,52.097507951831],[-0.854779097883618,52.09235438967411],[-0.846712543491745,52.0915087034718],[-0.8314182458155,52.071947000165196],[-0.839500488570763,52.0638277803285],[-0.853076200507597,52.0643474956845],[-0.863016447635707,52.0602718722594],[-0.852901031825707,52.0499974315407],[-0.859422789604718,52.04460223926969],[-0.867734173262596,52.0462209358142],[-0.871325629151714,52.04025185257261],[-0.866951146350165,52.0400983817301],[-0.844877772194392,52.0226822894792],[-0.82720756311364,52.015210048322295],[-0.819817648789318,52.0122859293589],[-0.817996393171979,52.00607179192979],[-0.812243030197897,52.0060156555087],[-0.803504262578806,51.98550360900341],[-0.789240125450465,51.98794822588739],[-0.776278010572816,51.9886252768205],[-0.771206020310458,51.982912508217304],[-0.761780490181612,51.98533948000641],[-0.743646887316823,51.975247306573],[-0.747555029494841,51.9735571577554],[-0.740379237640103,51.969862627181094],[-0.713941366477039,51.9778705046005],[-0.717869666553683,51.9824161147126],[-0.713384194020656,51.9898164964533],[-0.701570809224346,51.9869616074809],[-0.696150071646608,51.9822064596333],[-0.677326210797824,51.9767223085569],[-0.669063757912304,51.9784877248414],[-0.652978332552365,51.9692289650499],[-0.645680806107934,51.9722283113145],[-0.656172710242462,51.9820259504293],[-0.661689665376442,51.99973638534621],[-0.6506565522154,52.0096701876894],[-0.643476890212709,52.0108547037243],[-0.651023980572764,52.0184860767988],[-0.640329250663556,52.023660794933804],[-0.643075775484512,52.0368909335467],[-0.658399825157736,52.04406174725711],[-0.66897597717708,52.0487168407765],[-0.651008115699226,52.064144004289396],[-0.64158395416267,52.0677213446807],[-0.631357876763902,52.080974923562],[-0.605791266651691,52.0921194755494],[-0.603959162445068,52.0991243426225],[-0.596751287866456,52.1016849141697],[-0.601872296954805,52.10502749790171],[-0.591810331121503,52.1106918880999],[-0.607249381411581,52.1338687517842],[-0.61928420225634,52.1330659541041],[-0.635451654776416,52.1392536208873],[-0.640781511339957,52.1527722744294],[-0.630670852955621,52.154923975729204],[-0.634906765468806,52.16813306027609],[-0.628254510983892,52.1725363417791]]]}},{"type":"Feature","properties":{"name":"Norfolk","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[0.206123341125585,52.5196351215419],[0.153643849693306,52.6821777181757],[0.15635300101668,52.707834957250604],[0.171626068420179,52.73803170247571],[0.268807332778324,52.8158366875915],[0.519847485786884,52.9686467283688],[0.534937821290634,52.9746560478121],[0.66331758517332,52.9870129339712],[0.678430536677382,52.9884005925194],[0.977548697472944,52.979889815408406],[0.994546025783269,52.9778542744312],[1.24198733946878,52.9424298698473],[1.27241813660638,52.9375377820402],[1.28333811800785,52.9357801279587],[1.30655038878603,52.930985965831105],[1.33521187925769,52.92220783098],[1.3675273588962,52.9096698239472],[1.38049650389768,52.9046333822721],[1.40649461411723,52.8938765464021],[1.41372008387852,52.89077850221221],[1.41389396511274,52.8907039347454],[1.58671256096868,52.80165948260671],[1.58737239970531,52.8012200135989],[1.60513984483448,52.78938178545171],[1.6751542012274,52.742644186134996],[1.69756952021577,52.72353919106121],[1.7290470365194,52.66360962292351],[1.74186435114992,52.6339863903512],[1.74308386700594,52.62056424053329],[1.74344711417188,52.57518174883301],[1.74037086158233,52.532100452309706],[1.67084835776017,52.4765273729761],[1.65868716255051,52.4683511670137],[1.21264058219253,52.3553869637816],[0.749844254038387,52.3829265004921],[0.429344099524506,52.4364266700427],[0.246040899012424,52.4998913009411],[0.206123341125585,52.5196351215419]]]}},{"type":"Feature","properties":{"name":"North East Joint Transport Committee","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-2.60545400682068,54.8843058312656],[-2.68979023468094,55.1889842117909],[-2.64677118121333,55.2600438638246],[-2.33601244831487,55.6320547002993],[-2.32470201879721,55.6431665479277],[-2.0861230942702,55.793045271488005],[-2.06224170460584,55.8027329316734],[-2.0344332183495,55.811089540631606],[-1.77921132996832,55.6856261076144],[-1.65500818957618,55.61738345785151],[-1.61894770179467,55.552183586092],[-1.59114224073804,55.4923305669221],[-1.24224977186981,54.72296222690441],[-1.34122267082448,54.6502432615893],[-1.44340117937859,54.5906238620162],[-1.79297648414091,54.48449242960041],[-1.942543236270351,54.4533953549934],[-1.970059591812581,54.451521541912705],[-2.15926758918667,54.4554834841942],[-2.17021302340634,54.4581987855746],[-2.56784860338401,54.8235748403588],[-2.582671047375951,54.8458667824507],[-2.60545400682068,54.8843058312656]]]}},{"type":"Feature","properties":{"name":"North East Lincolnshire","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-0.204422800569946,53.63790004551],[-0.204635275858303,53.6380875010463],[-0.232616662304542,53.6240029893557],[-0.25095816459789,53.6229931247104],[-0.29211512919743,53.6132674312187],[-0.281194446717386,53.60626299807361],[-0.283038930960544,53.6044969359024],[-0.259360321014557,53.59696968284231],[-0.254473495982278,53.592488267852104],[-0.24847604907361,53.5936636925887],[-0.251395553409818,53.584653076988],[-0.239163914049111,53.5881621122746],[-0.234668675193634,53.586250419398],[-0.222558901329779,53.5680169282635],[-0.195185374970214,53.5716193575954],[-0.187529353437806,53.56361276652321],[-0.219879989463282,53.5326100488044],[-0.210589579218055,53.5317064650029],[-0.213624092361678,53.5263590362305],[-0.204086448790055,53.5117673428116],[-0.210604976147154,53.4862884751414],[-0.188565229273785,53.4845380584939],[-0.181804717740498,53.468649412252404],[-0.153680016923717,53.4656777580012],[-0.158507673042806,53.4615836699533],[-0.149227746736442,53.4466996653901],[-0.144500351665103,53.4409034035166],[-0.134248023731181,53.4407383542197],[-0.131879272038797,53.4359393973431],[-0.122786056566,53.437345839774],[-0.120343715760136,53.43356492337189],[-0.082209345071156,53.4511510063818],[-0.10782063241139,53.4698627577246],[-0.089803735537529,53.4776824153005],[-0.095488450310831,53.4859889965573],[-0.075262003890499,53.489335739927206],[-0.067095981129414,53.51683822174999],[-0.060544894312124,53.5197491181326],[-0.046613538113753,53.52009873027211],[-0.039600203026664,53.513116555071896],[-0.028638690535161,53.517337890582205],[-0.019548140992998,53.517975289758006],[-0.017430291488593,53.5150670085555],[0.0053664526281,53.5196745978325],[0.01642149026086,53.52632246247],[0.008852753497668,53.5348612149615],[0.00846331735377,53.5351350023512],[-0.019667954430078,53.554899550601604],[-0.020185247358058,53.555319356675106],[-0.028140100325213,53.5617609450903],[-0.02820944127175,53.5618043900232],[-0.050981922574381,53.5760653090118],[-0.051868336943625,53.5766201326976],[-0.060228502828082,53.5815780703904],[-0.068564381043178,53.58308107667491],[-0.069787801621505,53.583180075689796],[-0.079457731145149,53.5769301919829],[-0.092278111231265,53.58167130051811],[-0.092820928827133,53.5813248652995],[-0.093214518627536,53.5810722308444],[-0.094629206529805,53.5817652810972],[-0.111543888814359,53.5900517178814],[-0.129335974577611,53.6006512837412],[-0.130450265917461,53.6013555240712],[-0.152837942198458,53.6154975276699],[-0.186810326989124,53.6302563534196],[-0.187516899836659,53.630563103419505],[-0.18805670461559,53.6305384110523],[-0.188797622106712,53.631119092158904],[-0.204422800569946,53.63790004551]]]}},{"type":"Feature","properties":{"name":"North Lincolnshire","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-0.920246794246959,53.4655076505704],[-0.950009087300711,53.51365743446911],[-0.948473546030531,53.5203729459268],[-0.943715825340442,53.53064301866821],[-0.887392601501844,53.6099581415216],[-0.865338726025611,53.6377082330427],[-0.691396226568171,53.69677670506971],[-0.611423103252438,53.7146028991693],[-0.289364002000774,53.7131988210608],[-0.26641783041436,53.6953895739259],[-0.204635275858303,53.6380875010463],[-0.471749465254693,53.4748729017697],[-0.551791237347267,53.45952001887811],[-0.59947987315379,53.4564021066509],[-0.797483349537156,53.4550644469113],[-0.916249020723134,53.460295689715494],[-0.920246794246959,53.4655076505704]]]}},{"type":"Feature","properties":{"name":"North Northamptonshire","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-0.523630693170712,52.6348871607446],[-0.540260653382861,52.6259657691596],[-0.539057032232578,52.61787561538169],[-0.550130858914181,52.61225064380281],[-0.54755896961044,52.6069561149427],[-0.552938854430842,52.6013489506897],[-0.542929470523687,52.5956834580492],[-0.544173532572234,52.5928882810182],[-0.558117814289337,52.59448396766491],[-0.562518403335566,52.5862751066936],[-0.571903726305604,52.5858033698147],[-0.577955798040501,52.5878981549236],[-0.581472728074389,52.5958835165327],[-0.586972401223626,52.5874288711115],[-0.603019141912138,52.5885911323283],[-0.637847507383859,52.571812289463104],[-0.642233099225361,52.57300261052969],[-0.660912737595725,52.5689457054421],[-0.674864344204412,52.55863838264901],[-0.688448487446295,52.546137122056905],[-0.697833336432589,52.5457021906991],[-0.69643038488804,52.5385464327137],[-0.713658337963826,52.524963968358],[-0.715759937485516,52.5223443900515],[-0.726833413245234,52.5231636181507],[-0.746841685281296,52.51686619744961],[-0.756156309515431,52.51099471294071],[-0.774866784894676,52.5182763361657],[-0.787781835781209,52.5137117785551],[-0.796160634816982,52.516365134586906],[-0.81086689992306,52.5193673858818],[-0.812590397772968,52.5159521209528],[-0.820121757601639,52.5155410008461],[-0.830626939482888,52.5194589021784],[-0.845345353610835,52.519366903031404],[-0.845299173629488,52.5216958124708],[-0.84838759800829,52.5202622182414],[-0.863299651840701,52.528333071686],[-0.87099333364688,52.5247520456339],[-0.872610669221736,52.51839963372629],[-0.883408901784581,52.51380805502761],[-0.878965689011096,52.49793675787429],[-0.883721468945801,52.49226293612039],[-0.895601523154075,52.49204439390041],[-0.896921169454828,52.48550721462419],[-0.884534583724469,52.4813068147493],[-0.882361450241335,52.4714057488025],[-0.889556847841394,52.470440531953],[-0.9012806064268,52.4597558601064],[-0.906250314691577,52.45365959810311],[-0.904383712639054,52.442171076427606],[-0.879290032887858,52.43917378655631],[-0.864327833503826,52.4342245420732],[-0.875046616172251,52.423532825377],[-0.886936611261352,52.4233541360679],[-0.890602393709494,52.39868564867011],[-0.873695474959517,52.402673957477404],[-0.861807710450574,52.3961792854985],[-0.840569709237446,52.3928466277642],[-0.832958662101115,52.38114205194649],[-0.829508820321566,52.3750867719715],[-0.805541285548436,52.366393901566],[-0.795372415038371,52.3607488817988],[-0.788655312511267,52.347306715857],[-0.785779453314657,52.330616767290394],[-0.817950353609315,52.3095959445528],[-0.805897742611488,52.2882550143654],[-0.809141414260567,52.2753276939684],[-0.802958164940994,52.2667013071758],[-0.801225154958908,52.25352549242441],[-0.795083488612701,52.25408058879041],[-0.791415863707147,52.242241513787896],[-0.762788844869664,52.2487454716742],[-0.748802720057461,52.2460310609163],[-0.727268647830442,52.2379328808761],[-0.714222380390685,52.2214405685564],[-0.716948684451808,52.2132901831662],[-0.711709521663046,52.1973557585608],[-0.705455584072188,52.1915707007857],[-0.684653534591718,52.196336172166596],[-0.668135637658982,52.1950341117758],[-0.66146038898971,52.208126189804],[-0.63733162156624,52.2273176317195],[-0.653655470981071,52.2682893071709],[-0.639908260903836,52.272442010704],[-0.631412540233443,52.2700475944602],[-0.626978099135445,52.2748773880713],[-0.610617039099608,52.2794979472719],[-0.600306508992765,52.27788786836089],[-0.586335338989988,52.2728313341511],[-0.588111036843781,52.2707783583702],[-0.565693055132987,52.2534682264436],[-0.554738089361645,52.2581798178147],[-0.541311924118424,52.2563172707037],[-0.539324957851375,52.26609490416139],[-0.531190184929433,52.2704024303694],[-0.540604794738771,52.29149185875821],[-0.514051195755829,52.3146970761678],[-0.519829880170178,52.3176925680897],[-0.487140256860804,52.3210826554636],[-0.476261345982474,52.3180638528938],[-0.465365756545097,52.3229532812371],[-0.466656737619639,52.3389275764],[-0.483264192761938,52.3409032974573],[-0.477338735545641,52.34840941521091],[-0.498701137705854,52.3601003499178],[-0.499486806912858,52.3669929186284],[-0.488518815845791,52.374023541934996],[-0.495946267815481,52.379515530279505],[-0.486737594777736,52.379031219962506],[-0.484760700570653,52.3816312426028],[-0.469888285346607,52.379895964496],[-0.46829043845482,52.3828935906478],[-0.45683167428787,52.3823291652305],[-0.454937588159616,52.3857021565881],[-0.443761325863617,52.3838572269822],[-0.432919630273349,52.3963293702314],[-0.416156971603511,52.4035893352168],[-0.419611916479489,52.407324614510095],[-0.417072832141305,52.4115991109509],[-0.410834122698877,52.4127939695696],[-0.389544747421009,52.4217659558199],[-0.362408041008102,52.433531278028404],[-0.371866772917785,52.43684296790261],[-0.370217036825639,52.43993027141731],[-0.352892337192092,52.46106031524471],[-0.341590492473876,52.4669426273503],[-0.349718273910449,52.4728878132779],[-0.350068186216531,52.48254820017161],[-0.359399580960367,52.4898590691293],[-0.359194775076337,52.4973412596548],[-0.352175354622898,52.5033252295446],[-0.354345203263394,52.5064950723187],[-0.377926602923271,52.5106578551389],[-0.390749004399196,52.51943990666421],[-0.411846469441588,52.52475337568119],[-0.413345810543271,52.5284300113759],[-0.404668302768303,52.5323072015659],[-0.401283297186851,52.5386846825222],[-0.402060473161994,52.5483216266858],[-0.415338798339301,52.55155334495251],[-0.419593787330186,52.558961955043294],[-0.407290921113568,52.564054854816995],[-0.41569532371087,52.5701041455316],[-0.415381402678347,52.57874263974791],[-0.425027614243866,52.5824127247453],[-0.478814868225147,52.573645147065],[-0.478834287538595,52.5774385740388],[-0.492359814763782,52.5816716791885],[-0.497651443767072,52.5868509766981],[-0.490706771078668,52.5905342881833],[-0.4854397912319,52.60217993771321],[-0.481024270619405,52.6027868894193],[-0.479636967183359,52.6144498270105],[-0.473729251125261,52.614433209587304],[-0.470961263649924,52.6179533112223],[-0.473503473924115,52.628234499997305],[-0.486107690989908,52.634421725773],[-0.488823841117811,52.63283089994],[-0.494773452953128,52.6403140726876],[-0.495025802128916,52.6402363852471],[-0.517397149134818,52.6423795260649],[-0.523630693170712,52.6348871607446]]]}},{"type":"Feature","properties":{"name":"North Somerset","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-2.98807345358646,51.2985198588894],[-3.11482862503654,51.33966265181411],[-2.79942435637146,51.4853858021707],[-2.7732757599236,51.49467835171999],[-2.72743159289486,51.4996758032623],[-2.71678537213998,51.5005821040167],[-2.66362354946931,51.48660902515],[-2.65887026682336,51.4840687034142],[-2.634367472059929,51.4668021647133],[-2.587271300748029,51.395147056259304],[-2.65117756127284,51.3450435294813],[-2.6968540277504,51.3161402971997],[-2.81023646544598,51.30142431202151],[-2.89710380982307,51.2906145791208],[-2.970121596827609,51.2960892803433],[-2.98807345358646,51.2985198588894]]]}},{"type":"Feature","properties":{"name":"North Yorkshire","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-0.774535975882038,54.55739946391],[-0.793346883280616,54.5583087975598],[-0.798787226851328,54.55561776577161],[-0.80041918962436,54.5510109262824],[-0.815676261931451,54.5525074862886],[-0.826984924910033,54.5485751001643],[-0.848647297024731,54.530003829707596],[-0.853321110841555,54.5027138378779],[-0.844139141102103,54.4895497730154],[-0.866978786936943,54.4892409533515],[-0.875781199914727,54.4911646111981],[-0.880825023321814,54.4970468612461],[-0.89421261443467,54.49691208996371],[-0.952951598811726,54.4880355490013],[-0.967828726003033,54.4972684823868],[-1.00340105305077,54.5030121002798],[-1.02380033989238,54.5020450654456],[-1.0368514550928,54.49404406052259],[-1.06792656459548,54.5004482266582],[-1.0945238497457,54.5067598362799],[-1.11178282493089,54.5043740289682],[-1.11838000658732,54.4981985705854],[-1.14619694918505,54.5028216123635],[-1.17439150837431,54.502894290706394],[-1.18509381784434,54.5072853028225],[-1.19548498997386,54.50663235254831],[-1.2072888371795,54.508145534561706],[-1.22013631075884,54.5109411339474],[-1.2348659056463,54.5103160454452],[-1.23438011814448,54.5061421456505],[-1.24232075677082,54.501658039035306],[-1.25667466779605,54.50110791367591],[-1.25326239446654,54.4977824802003],[-1.25740307371,54.4873218300283],[-1.27451888101996,54.491082272518106],[-1.28959195192554,54.4879864644116],[-1.28671008771693,54.48273459023649],[-1.29159069524521,54.48344527500841],[-1.30033745632526,54.4758498843291],[-1.30318718879538,54.4784293641188],[-1.313115997479,54.4772771969088],[-1.31831304007176,54.4721992076002],[-1.3436289617262,54.4641554130233],[-1.34491503450455,54.4724080092533],[-1.35649046557565,54.4729258554456],[-1.36441713758622,54.4659524096737],[-1.37256157635986,54.4723074618139],[-1.37477999807413,54.4824672461605],[-1.37028676646408,54.48611063304539],[-1.38101055095849,54.49402893155911],[-1.38306509657495,54.4872864927193],[-1.39505004776972,54.4856799730286],[-1.39921534726528,54.4928922210556],[-1.4070888004288,54.4935296390409],[-1.4127863622095,54.4771953992089],[-1.43211777207151,54.47945456606351],[-1.42658318666795,54.4847793991629],[-1.43490529222604,54.4874931719167],[-1.45779803490864,54.503647886172],[-1.46735265618934,54.5025273466288],[-1.47555932906158,54.49810831230461],[-1.45938613752107,54.4945816366718],[-1.46182748612818,54.4859514033111],[-1.45758472639674,54.48148297337221],[-1.46379873425492,54.4735508533552],[-1.45341385016248,54.4660154353839],[-1.46279137012721,54.46139226240539],[-1.45615000928909,54.45244925497501],[-1.46310127817227,54.451377562279],[-1.47205221947318,54.4555996013609],[-1.46761924250396,54.46215051778089],[-1.47537275452127,54.4738451788965],[-1.49905229173469,54.4756782312322],[-1.49152217227962,54.48609152433289],[-1.50524707362159,54.4824197973257],[-1.51134080604103,54.4750122616584],[-1.51413191899894,54.4837750921411],[-1.52883695102378,54.4848137386155],[-1.53015082479877,54.4757509253846],[-1.51983281095693,54.4710470168278],[-1.53271984243502,54.469149121834],[-1.54567271781715,54.471238476764405],[-1.55519520906131,54.4849781916841],[-1.57330393280191,54.4901596337794],[-1.58298032825201,54.497100733708294],[-1.57921485380735,54.5051876853776],[-1.59162276644808,54.5040043160229],[-1.58432455464599,54.5079706323024],[-1.57952722065321,54.51162706991559],[-1.60275909546073,54.510614395115],[-1.6006232763505,54.51709776553321],[-1.60952047903674,54.5199082260963],[-1.63332908642646,54.51411140327179],[-1.64019885599763,54.5171803781766],[-1.6329311189945,54.518704345161694],[-1.63377378148266,54.5253643798481],[-1.65467519937522,54.524650097058206],[-1.65793716561516,54.5345889230914],[-1.68225910524758,54.53333941447949],[-1.69692636355207,54.5360064297071],[-1.7213108898176,54.54230172528381],[-1.72730498994653,54.5304851200793],[-1.73309136190534,54.5277364132303],[-1.76121346135505,54.5289515288572],[-1.76972396932688,54.5328449086409],[-1.77969652861129,54.531872994809405],[-1.77613231485782,54.506728505058504],[-1.7821752755751,54.507012693999],[-1.78717719757631,54.501038992123696],[-1.79297648414091,54.48449242960041],[-1.82244344250921,54.4951777071154],[-1.82778688626019,54.5029294017834],[-1.83943329269054,54.5084372364891],[-1.84821673947602,54.5036629583679],[-1.85780051144888,54.5035397952873],[-1.85912998438283,54.48185790331681],[-1.86725507782232,54.4821169168337],[-1.87760324451019,54.478049557588506],[-1.89343027732002,54.4668982631036],[-1.942543236270351,54.4533953549934],[-1.970059591812581,54.451521541912705],[-1.97612526417875,54.4597287841664],[-1.985539439401341,54.45992528827251],[-1.99676437249469,54.46690344923721],[-2.04472952149334,54.475186274199395],[-2.04319843418637,54.4835994484301],[-2.06128930394723,54.480557587827406],[-2.08639658819696,54.4683928876723],[-2.11659617374357,54.4622634788675],[-2.15012069733666,54.4599634786456],[-2.15926758918667,54.4554834841942],[-2.17021302340634,54.4581987855746],[-2.17057851371489,54.4611414415279],[-2.17750847989225,54.46162567563341],[-2.18931554536681,54.4489784740485],[-2.23561740343054,54.4482310576106],[-2.24953922329874,54.451943436239404],[-2.267902925976749,54.44723357470469],[-2.26537837452071,54.442926307309506],[-2.271347821025031,54.4409161663219],[-2.292865201252809,54.43930749184311],[-2.29185352910439,54.4314625395098],[-2.30337334570915,54.4262765267597],[-2.30814588994671,54.4197937724531],[-2.30550673679387,54.397120066217504],[-2.291783881913271,54.3909045153945],[-2.2974404079712,54.3768987653342],[-2.31704255658246,54.3763105185636],[-2.326092284920581,54.3680956222523],[-2.34464790841351,54.3596285107861],[-2.36074911225142,54.3549476063212],[-2.36771223910638,54.3560706152439],[-2.335767621279579,54.3404348271208],[-2.33474923494826,54.3349447258792],[-2.32020205365872,54.3317507593483],[-2.30984140863991,54.3243149783909],[-2.31497755786942,54.3135863712962],[-2.3230323098134,54.311082787262],[-2.32040123114123,54.3067705967679],[-2.32452246431824,54.3031836229855],[-2.32039028854724,54.2990444651919],[-2.32417201077219,54.2936051529268],[-2.31719184100725,54.2871656656679],[-2.3258910311947,54.2796960635064],[-2.31551421488285,54.2702849274841],[-2.31909631949867,54.257155831079295],[-2.32564664212512,54.24143834840971],[-2.33765745303457,54.2375990714247],[-2.34805240648407,54.23780668234281],[-2.36231711509247,54.2497526297027],[-2.372325241992471,54.2482345946195],[-2.37302060410132,54.2400989043776],[-2.39677965225249,54.239381080598],[-2.40563193679838,54.224915168998706],[-2.41197045087195,54.2266866355784],[-2.43542759127717,54.2228770165066],[-2.441418164879099,54.2257392147402],[-2.46086273483392,54.2267161360628],[-2.47369902061277,54.215281981169],[-2.47995834800855,54.20231272369989],[-2.52872129178268,54.1695119342714],[-2.53397895530311,54.157692713772605],[-2.543683271751441,54.1575953157412],[-2.54722216780344,54.1533092594131],[-2.56050449737639,54.1530521184271],[-2.55787385630655,54.1433641937498],[-2.563410302733541,54.14040568296931],[-2.56341446740704,54.12469273651],[-2.54476819547745,54.1171325617251],[-2.54583560408408,54.1143671671041],[-2.53620064852341,54.1086261842953],[-2.53676628071926,54.1040992599487],[-2.52410884993147,54.10212938427781],[-2.52400965394564,54.0946224801854],[-2.50952601849528,54.0954253307687],[-2.50630521952409,54.0914745828792],[-2.48075116398062,54.08537902387151],[-2.47072423697495,54.0765641888468],[-2.46434741774283,54.0752794330057],[-2.46954984634616,54.046212243099504],[-2.458774891024869,54.0404955283586],[-2.43273399829039,54.0415933532462],[-2.425826489823681,54.038094910290006],[-2.37407297715162,54.049089061463505],[-2.36199948040014,54.0406696824744],[-2.35732329416741,54.019117094779006],[-2.34354057532153,54.01732755339961],[-2.33956003667455,54.00943331759811],[-2.34076008480669,54.0074625517995],[-2.35028879560898,54.0122003167956],[-2.35231031317863,54.0105389058883],[-2.35235757480551,53.9946737861065],[-2.339923184361,53.989427713568],[-2.31882854901848,53.9937286755738],[-2.29673254801034,53.9805547320345],[-2.29540610864399,53.97456775323351],[-2.28450480432089,53.973810363881505],[-2.23457805985608,53.98178359383591],[-2.2210627540429,53.977927581934395],[-2.232015447397171,53.97122997687241],[-2.22594795385996,53.9672537378124],[-2.225736255846599,53.9610994519679],[-2.21442066116374,53.9650990235011],[-2.20963876334706,53.96289923302629],[-2.200635369948841,53.970126346857505],[-2.1960183674942,53.96957584551631],[-2.18452239163842,53.9522641300986],[-2.17946680971232,53.9459857695715],[-2.18548776350961,53.9418871641725],[-2.18228142410805,53.93539027279111],[-2.17594489856343,53.934260144284],[-2.16978759866437,53.9370103312507],[-2.16207530910774,53.932624214878],[-2.16287677864059,53.927269937217],[-2.15171645617234,53.9294839669035],[-2.14943336734035,53.9260283750152],[-2.14179833499529,53.9256745773806],[-2.13997841255548,53.9283254652301],[-2.13222410689956,53.9265088512197],[-2.124350296755821,53.92320073903781],[-2.12175817199156,53.9173308364921],[-2.11309296486617,53.915439302302005],[-2.10746665577796,53.9080429761091],[-2.11317599133283,53.90461156073611],[-2.10341687197166,53.8918927635623],[-2.08245765008946,53.8775544991564],[-2.08991499194819,53.86818197294351],[-2.0811910243705,53.8699714231967],[-2.074849494069309,53.8623673413351],[-2.04613032171259,53.8501412464577],[-2.031708470240559,53.85859357506009],[-2.02163070660002,53.8714970972146],[-2.01348456458694,53.869737540086],[-1.99945538140006,53.8720652328764],[-1.98765329122528,53.867737023799],[-1.97702408016334,53.8755350632771],[-1.97697990138305,53.8756007372333],[-1.98110749418693,53.8969745282817],[-1.97935014092927,53.9011791592456],[-1.96962739527093,53.90344875942629],[-1.95256707298634,53.9035332799352],[-1.95322623148262,53.9117061595918],[-1.97686723160789,53.926417767380805],[-1.9719217849876,53.9299804338223],[-1.96588946493996,53.927887411247895],[-1.96801858621176,53.9318246657311],[-1.96307646765848,53.9334042141564],[-1.97052671923081,53.9433331489331],[-1.96228947488857,53.9432077799576],[-1.9650488995494,53.948235438977306],[-1.96618060011997,53.95155810858721],[-1.94936201870034,53.9530122737573],[-1.95068342650275,53.9567427305714],[-1.92797977690032,53.9504588455711],[-1.92276981738759,53.9556344048823],[-1.90627361012441,53.95837831499391],[-1.8931382160266,53.9553835373004],[-1.88224199432317,53.9631370172727],[-1.87872339574187,53.9623919921242],[-1.8788823617008,53.9542744327723],[-1.874150879940639,53.9450877504718],[-1.8621070392637,53.9405690676052],[-1.85950461344345,53.9325130132681],[-1.83619999295911,53.93142038810169],[-1.84865692039187,53.93602666065351],[-1.84768927934353,53.94077275835619],[-1.83012504613116,53.940383498119],[-1.8302000445709,53.9380171793094],[-1.80508916329937,53.9390226691492],[-1.80286281627586,53.93595691564779],[-1.79749560562838,53.9364846404929],[-1.798009587248631,53.92971410618391],[-1.78244355343507,53.9294409148285],[-1.77753621607093,53.9229212379777],[-1.77228018821147,53.9208873566056],[-1.76542530360652,53.9247228680781],[-1.75550614629802,53.92104153836671],[-1.74562604180612,53.9230037629874],[-1.74216351614958,53.9145802681553],[-1.72721624906541,53.9101971483664],[-1.72231360894013,53.91195826679131],[-1.71795853789499,53.9085427041814],[-1.71643260299151,53.9176348144794],[-1.70611245972884,53.9170707198606],[-1.70708308020122,53.9191312559919],[-1.68701955043693,53.9163888610701],[-1.68917114424757,53.9126456106448],[-1.68462724326052,53.9105880911715],[-1.65508298511049,53.9124842989602],[-1.65202899481062,53.9057228616547],[-1.64226003489039,53.9073640851447],[-1.6205370027283,53.90339496285609],[-1.59999326213106,53.909776341512796],[-1.59924801459186,53.9039820643918],[-1.58685844156437,53.9012519779665],[-1.58406638409176,53.909152530773],[-1.56868921225321,53.9109121886994],[-1.56288312390427,53.9039301071131],[-1.55257682983117,53.9030079185124],[-1.54941668782315,53.9106995396224],[-1.5285963244679,53.9086991323903],[-1.49467167955443,53.9153374739445],[-1.48602668663656,53.91091212559021],[-1.46741399063788,53.9107574472563],[-1.46309970110709,53.9060142808816],[-1.45155138343419,53.9070551798237],[-1.44044568912942,53.9139031182323],[-1.43255201748912,53.9110835143429],[-1.4335528510484,53.9263548749775],[-1.42978416781488,53.9288986749726],[-1.40670956648195,53.92784970861701],[-1.41062905552555,53.9301554384215],[-1.40919709536893,53.9354656053733],[-1.40065796649851,53.93750041034459],[-1.39718249968378,53.9425351723531],[-1.36195324149665,53.941483524529396],[-1.34040516519185,53.94588818802911],[-1.34471178616765,53.9395016380663],[-1.33953911709838,53.9408098270168],[-1.30696183943773,53.9344240754619],[-1.30899203821525,53.9240979121676],[-1.30041970000981,53.929416811921],[-1.29418007558142,53.92706422306],[-1.30730970961428,53.9214943608407],[-1.29720353407231,53.9216820282659],[-1.30058786897725,53.9074856419048],[-1.31372276302542,53.904702173223804],[-1.32105312933982,53.9034800801928],[-1.32227096512126,53.9004571903277],[-1.31773090766349,53.89634921675861],[-1.32080439259427,53.88378803650911],[-1.31560700707533,53.8816823223468],[-1.31969310243925,53.878957875332205],[-1.31260283640384,53.8653170016186],[-1.3529698771545,53.856750752009596],[-1.3384291426051,53.8517443132618],[-1.34213789386668,53.84517275436901],[-1.32655713555967,53.84042343032701],[-1.32520865713093,53.8353464391249],[-1.33609674496188,53.83358975338809],[-1.3096735441994,53.822894970886004],[-1.31039837840596,53.81991779108049],[-1.30362345902206,53.8165359902506],[-1.31243493069353,53.81437561749421],[-1.31487208408644,53.8095574148486],[-1.3138104637926,53.781555751023106],[-1.30380192223829,53.7751229045294],[-1.30678748484807,53.7730441225548],[-1.29636216475103,53.7718627353151],[-1.29041541713377,53.763078722496],[-1.29674922473777,53.7589536116819],[-1.29494201036989,53.7554628317844],[-1.31223876959692,53.7558885052162],[-1.31535677889255,53.7436807014006],[-1.30204330436809,53.7417246404076],[-1.28376408894728,53.73201222708251],[-1.27196139481349,53.7249241878807],[-1.26851709141282,53.7149091525155],[-1.24798800436946,53.7117252999313],[-1.2295729261433,53.7149054470182],[-1.22654062265956,53.70988312997861],[-1.21981187384993,53.7144190177334],[-1.21844290990855,53.707095571639606],[-1.19881814854623,53.7007329060597],[-1.19901535684986,53.6948883427854],[-1.2444169836956,53.6924295623026],[-1.2439575788672,53.6732503549996],[-1.25231925834765,53.666655982753106],[-1.24696039199966,53.6556145302205],[-1.24877652500161,53.6496307241786],[-1.2552164861138,53.6489626119707],[-1.25366203263728,53.6411993780061],[-1.24288786502782,53.634615714564106],[-1.23284427243353,53.6211122464196],[-1.21746850825603,53.62422432688991],[-1.21938721338277,53.636687472644404],[-1.21564716881913,53.6419826850635],[-1.21089244222326,53.6409562928708],[-1.20982718259376,53.6431641296687],[-1.19031348882413,53.6359169283835],[-1.15229786876077,53.6427766599575],[-1.1354072030232,53.632728679272],[-1.12887221672061,53.6349527509648],[-1.12899569670398,53.6429892001695],[-1.12174363004979,53.6467186421691],[-1.08481702497114,53.6517270137827],[-1.06607212816008,53.64889127468751],[-1.05327754938186,53.65153690905],[-1.04866263627315,53.656057479988306],[-1.06023004566856,53.6592686146099],[-1.07119009364024,53.6579051388127],[-1.07106033334648,53.660021735557],[-1.08563923446869,53.6623934753973],[-1.09139137666803,53.6686245765714],[-1.10335931463428,53.669499315006206],[-1.10176849612767,53.6743927984839],[-1.08106745981782,53.68459229008171],[-1.0850180422841,53.68695876473141],[-1.07872075525086,53.69408883751171],[-1.07493415369549,53.70399631604481],[-1.06960654749855,53.702889094316404],[-1.06247546370011,53.70687921105869],[-1.05403341734507,53.7014342414502],[-1.05362271873287,53.696851289383105],[-1.0457582152292,53.6986226124277],[-1.03908322703065,53.69389524181149],[-1.02240364474486,53.69803625095549],[-1.00682343190753,53.69530055415801],[-1.00021653670696,53.6989003629832],[-0.980187929022268,53.6969644491004],[-0.983453838628531,53.7025974417201],[-0.980486427392623,53.70503960724469],[-0.967865543920724,53.7067212550359],[-0.970098142886267,53.7022137744531],[-0.962649915494684,53.7007959045694],[-0.957673238859583,53.7050537839325],[-0.961272677176333,53.7076961696813],[-0.957714760664253,53.7148354865322],[-0.944083759740001,53.7125256827904],[-0.923399129904023,53.7186813425171],[-0.90524918728046,53.7170482896399],[-0.90667948792114,53.72717083525299],[-0.911557474995318,53.7282120401839],[-0.911911104185378,53.7329522387528],[-0.936511635645353,53.7319774573869],[-0.961044295686701,53.7361098041172],[-0.963113652288859,53.74646904718071],[-0.973605993671107,53.7498769108358],[-0.951578863520295,53.7537689753683],[-0.932093240664464,53.7621901655141],[-0.928354077667595,53.77029585951691],[-0.936686320783792,53.779871841623],[-0.928046611848125,53.7971580285177],[-0.934499012722836,53.80177718994899],[-0.92008626888864,53.8159768082748],[-0.940558065537095,53.82345141565891],[-0.945627249749354,53.8466499871841],[-0.941996897056635,53.8548127046723],[-0.944971932990121,53.857541680793005],[-0.948132287620523,53.86211562153459],[-0.939052305309573,53.8677352316246],[-0.940746147942074,53.87407348951],[-0.924897598399404,53.8780311902415],[-0.923517752139632,53.88076645194241],[-0.926835271698008,53.882562396695995],[-0.934434058718415,53.8798168156973],[-0.938611986000199,53.8875414936387],[-0.944071677500396,53.88812167251201],[-0.948027116927945,53.8848667385547],[-0.967709176971273,53.88283798133481],[-0.992832844574211,53.8752106640707],[-1.00820490058898,53.8899953340569],[-1.02154300020583,53.8883716477067],[-1.06495957481049,53.8745857914306],[-1.07767037523287,53.8835921565092],[-1.09560823301889,53.88457706488919],[-1.10042958517007,53.876625559022],[-1.10510306568287,53.8757328930524],[-1.12498419363064,53.882676139245206],[-1.13681895791749,53.89594281231571],[-1.14156891972693,53.892644123055604],[-1.15000612994804,53.8936397792575],[-1.16012305974027,53.9004321685468],[-1.16491618340105,53.9105761683001],[-1.17059551299625,53.9088214680954],[-1.17930476989312,53.9168976528455],[-1.18570867706945,53.9160635119397],[-1.19113317589854,53.9225818195046],[-1.1956382252846,53.92238013367349],[-1.22370550897198,53.9748292112224],[-1.21651948406111,53.98559046864019],[-1.20018162076133,53.9890322587732],[-1.19221957503991,53.98419214589591],[-1.18210315303178,53.98534526509079],[-1.18328278303072,53.9962160760703],[-1.19193543440137,54.0005194131129],[-1.18856985869846,54.002483054767204],[-1.17951484798006,53.9988606973548],[-1.17550999290166,54.00219660836691],[-1.15191246934286,53.9891781234417],[-1.13699822638128,53.9910826227764],[-1.14909066483636,54.00294738074119],[-1.14287563941118,54.010788192828194],[-1.1480685544236,54.01571167300521],[-1.14238105396031,54.0189527037248],[-1.144813671055,54.0255095077897],[-1.14079656188959,54.0298588147557],[-1.12016986628926,54.029025228461],[-1.11490325295866,54.0358402126158],[-1.09978098873375,54.0376891998908],[-1.10107705547693,54.040964124231806],[-1.09611228386203,54.0404518815946],[-1.09427798926928,54.0466257897442],[-1.0621707171145,54.0501377555441],[-1.05873382513449,54.0478451039287],[-1.05971219675545,54.0566069476114],[-1.01437741453304,54.04932181629119],[-1.00208473428272,54.055263068040006],[-0.99324945739153,54.042224010385],[-0.982312009875613,54.0394838913352],[-0.982242514434347,54.030903673303],[-0.973582962161695,54.0293690513652],[-0.970687724670915,54.02308355686391],[-0.966872483838607,54.022966599374],[-0.979421754929109,54.0174199219218],[-0.976940782550309,54.015773872727],[-0.982753447167886,54.01003043815079],[-0.97934906130364,54.0053106236705],[-0.984703334085532,54.0025503630241],[-0.975368566936891,54.00473244620859],[-0.971919430860756,53.9967101665702],[-0.979056756842073,53.9959706609623],[-0.981249570849006,53.9911542262156],[-0.995817988536795,53.9839810513635],[-0.984657476406473,53.981547889456],[-0.967044950205859,53.9859188211219],[-0.957680199242767,53.98395777977961],[-0.944362084243364,53.9891283488278],[-0.925294992911636,53.991518374903904],[-0.911935733361492,53.9928939060845],[-0.907491075896057,53.997548023701604],[-0.893534863052482,53.9997681032087],[-0.888555328533819,54.0095145287082],[-0.877668778591572,54.0135570051416],[-0.878419396623246,54.017200923145595],[-0.859731351947209,54.0163948557021],[-0.84302968036232,54.021610990086295],[-0.820366075223259,54.020873430353596],[-0.798988065050018,54.024090690005],[-0.799247602502679,54.0190518107476],[-0.734257303331504,54.0302587746812],[-0.730489261578151,54.0127008358487],[-0.710746124280855,54.0111713450451],[-0.70490243910112,54.0060723868692],[-0.681798469610617,54.0103552838417],[-0.6784159211839,54.018238757887],[-0.68848368074748,54.0240107072726],[-0.679868649542032,54.0366735306795],[-0.659484342246755,54.0371698266984],[-0.658017650079895,54.0436447752294],[-0.644653954650704,54.05511309769011],[-0.660316933915928,54.063100053781504],[-0.615523445115742,54.07049370970451],[-0.5910045583401,54.0870619663877],[-0.566466466891733,54.0903055747121],[-0.563137247607814,54.093999526447604],[-0.541816327501079,54.0915284829623],[-0.534030883073929,54.0871798307002],[-0.527927668486058,54.0893389378628],[-0.524616943026361,54.0854748039826],[-0.496889387319965,54.0972318310152],[-0.465942458016893,54.10763297777821],[-0.4683253854375,54.1112505413353],[-0.454351131499513,54.1167625123579],[-0.458539666811106,54.1259736092488],[-0.427093852639448,54.137442561892804],[-0.432659399003479,54.1575207138842],[-0.433168631458221,54.1640727154203],[-0.422926588307771,54.16631466732069],[-0.424556655578574,54.1695754826613],[-0.418108814732908,54.171220324660304],[-0.418250115583672,54.1740634171995],[-0.390747238234669,54.17652070623651],[-0.374526021282871,54.1625640489434],[-0.37492744814463,54.1541131538012],[-0.360037535400827,54.1531203479262],[-0.346397161515299,54.1468729425246],[-0.323841934250232,54.1502969345498],[-0.322652969618712,54.1452764262055],[-0.313765357888331,54.1464026795144],[-0.304082978565382,54.13627047505031],[-0.290565593426195,54.139755810266095],[-0.269068758599639,54.138333272683106],[-0.265419797803465,54.1405585100405],[-0.237224729040343,54.1372494069115],[-0.22974662180302,54.1324403558],[-0.229066116793716,54.1357275037054],[-0.221691468642107,54.1379729736178],[-0.2126028937597,54.1576066678597],[-0.232852441201026,54.1618271575338],[-0.263254737676529,54.1759538619303],[-0.264452670666596,54.176510139949904],[-0.272247501381746,54.1844220253849],[-0.274531199287862,54.1860097808572],[-0.275281527618684,54.18750066511391],[-0.282750812700331,54.1950775305183],[-0.285226577271916,54.20318811262191],[-0.285069908012207,54.20354894444971],[-0.280133637094091,54.2149136740316],[-0.275394771128287,54.2176691265164],[-0.259259432499059,54.21587844539621],[-0.302521423965149,54.22718979535661],[-0.312710986534603,54.2286240697203],[-0.31397035179106,54.2320159183523],[-0.334891879665977,54.2383811502171],[-0.338683928216684,54.24261389959301],[-0.350390387984304,54.2408799006973],[-0.363890554746246,54.2450950743591],[-0.369505123760274,54.2493254801055],[-0.367132808632752,54.252419772708805],[-0.369047732765457,54.2551957488855],[-0.36966441702688,54.255457049705],[-0.396598182541091,54.2744010851405],[-0.397115109274973,54.2787328426363],[-0.397198626833328,54.279432623006],[-0.384764629861926,54.2856305150222],[-0.384391971438381,54.2858634341673],[-0.386572044844315,54.2902519938519],[-0.39104107273342,54.2897922032056],[-0.3914123188791,54.2896788097649],[-0.39384581871456,54.288935473377904],[-0.395137196949791,54.2883121710139],[-0.39541080714326,54.2884573863226],[-0.396806649205536,54.2880309408416],[-0.405890573536069,54.2921025909404],[-0.406699041059184,54.2944470227213],[-0.406906668821916,54.2945571659936],[-0.406839002209741,54.294852856892504],[-0.409490738151108,54.3025403454538],[-0.408700090103184,54.3037016928665],[-0.407656148310063,54.305234969418805],[-0.410755279831088,54.30687653935801],[-0.411282368831237,54.30682785926471],[-0.411392526480589,54.3069231587009],[-0.411562779954012,54.3069103801988],[-0.411970350038661,54.30742303268259],[-0.412259677308492,54.3076733229684],[-0.417605864530287,54.3105044589646],[-0.418825743622271,54.319554074281506],[-0.418870688230642,54.319887414635],[-0.421601051529921,54.325998134016295],[-0.417052817354389,54.3314652381217],[-0.423318253567165,54.3390288668],[-0.432634531991137,54.340143490913405],[-0.433084499224217,54.3503119755095],[-0.446985139391397,54.35936007595691],[-0.447077887976065,54.35978907629771],[-0.449827050936879,54.372501051107704],[-0.461604919981113,54.3856930719567],[-0.461639780836586,54.385732104874],[-0.461674641791293,54.385771136883],[-0.471722570407676,54.397017933525],[-0.47670831201493,54.3997689702072],[-0.483595833681908,54.402855589649],[-0.484955401396252,54.4043183843953],[-0.491471132845962,54.4079116621225],[-0.502789279559828,54.407371246322],[-0.522785329106211,54.4162747290661],[-0.531109728814527,54.4255089297409],[-0.531667453804413,54.4362922487716],[-0.52254870631944,54.4408871460717],[-0.521476959252688,54.4469678126923],[-0.556948758655429,54.4651205919741],[-0.56890838191931,54.4797474264871],[-0.585220563172056,54.483883218323896],[-0.588163957707713,54.488639634261304],[-0.589570190080838,54.4889660645758],[-0.592423961946027,54.4881098189403],[-0.593332412332016,54.4878372258877],[-0.609346431860803,54.4905075845319],[-0.60983922085226,54.4910396906911],[-0.609896454587984,54.4910445891339],[-0.61232864813896,54.493381511808906],[-0.612453871242038,54.4920198976649],[-0.612642556442935,54.4925396109843],[-0.612877256914463,54.4908187816539],[-0.613411306290521,54.4869025511028],[-0.61327057175806,54.489702912272605],[-0.613068949901058,54.4937140182626],[-0.613163808004166,54.4939752747162],[-0.61423697920528,54.4909744376891],[-0.617523241272979,54.49156945177259],[-0.639997776227128,54.4956358628561],[-0.640217624849435,54.4956730609042],[-0.67027867888638,54.5007549178771],[-0.675089283346688,54.50604660150591],[-0.672669483955875,54.5125207410111],[-0.67315970891528,54.5128819798952],[-0.677144645688413,54.5139769465392],[-0.677522516057554,54.51609649845751],[-0.682377849149916,54.5196731396808],[-0.693713316663246,54.5203901822626],[-0.712981157287476,54.5336420025317],[-0.720111597437353,54.5314122722954],[-0.720208475600829,54.531120370711896],[-0.721385266477457,54.5310139182798],[-0.731290023249869,54.5279153719394],[-0.744657289649001,54.52854016422981],[-0.745476430478725,54.530281057596795],[-0.748547355414325,54.5331551441924],[-0.747332196023069,54.53422449648],[-0.750948043643314,54.54190571917021],[-0.764852233974672,54.5457577663052],[-0.767257297448893,54.546423836373606],[-0.765416152855772,54.54837058591091],[-0.765172364272082,54.5486842515514],[-0.774184063692499,54.5532527230065],[-0.774535975882038,54.55739946391]]]}},{"type":"Feature","properties":{"name":"Nottingham","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-1.18452541509796,53.0163861645589],[-1.18770229761614,53.0178848393917],[-1.1951848303333,53.0154509905851],[-1.20988267810726,53.01814266384331],[-1.2129754550261,53.0126878311083],[-1.22514776798074,53.0080958021553],[-1.21870096282105,53.0064851917433],[-1.22059709885258,53.00340619909599],[-1.21393769423443,52.99739635192801],[-1.21910727681773,52.9914992580779],[-1.20340553428798,52.9875428088163],[-1.20361184635732,52.9870241909204],[-1.21505151253699,52.98314408814951],[-1.22252944096429,52.9860274640939],[-1.22608229189562,52.9811688024051],[-1.24683864344809,52.98454319458761],[-1.23197884944612,52.9676427065689],[-1.24076196938848,52.963051453322],[-1.246822462235,52.9530990224474],[-1.24507123647342,52.950392953117195],[-1.23242725356045,52.94204906819291],[-1.22425922081294,52.9424637205367],[-1.21712479253422,52.9389318556822],[-1.21529156825301,52.9339916751393],[-1.20510823215116,52.93339743107241],[-1.19577413411665,52.9278616224005],[-1.1823012510609,52.9173362705305],[-1.1990092076238,52.9094788675439],[-1.21050473395765,52.91226966712299],[-1.21391985222849,52.90441478760991],[-1.21657296188838,52.9001649323358],[-1.2113016463356,52.902612115395605],[-1.19122988481927,52.896636366202706],[-1.17681274257164,52.889029043300404],[-1.1694484292143,52.897426234600694],[-1.15860361808389,52.9000621139604],[-1.15894398036749,52.91225113058421],[-1.15889253203276,52.9127906825806],[-1.15228878148246,52.93702645233141],[-1.14639366567015,52.932174865403],[-1.13925314186153,52.9332587996254],[-1.13159541020477,52.94285921042129],[-1.11510527231586,52.9438842970435],[-1.0996766978426,52.94197513541451],[-1.08611507246246,52.9485698839615],[-1.09654484873856,52.955458998226],[-1.10405829154103,52.9640828787554],[-1.11518974485093,52.9648565910303],[-1.12004756198219,52.9720715856231],[-1.12639541870694,52.9847915547882],[-1.13118994908164,52.986074381179],[-1.14248865969578,52.9862884053635],[-1.13825471637456,52.9948435788441],[-1.14609311552652,52.99837802647351],[-1.15238373121193,52.9966403711571],[-1.14351267958868,53.00650114449051],[-1.16678321067108,53.0106206826474],[-1.16777262148403,53.0142728122599],[-1.18448161805232,53.0144459867537],[-1.1827461829988,53.01856914589],[-1.18452541509796,53.0163861645589]]]}},{"type":"Feature","properties":{"name":"Nottinghamshire","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-0.694764022450452,53.2584022630891],[-0.734150803388177,53.2540040459026],[-0.73508333879074,53.2438739831484],[-0.77707445272525,53.2469081695812],[-0.778486870404097,53.2519926950049],[-0.770175411225677,53.2530973744272],[-0.773098858740922,53.2607361086255],[-0.764279778594267,53.2727392389111],[-0.778205595813031,53.2836087955952],[-0.768517982745236,53.290581096636],[-0.762983371728216,53.2995796803503],[-0.757884107084989,53.292817897412],[-0.750179231138818,53.2945415893939],[-0.74715298067211,53.30444487795359],[-0.753294826874351,53.31044030026389],[-0.75368613288448,53.3202517898223],[-0.750051550807065,53.3243173732238],[-0.760118268979831,53.3246858170727],[-0.766473605946302,53.3301074983394],[-0.758053842009266,53.3419101850886],[-0.764811639794798,53.346323950815304],[-0.75861635902076,53.3538375874827],[-0.773442568588355,53.3639877955655],[-0.780831843590513,53.36124716597259],[-0.791098332994525,53.3634793030877],[-0.786036473216742,53.374552993281306],[-0.775569382196442,53.3774026413517],[-0.786757536962154,53.3843090653077],[-0.790219652697241,53.3862921127519],[-0.776344733287152,53.39148223467739],[-0.777442868144384,53.3974083380444],[-0.785690561156439,53.40211820541891],[-0.791397571558166,53.41051529461381],[-0.788421349108204,53.4143576034985],[-0.803632365577952,53.4171429650424],[-0.817002950376436,53.4256646223724],[-0.81940272945888,53.437162890484],[-0.82016310807637,53.44112911292181],[-0.809539970863045,53.4436126661277],[-0.797483349537156,53.4550644469113],[-0.871919281432214,53.4663108039549],[-0.873735876464382,53.461478439464905],[-0.916249020723134,53.460295689715494],[-0.920246794246959,53.4655076505704],[-0.9004706270826,53.4751558672792],[-0.935564625288195,53.5025165293909],[-0.953259205587141,53.4844235292892],[-0.985978085087804,53.471673371995],[-0.985547613494418,53.4613539679914],[-0.997518157485324,53.4436550476871],[-0.995669798894032,53.4369266843309],[-1.01245806584945,53.432795871581504],[-1.01434673955409,53.4262954965662],[-1.0231689421522,53.424514385823706],[-1.03051529485536,53.4251953103943],[-1.03094981877621,53.43097952640141],[-1.05705081935865,53.4253598763942],[-1.07326792409618,53.4280574424899],[-1.08043943279743,53.4268678599403],[-1.07912295943339,53.422809131626],[-1.08704609824437,53.4255440500069],[-1.09873738770383,53.418734751956904],[-1.10822686375117,53.405881775697],[-1.11604100602787,53.40734935379681],[-1.11557938044441,53.3971857499007],[-1.12281104249626,53.3983123997692],[-1.13327807155101,53.391378317332396],[-1.13349259127567,53.3914806103838],[-1.12999587827008,53.3775655693914],[-1.13821895827,53.372252442315805],[-1.14491869953193,53.3712453383554],[-1.14644015470332,53.3657334895204],[-1.14517823272168,53.3633828008094],[-1.14055426651146,53.3640597098401],[-1.13853968203233,53.3559075142163],[-1.15169338424547,53.354485369101894],[-1.16194934785768,53.3579088239998],[-1.16195415042171,53.3542126662887],[-1.15684339220656,53.344969500268],[-1.14029306249295,53.34652996049931],[-1.13871810210376,53.34138281177991],[-1.14862053823827,53.33850660869861],[-1.15938481429022,53.3335089646057],[-1.17511085119313,53.3256773773655],[-1.17448181183083,53.3213908680466],[-1.19032335351259,53.31993199957],[-1.19974106069052,53.3114394544059],[-1.1872198898994,53.3039792852605],[-1.17942724363697,53.30640581961989],[-1.17417524206695,53.302534187434],[-1.17432521143318,53.29836415608311],[-1.17156289293514,53.2946379730149],[-1.1801170205129,53.287134745935305],[-1.1664875414478,53.277655368261],[-1.18154150249029,53.2700320636288],[-1.17479721143818,53.2651132429105],[-1.20261704291875,53.2611191046194],[-1.21245933128975,53.2455858747039],[-1.20199681749734,53.23555531874091],[-1.20942448225347,53.2176967645087],[-1.20473777440564,53.20828249392531],[-1.20096989981198,53.2039603128612],[-1.1950553172322,53.1893591659548],[-1.19880149028466,53.18308930367121],[-1.20429187252152,53.1823583417241],[-1.21566099193439,53.1809072918079],[-1.22991342830116,53.178494008476605],[-1.24168910780375,53.1781488083139],[-1.25317195893866,53.1655178811434],[-1.25993009829984,53.1644809106531],[-1.26897895743025,53.16819389660459],[-1.28195979961097,53.1674206172274],[-1.28875775031709,53.171455291778706],[-1.29596178794204,53.1712248619122],[-1.30071178856708,53.1642145389807],[-1.31655016334559,53.1653619517486],[-1.32344684110941,53.1623424531774],[-1.32558340645085,53.156474886819005],[-1.31881519142677,53.13971854663939],[-1.31513872250266,53.1360802767861],[-1.3217802282925,53.1306503063911],[-1.31424760648306,53.12491431695881],[-1.31229251664658,53.1163203057354],[-1.31066232067538,53.1102567490466],[-1.31183281292282,53.1087057277635],[-1.30072893365452,53.1016202841886],[-1.30925140895617,53.096770174260406],[-1.30323570997794,53.088083753762504],[-1.33163547679324,53.0809878876668],[-1.33471712413769,53.0775721207868],[-1.34383457830861,53.0687295616196],[-1.34411229730592,53.0623315669311],[-1.33586846310334,53.05296584669221],[-1.33577283024486,53.0507431645501],[-1.33311042063717,53.03388230610831],[-1.32802292959309,53.0292358606881],[-1.3226987084974,53.02159174652151],[-1.31335542530561,53.00523888572231],[-1.30798563898118,53.0038728201786],[-1.30744372494867,53.0036547888145],[-1.30071999771818,52.9918305136975],[-1.297763250917,52.989688052682204],[-1.29498660469883,52.9798645217354],[-1.28774933165725,52.9696624541577],[-1.29056289692332,52.9597737746676],[-1.29250116524851,52.95557367756],[-1.28241369178995,52.9512352046975],[-1.28277223488479,52.94555690957641],[-1.28113338190219,52.9408050658292],[-1.27915905898206,52.9368288955695],[-1.2781319803867,52.9336276315613],[-1.28577706138121,52.9260650757905],[-1.28282150884071,52.91928894456381],[-1.28193610087569,52.910756190768595],[-1.27168556230913,52.9051132050397],[-1.25647464523174,52.9017856493761],[-1.24661598896431,52.90309989441149],[-1.24742362041207,52.8986992568112],[-1.23970599304057,52.892289237496094],[-1.24639858780154,52.8891378624584],[-1.23898534810158,52.8835243372726],[-1.24005549011668,52.8801088572395],[-1.25361099778125,52.87928582829839],[-1.26610427530758,52.87331182169931],[-1.26788907937114,52.8733686514596],[-1.27528282314089,52.8603800401658],[-1.26456648187523,52.858368864858306],[-1.27220553440137,52.849439825366794],[-1.26621223436405,52.842753437571304],[-1.26907219041563,52.8403339522208],[-1.26693362244919,52.8374702030258],[-1.27436347501172,52.8361295182939],[-1.27003719602656,52.8233172125951],[-1.26094180629794,52.8179778242281],[-1.26192675778543,52.8104533294567],[-1.25536431835604,52.80415201304041],[-1.24536739827731,52.80616294345911],[-1.23187054060526,52.8006413007809],[-1.22840698829114,52.79310798596901],[-1.22195327821202,52.7917687287077],[-1.2112397806418,52.794929886414096],[-1.20028897382006,52.7937878733869],[-1.19613782241416,52.7901649582826],[-1.17667671245216,52.8026334424616],[-1.16187786123771,52.8063937503018],[-1.14396361539544,52.8038765836897],[-1.13089307263852,52.8058269116307],[-1.12124801302487,52.8123661253857],[-1.11916312408012,52.8191505334934],[-1.09419106682462,52.821968935189496],[-1.09148493631761,52.8200801962469],[-1.07443530143318,52.8247266344066],[-1.06881230510079,52.8212360453904],[-1.07173821252654,52.8140112117332],[-1.0592050477107,52.8172496258402],[-1.04976617823858,52.8134480920113],[-1.03669547443137,52.8159651527506],[-1.03628929191991,52.8158772842477],[-1.02193315697324,52.8220518883665],[-0.995675442788432,52.8212703496169],[-0.989003720968529,52.8182501371527],[-0.975051215913303,52.8292284274244],[-0.977074582062935,52.8407376633052],[-0.970612529973507,52.8449852738871],[-0.960851701085498,52.8433566644294],[-0.952771633929888,52.85040917099929],[-0.941175244269369,52.8539598331914],[-0.940827057037892,52.8615639322597],[-0.928121482481403,52.8660833095459],[-0.940573916542046,52.8768561313973],[-0.916924921846032,52.8789315831176],[-0.911976840653049,52.8835610855452],[-0.885480648270317,52.892621725218206],[-0.85763357391753,52.9056423200794],[-0.862893425264728,52.913113845254806],[-0.841372678574138,52.928382892568],[-0.834889388398823,52.939345532405305],[-0.822811634981401,52.94370708157731],[-0.833908629870818,52.945880503283206],[-0.820021885123097,52.9604644294128],[-0.812850938336058,52.9574642126954],[-0.809812386920476,52.9659796025487],[-0.796150034418614,52.9767315027749],[-0.778278647253454,52.97692337951],[-0.777554194191861,52.9838066699412],[-0.800189486885073,53.0021937312509],[-0.804273711459655,53.0122456805369],[-0.795824908778034,53.0105980780874],[-0.788413809258192,53.0258533556871],[-0.776672919807498,53.024711127449905],[-0.760826457019771,53.02941033915871],[-0.753330872400811,53.0482422739359],[-0.749554900937766,53.0551098447195],[-0.73107451400749,53.0543457343132],[-0.722597608787722,53.059922188952],[-0.716203841365838,53.0590587016488],[-0.713466500275659,53.06604655401681],[-0.701539000308792,53.0636633116388],[-0.695144260163121,53.0665304037453],[-0.698805874616782,53.0677463403882],[-0.698482165063602,53.0754675823197],[-0.710358283072346,53.079377817485295],[-0.706149360039511,53.08337842581601],[-0.724383220773675,53.09258902319571],[-0.729617825692047,53.0979020211063],[-0.721250544059523,53.1042679775761],[-0.716882507111126,53.11944396268719],[-0.731091968342561,53.12400295528591],[-0.732407362918311,53.1278015877576],[-0.715375394751415,53.136882863606],[-0.723232204800026,53.1551038705864],[-0.716028276283723,53.1704120819459],[-0.718160267478104,53.1772877899828],[-0.764137929460812,53.1815438027694],[-0.762167689470256,53.1882393676831],[-0.753766368007178,53.1881562848662],[-0.730569016450559,53.2107564502185],[-0.714752926702038,53.207607769642],[-0.697616436379696,53.2202372907866],[-0.675872140728609,53.2176443564103],[-0.666577004989044,53.239702496516905],[-0.688027280325921,53.25839124070309],[-0.694764022450452,53.2584022630891]],[[-1.21391985222849,52.90441478760991],[-1.21050473395765,52.91226966712299],[-1.1990092076238,52.9094788675439],[-1.1823012510609,52.9173362705305],[-1.19577413411665,52.9278616224005],[-1.20510823215116,52.93339743107241],[-1.21529156825301,52.9339916751393],[-1.21712479253422,52.9389318556822],[-1.22425922081294,52.9424637205367],[-1.23242725356045,52.94204906819291],[-1.24507123647342,52.950392953117195],[-1.246822462235,52.9530990224474],[-1.24076196938848,52.963051453322],[-1.23197884944612,52.9676427065689],[-1.24683864344809,52.98454319458761],[-1.22608229189562,52.9811688024051],[-1.22252944096429,52.9860274640939],[-1.21505151253699,52.98314408814951],[-1.20361184635732,52.9870241909204],[-1.20340553428798,52.9875428088163],[-1.21910727681773,52.9914992580779],[-1.21393769423443,52.99739635192801],[-1.22059709885258,53.00340619909599],[-1.21870096282105,53.0064851917433],[-1.22514776798074,53.0080958021553],[-1.2129754550261,53.0126878311083],[-1.20988267810726,53.01814266384331],[-1.1951848303333,53.0154509905851],[-1.18770229761614,53.0178848393917],[-1.18452541509796,53.0163861645589],[-1.1827461829988,53.01856914589],[-1.18448161805232,53.0144459867537],[-1.16777262148403,53.0142728122599],[-1.16678321067108,53.0106206826474],[-1.14351267958868,53.00650114449051],[-1.15238373121193,52.9966403711571],[-1.14609311552652,52.99837802647351],[-1.13825471637456,52.9948435788441],[-1.14248865969578,52.9862884053635],[-1.13118994908164,52.986074381179],[-1.12639541870694,52.9847915547882],[-1.12004756198219,52.9720715856231],[-1.11518974485093,52.9648565910303],[-1.10405829154103,52.9640828787554],[-1.09654484873856,52.955458998226],[-1.08611507246246,52.9485698839615],[-1.0996766978426,52.94197513541451],[-1.11510527231586,52.9438842970435],[-1.13159541020477,52.94285921042129],[-1.13925314186153,52.9332587996254],[-1.14639366567015,52.932174865403],[-1.15228878148246,52.93702645233141],[-1.15889253203276,52.9127906825806],[-1.15894398036749,52.91225113058421],[-1.15860361808389,52.9000621139604],[-1.1694484292143,52.897426234600694],[-1.17681274257164,52.889029043300404],[-1.19122988481927,52.896636366202706],[-1.2113016463356,52.902612115395605],[-1.21657296188838,52.9001649323358],[-1.21391985222849,52.90441478760991]]]}},{"type":"Feature","properties":{"name":"Oxfordshire","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-1.52282569381325,51.9968433232583],[-1.52792904821891,51.9917543158507],[-1.54174159477537,51.9964320602947],[-1.55722360987893,51.9916576656612],[-1.5496712341503,51.9808596590458],[-1.56353907898642,51.97704037048901],[-1.58057305586184,51.97299599175751],[-1.60030155963125,51.9769415562367],[-1.5916338243768,51.97044997144431],[-1.61234247849955,51.9554034171782],[-1.63831467408256,51.9751718378541],[-1.66575430454863,51.9874888219864],[-1.66894325930551,51.9752727375736],[-1.66252911046192,51.96400494758],[-1.65237458389309,51.96151186323759],[-1.65536694409537,51.9575034685354],[-1.64892655470324,51.9589248394723],[-1.63249065036283,51.955651458834694],[-1.61518893058729,51.9376816298851],[-1.64552984349675,51.922294256844104],[-1.64118208193421,51.9215618315515],[-1.6448892968022,51.913715799327],[-1.63484112597183,51.9128831128553],[-1.63374549783719,51.9054746367277],[-1.63325262377541,51.8995830309447],[-1.64488272263789,51.89460076531089],[-1.6586519744456,51.8965511935467],[-1.66895716387556,51.881504378386495],[-1.66711188278055,51.8770000586035],[-1.68635122945085,51.86629235359341],[-1.67869369640775,51.8529225185115],[-1.67638499897572,51.8503096863382],[-1.68646159226861,51.834455791808],[-1.68112008394852,51.8160526645229],[-1.67685963544216,51.817024675023],[-1.68375295466747,51.8013375250482],[-1.71948863302901,51.783211828608],[-1.70070464063817,51.7705842309133],[-1.69486551241876,51.748575013910894],[-1.6870208353919,51.7398840237491],[-1.68550782018289,51.7306341692012],[-1.69581834766911,51.72377291612],[-1.69370645393313,51.721587917113],[-1.6861662033357,51.7101759451736],[-1.6646996737265,51.6968786945925],[-1.65743813962788,51.69645132204031],[-1.64825374342062,51.6840870667632],[-1.66845860139018,51.6804375698815],[-1.67520821810946,51.68253524078211],[-1.67601545528862,51.6884070407182],[-1.68305860763384,51.6901103608739],[-1.69651831061135,51.6821163773715],[-1.70018909588819,51.6707416649703],[-1.69062315863403,51.6637835833815],[-1.68849517464084,51.65678798909269],[-1.69193809184422,51.6521645874729],[-1.68627335008817,51.652381639396],[-1.67566946189523,51.64142547779339],[-1.66330747014688,51.639930521631],[-1.65995432000758,51.6349908726268],[-1.67373615894307,51.6228498665634],[-1.66700965139022,51.616264474011906],[-1.6749552846623,51.6117512687316],[-1.68131999668135,51.6135616179683],[-1.69061673406566,51.6054499290187],[-1.68475642339567,51.5903268875702],[-1.69042935937104,51.58438693327079],[-1.69111065938545,51.583523727724],[-1.68405026397286,51.5729005120114],[-1.6765398170414,51.5694390418873],[-1.65504455154451,51.576506273878],[-1.64769133240668,51.5719518965806],[-1.63407057049667,51.55325654836909],[-1.61375011177629,51.53651052754581],[-1.60281227577577,51.518295057349306],[-1.58470801107569,51.52491211925731],[-1.58118687450076,51.5369949629826],[-1.56935939012213,51.5432830853702],[-1.57000733778943,51.54738020902679],[-1.56610330835457,51.5455616307106],[-1.55637048188363,51.5530056753395],[-1.54740130367212,51.5530828194895],[-1.53095864819817,51.5460694666429],[-1.51667980498562,51.551185264877894],[-1.49588867042186,51.5456623695028],[-1.48603172182756,51.540566294922904],[-1.48585654515028,51.53407887673361],[-1.47625207831466,51.5307805623964],[-1.47074436480117,51.52860683895779],[-1.46298772277674,51.530190998078],[-1.46442254094774,51.53851669873169],[-1.45675654753808,51.53545842589129],[-1.44783186160006,51.53642654293241],[-1.42659119274702,51.5455988598669],[-1.42276866886813,51.5357649276512],[-1.4048577107684,51.547235218489206],[-1.39585044290582,51.5403449801877],[-1.38890343803659,51.53989004635461],[-1.38069852831369,51.5422587107803],[-1.37795127156054,51.549686558983],[-1.36901495641398,51.5522078532524],[-1.35568713171591,51.5467514344195],[-1.34398803780228,51.5433777386493],[-1.33795149512824,51.545777032762096],[-1.3287207966799,51.56371241350331],[-1.32629751267927,51.5595821686757],[-1.28756085320867,51.5528463765247],[-1.28552135777383,51.54833098100631],[-1.27019965326774,51.5446203852576],[-1.26065559107578,51.5377899051538],[-1.24016469054173,51.5376582374691],[-1.22994143157423,51.5346136394912],[-1.22679203559485,51.5351584620885],[-1.20464416143085,51.537603894896],[-1.20465030082425,51.5283945154373],[-1.16079819884198,51.5345895410257],[-1.14037476539537,51.54291130179471],[-1.13444628545696,51.5337221327432],[-1.14353568436213,51.5234545122815],[-1.14205314180795,51.5161954403677],[-1.13369703171058,51.511286565634705],[-1.11478444104064,51.5104817769441],[-1.10696906919337,51.5010965122665],[-1.10277657673746,51.4901709246292],[-1.08836180760873,51.485752747895994],[-1.07114806131569,51.4897405513217],[-1.0554224440951,51.4920375051549],[-1.04359339744857,51.48938076641],[-1.0373965566499,51.483821752299704],[-1.03655747902791,51.4752267537986],[-1.01820453413265,51.4665845234538],[-1.00731612095274,51.4682487411558],[-1.00692929892472,51.4734215412713],[-0.998181103275749,51.47754999575031],[-0.998398933904973,51.4843048210687],[-0.975346652461808,51.48743462039499],[-0.961805026869276,51.49309190829031],[-0.947011082887946,51.4860620793355],[-0.941136941423418,51.47497765188451],[-0.94676254091457,51.4717220130085],[-0.949440846834799,51.4649308949089],[-0.955183900010933,51.4653338428556],[-0.955452550255554,51.4612565039848],[-0.949167813983683,51.459513324054704],[-0.926867203070439,51.4672847034017],[-0.910608236181327,51.476830922531605],[-0.908185942742069,51.4839605854204],[-0.897651733807532,51.4870453090834],[-0.889739033585301,51.4987807473634],[-0.870025174755948,51.5043908449018],[-0.880209071729495,51.5116116997867],[-0.87821821879587,51.5230179824435],[-0.883906962801385,51.5271582506],[-0.899805113789272,51.53619885788859],[-0.896882190115767,51.5448630133878],[-0.903193462906486,51.545878412467],[-0.901680596010387,51.556165773804295],[-0.924146199566411,51.5635245719703],[-0.939278571691587,51.574058231357604],[-0.94147123230418,51.5855069546108],[-0.92487957313995,51.590888417516],[-0.916898658092151,51.5992900750035],[-0.920174961543613,51.6036114161861],[-0.929140186536174,51.60432357377871],[-0.933667157257366,51.60165980366391],[-0.94313882206788,51.6050164379807],[-0.938644424025197,51.617786881243994],[-0.949793442539434,51.620677719526],[-0.950029511752735,51.628907164704806],[-0.935399465251419,51.6356575652282],[-0.93753796408359,51.641649107884305],[-0.950725842013544,51.6507411973348],[-0.944983566135686,51.6497905886714],[-0.946317539698129,51.65378409314949],[-0.933169253013909,51.6526017316578],[-0.929430643277009,51.655748967723305],[-0.927251214485182,51.6514436207499],[-0.923098238248616,51.6569966727556],[-0.932212883219972,51.66486846668321],[-0.924889163522498,51.6654275018472],[-0.9177290186767,51.672400407801206],[-0.910381089773741,51.6738494086506],[-0.894745408592195,51.66825435493741],[-0.877706762468148,51.6683850758408],[-0.884134738409278,51.673774778444006],[-0.897896373360577,51.6764007553867],[-0.886763509224145,51.681390558767],[-0.879895887122356,51.6808648769757],[-0.894772980132941,51.692522289090405],[-0.886557787778826,51.70508339456941],[-0.887682430834599,51.718343369319705],[-0.897164846303656,51.7228485516005],[-0.904027615988972,51.73199614919],[-0.912782127785908,51.7370282589383],[-0.918271981676962,51.73721231154511],[-0.924115298282359,51.7477150779008],[-0.928477641856041,51.7459363804543],[-0.933204634951446,51.7523403375452],[-0.944908128981125,51.753639410810706],[-0.954122405769175,51.7578469475703],[-0.973852785785747,51.758017385782],[-0.979612216726482,51.7607182368057],[-0.98335282784315,51.7524253401609],[-1.00152168150882,51.7548060087333],[-1.02982767504363,51.7578812989774],[-1.02962245233168,51.745958569062],[-1.03362947846765,51.7445913153948],[-1.04547146097639,51.7445992127829],[-1.05497291367935,51.752181152198105],[-1.06638474209488,51.7536246219018],[-1.07289187228219,51.758322808374004],[-1.08085173738086,51.756553657355],[-1.08280072816908,51.7641145267598],[-1.07884842166186,51.7712660868914],[-1.08294808702326,51.7802959088154],[-1.10636133376123,51.781630502706],[-1.11538222756803,51.786899238899004],[-1.1219433760433,51.78708060087321],[-1.11999199769274,51.792292679969],[-1.12354117099906,51.7941812934693],[-1.11740594422599,51.79916705564871],[-1.12488968962276,51.80751121424459],[-1.11009656481819,51.8173050363525],[-1.14067612335695,51.8346897793604],[-1.12159886352224,51.8453420987276],[-1.07844944295484,51.8292545769782],[-1.06858822372448,51.8346355486796],[-1.06190663992774,51.832384099037],[-1.0471229362899,51.839813663525405],[-1.06197784920729,51.8441266357268],[-1.06603118926824,51.8528166936942],[-1.0646424320269,51.86869718334621],[-1.06916605487643,51.87464490989671],[-1.07760518877841,51.876730766172],[-1.06897524962351,51.8872626698247],[-1.09351899137334,51.89393689670269],[-1.08425394583128,51.8995449104214],[-1.08627905028487,51.9053194575681],[-1.07935639023285,51.917221982244904],[-1.0866733468149,51.9226458788993],[-1.07553464426011,51.9299381386112],[-1.0775489766958,51.9316433756794],[-1.06211152138417,51.93513682147951],[-1.05591878344624,51.9425987397017],[-1.0570110701296,51.9492854178967],[-1.07895146640041,51.9433664355141],[-1.08191070921201,51.95099886814891],[-1.09523554148005,51.9571226711615],[-1.07818603361476,51.9810573532075],[-1.05317192410626,52.0025360993267],[-1.060847344146,52.0086108302234],[-1.07392826499607,52.00632180906501],[-1.07715485149777,52.0088233112622],[-1.08806201965996,52.005781963109506],[-1.0959191417349,52.0149695102705],[-1.10287760239104,52.0120897203171],[-1.11197965433708,52.0165923192432],[-1.11808639729751,52.0154261720851],[-1.13125300387364,52.004884762190905],[-1.13432869833779,51.997296387881],[-1.15665084555343,51.9922344485827],[-1.16382348465592,51.993412226747],[-1.17605459021517,51.9820454256219],[-1.19069010919795,51.9815229351726],[-1.19625975033443,51.9774314432067],[-1.20064173500788,51.9779449492808],[-1.22970036353007,51.981367288237806],[-1.24161223468245,51.9862933638439],[-1.26091547858507,51.9809261487788],[-1.2808650876571,51.982364058425205],[-1.2827265538289,51.9792276424064],[-1.28885910718564,51.9897258134214],[-1.28299663017471,51.9915028894947],[-1.28340131403281,51.9994605179429],[-1.27706599557563,52.005359455879],[-1.28452102411918,52.0108219644116],[-1.2786317866307,52.0113677972422],[-1.27816401885651,52.0142726693672],[-1.28531659980946,52.026477308393],[-1.29431272330077,52.0280357038644],[-1.2916993923757,52.03097800108831],[-1.29644664056899,52.0408649979585],[-1.30908047396808,52.0487941381746],[-1.31292004347286,52.05145266343991],[-1.30737993686574,52.05758980958609],[-1.30776849251888,52.06435227507679],[-1.30217547762678,52.0650188728463],[-1.30006694932791,52.069363374015],[-1.30690320754818,52.0703135412422],[-1.29750881413832,52.07805669481021],[-1.29936065291899,52.08010150135371],[-1.31661509018271,52.07960572362919],[-1.32054194077096,52.0821953213381],[-1.32082434055465,52.0876283548837],[-1.30796305919187,52.0922729051686],[-1.28712528571812,52.0926388554507],[-1.27157559984839,52.0979276350751],[-1.24795949194466,52.0957727286746],[-1.25292760020494,52.10387447993611],[-1.27682955803015,52.117076413092704],[-1.3084327474021,52.1435086007216],[-1.30642973044051,52.1455530830734],[-1.3318971346503,52.168485056197],[-1.33400384985707,52.159083100572005],[-1.33823645896466,52.15884306437239],[-1.34345868249695,52.1532350096525],[-1.34104036067521,52.1448563450253],[-1.34993649836799,52.1415918021256],[-1.34870940656972,52.1351376009654],[-1.36614709694777,52.136075238415],[-1.38546286731994,52.1284031609129],[-1.39330253064253,52.1189629049398],[-1.39070028494808,52.1167889397544],[-1.37084214071868,52.11753418349141],[-1.3703665205399,52.1127178353701],[-1.36518340095581,52.111301842125805],[-1.35776965526573,52.101310424564],[-1.37442365977537,52.0997260027222],[-1.38539981246728,52.0941455730689],[-1.40389417532836,52.1100898598062],[-1.41962973994691,52.117641745241706],[-1.44885625484416,52.1160379918892],[-1.4534689049737,52.1129908893269],[-1.44718785165916,52.09762503295611],[-1.46755929874001,52.0970564720819],[-1.47730164801721,52.1013509449693],[-1.48006671913531,52.0935584793174],[-1.48780444309778,52.0939574330421],[-1.48560745557967,52.087733439499],[-1.49435496612554,52.0822274600486],[-1.4906652806865,52.07713532073189],[-1.50185527404318,52.071626630657605],[-1.49926544313962,52.0635346461574],[-1.49735329861192,52.0589545427624],[-1.51020903963636,52.025496325755],[-1.52282569381325,51.9968433232583]]]}},{"type":"Feature","properties":{"name":"Plymouth","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-4.106707937452131,50.43486852694001],[-4.10874721370554,50.4383224324496],[-4.11348830320444,50.44415380163889],[-4.1226762948956,50.440817769012995],[-4.1248785649661,50.4357100956083],[-4.13566341622028,50.4329284402434],[-4.14657472331296,50.431102206650706],[-4.151121756033281,50.43663524407331],[-4.155855546050719,50.4364270138787],[-4.1653034665691,50.4299975714905],[-4.16339203230722,50.4275119722436],[-4.169536630715861,50.4231332172775],[-4.178041905503681,50.4234948523653],[-4.17797661299792,50.42345274550009],[-4.17660675530472,50.4225693118695],[-4.169472937264249,50.4223695013479],[-4.1697131656479,50.4222205631946],[-4.17586853058981,50.421976029994106],[-4.18579383654608,50.42362120705891],[-4.186235256847999,50.42372893865199],[-4.19234041838316,50.4246825662695],[-4.195071194280911,50.419120756066],[-4.200548061497791,50.4079614075088],[-4.19958869018324,50.402899246886605],[-4.20441291866276,50.40008211435921],[-4.204875033679931,50.3988195728068],[-4.20280745104393,50.39636421366699],[-4.19454319582552,50.3920860096383],[-4.18295691351949,50.3962276097626],[-4.17970267338224,50.3966915852231],[-4.18182664280975,50.3956255933266],[-4.192677181793419,50.39017856072869],[-4.187317299963251,50.3839149296163],[-4.18428358601909,50.3843288735429],[-4.18596736902117,50.3823370284933],[-4.182234180001069,50.37797274946139],[-4.18229876068679,50.3777580036312],[-4.18148154490139,50.3771557214475],[-4.185406745156909,50.367194810478296],[-4.16845545393978,50.364131086056496],[-4.166612183029,50.3665440706581],[-4.1665325543587,50.3662677689704],[-4.166185912443751,50.36666289384001],[-4.16259789319489,50.3635849526706],[-4.165203035961039,50.3616539905989],[-4.16444575053103,50.35902559464],[-4.16419355363583,50.35893930622571],[-4.15321278582862,50.36602752913981],[-4.15280127516363,50.36230876201191],[-4.15190196065938,50.3622810210524],[-4.146411349011609,50.3637822964543],[-4.14563496582127,50.3642535547471],[-4.13347905385787,50.3632844490996],[-4.13317010270242,50.36639580099849],[-4.12127481832648,50.36143796636319],[-4.11394702689305,50.36252564473731],[-4.10434302762274,50.379844781188396],[-4.08871025100849,50.3881922605443],[-4.0839811291844,50.3867327669151],[-4.08610295674166,50.3857644021518],[-4.099309297640461,50.3797354915351],[-4.10815423313619,50.36789601097309],[-4.09804046572165,50.3668476197799],[-4.108833722425891,50.3665705288375],[-4.11244555794992,50.3594301092176],[-4.10533168090595,50.3565319569855],[-4.11352920054849,50.35420102519319],[-4.116147574861081,50.3603773580852],[-4.12045984002592,50.3578551547128],[-4.12827575541082,50.3607228732739],[-4.13530368082873,50.35942128695691],[-4.1258705200411,50.3569892527957],[-4.12302461810837,50.3467281479337],[-4.114675359688469,50.3443738938372],[-4.10466273079538,50.3456887324149],[-4.09058772812279,50.3409029647041],[-4.07168662057235,50.35348750175051],[-4.05817410590577,50.3561262612542],[-4.05779577115408,50.358334762352904],[-4.05019546715995,50.3580489404986],[-4.0550873988222,50.3682559365605],[-4.050192248778219,50.3765803788384],[-4.034999320233119,50.3772048713726],[-4.02531777038841,50.3817846923275],[-4.01963425625447,50.38746552689549],[-4.021169445561021,50.3917770378327],[-4.02804276707315,50.393270217637195],[-4.03041154877032,50.3970785658729],[-4.041646814612211,50.3976248579191],[-4.03964982237787,50.4014204728754],[-4.071509990700021,50.40185032353491],[-4.0725385614457,50.40713695835951],[-4.07896177039841,50.4096415818275],[-4.08123922171052,50.4207576110535],[-4.084730839534659,50.4258264253751],[-4.09420570168278,50.4278194536702],[-4.10954061298207,50.4320946555489],[-4.106707937452131,50.43486852694001]]]}},{"type":"Feature","properties":{"name":"Portsmouth","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-1.12475440568948,50.7821609181499],[-1.15167107623527,50.834151613300506],[-1.11584760238594,50.8582717235923],[-1.09077691371932,50.858581620929],[-1.06618612448287,50.8584739404921],[-1.02262919663796,50.8520731086896],[-1.02062526974649,50.839058818792495],[-1.03209702078451,50.7867846234214],[-1.08180419992484,50.7781577600545],[-1.08922258843156,50.7777007025475],[-1.12475440568948,50.7821609181499]]]}},{"type":"Feature","properties":{"name":"Reading","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-0.941136941423418,51.47497765188451],[-0.947011082887946,51.4860620793355],[-0.961805026869276,51.49309190829031],[-0.975346652461808,51.48743462039499],[-0.998398933904973,51.4843048210687],[-0.998181103275749,51.47754999575031],[-1.00692929892472,51.4734215412713],[-1.00731612095274,51.4682487411558],[-1.01820453413265,51.4665845234538],[-1.03655747902791,51.4752267537986],[-1.04784284397085,51.46404478201259],[-1.05297452903069,51.46036993447089],[-1.04672050236282,51.4562127122517],[-1.04679172524674,51.45017167062411],[-1.03297492972539,51.451799433372],[-1.03061399163973,51.4498627908532],[-1.02345032405484,51.444317503978],[-1.02180838850351,51.4367030522854],[-1.00371014872515,51.4338925662384],[-1.00075699153942,51.4298497407168],[-1.00114760521892,51.4263823342562],[-0.996269066570048,51.4195941107468],[-0.981341399674686,51.420624369326],[-0.979892369230715,51.41302618861591],[-0.973638156209883,51.4125488151393],[-0.973699997105301,51.40978076287319],[-0.964729680895721,51.4117591602364],[-0.954197840402603,51.4214865583385],[-0.943433502720881,51.4292921769948],[-0.943518311247888,51.4361547724868],[-0.948134712520296,51.4392876851004],[-0.944254979399817,51.44627034309],[-0.932389304390521,51.440959955272],[-0.928475285062219,51.445162094054105],[-0.937849979532742,51.454021665426],[-0.950018811392256,51.457838962092],[-0.949167813983683,51.459513324054704],[-0.955452550255554,51.4612565039848],[-0.955183900010933,51.4653338428556],[-0.949440846834799,51.4649308949089],[-0.94676254091457,51.4717220130085],[-0.941136941423418,51.47497765188451]]]}},{"type":"Feature","properties":{"name":"Rutland","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-0.664101453534753,52.756710460936],[-0.671321175746437,52.7564112872532],[-0.684428783349143,52.7564800978882],[-0.684351040443784,52.7531096847561],[-0.696966794821744,52.7492204267694],[-0.696156563808286,52.746528893913],[-0.707544362547666,52.7455944259025],[-0.718197076373686,52.7447975972219],[-0.720210038908914,52.740962468142705],[-0.753319196793094,52.7365745594962],[-0.757978004873723,52.7397358371621],[-0.76472564398101,52.73919405771869],[-0.767653503615196,52.7436818157915],[-0.776484384415236,52.74393419175609],[-0.780672624379376,52.74057541751791],[-0.801191382846264,52.7367425887629],[-0.817398678851941,52.7251066456863],[-0.821752779818314,52.715678329360806],[-0.800234447564202,52.7077980700882],[-0.802427646722293,52.7032649588817],[-0.796342265966206,52.7036267555474],[-0.795744216907142,52.6968501265908],[-0.785804002353892,52.6942485775648],[-0.783992163181823,52.6770002226052],[-0.78322297955517,52.6724729324967],[-0.782194609134004,52.669139587599],[-0.790139768330246,52.6671845542484],[-0.792918228652028,52.6596833292643],[-0.808693242414139,52.6461260660919],[-0.809900777789424,52.6403025949092],[-0.801751683960027,52.6388395563642],[-0.810958004493582,52.62598444888731],[-0.805824670618499,52.6206878783449],[-0.818826550628407,52.6106573302521],[-0.820950352829114,52.596454861719],[-0.816694743227341,52.5935696799243],[-0.801298368216512,52.597354452095],[-0.787053143215661,52.59624840357641],[-0.773907452392892,52.584375167411],[-0.764790844915657,52.5811948855305],[-0.761789534693621,52.5691055542725],[-0.738864421751923,52.54888333797629],[-0.742206489930267,52.5394859770229],[-0.728540502218293,52.5358210029421],[-0.729952347927434,52.5329798490324],[-0.722554436267986,52.52677932868961],[-0.713658337963826,52.524963968358],[-0.69643038488804,52.5385464327137],[-0.697833336432589,52.5457021906991],[-0.688448487446295,52.546137122056905],[-0.674864344204412,52.55863838264901],[-0.660912737595725,52.5689457054421],[-0.642233099225361,52.57300261052969],[-0.637847507383859,52.571812289463104],[-0.603019141912138,52.5885911323283],[-0.586972401223626,52.5874288711115],[-0.581472728074389,52.5958835165327],[-0.577955798040501,52.5878981549236],[-0.571903726305604,52.5858033698147],[-0.562518403335566,52.5862751066936],[-0.558117814289337,52.59448396766491],[-0.544173532572234,52.5928882810182],[-0.542929470523687,52.5956834580492],[-0.552938854430842,52.6013489506897],[-0.54755896961044,52.6069561149427],[-0.550130858914181,52.61225064380281],[-0.539057032232578,52.61787561538169],[-0.540260653382861,52.6259657691596],[-0.523630693170712,52.6348871607446],[-0.517397149134818,52.6423795260649],[-0.495025802128916,52.6402363852471],[-0.523586001633851,52.66523372024789],[-0.519017410629439,52.66652631089761],[-0.50667432122478,52.6595259212941],[-0.49386592990527,52.660716896277705],[-0.494711775021688,52.664632363367],[-0.483879517324992,52.6654535675629],[-0.461628727605691,52.6690615420785],[-0.432893622745984,52.6862565605954],[-0.430443229209799,52.7054219474813],[-0.444722185366354,52.70617298806701],[-0.451092101190137,52.7095802666596],[-0.49453090710973,52.7096532797771],[-0.505721256322316,52.71360493563069],[-0.512641138656786,52.71968043026921],[-0.542433641184147,52.723281449438495],[-0.539974276076003,52.7384017547715],[-0.560034137998978,52.7454723070414],[-0.566110752939568,52.7449876737797],[-0.572636470370485,52.7531090381208],[-0.5895658127116,52.7537745674077],[-0.6054438425778,52.750492944417694],[-0.608593611318584,52.75971343620051],[-0.664101453534753,52.756710460936]]]}},{"type":"Feature","properties":{"name":"Sheffield City Region Combined Authority","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-1.02936207714353,53.6549697235671],[-1.04866263627315,53.656057479988306],[-1.05327754938186,53.65153690905],[-1.06607212816008,53.64889127468751],[-1.08481702497114,53.6517270137827],[-1.12174363004979,53.6467186421691],[-1.12899569670398,53.6429892001695],[-1.12887221672061,53.6349527509648],[-1.1354072030232,53.632728679272],[-1.15229786876077,53.6427766599575],[-1.19031348882413,53.6359169283835],[-1.20982718259376,53.6431641296687],[-1.21089244222326,53.6409562928708],[-1.21564716881913,53.6419826850635],[-1.21938721338277,53.636687472644404],[-1.21746850825603,53.62422432688991],[-1.23284427243353,53.6211122464196],[-1.22789207754961,53.617342861801795],[-1.23129714117901,53.6169094189668],[-1.24824986714938,53.6163532847014],[-1.24486470960384,53.6081631558904],[-1.25219991808845,53.607112611322805],[-1.24720997338638,53.6007051895756],[-1.25763806983067,53.5998525146561],[-1.25291126681797,53.5971167695963],[-1.25802813621318,53.59199744983769],[-1.27669392278424,53.5899795230562],[-1.28228538741061,53.5830203223616],[-1.29864383186131,53.5774555145084],[-1.3078197080881,53.57536697076371],[-1.34873341137308,53.5833476300582],[-1.35143412568259,53.5810810422015],[-1.35390000506374,53.583404372779306],[-1.35611963714612,53.5953662145859],[-1.37670296002844,53.606478418801],[-1.40018457395863,53.5986683490464],[-1.42489626723055,53.604483660601495],[-1.43292460301189,53.608942433323506],[-1.43919312584708,53.607062057364004],[-1.44762384495194,53.612736992566],[-1.4839184659621,53.59488048536309],[-1.49213365249166,53.5969928395948],[-1.49158079213534,53.6027690076361],[-1.49511957803327,53.6031902329812],[-1.49656246300737,53.5973737497565],[-1.50138849637682,53.599833388069],[-1.51036420901772,53.59686083653861],[-1.51867106657984,53.59971929667971],[-1.52838099818935,53.5970334371766],[-1.53078144404236,53.59312937992469],[-1.53540387734426,53.593878968058405],[-1.54732676271895,53.6031653922273],[-1.55759979962721,53.60591446609039],[-1.57198440210244,53.6086091689699],[-1.58200758120623,53.6057277049274],[-1.58645325959614,53.6071740555695],[-1.59115126334538,53.6067811932954],[-1.58519142647103,53.6005318957118],[-1.58797836748171,53.59348655095269],[-1.60175211286839,53.5877589598561],[-1.6002656679643,53.577339352423],[-1.59619871324849,53.57698690831841],[-1.60965831843735,53.5720294884315],[-1.61563188440644,53.56302832178321],[-1.61940395616097,53.5631229847191],[-1.65656026625189,53.5605581156573],[-1.66393036379029,53.5575013753588],[-1.66191052764474,53.553692829848806],[-1.66946580092353,53.5532275163473],[-1.69903667978221,53.5538105072075],[-1.70412687028509,53.5602497684249],[-1.7231775076069,53.5599267415214],[-1.73008274770267,53.54679167551951],[-1.75581896258099,53.536681059140506],[-1.79743124240259,53.5338875643393],[-1.804283016001621,53.5370133734778],[-1.82222878111984,53.5210909218023],[-1.81952377656311,53.5134280919329],[-1.80077865319122,53.5113785292377],[-1.81039889127308,53.5063401493489],[-1.79628821898355,53.503152990572],[-1.79500092224839,53.4959187309494],[-1.80026299053966,53.4933551642397],[-1.80147063244941,53.48099176075039],[-1.79110661271706,53.4757816166497],[-1.77906318250375,53.474221193543904],[-1.77619997596228,53.4683257814682],[-1.76843734147339,53.4647669327866],[-1.74682471239449,53.4634099983437],[-1.74367441569702,53.4450137324182],[-1.74972822931623,53.43911925987649],[-1.74427301019628,53.43129665974159],[-1.74671906273467,53.4261649304386],[-1.72995113840574,53.41598563940549],[-1.71678157348296,53.4192991306346],[-1.70394502168919,53.4149085808253],[-1.70496532088341,53.405055973958504],[-1.69452121635221,53.4011611629056],[-1.68182866242726,53.4017807016375],[-1.66808924679528,53.393071191804296],[-1.65381782187416,53.39191082711051],[-1.6535305185542,53.3848521081155],[-1.66329148162487,53.3742482327585],[-1.66395050906038,53.3668929263389],[-1.63059203910696,53.3561609740116],[-1.625603752025671,53.3520618983508],[-1.59054795436381,53.345920985244],[-1.60157558241263,53.3426090127146],[-1.61230306160512,53.3432186697883],[-1.63272698677736,53.3208392129653],[-1.6254937445137,53.3164239788115],[-1.6092015844932,53.3226639610628],[-1.60152504315608,53.3182054025283],[-1.59909327897252,53.311318199687605],[-1.58490201019108,53.3215879523676],[-1.57892430901633,53.3166951255445],[-1.58300458734422,53.3157224733736],[-1.58053389587991,53.3117380892291],[-1.56136488528553,53.31582118886211],[-1.55575188364951,53.3115488459116],[-1.56182692570391,53.3066022697826],[-1.55845761275355,53.3053224657301],[-1.54907599561487,53.3069826936105],[-1.5367688622067,53.304748674427806],[-1.53121491084347,53.31065152365831],[-1.52618529691351,53.3104034488408],[-1.5104880908767,53.3160462499215],[-1.49612666412277,53.3163865562103],[-1.47438659301745,53.3184906946781],[-1.46786581929666,53.317158487300205],[-1.45522778964177,53.3218691603844],[-1.46169772685613,53.328450395646],[-1.44213573422471,53.3373845199322],[-1.42086649613,53.334567952456005],[-1.40874684512064,53.3419650586082],[-1.38882358979614,53.336447102605206],[-1.38657329018515,53.3348845432082],[-1.39200397141391,53.3226487145027],[-1.38507643737761,53.3177808770315],[-1.36262274042287,53.3150356347356],[-1.36177742459028,53.31848555099639],[-1.34723808333142,53.3188688916257],[-1.3402595397932,53.3155346848568],[-1.32830019566931,53.3289742096465],[-1.32466917492843,53.3288100139839],[-1.32165867760413,53.3256874313088],[-1.31053730161266,53.32935383790889],[-1.31229934658408,53.3341648270949],[-1.2990721903367,53.33253259327711],[-1.28858902654107,53.32622805490391],[-1.29515875672233,53.321791521126706],[-1.29567816421914,53.3150369724564],[-1.28201141324174,53.3094625902199],[-1.2735976013037,53.31044010234591],[-1.25429413883004,53.3017548282498],[-1.24332977849925,53.30164905470209],[-1.23606426389793,53.30660680454],[-1.23044035253652,53.30855813959249],[-1.21987804757969,53.3040779724751],[-1.2032390468772,53.30422324058411],[-1.19974106069052,53.3114394544059],[-1.19032335351259,53.31993199957],[-1.17448181183083,53.3213908680466],[-1.17511085119313,53.3256773773655],[-1.15938481429022,53.3335089646057],[-1.14862053823827,53.33850660869861],[-1.13871810210376,53.34138281177991],[-1.14029306249295,53.34652996049931],[-1.15684339220656,53.344969500268],[-1.16195415042171,53.3542126662887],[-1.16194934785768,53.3579088239998],[-1.15169338424547,53.354485369101894],[-1.13853968203233,53.3559075142163],[-1.14055426651146,53.3640597098401],[-1.14517823272168,53.3633828008094],[-1.14644015470332,53.3657334895204],[-1.14491869953193,53.3712453383554],[-1.13821895827,53.372252442315805],[-1.12999587827008,53.3775655693914],[-1.13349259127567,53.3914806103838],[-1.13327807155101,53.391378317332396],[-1.12281104249626,53.3983123997692],[-1.11557938044441,53.3971857499007],[-1.11604100602787,53.40734935379681],[-1.10822686375117,53.405881775697],[-1.09873738770383,53.418734751956904],[-1.08704609824437,53.4255440500069],[-1.07912295943339,53.422809131626],[-1.08043943279743,53.4268678599403],[-1.07326792409618,53.4280574424899],[-1.05705081935865,53.4253598763942],[-1.03094981877621,53.43097952640141],[-1.03051529485536,53.4251953103943],[-1.0231689421522,53.424514385823706],[-1.01434673955409,53.4262954965662],[-1.01245806584945,53.432795871581504],[-0.995669798894032,53.4369266843309],[-0.997518157485324,53.4436550476871],[-0.985547613494418,53.4613539679914],[-0.985978085087804,53.471673371995],[-0.953259205587141,53.4844235292892],[-0.935564625288195,53.5025165293909],[-0.932094163383945,53.5106718236165],[-0.950009087300711,53.51365743446911],[-0.948473546030531,53.5203729459268],[-0.943715825340442,53.53064301866821],[-0.898072074073889,53.5327589345563],[-0.892270343424618,53.5376159945953],[-0.899833391575567,53.544477696962204],[-0.900302887578595,53.5556587556468],[-0.890995208077956,53.56655898229211],[-0.901117807880235,53.56872422661359],[-0.896237894177222,53.5829167193811],[-0.897926451077773,53.5832774385938],[-0.886897108082056,53.6010269306007],[-0.887392601501844,53.6099581415216],[-0.865338726025611,53.6377082330427],[-0.946844642823067,53.6591417674831],[-0.990234610099983,53.6589832565987],[-0.990459547125056,53.6612232816087],[-1.02936207714353,53.6549697235671]]]}},{"type":"Feature","properties":{"name":"Shropshire","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-2.38079367936827,52.99841106225491],[-2.38973475249817,52.995392203215296],[-2.40698671538335,52.99591662442201],[-2.40447509904863,52.9916535770271],[-2.41086210522397,52.98792531664],[-2.43816862955627,52.985567722928295],[-2.43461402318991,52.9695213474101],[-2.442957468781779,52.9707391423316],[-2.45025707485373,52.96605155073019],[-2.475083773834999,52.96248938132259],[-2.48115277114678,52.9588178873791],[-2.4917008089993,52.9676840793743],[-2.49902312961341,52.9684347482672],[-2.50689718718958,52.9649126134856],[-2.5213195662134,52.9743015514111],[-2.52328068180159,52.9543552873514],[-2.52951582206291,52.9471648775005],[-2.54635522864471,52.9568377030709],[-2.5536974510078,52.9574662054001],[-2.561262882584721,52.96495210511421],[-2.5734924463511,52.9627164257958],[-2.57029254408744,52.9597428339962],[-2.57814373223453,52.9557288913684],[-2.586202985499541,52.95531443492861],[-2.58911083963905,52.9586522241747],[-2.597693471280309,52.9630059899653],[-2.59844664203957,52.9717182403168],[-2.59275619461528,52.9741694713771],[-2.59962988507348,52.975432932539],[-2.594889067849059,52.979607147503],[-2.60568393052363,52.97939822222429],[-2.60773406479019,52.988362147215305],[-2.62194000405297,52.986742232504305],[-2.6280281628417,52.9951689864564],[-2.63507452063149,52.9967342129058],[-2.64280514793621,52.99348067375009],[-2.65235683870577,52.9949944628385],[-2.67466228547344,52.985662810387204],[-2.6870784850997,52.9868304777299],[-2.69929243706707,52.9954387986715],[-2.711878683427349,52.9860844169537],[-2.726840606533699,52.9832729462979],[-2.73529356518204,52.96994619005411],[-2.72748124602623,52.9663551691919],[-2.724177510717011,52.9571216556058],[-2.72816319297404,52.946992279679506],[-2.728541419655981,52.9251781193343],[-2.75532645758129,52.9246280372655],[-2.77210967293473,52.914265929000706],[-2.8004666387459,52.8955150160993],[-2.81297600685658,52.909562576974196],[-2.8130262985268,52.9149406350735],[-2.83849605180922,52.9321838573972],[-2.84101496067848,52.9426237150063],[-2.871570698988399,52.9452618157547],[-2.883662095588341,52.946668861377304],[-2.88743132915924,52.95252989088309],[-2.898291958265081,52.9502754597618],[-2.90818770231576,52.9420852047599],[-2.92027801788374,52.943395363486296],[-2.9288886576968,52.9386788302752],[-2.9598133204483,52.951169555690505],[-2.961824116497131,52.9556588962681],[-2.972828281442831,52.9604623930019],[-2.96848677225909,52.9641755897859],[-2.97477008589386,52.9689516078977],[-2.97740339424664,52.9672651020937],[-2.98202234589558,52.95919825466821],[-3.0086136534051,52.95659131033441],[-3.013249793720481,52.948726258468206],[-3.01704882808259,52.9486973670806],[-3.020069642831861,52.945959206879905],[-3.023873857892939,52.9364575528306],[-3.02844937256725,52.9367137672631],[-3.03487478147239,52.92957125415399],[-3.05758582006604,52.9282340117143],[-3.07651316772971,52.9254793440269],[-3.09595322236249,52.9302818603715],[-3.1095771488456,52.9184436244552],[-3.11689429004674,52.8996934196255],[-3.11416217688046,52.89397821650981],[-3.13751787901147,52.8949166871663],[-3.147504890648551,52.8901751791029],[-3.13552413220342,52.88501366697071],[-3.14704141058896,52.8846972514094],[-3.152416724873159,52.8787478871554],[-3.12771287514737,52.8671030328106],[-3.16264040154045,52.8479872111549],[-3.15173791123893,52.8418706530494],[-3.15647859472833,52.8370140537824],[-3.15510401784258,52.8307272792595],[-3.16788753046969,52.8192666796899],[-3.16820515656899,52.807328443007],[-3.16141940206531,52.8035905152913],[-3.15430123218108,52.80748789555249],[-3.15412062361283,52.802520877819006],[-3.1619145375707,52.7992533770448],[-3.15842528976348,52.793488103830995],[-3.147998088324531,52.7920908122918],[-3.14455983137838,52.788512268638],[-3.14245428509554,52.7903265380121],[-3.11890970948157,52.787223720923805],[-3.1190638993325,52.7847743706459],[-3.10974828036882,52.786686775791104],[-3.10610108099855,52.7929553769256],[-3.09773093721515,52.7913736044921],[-3.08663218442715,52.795593156752],[-3.085738068899,52.7903035732203],[-3.09169361801942,52.7867518511092],[-3.08881964933085,52.7775393649248],[-3.08064859414838,52.7774405481922],[-3.07951607132088,52.7715139126723],[-3.07424570776923,52.76961726347011],[-3.06955621698082,52.77422206841211],[-3.06261034088793,52.7690748112287],[-3.05792568495652,52.7736853975731],[-3.04778942053427,52.77264261121461],[-3.052579740340239,52.7686895431283],[-3.04653403178003,52.76703140683819],[-3.0389768046804,52.77040077760309],[-3.03264579805353,52.7672564945404],[-3.035574609494081,52.76407281440271],[-3.02635080331757,52.76705320183991],[-3.02267797559287,52.76414428198989],[-3.01719942628447,52.7676641820712],[-3.010613440129711,52.7615507893841],[-3.014359474155,52.7529936198601],[-3.02189115209444,52.7523788419992],[-3.01664249738085,52.74853127311561],[-3.00976876243176,52.7503466681296],[-2.99199278312435,52.74375603854891],[-2.99253721979029,52.738579638405],[-2.99738295007643,52.738354645762],[-2.99103015995307,52.73371787757079],[-2.97365263508716,52.735735351472705],[-2.96506569361931,52.7322680648372],[-2.966697849218809,52.7256462976497],[-2.96172224613079,52.7255645506951],[-2.96109991405063,52.7163872488838],[-2.965599523425591,52.7144079654342],[-2.97810302517224,52.7153573258909],[-2.97759195389928,52.7265916760122],[-3.00055465557069,52.720275310728],[-3.01837994395229,52.721266177157105],[-3.019040381890699,52.7253337588734],[-3.021477289711231,52.72424481738861],[-3.02533813131382,52.716511640237606],[-3.0224859512498,52.7066679421564],[-3.03212276393134,52.6998896107171],[-3.03422412874811,52.6934407108989],[-3.047047824206611,52.69126584092621],[-3.0420819552301,52.6814970330235],[-3.0456565899251,52.6754637107],[-3.03858027691564,52.67537316683401],[-3.044710224211769,52.66561630743211],[-3.04908369268348,52.6623223892931],[-3.044935355907091,52.6559077439296],[-3.0498764471365,52.654689026410104],[-3.05111627042196,52.64736597468891],[-3.069884404015331,52.64579597049911],[-3.08356627752097,52.6412925202018],[-3.06957552666757,52.6374963553006],[-3.05980035397977,52.6307207237308],[-3.073186896728211,52.6289626623494],[-3.072057533737321,52.6260951730488],[-3.082568433399861,52.61964718159711],[-3.08260092033823,52.6156327777644],[-3.09362257365342,52.60933908765651],[-3.08952759451987,52.5995254533176],[-3.100421132031731,52.597633842353204],[-3.11741414899447,52.5857631475343],[-3.12214252075826,52.587636038205],[-3.13950076571608,52.5857198080728],[-3.1349807501669,52.58367978892031],[-3.13858558515981,52.58293182278929],[-3.137707891100849,52.57383400798359],[-3.12736020564463,52.5660502533196],[-3.11149542440582,52.5413637648399],[-3.13716063405154,52.53339370277371],[-3.13306437911759,52.52747060997001],[-3.10868277600728,52.52916693191929],[-3.08541228712571,52.53450270281639],[-3.0807509267608,52.5391438350444],[-3.093943246492989,52.54490228788009],[-3.092311154004741,52.5478301858399],[-3.06500385767174,52.5568292813725],[-3.05981644852868,52.5555605885923],[-3.03477476080113,52.5721649932278],[-3.01443998659297,52.5754974446058],[-3.00648374761458,52.5738491736167],[-2.997603586076281,52.5638436717128],[-2.999720060746769,52.5546693375637],[-2.99430716764492,52.5530480809563],[-3.005074906113831,52.5294612093906],[-3.000905364938,52.5241105177083],[-3.00387364775971,52.5198330371476],[-3.032378939226291,52.52373134332991],[-3.030796036632911,52.5195215613793],[-3.036710934159209,52.5132773601224],[-3.029202199988271,52.501268025898],[-3.10812426801194,52.499300893841],[-3.14489652600087,52.488841827356],[-3.145329214658549,52.4885481359164],[-3.18059181517014,52.4738363453281],[-3.19724017301225,52.4759894045068],[-3.23087124542882,52.45320438021971],[-3.23554057257533,52.4424981912371],[-3.2283196737035,52.439512140146206],[-3.230685307857271,52.43048604767801],[-3.22225474045028,52.426779462377205],[-3.219544505627451,52.4212529854221],[-3.178836549166681,52.4093973297151],[-3.16058150132304,52.3999292616008],[-3.16152977033761,52.3921555572663],[-3.15444662965246,52.3877151721652],[-3.129541384271341,52.3845025371734],[-3.120212715348941,52.37748066909031],[-3.11060650812059,52.3771928586202],[-3.10075927452106,52.3677997617064],[-3.07054415760182,52.3559768644869],[-3.06329658078396,52.3492111276724],[-3.04017440612675,52.344326449559],[-3.0000046271936,52.3517202450093],[-2.98592499272817,52.3508784288755],[-2.97450325778266,52.3547007719923],[-2.97053014603474,52.3513565773805],[-2.954651356250571,52.3491547628498],[-2.93314924449305,52.3500521344638],[-2.93617133406098,52.3529349532354],[-2.93065583622018,52.3549933025819],[-2.93888929692198,52.361057983037696],[-2.9261433373763,52.366995255805],[-2.90080513581716,52.3672702614202],[-2.92231079516907,52.3751473465218],[-2.91400689592782,52.38213280585369],[-2.91955609796186,52.3845415006202],[-2.9176851490735,52.3862884794478],[-2.90542511454731,52.38578334529501],[-2.89306088266576,52.3796569145557],[-2.89313510339412,52.3740884938803],[-2.886506297711379,52.37851138486721],[-2.88845681203454,52.385154203445],[-2.86378535223407,52.3887138581651],[-2.85544157335808,52.3952980274035],[-2.805432560640451,52.38825207095971],[-2.80738886498952,52.3759676643394],[-2.7986503774247,52.3726601094873],[-2.7921122328537,52.37453370023571],[-2.795623736166911,52.36043911614621],[-2.792420108018479,52.3568636039561],[-2.76144295248166,52.3594677531817],[-2.748617456869471,52.3590229622447],[-2.73276668080261,52.35553248815769],[-2.74117961570956,52.34972168676689],[-2.73787987485354,52.3427964213324],[-2.748379763147911,52.334902399963305],[-2.76698682979255,52.33611261750669],[-2.76523112442209,52.3334539142976],[-2.74591471721661,52.3266549762349],[-2.737171922237171,52.319476187247],[-2.72466779678728,52.3198485263309],[-2.71412333550734,52.3088570855132],[-2.67981117516044,52.312023092938006],[-2.67994467101041,52.3151995621502],[-2.6892857779749,52.3162017194976],[-2.669676175306721,52.3415587791608],[-2.660287875161091,52.341365321493306],[-2.655967152653119,52.3378391661004],[-2.65984894243727,52.3347625883593],[-2.65559525372245,52.333139289619],[-2.64101522057462,52.3328479886783],[-2.63690021640328,52.3244814320283],[-2.62940034592666,52.3207142363175],[-2.6239344865987,52.32139413673979],[-2.62807366571302,52.313435433486205],[-2.61803476082432,52.3069569825661],[-2.61000134350614,52.3062812591241],[-2.595089082525019,52.3138858757133],[-2.58450038188689,52.3131719238215],[-2.57485259380717,52.3175760228212],[-2.56264435828822,52.3111365754448],[-2.56221899576703,52.33310828325881],[-2.53914994730822,52.34413908831559],[-2.52190719854334,52.3418475693761],[-2.51212945833582,52.3371102595184],[-2.50841024208196,52.3332569353917],[-2.513204774897781,52.32921391220789],[-2.48179590843371,52.3310777473859],[-2.47822113768767,52.3384221244158],[-2.48435435909415,52.3445599056863],[-2.48179220567873,52.3511198164983],[-2.48832715242412,52.3553975393889],[-2.48388989429586,52.3604916897007],[-2.47418025175583,52.360612860559804],[-2.4747702332673,52.3671455210521],[-2.46774896021865,52.3645520134646],[-2.45765251691188,52.3678244469603],[-2.42633684028109,52.365832517269205],[-2.414923393184841,52.3682547125976],[-2.40992078396808,52.3706185875405],[-2.41515928211866,52.3789836988758],[-2.41047383637194,52.38715329210951],[-2.40537889219444,52.383065064419505],[-2.393594235001311,52.3843707380287],[-2.390673240352351,52.381527855865],[-2.38744206913555,52.38448814716129],[-2.377911403096181,52.3831507569285],[-2.36735191957292,52.3880630032731],[-2.35263296135137,52.3889367925092],[-2.350146158704391,52.3857248333188],[-2.33553274094094,52.38534744341101],[-2.33403655738824,52.388782247698],[-2.34218163052662,52.3931775891866],[-2.37294564977794,52.4019641101138],[-2.3660212365532,52.40781672906639],[-2.36655916081857,52.423045344315106],[-2.36276556727343,52.4257774318233],[-2.36415608987329,52.4319386601925],[-2.36352792484789,52.4394258309827],[-2.34510914313382,52.4393327004604],[-2.33311929671861,52.4353548811642],[-2.3259554523897,52.438301111299495],[-2.32155073389048,52.436219348712],[-2.31175006207078,52.437531177416105],[-2.30618480737107,52.4459460844035],[-2.28738237113974,52.4553169285039],[-2.29099728549573,52.4567455442911],[-2.28838521904914,52.4610483253071],[-2.29563026209249,52.4738915988296],[-2.312749166701101,52.4892088291572],[-2.30644342446895,52.4998560405109],[-2.29139000182827,52.51167992496201],[-2.260943185133661,52.5241024164049],[-2.269215355444901,52.530688797502506],[-2.25640506809536,52.54179647851551],[-2.26572950822596,52.54931305446151],[-2.28247661716922,52.5533960748376],[-2.26721208685902,52.56149108471461],[-2.26083602983262,52.5631576571244],[-2.26280247941465,52.5703101723899],[-2.27865522895248,52.5834188243447],[-2.29505618359773,52.5846276644461],[-2.30101607106506,52.5932428414757],[-2.30854602372366,52.5910936748277],[-2.32202449570949,52.5936360480848],[-2.32547507277904,52.6000992610679],[-2.32097145263394,52.6146077281935],[-2.31346163671815,52.6140552889542],[-2.309601252323461,52.607401218162],[-2.27930537110748,52.6058136558715],[-2.26800074668408,52.61023227699591],[-2.25580397628643,52.60998332665479],[-2.24779271018414,52.62545565072539],[-2.24245443760002,52.632227056368095],[-2.23688723626329,52.6360670628935],[-2.23289449572097,52.6476942062433],[-2.23746978065446,52.6510904079848],[-2.23479340395745,52.6558728629011],[-2.24768735730075,52.6566601357049],[-2.23871532272218,52.6637013164014],[-2.24772940707176,52.683074392437796],[-2.273676793925429,52.6797763244486],[-2.30304049939528,52.6829527800275],[-2.30799526417698,52.6933320380262],[-2.3199078211235,52.6953977627732],[-2.3248336041539,52.7053358311102],[-2.30860350792447,52.7207461373701],[-2.31467895734629,52.7245552290047],[-2.3155761976627,52.7329474158237],[-2.33007040198894,52.7294621941465],[-2.335854753536669,52.730273027289],[-2.33638406719665,52.7330457529662],[-2.357928626353079,52.7312125484689],[-2.36729532643909,52.7331633896355],[-2.37187424969889,52.7385276167899],[-2.36882175848879,52.7404637182929],[-2.375072430033879,52.74080906475161],[-2.38519094857574,52.72008056418851],[-2.40250131681948,52.7039052921399],[-2.40152512548255,52.69494951182241],[-2.405242178687069,52.69486368186399],[-2.40121058307701,52.6845351782937],[-2.40779634229548,52.6795874123794],[-2.40803037793922,52.67898501177889],[-2.41902901166181,52.6628920164182],[-2.41757861866762,52.6503483666361],[-2.41646675473306,52.6449009093546],[-2.418295053608721,52.6337749410688],[-2.43663474871759,52.6270940478354],[-2.43404688051936,52.6182207421704],[-2.4380403195154,52.6146083404025],[-2.4510175332256,52.61697873792491],[-2.464562975593219,52.623795559041696],[-2.48179788346018,52.6235372133551],[-2.50128470237006,52.6294218958506],[-2.51014588927163,52.6384062251756],[-2.53005326273098,52.64948156817141],[-2.54845742726727,52.6547126133052],[-2.54549086825498,52.6584039813805],[-2.5542086269784,52.660023118783],[-2.54941296877899,52.666287989424504],[-2.55564737354675,52.67109810774241],[-2.5885616658034,52.6837487917326],[-2.59667104846596,52.690567439204],[-2.60333128412742,52.6893578458443],[-2.61271632578621,52.6967991120002],[-2.62254969542173,52.6990321685353],[-2.624322995239201,52.7034170430987],[-2.6054222313313,52.70678008542],[-2.59741996828975,52.7182511698821],[-2.61512236957176,52.7189544268856],[-2.61891829980689,52.7218779735393],[-2.62428391511968,52.7195034859552],[-2.63023387434865,52.72626109437811],[-2.65827724217208,52.73071055118639],[-2.66096248887772,52.734166626889],[-2.66438999757331,52.738292590012804],[-2.65939039427327,52.7435335092308],[-2.6673621378111,52.75019793728251],[-2.6619099339977,52.750572763035],[-2.66341537473471,52.7604411712564],[-2.64312849256875,52.7670846596779],[-2.63233128566817,52.759590553829696],[-2.62100320767185,52.7765219605895],[-2.59224445077165,52.7768495572435],[-2.59256465126951,52.793561339465],[-2.59800685838951,52.7979685830807],[-2.59183851550259,52.7985190208631],[-2.5812422378618,52.8060273508812],[-2.5694202602152,52.8050679864233],[-2.57053687812948,52.803003958722094],[-2.5613145594984,52.79903947402829],[-2.5529425104682,52.8029327258801],[-2.540025778654079,52.7938210624569],[-2.53380989885022,52.7941188252219],[-2.537514544607141,52.7851089648203],[-2.529415183057261,52.7871122841295],[-2.5219890237145,52.7989513218527],[-2.51614066833066,52.7955563556171],[-2.51172188949586,52.7985106018846],[-2.50302787014664,52.796604266945394],[-2.49240438882783,52.8023491871696],[-2.48650658342808,52.80524571117541],[-2.48837345672815,52.8004250146676],[-2.47847779960263,52.8015279107651],[-2.47712088994151,52.7993785524561],[-2.48995586426625,52.7839215472241],[-2.48821241165857,52.780611630653],[-2.47263227055017,52.7804544902841],[-2.47095089949061,52.7842889512943],[-2.45760523301359,52.78340629482619],[-2.45820273763368,52.7900455241921],[-2.46347037859001,52.7927462438348],[-2.45774619307531,52.7985299080289],[-2.47294644126784,52.82075279738141],[-2.46910115057058,52.8230443039585],[-2.44047299723215,52.8207718050897],[-2.43020916128789,52.828153888453],[-2.42632350120109,52.8225269644481],[-2.426508198966021,52.8259288607759],[-2.426037909845081,52.823212169539204],[-2.41634660240013,52.827005991004704],[-2.40765560028467,52.8346053351082],[-2.39709034279572,52.83385362358481],[-2.39375624971319,52.8366200385749],[-2.388495473782211,52.8622340111192],[-2.38115582959556,52.8670627343986],[-2.38251154347858,52.8766105001266],[-2.37537899580838,52.891472919979],[-2.37893788163928,52.8917205240456],[-2.3855545685442,52.8879883871584],[-2.41185800580277,52.8878901716254],[-2.42585066713744,52.882002245366],[-2.44041158371091,52.8812273008096],[-2.44614159360973,52.874008069112094],[-2.4575938483273,52.879104605484],[-2.45634618238567,52.8852338543318],[-2.465243523558529,52.892161698410405],[-2.47084125003617,52.9058690823754],[-2.46085451439693,52.9093835435673],[-2.45571303375538,52.9155009258017],[-2.45677444761335,52.9243594539953],[-2.4468823507398,52.9286284767413],[-2.43712308232414,52.9435990148052],[-2.42526929753461,52.9499985200323],[-2.40560245084248,52.9472941546176],[-2.40717532766568,52.9578774216686],[-2.41289866473101,52.9617402681845],[-2.39915338497335,52.96063121480271],[-2.39376659604247,52.9505792025374],[-2.38727089239098,52.9526987718357],[-2.38475025764833,52.9598221045746],[-2.37714158295842,52.9649354836899],[-2.38283206609993,52.9706579906812],[-2.37971828550886,52.97606526351831],[-2.37073679178673,52.9774663476453],[-2.37026915750574,52.9821621031766],[-2.37980679647327,52.99106555081139],[-2.37660894458356,52.997644217952406],[-2.38079367936827,52.99841106225491]]]}},{"type":"Feature","properties":{"name":"Slough","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-0.596221574439372,51.5279298594791],[-0.610536159191516,51.5315021976202],[-0.617806868269875,51.5345950984631],[-0.619702799434341,51.5378798132969],[-0.624770176591683,51.5380058540932],[-0.639722789893743,51.5371326481693],[-0.6479911753946,51.5325865301694],[-0.659944895908714,51.5284469814789],[-0.660143496671552,51.5203572288534],[-0.654978652091332,51.5188082405088],[-0.653899666856739,51.5121929215372],[-0.659271318680068,51.5049023574704],[-0.653921160054979,51.5042260292446],[-0.653464549384195,51.500506993971605],[-0.642970370128307,51.50269347262981],[-0.642211995205478,51.5006272384143],[-0.622158581960592,51.5035953211331],[-0.607716162352804,51.4972515023419],[-0.600498898805013,51.502273892622],[-0.592614178721451,51.4985133460997],[-0.59103278963847,51.4973281438465],[-0.589610345449848,51.4993989197697],[-0.565568404210051,51.4913420176521],[-0.560550664270769,51.4972117158478],[-0.55254341058589,51.494846245517806],[-0.554124177197795,51.4912815120622],[-0.549739720425529,51.4903595923311],[-0.549230796706843,51.4902849742276],[-0.534361390018616,51.486787212557],[-0.524243834647742,51.47950965363129],[-0.524358681535487,51.471528484042],[-0.515661238513089,51.4682686774836],[-0.509701400845035,51.469175947703405],[-0.499169215876422,51.48858121367061],[-0.490116783259263,51.494578915113],[-0.490024731194161,51.494747634396],[-0.531819526768283,51.493394462143506],[-0.528751480303224,51.4970691253188],[-0.527947845746455,51.5097641852293],[-0.528111467916711,51.5097064146455],[-0.56397106484503,51.510199566607504],[-0.568645380298278,51.51136446107749],[-0.56504435973228,51.5206922353295],[-0.57509465893991,51.52929987223639],[-0.568008058619701,51.5302863370964],[-0.567256016672106,51.53298103609501],[-0.57597876001082,51.5339101490931],[-0.58099165870603,51.5230741288253],[-0.594984912536923,51.5242332209236],[-0.596221574439372,51.5279298594791]]]}},{"type":"Feature","properties":{"name":"Somerset","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-3.83473753508469,51.1413826268167],[-3.83982066625529,51.17667372201281],[-3.720549186668761,51.23306756052369],[-3.03592989396078,51.328545173070594],[-2.27774724630575,51.3257041239791],[-2.27309487103777,51.32287904602511],[-2.25349723752292,51.289834740954504],[-2.24443053733742,51.26311908480131],[-2.24534123488723,51.2538761371033],[-2.34455653686763,50.9788293029238],[-2.61610129488952,50.8816335411571],[-2.624129366402471,50.8792590583397],[-2.95432123760533,50.8211725185423],[-3.60974550295832,51.007983234721806],[-3.80428873272582,51.1156852822548],[-3.82211474766656,51.1269538775696],[-3.83473753508469,51.1413826268167]]]}},{"type":"Feature","properties":{"name":"Southampton","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-1.40613979538219,50.9561274536544],[-1.40961057299245,50.9497593953435],[-1.42103802788317,50.9516771981693],[-1.42378364849339,50.94723049822579],[-1.43571686791821,50.9489920119782],[-1.44129347860849,50.947055697973305],[-1.44954581112644,50.9499113532644],[-1.45100815842505,50.9443266614813],[-1.45595557540442,50.946068344078405],[-1.45942370248897,50.9431969664272],[-1.4641085211429,50.9351064172855],[-1.47732819842619,50.9284618864517],[-1.47476495846369,50.9213157417665],[-1.4734557353797,50.919548100568704],[-1.46475794248893,50.9101586776455],[-1.46461480587302,50.9100041236175],[-1.45098061575981,50.904060285794],[-1.44096436395827,50.90808295549039],[-1.44044254559556,50.9079211628379],[-1.43248580173196,50.9054537053758],[-1.41823157215843,50.9010314394252],[-1.41672703874445,50.9005645163791],[-1.40354168653182,50.8956283728085],[-1.4008217835614,50.8902853822908],[-1.39902240076432,50.8945485166087],[-1.39948910086346,50.8883325040948],[-1.39327084197526,50.8830557248193],[-1.39639054987442,50.89256009094429],[-1.39266401002129,50.8884031553505],[-1.38839278651565,50.8941828139925],[-1.39286115422394,50.8948878831504],[-1.38799378075025,50.89544327099],[-1.38827979540799,50.9049800551604],[-1.388281272141,50.9050292962058],[-1.37751590942638,50.91130633286521],[-1.38968402309308,50.9151647847644],[-1.38927415395492,50.91850741677461],[-1.38919343269586,50.9191656515461],[-1.38002211476626,50.9212709063018],[-1.38083227670391,50.9324056842617],[-1.38013320294887,50.930530342655096],[-1.37690718286638,50.921846900145695],[-1.38765250195773,50.9170200527453],[-1.38553512385367,50.9146851353023],[-1.3767477171279,50.9163218493119],[-1.37216544078783,50.912293006647],[-1.37178764435642,50.9119608005773],[-1.38483538441716,50.9039910640686],[-1.38252070466166,50.8981359635044],[-1.38245311047603,50.8979649591747],[-1.38272715993989,50.897847944036506],[-1.38312553935544,50.88938447601531],[-1.36511119785051,50.8800387520251],[-1.36400855122035,50.8792776633055],[-1.34938445963244,50.888589060484],[-1.33504767426907,50.8973654843921],[-1.32197756217243,50.9009534990777],[-1.32402362842232,50.9044104257902],[-1.32787575928567,50.9044532917412],[-1.32464023398426,50.9084345301806],[-1.32981580238159,50.91494083508601],[-1.33948844173146,50.9237133297319],[-1.34506079826729,50.92305313585081],[-1.35793338490146,50.9307313459938],[-1.3574194140499,50.93178063208891],[-1.35277037129818,50.9353575046789],[-1.35899787122194,50.9379574228632],[-1.35468995194608,50.9410218344503],[-1.36691809302842,50.9468682960685],[-1.37989189534768,50.947518070381506],[-1.39083168987943,50.9465352288188],[-1.3928613994109,50.9493820763494],[-1.4013571372146,50.9503900718834],[-1.40613979538219,50.9561274536544]]]}},{"type":"Feature","properties":{"name":"Southend-on-Sea","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[0.625440455420316,51.532371011753106],[0.624160111935664,51.5476575255835],[0.632077284564213,51.5705294757645],[0.632220803544652,51.570715070027205],[0.638950939122342,51.5768010714265],[0.705018590045965,51.5671190493585],[0.786689932259859,51.5529433965889],[0.814869253511339,51.5437317646653],[0.819168409590216,51.542206540897105],[0.821153104826494,51.540605168187],[0.787770680963095,51.52183126020181],[0.626737319981734,51.5321763125939],[0.625440455420316,51.532371011753106]]]}},{"type":"Feature","properties":{"name":"Staffordshire","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-2.2113149262639,53.1158244641231],[-2.22307362111558,53.1037952188077],[-2.23795141697789,53.101047144668996],[-2.24650870143613,53.0902166577942],[-2.25324849091567,53.0939769935289],[-2.25589895456444,53.090674159951],[-2.2771057842415,53.0859055116809],[-2.27528900821487,53.0821891316426],[-2.281690216685531,53.0803160704102],[-2.29446090281441,53.078295845639204],[-2.30339645880176,53.08296118883789],[-2.31672798268146,53.0811150720024],[-2.32900939016106,53.0765798964248],[-2.33051505526749,53.070860452521494],[-2.34859444338724,53.0558257572991],[-2.353735258352569,53.0588488367202],[-2.35757896496723,53.05471851161159],[-2.37505980292515,53.054530720380406],[-2.38512366576312,53.0480909972802],[-2.38215914563461,53.0458496954898],[-2.38617066041114,53.0335638323062],[-2.37978504906831,53.02759141864241],[-2.384227391081021,53.0261675781643],[-2.37046780521562,53.0145758528387],[-2.38304468514478,53.0077867863604],[-2.38079367936827,52.99841106225491],[-2.37660894458356,52.997644217952406],[-2.37980679647327,52.99106555081139],[-2.37026915750574,52.9821621031766],[-2.37073679178673,52.9774663476453],[-2.37971828550886,52.97606526351831],[-2.38283206609993,52.9706579906812],[-2.37714158295842,52.9649354836899],[-2.38475025764833,52.9598221045746],[-2.38727089239098,52.9526987718357],[-2.39376659604247,52.9505792025374],[-2.39915338497335,52.96063121480271],[-2.41289866473101,52.9617402681845],[-2.40717532766568,52.9578774216686],[-2.40560245084248,52.9472941546176],[-2.42526929753461,52.9499985200323],[-2.43712308232414,52.9435990148052],[-2.4468823507398,52.9286284767413],[-2.45677444761335,52.9243594539953],[-2.45571303375538,52.9155009258017],[-2.46085451439693,52.9093835435673],[-2.47084125003617,52.9058690823754],[-2.465243523558529,52.892161698410405],[-2.45634618238567,52.8852338543318],[-2.4575938483273,52.879104605484],[-2.44614159360973,52.874008069112094],[-2.44041158371091,52.8812273008096],[-2.42585066713744,52.882002245366],[-2.41185800580277,52.8878901716254],[-2.3855545685442,52.8879883871584],[-2.37893788163928,52.8917205240456],[-2.37537899580838,52.891472919979],[-2.38251154347858,52.8766105001266],[-2.38115582959556,52.8670627343986],[-2.388495473782211,52.8622340111192],[-2.39375624971319,52.8366200385749],[-2.39709034279572,52.83385362358481],[-2.40765560028467,52.8346053351082],[-2.41634660240013,52.827005991004704],[-2.37765452620115,52.8116428164253],[-2.37141425861748,52.7952845564449],[-2.380650342898381,52.794725719687406],[-2.38087527557714,52.791113060257],[-2.385623003609529,52.790711171036804],[-2.37627707281625,52.7837716892434],[-2.36585811238934,52.78320112353921],[-2.36882980280175,52.7772757190521],[-2.35756869962092,52.77219803034361],[-2.33013390840829,52.7579789870405],[-2.33047536231167,52.7516170046655],[-2.32163245292435,52.7498946067276],[-2.31220085865136,52.7408631916215],[-2.31671752993342,52.7379758823737],[-2.3155761976627,52.7329474158237],[-2.31467895734629,52.7245552290047],[-2.30860350792447,52.7207461373701],[-2.3248336041539,52.7053358311102],[-2.3199078211235,52.6953977627732],[-2.30799526417698,52.6933320380262],[-2.30304049939528,52.6829527800275],[-2.273676793925429,52.6797763244486],[-2.24772940707176,52.683074392437796],[-2.23871532272218,52.6637013164014],[-2.24768735730075,52.6566601357049],[-2.23479340395745,52.6558728629011],[-2.23746978065446,52.6510904079848],[-2.23289449572097,52.6476942062433],[-2.23688723626329,52.6360670628935],[-2.24245443760002,52.632227056368095],[-2.24779271018414,52.62545565072539],[-2.25580397628643,52.60998332665479],[-2.26800074668408,52.61023227699591],[-2.27930537110748,52.6058136558715],[-2.309601252323461,52.607401218162],[-2.31346163671815,52.6140552889542],[-2.32097145263394,52.6146077281935],[-2.32547507277904,52.6000992610679],[-2.32202449570949,52.5936360480848],[-2.30854602372366,52.5910936748277],[-2.30101607106506,52.5932428414757],[-2.29505618359773,52.5846276644461],[-2.27865522895248,52.5834188243447],[-2.26280247941465,52.5703101723899],[-2.26083602983262,52.5631576571244],[-2.26721208685902,52.56149108471461],[-2.28247661716922,52.5533960748376],[-2.26572950822596,52.54931305446151],[-2.25640506809536,52.54179647851551],[-2.269215355444901,52.530688797502506],[-2.260943185133661,52.5241024164049],[-2.29139000182827,52.51167992496201],[-2.30644342446895,52.4998560405109],[-2.312749166701101,52.4892088291572],[-2.29563026209249,52.4738915988296],[-2.28838521904914,52.4610483253071],[-2.29099728549573,52.4567455442911],[-2.28738237113974,52.4553169285039],[-2.2949641030381,52.4489476840565],[-2.28718691776708,52.4456539525173],[-2.26950475053342,52.43861599367851],[-2.26273121608001,52.4407052159974],[-2.2615026509419,52.4369411086874],[-2.21787724424581,52.4353683733733],[-2.210427566925671,52.4299528124326],[-2.19699572996164,52.4277554569825],[-2.19287601440949,52.4232923129682],[-2.18580908208701,52.42621023032181],[-2.16770663043039,52.4237803511181],[-2.16381069752851,52.4232580756115],[-2.164851282579979,52.4302041413132],[-2.17492345032422,52.4585783929928],[-2.16751258219809,52.4712155333677],[-2.17848230668637,52.4826958263812],[-2.18517593720853,52.4948131122933],[-2.18865957656525,52.49450732249499],[-2.184783808067031,52.5003471555501],[-2.1917488108249,52.5033970774824],[-2.18661911053264,52.5047871409336],[-2.18798239526355,52.508362981704906],[-2.17824349374661,52.5116487293176],[-2.1487812463097,52.5146949607488],[-2.1445828888359,52.5213842172798],[-2.1519892207291,52.5261989320713],[-2.13556384068747,52.53450859748511],[-2.139150556196201,52.548064748562304],[-2.13348672789088,52.55406666395069],[-2.1409567037919,52.5585394663986],[-2.153054352049931,52.5536751572147],[-2.17304882126826,52.554640878993204],[-2.18295462766911,52.57693039287491],[-2.18827737941816,52.5741752033983],[-2.18943139946938,52.57727039076061],[-2.20180321025657,52.5787799031303],[-2.20396239022653,52.5838627474458],[-2.19990064544878,52.5838454258942],[-2.206876979050671,52.5865833477777],[-2.19820099366424,52.589177493667],[-2.18930941151633,52.5886086229572],[-2.18855255064566,52.5921009525646],[-2.18987251773871,52.5992885780941],[-2.19519867207528,52.6070659086818],[-2.18720937458215,52.6090099460473],[-2.18031362008319,52.604901462959],[-2.1724540888532,52.61027482564],[-2.16915726306721,52.609338362556],[-2.170963650281731,52.6143340175117],[-2.16501689529906,52.61651263413351],[-2.16846253564829,52.6198933414969],[-2.16173145404507,52.6191296794242],[-2.1627864986797,52.62122189174621],[-2.15155405886091,52.6245909839555],[-2.15298298978926,52.6297528971979],[-2.13723881152022,52.629646404522504],[-2.13392349524915,52.6335500530211],[-2.13164409930699,52.6376230837758],[-2.118245687375619,52.6377084218431],[-2.099248462545551,52.6327617881375],[-2.09882159713873,52.6289783379285],[-2.094810098945481,52.6207281119663],[-2.08839594178331,52.6198314231811],[-2.08100174127972,52.6119049797521],[-2.06732536390014,52.6120764144547],[-2.068706678433561,52.618116746190296],[-2.06400023828668,52.6207463006826],[-2.05071786918317,52.620522680582205],[-2.03012315423271,52.6169545037431],[-2.03550916519558,52.6217994634042],[-2.01001776584619,52.634616657152],[-1.99573639865882,52.63832071461399],[-1.99085589244034,52.63667172978051],[-1.986550312238839,52.64040927823989],[-1.96397292368402,52.64181508588431],[-1.96028059215627,52.6441628925989],[-1.960554178801,52.65371239405221],[-1.95507387081327,52.6541370256863],[-1.95994479808559,52.66203718383931],[-1.95456973548851,52.6626411711504],[-1.9454019192549,52.6562986344432],[-1.93351994278229,52.6615291028358],[-1.92368354990336,52.6555279392411],[-1.91284218201852,52.65823370724951],[-1.90865983061504,52.6540000147135],[-1.91801459097475,52.649894740469904],[-1.90508380548937,52.643207557453906],[-1.91598526501652,52.6352857818685],[-1.89432838207257,52.62266219155731],[-1.88514254979993,52.612671402952],[-1.89062691945564,52.5980635183441],[-1.872564450354151,52.584944695776905],[-1.872490455825931,52.585030894694604],[-1.85279623242263,52.60249268680581],[-1.83237033744878,52.607806570033105],[-1.80846977540344,52.6030903135623],[-1.7965280894026,52.5991229386816],[-1.7880812993329,52.5878626088221],[-1.77631735031977,52.592220073464],[-1.76847154383839,52.5891161846658],[-1.74240800261814,52.5943253674271],[-1.73900124953004,52.5892997702772],[-1.729310527494,52.587933293872496],[-1.70478616946946,52.5875065284062],[-1.7003926529636,52.5909126449143],[-1.69780143066728,52.590987891286595],[-1.68569088726036,52.5893509928612],[-1.68590019176515,52.5933484804697],[-1.67922341042278,52.59270948780021],[-1.66563959036358,52.5922522330128],[-1.66570790464282,52.5956658351123],[-1.6607813981187,52.5945102259496],[-1.65157754034906,52.5984182738847],[-1.64370705001515,52.60364489458351],[-1.63977736511557,52.608393066876],[-1.63601514632815,52.6196169494317],[-1.64153016030455,52.62020907473709],[-1.64308635231036,52.623203692772094],[-1.63818075673866,52.625520739215595],[-1.64250867121744,52.6314167574964],[-1.63818865146622,52.63770097237109],[-1.64242246730325,52.6409402951618],[-1.63424759687035,52.6430431761339],[-1.6449429538447,52.6575167797495],[-1.61558987141661,52.668715504980504],[-1.61554365797065,52.6719795736428],[-1.6042650474493,52.673721500546996],[-1.60428263194276,52.67899854719041],[-1.5896451852037,52.68726080817841],[-1.58628530395622,52.69449844858999],[-1.59754104512465,52.7004217669502],[-1.60549448912841,52.6965388876791],[-1.61537471532626,52.700707476484496],[-1.62525102440732,52.6974227910037],[-1.635340511504,52.7024830598539],[-1.63765313657185,52.6996754463897],[-1.655041567809,52.6987985798052],[-1.65430141943156,52.7082086780267],[-1.65929092215423,52.714083432649005],[-1.65660772699026,52.72174847290909],[-1.67559468302182,52.7248699524539],[-1.67794426981137,52.7275040897193],[-1.69695168059392,52.7271945309901],[-1.70415800106741,52.7320787781291],[-1.69788586316216,52.7353820162554],[-1.69761925670266,52.74376322590491],[-1.69223515761963,52.744122540808696],[-1.69676386785056,52.752861205326],[-1.68596781150447,52.7590126455582],[-1.6820666460962,52.7701916595409],[-1.67017911692501,52.773395527556595],[-1.67004708926369,52.7735947639117],[-1.67073946776933,52.78107055644891],[-1.66560381957049,52.7851627510546],[-1.64992983448513,52.779482013267106],[-1.63824276096365,52.7867285159005],[-1.62695771616391,52.7797724665294],[-1.61928932345148,52.7851679195997],[-1.61246242918384,52.78121820674849],[-1.60941662654359,52.7844535293935],[-1.61372053961796,52.7861549383811],[-1.61172271421689,52.7898627594367],[-1.60265842620209,52.7919850528518],[-1.60354934407712,52.79545531950911],[-1.59785011420253,52.7983442514156],[-1.59351333803758,52.7969316313824],[-1.58894635200613,52.7998222132013],[-1.59182686047041,52.8094905911784],[-1.61033983354632,52.8156171695088],[-1.60286693041514,52.8263007437787],[-1.58862283826578,52.828945523752],[-1.58797644349777,52.8315367418831],[-1.59189550105737,52.832270320087794],[-1.59128667483578,52.8362614019305],[-1.59890430514092,52.8377599038265],[-1.60705846961168,52.8433714012095],[-1.6190821096592,52.8460158181917],[-1.62823482259787,52.8518618669399],[-1.62656649953422,52.8543646887182],[-1.63515128669505,52.85298366549749],[-1.64263211142039,52.8563270417033],[-1.65868103302685,52.85679048246679],[-1.6746168689293,52.8611338335612],[-1.6899853540816,52.8644353819213],[-1.70060876646215,52.8605835236092],[-1.70346099030951,52.8663943193027],[-1.71206048032378,52.865920938954005],[-1.71766526860958,52.8645212406195],[-1.71696917085594,52.8607862453265],[-1.72216965445728,52.8632607128242],[-1.72532205465213,52.8596631847173],[-1.72642356787278,52.8630547738396],[-1.73916486742502,52.8648066581913],[-1.7397849907676,52.8676684564315],[-1.74955798221329,52.866773807630906],[-1.74600328186458,52.8686931604978],[-1.74758636031624,52.870578917994],[-1.75226722347909,52.8688078908149],[-1.75070306479113,52.8737102161968],[-1.75858465600575,52.8772206333035],[-1.77423194761186,52.8792595099856],[-1.77722065071375,52.8838147408519],[-1.78373028684108,52.8839642256865],[-1.78814837096325,52.88001685713301],[-1.80137781460864,52.886173070016895],[-1.81105273705371,52.8806531841501],[-1.82362238868557,52.8828802568378],[-1.82202392326266,52.88603854252981],[-1.82670890885525,52.883985944297],[-1.83295463957252,52.887452189693],[-1.83424857833344,52.8955112082222],[-1.82999902468756,52.896588403719],[-1.83338633475829,52.9021252839973],[-1.84409313881335,52.90721335422491],[-1.847579130724361,52.90996503326681],[-1.84260775641721,52.91298884518271],[-1.84796261303534,52.9129876949903],[-1.84895229066283,52.9166341766351],[-1.84750775487329,52.9201507682638],[-1.85456863270552,52.9199753455107],[-1.85657559960297,52.9233909598958],[-1.85295242824884,52.93170535463031],[-1.84954459347969,52.9311095994993],[-1.84927912541296,52.9356074955189],[-1.83945885371924,52.9413802440674],[-1.83309485659879,52.941269867850906],[-1.835582595658509,52.94526458245021],[-1.82875545916929,52.94776567769019],[-1.83447729042191,52.9549184323082],[-1.82554522020413,52.9618220218345],[-1.83018560463517,52.9713464845054],[-1.82611223010624,52.97748747712121],[-1.803223764302671,52.9813513890413],[-1.80470933044394,52.98551769751351],[-1.79677925518143,52.9851043622033],[-1.79339128565297,52.9896417301731],[-1.78752146310807,52.9894264291889],[-1.7893524368084,52.992760211359496],[-1.76256960898942,52.9996692928129],[-1.76624027105953,53.0069955096272],[-1.76355601441196,53.0113931092346],[-1.762870026914,53.013372930969],[-1.75771862889042,53.017144397605506],[-1.76373080887802,53.021428059838506],[-1.7571882102809,53.0287959427956],[-1.76154345131445,53.0333990244926],[-1.75903746906611,53.0375523348905],[-1.7681938448564,53.0440382008205],[-1.77873412098345,53.043013716422706],[-1.77898129670065,53.0448443741093],[-1.78414518174691,53.0547076546788],[-1.77565273133291,53.0593546425468],[-1.78564308883434,53.0631115823998],[-1.79135559873188,53.0781999911771],[-1.78860479463554,53.0809052932279],[-1.79423901989599,53.088394057015],[-1.79229496417466,53.0915260613413],[-1.78297133879133,53.093334233260904],[-1.7837258959914,53.1028279820508],[-1.78975575754985,53.10956349571],[-1.80093361132616,53.11515849452821],[-1.81410167585432,53.1319352609279],[-1.82215771084988,53.1380626910397],[-1.81202512678931,53.1527440795625],[-1.81607333504688,53.158636375845],[-1.83717586580524,53.1757590017478],[-1.87397365004863,53.1953607549267],[-1.8849343481012,53.19656741989381],[-1.89863293086253,53.1999569790687],[-1.90804412064958,53.1985399552552],[-1.9376925389065,53.2117778499956],[-1.95670722983203,53.2137476093571],[-1.96236461007117,53.2262417356404],[-1.987407758670291,53.21358584871461],[-2.00166572601453,53.1930552402503],[-2.01817915668168,53.189052794187],[-2.028554852885521,53.1933536568874],[-2.04641792897177,53.192681847338505],[-2.05498629363975,53.1864875164726],[-2.05228942969468,53.1839592991013],[-2.05921518155396,53.1809006459014],[-2.05824238422747,53.176321309854806],[-2.07804988230038,53.1704426893823],[-2.08723683310095,53.1698537692042],[-2.09070204345616,53.17229081899681],[-2.10038095023658,53.169566496295104],[-2.1153640261389,53.1695169310491],[-2.114413216571419,53.1725408816396],[-2.12787018937877,53.17462867367811],[-2.13346397503861,53.1828150167551],[-2.14073139793868,53.183578687823704],[-2.14486585803342,53.173767794645],[-2.14141084525282,53.15665239210911],[-2.15564486007666,53.1596189582844],[-2.15954293648532,53.152906092536],[-2.1732802262854,53.1476049272708],[-2.18653381017354,53.13597727100209],[-2.19350962891906,53.129620649252],[-2.2113149262639,53.1158244641231]],[[-2.2071692772467,52.97177464116],[-2.21251375044799,52.9805793513013],[-2.20434090153092,52.981398211756805],[-2.21246471456852,52.9881844901287],[-2.21719037764057,53.001636606119],[-2.2159591195201,53.0024595970195],[-2.21195184522806,53.0069595809382],[-2.21548673693578,53.015305098620004],[-2.202552764477229,53.0200245263916],[-2.20496452555006,53.023139796041406],[-2.20832510812704,53.0344590781062],[-2.21501210674769,53.04046715453121],[-2.22199132835455,53.0498746678656],[-2.22791793705517,53.0637307248979],[-2.23413970209771,53.06439274012389],[-2.23876135172224,53.0733392655837],[-2.21586399215582,53.085312134812305],[-2.20137064203059,53.086700030405105],[-2.19861521468755,53.092719243796395],[-2.18120675463031,53.0897970691097],[-2.17762602934778,53.09118947568821],[-2.16734597597923,53.0832492161572],[-2.16114742947303,53.07012020617331],[-2.13991663704809,53.0682530939351],[-2.13915765285105,53.0652452899283],[-2.1253995147537,53.0645792460147],[-2.12743721655289,53.05373884511071],[-2.11658296910728,53.0480329248832],[-2.12932291725691,53.04823820165829],[-2.129041904003889,53.04357403354089],[-2.12650807762453,53.0401357211524],[-2.12916709353954,53.0356167788384],[-2.11880257955633,53.0264452236021],[-2.12373740877799,53.0216381396693],[-2.12096815557078,53.0202944285943],[-2.11495242814106,53.0138920461544],[-2.10346667550099,53.0108579649111],[-2.10786532369348,53.002614597356],[-2.10127156981088,52.995637590727],[-2.0901351603541,52.9981899969954],[-2.09001880323283,52.9902608787001],[-2.091770750714189,52.9853353011852],[-2.07945810103067,52.9740191714508],[-2.08421047395674,52.9750263621052],[-2.08812772094549,52.97385200276],[-2.08121832441748,52.9669059044845],[-2.09999317152045,52.96074440810241],[-2.10300821883991,52.9634115923924],[-2.10872851059662,52.9623635643449],[-2.11018341672463,52.95785945673601],[-2.12165690294565,52.9560862416133],[-2.12815844067916,52.9664197834727],[-2.13135716493147,52.97154210028279],[-2.14571072867989,52.9761107985749],[-2.15149258198616,52.9711935979901],[-2.14984150601444,52.9652806182424],[-2.15949945916224,52.9636193739182],[-2.16259461482334,52.9533653743282],[-2.17111991093195,52.9517289889724],[-2.17221329980748,52.9549465008004],[-2.17689847312917,52.9537071390054],[-2.17453826317346,52.947232025819694],[-2.18160900755644,52.94620642033439],[-2.18599758784757,52.9510063031918],[-2.19125335767681,52.9500863982574],[-2.19537602249787,52.9642237218452],[-2.2071692772467,52.97177464116]]]}},{"type":"Feature","properties":{"name":"Stoke-on-Trent","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-2.20137064203059,53.086700030405105],[-2.21586399215582,53.085312134812305],[-2.23876135172224,53.0733392655837],[-2.23413970209771,53.06439274012389],[-2.22791793705517,53.0637307248979],[-2.22199132835455,53.0498746678656],[-2.21501210674769,53.04046715453121],[-2.20832510812704,53.0344590781062],[-2.20496452555006,53.023139796041406],[-2.202552764477229,53.0200245263916],[-2.21548673693578,53.015305098620004],[-2.21195184522806,53.0069595809382],[-2.2159591195201,53.0024595970195],[-2.21719037764057,53.001636606119],[-2.21246471456852,52.9881844901287],[-2.20434090153092,52.981398211756805],[-2.21251375044799,52.9805793513013],[-2.2071692772467,52.97177464116],[-2.19537602249787,52.9642237218452],[-2.19125335767681,52.9500863982574],[-2.18599758784757,52.9510063031918],[-2.18160900755644,52.94620642033439],[-2.17453826317346,52.947232025819694],[-2.17689847312917,52.9537071390054],[-2.17221329980748,52.9549465008004],[-2.17111991093195,52.9517289889724],[-2.16259461482334,52.9533653743282],[-2.15949945916224,52.9636193739182],[-2.14984150601444,52.9652806182424],[-2.15149258198616,52.9711935979901],[-2.14571072867989,52.9761107985749],[-2.13135716493147,52.97154210028279],[-2.12815844067916,52.9664197834727],[-2.12165690294565,52.9560862416133],[-2.11018341672463,52.95785945673601],[-2.10872851059662,52.9623635643449],[-2.10300821883991,52.9634115923924],[-2.09999317152045,52.96074440810241],[-2.08121832441748,52.9669059044845],[-2.08812772094549,52.97385200276],[-2.08421047395674,52.9750263621052],[-2.07945810103067,52.9740191714508],[-2.091770750714189,52.9853353011852],[-2.09001880323283,52.9902608787001],[-2.0901351603541,52.9981899969954],[-2.10127156981088,52.995637590727],[-2.10786532369348,53.002614597356],[-2.10346667550099,53.0108579649111],[-2.11495242814106,53.0138920461544],[-2.12096815557078,53.0202944285943],[-2.12373740877799,53.0216381396693],[-2.11880257955633,53.0264452236021],[-2.12916709353954,53.0356167788384],[-2.12650807762453,53.0401357211524],[-2.129041904003889,53.04357403354089],[-2.12932291725691,53.04823820165829],[-2.11658296910728,53.0480329248832],[-2.12743721655289,53.05373884511071],[-2.1253995147537,53.0645792460147],[-2.13915765285105,53.0652452899283],[-2.13991663704809,53.0682530939351],[-2.16114742947303,53.07012020617331],[-2.16734597597923,53.0832492161572],[-2.17762602934778,53.09118947568821],[-2.18120675463031,53.0897970691097],[-2.19861521468755,53.092719243796395],[-2.20137064203059,53.086700030405105]]]}},{"type":"Feature","properties":{"name":"Suffolk","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[0.342684099441605,52.2423433461623],[0.340002513478712,52.26768786542281],[0.374777423612123,52.4097288652912],[0.445538699626893,52.4473717805671],[1.66567728189296,52.5496548394847],[1.68611385506773,52.54938019495021],[1.7025764111788,52.5444251788412],[1.74037086158233,52.532100452309706],[1.74174699479942,52.529402257068],[1.75290334760025,52.5059516096842],[1.76047301612095,52.49002632675341],[1.76142294803892,52.4874538383196],[1.76357118981522,52.4816350668861],[1.7601654189459,52.4737684841954],[1.72794878841983,52.4001088724696],[1.58232145753213,52.0906414743015],[1.57894539303224,52.0861478557961],[1.32021345294513,51.9334942637986],[1.08121781294911,51.9446823332193],[0.810877141632654,51.9606960885641],[0.787161496964329,51.96313424529941],[0.404638263575799,52.0655023804364],[0.381803808187178,52.1027012943415],[0.342684099441605,52.2423433461623]]]}},{"type":"Feature","properties":{"name":"Surrey","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-0.820778172016609,51.239270826681505],[-0.820863635103588,51.234477863628],[-0.826608560856257,51.2343800003203],[-0.828470054882975,51.2306812594401],[-0.828510941213673,51.228904733926406],[-0.840109612853003,51.2152006279561],[-0.848912169248545,51.2107157287771],[-0.845531498131086,51.20013422444],[-0.839291933391315,51.1963351658455],[-0.827180989704899,51.1846570925642],[-0.826555765189442,51.17856467998],[-0.834203925546664,51.1475816697554],[-0.828373463093442,51.1452662545243],[-0.817387622834827,51.147750889665],[-0.80472960736977,51.1553639426513],[-0.794453980125635,51.1494896170163],[-0.791282855197865,51.1394129929276],[-0.781022524897023,51.1352192927407],[-0.78087839586483,51.1280965532338],[-0.78065044248518,51.1277992104011],[-0.769280592586641,51.1171423778692],[-0.745525568291982,51.1121884663796],[-0.744687419797277,51.1064108857188],[-0.749272690128818,51.1032459066375],[-0.759864834477472,51.10486765296321],[-0.768886626735593,51.103249963030606],[-0.759443824776473,51.1035727515698],[-0.759227538235284,51.10324837638661],[-0.754312848438548,51.0958762763716],[-0.758900251643686,51.0908469522205],[-0.753480635682262,51.0864557098491],[-0.735579162808658,51.0847014742856],[-0.729965240815826,51.0805500013271],[-0.723413943929025,51.077817812227906],[-0.7066824348474,51.078760978569306],[-0.696752296390414,51.071491686738305],[-0.6874249802526,51.0755142309995],[-0.669060472312222,51.0773930229333],[-0.664091906817086,51.08172481240789],[-0.650229340261496,51.0835682089948],[-0.629081959494319,51.0890036932431],[-0.600643410324778,51.0796685812259],[-0.577592603888771,51.0866537667245],[-0.556429413975218,51.084611892184],[-0.535523150105076,51.0831756299593],[-0.53497929663322,51.0935789223352],[-0.526388223010758,51.091866721622104],[-0.526945499266467,51.089605664124505],[-0.523170681584605,51.091606700007105],[-0.505377191977252,51.08826203886851],[-0.492127175324818,51.0944841769189],[-0.488519644888992,51.0973405849399],[-0.444849660158165,51.09959260332],[-0.441444403091323,51.1032971840027],[-0.438827121166527,51.1002973763645],[-0.442503690062925,51.098127884179],[-0.438436290445316,51.0979081237137],[-0.419203500082164,51.1052045809821],[-0.400218400447078,51.1084195759154],[-0.391524793518279,51.1165107863938],[-0.384631065293708,51.1147412754655],[-0.358033355933323,51.1210302247707],[-0.35270349219921,51.11829336021079],[-0.342050958769824,51.1199045614522],[-0.326426691856835,51.1258150956156],[-0.319332624696079,51.1246369577977],[-0.300346786136933,51.1247356968359],[-0.286389859338673,51.1304924645616],[-0.275290745685159,51.1303085216959],[-0.25461326381062,51.1390503685817],[-0.255167664563843,51.1441405976481],[-0.214234803403043,51.1484637545475],[-0.212142089174476,51.1554548864805],[-0.204109586928842,51.15571131726091],[-0.195921749409937,51.1623023175835],[-0.186866075364391,51.1616658528207],[-0.185297862155254,51.1648197208438],[-0.17670622529243,51.1668499726532],[-0.160892553371527,51.15982342372891],[-0.140462480803131,51.1600473191154],[-0.132959635268358,51.15888373207709],[-0.137571778320172,51.1421596105082],[-0.131025048622507,51.1394831344474],[-0.11725232095628,51.1416059453046],[-0.09369042917166,51.138426479431295],[-0.093059978940252,51.1387066933121],[-0.082613051363085,51.1426377476602],[-0.063203483488358,51.141257585275596],[-0.056325694097903,51.13676552129281],[-0.033241113275993,51.1392611204125],[-0.03218639283012,51.1389519906694],[-0.017786255579234,51.14119995538741],[-0.006588864859286,51.1375688266709],[0.027361224766083,51.139850507099396],[0.050016528693635,51.1426500167773],[0.054805363070837,51.1495285929708],[0.0514942417773,51.1572454183502],[0.046175915664107,51.17183140980459],[0.052600364034076,51.1806240184208],[0.04516744263272,51.1886152425585],[0.047823257009324,51.1917416153405],[0.039682138568135,51.1978221010024],[0.037289900125101,51.207060275098],[0.033598951563527,51.2143379727583],[0.041148588658467,51.216623940172],[0.042833771776774,51.2246101610587],[0.043809439153699,51.230887476759],[0.052859695086069,51.2365270454181],[0.057607654344816,51.244914379710806],[0.051942392591165,51.2626827517865],[0.045396379189194,51.276660275745],[0.048171074855135,51.285652649617205],[0.042398883648016,51.2926788490678],[0.042620201159846,51.3013288993907],[0.032909419365926,51.3075209114754],[0.024839139154774,51.3021549332254],[0.019101247808221,51.2916841019891],[0.015009378507288,51.2917860709615],[0.012158501750626,51.2995981749523],[0.010348595099596,51.316140332005006],[0.006583254377009,51.3156522556827],[0.002294720966143,51.3291388513245],[-0.010873929854156,51.3336283574389],[-0.014328038709478,51.32980466145221],[-0.022056700450286,51.3380996039451],[-0.037892270902319,51.3387044848688],[-0.041967080664043,51.3338103614329],[-0.050261219672833,51.3326393320538],[-0.047868739591303,51.325245056529],[-0.05625160319741,51.321664021092005],[-0.063994186935421,51.3186366052156],[-0.071016516489493,51.32123279407921],[-0.082224109790183,51.3169577054],[-0.08193167569138,51.3106472894563],[-0.088731978774133,51.3051045617358],[-0.097244716753407,51.30029536763869],[-0.094324198537707,51.2993539651557],[-0.101139812864712,51.296286656172704],[-0.115728818857484,51.2907281577305],[-0.117775245875414,51.2870948097597],[-0.124292859195443,51.2867586590943],[-0.137313517589503,51.30078090546449],[-0.143558982605151,51.3012603875361],[-0.151023184109817,51.30072193216989],[-0.157735020247375,51.3044275103801],[-0.154315337506222,51.310317896513794],[-0.158330470681896,51.3109853914119],[-0.161879752207213,51.3196257050228],[-0.156543168202182,51.3215085885945],[-0.164187026486933,51.3260405183736],[-0.163076714225111,51.33026421917081],[-0.172858210232725,51.330013463849504],[-0.187459117706562,51.3408122796846],[-0.197319341793986,51.3435951617074],[-0.202050653173641,51.3401414075991],[-0.213030837514285,51.3355410665542],[-0.21409520850526,51.33035052953501],[-0.220940778700181,51.329863040865206],[-0.229822680877552,51.3365228063624],[-0.217264425569081,51.3433870908233],[-0.226943704152365,51.362625173256],[-0.233949402392238,51.3653847836474],[-0.245404841047607,51.366845440699706],[-0.244679371284931,51.369061154542806],[-0.245041244589302,51.379960270458504],[-0.245030259031958,51.3800339656124],[-0.261148558997612,51.3795998002344],[-0.269064609019782,51.37356180704371],[-0.272545496689882,51.37226382612321],[-0.274022551886991,51.370655282208],[-0.28407531400389,51.365147556108006],[-0.288249074170444,51.3621165672627],[-0.28507723209459,51.3612106427655],[-0.297771117293604,51.3492612573375],[-0.30619199674676,51.335084410874906],[-0.323946904733229,51.32671606577821],[-0.330655551869037,51.329009639034],[-0.327923135992918,51.3521845134341],[-0.318481506558764,51.3657621902657],[-0.317898307628403,51.3697919645168],[-0.312651479529226,51.37475113750389],[-0.308471291881675,51.3757949805653],[-0.307365447908524,51.3783835469693],[-0.313111086424265,51.3887724742728],[-0.315958343747125,51.3876322521386],[-0.317697879461912,51.3936670802519],[-0.325860281127279,51.39143960527821],[-0.338342120465142,51.400848231002605],[-0.359139329301899,51.4119031603976],[-0.373860203915347,51.40849330584061],[-0.383350028118426,51.408538296028404],[-0.389649816289074,51.4106933301514],[-0.386641678029352,51.4200808195965],[-0.39134197049661,51.4223261130517],[-0.407775634811968,51.423578390611794],[-0.418585780722532,51.4321118872156],[-0.427831381608617,51.4292523695336],[-0.439983256329709,51.4306264500758],[-0.43975229281263,51.434619596659],[-0.447716872453478,51.43500298246591],[-0.446289383144423,51.4399960108031],[-0.456475094105894,51.4382245455337],[-0.461319946211036,51.45239126196691],[-0.458644591609625,51.4563100938075],[-0.493861634990079,51.4627229058023],[-0.509701400845035,51.469175947703405],[-0.515661238513089,51.4682686774836],[-0.524358681535487,51.471528484042],[-0.529960218464429,51.47016819059531],[-0.54061316396913,51.4578521275783],[-0.526731619433222,51.4475099193223],[-0.531436348980556,51.4417130210241],[-0.524539573086476,51.4398800737271],[-0.522765050804453,51.4353004066197],[-0.534600004012159,51.4374119373185],[-0.550444872227547,51.44347291270321],[-0.555566908123841,51.4414858548777],[-0.571675217761157,51.451007631736],[-0.579675613649196,51.4447473448871],[-0.594219457112765,51.4414680219201],[-0.605124550506387,51.43131211788211],[-0.604956227393237,51.421380756127],[-0.608501160957111,51.4120106632517],[-0.618368608441882,51.3990257749748],[-0.614520614965814,51.397394072496],[-0.618495201013367,51.3923882534352],[-0.623494691644589,51.38954336594631],[-0.616344267326498,51.3835395923837],[-0.620922516025549,51.38517171005459],[-0.62593068575818,51.3828727036517],[-0.640460902870947,51.3873720273344],[-0.646678885963734,51.385384320582],[-0.655300457263153,51.3872457872762],[-0.667634283855982,51.3845713456129],[-0.735258360031567,51.36504021693499],[-0.735335360826244,51.3650095832703],[-0.744325979010401,51.3545689403745],[-0.748053035595279,51.35234813253431],[-0.759435167562702,51.3434698965903],[-0.758192612140745,51.3405684497557],[-0.77267997509833,51.3328431504599],[-0.775466206963731,51.3319589032434],[-0.767093450444421,51.3262248898307],[-0.76290312001552,51.3187305296545],[-0.758290665728951,51.3159255215188],[-0.746389810146413,51.31061923901759],[-0.745653331661332,51.3100329402967],[-0.73940050358514,51.29893936199439],[-0.733348692015766,51.2817911208774],[-0.731093833410657,51.2803620913767],[-0.731633239888027,51.2667907052399],[-0.733298953877153,51.25972073551701],[-0.730489797425043,51.2548997702577],[-0.735863455564253,51.2484981260326],[-0.738085619476202,51.241741652036],[-0.735786072535465,51.2376801646976],[-0.745540379663864,51.2304563901334],[-0.758721096594631,51.2338809766373],[-0.767695114970893,51.2360692976911],[-0.775856696310843,51.2419100880382],[-0.781928756334866,51.24167131600311],[-0.786900528289122,51.2418650990912],[-0.798489926913442,51.2394145642527],[-0.801740042684925,51.2390387633544],[-0.804749572959298,51.2450647475977],[-0.820778172016609,51.239270826681505]]]}},{"type":"Feature","properties":{"name":"Swindon","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-1.69651831061135,51.6821163773715],[-1.68305860763384,51.6901103608739],[-1.69683095088565,51.6920420122024],[-1.70966046777436,51.68165683721269],[-1.71105528242177,51.671792947318195],[-1.72755368076921,51.6672098345907],[-1.73921256464876,51.6674259261254],[-1.7537928604015,51.66221535879169],[-1.76631971520486,51.6626841594663],[-1.77027478254481,51.6679699827664],[-1.77698862281829,51.6693909414219],[-1.78861685777866,51.6670018975245],[-1.79168114288144,51.6631257108799],[-1.799080529368561,51.66250472286641],[-1.788583417853451,51.63271365022051],[-1.8063764643776,51.6327192109361],[-1.81431599487437,51.62450663541131],[-1.820188407709129,51.6277491109549],[-1.83901005867784,51.6166927079927],[-1.84237820862562,51.6121170789619],[-1.83984936037627,51.60719347902061],[-1.83985485420212,51.5999194359275],[-1.83185653592711,51.5967288742393],[-1.83756146498663,51.58724191963609],[-1.82305417296239,51.5834570865911],[-1.82633569186617,51.5794366057351],[-1.83083698918952,51.5817503649921],[-1.83847636201707,51.58002935715749],[-1.84314557581213,51.57865915259589],[-1.8443493071034,51.5702132888316],[-1.85007738393333,51.5680978635942],[-1.84518926584843,51.561718380560805],[-1.86010361511537,51.5652438120408],[-1.86512613787001,51.55953295678971],[-1.84961613532635,51.55362821375],[-1.85382409898453,51.546301920144],[-1.84430701633753,51.54310667554461],[-1.83079603905622,51.5111433617992],[-1.83701591495243,51.5109497308748],[-1.84382557513799,51.5216556641972],[-1.84217661203159,51.5262652871132],[-1.84690549165248,51.52428257071269],[-1.84404231234914,51.515128765876106],[-1.84414329728723,51.513835878575904],[-1.83758492292658,51.5008374700594],[-1.81345034633343,51.5070421801524],[-1.81304646792152,51.4965355965363],[-1.79779682111143,51.48444593291309],[-1.79319207755711,51.4861670663425],[-1.77433053529391,51.4824545734086],[-1.77471783851001,51.4845387563144],[-1.71573673989899,51.48838334618059],[-1.71908165367462,51.5007055402528],[-1.66774043443428,51.5052790018728],[-1.63429263506371,51.5129411212826],[-1.62846501596916,51.5173646391012],[-1.62357373996522,51.514200251963196],[-1.60281227577577,51.518295057349306],[-1.61375011177629,51.53651052754581],[-1.63407057049667,51.55325654836909],[-1.64769133240668,51.5719518965806],[-1.65504455154451,51.576506273878],[-1.6765398170414,51.5694390418873],[-1.68405026397286,51.5729005120114],[-1.69111065938545,51.583523727724],[-1.69042935937104,51.58438693327079],[-1.68475642339567,51.5903268875702],[-1.69061673406566,51.6054499290187],[-1.68131999668135,51.6135616179683],[-1.6749552846623,51.6117512687316],[-1.66700965139022,51.616264474011906],[-1.67373615894307,51.6228498665634],[-1.65995432000758,51.6349908726268],[-1.66330747014688,51.639930521631],[-1.67566946189523,51.64142547779339],[-1.68627335008817,51.652381639396],[-1.69193809184422,51.6521645874729],[-1.68849517464084,51.65678798909269],[-1.69062315863403,51.6637835833815],[-1.70018909588819,51.6707416649703],[-1.69651831061135,51.6821163773715]]]}},{"type":"Feature","properties":{"name":"Tees Valley Combined Authority","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-1.70527424961459,54.5491719567045],[-1.70928210885412,54.5631794622174],[-1.70898440615518,54.5741416873651],[-1.68242215879618,54.6177711334526],[-1.30367215760401,54.71850676843749],[-1.2702517668578,54.727168687781],[-1.25856139746239,54.726055452010705],[-1.24224977186981,54.72296222690441],[-0.78986748641371,54.5606385845159],[-0.789706090541521,54.5602608590726],[-0.844139141102103,54.4895497730154],[-1.46310127817227,54.451377562279],[-1.54567271781715,54.471238476764405],[-1.69692636355207,54.5360064297071],[-1.7037713077725,54.5449364611358],[-1.70527424961459,54.5491719567045]]]}},{"type":"Feature","properties":{"name":"Telford and Wrekin","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-2.44047299723215,52.8207718050897],[-2.46910115057058,52.8230443039585],[-2.47294644126784,52.82075279738141],[-2.45774619307531,52.7985299080289],[-2.46347037859001,52.7927462438348],[-2.45820273763368,52.7900455241921],[-2.45760523301359,52.78340629482619],[-2.47095089949061,52.7842889512943],[-2.47263227055017,52.7804544902841],[-2.48821241165857,52.780611630653],[-2.48995586426625,52.7839215472241],[-2.47712088994151,52.7993785524561],[-2.47847779960263,52.8015279107651],[-2.48837345672815,52.8004250146676],[-2.48650658342808,52.80524571117541],[-2.49240438882783,52.8023491871696],[-2.50302787014664,52.796604266945394],[-2.51172188949586,52.7985106018846],[-2.51614066833066,52.7955563556171],[-2.5219890237145,52.7989513218527],[-2.529415183057261,52.7871122841295],[-2.537514544607141,52.7851089648203],[-2.53380989885022,52.7941188252219],[-2.540025778654079,52.7938210624569],[-2.5529425104682,52.8029327258801],[-2.5613145594984,52.79903947402829],[-2.57053687812948,52.803003958722094],[-2.5694202602152,52.8050679864233],[-2.5812422378618,52.8060273508812],[-2.59183851550259,52.7985190208631],[-2.59800685838951,52.7979685830807],[-2.59256465126951,52.793561339465],[-2.59224445077165,52.7768495572435],[-2.62100320767185,52.7765219605895],[-2.63233128566817,52.759590553829696],[-2.64312849256875,52.7670846596779],[-2.66341537473471,52.7604411712564],[-2.6619099339977,52.750572763035],[-2.6673621378111,52.75019793728251],[-2.65939039427327,52.7435335092308],[-2.66438999757331,52.738292590012804],[-2.66096248887772,52.734166626889],[-2.65827724217208,52.73071055118639],[-2.63023387434865,52.72626109437811],[-2.62428391511968,52.7195034859552],[-2.61891829980689,52.7218779735393],[-2.61512236957176,52.7189544268856],[-2.59741996828975,52.7182511698821],[-2.6054222313313,52.70678008542],[-2.624322995239201,52.7034170430987],[-2.62254969542173,52.6990321685353],[-2.61271632578621,52.6967991120002],[-2.60333128412742,52.6893578458443],[-2.59667104846596,52.690567439204],[-2.5885616658034,52.6837487917326],[-2.55564737354675,52.67109810774241],[-2.54941296877899,52.666287989424504],[-2.5542086269784,52.660023118783],[-2.54549086825498,52.6584039813805],[-2.54845742726727,52.6547126133052],[-2.53005326273098,52.64948156817141],[-2.51014588927163,52.6384062251756],[-2.50128470237006,52.6294218958506],[-2.48179788346018,52.6235372133551],[-2.464562975593219,52.623795559041696],[-2.4510175332256,52.61697873792491],[-2.4380403195154,52.6146083404025],[-2.43404688051936,52.6182207421704],[-2.43663474871759,52.6270940478354],[-2.418295053608721,52.6337749410688],[-2.41646675473306,52.6449009093546],[-2.41757861866762,52.6503483666361],[-2.41902901166181,52.6628920164182],[-2.40803037793922,52.67898501177889],[-2.40779634229548,52.6795874123794],[-2.40121058307701,52.6845351782937],[-2.405242178687069,52.69486368186399],[-2.40152512548255,52.69494951182241],[-2.40250131681948,52.7039052921399],[-2.38519094857574,52.72008056418851],[-2.375072430033879,52.74080906475161],[-2.36882175848879,52.7404637182929],[-2.37187424969889,52.7385276167899],[-2.36729532643909,52.7331633896355],[-2.357928626353079,52.7312125484689],[-2.33638406719665,52.7330457529662],[-2.335854753536669,52.730273027289],[-2.33007040198894,52.7294621941465],[-2.3155761976627,52.7329474158237],[-2.31671752993342,52.7379758823737],[-2.31220085865136,52.7408631916215],[-2.32163245292435,52.7498946067276],[-2.33047536231167,52.7516170046655],[-2.33013390840829,52.7579789870405],[-2.35756869962092,52.77219803034361],[-2.36882980280175,52.7772757190521],[-2.36585811238934,52.78320112353921],[-2.37627707281625,52.7837716892434],[-2.385623003609529,52.790711171036804],[-2.38087527557714,52.791113060257],[-2.380650342898381,52.794725719687406],[-2.37141425861748,52.7952845564449],[-2.37765452620115,52.8116428164253],[-2.41634660240013,52.827005991004704],[-2.426037909845081,52.823212169539204],[-2.426508198966021,52.8259288607759],[-2.42632350120109,52.8225269644481],[-2.43020916128789,52.828153888453],[-2.44047299723215,52.8207718050897]]]}},{"type":"Feature","properties":{"name":"Thurrock","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[0.247042158331995,51.4727355203201],[0.211870087476876,51.4899589563564],[0.214156929096117,51.4960396107991],[0.237176008191511,51.5193344362336],[0.242858022678213,51.5243918777517],[0.313008168219745,51.5659419248112],[0.343784221695651,51.56782140518],[0.391809384323015,51.5672122416766],[0.461617567216431,51.553697279523305],[0.484841617865104,51.54787587271029],[0.508338233838982,51.536593650535096],[0.548030413942597,51.515743319547],[0.548308080233868,51.5143184697461],[0.433979747212772,51.4614986163648],[0.398401563913328,51.4536616126216],[0.378759071347683,51.4521358363784],[0.340845314505118,51.4523277375829],[0.281402125989587,51.461398459776106],[0.247042158331995,51.4727355203201]]]}},{"type":"Feature","properties":{"name":"Torbay","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-3.52090513364388,50.5176836363678],[-3.519995049458379,50.5110429238056],[-3.529951469029089,50.5045871030079],[-3.53914315092096,50.5045349581509],[-3.54379820922934,50.497347490162],[-3.56107484499381,50.494463452273095],[-3.56446977254919,50.4875827976096],[-3.5647735727694,50.4869669717565],[-3.56573864580704,50.487708408152606],[-3.56964128302375,50.4907064557815],[-3.57123998781887,50.4882529662675],[-3.584171579368911,50.4779958054421],[-3.58424985487516,50.47772311811611],[-3.58280181803364,50.4690109577162],[-3.5914838430371,50.4596506258521],[-3.58698349965713,50.4569878943334],[-3.58934376870008,50.4507369974304],[-3.615481110207491,50.4445064672361],[-3.62507493560479,50.4412861655855],[-3.628043198071141,50.4259888922362],[-3.62384168144492,50.4226865074445],[-3.61404218832462,50.422821067282],[-3.61161307822727,50.4137609098961],[-3.59904697420756,50.4092692034138],[-3.58770821992223,50.4105557088701],[-3.577989199508961,50.4084290483348],[-3.578878571349,50.404152912465705],[-3.57361724167125,50.402170048760595],[-3.57477813556098,50.394151500323595],[-3.56464114936602,50.3921531342071],[-3.555337662902629,50.3781161089993],[-3.5442558641542,50.373482587385105],[-3.53656459306532,50.3759661032224],[-3.5207417982741,50.3781459725458],[-3.50786501338165,50.37895962146441],[-3.5076303087972,50.37915559569289],[-3.49728644983802,50.3811896115733],[-3.49654095884777,50.381377250676294],[-3.496133954056181,50.38152844164671],[-3.49613760653977,50.3815695245291],[-3.49615086412991,50.3817186750437],[-3.49632193889993,50.38176663685991],[-3.49643563697532,50.3817985117681],[-3.49638107923695,50.3818298772189],[-3.49625931230511,50.3818998831068],[-3.49765900923962,50.38339251686249],[-3.49831755790045,50.38400465549061],[-3.498429997734291,50.3840207008124],[-3.50320916729598,50.3847025798372],[-3.50203709057973,50.3878770088813],[-3.50158240609814,50.38910835129611],[-3.50136391710843,50.3897000257986],[-3.49482099692949,50.3916734854799],[-3.49481830645372,50.3915435444083],[-3.493841946753089,50.39157092091289],[-3.49281418782548,50.3919014688061],[-3.49265308658063,50.3920114636067],[-3.492676151236771,50.3921513896558],[-3.49289632150418,50.392298093866],[-3.49213337016474,50.3925843706573],[-3.49232561673907,50.3937026056839],[-3.49217601628575,50.3935619157116],[-3.49153280163046,50.393493261566],[-3.4902094050804,50.3941410711211],[-3.490088434592999,50.394258351443],[-3.4898939470437,50.3942248782868],[-3.48938271451427,50.3942746271596],[-3.48858406928767,50.394359441263],[-3.488873800623471,50.3944465710939],[-3.48894122112387,50.3946429064426],[-3.48927478021713,50.3956142366234],[-3.489527940385099,50.3956982826467],[-3.48948870183178,50.3962437519502],[-3.4892903658854,50.3966401311157],[-3.48801675032231,50.3978985605972],[-3.48776229370966,50.3979079203864],[-3.48672429818614,50.397953654073],[-3.48608631249486,50.398032101634],[-3.48493077872152,50.39797951241861],[-3.48465690772429,50.3979857603994],[-3.4844975601264,50.3980748943313],[-3.48404146149271,50.398298938956],[-3.48364196188542,50.3984282635029],[-3.48292718470693,50.39864843441251],[-3.48263044593443,50.39875166140201],[-3.482432950493839,50.3989680063099],[-3.48245189339153,50.3996587132379],[-3.48241124714784,50.3998653396064],[-3.482407184959969,50.4000404664294],[-3.48263584617445,50.3998847309609],[-3.48308991030852,50.40016235883609],[-3.48327405041617,50.4001973404448],[-3.483444043453439,50.4002226783362],[-3.48370470891462,50.4004404459717],[-3.48413822085683,50.400488895812],[-3.4853478919225,50.4005629695221],[-3.485981079052821,50.4005673761967],[-3.486192885120579,50.40078785933381],[-3.486430421309711,50.4007779721859],[-3.48672055653622,50.4008357933399],[-3.487370071848059,50.400837955716206],[-3.48758018495135,50.4007526068085],[-3.48765576368725,50.4007219063963],[-3.48969182484912,50.4007056615581],[-3.490333818580619,50.4008917446457],[-3.49323036089794,50.401270100738195],[-3.49345909668318,50.4012509586043],[-3.50447913393557,50.3999802685166],[-3.51137872215907,50.404543540361004],[-3.511753090184051,50.4047911047291],[-3.50591731058736,50.40053383563541],[-3.5051445671327,50.399976129405296],[-3.50634412964603,50.399489345859294],[-3.51067077571989,50.3977334010241],[-3.51323093482371,50.3985903365538],[-3.51344332603899,50.3987403786324],[-3.51349960779196,50.39878013821621],[-3.513542581547421,50.3988110652437],[-3.51954111839243,50.403155462997205],[-3.52247341182294,50.4023435412694],[-3.522825809051561,50.402297754603204],[-3.52285844758023,50.4023133835027],[-3.52393424452156,50.4028270594971],[-3.52688087972667,50.4042393780767],[-3.52808764085194,50.4047002306161],[-3.52992424371307,50.4047399280337],[-3.531841840573001,50.4047813453733],[-3.533133405278481,50.4048092236912],[-3.53550522226796,50.4044775603391],[-3.5393518245681,50.4034828932358],[-3.54470197690165,50.40209914914341],[-3.54505714233096,50.4024960744218],[-3.54692507577471,50.4048127942889],[-3.5508670995767,50.405709482168504],[-3.55512034340095,50.4066767224584],[-3.55679768166809,50.4158274080063],[-3.556873498647171,50.416240941673],[-3.55908828021355,50.4276642310975],[-3.5570244090237,50.42815478363809],[-3.55610400476068,50.4281546845045],[-3.55526474613385,50.4281834977384],[-3.55530448375816,50.42870278049741],[-3.55536044073853,50.4294339957397],[-3.55550280261279,50.4312941900994],[-3.555598828152091,50.432548821447405],[-3.55607027838813,50.4325224814192],[-3.557617644933551,50.432833901648706],[-3.55908423051769,50.4331155262878],[-3.557800509938049,50.4400272285459],[-3.55777437045664,50.4400795897232],[-3.553168957652019,50.449302878172],[-3.55262087258706,50.44953576637689],[-3.54483112683196,50.4528555867588],[-3.54451476089022,50.4530317684562],[-3.54039874255483,50.4601267946555],[-3.54014670200344,50.46052629450941],[-3.53402548813658,50.463093487874],[-3.53062719066154,50.4610663108869],[-3.530686261397,50.4607689442889],[-3.53104333582506,50.458971322372896],[-3.52913600759967,50.4577527517175],[-3.53013074619702,50.4604228447494],[-3.5303959653621,50.461134695428505],[-3.52355562757013,50.4613629825616],[-3.52713473195368,50.4585561204325],[-3.52888089820848,50.45718655522679],[-3.52517137117297,50.45733268797821],[-3.523808145298621,50.45738636048],[-3.52323573477641,50.4574088922272],[-3.51597622984316,50.4538008824018],[-3.50414157625236,50.4596151120629],[-3.49126631689865,50.4581941833128],[-3.483432237974359,50.46037006937951],[-3.480824533607,50.464028713433706],[-3.48901218662456,50.463803753449206],[-3.491986519760709,50.47047425624021],[-3.50110563458394,50.4718608139201],[-3.49729526351796,50.4758374744649],[-3.50111936418803,50.4770001668404],[-3.50143806352792,50.4771538232755],[-3.50533517929195,50.4789275536162],[-3.50849178540326,50.4798487930444],[-3.51480198381588,50.4816900252691],[-3.51428803757818,50.4835452600653],[-3.51374648012855,50.485347345472206],[-3.513533744591051,50.48541350008671],[-3.51323499201098,50.4854891633266],[-3.51299953923617,50.4856153708675],[-3.51302039412153,50.4858924449684],[-3.512843145012181,50.4859857951243],[-3.51344509845125,50.4885483713801],[-3.51522401716697,50.4961196530773],[-3.50916098191203,50.5166186181361],[-3.52090513364388,50.5176836363678]]]}},{"type":"Feature","properties":{"name":"Warrington","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-2.47598650909522,53.4482376778519],[-2.48971382174961,53.460282297438],[-2.48914550962129,53.475848176679804],[-2.4963344588829,53.48092942195039],[-2.53643621977153,53.47150634167469],[-2.55263854410147,53.4678134069205],[-2.54907568465009,53.461485853743],[-2.57038994787401,53.4584755069628],[-2.5767428316775,53.446057209294],[-2.58459660205676,53.4403931211141],[-2.59868492591076,53.45041376595051],[-2.59623052704749,53.44266629119941],[-2.61142279162343,53.44227472828731],[-2.62746241227075,53.43441260151771],[-2.63240763354955,53.4416601158831],[-2.639535031964479,53.4444230939681],[-2.6706607147036,53.4499259657124],[-2.67347454162738,53.4526597714824],[-2.6771669968903,53.4527539095278],[-2.68216821953706,53.4392343545478],[-2.6687717159485,53.441044084054695],[-2.67526772804107,53.4329653045538],[-2.6638524466483,53.429666602514],[-2.67231979543087,53.422024699628],[-2.66685618522416,53.4162639455113],[-2.67187659975975,53.4152866068509],[-2.672136255843701,53.411807418125],[-2.67137698702358,53.4001739927634],[-2.67599665861307,53.3950099062579],[-2.67631721274984,53.38761936609951],[-2.69063280067745,53.3853882186661],[-2.69058886615715,53.3852598776157],[-2.69772482754663,53.3793128423213],[-2.69230355597768,53.3615286613281],[-2.67448838732609,53.3567628050152],[-2.66017296906672,53.37390728024071],[-2.65429959617039,53.3758173164384],[-2.645686457117081,53.373937876871],[-2.63896366036029,53.3784037298149],[-2.62173022885747,53.375024968917],[-2.63819424545003,53.37761682672959],[-2.64232731192839,53.3724620590308],[-2.65676840870564,53.3740985822626],[-2.66397757100118,53.3672487979212],[-2.66614155553677,53.3576986429909],[-2.67518815433053,53.3544550300627],[-2.677971769011211,53.3547102053325],[-2.67464077832375,53.353664358609606],[-2.630621929799029,53.3640498201747],[-2.6268351815851,53.354640499823596],[-2.63146774491781,53.34603352110331],[-2.61413703211002,53.347661101530896],[-2.60660651159164,53.342995890984696],[-2.61912539675201,53.33107064101629],[-2.61493551441319,53.32885669223759],[-2.61039163649307,53.3304055090675],[-2.59522305170231,53.32245437116751],[-2.58628365884663,53.3293945885969],[-2.561875078127809,53.3233428508857],[-2.55166436777914,53.3323739959253],[-2.544529022372941,53.3305254811008],[-2.53945290311962,53.33639028752031],[-2.51839296054763,53.3423902754329],[-2.52104960816655,53.3479004826802],[-2.505823456891251,53.3554851308386],[-2.48687843882333,53.3679038004418],[-2.464995576724339,53.3635309658511],[-2.45884201824813,53.3682855996021],[-2.43987999487119,53.36666264560979],[-2.439663062122,53.370542175359006],[-2.42872346408877,53.3764058211629],[-2.42658992510444,53.38746151693581],[-2.44843869036698,53.394799812645],[-2.458502663776191,53.3930114696486],[-2.46590580343097,53.394820107427506],[-2.47104407233731,53.39233791712961],[-2.47845617870327,53.3962182008363],[-2.46597670462298,53.4007478656207],[-2.45368136449011,53.41321284043819],[-2.44937818830286,53.4158914442799],[-2.451543595959579,53.4267090610449],[-2.46172387799054,53.4363687331607],[-2.46769963082216,53.43744294165511],[-2.478153329064769,53.4434174890128],[-2.47598650909522,53.4482376778519]]]}},{"type":"Feature","properties":{"name":"Warwickshire","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-1.45999402369308,52.551589927318204],[-1.48303467600142,52.5586832785554],[-1.50270561859239,52.5644709227619],[-1.52286777646333,52.5706005994426],[-1.52474703178799,52.573798641390106],[-1.5271552279268,52.5827378316751],[-1.54750728292123,52.5919467122752],[-1.56075676843526,52.5961562428648],[-1.55445434227788,52.61476141512681],[-1.56758317069744,52.62264179670439],[-1.56461026146334,52.6312420938326],[-1.57100016052294,52.63611990287511],[-1.55604679633242,52.63827620111],[-1.54280378580269,52.647620071576604],[-1.54242198174715,52.653626437163794],[-1.54728936256915,52.6559734205933],[-1.55177141577137,52.6674551064611],[-1.57042771087891,52.6758431675984],[-1.56647470269796,52.6776015987077],[-1.569106299685,52.67966717445591],[-1.57760844633783,52.6785784843171],[-1.5896451852037,52.68726080817841],[-1.60428263194276,52.67899854719041],[-1.6042650474493,52.673721500546996],[-1.61554365797065,52.6719795736428],[-1.61558987141661,52.668715504980504],[-1.6449429538447,52.6575167797495],[-1.63424759687035,52.6430431761339],[-1.64242246730325,52.6409402951618],[-1.63818865146622,52.63770097237109],[-1.64250867121744,52.6314167574964],[-1.63818075673866,52.625520739215595],[-1.64308635231036,52.623203692772094],[-1.64153016030455,52.62020907473709],[-1.63601514632815,52.6196169494317],[-1.63977736511557,52.608393066876],[-1.64370705001515,52.60364489458351],[-1.65157754034906,52.5984182738847],[-1.6607813981187,52.5945102259496],[-1.66570790464282,52.5956658351123],[-1.66563959036358,52.5922522330128],[-1.67922341042278,52.59270948780021],[-1.68590019176515,52.5933484804697],[-1.68569088726036,52.5893509928612],[-1.69780143066728,52.590987891286595],[-1.7003926529636,52.5909126449143],[-1.70478616946946,52.5875065284062],[-1.729310527494,52.587933293872496],[-1.73900124953004,52.5892997702772],[-1.74240800261814,52.5943253674271],[-1.76847154383839,52.5891161846658],[-1.77631735031977,52.592220073464],[-1.7880812993329,52.5878626088221],[-1.78679966131805,52.5830722780581],[-1.77471005994695,52.574600309439],[-1.76354616286319,52.5709791319543],[-1.77390765657733,52.5656358268322],[-1.77015202479335,52.56357708078961],[-1.76533972140962,52.5566768884787],[-1.75639975933876,52.5558795998252],[-1.75357675972706,52.5453024360415],[-1.74642783211678,52.54171306172639],[-1.75091450605661,52.5362780800071],[-1.74908599922833,52.5314223642904],[-1.73942151465685,52.5319114230793],[-1.73975501172586,52.5291198321366],[-1.72885044838865,52.5244674374639],[-1.74582290579337,52.520070022108996],[-1.753810175173,52.521213162427806],[-1.75707693385447,52.5178270640517],[-1.75352319084031,52.5129668960538],[-1.74324218335294,52.5069578340753],[-1.73321302769397,52.4921489173124],[-1.73308021745514,52.49196158893681],[-1.71527279230539,52.478417226359],[-1.70847691907694,52.46561327009671],[-1.67715419118533,52.4363566272537],[-1.66658594082774,52.4354715665142],[-1.66228667335888,52.4442993244246],[-1.65486819323016,52.4407548201092],[-1.64139672496165,52.4433435753493],[-1.62466196476492,52.4570296109555],[-1.62445220517117,52.4635386718159],[-1.61421254511723,52.46299967823109],[-1.61071423782564,52.45860290890891],[-1.59854649387931,52.45433171638],[-1.59548725924308,52.4559197590616],[-1.59492116060893,52.4606897378561],[-1.58986310702649,52.4619121090901],[-1.56119166726618,52.4552225694476],[-1.55142085388797,52.4570443030562],[-1.53979081939549,52.4647986868735],[-1.52967710442915,52.4570877486033],[-1.51756904133949,52.4567838772312],[-1.51965491847479,52.45334192779271],[-1.500025582986739,52.45103834281429],[-1.49171110113063,52.4550243191446],[-1.49280646512692,52.45844168698441],[-1.48301648857127,52.4580866576677],[-1.47081512972809,52.4569380635342],[-1.4639211641373,52.4583176543853],[-1.45905317416489,52.4551580337385],[-1.45216512896527,52.449657877695394],[-1.44364719055357,52.4474219652077],[-1.4464588257685,52.4430830220804],[-1.42414571781375,52.4340002038467],[-1.4323984678588,52.4156920607324],[-1.43805469152861,52.4101206982069],[-1.43224781406913,52.3958774478883],[-1.44496432719113,52.386377290964504],[-1.46312609758453,52.3796642974848],[-1.46292395816185,52.376402550239604],[-1.46040192707784,52.374807904874295],[-1.46401360334253,52.3732671682518],[-1.46660878554623,52.3772040829588],[-1.48040989552119,52.3743183071523],[-1.48227797499042,52.37711884842171],[-1.50449893765669,52.37780714785201],[-1.51391616047669,52.3690627161765],[-1.52465132517521,52.3794009009746],[-1.53547931771897,52.37760890408741],[-1.54567712824214,52.3692705501322],[-1.54189288256097,52.3666334967773],[-1.55555538969844,52.3650403030653],[-1.55499309564031,52.3744239704948],[-1.56263515278622,52.37689149804031],[-1.56779851824376,52.3847777926746],[-1.57670780014509,52.3827879732136],[-1.57578869048,52.3845755676682],[-1.60106738247379,52.3892994855589],[-1.61028260611013,52.3825065612522],[-1.60801986400734,52.3763552228854],[-1.61537102147016,52.37445545915401],[-1.61814504480596,52.3762561837158],[-1.61902168531535,52.3705570667367],[-1.62367545474847,52.3717788798711],[-1.62661583377347,52.36919448093959],[-1.62096632960557,52.367883770565406],[-1.62250698532454,52.3661644313339],[-1.63645854945387,52.3651688452131],[-1.64841803963759,52.3567433964995],[-1.66088809306568,52.3656701065801],[-1.6840465031405,52.363253739583],[-1.68493052427009,52.3560109128624],[-1.69388500073929,52.3510133572142],[-1.69809152244686,52.3557323184523],[-1.7102698533246,52.35502105941271],[-1.71833684651638,52.358692263278705],[-1.71854635203768,52.355737722979306],[-1.72025822194711,52.3725740130338],[-1.73403112281356,52.3707177884116],[-1.7383229252413,52.3649718733846],[-1.74140829971285,52.3571724578911],[-1.74877398537203,52.35477080531311],[-1.75963119506315,52.358410110082595],[-1.76279956872643,52.364275417169],[-1.77922436694685,52.364539917990406],[-1.77822576810609,52.3565665074572],[-1.77185974205725,52.355876579753804],[-1.77575239671801,52.347963677683296],[-1.78452242765323,52.3501123516163],[-1.78577146750373,52.353846450562],[-1.80419928026398,52.3628235908063],[-1.80791009025338,52.366623456809],[-1.83498003554301,52.3674038332426],[-1.84293630550435,52.365163470263],[-1.87203384032481,52.36759853023509],[-1.87612494019659,52.3635815592194],[-1.88897350255566,52.36109314395671],[-1.87307921694791,52.337297824753094],[-1.86483054977187,52.3330931986051],[-1.87038595185995,52.3126090511931],[-1.88093415490093,52.3109334746665],[-1.87520703557667,52.3054821828913],[-1.88042760520301,52.298340632222],[-1.88647936317105,52.2866325493725],[-1.89556310749816,52.2827210169011],[-1.90079895548798,52.28349063892549],[-1.91454271211228,52.2753874135744],[-1.9211054332331,52.2764761065878],[-1.93425911946369,52.2769712861147],[-1.93545357182612,52.2769665449454],[-1.93868701965673,52.2704978848159],[-1.93438721914327,52.264594389342],[-1.93461083149063,52.2520178646591],[-1.92465114170177,52.2408753751605],[-1.91742329771162,52.2183455668428],[-1.92011803063322,52.21026315777349],[-1.93563393045851,52.2041212314579],[-1.93585316785219,52.189869628310596],[-1.944575436808061,52.1747663765607],[-1.96166886129646,52.1725290703112],[-1.96040736772155,52.1686717313137],[-1.93548275837819,52.169557085392306],[-1.93411881977758,52.1653937343244],[-1.9443024167711,52.1553331527715],[-1.94007674363837,52.15304202013281],[-1.92188699893781,52.15300629568691],[-1.9168779550102,52.14671580887931],[-1.90510005157564,52.1427368614791],[-1.90323776094578,52.1334480578429],[-1.88511820710407,52.1468531416659],[-1.89422974637425,52.1482514762684],[-1.89071575961245,52.1557608285939],[-1.86692724441238,52.15300796766301],[-1.86387745466432,52.1470383775963],[-1.86696223269006,52.144639644047295],[-1.85418798079449,52.13852091439799],[-1.84581026559189,52.1426541740871],[-1.84690834174665,52.147185907136],[-1.85190379418204,52.14796987718199],[-1.84823028783256,52.149972892992494],[-1.8396721464105,52.152713685185],[-1.83100377445367,52.148307078554],[-1.83146961492221,52.1456743480676],[-1.82334774779545,52.1459250780329],[-1.8278448522805,52.1412448952124],[-1.82321733193223,52.1363823220937],[-1.80843385608566,52.1398755712958],[-1.78554803075531,52.1320586070751],[-1.79577421420185,52.1244418882871],[-1.79100431323698,52.1201935592893],[-1.78062748195398,52.1201433525387],[-1.76969956411978,52.1153144659452],[-1.75783398046533,52.1161296465127],[-1.76764874769465,52.1125925601067],[-1.75094038357399,52.09543138427309],[-1.74240461279906,52.0919903676213],[-1.73789287454049,52.0917484953698],[-1.72856052811281,52.1001203055535],[-1.73067148453835,52.073399301398],[-1.71295296232755,52.0665849047502],[-1.70988219909862,52.0733492811803],[-1.70173137601653,52.072809303274205],[-1.70514106701663,52.0597066230704],[-1.69956095812339,52.054629852210695],[-1.69017980345498,52.05473599117761],[-1.69398075504565,52.0395278989016],[-1.66887815507333,52.0365820230636],[-1.66106531411264,52.0316138657779],[-1.65354944389513,52.0354023453474],[-1.64537471554456,52.0342317283581],[-1.62441776103734,52.03898135213619],[-1.61771611527823,52.0319190391394],[-1.62014522055607,52.0277118990043],[-1.62840492984826,52.0272069508685],[-1.63864863062525,52.0204865756871],[-1.64283802229205,52.0092030911085],[-1.66581849541067,51.9972469296876],[-1.66988807051888,51.993090207615],[-1.66575430454863,51.9874888219864],[-1.63831467408256,51.9751718378541],[-1.61234247849955,51.9554034171782],[-1.5916338243768,51.97044997144431],[-1.60030155963125,51.9769415562367],[-1.58057305586184,51.97299599175751],[-1.56353907898642,51.97704037048901],[-1.5496712341503,51.9808596590458],[-1.55722360987893,51.9916576656612],[-1.54174159477537,51.9964320602947],[-1.52792904821891,51.9917543158507],[-1.52282569381325,51.9968433232583],[-1.51020903963636,52.025496325755],[-1.49735329861192,52.0589545427624],[-1.49926544313962,52.0635346461574],[-1.50185527404318,52.071626630657605],[-1.4906652806865,52.07713532073189],[-1.49435496612554,52.0822274600486],[-1.48560745557967,52.087733439499],[-1.48780444309778,52.0939574330421],[-1.48006671913531,52.0935584793174],[-1.47730164801721,52.1013509449693],[-1.46755929874001,52.0970564720819],[-1.44718785165916,52.09762503295611],[-1.4534689049737,52.1129908893269],[-1.44885625484416,52.1160379918892],[-1.41962973994691,52.117641745241706],[-1.40389417532836,52.1100898598062],[-1.38539981246728,52.0941455730689],[-1.37442365977537,52.0997260027222],[-1.35776965526573,52.101310424564],[-1.36518340095581,52.111301842125805],[-1.3703665205399,52.1127178353701],[-1.37084214071868,52.11753418349141],[-1.39070028494808,52.1167889397544],[-1.39330253064253,52.1189629049398],[-1.38546286731994,52.1284031609129],[-1.36614709694777,52.136075238415],[-1.34870940656972,52.1351376009654],[-1.34993649836799,52.1415918021256],[-1.34104036067521,52.1448563450253],[-1.34345868249695,52.1532350096525],[-1.33823645896466,52.15884306437239],[-1.33400384985707,52.159083100572005],[-1.3318971346503,52.168485056197],[-1.33148214745376,52.17413705056521],[-1.32281266730327,52.1818007272349],[-1.3181909212033,52.1814171411926],[-1.31313453207951,52.19046763029141],[-1.28119486794835,52.1919529443501],[-1.28113766304511,52.19577548661889],[-1.26253921767077,52.1959617580472],[-1.25477999303111,52.1988889675003],[-1.26091675594955,52.2159929134017],[-1.27527603218185,52.2220140911438],[-1.27690815749544,52.2251816310926],[-1.27259372506685,52.2275106781841],[-1.27843222402173,52.2287072073537],[-1.28464415629528,52.2385772947561],[-1.2668910685646,52.2352423788113],[-1.26615184417816,52.2408300593407],[-1.25447946475007,52.2475675693856],[-1.23776633635443,52.2484347098787],[-1.23299880379763,52.2532588499543],[-1.21789741216418,52.2618036952701],[-1.21690319701217,52.2675116141643],[-1.22356746317675,52.2868387281626],[-1.23378294833003,52.29032810684401],[-1.20923383158981,52.31520407967421],[-1.24638416838688,52.3216125850937],[-1.26526665785692,52.32837721212281],[-1.25801614901147,52.337259447825396],[-1.23813869470177,52.3441526991955],[-1.22419271039049,52.34809490685301],[-1.19822022032239,52.35293183522321],[-1.19201900085971,52.35104483522551],[-1.17501926869347,52.3562513928908],[-1.17212636579044,52.361300928976405],[-1.18708312286647,52.3785988240832],[-1.20161328230779,52.3967317959132],[-1.23644413534428,52.435727332155],[-1.23675360283845,52.436039495344204],[-1.25783058976019,52.4538925815372],[-1.30594754120562,52.493395280560506],[-1.32508812135485,52.50104232454121],[-1.39512719080899,52.5270459228751],[-1.41734425186395,52.5344553070612],[-1.41895772172901,52.537768003010704],[-1.42408394807535,52.53958834920759],[-1.45999402369308,52.551589927318204]]]}},{"type":"Feature","properties":{"name":"West Berkshire","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-1.28552135777383,51.54833098100631],[-1.28756085320867,51.5528463765247],[-1.32629751267927,51.5595821686757],[-1.3287207966799,51.56371241350331],[-1.33795149512824,51.545777032762096],[-1.34398803780228,51.5433777386493],[-1.35568713171591,51.5467514344195],[-1.36901495641398,51.5522078532524],[-1.37795127156054,51.549686558983],[-1.38069852831369,51.5422587107803],[-1.38890343803659,51.53989004635461],[-1.39585044290582,51.5403449801877],[-1.4048577107684,51.547235218489206],[-1.42276866886813,51.5357649276512],[-1.42659119274702,51.5455988598669],[-1.44783186160006,51.53642654293241],[-1.45675654753808,51.53545842589129],[-1.46442254094774,51.53851669873169],[-1.46298772277674,51.530190998078],[-1.47074436480117,51.52860683895779],[-1.47625207831466,51.5307805623964],[-1.48585654515028,51.53407887673361],[-1.48603172182756,51.540566294922904],[-1.49588867042186,51.5456623695028],[-1.51667980498562,51.551185264877894],[-1.53095864819817,51.5460694666429],[-1.54740130367212,51.5530828194895],[-1.55637048188363,51.5530056753395],[-1.56610330835457,51.5455616307106],[-1.57000733778943,51.54738020902679],[-1.56935939012213,51.5432830853702],[-1.58118687450076,51.5369949629826],[-1.58470801107569,51.52491211925731],[-1.58806412526132,51.5135029002442],[-1.58229087127299,51.4941117966021],[-1.57044904662374,51.4862741497218],[-1.56683051540033,51.4769303242597],[-1.56158295445419,51.4763785707314],[-1.55952593937496,51.46973860529191],[-1.54839018913458,51.4606558357215],[-1.52902843752282,51.45551178714601],[-1.52398565610524,51.4413382588102],[-1.53206255062256,51.4295554933288],[-1.52528850207046,51.4250179349727],[-1.53962439827352,51.4261119209348],[-1.55311279213499,51.42127613940869],[-1.56511865145832,51.4220434340803],[-1.56996668500205,51.4178365144597],[-1.56227497202719,51.4082374154725],[-1.55298802119079,51.4100439112545],[-1.55560283150743,51.39558412569269],[-1.53771747740546,51.3883224400642],[-1.53833184288397,51.3855373871795],[-1.52763458480509,51.3788210585826],[-1.51696050645148,51.378780241917305],[-1.51340538103072,51.3720449747588],[-1.49544914388954,51.3696644487562],[-1.5006084786642,51.356267961862805],[-1.48571137940255,51.3476828433187],[-1.498298923396,51.32937609321541],[-1.42969282350092,51.3365302852492],[-1.44493594173199,51.3481182874048],[-1.44410966916138,51.3549284015044],[-1.42843862520728,51.3566900764731],[-1.41563002994336,51.37188346416901],[-1.3528796861532,51.3672624734417],[-1.31671949065269,51.3729125996814],[-1.2734099090937,51.3675209628835],[-1.27067695079464,51.3688266937036],[-1.25113955136333,51.3720405294303],[-1.24157870021568,51.3662215310675],[-1.22258810103158,51.3697542330515],[-1.22102594300088,51.3675894019469],[-1.18928167836112,51.36332252830301],[-1.17689427560879,51.3573240538202],[-1.16962183241197,51.3607256875269],[-1.14413070856775,51.357263106917806],[-1.11579091152374,51.36046616488181],[-1.1154571911925,51.374214909415],[-1.0975173845647,51.381725904257394],[-1.08661908661563,51.3839155779629],[-1.07534710377379,51.3794958059914],[-1.07999086111679,51.374635354210696],[-1.07251974535403,51.3752832451155],[-1.06576690975676,51.3723270746867],[-1.05001598396462,51.358147936166304],[-1.01112286862309,51.3591698876915],[-1.00022284298636,51.3626680799892],[-0.986123750530059,51.3628482885656],[-0.991788682805981,51.3666701767656],[-0.981700070875653,51.375627123206],[-0.98873025637885,51.3805643708638],[-1.01188405929674,51.392866627908],[-0.999141573871847,51.4122507192028],[-1.00114760521892,51.4263823342562],[-1.00075699153942,51.4298497407168],[-1.00371014872515,51.4338925662384],[-1.02180838850351,51.4367030522854],[-1.02345032405484,51.444317503978],[-1.03061399163973,51.4498627908532],[-1.03297492972539,51.451799433372],[-1.04679172524674,51.45017167062411],[-1.04672050236282,51.4562127122517],[-1.05297452903069,51.46036993447089],[-1.04784284397085,51.46404478201259],[-1.03655747902791,51.4752267537986],[-1.0373965566499,51.483821752299704],[-1.04359339744857,51.48938076641],[-1.0554224440951,51.4920375051549],[-1.07114806131569,51.4897405513217],[-1.08836180760873,51.485752747895994],[-1.10277657673746,51.4901709246292],[-1.10696906919337,51.5010965122665],[-1.11478444104064,51.5104817769441],[-1.13369703171058,51.511286565634705],[-1.14205314180795,51.5161954403677],[-1.14353568436213,51.5234545122815],[-1.13444628545696,51.5337221327432],[-1.14037476539537,51.54291130179471],[-1.16079819884198,51.5345895410257],[-1.20465030082425,51.5283945154373],[-1.20464416143085,51.537603894896],[-1.22679203559485,51.5351584620885],[-1.22994143157423,51.5346136394912],[-1.24016469054173,51.5376582374691],[-1.26065559107578,51.5377899051538],[-1.27019965326774,51.5446203852576],[-1.28552135777383,51.54833098100631]]]}},{"type":"Feature","properties":{"name":"West Midlands ITA","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-1.95994479808559,52.66203718383931],[-1.95507387081327,52.6541370256863],[-1.960554178801,52.65371239405221],[-1.96028059215627,52.6441628925989],[-1.96397292368402,52.64181508588431],[-1.986550312238839,52.64040927823989],[-1.99085589244034,52.63667172978051],[-1.99573639865882,52.63832071461399],[-2.01001776584619,52.634616657152],[-2.03550916519558,52.6217994634042],[-2.03012315423271,52.6169545037431],[-2.05071786918317,52.620522680582205],[-2.06400023828668,52.6207463006826],[-2.068706678433561,52.618116746190296],[-2.06732536390014,52.6120764144547],[-2.08100174127972,52.6119049797521],[-2.08839594178331,52.6198314231811],[-2.094810098945481,52.6207281119663],[-2.09882159713873,52.6289783379285],[-2.099248462545551,52.6327617881375],[-2.118245687375619,52.6377084218431],[-2.13164409930699,52.6376230837758],[-2.13392349524915,52.6335500530211],[-2.13723881152022,52.629646404522504],[-2.15298298978926,52.6297528971979],[-2.15155405886091,52.6245909839555],[-2.1627864986797,52.62122189174621],[-2.16173145404507,52.6191296794242],[-2.16846253564829,52.6198933414969],[-2.16501689529906,52.61651263413351],[-2.170963650281731,52.6143340175117],[-2.16915726306721,52.609338362556],[-2.1724540888532,52.61027482564],[-2.18031362008319,52.604901462959],[-2.18720937458215,52.6090099460473],[-2.19519867207528,52.6070659086818],[-2.18987251773871,52.5992885780941],[-2.18855255064566,52.5921009525646],[-2.18930941151633,52.5886086229572],[-2.19820099366424,52.589177493667],[-2.206876979050671,52.5865833477777],[-2.19990064544878,52.5838454258942],[-2.20396239022653,52.5838627474458],[-2.20180321025657,52.5787799031303],[-2.18943139946938,52.57727039076061],[-2.18827737941816,52.5741752033983],[-2.18295462766911,52.57693039287491],[-2.17304882126826,52.554640878993204],[-2.153054352049931,52.5536751572147],[-2.1409567037919,52.5585394663986],[-2.13348672789088,52.55406666395069],[-2.139150556196201,52.548064748562304],[-2.13556384068747,52.53450859748511],[-2.1519892207291,52.5261989320713],[-2.1445828888359,52.5213842172798],[-2.1487812463097,52.5146949607488],[-2.17824349374661,52.5116487293176],[-2.18798239526355,52.508362981704906],[-2.18661911053264,52.5047871409336],[-2.1917488108249,52.5033970774824],[-2.184783808067031,52.5003471555501],[-2.18865957656525,52.49450732249499],[-2.18517593720853,52.4948131122933],[-2.17848230668637,52.4826958263812],[-2.16751258219809,52.4712155333677],[-2.17492345032422,52.4585783929928],[-2.164851282579979,52.4302041413132],[-2.14357493565654,52.42605473282051],[-2.13602683609072,52.4262682229475],[-2.1296969625812,52.432210479623805],[-2.11751850742379,52.4339439613066],[-2.10877723780402,52.4412226114487],[-2.10524933915254,52.4442078989719],[-2.093280340755161,52.4452825223829],[-2.0860500869908,52.4329249112311],[-2.07989188904816,52.4322720237779],[-2.06805186468972,52.4351950959813],[-2.06754618376386,52.4325585128104],[-2.06234948268488,52.4324553307803],[-2.06578767648413,52.4280869145588],[-2.06071299531874,52.4275376266412],[-2.059263587425431,52.4399826084536],[-2.03788100010757,52.44155755510519],[-2.03698776266666,52.4275457075304],[-2.02970627999278,52.427301530946],[-2.024766368516731,52.4348823137608],[-2.01699028095924,52.4326829309962],[-2.00974055226798,52.42652187749721],[-2.00468631003248,52.428410163578306],[-1.9970611444877,52.417426157755],[-1.98603705906246,52.416726185989795],[-1.99779534522531,52.4097360219062],[-2.00923773336184,52.4103880972217],[-2.01754876515636,52.40558243660931],[-2.02753442235217,52.40810490502339],[-2.03220823936371,52.40154802302521],[-2.02165327370026,52.4001889614081],[-2.02068654068459,52.3993561558151],[-2.01135254232925,52.3861805026382],[-2.00127910459127,52.3835651193726],[-1.99451104210707,52.3811811647072],[-1.98362447262023,52.3873341829475],[-1.966361665048,52.389465157013],[-1.9649269608741,52.39218786470081],[-1.96043451281946,52.3890929135563],[-1.95254253088033,52.39332070099201],[-1.94544940926848,52.3906961069225],[-1.93431470610424,52.38723637956869],[-1.91857786578453,52.3981927511757],[-1.91367502449958,52.4074643041657],[-1.904587854543671,52.4031456330195],[-1.887111376738571,52.4046858145759],[-1.88668851361268,52.40470212569961],[-1.8826972850066,52.3998129649372],[-1.86874678259764,52.404737509913204],[-1.84559793546976,52.3994272467433],[-1.86132385249005,52.3838703384195],[-1.86677839983985,52.37272969030009],[-1.87203384032481,52.36759853023509],[-1.84293630550435,52.365163470263],[-1.83498003554301,52.3674038332426],[-1.80791009025338,52.366623456809],[-1.80419928026398,52.3628235908063],[-1.78577146750373,52.353846450562],[-1.78452242765323,52.3501123516163],[-1.77575239671801,52.347963677683296],[-1.77185974205725,52.355876579753804],[-1.77822576810609,52.3565665074572],[-1.77922436694685,52.364539917990406],[-1.76279956872643,52.364275417169],[-1.75963119506315,52.358410110082595],[-1.74877398537203,52.35477080531311],[-1.74140829971285,52.3571724578911],[-1.7383229252413,52.3649718733846],[-1.73403112281356,52.3707177884116],[-1.72025822194711,52.3725740130338],[-1.71854635203768,52.355737722979306],[-1.71833684651638,52.358692263278705],[-1.7102698533246,52.35502105941271],[-1.69809152244686,52.3557323184523],[-1.69388500073929,52.3510133572142],[-1.68493052427009,52.3560109128624],[-1.6840465031405,52.363253739583],[-1.66088809306568,52.3656701065801],[-1.64841803963759,52.3567433964995],[-1.63645854945387,52.3651688452131],[-1.62250698532454,52.3661644313339],[-1.62096632960557,52.367883770565406],[-1.62661583377347,52.36919448093959],[-1.62367545474847,52.3717788798711],[-1.61902168531535,52.3705570667367],[-1.61814504480596,52.3762561837158],[-1.61537102147016,52.37445545915401],[-1.60801986400734,52.3763552228854],[-1.61028260611013,52.3825065612522],[-1.60106738247379,52.3892994855589],[-1.57578869048,52.3845755676682],[-1.57670780014509,52.3827879732136],[-1.56779851824376,52.3847777926746],[-1.56263515278622,52.37689149804031],[-1.55499309564031,52.3744239704948],[-1.55555538969844,52.3650403030653],[-1.54189288256097,52.3666334967773],[-1.54567712824214,52.3692705501322],[-1.53547931771897,52.37760890408741],[-1.52465132517521,52.3794009009746],[-1.51391616047669,52.3690627161765],[-1.50449893765669,52.37780714785201],[-1.48227797499042,52.37711884842171],[-1.48040989552119,52.3743183071523],[-1.46660878554623,52.3772040829588],[-1.46401360334253,52.3732671682518],[-1.46040192707784,52.374807904874295],[-1.46292395816185,52.376402550239604],[-1.46312609758453,52.3796642974848],[-1.44496432719113,52.386377290964504],[-1.43224781406913,52.3958774478883],[-1.43805469152861,52.4101206982069],[-1.4323984678588,52.4156920607324],[-1.42414571781375,52.4340002038467],[-1.4464588257685,52.4430830220804],[-1.44364719055357,52.4474219652077],[-1.45216512896527,52.449657877695394],[-1.45905317416489,52.4551580337385],[-1.4639211641373,52.4583176543853],[-1.47081512972809,52.4569380635342],[-1.48301648857127,52.4580866576677],[-1.49280646512692,52.45844168698441],[-1.49171110113063,52.4550243191446],[-1.500025582986739,52.45103834281429],[-1.51965491847479,52.45334192779271],[-1.51756904133949,52.4567838772312],[-1.52967710442915,52.4570877486033],[-1.53979081939549,52.4647986868735],[-1.55142085388797,52.4570443030562],[-1.56119166726618,52.4552225694476],[-1.58986310702649,52.4619121090901],[-1.59492116060893,52.4606897378561],[-1.59548725924308,52.4559197590616],[-1.59854649387931,52.45433171638],[-1.61071423782564,52.45860290890891],[-1.61421254511723,52.46299967823109],[-1.62445220517117,52.4635386718159],[-1.62466196476492,52.4570296109555],[-1.64139672496165,52.4433435753493],[-1.65486819323016,52.4407548201092],[-1.66228667335888,52.4442993244246],[-1.66658594082774,52.4354715665142],[-1.67715419118533,52.4363566272537],[-1.70847691907694,52.46561327009671],[-1.71527279230539,52.478417226359],[-1.73308021745514,52.49196158893681],[-1.73321302769397,52.4921489173124],[-1.74324218335294,52.5069578340753],[-1.75352319084031,52.5129668960538],[-1.75707693385447,52.5178270640517],[-1.753810175173,52.521213162427806],[-1.74582290579337,52.520070022108996],[-1.72885044838865,52.5244674374639],[-1.73975501172586,52.5291198321366],[-1.73942151465685,52.5319114230793],[-1.74908599922833,52.5314223642904],[-1.75091450605661,52.5362780800071],[-1.74642783211678,52.54171306172639],[-1.75357675972706,52.5453024360415],[-1.75639975933876,52.5558795998252],[-1.76533972140962,52.5566768884787],[-1.77015202479335,52.56357708078961],[-1.77390765657733,52.5656358268322],[-1.76354616286319,52.5709791319543],[-1.77471005994695,52.574600309439],[-1.78679966131805,52.5830722780581],[-1.7880812993329,52.5878626088221],[-1.7965280894026,52.5991229386816],[-1.80846977540344,52.6030903135623],[-1.83237033744878,52.607806570033105],[-1.85279623242263,52.60249268680581],[-1.872490455825931,52.585030894694604],[-1.872564450354151,52.584944695776905],[-1.89062691945564,52.5980635183441],[-1.88514254979993,52.612671402952],[-1.89432838207257,52.62266219155731],[-1.91598526501652,52.6352857818685],[-1.90508380548937,52.643207557453906],[-1.91801459097475,52.649894740469904],[-1.90865983061504,52.6540000147135],[-1.91284218201852,52.65823370724951],[-1.92368354990336,52.6555279392411],[-1.93351994278229,52.6615291028358],[-1.9454019192549,52.6562986344432],[-1.95456973548851,52.6626411711504],[-1.95994479808559,52.66203718383931]]]}},{"type":"Feature","properties":{"name":"West Northamptonshire","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-0.96784897538398,52.4772098241986],[-0.976225393077406,52.4706701580952],[-1.00069265209655,52.470940417762904],[-1.00563676185312,52.46502592543289],[-1.02774073530018,52.4585046019945],[-1.04451053126691,52.4457480943696],[-1.03513382541734,52.4432463627922],[-1.03427367925882,52.4362852730348],[-1.04949662165329,52.4258402916163],[-1.04986022467205,52.4222623625444],[-1.05990322048017,52.42347897963051],[-1.06932517287747,52.43354638036529],[-1.07939151039954,52.4363340665716],[-1.09088423067457,52.43312263350751],[-1.09335936923599,52.427682727705],[-1.10196794853665,52.42483111938299],[-1.12570336627157,52.417697187557],[-1.13439150656399,52.4123012667109],[-1.13853571759182,52.4020437009117],[-1.14946966184269,52.39700821177549],[-1.15658234177901,52.4000511640659],[-1.1642206336604,52.39920366038821],[-1.18399208837492,52.392171077156],[-1.18938166251736,52.3963824115843],[-1.20161328230779,52.3967317959132],[-1.18708312286647,52.3785988240832],[-1.17212636579044,52.361300928976405],[-1.17501926869347,52.3562513928908],[-1.19201900085971,52.35104483522551],[-1.19822022032239,52.35293183522321],[-1.22419271039049,52.34809490685301],[-1.23813869470177,52.3441526991955],[-1.25801614901147,52.337259447825396],[-1.26526665785692,52.32837721212281],[-1.24638416838688,52.3216125850937],[-1.20923383158981,52.31520407967421],[-1.23378294833003,52.29032810684401],[-1.22356746317675,52.2868387281626],[-1.21690319701217,52.2675116141643],[-1.21789741216418,52.2618036952701],[-1.23299880379763,52.2532588499543],[-1.23776633635443,52.2484347098787],[-1.25447946475007,52.2475675693856],[-1.26615184417816,52.2408300593407],[-1.2668910685646,52.2352423788113],[-1.28464415629528,52.2385772947561],[-1.27843222402173,52.2287072073537],[-1.27259372506685,52.2275106781841],[-1.27690815749544,52.2251816310926],[-1.27527603218185,52.2220140911438],[-1.26091675594955,52.2159929134017],[-1.25477999303111,52.1988889675003],[-1.26253921767077,52.1959617580472],[-1.28113766304511,52.19577548661889],[-1.28119486794835,52.1919529443501],[-1.31313453207951,52.19046763029141],[-1.3181909212033,52.1814171411926],[-1.32281266730327,52.1818007272349],[-1.33148214745376,52.17413705056521],[-1.3318971346503,52.168485056197],[-1.30642973044051,52.1455530830734],[-1.3084327474021,52.1435086007216],[-1.27682955803015,52.117076413092704],[-1.25292760020494,52.10387447993611],[-1.24795949194466,52.0957727286746],[-1.27157559984839,52.0979276350751],[-1.28712528571812,52.0926388554507],[-1.30796305919187,52.0922729051686],[-1.32082434055465,52.0876283548837],[-1.32054194077096,52.0821953213381],[-1.31661509018271,52.07960572362919],[-1.29936065291899,52.08010150135371],[-1.29750881413832,52.07805669481021],[-1.30690320754818,52.0703135412422],[-1.30006694932791,52.069363374015],[-1.30217547762678,52.0650188728463],[-1.30776849251888,52.06435227507679],[-1.30737993686574,52.05758980958609],[-1.31292004347286,52.05145266343991],[-1.30908047396808,52.0487941381746],[-1.29644664056899,52.0408649979585],[-1.2916993923757,52.03097800108831],[-1.29431272330077,52.0280357038644],[-1.28531659980946,52.026477308393],[-1.27816401885651,52.0142726693672],[-1.2786317866307,52.0113677972422],[-1.28452102411918,52.0108219644116],[-1.27706599557563,52.005359455879],[-1.28340131403281,51.9994605179429],[-1.28299663017471,51.9915028894947],[-1.28885910718564,51.9897258134214],[-1.2827265538289,51.9792276424064],[-1.2808650876571,51.982364058425205],[-1.26091547858507,51.9809261487788],[-1.24161223468245,51.9862933638439],[-1.22970036353007,51.981367288237806],[-1.20064173500788,51.9779449492808],[-1.19625975033443,51.9774314432067],[-1.19069010919795,51.9815229351726],[-1.17605459021517,51.9820454256219],[-1.16382348465592,51.993412226747],[-1.15665084555343,51.9922344485827],[-1.13432869833779,51.997296387881],[-1.13125300387364,52.004884762190905],[-1.11808639729751,52.0154261720851],[-1.13615988100239,52.0200657662551],[-1.13125692802285,52.0328694537647],[-1.11722422057839,52.047345044162704],[-1.08327537226131,52.0523610927201],[-1.07665188380507,52.0588513144433],[-1.07165653508678,52.0581350813041],[-1.06205550082263,52.0627362313046],[-1.05295894974226,52.0596604137393],[-1.04004871367695,52.0659243091266],[-1.03094696358392,52.06289719829031],[-1.02640491077933,52.0644170285475],[-1.0295507824706,52.0701064298429],[-1.04223773894522,52.0738759215994],[-1.02631761576578,52.07568210972819],[-1.00754062014193,52.0720954322454],[-0.967805300661276,52.0709109281604],[-0.960762853813877,52.07864436279769],[-0.951872932630787,52.0815336222521],[-0.940055794165603,52.0758419455207],[-0.94439062513629,52.07003207573191],[-0.939279156357086,52.0673536618249],[-0.939316084838664,52.0621597892116],[-0.933744232825951,52.062636458215],[-0.9378800409838,52.061201900946],[-0.930207238809054,52.0431269425544],[-0.906030231113269,52.02122110917159],[-0.890118209223622,52.0315605650901],[-0.883018771335361,52.0282413942606],[-0.877468741364391,52.0299715979081],[-0.871325629151714,52.04025185257261],[-0.867734173262596,52.0462209358142],[-0.859422789604718,52.04460223926969],[-0.852901031825707,52.0499974315407],[-0.863016447635707,52.0602718722594],[-0.853076200507597,52.0643474956845],[-0.839500488570763,52.0638277803285],[-0.8314182458155,52.071947000165196],[-0.846712543491745,52.0915087034718],[-0.854779097883618,52.09235438967411],[-0.857917320685032,52.097507951831],[-0.869530890831007,52.1000376603272],[-0.865270163728431,52.1029376751836],[-0.871450101645923,52.1117534347483],[-0.88730272859664,52.1145303275407],[-0.88068270735209,52.120190581104694],[-0.879935571684107,52.1266372203379],[-0.868983800094607,52.1306263108219],[-0.853529246702118,52.1316736999219],[-0.846738589125484,52.12941002742151],[-0.828204674516664,52.1326105528126],[-0.831966629471785,52.1436835087174],[-0.814041227993611,52.14247234185],[-0.807587882658753,52.1569790143848],[-0.80195676837323,52.15867880688581],[-0.792091270533438,52.1513294604513],[-0.777975100575612,52.1687324929908],[-0.76533176234871,52.17109913269301],[-0.762047571674838,52.163446429151],[-0.756810334647392,52.1674498428306],[-0.749734768722189,52.1668767684431],[-0.705455584072188,52.1915707007857],[-0.711709521663046,52.1973557585608],[-0.716948684451808,52.2132901831662],[-0.714222380390685,52.2214405685564],[-0.727268647830442,52.2379328808761],[-0.748802720057461,52.2460310609163],[-0.762788844869664,52.2487454716742],[-0.791415863707147,52.242241513787896],[-0.795083488612701,52.25408058879041],[-0.801225154958908,52.25352549242441],[-0.802958164940994,52.2667013071758],[-0.809141414260567,52.2753276939684],[-0.805897742611488,52.2882550143654],[-0.817950353609315,52.3095959445528],[-0.785779453314657,52.330616767290394],[-0.788655312511267,52.347306715857],[-0.795372415038371,52.3607488817988],[-0.805541285548436,52.366393901566],[-0.829508820321566,52.3750867719715],[-0.832958662101115,52.38114205194649],[-0.840569709237446,52.3928466277642],[-0.861807710450574,52.3961792854985],[-0.873695474959517,52.402673957477404],[-0.890602393709494,52.39868564867011],[-0.886936611261352,52.4233541360679],[-0.875046616172251,52.423532825377],[-0.864327833503826,52.4342245420732],[-0.879290032887858,52.43917378655631],[-0.904383712639054,52.442171076427606],[-0.906250314691577,52.45365959810311],[-0.9012806064268,52.4597558601064],[-0.904577930628361,52.4628792466615],[-0.916746124086227,52.4626461262568],[-0.942191918774036,52.467772522530794],[-0.947088989618786,52.4756999860989],[-0.96784897538398,52.4772098241986]]]}},{"type":"Feature","properties":{"name":"West of England Combined Authority","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-2.70789213030415,51.3378032259358],[-2.77355946285335,51.4945638964999],[-2.77355028903305,51.4946168181385],[-2.55827028671273,51.6664201929963],[-2.53474246620219,51.67724577225851],[-2.53239246109301,51.6780584361753],[-2.39883618726571,51.645810317302],[-2.38598850246378,51.6399431096316],[-2.291637286721,51.5936959211034],[-2.26029952338613,51.56990082470261],[-2.252388250543091,51.5268735558894],[-2.28909082429693,51.325272048544505],[-2.33252118778965,51.30844335026331],[-2.45172260312224,51.2742514031922],[-2.4558747681884,51.2737327264961],[-2.47800109139509,51.273096744002],[-2.6249847000038,51.2824796144455],[-2.63829488012106,51.288277940893],[-2.666794933801861,51.302445087451794],[-2.69487895435338,51.3180942915247],[-2.70789213030415,51.3378032259358]]]}},{"type":"Feature","properties":{"name":"West Sussex","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-0.082613051363085,51.1426377476602],[-0.093059978940252,51.1387066933121],[-0.09369042917166,51.138426479431295],[-0.11725232095628,51.1416059453046],[-0.131025048622507,51.1394831344474],[-0.137571778320172,51.1421596105082],[-0.132959635268358,51.15888373207709],[-0.140462480803131,51.1600473191154],[-0.160892553371527,51.15982342372891],[-0.17670622529243,51.1668499726532],[-0.185297862155254,51.1648197208438],[-0.186866075364391,51.1616658528207],[-0.195921749409937,51.1623023175835],[-0.204109586928842,51.15571131726091],[-0.212142089174476,51.1554548864805],[-0.214234803403043,51.1484637545475],[-0.255167664563843,51.1441405976481],[-0.25461326381062,51.1390503685817],[-0.275290745685159,51.1303085216959],[-0.286389859338673,51.1304924645616],[-0.300346786136933,51.1247356968359],[-0.319332624696079,51.1246369577977],[-0.326426691856835,51.1258150956156],[-0.342050958769824,51.1199045614522],[-0.35270349219921,51.11829336021079],[-0.358033355933323,51.1210302247707],[-0.384631065293708,51.1147412754655],[-0.391524793518279,51.1165107863938],[-0.400218400447078,51.1084195759154],[-0.419203500082164,51.1052045809821],[-0.438436290445316,51.0979081237137],[-0.442503690062925,51.098127884179],[-0.438827121166527,51.1002973763645],[-0.441444403091323,51.1032971840027],[-0.444849660158165,51.09959260332],[-0.488519644888992,51.0973405849399],[-0.492127175324818,51.0944841769189],[-0.505377191977252,51.08826203886851],[-0.523170681584605,51.091606700007105],[-0.526945499266467,51.089605664124505],[-0.526388223010758,51.091866721622104],[-0.53497929663322,51.0935789223352],[-0.535523150105076,51.0831756299593],[-0.556429413975218,51.084611892184],[-0.577592603888771,51.0866537667245],[-0.600643410324778,51.0796685812259],[-0.629081959494319,51.0890036932431],[-0.650229340261496,51.0835682089948],[-0.664091906817086,51.08172481240789],[-0.669060472312222,51.0773930229333],[-0.6874249802526,51.0755142309995],[-0.696752296390414,51.071491686738305],[-0.7066824348474,51.078760978569306],[-0.723413943929025,51.077817812227906],[-0.729965240815826,51.0805500013271],[-0.735579162808658,51.0847014742856],[-0.753480635682262,51.0864557098491],[-0.780786881640498,51.0793751235126],[-0.797762679451335,51.0635558616832],[-0.811549293841049,51.0629747078834],[-0.814504335321837,51.06668003939739],[-0.817293610040016,51.0612282298048],[-0.826368582063109,51.0613251152481],[-0.829143021675807,51.0677691468542],[-0.837290866288864,51.0692029549056],[-0.843670929195131,51.0662789562995],[-0.850112518105728,51.059336306912],[-0.852810677861577,51.04484332007391],[-0.882656626136724,51.026862136013605],[-0.894505276084098,51.0234955921171],[-0.898507475250597,51.0176674465377],[-0.893346615712615,51.0027429856163],[-0.899709397133268,51.0012769754289],[-0.905621850082822,50.9968172372799],[-0.917692250586421,50.9786643732463],[-0.915525088573463,50.9706127639659],[-0.929273352015579,50.9583474384587],[-0.926521303873746,50.9525248993496],[-0.931847105710517,50.9455804293165],[-0.942110087824929,50.9428940861142],[-0.935318749444102,50.9411031252099],[-0.931185017781261,50.9352829288344],[-0.924013258512923,50.9241990391588],[-0.940245276386779,50.918054112949996],[-0.957581427612506,50.8906296881445],[-0.938608222849825,50.8737210622452],[-0.926450186989275,50.8640917207277],[-0.932781983650964,50.8532331097425],[-0.932120686808999,50.8454158300087],[-0.930052183194257,50.8417465889387],[-0.932962836382906,50.8429090310432],[-0.938074198236308,50.83159396639599],[-0.942389967037205,50.8243434689619],[-0.938608045101952,50.8178054861611],[-0.942576239196575,50.8153971829418],[-0.931661147356764,50.8136683586847],[-0.911025906663843,50.8001187986127],[-0.908003092665566,50.7986040023368],[-0.906891389780626,50.8010055087215],[-0.908304140639035,50.822673745958],[-0.912399553053592,50.827711993437006],[-0.917302582165629,50.8366182881799],[-0.913204586293997,50.8400785177244],[-0.908714041068306,50.83774610602101],[-0.89503310792791,50.8385762459338],[-0.892546219263408,50.834734738715],[-0.897034417453063,50.8288719322948],[-0.892312330433291,50.8185132809955],[-0.87687742861178,50.811481841834],[-0.871386126511016,50.8239975969407],[-0.865761480984303,50.8269584470832],[-0.874067291002464,50.83253710609291],[-0.868942403918591,50.8342880172933],[-0.870893526400638,50.8404742636961],[-0.865205063505604,50.8388591671535],[-0.861898408580845,50.8379201086401],[-0.858062414524451,50.839488757784096],[-0.86124487345675,50.8280655561645],[-0.851153603666065,50.827828173396604],[-0.86313171792558,50.8235749064155],[-0.865638474568407,50.8209571125751],[-0.869938002517346,50.8164663579958],[-0.865838276924668,50.812704684802696],[-0.864755379687986,50.8117109337142],[-0.848777830475894,50.8107467944864],[-0.85585171175828,50.8102957328734],[-0.856969243466316,50.8075476205171],[-0.844574177105394,50.804854383351106],[-0.819744738402361,50.8168694793686],[-0.817585798321848,50.8285529113145],[-0.812012552638792,50.8339262430974],[-0.812926745612841,50.830525383041696],[-0.810746291349619,50.8332937210079],[-0.811478222445033,50.83047289229221],[-0.807788772497802,50.83054226134411],[-0.809723993295285,50.827199536799405],[-0.8168611416816,50.8194149600698],[-0.814494508573961,50.814372805920804],[-0.824798932052619,50.8100606504043],[-0.825119481703083,50.8056891340784],[-0.82518078524483,50.80485301639299],[-0.834983005620394,50.8047463982851],[-0.844726907625558,50.7992937128858],[-0.860329485447776,50.8028465665339],[-0.865990501936546,50.8064179586387],[-0.868706976958658,50.8081314102075],[-0.877796685245669,50.8077127327912],[-0.890755749532505,50.7998317613785],[-0.89289369460465,50.7942998464162],[-0.894474877624861,50.7902076671143],[-0.901269345690038,50.7899030808369],[-0.905274955942435,50.7820385597081],[-0.915622966341174,50.7804426429571],[-0.908413000068607,50.7865383513328],[-0.912485427384017,50.7888884673355],[-0.916824395101302,50.7803818274808],[-0.902039961498244,50.7727948555733],[-0.87581374956699,50.7657582383],[-0.868686932293021,50.76312264308469],[-0.867052207301382,50.762516684847704],[-0.842858878939924,50.75355964007169],[-0.835266255688616,50.749280461198104],[-0.834148003158628,50.7488169705062],[-0.830583036734473,50.74664038527249],[-0.821536944170706,50.741539575495],[-0.818843748870153,50.7401445311466],[-0.817885565362705,50.7395156985233],[-0.804538668857002,50.7307539374072],[-0.7891668480937,50.7223605168371],[-0.779775940984914,50.7277877576527],[-0.759375610821766,50.74816883620299],[-0.759089931070316,50.7500792478138],[-0.757635459289044,50.7499078206641],[-0.756354471330308,50.7511878600735],[-0.757055100614437,50.7519596451272],[-0.753592872027918,50.7539471402825],[-0.750543247252681,50.756993734522894],[-0.750081971913928,50.757454509274204],[-0.750923322141184,50.7571920295253],[-0.761485524554337,50.7538961422355],[-0.761800601668765,50.75113948949911],[-0.772799075997144,50.7616409855897],[-0.786854383500342,50.7599013482629],[-0.785695615068233,50.7601375079386],[-0.777172550526254,50.7670171672155],[-0.781634377917352,50.7684713649084],[-0.762330937203273,50.7682526908719],[-0.762997534093699,50.77079358451591],[-0.763324645266172,50.77204035435339],[-0.766801314434689,50.7718690089912],[-0.767485478686677,50.7718352774991],[-0.767056433843205,50.7719411312704],[-0.76309159880609,50.7729192300593],[-0.761526292769063,50.7727158524187],[-0.755373047599032,50.771916153281104],[-0.756888712544955,50.76764262011041],[-0.751691033382283,50.7631828898277],[-0.750632861188643,50.7622748308789],[-0.749733709597395,50.7615031998653],[-0.752411057129193,50.7606584974475],[-0.754244492879631,50.760080000956],[-0.753731339796589,50.7594582998422],[-0.752568806466395,50.7580504862783],[-0.743768946164645,50.7628249079812],[-0.745286604998405,50.7628896794709],[-0.742933399548693,50.763278257812],[-0.739727163767191,50.76501774955279],[-0.738579374449917,50.7663566383339],[-0.732559731073215,50.768905558119904],[-0.728413590986384,50.77114729894291],[-0.716416006237349,50.7742500454352],[-0.716331098958073,50.774265514339604],[-0.688173775328134,50.7793908738263],[-0.672731596887987,50.781694450752404],[-0.671820652030134,50.781830266038504],[-0.659507387057873,50.7838360325007],[-0.658801447156813,50.7839806919323],[-0.642414107514165,50.78733738502841],[-0.642368509846778,50.7873467209973],[-0.627369595062549,50.7884685033128],[-0.605015953743632,50.7912132361326],[-0.594966106554661,50.7924457609475],[-0.594454759819859,50.7925532986657],[-0.582480351050599,50.7950707683193],[-0.560309184657109,50.7997280972403],[-0.559446122067044,50.7997527005719],[-0.541986677686025,50.80024899927],[-0.544987226111581,50.8050006629518],[-0.541917426466518,50.8014244419558],[-0.538128372787456,50.8021963388375],[-0.537094150553157,50.8021894896714],[-0.522759216279927,50.8020936662505],[-0.522422574853189,50.8021019661451],[-0.507447077980368,50.80247016619369],[-0.495214105680418,50.8025201409972],[-0.453276827497693,50.80244070625099],[-0.452890726721973,50.8024399029519],[-0.435941924138588,50.8031402283081],[-0.405774352559599,50.8056437548144],[-0.388717578310044,50.806669177040895],[-0.388391469458141,50.8066887279008],[-0.378322231589092,50.8079952574408],[-0.36011628854353,50.8112731843484],[-0.332696992966186,50.8174449925402],[-0.33229942820325,50.8175375993471],[-0.323878299594848,50.8194987621173],[-0.32332431852693,50.81959343403889],[-0.297636569599865,50.823979972511],[-0.290541136688821,50.825190463484],[-0.290244029077677,50.8252203284414],[-0.272917302021477,50.8269606192727],[-0.248135484191805,50.8247985600214],[-0.251524133881442,50.8302635106356],[-0.284245460821656,50.8293265757468],[-0.280241046400709,50.8313316876789],[-0.285601504202168,50.8333814185508],[-0.287500322188381,50.840530776540504],[-0.281700732834149,50.8340413604998],[-0.281328144721502,50.8338788322445],[-0.275306381490799,50.8312516899082],[-0.252299516704684,50.8310967017973],[-0.252095410912602,50.831095306792],[-0.24802971521177,50.8290863346652],[-0.23837506512431,50.83047381544161],[-0.246005774812351,50.8285307602391],[-0.24641426613459,50.8269774954061],[-0.245788993431387,50.827034960693304],[-0.244998350418523,50.8282071506627],[-0.238020638891837,50.82844087281931],[-0.216617971698271,50.8275951943654],[-0.222906153132839,50.83908859160789],[-0.225966102986527,50.8429313396889],[-0.239752980304111,50.8619523263178],[-0.244970867103618,50.8638089043948],[-0.239238286310074,50.8678855967986],[-0.226719329968901,50.878180638673705],[-0.214146986476273,50.8751794474032],[-0.213882276183813,50.8704646630267],[-0.205401741503504,50.8700872420458],[-0.202637218331058,50.8758570919399],[-0.198987634717188,50.8701206108588],[-0.18773445855603,50.8685704699966],[-0.189747886546521,50.8744159916249],[-0.181861238685437,50.88090452435829],[-0.182422854403572,50.888324776627805],[-0.16586491711958,50.8923323900159],[-0.166428238634655,50.88090680343391],[-0.152972998833407,50.8798619759224],[-0.15252627051728,50.88544430025641],[-0.14461164652197,50.8869799768156],[-0.137140727458006,50.88457930411409],[-0.135010046704454,50.88663451601909],[-0.13337012792884,50.8939803435906],[-0.128386744919821,50.9189348671043],[-0.116868200858764,50.9410711279862],[-0.119975755282267,50.9416986107216],[-0.118058555919375,50.9452561128614],[-0.105426331575743,50.9431100541619],[-0.104688628241005,50.9456054302945],[-0.106356713662344,50.9629222015416],[-0.110385241659906,50.9678070578889],[-0.116308550072949,50.9671760553006],[-0.116106834033302,50.970369100789895],[-0.115214890805893,50.9760771371799],[-0.102701641669205,50.9808433468036],[-0.093067395216287,50.979227762023406],[-0.083820398434261,50.990718694188395],[-0.070525214016451,50.9913454148652],[-0.063712846508505,50.97921188420009],[-0.053537160427674,50.9794782277521],[-0.046985479267049,50.98120812615291],[-0.036717832171975,50.9797923088075],[-0.036300434867983,50.9771907015263],[-0.024604259008753,50.98002517422481],[-0.016409780703526,51.0025138340307],[-0.020096386881318,51.00346762942661],[-0.016007899626656,51.0148027944254],[-0.022172325063182,51.016786024185194],[-0.021913681842187,51.0265124439424],[-0.001565492340491,51.0357549877935],[-0.007903784464015,51.0389883743465],[-0.002016804897855,51.0430679498221],[-0.003001727690095,51.0475643235525],[0.00772055085016,51.0509069882387],[0.013725555064109,51.0570126028937],[-0.008548157404384,51.056457988024505],[-0.014970110212759,51.0693520727275],[-0.013256608824852,51.073967102914196],[-0.026852099218016,51.0751128713046],[-0.032803272814943,51.0923879936845],[-0.036196544280962,51.093457201480604],[-0.026169564833897,51.09174961590019],[-0.021333183873178,51.0967553189714],[-0.010865408338108,51.0964985960045],[0.002940293338212,51.1022919752115],[0.011365640374905,51.102605070949906],[0.005029797566758,51.10525805871401],[0.009505046216635,51.1103919565056],[0.018618567911213,51.10357551357941],[0.018737168742006,51.1037288901936],[0.0254502287021,51.10901964631971],[0.04456545831132,51.1106493987571],[0.028152554952846,51.1177196620482],[0.025496325985564,51.1273228660186],[0.027361224766083,51.139850507099396],[-0.006588864859286,51.1375688266709],[-0.017786255579234,51.14119995538741],[-0.03218639283012,51.1389519906694],[-0.033241113275993,51.1392611204125],[-0.056325694097903,51.13676552129281],[-0.063203483488358,51.141257585275596],[-0.082613051363085,51.1426377476602]]]}},{"type":"Feature","properties":{"name":"West Yorkshire Combined Authority","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-2.00947078713106,53.61677951113921],[-1.98164621160679,53.5893378442983],[-1.94810941608059,53.5728482016363],[-1.94272585126694,53.56164129411191],[-1.92752155724135,53.554637475499],[-1.92566597193519,53.5531893013427],[-1.9128846428011,53.5516436149553],[-1.90962083195551,53.5383909865468],[-1.89932200438852,53.538112128509404],[-1.89410949217378,53.5336117793005],[-1.87349262570415,53.5404296508189],[-1.84182082823365,53.5199087802658],[-1.82715106039428,53.5235079174762],[-1.82222878111984,53.5210909218023],[-1.804283016001621,53.5370133734778],[-1.79743124240259,53.5338875643393],[-1.75581896258099,53.536681059140506],[-1.73008274770267,53.54679167551951],[-1.7231775076069,53.5599267415214],[-1.70412687028509,53.5602497684249],[-1.69903667978221,53.5538105072075],[-1.66946580092353,53.5532275163473],[-1.66191052764474,53.553692829848806],[-1.66393036379029,53.5575013753588],[-1.65656026625189,53.5605581156573],[-1.61940395616097,53.5631229847191],[-1.61563188440644,53.56302832178321],[-1.60965831843735,53.5720294884315],[-1.59619871324849,53.57698690831841],[-1.6002656679643,53.577339352423],[-1.60175211286839,53.5877589598561],[-1.58797836748171,53.59348655095269],[-1.58519142647103,53.6005318957118],[-1.59115126334538,53.6067811932954],[-1.58645325959614,53.6071740555695],[-1.58200758120623,53.6057277049274],[-1.57198440210244,53.6086091689699],[-1.55759979962721,53.60591446609039],[-1.54732676271895,53.6031653922273],[-1.53540387734426,53.593878968058405],[-1.53078144404236,53.59312937992469],[-1.52838099818935,53.5970334371766],[-1.51867106657984,53.59971929667971],[-1.51036420901772,53.59686083653861],[-1.50138849637682,53.599833388069],[-1.49656246300737,53.5973737497565],[-1.49511957803327,53.6031902329812],[-1.49158079213534,53.6027690076361],[-1.49213365249166,53.5969928395948],[-1.4839184659621,53.59488048536309],[-1.44762384495194,53.612736992566],[-1.43919312584708,53.607062057364004],[-1.43292460301189,53.608942433323506],[-1.42489626723055,53.604483660601495],[-1.40018457395863,53.5986683490464],[-1.37670296002844,53.606478418801],[-1.35611963714612,53.5953662145859],[-1.35390000506374,53.583404372779306],[-1.35143412568259,53.5810810422015],[-1.34873341137308,53.5833476300582],[-1.3078197080881,53.57536697076371],[-1.29864383186131,53.5774555145084],[-1.28228538741061,53.5830203223616],[-1.27669392278424,53.5899795230562],[-1.25802813621318,53.59199744983769],[-1.25291126681797,53.5971167695963],[-1.25763806983067,53.5998525146561],[-1.24720997338638,53.6007051895756],[-1.25219991808845,53.607112611322805],[-1.24486470960384,53.6081631558904],[-1.24824986714938,53.6163532847014],[-1.23129714117901,53.6169094189668],[-1.22789207754961,53.617342861801795],[-1.23284427243353,53.6211122464196],[-1.24288786502782,53.634615714564106],[-1.25366203263728,53.6411993780061],[-1.2552164861138,53.6489626119707],[-1.24877652500161,53.6496307241786],[-1.24696039199966,53.6556145302205],[-1.25231925834765,53.666655982753106],[-1.2439575788672,53.6732503549996],[-1.2444169836956,53.6924295623026],[-1.19901535684986,53.6948883427854],[-1.19881814854623,53.7007329060597],[-1.21844290990855,53.707095571639606],[-1.21981187384993,53.7144190177334],[-1.22654062265956,53.70988312997861],[-1.2295729261433,53.7149054470182],[-1.24798800436946,53.7117252999313],[-1.26851709141282,53.7149091525155],[-1.27196139481349,53.7249241878807],[-1.28376408894728,53.73201222708251],[-1.30204330436809,53.7417246404076],[-1.31535677889255,53.7436807014006],[-1.31223876959692,53.7558885052162],[-1.29494201036989,53.7554628317844],[-1.29674922473777,53.7589536116819],[-1.29041541713377,53.763078722496],[-1.29636216475103,53.7718627353151],[-1.30678748484807,53.7730441225548],[-1.30380192223829,53.7751229045294],[-1.3138104637926,53.781555751023106],[-1.31487208408644,53.8095574148486],[-1.31243493069353,53.81437561749421],[-1.30362345902206,53.8165359902506],[-1.31039837840596,53.81991779108049],[-1.3096735441994,53.822894970886004],[-1.33609674496188,53.83358975338809],[-1.32520865713093,53.8353464391249],[-1.32655713555967,53.84042343032701],[-1.34213789386668,53.84517275436901],[-1.3384291426051,53.8517443132618],[-1.3529698771545,53.856750752009596],[-1.31260283640384,53.8653170016186],[-1.31969310243925,53.878957875332205],[-1.31560700707533,53.8816823223468],[-1.32080439259427,53.88378803650911],[-1.31773090766349,53.89634921675861],[-1.32227096512126,53.9004571903277],[-1.32105312933982,53.9034800801928],[-1.31372276302542,53.904702173223804],[-1.30058786897725,53.9074856419048],[-1.29720353407231,53.9216820282659],[-1.30730970961428,53.9214943608407],[-1.29418007558142,53.92706422306],[-1.30041970000981,53.929416811921],[-1.30899203821525,53.9240979121676],[-1.30696183943773,53.9344240754619],[-1.33953911709838,53.9408098270168],[-1.34471178616765,53.9395016380663],[-1.34040516519185,53.94588818802911],[-1.36195324149665,53.941483524529396],[-1.39718249968378,53.9425351723531],[-1.40065796649851,53.93750041034459],[-1.40919709536893,53.9354656053733],[-1.41062905552555,53.9301554384215],[-1.40670956648195,53.92784970861701],[-1.42978416781488,53.9288986749726],[-1.4335528510484,53.9263548749775],[-1.43255201748912,53.9110835143429],[-1.44044568912942,53.9139031182323],[-1.45155138343419,53.9070551798237],[-1.46309970110709,53.9060142808816],[-1.46741399063788,53.9107574472563],[-1.48602668663656,53.91091212559021],[-1.49467167955443,53.9153374739445],[-1.5285963244679,53.9086991323903],[-1.54941668782315,53.9106995396224],[-1.55257682983117,53.9030079185124],[-1.56288312390427,53.9039301071131],[-1.56868921225321,53.9109121886994],[-1.58406638409176,53.909152530773],[-1.58685844156437,53.9012519779665],[-1.59924801459186,53.9039820643918],[-1.59999326213106,53.909776341512796],[-1.6205370027283,53.90339496285609],[-1.64226003489039,53.9073640851447],[-1.65202899481062,53.9057228616547],[-1.65508298511049,53.9124842989602],[-1.68462724326052,53.9105880911715],[-1.68917114424757,53.9126456106448],[-1.68701955043693,53.9163888610701],[-1.70708308020122,53.9191312559919],[-1.70611245972884,53.9170707198606],[-1.71643260299151,53.9176348144794],[-1.71795853789499,53.9085427041814],[-1.72231360894013,53.91195826679131],[-1.72721624906541,53.9101971483664],[-1.74216351614958,53.9145802681553],[-1.74562604180612,53.9230037629874],[-1.75550614629802,53.92104153836671],[-1.76542530360652,53.9247228680781],[-1.77228018821147,53.9208873566056],[-1.77753621607093,53.9229212379777],[-1.78244355343507,53.9294409148285],[-1.798009587248631,53.92971410618391],[-1.79749560562838,53.9364846404929],[-1.80286281627586,53.93595691564779],[-1.80508916329937,53.9390226691492],[-1.8302000445709,53.9380171793094],[-1.83012504613116,53.940383498119],[-1.84768927934353,53.94077275835619],[-1.84865692039187,53.93602666065351],[-1.83619999295911,53.93142038810169],[-1.85950461344345,53.9325130132681],[-1.8621070392637,53.9405690676052],[-1.874150879940639,53.9450877504718],[-1.8788823617008,53.9542744327723],[-1.87872339574187,53.9623919921242],[-1.88224199432317,53.9631370172727],[-1.8931382160266,53.9553835373004],[-1.90627361012441,53.95837831499391],[-1.92276981738759,53.9556344048823],[-1.92797977690032,53.9504588455711],[-1.95068342650275,53.9567427305714],[-1.94936201870034,53.9530122737573],[-1.96618060011997,53.95155810858721],[-1.9650488995494,53.948235438977306],[-1.96228947488857,53.9432077799576],[-1.97052671923081,53.9433331489331],[-1.96307646765848,53.9334042141564],[-1.96801858621176,53.9318246657311],[-1.96588946493996,53.927887411247895],[-1.9719217849876,53.9299804338223],[-1.97686723160789,53.926417767380805],[-1.95322623148262,53.9117061595918],[-1.95256707298634,53.9035332799352],[-1.96962739527093,53.90344875942629],[-1.97935014092927,53.9011791592456],[-1.98110749418693,53.8969745282817],[-1.97697990138305,53.8756007372333],[-1.97702408016334,53.8755350632771],[-1.98765329122528,53.867737023799],[-1.99945538140006,53.8720652328764],[-2.01348456458694,53.869737540086],[-2.02163070660002,53.8714970972146],[-2.031708470240559,53.85859357506009],[-2.04613032171259,53.8501412464577],[-2.04692463706631,53.8295102819506],[-2.06125057169733,53.82563548196361],[-2.11227899052983,53.8057083891249],[-2.12835851818789,53.7990313038972],[-2.12952014645212,53.7922728404821],[-2.12481550058915,53.788055342496506],[-2.13636274882185,53.7801044595242],[-2.13023166798977,53.7703287629353],[-2.12952156680705,53.7545904619732],[-2.13343573748517,53.74967511053381],[-2.14164607232534,53.74574057455229],[-2.145407848293901,53.73605516973421],[-2.14909293281519,53.73389631364151],[-2.1560906644343,53.7353245060718],[-2.17329358668748,53.7230116839111],[-2.165912423883909,53.7108398851507],[-2.16258292564966,53.699221245344404],[-2.14525470704119,53.69229491649929],[-2.146328075898909,53.682231530348],[-2.1422575495828,53.6780058071684],[-2.13412727235101,53.685734030873306],[-2.12538675399782,53.6748383473348],[-2.11414141244869,53.671137547066],[-2.087121379761951,53.6708099772639],[-2.08316723689427,53.678075213058705],[-2.07339870520131,53.677510005816],[-2.05671823327911,53.68305151743801],[-2.05124217318998,53.6836917604439],[-2.0507343300026,53.6795161050296],[-2.05485761323399,53.6756629213521],[-2.05291768413947,53.6703167320897],[-2.03570939134714,53.659327667816],[-2.041580057705589,53.6424873400301],[-2.02999663899406,53.6361692630858],[-2.030903622805,53.6292176332916],[-2.02681573905277,53.6241671470048],[-2.02303595762586,53.615839476909194],[-2.00947078713106,53.61677951113921]]]}},{"type":"Feature","properties":{"name":"Wiltshire","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-1.79168114288144,51.6631257108799],[-1.78861685777866,51.6670018975245],[-1.81194238645542,51.703145713031404],[-1.81848786092503,51.70230997878801],[-1.81936637140581,51.6942612982145],[-1.81247158558176,51.6859999779548],[-1.82317089688883,51.6734843285402],[-1.81519817902053,51.6635292644137],[-1.83447111005641,51.6575203024711],[-1.85048414193447,51.6562848044654],[-1.87388368376944,51.682589831143204],[-1.89328914846433,51.6769391169676],[-1.89901313594195,51.6796865091691],[-1.88735195230874,51.66008268413769],[-1.87632568520428,51.6530852275626],[-1.88839733772518,51.6488587618572],[-1.90390253495955,51.6560279482084],[-1.92090498005307,51.6572437744879],[-1.93107648068076,51.6629948162478],[-1.94205954029405,51.6704168715615],[-1.95223949841581,51.6678175443141],[-1.95788627369765,51.65968157048],[-1.96305686286434,51.6586563942531],[-1.95051918865219,51.6369627916609],[-1.96874112178899,51.6399595649838],[-1.97732728414873,51.638091260896],[-1.97647768594881,51.6433474939424],[-1.98477739470418,51.64318421960069],[-1.995307446724951,51.6513635984319],[-2.00321095121292,51.6489791305171],[-2.01559230513293,51.65051550026101],[-2.05717380115619,51.6724431322141],[-2.07341140682766,51.6594989668112],[-2.10809692043985,51.63091865859231],[-2.15253791543564,51.5903416239803],[-2.18277554131831,51.5992296020758],[-2.18106244530722,51.59650780730339],[-2.19001237832702,51.59250314960839],[-2.1924428757715,51.5958134940986],[-2.20655236834298,51.5959494452395],[-2.20595427860883,51.60129415743759],[-2.210813308026209,51.6029597866565],[-2.22294437516111,51.5961100251507],[-2.24186688776213,51.5921071677432],[-2.24511651561049,51.5814094740082],[-2.26745328375231,51.5827174702195],[-2.27255905245869,51.5775903274116],[-2.27399237600914,51.5723593382072],[-2.26029952338613,51.56990082470261],[-2.268623781332391,51.55970887983959],[-2.268368548594501,51.54969191491671],[-2.261721852394361,51.544740983408],[-2.26650176046494,51.5362618774149],[-2.252388250543091,51.5268735558894],[-2.26371915728532,51.5185590939591],[-2.27756324751315,51.5168618489456],[-2.29638301917166,51.5097447528332],[-2.297452675572071,51.50621455535661],[-2.32432448172805,51.4975094728188],[-2.31142293570328,51.4873730705689],[-2.290557815000359,51.4868576154097],[-2.28885097878328,51.4781497844856],[-2.29574294629382,51.458590039344],[-2.28526337795405,51.4579281130262],[-2.29461584331874,51.42880153608739],[-2.29535024778849,51.426252342689],[-2.28474226220651,51.4234247458889],[-2.27854071292375,51.4158822043192],[-2.29086160425423,51.4057121040575],[-2.281812467782,51.397228076674],[-2.29677120736379,51.39492237756839],[-2.29749398279954,51.384918917491],[-2.290288572696081,51.372620965794596],[-2.29979808631897,51.3621376993575],[-2.30751872066815,51.3649968279222],[-2.31021466517647,51.3575345976731],[-2.32298311899921,51.3566566158993],[-2.33742937721836,51.3514294516755],[-2.3443088497928,51.34545683775299],[-2.32404765810054,51.34775990683859],[-2.30852823689829,51.33975052117051],[-2.29640906948892,51.3426619850286],[-2.294440442157021,51.3372627965969],[-2.30092693165784,51.3332225319919],[-2.28843893324608,51.3297714375415],[-2.28909082429693,51.325272048544505],[-2.27774724630575,51.3257041239791],[-2.27309487103777,51.32287904602511],[-2.2723312776516,51.3184999912278],[-2.27551931229617,51.3186804955458],[-2.27195450640093,51.3142540539339],[-2.28506752624869,51.3094571530531],[-2.27811069233549,51.3025563867252],[-2.27997259712106,51.29223001668151],[-2.26547401276139,51.296240156827395],[-2.26528664579718,51.2928586718077],[-2.25349723752292,51.289834740954504],[-2.24443053733742,51.26311908480131],[-2.24958324766784,51.25896646567381],[-2.24534123488723,51.2538761371033],[-2.25286114000551,51.2473516411026],[-2.26332437295175,51.2326050882448],[-2.2697610349149,51.2189533248849],[-2.26666418827455,51.2155336408141],[-2.284532910893149,51.1973482809071],[-2.29846468216909,51.1753224442548],[-2.310122599993019,51.168399648054994],[-2.33228701782695,51.1449576124448],[-2.33217403500786,51.137983575281],[-2.34585866968418,51.13336879406451],[-2.34630465392582,51.130510683169206],[-2.34453924740452,51.124678160220306],[-2.3645276284756,51.11887884006],[-2.36252944244235,51.101623672663],[-2.34705123241377,51.0882362566384],[-2.32914039662606,51.0852585346065],[-2.32585275983044,51.0796755881052],[-2.291269285808319,51.0770754753337],[-2.26862013866279,51.0687409083391],[-2.24469618593833,51.07231084386691],[-2.22580811788266,51.0575824010846],[-2.21799337719909,51.055178332249106],[-2.20532289406916,51.0427938366728],[-2.19320866066048,51.0377123709564],[-2.18883642272575,51.0252698637119],[-2.18860376740816,51.0185323079155],[-2.176388266734989,51.0128179877962],[-2.178101314274131,51.0082607634915],[-2.17179853954315,51.00100088504531],[-2.14814724571989,50.986277962596],[-2.11976435895004,50.9781906486388],[-2.12065165846279,50.9694078094496],[-2.11946160180189,50.9596801922383],[-2.11052117612026,50.9554887160125],[-2.10286096073371,50.94560774767601],[-2.0828636408361,50.9513383647561],[-2.06728311124988,50.9518204901457],[-2.05832769273258,50.9636432477657],[-2.04122533417257,50.9680676893935],[-2.03720818978598,50.97196983888009],[-1.99403629918269,50.97572815359769],[-1.9852096593475,50.984755555903],[-1.96535791950408,50.9920367766354],[-1.95682488695197,50.989831732335695],[-1.94993597428249,50.982310587126],[-1.927875900682591,50.99769723535671],[-1.88674132171074,50.9995277362902],[-1.87448162937032,51.006330573038504],[-1.87423696403635,50.9876839790248],[-1.87398355229609,50.984441036972704],[-1.85280422195812,51.005027712477],[-1.835812618992711,51.009422262898],[-1.81542176154033,50.9859226506618],[-1.80758352883346,50.99204551367551],[-1.80031396441254,50.9913948004776],[-1.74710160601678,50.977941205315794],[-1.71961730875128,50.97678046029391],[-1.69765138187314,50.9604324316802],[-1.67688169474342,50.949666967087005],[-1.66165999760679,50.9452778925552],[-1.64637611512953,50.9494654498378],[-1.63496498191182,50.959242203305],[-1.6233992105681,50.95463727216361],[-1.61975086537986,50.958566922566],[-1.60292299502569,50.97851743320851],[-1.61441870501748,50.9794947389394],[-1.61964214748169,50.982996428717],[-1.61895383219331,50.9873663365862],[-1.62521299074386,50.99033073541499],[-1.62880469880737,50.99909453023481],[-1.61723097131332,51.004182042232394],[-1.60607793189018,51.0018978059504],[-1.61493013918541,51.0066564119094],[-1.60908820129309,51.0098131501009],[-1.60501407788256,51.00700550100489],[-1.59752363475861,51.008055408424696],[-1.6053674272659,51.0172581022714],[-1.60058342660973,51.0221750490637],[-1.61945709662409,51.0330594504768],[-1.63237574994688,51.0327797089411],[-1.63496031495275,51.0408872630768],[-1.6277285317731,51.0780113479755],[-1.63409067492468,51.0854643016748],[-1.63731080993168,51.092165472254],[-1.62695651433105,51.1028641534181],[-1.63093101441157,51.11115400505321],[-1.62624982084857,51.11733837822],[-1.64058140367939,51.1253826677204],[-1.66297542061049,51.1271919942692],[-1.65461235514815,51.1519949639294],[-1.65704022775114,51.1593063787849],[-1.67236777184947,51.178543907232005],[-1.66945180584535,51.184806812995],[-1.66883538878813,51.1907722671746],[-1.69279238690395,51.2030498047024],[-1.69094296659371,51.2094950400265],[-1.68978806224739,51.2147685872006],[-1.66677152902693,51.2174443210605],[-1.65349635758962,51.2204676462397],[-1.63354082449386,51.2175159574141],[-1.61933558949838,51.241217821514],[-1.61039319584532,51.2429796328064],[-1.607421790131,51.2527704997279],[-1.60022661967832,51.2514380699617],[-1.60018632725542,51.2535243112622],[-1.57763603597239,51.25563106504601],[-1.54832237783704,51.2475160326377],[-1.54426628025323,51.245053578726],[-1.53595523193576,51.248618720082504],[-1.52982022728447,51.2605141199772],[-1.53056978423279,51.2626167895294],[-1.54051263214595,51.2608334795592],[-1.53591642777953,51.27730398178561],[-1.54258390871829,51.28125073598171],[-1.53451117504177,51.28709246831391],[-1.52280740170925,51.28705800824309],[-1.52414658181275,51.293160969263596],[-1.5195537995102,51.2962417898421],[-1.52802242176449,51.2998082025572],[-1.52595805280993,51.3060888521515],[-1.52775751374727,51.3128895630124],[-1.53356185391502,51.3162235803486],[-1.52750728243899,51.3384659578415],[-1.51628154811362,51.33935530577631],[-1.498298923396,51.32937609321541],[-1.48571137940255,51.3476828433187],[-1.5006084786642,51.356267961862805],[-1.49544914388954,51.3696644487562],[-1.51340538103072,51.3720449747588],[-1.51696050645148,51.378780241917305],[-1.52763458480509,51.3788210585826],[-1.53833184288397,51.3855373871795],[-1.53771747740546,51.3883224400642],[-1.55560283150743,51.39558412569269],[-1.55298802119079,51.4100439112545],[-1.56227497202719,51.4082374154725],[-1.56996668500205,51.4178365144597],[-1.56511865145832,51.4220434340803],[-1.55311279213499,51.42127613940869],[-1.53962439827352,51.4261119209348],[-1.52528850207046,51.4250179349727],[-1.53206255062256,51.4295554933288],[-1.52398565610524,51.4413382588102],[-1.52902843752282,51.45551178714601],[-1.54839018913458,51.4606558357215],[-1.55952593937496,51.46973860529191],[-1.56158295445419,51.4763785707314],[-1.56683051540033,51.4769303242597],[-1.57044904662374,51.4862741497218],[-1.58229087127299,51.4941117966021],[-1.58806412526132,51.5135029002442],[-1.58470801107569,51.52491211925731],[-1.60281227577577,51.518295057349306],[-1.62357373996522,51.514200251963196],[-1.62846501596916,51.5173646391012],[-1.63429263506371,51.5129411212826],[-1.66774043443428,51.5052790018728],[-1.71908165367462,51.5007055402528],[-1.71573673989899,51.48838334618059],[-1.77471783851001,51.4845387563144],[-1.77433053529391,51.4824545734086],[-1.79319207755711,51.4861670663425],[-1.79779682111143,51.48444593291309],[-1.81304646792152,51.4965355965363],[-1.81345034633343,51.5070421801524],[-1.83758492292658,51.5008374700594],[-1.84414329728723,51.513835878575904],[-1.84404231234914,51.515128765876106],[-1.84690549165248,51.52428257071269],[-1.84217661203159,51.5262652871132],[-1.84382557513799,51.5216556641972],[-1.83701591495243,51.5109497308748],[-1.83079603905622,51.5111433617992],[-1.84430701633753,51.54310667554461],[-1.85382409898453,51.546301920144],[-1.84961613532635,51.55362821375],[-1.86512613787001,51.55953295678971],[-1.86010361511537,51.5652438120408],[-1.84518926584843,51.561718380560805],[-1.85007738393333,51.5680978635942],[-1.8443493071034,51.5702132888316],[-1.84314557581213,51.57865915259589],[-1.83847636201707,51.58002935715749],[-1.83083698918952,51.5817503649921],[-1.82633569186617,51.5794366057351],[-1.82305417296239,51.5834570865911],[-1.83756146498663,51.58724191963609],[-1.83185653592711,51.5967288742393],[-1.83985485420212,51.5999194359275],[-1.83984936037627,51.60719347902061],[-1.84237820862562,51.6121170789619],[-1.83901005867784,51.6166927079927],[-1.820188407709129,51.6277491109549],[-1.81431599487437,51.62450663541131],[-1.8063764643776,51.6327192109361],[-1.788583417853451,51.63271365022051],[-1.799080529368561,51.66250472286641],[-1.79168114288144,51.6631257108799]]]}},{"type":"Feature","properties":{"name":"Windsor and Maidenhead","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-0.716905844381395,51.5771946270476],[-0.727863673776803,51.5772429333552],[-0.748831514973853,51.5684099625002],[-0.75746112875253,51.56481763728479],[-0.774155229783171,51.567012583456],[-0.782517155553262,51.55616885227351],[-0.790974554263495,51.552838403265106],[-0.794470592464457,51.551157835451505],[-0.810515002812092,51.5526972786962],[-0.824150378287284,51.5504851220621],[-0.82888585703159,51.5456300095593],[-0.837597840945815,51.5469871957154],[-0.842743668055121,51.5447586197339],[-0.846286231630477,51.5336640583879],[-0.853907491772685,51.5260731085118],[-0.836186202718656,51.5127505502474],[-0.824056327909973,51.5124794879065],[-0.817390197616722,51.5072375468219],[-0.817066457377209,51.496432272645],[-0.820441536513132,51.4949897371641],[-0.820939579696167,51.4971770927877],[-0.829356379818715,51.4871975550892],[-0.821989854084941,51.4741187967741],[-0.825178919955604,51.46567132696901],[-0.833754365368195,51.464098684030695],[-0.82829069464291,51.4620435694763],[-0.818085732865223,51.44319099508581],[-0.800019761547891,51.4411821496758],[-0.799347594481972,51.4461353315426],[-0.785704988930728,51.4577882377543],[-0.78256490664671,51.4686900761317],[-0.769641635286935,51.4677586073994],[-0.76462816963277,51.45972261974399],[-0.757329114646446,51.4590249741995],[-0.752752386472378,51.4622270587016],[-0.740771205534978,51.4588310399831],[-0.724526232749236,51.45613915261771],[-0.71441818197128,51.46714416408581],[-0.705709241255092,51.46773796002261],[-0.688866170515666,51.4669598587046],[-0.672746126800362,51.4578491131412],[-0.665015833388763,51.4624661439658],[-0.656755756603434,51.4614941608613],[-0.658258654706319,51.45308236413891],[-0.661982328325828,51.44431933378791],[-0.653868452302857,51.4413678580181],[-0.630552938632746,51.442192361264],[-0.637146191485687,51.4280046717869],[-0.631229508633161,51.4228614302753],[-0.631309270281672,51.4144545434314],[-0.638326548363823,51.41465499457771],[-0.644504362781734,51.4194265555877],[-0.663096137160277,51.426015741099505],[-0.667948432998634,51.4307478329787],[-0.678977587682033,51.42994906619101],[-0.696540470455116,51.4109103697849],[-0.673162950295025,51.3887407454549],[-0.667634283855982,51.3845713456129],[-0.655300457263153,51.3872457872762],[-0.646678885963734,51.385384320582],[-0.640460902870947,51.3873720273344],[-0.62593068575818,51.3828727036517],[-0.620922516025549,51.38517171005459],[-0.616344267326498,51.3835395923837],[-0.623494691644589,51.38954336594631],[-0.618495201013367,51.3923882534352],[-0.614520614965814,51.397394072496],[-0.618368608441882,51.3990257749748],[-0.608501160957111,51.4120106632517],[-0.604956227393237,51.421380756127],[-0.605124550506387,51.43131211788211],[-0.594219457112765,51.4414680219201],[-0.579675613649196,51.4447473448871],[-0.571675217761157,51.451007631736],[-0.555566908123841,51.4414858548777],[-0.550444872227547,51.44347291270321],[-0.534600004012159,51.4374119373185],[-0.522765050804453,51.4353004066197],[-0.524539573086476,51.4398800737271],[-0.531436348980556,51.4417130210241],[-0.526731619433222,51.4475099193223],[-0.54061316396913,51.4578521275783],[-0.529960218464429,51.47016819059531],[-0.524358681535487,51.471528484042],[-0.524243834647742,51.47950965363129],[-0.534361390018616,51.486787212557],[-0.549230796706843,51.4902849742276],[-0.549739720425529,51.4903595923311],[-0.554124177197795,51.4912815120622],[-0.55254341058589,51.494846245517806],[-0.560550664270769,51.4972117158478],[-0.565568404210051,51.4913420176521],[-0.589610345449848,51.4993989197697],[-0.59103278963847,51.4973281438465],[-0.592614178721451,51.4985133460997],[-0.600498898805013,51.502273892622],[-0.607716162352804,51.4972515023419],[-0.622158581960592,51.5035953211331],[-0.642211995205478,51.5006272384143],[-0.644447039148926,51.4964852513877],[-0.633827949917419,51.4926949666098],[-0.6482191202599,51.4882317595656],[-0.65193588330102,51.4854707874074],[-0.662284169244357,51.48792634245999],[-0.678498802912156,51.4945639406358],[-0.688466783467262,51.5084722998695],[-0.70316470355774,51.511106736300796],[-0.701504417773722,51.5211717152837],[-0.702051569445409,51.523947554259],[-0.692678085759794,51.544024802939205],[-0.694176987502014,51.5621755151605],[-0.698812870546783,51.56559094166491],[-0.705468161159156,51.5622458536847],[-0.711201689694814,51.5643241294255],[-0.716905844381395,51.5771946270476]]]}},{"type":"Feature","properties":{"name":"Wokingham","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-0.824056327909973,51.5124794879065],[-0.836186202718656,51.5127505502474],[-0.853907491772685,51.5260731085118],[-0.846286231630477,51.5336640583879],[-0.842743668055121,51.5447586197339],[-0.862525039114666,51.54902011098161],[-0.872748076470877,51.56031104391799],[-0.879723063740375,51.5621275792716],[-0.887370264358319,51.559471252024],[-0.896882190115767,51.5448630133878],[-0.899805113789272,51.53619885788859],[-0.883906962801385,51.5271582506],[-0.87821821879587,51.5230179824435],[-0.880209071729495,51.5116116997867],[-0.870025174755948,51.5043908449018],[-0.889739033585301,51.4987807473634],[-0.897651733807532,51.4870453090834],[-0.908185942742069,51.4839605854204],[-0.910608236181327,51.476830922531605],[-0.926867203070439,51.4672847034017],[-0.949167813983683,51.459513324054704],[-0.950018811392256,51.457838962092],[-0.937849979532742,51.454021665426],[-0.928475285062219,51.445162094054105],[-0.932389304390521,51.440959955272],[-0.944254979399817,51.44627034309],[-0.948134712520296,51.4392876851004],[-0.943518311247888,51.4361547724868],[-0.943433502720881,51.4292921769948],[-0.954197840402603,51.4214865583385],[-0.964729680895721,51.4117591602364],[-0.973699997105301,51.40978076287319],[-0.973638156209883,51.4125488151393],[-0.979892369230715,51.41302618861591],[-0.981341399674686,51.420624369326],[-0.996269066570048,51.4195941107468],[-1.00114760521892,51.4263823342562],[-0.999141573871847,51.4122507192028],[-1.01188405929674,51.392866627908],[-0.98873025637885,51.3805643708638],[-0.981700070875653,51.375627123206],[-0.991788682805981,51.3666701767656],[-0.986123750530059,51.3628482885656],[-0.986740059567131,51.3598556248242],[-0.939153417482029,51.3631715626296],[-0.935989361556512,51.3663170663636],[-0.917747809949221,51.3645565791178],[-0.915122282389206,51.3607861849769],[-0.877856218050537,51.3525912694795],[-0.86810285111369,51.3547435596843],[-0.847701567649537,51.35253031816511],[-0.842861529527882,51.3522712312989],[-0.837349302933734,51.3528712213498],[-0.822091892948763,51.3661727188733],[-0.819715311448264,51.3672053441816],[-0.809589698057002,51.3709075676912],[-0.788839993914029,51.37175070681919],[-0.793124866392451,51.3846077844273],[-0.796830248913774,51.3940075517086],[-0.800754177789556,51.4038464199448],[-0.801801966817938,51.4075402399569],[-0.792505466831662,51.4088496305634],[-0.796675981788752,51.414458696095096],[-0.800019761547891,51.4411821496758],[-0.818085732865223,51.44319099508581],[-0.82829069464291,51.4620435694763],[-0.833754365368195,51.464098684030695],[-0.825178919955604,51.46567132696901],[-0.821989854084941,51.4741187967741],[-0.829356379818715,51.4871975550892],[-0.820939579696167,51.4971770927877],[-0.820441536513132,51.4949897371641],[-0.817066457377209,51.496432272645],[-0.817390197616722,51.5072375468219],[-0.824056327909973,51.5124794879065]]]}},{"type":"Feature","properties":{"name":"Worcestershire","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-2.42633684028109,52.365832517269205],[-2.45765251691188,52.3678244469603],[-2.46774896021865,52.3645520134646],[-2.4747702332673,52.3671455210521],[-2.47418025175583,52.360612860559804],[-2.48388989429586,52.3604916897007],[-2.48832715242412,52.3553975393889],[-2.48179220567873,52.3511198164983],[-2.48435435909415,52.3445599056863],[-2.47822113768767,52.3384221244158],[-2.48179590843371,52.3310777473859],[-2.513204774897781,52.32921391220789],[-2.50841024208196,52.3332569353917],[-2.51212945833582,52.3371102595184],[-2.52190719854334,52.3418475693761],[-2.53914994730822,52.34413908831559],[-2.56221899576703,52.33310828325881],[-2.56264435828822,52.3111365754448],[-2.57485259380717,52.3175760228212],[-2.58450038188689,52.3131719238215],[-2.595089082525019,52.3138858757133],[-2.61000134350614,52.3062812591241],[-2.61803476082432,52.3069569825661],[-2.632445426364411,52.305640859397606],[-2.63632527933551,52.308952697623],[-2.66320577515059,52.3039371898238],[-2.65241877920918,52.2952469285754],[-2.64422080695338,52.29375013461589],[-2.63987718684578,52.2863754817816],[-2.626256370675089,52.2888967532025],[-2.618448896575201,52.2822284133703],[-2.61260658952522,52.2867604026889],[-2.59896717623292,52.2835417972728],[-2.59644925787423,52.2765932656216],[-2.60673037911732,52.2756651282892],[-2.6143949618484,52.2657160519958],[-2.628293948092491,52.2611596533262],[-2.63423315516055,52.2507549279248],[-2.62887068275684,52.2403491753744],[-2.596468218389699,52.2442578024091],[-2.58543860543555,52.2482977141682],[-2.57614059019871,52.2477528329121],[-2.57420551071335,52.2527313850736],[-2.56737087048255,52.2501410659947],[-2.553109285559,52.252475250871306],[-2.54794939609127,52.24969786360249],[-2.53167300470246,52.2532767669944],[-2.52581952783101,52.2480966409567],[-2.522571003242051,52.25098710751241],[-2.51551742049644,52.2560069292144],[-2.4956508287493,52.2569415191676],[-2.49359795970876,52.2640346229933],[-2.50446709503181,52.2744751025436],[-2.50311281254,52.2774495632506],[-2.492006483373149,52.27817600426479],[-2.48338215226372,52.2843754678783],[-2.45140272258487,52.2850827749681],[-2.42799581004903,52.2706099357052],[-2.46809895102878,52.256038011508],[-2.47364891299787,52.2507250036778],[-2.47470174108041,52.24135908689459],[-2.46485757968369,52.2343739358296],[-2.423065242412139,52.23726051263439],[-2.4142085044249,52.231723182207],[-2.39328767388101,52.2310008840654],[-2.385911286021249,52.2264508196019],[-2.38645588304253,52.2222334398563],[-2.39650885729616,52.2247641931309],[-2.39764811409897,52.221676614654],[-2.40404121472583,52.22124767916619],[-2.40157902849572,52.2154014400083],[-2.39289423536217,52.2103276595967],[-2.396094587417529,52.20568594054429],[-2.40265913517806,52.2071499025878],[-2.4004795838345,52.20171709168171],[-2.40786325038783,52.2027213075803],[-2.40871069003951,52.1963647991277],[-2.41914639096168,52.18797235607669],[-2.41506827532585,52.1832622192139],[-2.42546171345892,52.1770171047692],[-2.42201077245267,52.1724127850032],[-2.43299570861097,52.1720330908032],[-2.43517518126441,52.168216624862694],[-2.41519497909439,52.1452402389999],[-2.40018930490306,52.148257265750004],[-2.39397206754993,52.1467488926355],[-2.379321191331531,52.1551116070678],[-2.36523051035654,52.1510033450793],[-2.35872218952823,52.151896252933],[-2.35120759312719,52.1418510521826],[-2.34460819223255,52.132591209629005],[-2.35554799552983,52.1282170861099],[-2.35453689556395,52.1193840101286],[-2.34911786384757,52.095645679681404],[-2.33829808061935,52.095448939712895],[-2.33942526722778,52.06892388208159],[-2.35154802879142,52.05637492925901],[-2.34859482007215,52.0489105709299],[-2.35064851112551,52.0299608892012],[-2.35137852244174,52.02135902903941],[-2.35254266829771,52.0135353102849],[-2.3404932556809,52.00674044245301],[-2.32942304043216,52.0068286026801],[-2.32470967818414,52.0035672783312],[-2.32065696637927,51.9921284122742],[-2.32653298644337,51.9757878171901],[-2.31261970069138,51.97650497457601],[-2.30946536146718,51.9706466995995],[-2.30043302609069,51.9667752646008],[-2.28829064497739,51.9706681642951],[-2.27055558557873,51.9689390809737],[-2.25135998124032,51.966564934215704],[-2.2206132435217,51.9954966448483],[-2.20288600060755,51.99636299135051],[-2.18508403441562,51.990560978857395],[-2.17942583356144,51.9948475692988],[-2.181106379039869,51.999483391248894],[-2.1749071210172,51.99614097196459],[-2.16472740060025,51.99607300977701],[-2.16412790281408,52.0034004435723],[-2.18406559054382,52.0139009430448],[-2.18768330302322,52.0190801576711],[-2.17690606521531,52.0225592300147],[-2.18067935412919,52.04172812387811],[-2.17138093353095,52.0475735011324],[-2.15813398340215,52.050205656887],[-2.1183837199463,52.0421086149382],[-2.117219854815791,52.03361442799721],[-2.13939720724878,52.027891849687],[-2.149655308879309,52.011256168678294],[-2.15078195954122,52.0066280416879],[-2.13906369390974,52.0039498203318],[-2.14185772526002,51.9998152166019],[-2.13520211576955,51.99970434062811],[-2.1315234008533,52.0059068029097],[-2.12111733790517,52.01129269425739],[-2.11803814282315,52.0143877780167],[-2.108728275839431,52.014279037573],[-2.09767393678768,52.0130633227629],[-2.08487319407292,52.0104785846223],[-2.06078374065176,52.0146805603219],[-2.05929352374806,52.0094738303279],[-2.048683005885001,52.0071151037199],[-2.04951417600198,52.0037962185805],[-2.03835621126119,52.0046006235229],[-2.038252567333751,52.0095626846595],[-2.026996994859109,52.0105880398603],[-2.02927127218363,52.0128396671609],[-2.02365946276158,52.0169532964146],[-1.99856512357771,52.02966774782351],[-1.9951896393208,52.02656314175431],[-1.98413574037062,52.0358792744237],[-1.95138760292282,52.0377252735293],[-1.94752094126592,52.0318949293304],[-1.93173022075699,52.0299592834289],[-1.9270448826783,52.0366609263713],[-1.92215719605332,52.0356149137518],[-1.91344602070409,52.0444612406154],[-1.86226882816264,52.017485338390095],[-1.86154357558555,52.0126276661012],[-1.83905030714283,52.0067831284916],[-1.8353091289734,52.00916242116529],[-1.83565953282706,52.0225025859992],[-1.8250228816679,52.030933413556795],[-1.83056034585543,52.0321390322638],[-1.82975128600407,52.0390716050811],[-1.83458593855756,52.0437303163566],[-1.86344917989937,52.05341772306199],[-1.86287745945827,52.0634319528479],[-1.86498840401184,52.0662781575546],[-1.87168224491349,52.065426116581094],[-1.87200505095905,52.07191686605991],[-1.86904499487076,52.0738565368096],[-1.85560691263515,52.0744406659241],[-1.85338863530379,52.072367420405506],[-1.84661960637666,52.0794210956629],[-1.83175334172358,52.0727693542685],[-1.81894341276327,52.0854041151211],[-1.81273665650818,52.0787440014706],[-1.802288737622429,52.0969414695018],[-1.79013499514956,52.1005915342611],[-1.78941728675708,52.1063748337746],[-1.76764874769465,52.1125925601067],[-1.75783398046533,52.1161296465127],[-1.76969956411978,52.1153144659452],[-1.78062748195398,52.1201433525387],[-1.79100431323698,52.1201935592893],[-1.79577421420185,52.1244418882871],[-1.78554803075531,52.1320586070751],[-1.80843385608566,52.1398755712958],[-1.82321733193223,52.1363823220937],[-1.8278448522805,52.1412448952124],[-1.82334774779545,52.1459250780329],[-1.83146961492221,52.1456743480676],[-1.83100377445367,52.148307078554],[-1.8396721464105,52.152713685185],[-1.84823028783256,52.149972892992494],[-1.85190379418204,52.14796987718199],[-1.84690834174665,52.147185907136],[-1.84581026559189,52.1426541740871],[-1.85418798079449,52.13852091439799],[-1.86696223269006,52.144639644047295],[-1.86387745466432,52.1470383775963],[-1.86692724441238,52.15300796766301],[-1.89071575961245,52.1557608285939],[-1.89422974637425,52.1482514762684],[-1.88511820710407,52.1468531416659],[-1.90323776094578,52.1334480578429],[-1.90510005157564,52.1427368614791],[-1.9168779550102,52.14671580887931],[-1.92188699893781,52.15300629568691],[-1.94007674363837,52.15304202013281],[-1.9443024167711,52.1553331527715],[-1.93411881977758,52.1653937343244],[-1.93548275837819,52.169557085392306],[-1.96040736772155,52.1686717313137],[-1.96166886129646,52.1725290703112],[-1.944575436808061,52.1747663765607],[-1.93585316785219,52.189869628310596],[-1.93563393045851,52.2041212314579],[-1.92011803063322,52.21026315777349],[-1.91742329771162,52.2183455668428],[-1.92465114170177,52.2408753751605],[-1.93461083149063,52.2520178646591],[-1.93438721914327,52.264594389342],[-1.93868701965673,52.2704978848159],[-1.93545357182612,52.2769665449454],[-1.93425911946369,52.2769712861147],[-1.9211054332331,52.2764761065878],[-1.91454271211228,52.2753874135744],[-1.90079895548798,52.28349063892549],[-1.89556310749816,52.2827210169011],[-1.88647936317105,52.2866325493725],[-1.88042760520301,52.298340632222],[-1.87520703557667,52.3054821828913],[-1.88093415490093,52.3109334746665],[-1.87038595185995,52.3126090511931],[-1.86483054977187,52.3330931986051],[-1.87307921694791,52.337297824753094],[-1.88897350255566,52.36109314395671],[-1.87612494019659,52.3635815592194],[-1.87203384032481,52.36759853023509],[-1.86677839983985,52.37272969030009],[-1.86132385249005,52.3838703384195],[-1.84559793546976,52.3994272467433],[-1.86874678259764,52.404737509913204],[-1.8826972850066,52.3998129649372],[-1.88668851361268,52.40470212569961],[-1.887111376738571,52.4046858145759],[-1.904587854543671,52.4031456330195],[-1.91367502449958,52.4074643041657],[-1.91857786578453,52.3981927511757],[-1.93431470610424,52.38723637956869],[-1.94544940926848,52.3906961069225],[-1.95254253088033,52.39332070099201],[-1.96043451281946,52.3890929135563],[-1.9649269608741,52.39218786470081],[-1.966361665048,52.389465157013],[-1.98362447262023,52.3873341829475],[-1.99451104210707,52.3811811647072],[-2.00127910459127,52.3835651193726],[-2.01135254232925,52.3861805026382],[-2.02068654068459,52.3993561558151],[-2.02165327370026,52.4001889614081],[-2.03220823936371,52.40154802302521],[-2.02753442235217,52.40810490502339],[-2.01754876515636,52.40558243660931],[-2.00923773336184,52.4103880972217],[-1.99779534522531,52.4097360219062],[-1.98603705906246,52.416726185989795],[-1.9970611444877,52.417426157755],[-2.00468631003248,52.428410163578306],[-2.00974055226798,52.42652187749721],[-2.01699028095924,52.4326829309962],[-2.024766368516731,52.4348823137608],[-2.02970627999278,52.427301530946],[-2.03698776266666,52.4275457075304],[-2.03788100010757,52.44155755510519],[-2.059263587425431,52.4399826084536],[-2.06071299531874,52.4275376266412],[-2.06578767648413,52.4280869145588],[-2.06234948268488,52.4324553307803],[-2.06754618376386,52.4325585128104],[-2.06805186468972,52.4351950959813],[-2.07989188904816,52.4322720237779],[-2.0860500869908,52.4329249112311],[-2.093280340755161,52.4452825223829],[-2.10524933915254,52.4442078989719],[-2.10877723780402,52.4412226114487],[-2.11751850742379,52.4339439613066],[-2.1296969625812,52.432210479623805],[-2.13602683609072,52.4262682229475],[-2.14357493565654,52.42605473282051],[-2.164851282579979,52.4302041413132],[-2.16381069752851,52.4232580756115],[-2.16770663043039,52.4237803511181],[-2.18580908208701,52.42621023032181],[-2.19287601440949,52.4232923129682],[-2.19699572996164,52.4277554569825],[-2.210427566925671,52.4299528124326],[-2.21787724424581,52.4353683733733],[-2.2615026509419,52.4369411086874],[-2.26273121608001,52.4407052159974],[-2.26950475053342,52.43861599367851],[-2.28718691776708,52.4456539525173],[-2.2949641030381,52.4489476840565],[-2.28738237113974,52.4553169285039],[-2.30618480737107,52.4459460844035],[-2.31175006207078,52.437531177416105],[-2.32155073389048,52.436219348712],[-2.3259554523897,52.438301111299495],[-2.33311929671861,52.4353548811642],[-2.34510914313382,52.4393327004604],[-2.36352792484789,52.4394258309827],[-2.36415608987329,52.4319386601925],[-2.36276556727343,52.4257774318233],[-2.36655916081857,52.423045344315106],[-2.3660212365532,52.40781672906639],[-2.37294564977794,52.4019641101138],[-2.34218163052662,52.3931775891866],[-2.33403655738824,52.388782247698],[-2.33553274094094,52.38534744341101],[-2.350146158704391,52.3857248333188],[-2.35263296135137,52.3889367925092],[-2.36735191957292,52.3880630032731],[-2.377911403096181,52.3831507569285],[-2.38744206913555,52.38448814716129],[-2.390673240352351,52.381527855865],[-2.393594235001311,52.3843707380287],[-2.40537889219444,52.383065064419505],[-2.41047383637194,52.38715329210951],[-2.41515928211866,52.3789836988758],[-2.40992078396808,52.3706185875405],[-2.414923393184841,52.3682547125976],[-2.42633684028109,52.365832517269205]]]}},{"type":"Feature","properties":{"name":"York","level":"TA"},"geometry":{"type":"Polygon","coordinates":[[[-1.05873382513449,54.0478451039287],[-1.0621707171145,54.0501377555441],[-1.09427798926928,54.0466257897442],[-1.09611228386203,54.0404518815946],[-1.10107705547693,54.040964124231806],[-1.09978098873375,54.0376891998908],[-1.11490325295866,54.0358402126158],[-1.12016986628926,54.029025228461],[-1.14079656188959,54.0298588147557],[-1.144813671055,54.0255095077897],[-1.14238105396031,54.0189527037248],[-1.1480685544236,54.01571167300521],[-1.14287563941118,54.010788192828194],[-1.14909066483636,54.00294738074119],[-1.13699822638128,53.9910826227764],[-1.15191246934286,53.9891781234417],[-1.17550999290166,54.00219660836691],[-1.17951484798006,53.9988606973548],[-1.18856985869846,54.002483054767204],[-1.19193543440137,54.0005194131129],[-1.18328278303072,53.9962160760703],[-1.18210315303178,53.98534526509079],[-1.19221957503991,53.98419214589591],[-1.20018162076133,53.9890322587732],[-1.21651948406111,53.98559046864019],[-1.22370550897198,53.9748292112224],[-1.1956382252846,53.92238013367349],[-1.19113317589854,53.9225818195046],[-1.18570867706945,53.9160635119397],[-1.17930476989312,53.9168976528455],[-1.17059551299625,53.9088214680954],[-1.16491618340105,53.9105761683001],[-1.16012305974027,53.9004321685468],[-1.15000612994804,53.8936397792575],[-1.14156891972693,53.892644123055604],[-1.13681895791749,53.89594281231571],[-1.12498419363064,53.882676139245206],[-1.10510306568287,53.8757328930524],[-1.10042958517007,53.876625559022],[-1.09560823301889,53.88457706488919],[-1.07767037523287,53.8835921565092],[-1.06495957481049,53.8745857914306],[-1.02154300020583,53.8883716477067],[-1.00820490058898,53.8899953340569],[-0.992832844574211,53.8752106640707],[-0.967709176971273,53.88283798133481],[-0.948027116927945,53.8848667385547],[-0.944071677500396,53.88812167251201],[-0.938611986000199,53.8875414936387],[-0.934434058718415,53.8798168156973],[-0.926835271698008,53.882562396695995],[-0.923517752139632,53.88076645194241],[-0.923596207761062,53.8877268148737],[-0.919678710441119,53.8893031789214],[-0.922922402632639,53.8907353622717],[-0.949515260864281,53.8938463858134],[-0.940291212360484,53.898638766850695],[-0.938314141283117,53.9078898729506],[-0.932050793484206,53.908763681275],[-0.931680467910892,53.917373808329],[-0.921678138646254,53.9212346055855],[-0.927726749875748,53.93085946057881],[-0.923419369955377,53.9350075681694],[-0.927657046446027,53.9526666076355],[-0.921212172316722,53.960422224726],[-0.934111184574599,53.9686722076811],[-0.927825568610974,53.9840243536994],[-0.920313528868151,53.9900941621113],[-0.925294992911636,53.991518374903904],[-0.944362084243364,53.9891283488278],[-0.957680199242767,53.98395777977961],[-0.967044950205859,53.9859188211219],[-0.984657476406473,53.981547889456],[-0.995817988536795,53.9839810513635],[-0.981249570849006,53.9911542262156],[-0.979056756842073,53.9959706609623],[-0.971919430860756,53.9967101665702],[-0.975368566936891,54.00473244620859],[-0.984703334085532,54.0025503630241],[-0.97934906130364,54.0053106236705],[-0.982753447167886,54.01003043815079],[-0.976940782550309,54.015773872727],[-0.979421754929109,54.0174199219218],[-0.966872483838607,54.022966599374],[-0.970687724670915,54.02308355686391],[-0.973582962161695,54.0293690513652],[-0.982242514434347,54.030903673303],[-0.982312009875613,54.0394838913352],[-0.99324945739153,54.042224010385],[-1.00208473428272,54.055263068040006],[-1.01437741453304,54.04932181629119],[-1.05971219675545,54.0566069476114],[-1.05873382513449,54.0478451039287]]]}},{"type":"Feature","properties":{"name":"Hartlepool","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.38089831632363,54.6439170683557],[-1.38376395297565,54.6462430022724],[-1.34465811958809,54.690818770418],[-1.30367215760401,54.7185067684375],[-1.2702517668578,54.727168687781],[-1.25856139746239,54.7260554520107],[-1.24224977186981,54.7229622269044],[-1.17569729724445,54.6967465923609],[-1.17433678023129,54.6931621757524],[-1.15798025196481,54.6483134529337],[-1.16042471112156,54.6351924466466],[-1.16559110623118,54.6318760847232],[-1.20026215803508,54.6234126073818],[-1.20525343799537,54.6227344349138],[-1.21263257285471,54.6217335841725],[-1.25671736456406,54.6233505298615],[-1.33506092900011,54.6313239680584],[-1.38089831632363,54.6439170683557]]]}},{"type":"Feature","properties":{"name":"Middlesbrough","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.28425864345249,54.5285722702423],[-1.28543171080611,54.5362499540584],[-1.28262621501787,54.5652835671641],[-1.25715974098474,54.5871382295807],[-1.25170846105873,54.5906769526905],[-1.19707258434367,54.5817905640607],[-1.17774515018566,54.5684741695069],[-1.16666291323547,54.554053045188],[-1.13736871919394,54.5149951327635],[-1.14619694918505,54.5028216123635],[-1.17439150837431,54.5028942907064],[-1.26386274016728,54.5125454184566],[-1.27929330893587,54.5178119651376],[-1.28425864345249,54.5285722702423]]]}},{"type":"Feature","properties":{"name":"Redcar and Cleveland","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.19880733085407,54.5445560016993],[-1.20174302467608,54.5775671403941],[-1.15273983034454,54.6313456509582],[-1.13747557906455,54.6475831475417],[-0.78986748641371,54.5606385845159],[-0.789706090541521,54.5602608590726],[-0.844139141102103,54.4895497730154],[-0.952951598811726,54.4880355490013],[-1.11838000658732,54.4981985705854],[-1.14619694918505,54.5028216123635],[-1.19880733085407,54.5445560016993]]]}},{"type":"Feature","properties":{"name":"Stockton-on-Tees","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.44960745554185,54.5329679204731],[-1.45091359036408,54.6105135015794],[-1.38089831632363,54.6439170683557],[-1.31636432536428,54.6452348524527],[-1.16781991844001,54.6293103946064],[-1.16484632932882,54.6282277224556],[-1.16204482781001,54.6226186139452],[-1.16058479247303,54.6103262810526],[-1.23438011814448,54.5061421456505],[-1.25740307371,54.4873218300283],[-1.3436289617262,54.4641554130233],[-1.36441713758622,54.4659524096737],[-1.43211777207151,54.4794545660635],[-1.43490529222604,54.4874931719167],[-1.44960745554185,54.5329679204731]]]}},{"type":"Feature","properties":{"name":"Darlington","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.70527424961459,54.5491719567045],[-1.70928210885412,54.5631794622174],[-1.70898440615518,54.5741416873651],[-1.68242215879618,54.6177711334526],[-1.64162851146495,54.6193656809116],[-1.6185054416542,54.6191675591545],[-1.42332719850805,54.6031268661412],[-1.40729171028139,54.593728413478],[-1.4113556720932,54.5648161981808],[-1.42516137271388,54.5006502175645],[-1.45615000928909,54.452449254975],[-1.46310127817227,54.451377562279],[-1.54567271781715,54.4712384767644],[-1.69692636355207,54.5360064297071],[-1.7037713077725,54.5449364611358],[-1.70527424961459,54.5491719567045]]]}},{"type":"Feature","properties":{"name":"Halton","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-2.82575690218936,53.3318139402841],[-2.83245729486952,53.3372894346576],[-2.81880391042643,53.3480007286832],[-2.77207816320764,53.3829645062818],[-2.74517465588857,53.4020967259185],[-2.71522678614011,53.3990348997456],[-2.63062192979903,53.3640498201747],[-2.60660651159164,53.3429958909847],[-2.59522305170231,53.3224543711675],[-2.60908651552069,53.3120712133787],[-2.64155693821446,53.3050347970597],[-2.70079881188986,53.3058055466183],[-2.73929214925888,53.306870369551],[-2.82575690218936,53.3318139402841]]]}},{"type":"Feature","properties":{"name":"Kingston upon Hull, City of","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.418969672771267,53.7196149037518],[-0.422341662667568,53.7505610640462],[-0.418203810999879,53.760632345122],[-0.392212775747927,53.7911336884853],[-0.364763189196869,53.8037136408573],[-0.353805596026338,53.8085166219616],[-0.316134326202857,53.8132701672882],[-0.252324831097553,53.781328333266],[-0.241403486910475,53.754908780524],[-0.243285082392321,53.7386735905174],[-0.244338267340975,53.7375000054326],[-0.250256331009953,53.7333188178797],[-0.418969672771267,53.7196149037518]]]}},{"type":"Feature","properties":{"name":"Herefordshire, County of","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-3.1258956184989,52.078310821606],[-3.14122950743734,52.1299234350123],[-3.12199485648723,52.1669168328501],[-3.10208187078616,52.2027204256414],[-3.00155734523004,52.3203430501254],[-2.99714715768153,52.3245277852396],[-2.9176851490735,52.3862884794478],[-2.85544157335808,52.3952980274035],[-2.80543256064045,52.3882520709597],[-2.45140272258487,52.2850827749681],[-2.42799581004903,52.2706099357052],[-2.38591128602125,52.2264508196019],[-2.34460819223255,52.132591209629],[-2.33829808061935,52.0954489397129],[-2.33942526722778,52.0689238820816],[-2.35137852244174,52.0213590290394],[-2.43931477036816,51.8995141872491],[-2.44600954438968,51.893994548688],[-2.52223340432222,51.8646959992185],[-2.53405179974821,51.8603963184223],[-2.65040070567432,51.8261246889383],[-2.65685722559277,51.8268809153359],[-2.73884399096035,51.8366194156254],[-2.97179803059763,51.9049649465851],[-3.00812331564277,51.9271305466736],[-3.06736793856371,51.9831427879402],[-3.09919890693024,52.0226858085701],[-3.1258956184989,52.078310821606]]]}},{"type":"Feature","properties":{"name":"Bath and North East Somerset","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-2.69487895435338,51.3180942915247],[-2.70789213030415,51.3378032259358],[-2.69419382454675,51.3798568884771],[-2.5262905152521,51.4347771717972],[-2.34328969454878,51.4395334928121],[-2.32502844496388,51.4369906306011],[-2.29461584331874,51.4288015360874],[-2.28474226220651,51.4234247458889],[-2.27854071292375,51.4158822043192],[-2.28843893324608,51.3297714375415],[-2.28909082429693,51.3252720485445],[-2.33252118778965,51.3084433502633],[-2.45172260312224,51.2742514031922],[-2.4558747681884,51.2737327264961],[-2.47800109139509,51.273096744002],[-2.6249847000038,51.2824796144455],[-2.63829488012106,51.288277940893],[-2.66679493380186,51.3024450874518],[-2.69487895435338,51.3180942915247]]]}},{"type":"Feature","properties":{"name":"Bristol, City of","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-2.63325207208142,51.403441898009],[-2.77355946285335,51.4945638964999],[-2.77355028903305,51.4946168181385],[-2.67382003275519,51.5444319380448],[-2.58098846828396,51.5174088245448],[-2.51586501173572,51.4938673464108],[-2.51099900146854,51.4899862839791],[-2.51046233684169,51.4287821637134],[-2.54334482062367,51.407408398832],[-2.57075429208891,51.3993691613727],[-2.59013231973091,51.3975452080684],[-2.62795532760837,51.4018600557084],[-2.63325207208142,51.403441898009]]]}},{"type":"Feature","properties":{"name":"South Gloucestershire","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-2.52354246233638,51.4326062609708],[-2.69500999696119,51.5226697776269],[-2.66389522945569,51.5731525412049],[-2.62780480333705,51.6056350417757],[-2.55827028671273,51.6664201929963],[-2.53474246620219,51.6772457722585],[-2.53239246109301,51.6780584361753],[-2.39883618726571,51.645810317302],[-2.38598850246378,51.6399431096316],[-2.291637286721,51.5936959211034],[-2.26029952338613,51.5699008247026],[-2.25238825054309,51.5268735558894],[-2.29461584331874,51.4288015360874],[-2.31261574802172,51.4224461818413],[-2.46964491811586,51.4159324965959],[-2.49289606978136,51.418344967782],[-2.50798536345485,51.4246414061671],[-2.52354246233638,51.4326062609708]]]}},{"type":"Feature","properties":{"name":"Peterborough","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.492359814763782,52.5816716791885],[-0.497651443767072,52.5868509766981],[-0.494773452953128,52.6403140726876],[-0.484320104749261,52.6461290847593],[-0.475831476553135,52.6487147491004],[-0.45047612776816,52.6541283428577],[-0.335037147761973,52.6748659736262],[-0.063785180485854,52.6752243731439],[-0.058023707720777,52.6740916470594],[-0.032102883694938,52.6653607087669],[-0.012751835145391,52.5942462282237],[-0.284637952413963,52.5061130640139],[-0.293289613103781,52.5068891095325],[-0.478814868225147,52.573645147065],[-0.492359814763782,52.5816716791885]]]}},{"type":"Feature","properties":{"name":"County Durham","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-2.35159375318484,54.6857364069459],[-2.35547078109705,54.6971739537045],[-2.31208952139602,54.791015046825],[-2.13816199851342,54.8423694900282],[-1.82769671162814,54.9054935533703],[-1.75057195978431,54.9174197141266],[-1.73759058344954,54.9186998554048],[-1.59376939406093,54.9017468260908],[-1.34740366298581,54.8605661447213],[-1.32089098427849,54.8375634512692],[-1.24224977186981,54.7229622269044],[-1.34122267082448,54.6502432615893],[-1.44340117937859,54.5906238620162],[-1.79297648414091,54.4844924296004],[-1.94254323627035,54.4533953549934],[-1.97005959181258,54.4515215419127],[-2.15926758918667,54.4554834841942],[-2.17021302340634,54.4581987855746],[-2.30451453732035,54.5961978460776],[-2.32493776754246,54.6316502370591],[-2.35159375318484,54.6857364069459]]]}},{"type":"Feature","properties":{"name":"Northumberland","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-2.60545400682068,54.8843058312656],[-2.68979023468094,55.1889842117909],[-2.64677118121333,55.2600438638246],[-2.33601244831487,55.6320547002993],[-2.32470201879721,55.6431665479277],[-2.0861230942702,55.793045271488],[-2.06224170460584,55.8027329316734],[-2.0344332183495,55.8110895406316],[-1.77921132996832,55.6856261076144],[-1.65500818957618,55.6173834578515],[-1.61894770179467,55.552183586092],[-1.59114224073804,55.4923305669221],[-1.46198677877224,55.07457436562],[-1.4877669177721,55.0535868670427],[-1.88138140121212,54.8465907320794],[-1.88756417839628,54.843603739191],[-1.91543304452764,54.8339630661768],[-2.21890675191817,54.7823773837281],[-2.53065218005093,54.8059990468107],[-2.5583066678318,54.8167246166541],[-2.56784860338401,54.8235748403588],[-2.58267104737595,54.8458667824507],[-2.60545400682068,54.8843058312656]]]}},{"type":"Feature","properties":{"name":"Cambridge","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[0.069801570366956,52.2121784804626],[0.068639904754505,52.2149333127105],[0.101179539457474,52.2269739984341],[0.110059063520593,52.230019985674],[0.129870221496044,52.2356496483513],[0.155281124144731,52.2372295579635],[0.17143910577606,52.2338400761583],[0.184552035598734,52.1914852711128],[0.181328828929856,52.1694905633957],[0.154926887702132,52.164622885697],[0.103429649976074,52.1579417014909],[0.101101475343263,52.160724880026],[0.069801570366956,52.2121784804626]]]}},{"type":"Feature","properties":{"name":"East Cambridgeshire","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[0.043868103249077,52.3528858761776],[0.034420786781512,52.3857499512989],[0.041686929152369,52.413359355683],[0.043646658094936,52.4181252929886],[0.238787960457548,52.5091860814808],[0.309360655162502,52.5136222736722],[0.317292909515966,52.5130077671413],[0.367062169051718,52.5011737855372],[0.428529094955595,52.4546526146309],[0.504701064699239,52.2863648182628],[0.514484042486228,52.2267794084401],[0.51282087575082,52.2136889315597],[0.491332842084376,52.1651020323233],[0.409856946910726,52.156424381786],[0.394914563223174,52.1579697725593],[0.351686380427232,52.1687009923699],[0.310379136575802,52.1857268924419],[0.254408086804361,52.2145226500342],[0.22529522726676,52.2316997657552],[0.043868103249077,52.3528858761776]]]}},{"type":"Feature","properties":{"name":"Fenland","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.188288505737027,52.5370811230797],[-0.197873350783597,52.5508058317013],[-0.189878847536153,52.5654428638868],[-0.186980183895209,52.568506749644],[0.048018423926677,52.7187851069335],[0.063904199867696,52.7274361166459],[0.132975309366633,52.7393044772068],[0.170180985553627,52.739894147841],[0.171626068420179,52.7380317024757],[0.219300091055415,52.6218124223759],[0.236319141863767,52.5072905693362],[0.17931743005679,52.4587596822605],[0.155921970784506,52.4405773539675],[0.123841539271616,52.4209697633019],[0.034420786781512,52.3857499512989],[0.028221671691509,52.3898713275873],[-0.188288505737027,52.5370811230797]]]}},{"type":"Feature","properties":{"name":"Huntingdonshire","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.498701137705854,52.3601003499178],[-0.499486806912858,52.3669929186284],[-0.495946267815481,52.3795155302795],[-0.415381402678347,52.5787426397479],[-0.408880187963987,52.5826580606983],[-0.396839712356373,52.5829983382952],[-0.200398362872374,52.5452158473434],[-0.069674827553681,52.5168591207057],[-0.054567448827765,52.513395551721],[-0.047969449615096,52.5105382331126],[-0.03850675146176,52.5018445327235],[0.023172918140771,52.4424681561327],[0.034142957022226,52.4282816274122],[0.051360587355539,52.3581811227663],[-0.100539902385521,52.1826649927457],[-0.110961251819634,52.1789244819582],[-0.156190466824133,52.1672458688305],[-0.216624324385539,52.1587355439061],[-0.254399134155224,52.1721847777994],[-0.374375681124288,52.2329982884739],[-0.465365756545097,52.3229532812371],[-0.483264192761938,52.3409032974573],[-0.498701137705854,52.3601003499178]]]}},{"type":"Feature","properties":{"name":"South Cambridgeshire","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.155121032648697,52.0530610998673],[-0.234804043652189,52.144726758307],[-0.175476895387142,52.2802171564815],[0.026962528663372,52.3514831147528],[0.043868103249077,52.3528858761776],[0.239315057987301,52.3255898648303],[0.248816823636207,52.3228537641812],[0.417276418385201,52.1593066842157],[0.420886391436469,52.1556392018357],[0.418283006486572,52.1343556337397],[0.40709249057185,52.0707939313001],[0.404638263575799,52.0655023804364],[0.389695372823124,52.0364665943425],[0.068127418901375,52.0057887391631],[-0.120998829974349,52.0195212773538],[-0.126567501937775,52.0209218759846],[-0.155121032648697,52.0530610998673]]]}},{"type":"Feature","properties":{"name":"Allerdale","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-3.57772746824381,54.6469367270668],[-3.57806905622701,54.6517030229512],[-3.39886993497874,54.8685058326993],[-3.36698781532365,54.8914698718355],[-3.28330649706739,54.9421233213207],[-3.23220190321563,54.9532200155468],[-3.20439217458803,54.9538753136407],[-3.18600124446938,54.949933966748],[-3.12171884311388,54.9284576165394],[-3.07835540102112,54.9046298458163],[-3.05717362549593,54.8867463307229],[-3.02270955470047,54.8524036503151],[-2.98306899656772,54.786006663588],[-2.98299889448078,54.7193810202609],[-3.0113888800634,54.5073829265276],[-3.01483453751538,54.4998433176212],[-3.11257305674493,54.4614907783258],[-3.11942565018109,54.460237554617],[-3.16713932401525,54.4541106699469],[-3.17489963807727,54.4546035186766],[-3.57259617695966,54.6006957099397],[-3.57772746824381,54.6469367270668]]]}},{"type":"Feature","properties":{"name":"Barrow-in-Furness","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-3.26404413059651,54.1025831656609],[-3.27668181146214,54.1418213506164],[-3.25653832090725,54.1687019780351],[-3.20551205889564,54.2143194544364],[-3.14762715252191,54.2184764646447],[-3.14259742713054,54.1652601010732],[-3.14259295634196,54.0974038492872],[-3.1507107426661,54.0647853250502],[-3.17311782971819,54.0470912389339],[-3.19561465348076,54.0442603785904],[-3.20969137922897,54.047523237672],[-3.26404413059651,54.1025831656609]]]}},{"type":"Feature","properties":{"name":"Carlisle","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-3.12978499956331,54.9344049025944],[-3.13111868505206,54.9476102225377],[-3.11861948906279,54.9744653632802],[-3.05092854160806,55.0528035980455],[-2.82550257520544,55.1383140722935],[-2.68979023468094,55.1889842117909],[-2.48634115497866,55.0830455152498],[-2.48295647708036,55.0437010677454],[-2.48304985288842,55.0400190767258],[-2.57335234214531,54.8535461971699],[-2.58267104737595,54.8458667824507],[-2.68979295378492,54.8191911910318],[-2.70566264155142,54.8163626263471],[-2.96934694603397,54.7771436922744],[-2.98443760923693,54.7761576696433],[-3.0267709013085,54.8012027248767],[-3.12636155651395,54.9055081242796],[-3.12978499956331,54.9344049025944]]]}},{"type":"Feature","properties":{"name":"Copeland","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-3.63613923411106,54.5078196632736],[-3.63880287364147,54.5170684448667],[-3.63873156053998,54.5174241704796],[-3.58281083170314,54.5908653645209],[-3.57259617695966,54.6006957099397],[-3.54438142579757,54.607353393852],[-3.51276344818911,54.6050165285544],[-3.43399381647929,54.5974742308959],[-3.39340455840967,54.5860090203122],[-3.22471589473835,54.5023360192796],[-3.21362451274399,54.4965916110922],[-3.11493370218688,54.421990439827],[-3.11526076889582,54.4150211628492],[-3.2392605388575,54.2031264322471],[-3.25398110018546,54.1916383628285],[-3.26869422967547,54.1901253710789],[-3.31430579829842,54.1885623821146],[-3.33003785831517,54.196339796437],[-3.39421568711067,54.2544402207594],[-3.63508544649842,54.5066793217159],[-3.63613923411106,54.5078196632736]]]}},{"type":"Feature","properties":{"name":"Eden","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-3.09240352856999,54.6172359596463],[-3.09299348416362,54.6541710446803],[-3.0871910117655,54.6860919587122],[-3.08192015283893,54.6952538424487],[-3.02614032048961,54.7479407818852],[-2.98443760923693,54.7761576696433],[-2.90740931059808,54.8219583796582],[-2.86306046753203,54.8372537663914],[-2.65533006186429,54.8547688186273],[-2.41165283311268,54.8564500653273],[-2.4016226407963,54.8514839653067],[-2.32738520521004,54.8053324704389],[-2.31208952139602,54.791015046825],[-2.17239803091537,54.5324441161867],[-2.16239333141251,54.5039428009932],[-2.15936715432156,54.4711439233447],[-2.17021302340634,54.4581987855746],[-2.2974404079712,54.3768987653342],[-2.34464790841351,54.3596285107861],[-2.36074911225142,54.3549476063212],[-2.51368692416275,54.3679339783167],[-2.9375529600881,54.468670788239],[-3.01375314975817,54.494710773992],[-3.09240352856999,54.6172359596463]]]}},{"type":"Feature","properties":{"name":"South Lakeland","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-3.23816627612115,54.2940173408603],[-3.24186952660748,54.323526676214],[-3.16713932401525,54.4541106699469],[-3.14555799189388,54.4684436995166],[-3.07621436683208,54.4893655016804],[-3.04830398230838,54.4962783786491],[-3.01483453751538,54.4998433176212],[-2.86534293744356,54.49014300161],[-2.80687704295491,54.4820601244887],[-2.38231771484371,54.3713146969214],[-2.32020205365872,54.3317507593483],[-2.30984140863991,54.3243149783909],[-2.31551421488285,54.2702849274841],[-2.31909631949867,54.2571558310793],[-2.32564664212512,54.2414383484097],[-2.33765745303457,54.2375990714247],[-2.67987623790917,54.161134716838],[-3.14910642329136,54.0935293008397],[-3.14961817985814,54.0939437570351],[-3.17486800915171,54.1147647073816],[-3.22869570287776,54.2598538932299],[-3.23816627612115,54.2940173408603]]]}},{"type":"Feature","properties":{"name":"Amber Valley","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.60405403031962,52.9368126339678],[-1.61005406701909,52.9408552027387],[-1.59860278413432,53.0306117386232],[-1.59328985905891,53.0485936085467],[-1.59143882132993,53.0547340973106],[-1.5201907296995,53.124034329351],[-1.49536574441841,53.1339645595524],[-1.3736501798879,53.1078564640497],[-1.33163547679324,53.0809878876668],[-1.30744372494867,53.0036547888145],[-1.32835792219245,52.9816217843678],[-1.33279192907299,52.9781425990939],[-1.53964530100495,52.9244494955263],[-1.54406849888716,52.9242077388049],[-1.60405403031962,52.9368126339678]]]}},{"type":"Feature","properties":{"name":"Bolsover","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.37772505487026,53.135834138934],[-1.37826515219979,53.1737252389126],[-1.32192807245603,53.3090390919998],[-1.30747626926732,53.3125206277836],[-1.19974106069052,53.3114394544059],[-1.17942724363697,53.3064058196199],[-1.17417524206695,53.302534187434],[-1.17156289293514,53.2946379730149],[-1.1664875414478,53.277655368261],[-1.1950553172322,53.1893591659548],[-1.19880149028466,53.1830893036712],[-1.30323570997794,53.0880837537625],[-1.33163547679324,53.0809878876668],[-1.353684891867,53.0865685810471],[-1.36316719527719,53.0924365802847],[-1.3736501798879,53.1078564640497],[-1.37731100684714,53.1185485015101],[-1.37772505487026,53.135834138934]]]}},{"type":"Feature","properties":{"name":"Chesterfield","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.47952647311652,53.222228614821],[-1.48415747402457,53.2289759138684],[-1.480600717919,53.2633454892212],[-1.45706890180163,53.2837453417855],[-1.37705345004644,53.2990440943817],[-1.3336341862417,53.2897577453221],[-1.31670226716525,53.2816569344319],[-1.30717902882643,53.2754173905454],[-1.30130161259842,53.2638916062256],[-1.31920220965358,53.2395822679761],[-1.32635459367634,53.2360990193301],[-1.40140469524987,53.2137513517885],[-1.42084291802479,53.212442201971],[-1.44000083841075,53.213593307286],[-1.47952647311652,53.222228614821]]]}},{"type":"Feature","properties":{"name":"Derbyshire Dales","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.85657559960297,52.9233909598958],[-1.91855680618971,53.2179861830762],[-1.82262598352133,53.3028118167011],[-1.80817814011043,53.3142662987038],[-1.66186020965817,53.3914421108445],[-1.65381782187416,53.3919108271105],[-1.59054795436381,53.345920985244],[-1.51727016145934,53.206052474453],[-1.49536574441841,53.1339645595524],[-1.51205870742964,53.0933647742941],[-1.57104301171101,52.9665669732074],[-1.65409977067396,52.9057460332987],[-1.74600328186458,52.8686931604978],[-1.75226722347909,52.8688078908149],[-1.82362238868557,52.8828802568378],[-1.82670890885525,52.883985944297],[-1.83295463957252,52.887452189693],[-1.85456863270552,52.9199753455107],[-1.85657559960297,52.9233909598958]]]}},{"type":"Feature","properties":{"name":"Erewash","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.47463054024943,52.9659280296716],[-1.47982625497842,52.9819869772866],[-1.30744372494867,53.0036547888145],[-1.297763250917,52.9896880526822],[-1.23970599304057,52.8922892374961],[-1.23898534810158,52.8835243372726],[-1.24005549011668,52.8801088572395],[-1.26610427530758,52.8733118216993],[-1.28948669216352,52.8724577285142],[-1.31930687515051,52.8728694279118],[-1.32387804186042,52.8729871695736],[-1.33522419730731,52.8763241703448],[-1.3499698847564,52.8807853568098],[-1.38826315892156,52.9014683128634],[-1.46855219193081,52.9506623061892],[-1.47463054024943,52.9659280296716]]]}},{"type":"Feature","properties":{"name":"High Peak","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-2.00948185124709,53.2606524549883],[-2.03408638701547,53.367752831454],[-2.03377543264394,53.3755415697783],[-2.02732024115649,53.4324027446138],[-1.97271965323536,53.5024861303839],[-1.96338598926022,53.509827260669],[-1.90962083195551,53.5383909865468],[-1.87349262570415,53.5404296508189],[-1.82715106039428,53.5235079174762],[-1.80077865319122,53.5113785292377],[-1.65381782187416,53.3919108271105],[-1.67107003319176,53.3496023289808],[-1.67705468692922,53.3422586234803],[-1.83160471957297,53.1975876313042],[-1.84242378952444,53.1947621443657],[-1.90804412064958,53.1985399552552],[-1.98740775867029,53.2135858487146],[-2.00948185124709,53.2606524549883]]]}},{"type":"Feature","properties":{"name":"North East Derbyshire","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.59744150895426,53.2957567034224],[-1.59909327897252,53.3113181996876],[-1.58490201019108,53.3215879523676],[-1.40874684512064,53.3419650586082],[-1.31229934658408,53.3341648270949],[-1.2990721903367,53.3325325932771],[-1.28858902654107,53.3262280549039],[-1.28201141324174,53.3094625902199],[-1.31160607757698,53.1988676821824],[-1.31849967644008,53.1859227705539],[-1.3736501798879,53.1078564640497],[-1.39490671701032,53.104761600788],[-1.42373394709918,53.1033600954658],[-1.44820305471357,53.1036672961167],[-1.46000440108989,53.1083112185079],[-1.46536913791431,53.1108011258742],[-1.48684281887799,53.1229300567165],[-1.53962865723752,53.171395913947],[-1.56901995525591,53.223128724344],[-1.58493673817857,53.262697284829],[-1.59744150895426,53.2957567034224]]]}},{"type":"Feature","properties":{"name":"South Derbyshire","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.70415800106741,52.7320787781291],[-1.74955798221329,52.8667738076309],[-1.74895489743199,52.912493204919],[-1.64137767747026,52.9481623126299],[-1.62097638210961,52.9478176786079],[-1.60713693950362,52.9471722780436],[-1.37818002190088,52.9010771281956],[-1.35759534720202,52.8951443778443],[-1.33929774733004,52.8896882239091],[-1.32197223109901,52.8764031319293],[-1.31930687515051,52.8728694279118],[-1.32037894510166,52.8690926805089],[-1.41770445879577,52.8016155011951],[-1.46645195385337,52.7679723007631],[-1.56692999849833,52.7100704640987],[-1.60549448912841,52.6965388876791],[-1.62525102440732,52.6974227910037],[-1.655041567809,52.6987985798052],[-1.69695168059392,52.7271945309901],[-1.70415800106741,52.7320787781291]]]}},{"type":"Feature","properties":{"name":"East Devon","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-3.58260757911185,50.7415774708222],[-3.58548293313341,50.7438740625289],[-3.57201171340632,50.7885342573882],[-3.50740287977693,50.827281515584],[-3.23304438999973,50.8950495666446],[-3.08985067965539,50.9061144086185],[-3.05239884145015,50.9082765870699],[-2.8928678669234,50.8047942407741],[-2.88702921912511,50.7961776990975],[-2.88703944680701,50.7925228190839],[-2.94741210988176,50.7182864230944],[-2.98360945799245,50.7046641349808],[-3.35990634634838,50.6072685463684],[-3.38546274663833,50.6067211451285],[-3.40295509452092,50.6112442991552],[-3.41219018165224,50.6136335493826],[-3.41429014197776,50.6142717844298],[-3.42553699255929,50.6183209885117],[-3.58260757911185,50.7415774708222]]]}},{"type":"Feature","properties":{"name":"Exeter","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-3.56870238923052,50.7146139446649],[-3.5702182649407,50.7277969355494],[-3.56966868776298,50.7450098944172],[-3.52586971948747,50.7583044157688],[-3.51273862290517,50.7614550781156],[-3.46509668349048,50.7449489100195],[-3.46043287466675,50.7391977855547],[-3.45181916239384,50.6832925794967],[-3.45182805717153,50.6822269548652],[-3.454923123492,50.6771832952199],[-3.45728483496252,50.6755385029441],[-3.53909163467941,50.6929179703698],[-3.5627443800571,50.7069028654901],[-3.56870238923052,50.7146139446649]]]}},{"type":"Feature","properties":{"name":"Mid Devon","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-3.83629512107417,50.7321720945115],[-3.9259298618892,50.8696018193725],[-3.92024662601962,50.8977153834905],[-3.91483948798665,50.9026931514562],[-3.62881625867017,51.0057737132804],[-3.48426338561987,51.0338100860166],[-3.42681521868444,51.0314052436079],[-3.38048774397398,51.0184858606913],[-3.16394553245484,50.9459725335279],[-3.14242919713402,50.8892509190521],[-3.1761558582366,50.8770836799965],[-3.35995858214076,50.811877377366],[-3.58548293313341,50.7438740625289],[-3.73559299233382,50.7031844780434],[-3.81859718265907,50.7169643113309],[-3.83184362421144,50.7278415284673],[-3.83629512107417,50.7321720945115]]]}},{"type":"Feature","properties":{"name":"North Devon","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-4.19824615577891,51.0208527471966],[-4.2618052927948,51.1428352871834],[-4.2305319688265,51.187879778846],[-4.20156114901346,51.2003628134211],[-4.08811792350737,51.2174541684383],[-3.78542444693296,51.2463935834368],[-3.72054918666876,51.2330675605237],[-3.59447111942891,51.0551947239991],[-3.59576381436579,50.9451541824726],[-3.6126335468106,50.9265824665411],[-3.62403116800766,50.9218335220332],[-3.74921039680371,50.8785076671748],[-3.76080423421681,50.8768034162292],[-3.90059544541478,50.9043559270993],[-3.90415831582147,50.9050866369558],[-3.99595151179446,50.925569129738],[-4.19824615577891,51.0208527471966]]]}},{"type":"Feature","properties":{"name":"South Hams","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-4.11899825525202,50.3193411675659],[-4.1898603488086,50.428453067138],[-4.15738751832422,50.4618494584458],[-4.15205446106464,50.4639351790941],[-3.87560424472253,50.5425311242811],[-3.79946878519524,50.5363878418578],[-3.602364790284,50.4843789893396],[-3.58424985487516,50.4777231181161],[-3.50786501338165,50.3789596214644],[-3.51477236315841,50.3533681469523],[-3.51691278391078,50.3484451030371],[-3.51792808597184,50.3465052485506],[-3.64051497564688,50.221784755467],[-3.6564500878611,50.2177981657641],[-3.7082206496384,50.2054046324346],[-3.72118747748353,50.2028749449197],[-3.78998063859264,50.209929047579],[-3.82305652453488,50.2171443499881],[-4.05069598149135,50.2943359598543],[-4.10742747280064,50.3150696354728],[-4.11899825525202,50.3193411675659]]]}},{"type":"Feature","properties":{"name":"Teignbridge","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-3.87560424472253,50.5425311242811],[-3.88173385812005,50.5931244594797],[-3.87333642122661,50.6142591335234],[-3.81162278670267,50.6910248252563],[-3.80728454340143,50.6947445088697],[-3.70837514143344,50.748707514837],[-3.67172816671442,50.7639787092911],[-3.60886785661518,50.7542172678147],[-3.56966868776298,50.7450098944172],[-3.4698515445237,50.6822328629874],[-3.42468149664484,50.6110261010968],[-3.50916098191203,50.5166186181361],[-3.52995146902909,50.5045871030079],[-3.54379820922934,50.497347490162],[-3.5647735727694,50.4869669717565],[-3.58424985487516,50.4777231181161],[-3.61384326168867,50.4692999091142],[-3.64501452301595,50.4611574000424],[-3.77667478996068,50.4639489553148],[-3.8712845194344,50.534091251369],[-3.87560424472253,50.5425311242811]]]}},{"type":"Feature","properties":{"name":"Torridge","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-4.49350241428467,50.792912370259],[-4.68057246853434,51.1724248313757],[-4.67975699531534,51.1941554813441],[-4.6789685588005,51.1969445159137],[-4.67734739354856,51.2024646120538],[-4.67690796465484,51.2023742083438],[-4.21692946830752,51.0650540005674],[-4.03429961575779,51.0076211320297],[-3.9587519953408,50.9816350214288],[-3.95259251219451,50.9759554283778],[-3.90441728402972,50.9273977366813],[-3.90120144994703,50.9238753278695],[-3.88430340550393,50.8481715730301],[-3.88686711829564,50.8426675094528],[-3.90567792889315,50.8295475910705],[-4.21944326556313,50.6724852857105],[-4.33522641876651,50.6465408609257],[-4.49350241428467,50.792912370259]]]}},{"type":"Feature","properties":{"name":"West Devon","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-4.30806256209204,50.5789436685325],[-4.33522641876651,50.6465408609257],[-4.16406212322064,50.8308334907222],[-4.08996730287358,50.8673590549647],[-4.06867993731403,50.8746132849403],[-3.99418043182706,50.8687970758059],[-3.83951333953819,50.8188264190604],[-3.73559299233382,50.7031844780434],[-3.73229040223304,50.697000199068],[-3.88371539045811,50.4799995804139],[-3.89898307504846,50.4727755759622],[-4.18509978859368,50.4342703510055],[-4.19075896891368,50.4353242104805],[-4.23641170400937,50.4594062617112],[-4.30806256209204,50.5789436685325]]]}},{"type":"Feature","properties":{"name":"Eastbourne","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[0.209927966912841,50.7384066331821],[0.209381082631183,50.7513340802601],[0.216419303137371,50.7747197062314],[0.227722839634515,50.8008717407788],[0.271480978253341,50.8100571111971],[0.290447570810782,50.8130331385449],[0.300074343066347,50.8128325314096],[0.332581969326942,50.8041317409256],[0.339189599752383,50.7991476836311],[0.329786641485047,50.7863057283815],[0.258222661568121,50.737650970381],[0.240908388187749,50.7349441845873],[0.209927966912841,50.7384066331821]]]}},{"type":"Feature","properties":{"name":"Hastings","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[0.589436013141253,50.8542160903051],[0.503065731045523,50.8431212864815],[0.520026491998375,50.8773862582302],[0.529231024258408,50.89234151055],[0.53695003209693,50.8948246030523],[0.556313265400924,50.8940827011236],[0.617664512078216,50.8846987926598],[0.65587935746781,50.872718940382],[0.658637308753122,50.8699505159868],[0.589436013141253,50.8542160903051]]]}},{"type":"Feature","properties":{"name":"Lewes","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.037993638791248,50.7994588496822],[-0.135283671366533,50.8781049946469],[-0.135010046704454,50.8866345160191],[-0.128386744919821,50.9189348671043],[-0.115214890805893,50.9760771371799],[-0.083820398434261,50.9907186941884],[-0.016409780703526,51.0025138340307],[-0.009311678453848,51.0019147019688],[0.052713189757252,50.9686939496814],[0.121913595707189,50.9152809833097],[0.154455677713576,50.7716179162842],[0.150127752257201,50.7587497240052],[0.137837630910892,50.7557617633455],[0.123948852211865,50.7581148441573],[-0.000073238207494,50.7886889113845],[-0.012607577467851,50.7920554078204],[-0.037993638791248,50.7994588496822]]]}},{"type":"Feature","properties":{"name":"Rother","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[0.324024938278467,50.9629210990255],[0.321585740673586,50.9966843436249],[0.328658782105634,51.0128817938823],[0.35670935584172,51.0578667761616],[0.361353436327948,51.0652765595889],[0.396473803046943,51.0830961518079],[0.741094136513642,51.0006438035686],[0.778956704972181,50.9894920251371],[0.855967970123694,50.9531286066064],[0.867891381774926,50.933262295643],[0.854695883922141,50.9237306086597],[0.658637308753122,50.8699505159868],[0.476173830447649,50.8371350760467],[0.37819128075866,50.820460413893],[0.372534162910064,50.8316410781647],[0.324024938278467,50.9629210990255]]]}},{"type":"Feature","properties":{"name":"Wealden","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.020096386881318,51.0034676294266],[-0.036196544280962,51.0934572014806],[0.027361224766083,51.1398505070994],[0.050016528693635,51.1426500167773],[0.125932669824761,51.1469462096038],[0.136015911629745,51.1470143323685],[0.32526557205646,51.122880303244],[0.326226680097701,51.1224385086223],[0.358960077769589,51.104478561555],[0.396473803046943,51.0830961518079],[0.449085367631327,50.8789513128557],[0.450159515881868,50.8737625473221],[0.37819128075866,50.820460413893],[0.339189599752383,50.7991476836311],[0.215488908716537,50.7397211401411],[0.209927966912841,50.7384066331821],[0.150127752257201,50.7587497240052],[0.111592661264318,50.8019778973692],[0.097933805959028,50.8203197555347],[-0.020096386881318,51.0034676294266]]]}},{"type":"Feature","properties":{"name":"Basildon","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[0.38260509348446,51.5658238168464],[0.375126917595192,51.6151727251386],[0.386077752302564,51.6343464637854],[0.394916051823333,51.6444409921176],[0.402327882525101,51.650994906834],[0.435384417420211,51.648962463221],[0.562475298241574,51.6178526489668],[0.568425989209865,51.5865779241842],[0.542868599766776,51.5349707050427],[0.535216728093917,51.5311701032452],[0.516996218443731,51.5301008176213],[0.430400224838732,51.5460051134765],[0.393532476693128,51.5576549446081],[0.38260509348446,51.5658238168464]]]}},{"type":"Feature","properties":{"name":"Braintree","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[0.42139275161911,51.9263042112074],[0.379612827815692,52.0495627147372],[0.390420040825059,52.0602880948417],[0.404638263575799,52.0655023804364],[0.466604423864168,52.0783869011686],[0.634573544941002,52.0862829891247],[0.683116594446314,52.0870401677281],[0.702080945531709,52.0794950441421],[0.712118249483127,52.0722424688301],[0.774633327593334,51.9825916210538],[0.781470157197563,51.9665127651082],[0.750343950072329,51.853601997155],[0.741456513762137,51.841450467186],[0.738187357916199,51.8377996545701],[0.647503769237281,51.7615109438959],[0.63753781531565,51.7576484279314],[0.598702028580882,51.7504160873722],[0.584527071056825,51.7511514319796],[0.572098394884235,51.7519008758124],[0.523790639709097,51.8034284369172],[0.42139275161911,51.9263042112074]]]}},{"type":"Feature","properties":{"name":"Brentwood","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[0.200311572560423,51.6249357585131],[0.175702646497488,51.6557918883317],[0.257512946933985,51.6968426560436],[0.26573951076774,51.6997068531549],[0.333999479193368,51.7170130529691],[0.376697620589116,51.6985033830842],[0.392025116648249,51.6914570518221],[0.401497817732759,51.6824214070813],[0.412560206765404,51.6708961753466],[0.38260509348446,51.5658238168464],[0.2901959815454,51.5645097170109],[0.200311572560423,51.6249357585131]]]}},{"type":"Feature","properties":{"name":"Castle Point","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[0.526703657041381,51.5192141561681],[0.517995305886731,51.5298708498457],[0.545144599738847,51.5747603518343],[0.565918632574499,51.5882452416633],[0.632077284564213,51.5705294757645],[0.635575650069754,51.560649610604],[0.636857597087395,51.5219536933026],[0.62505626103033,51.516369053691],[0.573330417577274,51.5078289934012],[0.553567185866318,51.5099355320107],[0.526703657041381,51.5192141561681]]]}},{"type":"Feature","properties":{"name":"Chelmsford","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[0.333999479193368,51.7170130529691],[0.33219814337298,51.7796294025914],[0.334953653867534,51.785710566365],[0.337699021390906,51.7902611800933],[0.340581328387737,51.7944781643174],[0.412995862086959,51.8563226384253],[0.418118639640596,51.857257100539],[0.519262342777842,51.8504492140291],[0.524942768826059,51.8492544780065],[0.593365583908674,51.7554489607127],[0.611153169522213,51.7227872547877],[0.646699816654623,51.636632337879],[0.642610432952507,51.6326468649193],[0.562475298241574,51.6178526489668],[0.544432509635555,51.6179052300533],[0.520822557919768,51.6187913770902],[0.463074784413059,51.623617820784],[0.446828428034759,51.6266690367407],[0.39699585789825,51.6537552147949],[0.344969014679105,51.6955195019509],[0.333999479193368,51.7170130529691]]]}},{"type":"Feature","properties":{"name":"Colchester","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[0.699959361649955,51.8997257881917],[0.699598040127226,51.9034680807738],[0.749708181759409,51.9547887849337],[0.768509305241632,51.9619078373344],[0.781470157197563,51.9665127651082],[0.785122863439318,51.9674947951271],[0.925168792575386,51.9761942345246],[0.961905655216413,51.9769303009447],[1.00126403205811,51.9634048309054],[1.02471198883193,51.9549023615469],[1.00584611507955,51.7994568835307],[0.996613666695185,51.7912454923754],[0.945791283086092,51.7747258187188],[0.902246805353056,51.7743722030166],[0.893427669898868,51.7744385634263],[0.840239396588341,51.7792555704178],[0.718171006764377,51.7973630075808],[0.713329896129475,51.8084596374464],[0.708908943887238,51.8189042153349],[0.699959361649955,51.8997257881917]]]}},{"type":"Feature","properties":{"name":"Epping Forest","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.0122587363441,51.6462340740994],[-0.019730428542926,51.703274299588],[-0.012980103073153,51.7427512757192],[0.014029057812047,51.7643799998415],[0.026799442907943,51.7741799003898],[0.166251617449305,51.8221540085985],[0.184965557602791,51.820116213326],[0.188588563401831,51.8193024691065],[0.297460671509899,51.7899664276885],[0.346700459081854,51.76759607116],[0.347451316579649,51.7304397971731],[0.302124818855336,51.6809654475005],[0.200311572560423,51.6249357585131],[0.088921970411143,51.6048535716048],[0.072823688436591,51.6046896927684],[0.062545617152457,51.6070771557351],[0.040786865122187,51.6157291361523],[-0.0122587363441,51.6462340740994]]]}},{"type":"Feature","properties":{"name":"Harlow","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[0.057663414058915,51.7629064446542],[0.054068810963473,51.7755355006962],[0.057663539389391,51.7796739282513],[0.063683682157844,51.7839531642186],[0.132452338711685,51.795852539268],[0.146141158428203,51.796243762479],[0.153569346772302,51.7938003392788],[0.168018960489515,51.7827839811818],[0.148137358817572,51.7590712235756],[0.126824733733981,51.7491253643864],[0.10007586832243,51.7393422452741],[0.084292953010801,51.7346885364434],[0.063952043856378,51.7514529753878],[0.057663414058915,51.7629064446542]]]}},{"type":"Feature","properties":{"name":"Maldon","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[0.608836706871032,51.681947117123],[0.589498158966398,51.7301727165479],[0.593365583908674,51.7554489607127],[0.661024538344924,51.8062351698724],[0.697269448750306,51.8291268110924],[0.77908970393259,51.8115632019464],[0.877233282761881,51.7793539045316],[0.942750277395386,51.7398036435768],[0.950572298872485,51.7308319634607],[0.950691527860078,51.7228800402258],[0.950057791342381,51.683496409888],[0.937128798444721,51.6362237031117],[0.926546958770398,51.6289482364597],[0.925739943807412,51.6287112899785],[0.901920982885591,51.622734826311],[0.859581551414301,51.6212280886912],[0.82287928136844,51.6231131551124],[0.629607206188548,51.6393368381414],[0.628789391085789,51.6394522045769],[0.608836706871032,51.681947117123]]]}},{"type":"Feature","properties":{"name":"Rochford","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[0.565918632574499,51.5882452416633],[0.54978457842655,51.5981808741956],[0.551545394050038,51.6088482585015],[0.566270075926275,51.6225570192488],[0.587905912220946,51.6308507264676],[0.6515932186746,51.6359085588384],[0.764094701830483,51.636878167427],[0.957516615699434,51.620532308421],[0.955316883466157,51.6131647784353],[0.929866927769687,51.592446367997],[0.886572783590085,51.5695890793865],[0.866370064397508,51.5589408418077],[0.848619668975376,51.5513920080604],[0.821153104826494,51.540605168187],[0.81086821217567,51.5401320959897],[0.788986409546341,51.5424473718173],[0.632077284564213,51.5705294757645],[0.593320621753276,51.5777320000948],[0.565918632574499,51.5882452416633]]]}},{"type":"Feature","properties":{"name":"Tendring","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[0.9665818665051,51.8516580485688],[0.931511168203666,51.913229647883],[0.932241990559598,51.9182137494164],[0.935284123362911,51.9225061513911],[0.949227673919129,51.9350185355419],[1.02471198883193,51.9549023615469],[1.04833136105142,51.9593203512011],[1.29169200184392,51.9492867145416],[1.29655838963736,51.9356054640597],[1.2922493572689,51.8703901422256],[1.28722667880968,51.859263218785],[1.23876185276414,51.8212462538985],[1.23188653709781,51.8171694455695],[1.19603715873188,51.8011596141041],[1.12441905406377,51.775450328102],[1.09455553757662,51.7719409653847],[1.04268242610963,51.769909603606],[1.03300528671158,51.7783093830797],[0.993651915824556,51.8164150587294],[0.9665818665051,51.8516580485688]]]}},{"type":"Feature","properties":{"name":"Uttlesford","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[0.069061011450733,51.9840425617869],[0.068127418901375,52.0057887391631],[0.105736213487718,52.0602611071123],[0.203459400262098,52.0926741553906],[0.276228961971443,52.0926383035939],[0.286011765577546,52.0904076513024],[0.431389737333571,52.0389327413527],[0.513503382708375,51.864397503173],[0.519262342777842,51.8504492140291],[0.346700459081854,51.76759607116],[0.31296581704781,51.7688421813626],[0.237528008424624,51.7798267220793],[0.196660647628044,51.7957906696513],[0.16120891213553,51.8259473012118],[0.124761446710298,51.8845855310094],[0.069061011450733,51.9840425617869]]]}},{"type":"Feature","properties":{"name":"Cheltenham","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-2.12772576648835,51.8797197215971],[-2.14241819294109,51.8845085396829],[-2.14143194829829,51.891824400804],[-2.13688955625606,51.8996243991679],[-2.13145463610392,51.9084397030292],[-2.12449874822557,51.9194846980802],[-2.10656542472398,51.9388815799919],[-2.0672178266349,51.9296168559482],[-2.03994348671729,51.9224105395833],[-2.01021519154428,51.9029244535681],[-2.01561187128328,51.8818075130591],[-2.02525152927114,51.8642840484746],[-2.04725403029553,51.8583412690663],[-2.12772576648835,51.8797197215971]]]}},{"type":"Feature","properties":{"name":"Cotswold","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-2.29408573554953,51.588573537056],[-2.32359701982661,51.6328206216455],[-2.31536116719501,51.645844657286],[-2.28716408754539,51.680635628314],[-1.87200505095905,52.0719168660599],[-1.86904499487076,52.0738565368096],[-1.78941728675708,52.1063748337746],[-1.76764874769465,52.1125925601067],[-1.72856052811281,52.1001203055535],[-1.62441776103734,52.0389813521362],[-1.61771611527823,52.0319190391394],[-1.61518893058729,51.9376816298851],[-1.64825374342062,51.6840870667632],[-1.72755368076921,51.6672098345907],[-1.7537928604015,51.6622153587917],[-2.15253791543564,51.5903416239803],[-2.27255905245869,51.5775903274116],[-2.28274577923905,51.5785165620246],[-2.29408573554953,51.588573537056]]]}},{"type":"Feature","properties":{"name":"Forest of Dean","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-2.6849965654919,51.6612276178205],[-2.68754079653479,51.730426259148],[-2.67830266600361,51.8033185575836],[-2.66087144177876,51.822753864529],[-2.49125236025256,52.0104908372811],[-2.47893230092191,52.02253041104],[-2.46620453668243,52.0237234771731],[-2.35137852244174,52.0213590290394],[-2.27055558557873,51.9689390809737],[-2.26754287941185,51.9531930125884],[-2.28995563002817,51.8943406749017],[-2.35004237386291,51.7991236151074],[-2.3514883885215,51.7977417955933],[-2.65124432969432,51.6097539870755],[-2.65613479309018,51.6102104944286],[-2.680059684461,51.6485818184246],[-2.6849965654919,51.6612276178205]]]}},{"type":"Feature","properties":{"name":"Gloucester","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-2.28280745018213,51.8145454445581],[-2.30109912366483,51.8267648895607],[-2.28827888805396,51.8594088832091],[-2.26787042466748,51.8751799418079],[-2.2470432417617,51.8810570995634],[-2.23795664148616,51.8831096466247],[-2.21159353594732,51.885052335924],[-2.19912098394458,51.8806242784201],[-2.17725789160801,51.8558772092473],[-2.18768304421766,51.8450286870212],[-2.20694490452644,51.8314124241686],[-2.22321185341339,51.8212516064675],[-2.26285524007275,51.80758040165],[-2.28280745018213,51.8145454445581]]]}},{"type":"Feature","properties":{"name":"Stroud","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-2.49067532485481,51.6448339839705],[-2.53239246109301,51.6780584361753],[-2.45180880117732,51.7964006680733],[-2.45133963841297,51.7969876061829],[-2.43486468614545,51.8099542666082],[-2.42459797804573,51.8150493765168],[-2.35177492989174,51.8462249687235],[-2.33304483579356,51.8504631424275],[-2.18768304421766,51.8450286870212],[-2.178654144096,51.8418277163705],[-2.13425447500207,51.8199190407349],[-2.08380980201924,51.7889499019205],[-2.07363915573496,51.7684468504249],[-2.06862413773313,51.7384612953311],[-2.08157125376515,51.7296450778401],[-2.12990623443133,51.6972757332948],[-2.291637286721,51.5936959211034],[-2.30009795021309,51.591481491242],[-2.31657005647675,51.5898340409186],[-2.39309999157226,51.5970755244765],[-2.49067532485481,51.6448339839705]]]}},{"type":"Feature","properties":{"name":"Tewkesbury","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-2.35177492989174,51.8462249687235],[-2.35274776228366,51.8494058215938],[-2.28785524463682,51.9455533239282],[-2.28330418613353,51.9518138083884],[-2.27055558557873,51.9689390809737],[-2.18067935412919,52.0417281238781],[-2.17138093353095,52.0475735011324],[-2.15813398340215,52.050205656887],[-1.91344602070409,52.0444612406154],[-1.80687455697615,52.0026731221606],[-1.80167920800798,51.9968951442697],[-1.85360869348314,51.8934302357793],[-1.86204978171217,51.8897216769803],[-2.1211770676615,51.8195602040855],[-2.13425447500207,51.8199190407349],[-2.29822691186503,51.832602017996],[-2.35177492989174,51.8462249687235]]]}},{"type":"Feature","properties":{"name":"Basingstoke and Deane","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.42763319820475,51.2270289613888],[-1.46015235805229,51.2558905714881],[-1.44410966916138,51.3549284015044],[-1.41563002994336,51.371883464169],[-1.08661908661563,51.3839155779629],[-0.986123750530059,51.3628482885656],[-0.981001363948966,51.3372294678636],[-0.974796238369647,51.2385193913182],[-0.975474728886727,51.2259153937722],[-0.985882556048391,51.1904355685627],[-1.15101146139248,51.1361766095973],[-1.17428883824829,51.133540146428],[-1.34093898175545,51.1845790347047],[-1.42109103400794,51.2237362133893],[-1.42763319820475,51.2270289613888]]]}},{"type":"Feature","properties":{"name":"East Hampshire","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.04845560132509,50.9025163197245],[-1.13178977908392,51.143580784315],[-1.10492064240082,51.1631489263041],[-1.07110387660569,51.1877559186443],[-1.06169117737115,51.190517899575],[-0.904307630884531,51.2099087520961],[-0.869051826500533,51.2127367564152],[-0.848912169248545,51.2107157287771],[-0.745525568291982,51.1121884663796],[-0.744687419797277,51.1064108857188],[-0.753480635682262,51.0864557098491],[-0.938608222849825,50.8737210622452],[-0.953545883500222,50.8681931486679],[-0.963385135067953,50.8672539937847],[-1.04845560132509,50.9025163197245]]]}},{"type":"Feature","properties":{"name":"Eastleigh","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.3964657083957,50.9685077275087],[-1.39964301375757,50.9946739433761],[-1.39297466014347,51.0043613192758],[-1.35713762265248,50.9984360693464],[-1.2665543014501,50.9801565997659],[-1.25815427373225,50.9783418927467],[-1.26102997247959,50.9028329781444],[-1.26282741094703,50.8997822513147],[-1.31021533093694,50.8506652537236],[-1.31264952843521,50.8488674999159],[-1.33190855064143,50.8571056600931],[-1.36400855122035,50.8792776633055],[-1.3964657083957,50.9685077275087]]]}},{"type":"Feature","properties":{"name":"Fareham","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.30800554206901,50.8452503016884],[-1.30970281120682,50.868461832222],[-1.30967770112268,50.8689983280402],[-1.30204106567659,50.8836423264744],[-1.30009648579789,50.8854381759574],[-1.28981303548167,50.8937948641539],[-1.28711886167591,50.8953631020187],[-1.26524777971993,50.8979082606283],[-1.167217639143,50.8894331626648],[-1.15003467270108,50.8794042852741],[-1.11584760238594,50.8582717235923],[-1.11296718189671,50.836125935543],[-1.18699928911392,50.8113965880751],[-1.21439426034217,50.8093740160444],[-1.24617954297963,50.8172868091186],[-1.30640856372924,50.8406796708424],[-1.30800554206901,50.8452503016884]]]}},{"type":"Feature","properties":{"name":"Gosport","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.19296541892517,50.7917940330019],[-1.21439426034217,50.8093740160444],[-1.21414662807831,50.8107921665783],[-1.18166387091428,50.8366988210317],[-1.17613570952659,50.8392636769208],[-1.15851898559863,50.8386986802974],[-1.15167107623527,50.8341516133005],[-1.1238152813139,50.8061718824557],[-1.11309827756289,50.7913443978271],[-1.11224743658593,50.7892725674025],[-1.13811726437178,50.7738824896904],[-1.18097330096341,50.7878599752989],[-1.19296541892517,50.7917940330019]]]}},{"type":"Feature","properties":{"name":"Hart","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.985882556048391,51.1904355685627],[-1.00160337001514,51.2959152718747],[-1.0012171330491,51.3002318568986],[-0.994603752323543,51.342311481569],[-0.986740059567131,51.3598556248242],[-0.935989361556512,51.3663170663636],[-0.917747809949221,51.3645565791178],[-0.828124465613097,51.3528639187135],[-0.784648137905585,51.3382306123356],[-0.775466206963731,51.3319589032434],[-0.767093450444421,51.3262248898307],[-0.76290312001552,51.3187305296545],[-0.804749572959298,51.2450647475977],[-0.840109612853003,51.2152006279561],[-0.848912169248545,51.2107157287771],[-0.973820434641149,51.1860076626485],[-0.985882556048391,51.1904355685627]]]}},{"type":"Feature","properties":{"name":"Havant","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.05407488835946,50.8565376061826],[-1.05461663667125,50.8674487945788],[-1.04757177187959,50.8905503113632],[-1.034115914449,50.9041626454462],[-1.02452762730019,50.9094633722558],[-1.01873294358613,50.9090551116673],[-0.938608222849825,50.8737210622452],[-0.926450186989275,50.8640917207277],[-0.936469449377521,50.7781541106154],[-0.9464554455599,50.7771267860954],[-1.02018584338791,50.7856357780189],[-1.02533099192435,50.7953983382423],[-1.05407488835946,50.8565376061826]]]}},{"type":"Feature","properties":{"name":"New Forest","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.95546558071481,50.9782663327052],[-1.95682488695197,50.9898317323357],[-1.92787590068259,50.9976972353567],[-1.87448162937032,51.0063305730385],[-1.83581261899271,51.009422262898],[-1.54453154189991,50.9692813361334],[-1.50996921166519,50.9501077952993],[-1.42184978337485,50.8950260979151],[-1.34214108608634,50.8443376473194],[-1.3071982719865,50.8191105372358],[-1.30858369298341,50.8148454687624],[-1.34201257536666,50.7859985306117],[-1.55126836019426,50.7060870176651],[-1.55456305781769,50.7062439396856],[-1.74416871755885,50.7474553887605],[-1.78342488463905,50.7646492694894],[-1.78827683003831,50.7668695239097],[-1.95546558071481,50.9782663327052]]]}},{"type":"Feature","properties":{"name":"Rushmoor","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.804749572959298,51.2450647475977],[-0.80752379242497,51.2752915839424],[-0.802438108861446,51.2930234699948],[-0.796568634265413,51.3046669361846],[-0.793037683979585,51.3080764268687],[-0.778650808811783,51.3174860021237],[-0.767806087831371,51.3200843382103],[-0.76290312001552,51.3187305296545],[-0.746389810146413,51.3106192390176],[-0.745653331661332,51.3100329402967],[-0.73940050358514,51.2989393619944],[-0.731093833410657,51.2803620913767],[-0.730489797425043,51.2548997702577],[-0.735786072535465,51.2376801646976],[-0.745540379663864,51.2304563901334],[-0.801740042684925,51.2390387633544],[-0.804749572959298,51.2450647475977]]]}},{"type":"Feature","properties":{"name":"Test Valley","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.61975086537986,50.958566922566],[-1.69279238690395,51.2030498047024],[-1.68978806224739,51.2147685872006],[-1.52750728243899,51.3384659578415],[-1.51628154811362,51.3393553057763],[-1.42969282350092,51.3365302852492],[-1.42133598646957,51.3355524609898],[-1.30882299401137,51.1947389155389],[-1.37403411160523,50.9539758078668],[-1.37989189534768,50.9475180703815],[-1.47732819842619,50.9284618864517],[-1.48281545309061,50.9282804274256],[-1.60774553851045,50.9549616472802],[-1.61975086537986,50.958566922566]]]}},{"type":"Feature","properties":{"name":"Winchester","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.44479051771667,51.0275308063449],[-1.45650350398392,51.041122258196],[-1.43627217938998,51.1120424149724],[-1.43141669150899,51.116785736871],[-1.30882299401137,51.1947389155389],[-1.2989391328889,51.1970342645636],[-1.28741899178105,51.1962355064355],[-1.22785304393799,51.1904858145984],[-1.19030735731838,51.1837651940517],[-1.09504285543171,51.1403461368238],[-1.07254497318784,51.1074677019631],[-1.05377454209214,51.0472316700596],[-1.03568956879268,50.9515169068238],[-1.034115914449,50.9041626454462],[-1.0352436652073,50.8808964819526],[-1.05434574467618,50.8550865884698],[-1.22965030592663,50.8606050019507],[-1.23660930478238,50.8637564327874],[-1.25349737742314,50.8723858082888],[-1.44479051771667,51.0275308063449]]]}},{"type":"Feature","properties":{"name":"Broxbourne","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.10577913835527,51.6918756459932],[-0.114083215832648,51.7208072582848],[-0.098653730173009,51.73594646627],[-0.045618710060043,51.7702309548122],[-0.018133357914099,51.7805186547753],[0.005574140684848,51.7800689421067],[0.014029057812047,51.7643799998415],[0.012992315920007,51.757465452581],[-0.011918676012088,51.6808778146802],[-0.062016734252041,51.6830080596294],[-0.10577913835527,51.6918756459932]]]}},{"type":"Feature","properties":{"name":"Dacorum","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.723653476773253,51.8177730671437],[-0.745678020612612,51.8420936389668],[-0.720268145545602,51.8561471011597],[-0.710585534394999,51.8577786476672],[-0.699777730404245,51.8580122332279],[-0.470419996730907,51.8557101697987],[-0.421500810100557,51.8502052260499],[-0.40485880669367,51.8406074632762],[-0.409362474313322,51.7973059334447],[-0.422080280259691,51.7408368511604],[-0.440261353822466,51.7010139280435],[-0.5242727897625,51.6821126557481],[-0.538889081532902,51.679834158485],[-0.548696117291794,51.6826712819357],[-0.673469490089942,51.7684717392875],[-0.723653476773253,51.8177730671437]]]}},{"type":"Feature","properties":{"name":"Hertsmere","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.379960949170485,51.6396170824275],[-0.386575710242009,51.6568133674763],[-0.384092885639132,51.6692281021977],[-0.378286861988571,51.688093327548],[-0.375358258839184,51.692511940921],[-0.285298085164015,51.7316559735262],[-0.26611001324716,51.7381452556318],[-0.163118088645696,51.6998576292954],[-0.163503164635797,51.6859169983437],[-0.172473161628764,51.6730913561043],[-0.191066699325158,51.6638967062225],[-0.257354301474541,51.6418396413203],[-0.273713530385737,51.6386739655432],[-0.362621240927378,51.6235048820097],[-0.379960949170485,51.6396170824275]]]}},{"type":"Feature","properties":{"name":"North Hertfordshire","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.405607109518841,51.9324543523464],[-0.405823940976724,51.9434310013028],[-0.399439484751453,51.9676713996724],[-0.39026599459086,51.9777284725129],[-0.157331873594096,52.0805235103049],[-0.024412376117604,52.0633159918567],[-0.012558732322164,52.0616420510436],[0.039849539461947,52.0532246291455],[0.074321848151726,52.0008609032232],[0.069061011450733,51.9840425617869],[0.066907400422718,51.9798073012656],[-0.172785294956129,51.8565877880352],[-0.199163096150602,51.8439567888802],[-0.224910367919265,51.8332340598732],[-0.319397911474891,51.8366549052531],[-0.339485896124555,51.8496055501941],[-0.352871725373492,51.8635431685598],[-0.405607109518841,51.9324543523464]]]}},{"type":"Feature","properties":{"name":"Three Rivers","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.530059300191249,51.6171511231726],[-0.539260817248429,51.6380393912766],[-0.536891506831177,51.6606244728575],[-0.523014783869473,51.6950806177685],[-0.515495300031625,51.7065776710969],[-0.422080280259691,51.7408368511604],[-0.380774775272939,51.7069891506521],[-0.375558050923482,51.6929121239927],[-0.362621240927378,51.6235048820097],[-0.368174480274324,51.6206525092424],[-0.384572188415174,51.6161681211166],[-0.385871918947026,51.6158201082801],[-0.403994456633449,51.613184059045],[-0.500595886737316,51.5996898995638],[-0.517836757296159,51.6002495506482],[-0.522501789242093,51.6050615818205],[-0.530059300191249,51.6171511231726]]]}},{"type":"Feature","properties":{"name":"Watford","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.436215059464679,51.6599092549164],[-0.439543240235569,51.6727502499107],[-0.430029556226629,51.6834207915857],[-0.402412529923532,51.7019427464431],[-0.384414066981247,51.6959971793105],[-0.375558050923482,51.6929121239927],[-0.369490491920954,51.6842920157023],[-0.368766140427457,51.6783265660622],[-0.371634075914503,51.6434342348192],[-0.377373414933952,51.6377333812195],[-0.394292170837887,51.6377207079081],[-0.428824906950754,51.6413191129362],[-0.436215059464679,51.6599092549164]]]}},{"type":"Feature","properties":{"name":"Ashford","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[0.59333266124245,51.0314492779484],[0.590368962892355,51.1113398166163],[0.603648722293245,51.1316737035397],[0.683746386321078,51.1911260593224],[0.716826615265166,51.2111414189536],[0.782455390996816,51.2393650292707],[0.955032298732269,51.2702458933181],[0.973278769991517,51.2685947011505],[0.998238659889608,51.2512282136957],[1.029240945946,51.1325382915445],[1.02387469649402,51.1250793092369],[0.968928824862042,51.0629259367103],[0.778956704972181,50.9894920251371],[0.706770603419155,50.9936018231459],[0.605390823945922,51.0120699758106],[0.597255325064687,51.0208173746956],[0.59333266124245,51.0314492779484]]]}},{"type":"Feature","properties":{"name":"Canterbury","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[0.98970289840754,51.1907820089923],[0.950298160167666,51.3457644313554],[1.02853666621903,51.3649625570845],[1.03318205477243,51.365594638121],[1.06939832238278,51.3693441170465],[1.1021519589929,51.3724648279207],[1.19934081579015,51.3798553618961],[1.2241829236227,51.3793359484069],[1.22484215135573,51.3793080459328],[1.25009821652181,51.3293364427624],[1.22219426170819,51.2073953232439],[1.19821092290483,51.1866338499669],[1.19213770583708,51.1838367500081],[1.14763772317109,51.1771783029243],[1.00396996259874,51.1800529518788],[0.98970289840754,51.1907820089923]]]}},{"type":"Feature","properties":{"name":"Dartford","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[0.152932433172376,51.4087084822957],[0.149159930322975,51.4124352235141],[0.151158883829316,51.4204304354257],[0.153763537931545,51.4275232357254],[0.155875040956964,51.430876583241],[0.2115688339007,51.4750926732563],[0.219202439132856,51.4796095648107],[0.309946490854417,51.4669594215312],[0.315278529325663,51.464994380634],[0.326363732121414,51.4426525407617],[0.344241357872647,51.3940020323395],[0.336678980323618,51.3865438878369],[0.206950067453081,51.3972194569835],[0.152932433172376,51.4087084822957]]]}},{"type":"Feature","properties":{"name":"Dover","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[1.17149762932656,51.124641372344],[1.14373077445535,51.1657763288577],[1.14763772317109,51.1771783029243],[1.15362978896215,51.1909113261569],[1.20000073158168,51.2915732078573],[1.20508439658685,51.3008095157442],[1.22021621919129,51.3230137504838],[1.23229691312367,51.3323242697512],[1.36772008684244,51.3131348740802],[1.40067088147031,51.2426526051442],[1.40261935706214,51.2383257468637],[1.40471030569606,51.2214914995249],[1.40495953098473,51.2154185065707],[1.40544355077161,51.2007308884852],[1.40566834673594,51.189401168547],[1.40106443053318,51.1651813893069],[1.37957862132471,51.1421788484779],[1.34335637478665,51.1220590103368],[1.3248199348157,51.1120061495873],[1.26398872843176,51.1022617440168],[1.22107984810094,51.0980906290469],[1.20437170139432,51.0971917698531],[1.19493872028345,51.1030297836429],[1.17304780902742,51.1225246974644],[1.17149762932656,51.124641372344]]]}},{"type":"Feature","properties":{"name":"Gravesham","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[0.341081232907413,51.3250060447047],[0.310685334757213,51.4530449153959],[0.315278529325663,51.464994380634],[0.455930347959668,51.4608858701028],[0.457186785872657,51.4605205844702],[0.487960076101346,51.4432845747706],[0.490973063165021,51.4386769517868],[0.491196227907712,51.4247752266843],[0.489235421459888,51.415325902756],[0.381155083438985,51.3302146625822],[0.341081232907413,51.3250060447047]]]}},{"type":"Feature","properties":{"name":"Maidstone","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[0.383544889964714,51.1954602798885],[0.378659891299595,51.23498552645],[0.525641085381921,51.3347171670639],[0.532930097953265,51.3371644749705],[0.563457198962717,51.3387431250211],[0.639747869900355,51.336764588312],[0.656722350904738,51.3316194199466],[0.764540126111776,51.2767496818618],[0.790547129696035,51.2617805286433],[0.793379202140196,51.2572814761287],[0.796469114922585,51.2462948019469],[0.792657653385252,51.2380732748901],[0.647594695267855,51.1445689020422],[0.639475075986475,51.1412933659131],[0.559065475686518,51.1339445383835],[0.541912412316699,51.1344311450551],[0.52429653109556,51.1354793555327],[0.514705799599464,51.1360862435835],[0.468926767710832,51.1432604988958],[0.383544889964714,51.1954602798885]]]}},{"type":"Feature","properties":{"name":"Sevenoaks","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[0.050016528693635,51.1426500167773],[0.033598951563527,51.2143379727583],[0.042398883648016,51.2926788490678],[0.148989832047652,51.4086234299371],[0.179457188309487,51.4156252177066],[0.199752283180946,51.4179762611725],[0.27760700312489,51.4069241290377],[0.336678980323618,51.3865438878369],[0.344726181966788,51.337532886058],[0.341604421171004,51.3292161562799],[0.250557498471028,51.1982245266572],[0.21497046172035,51.1538179411061],[0.193482260917007,51.139420614913],[0.180372330923748,51.1317901553582],[0.164473868195735,51.1327752518336],[0.078187899340729,51.1399459198045],[0.050016528693635,51.1426500167773]]]}},{"type":"Feature","properties":{"name":"Folkestone and Hythe","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[0.777134928696756,50.9754283500105],[0.777026622994548,50.9848553722537],[0.778956704972181,50.9894920251371],[0.830872141257871,51.0493714519338],[1.00396996259874,51.1800529518788],[1.05825754996227,51.2050041949687],[1.11479543458027,51.1969538872877],[1.1181459326375,51.1963276084636],[1.2076777917894,51.1568343588373],[1.211064762566,51.1514766407317],[1.22107984810094,51.0980906290469],[1.19490813290239,51.0759723961263],[0.978406567929974,50.9128729204317],[0.938298979658136,50.9123197666166],[0.936864576900918,50.9123592416335],[0.935261387054844,50.9125787325647],[0.854695883922141,50.9237306086597],[0.812941746895733,50.941999575237],[0.777134928696756,50.9754283500105]]]}},{"type":"Feature","properties":{"name":"Swale","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[0.604424480576533,51.3256970914135],[0.600980219755268,51.3282028245122],[0.601403554174045,51.3333011048713],[0.625078644058274,51.3752773211928],[0.639939999193336,51.395086825519],[0.660113688435495,51.4175876623432],[0.66700183993546,51.4239086016461],[0.744648772436859,51.4472930765206],[0.791602397131471,51.4392702540731],[0.883970868849043,51.4213164246204],[0.902019423826626,51.4164905093793],[0.938176834545083,51.3898286039604],[1.01504044742831,51.3167816673395],[1.01698534649263,51.3129349284067],[1.00596759515751,51.2837830066946],[0.951111889225012,51.2575796657271],[0.941923055089827,51.253441486954],[0.859873527060566,51.2308377962895],[0.821108699915164,51.2244290160143],[0.795118069546067,51.2285344190026],[0.604424480576533,51.3256970914135]]]}},{"type":"Feature","properties":{"name":"Thanet","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[1.21383134810831,51.3567721858328],[1.2128742792341,51.3660440779695],[1.22484215135573,51.3793080459328],[1.38868186332305,51.3928317077387],[1.4249248328212,51.3937887726707],[1.44205295433473,51.387192179168],[1.44322864309293,51.3856791213405],[1.44466427426731,51.3838313812569],[1.44753399513297,51.3801374346298],[1.44958517398544,51.3774967286615],[1.44345435190212,51.3581137905108],[1.4363377165214,51.3426306030839],[1.42468182646303,51.3259930972634],[1.41538763025354,51.3238714570125],[1.34530468873694,51.3079727866563],[1.27391938705613,51.3203794358636],[1.25786533056971,51.3233593106101],[1.23172312217754,51.3390665027813],[1.22030192703823,51.3499157778949],[1.21383134810831,51.3567721858328]]]}},{"type":"Feature","properties":{"name":"Tonbridge and Malling","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[0.201954034831216,51.2205567114471],[0.2005423369464,51.2337586440062],[0.285768685729597,51.3449974473945],[0.296322107428688,51.3518768003041],[0.456233540778611,51.3687628438094],[0.503092145948739,51.3546668040816],[0.525641085381921,51.3347171670639],[0.526769655102794,51.32524659882],[0.511615594575655,51.3064345404207],[0.477656425071307,51.2722753362684],[0.400344986655227,51.1985721626835],[0.279342234488133,51.175926386909],[0.256131104302325,51.1785914391875],[0.226961569974034,51.1841543220095],[0.207911760237048,51.2105925029747],[0.201954034831216,51.2205567114471]]]}},{"type":"Feature","properties":{"name":"Tunbridge Wells","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[0.153437893112386,51.1205834380452],[0.150062666031672,51.131175894182],[0.154608144190192,51.1375360365462],[0.197998405291492,51.1751367791779],[0.226961569974034,51.1841543220095],[0.309456722914862,51.1999434982162],[0.369167737003512,51.2016169643177],[0.640340470520972,51.1524743523692],[0.642164201677451,51.1404627411312],[0.646674841425981,51.0832813402071],[0.644710655135259,51.0778879643587],[0.605390823945922,51.0120699758106],[0.568381149722978,51.0038146875729],[0.542030181668798,51.0109443176909],[0.162598339697813,51.1163978523646],[0.153437893112386,51.1205834380452]]]}},{"type":"Feature","properties":{"name":"Burnley","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-2.32860863330777,53.7610319540687],[-2.3423059086941,53.7948274419965],[-2.32976221085149,53.806638528645],[-2.30196466895093,53.8210791830111],[-2.1969302091403,53.8251961605445],[-2.15202010006667,53.8237067848061],[-2.12862296414996,53.8197956795088],[-2.11227899052983,53.8057083891249],[-2.12952156680705,53.7545904619732],[-2.13343573748517,53.7496751105338],[-2.1454078482939,53.7360551697342],[-2.14909293281519,53.7338963136415],[-2.17329358668748,53.7230116839111],[-2.3141091073118,53.7470387958581],[-2.32860863330777,53.7610319540687]]]}},{"type":"Feature","properties":{"name":"Chorley","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-2.82333536680159,53.6681788141508],[-2.82423015803598,53.6806711232594],[-2.82012710674794,53.6871376997055],[-2.57680690997968,53.7512737160101],[-2.56160160852994,53.7469013543165],[-2.51567629066042,53.6923821272296],[-2.51132292934796,53.6269949667172],[-2.55959025075435,53.5989128348565],[-2.57400347666306,53.5942907719542],[-2.62590677319225,53.5936832713985],[-2.79078497215336,53.6145470388177],[-2.79595255727168,53.6159616195275],[-2.8076080852112,53.6282587686715],[-2.82333536680159,53.6681788141508]]]}},{"type":"Feature","properties":{"name":"Fylde","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-3.05502289109455,53.7619850634633],[-3.05684992434024,53.7765741399837],[-3.01065293005663,53.8261939007195],[-2.98094571488985,53.8574984496256],[-2.97499643954594,53.8618089740972],[-2.90815423892622,53.8646681024664],[-2.88672688707979,53.8633105202744],[-2.87836790180449,53.86078460694],[-2.78050039761239,53.7877133489159],[-2.78972331142051,53.7565194254341],[-2.79321874671959,53.752148263068],[-2.79396648676013,53.7519777847609],[-2.8227340700148,53.7454533975184],[-2.85665171840787,53.7384578866798],[-2.86295629466538,53.7374552652528],[-2.87932480358396,53.7352633356329],[-2.92913475068414,53.7314577856745],[-2.94069564989633,53.7321234518724],[-2.98008423372517,53.7344228020122],[-3.00082184336501,53.7367111368551],[-3.0268693279669,53.7430673225059],[-3.03898046903265,53.7475004266293],[-3.05502289109455,53.7619850634633]]]}},{"type":"Feature","properties":{"name":"Hyndburn","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-2.43386860052447,53.7191816990193],[-2.46580771374763,53.7808134079364],[-2.41241619128138,53.8098370398289],[-2.39673657734499,53.8166191916107],[-2.3423059086941,53.7948274419965],[-2.33623270145168,53.7916971520525],[-2.32918726949853,53.7800847982767],[-2.31372441355751,53.7515751731528],[-2.3141091073118,53.7470387958581],[-2.32577142735795,53.7343535430878],[-2.34418444781331,53.7224495999405],[-2.36080039764864,53.7164983756784],[-2.40459022363978,53.7065049025984],[-2.41098929578139,53.7051367415016],[-2.43386860052447,53.7191816990193]]]}},{"type":"Feature","properties":{"name":"Lancaster","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-2.88524464946455,53.9368388562429],[-2.92442353253621,54.0313276886505],[-2.83721686204006,54.1741724007201],[-2.81633331257252,54.1898096131715],[-2.79922970282909,54.1977319354818],[-2.45958529173133,54.2395684104832],[-2.46434741774283,54.0752794330057],[-2.46954984634616,54.0462122430995],[-2.5575263143622,53.9749121430016],[-2.58884650870509,53.9602158037396],[-2.6169021304247,53.9522123374932],[-2.86436725618549,53.9180797323255],[-2.88524464946455,53.9368388562429]]]}},{"type":"Feature","properties":{"name":"Pendle","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-2.317844672633,53.8170571937219],[-2.33364465004493,53.8406309683462],[-2.31946460165882,53.8582947743353],[-2.24584068924005,53.9332626816138],[-2.22550595487058,53.9436323056705],[-2.18452239163842,53.9522641300986],[-2.12435029675582,53.9232007390378],[-2.11309296486617,53.915439302302],[-2.04613032171259,53.8501412464577],[-2.04692463706631,53.8295102819506],[-2.11227899052983,53.8057083891249],[-2.28266930775313,53.8073640750011],[-2.29469413540422,53.8084388282383],[-2.31320516595104,53.8124650365042],[-2.317844672633,53.8170571937219]]]}},{"type":"Feature","properties":{"name":"Preston","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-2.79321874671959,53.752148263068],[-2.82599421787706,53.819987299716],[-2.79338287250596,53.8366863968561],[-2.68092734879212,53.8925213491382],[-2.65723527918728,53.8961663859101],[-2.6452312202389,53.8937579432686],[-2.63596657968615,53.8902849931747],[-2.62538134095007,53.8802975207155],[-2.60789806933386,53.8387724828244],[-2.59543526622435,53.7962016888681],[-2.59948777978481,53.7814710235385],[-2.66407312801099,53.7489922888119],[-2.70990617252731,53.7480340858788],[-2.79321874671959,53.752148263068]]]}},{"type":"Feature","properties":{"name":"Ribble Valley","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-2.6452312202389,53.8937579432686],[-2.65083208213507,53.952255353855],[-2.57142492103764,54.0146640639762],[-2.49107403455294,54.0407390012121],[-2.46954984634616,54.0462122430995],[-2.37407297715162,54.0490890614635],[-2.1960183674942,53.9695758455163],[-2.18452239163842,53.9522641300986],[-2.22311161392446,53.8940437046409],[-2.22662936637286,53.8895117555278],[-2.31320516595104,53.8124650365042],[-2.33622181747354,53.795446881664],[-2.34463254722417,53.7932820321294],[-2.52877921503513,53.7594755696162],[-2.5512980543086,53.7563883886878],[-2.56363457892072,53.757272967847],[-2.59948777978481,53.7814710235385],[-2.62471372097947,53.8155648678697],[-2.6452312202389,53.8937579432686]]]}},{"type":"Feature","properties":{"name":"Rossendale","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-2.39834827805747,53.6915598628812],[-2.41098929578139,53.7051367415016],[-2.32614815671146,53.7473356131677],[-2.29527150262072,53.7519904931156],[-2.2516913414347,53.7550441028434],[-2.18544099071239,53.730824657568],[-2.17329358668748,53.7230116839111],[-2.14525470704119,53.6922949164993],[-2.14632807589891,53.682231530348],[-2.16113585516063,53.6422484499288],[-2.25791657220822,53.6164657412519],[-2.27178707180205,53.6145142314573],[-2.2828536648912,53.6202631492099],[-2.3712361929384,53.6670806553965],[-2.39834827805747,53.6915598628812]]]}},{"type":"Feature","properties":{"name":"South Ribble","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-2.83361636959357,53.6978162125645],[-2.8548327060395,53.7353303354739],[-2.82006931243426,53.7443301919935],[-2.77613646007489,53.7534785991306],[-2.63191894425288,53.7827938806593],[-2.58529594776754,53.7827184270384],[-2.54750548958988,53.775870978805],[-2.54554336628584,53.7692045889281],[-2.55398712642003,53.7497078208663],[-2.65882324539222,53.6806851078493],[-2.71246686467169,53.6714199268961],[-2.73355048868891,53.6742829583607],[-2.82012710674794,53.6871376997055],[-2.82710795352048,53.6884586265332],[-2.83361636959357,53.6978162125645]]]}},{"type":"Feature","properties":{"name":"West Lancashire","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-3.03868418007969,53.5382992747303],[-3.04669858190109,53.5429583288114],[-3.03214816196609,53.5985295767893],[-2.95510573113752,53.7044380067459],[-2.93590241203022,53.725427858285],[-2.86466825064204,53.7339230626192],[-2.85106408774436,53.7308288934448],[-2.84074206230202,53.7256361375243],[-2.69456786884956,53.6266454240372],[-2.6909473330234,53.620308966704],[-2.68931258757785,53.6043028419438],[-2.69337000083952,53.5894137345098],[-2.71792555495459,53.5272111636733],[-2.73052451043225,53.5205976080495],[-2.82557439672137,53.4827816885128],[-2.84442114863858,53.4841303894131],[-2.97599365857425,53.5152910647451],[-3.03868418007969,53.5382992747303]]]}},{"type":"Feature","properties":{"name":"Wyre","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-3.047968438432,53.8755925717077],[-3.05014790005106,53.9192152255226],[-3.04238367906507,53.9239825455909],[-2.92780871968516,53.9501391469481],[-2.79861853821427,53.975116723501],[-2.71565576482026,53.9802440537051],[-2.64821739364283,53.9489215900485],[-2.62643718901396,53.9385635383366],[-2.61710305593821,53.9243599138071],[-2.61427158719232,53.9195471123347],[-2.61340257292018,53.9082556569993],[-2.61662830306891,53.8998040418439],[-2.73615752450944,53.8234460371112],[-2.82599421787706,53.819987299716],[-3.01065293005663,53.8261939007195],[-3.0137733639311,53.829206446025],[-3.047968438432,53.8755925717077]]]}},{"type":"Feature","properties":{"name":"Blaby","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.33656584814462,52.5486117367129],[-1.33787695482205,52.5555728478745],[-1.32860500887811,52.5658439558669],[-1.26056323391875,52.6374441980058],[-1.19968163037784,52.6644018183087],[-1.18528923933493,52.6606440961908],[-1.05939219116329,52.5589300744617],[-1.07588893949918,52.5388659328313],[-1.30594754120562,52.4933952805605],[-1.32508812135485,52.5010423245412],[-1.33656584814462,52.5486117367129]]]}},{"type":"Feature","properties":{"name":"Charnwood","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.33237870782939,52.7530181589659],[-1.334769829076,52.7631647767824],[-1.3277023589733,52.775700708277],[-1.31896100445018,52.7853885668593],[-1.26192675778543,52.8104533294567],[-1.07443530143318,52.8247266344066],[-1.03628929191991,52.8158772842477],[-0.947237799575772,52.6827288728807],[-0.948924212290192,52.6803811514559],[-0.959653326669385,52.6732628946642],[-1.01367915585654,52.6550807837127],[-1.03778100549725,52.6539861165325],[-1.18955024460804,52.6607032365402],[-1.22659242936185,52.6699274148791],[-1.25901057672952,52.6820720150459],[-1.28141872027489,52.6921841304852],[-1.33237870782939,52.7530181589659]]]}},{"type":"Feature","properties":{"name":"Harborough","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.20161328230779,52.3967317959132],[-1.30594754120562,52.4933952805605],[-1.24796861462074,52.5420340556339],[-1.23184050477181,52.5553789147062],[-1.04861278988328,52.6549959563935],[-1.0385888710837,52.6590083039146],[-0.9802833788725,52.6818534437987],[-0.85554558234634,52.6849737895908],[-0.833981489993561,52.6727049822025],[-0.809528311230395,52.6576117229614],[-0.713658337963826,52.524963968358],[-0.715759937485516,52.5223443900515],[-0.9012806064268,52.4597558601064],[-1.14946966184269,52.3970082117755],[-1.18399208837492,52.392171077156],[-1.20161328230779,52.3967317959132]]]}},{"type":"Feature","properties":{"name":"Hinckley and Bosworth","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.56758317069744,52.6226417967044],[-1.57100016052294,52.6361199028751],[-1.55177141577137,52.6674551064611],[-1.50236096263458,52.6776333014224],[-1.28271338931419,52.7146423181832],[-1.20162046757134,52.6688451347874],[-1.19968163037784,52.6644018183087],[-1.27291557526986,52.5659721383332],[-1.32508812135485,52.5010423245412],[-1.52286777646333,52.5706005994426],[-1.56075676843526,52.5961562428648],[-1.56758317069744,52.6226417967044]]]}},{"type":"Feature","properties":{"name":"Melton","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.04590754651688,52.7660275017232],[-1.04662334791221,52.7809547546458],[-1.03628929191991,52.8158772842477],[-0.796150034418614,52.9767315027749],[-0.778278647253454,52.97692337951],[-0.755313033756398,52.9513786757836],[-0.682041197399814,52.8117955933358],[-0.674109433892729,52.7877680256509],[-0.664101453534753,52.756710460936],[-0.808693242414139,52.6461260660919],[-0.822271716083747,52.6472543320311],[-0.91604962363473,52.6711407165331],[-1.00797633679774,52.6963927465919],[-1.04590754651688,52.7660275017232]]]}},{"type":"Feature","properties":{"name":"North West Leicestershire","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.5896451852037,52.6872608081784],[-1.59754104512465,52.7004217669502],[-1.55484256321815,52.7620210184327],[-1.34486272111745,52.8675328855881],[-1.30599463322981,52.8770804463604],[-1.27842748173134,52.8755932233587],[-1.26788907937114,52.8733686514596],[-1.26456648187523,52.8583688648583],[-1.24714069691699,52.7363689781094],[-1.26246765028181,52.7242713485455],[-1.29173577068685,52.7094419893728],[-1.36058734327607,52.6764761097375],[-1.44574243138415,52.6639580217486],[-1.53682479949854,52.6657355358379],[-1.55177141577137,52.6674551064611],[-1.57760844633783,52.6785784843171],[-1.5896451852037,52.6872608081784]]]}},{"type":"Feature","properties":{"name":"Oadby and Wigston","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.1407085582475,52.5763807515076],[-1.14361854307226,52.5880254265962],[-1.09663360912744,52.6163791921899],[-1.07048970747673,52.6180668313852],[-1.06665940360138,52.6170342624254],[-1.04217241018933,52.5982931710855],[-1.082893928931,52.5565792045763],[-1.12663199600321,52.5619895768626],[-1.13438783574055,52.5657827778609],[-1.1407085582475,52.5763807515076]]]}},{"type":"Feature","properties":{"name":"Boston","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.142651723736895,52.8849077420228],[-0.246705114012854,52.9288324752047],[-0.224778722983891,53.0290421695183],[-0.217691080657137,53.0527066288789],[-0.210760060856012,53.070153619994],[0.137083225442511,53.0866918705947],[0.199579669854424,53.0326490384572],[0.076505089631619,52.9314509423369],[0.036066791811337,52.9040837708151],[0.027124639557576,52.8984938210467],[-0.034954742786634,52.8704009602085],[-0.065630850833244,52.8628953221559],[-0.084793503794167,52.8645464531661],[-0.094449645472949,52.8666213050578],[-0.142651723736895,52.8849077420228]]]}},{"type":"Feature","properties":{"name":"East Lindsey","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.316443359257324,53.2794716479515],[-0.317460783443738,53.2982512595202],[-0.310260818097815,53.3200026493188],[-0.212829887458394,53.4293609327792],[-0.067095981129414,53.51683822175],[-0.060544894312124,53.5197491181326],[0.01642149026086,53.52632246247],[0.037764221072505,53.5267195905905],[0.084999673602806,53.5163573925865],[0.147537042817011,53.4941148267881],[0.153988692114059,53.4904052684483],[0.167883412952313,53.477067612976],[0.168164852774028,53.4767973553097],[0.178618518718068,53.4648407076717],[0.191098184991299,53.4498971485954],[0.23285478022409,53.397424408199],[0.322179964590588,53.2664710597843],[0.337184186535268,53.2403514773907],[0.355627376907466,53.1920584284764],[0.348210789726189,53.1091843379926],[0.332372870503056,53.0866975504707],[0.239196633060485,53.0459464174134],[0.199579669854424,53.0326490384572],[-0.00706054386389,53.00112044826],[-0.114740936852602,53.0102577488592],[-0.19611968531666,53.0695566904891],[-0.214514918738687,53.0896221405504],[-0.289650494644498,53.1793657728158],[-0.302263333382541,53.2104251273063],[-0.316443359257324,53.2794716479515]]]}},{"type":"Feature","properties":{"name":"Lincoln","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.61973537369394,53.2080564674487],[-0.622616974304759,53.2175982065934],[-0.595111924372057,53.2451701910172],[-0.554692317941053,53.2521490655565],[-0.538580695948103,53.2545626344927],[-0.514164465347646,53.2537956445471],[-0.496012166981052,53.2471907558153],[-0.495441284850836,53.2443751581799],[-0.495118460732746,53.2252591456533],[-0.501273480019982,53.2210602852341],[-0.552843479414256,53.1863260710722],[-0.564971320601478,53.187160503489],[-0.613773433381622,53.2027049795765],[-0.61973537369394,53.2080564674487]]]}},{"type":"Feature","properties":{"name":"North Kesteven","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.716203841365838,53.0590587016488],[-0.764137929460812,53.1815438027694],[-0.762167689470256,53.1882393676831],[-0.730569016450559,53.2107564502185],[-0.648376866548705,53.2531678280879],[-0.622480856346262,53.2581302454031],[-0.381867563043633,53.2319581075016],[-0.35131302048508,53.2273213100436],[-0.276021068030632,53.1737610743495],[-0.25362993915621,53.1559189537642],[-0.226006757860045,53.1246047106711],[-0.195714806846549,53.0821353510077],[-0.189890522849971,52.9964096722477],[-0.201197546126263,52.9774604370323],[-0.256495923366334,52.9058834991008],[-0.437340926166954,52.8869959783769],[-0.46975593282411,52.9011884024851],[-0.479883833705112,52.9064222375638],[-0.716203841365838,53.0590587016488]]]}},{"type":"Feature","properties":{"name":"South Holland","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.28127692005364,52.7142636110376],[-0.30680987858175,52.7452723470875],[-0.276293296293067,52.8616882826984],[-0.246705114012854,52.9288324752047],[0.068550856517683,52.9187349195823],[0.176331510149807,52.874116224234],[0.268807332778324,52.8158366875915],[0.272208555754368,52.7728063615101],[0.186323197484379,52.7353486313374],[0.021500352427817,52.6648872884646],[-0.14106199482318,52.6515074247825],[-0.192867813968712,52.652438511053],[-0.22320806964813,52.6667622597168],[-0.26718009653159,52.6990861545799],[-0.28127692005364,52.7142636110376]]]}},{"type":"Feature","properties":{"name":"South Kesteven","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.773801109125731,52.902536212378],[-0.804273711459655,53.0122456805369],[-0.788413809258192,53.0258533556871],[-0.749554900937766,53.0551098447195],[-0.722597608787722,53.059922188952],[-0.695197028281637,53.0591486022261],[-0.522814221396275,53.0496419669518],[-0.256495923366334,52.9058834991008],[-0.212501332962663,52.6666794930237],[-0.258664797827536,52.6516453733237],[-0.495025802128916,52.6402363852471],[-0.664101453534753,52.756710460936],[-0.766592056271416,52.8867983634491],[-0.773801109125731,52.902536212378]]]}},{"type":"Feature","properties":{"name":"West Lindsey","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.81940272945888,53.437162890484],[-0.82016310807637,53.4411291129218],[-0.768109606084077,53.4989256083412],[-0.739591684118626,53.5199359490779],[-0.300930360808405,53.6163880602418],[-0.29211512919743,53.6132674312187],[-0.195185374970214,53.5716193575954],[-0.187529353437806,53.5636127665232],[-0.131879272038797,53.4359393973431],[-0.289650494644498,53.1793657728158],[-0.77707445272525,53.2469081695812],[-0.778486870404097,53.2519926950049],[-0.817002950376436,53.4256646223724],[-0.81940272945888,53.437162890484]]]}},{"type":"Feature","properties":{"name":"Breckland","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[0.582501080763578,52.4518613705246],[0.530520987316443,52.5761257045697],[0.55098193693527,52.6805208584252],[0.701997873979533,52.7866740749863],[0.707938541626203,52.788471945511],[0.839443297458997,52.8111265219668],[0.967662626261251,52.807737707054],[0.975760742033052,52.8070194718902],[0.993595563736057,52.798360130469],[1.0466201189721,52.7676128198613],[1.08093942955337,52.7402116979604],[1.10520292235781,52.7146933545914],[1.10832230213001,52.6825228094119],[1.09527547988123,52.4703833048051],[1.09464888459413,52.4602774017586],[1.02995703023961,52.3787354707697],[0.997812331416796,52.3715399083243],[0.967471013014227,52.3701127866583],[0.749844254038387,52.3829265004921],[0.684861232448156,52.3990376750829],[0.673412118405968,52.4042232348778],[0.582501080763578,52.4518613705246]]]}},{"type":"Feature","properties":{"name":"Broadland","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[0.992170328828505,52.7801045891376],[0.990368407777722,52.7840638078235],[0.993595563736057,52.798360130469],[1.00442621035436,52.8022940351011],[1.03526283921457,52.8118272928564],[1.10178892592779,52.829343655469],[1.16855377281087,52.829881846911],[1.21805604804522,52.8294172376409],[1.27412542426518,52.8188199731139],[1.30659203337419,52.8073571053684],[1.65934551851334,52.6256582561612],[1.67681394824195,52.6143361229138],[1.67516769159074,52.6096118371697],[1.63692314819813,52.5819618003271],[1.62301933546576,52.5742308000171],[1.59297065678986,52.5584855095527],[1.57869750828672,52.5564456840237],[1.54182007214619,52.5553294737248],[1.11606382485002,52.6454423657008],[1.09769532453148,52.6497571881857],[1.00024100685239,52.7657853254176],[0.992170328828505,52.7801045891376]]]}},{"type":"Feature","properties":{"name":"Great Yarmouth","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[1.54921374413448,52.6815417842342],[1.54568798860472,52.6961751206565],[1.55632532133772,52.7014028913573],[1.64583554671685,52.7366280679356],[1.6751542012274,52.742644186135],[1.69756952021577,52.7235391910612],[1.7290470365194,52.6636096229235],[1.74186435114992,52.6339863903512],[1.74308386700594,52.6205642405333],[1.74344711417188,52.575181748833],[1.74037086158233,52.5321004523097],[1.72600396630919,52.530642210805],[1.62858219413556,52.5260180537284],[1.60852813354222,52.5408350824052],[1.60582469300421,52.5448706696815],[1.55867826010726,52.6501983015263],[1.54921374413448,52.6815417842342]]]}},{"type":"Feature","properties":{"name":"King's Lynn and West Norfolk","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[0.206123341125585,52.5196351215419],[0.153643849693306,52.6821777181757],[0.15635300101668,52.7078349572506],[0.171626068420179,52.7380317024757],[0.268807332778324,52.8158366875915],[0.519847485786884,52.9686467283688],[0.534937821290634,52.9746560478121],[0.66331758517332,52.9870129339712],[0.678430536677382,52.9884005925194],[0.7722298008452,52.9788472382401],[0.781324234066334,52.9766969399614],[0.821569075850233,52.8928574204099],[0.582501080763578,52.4518613705246],[0.429344099524506,52.4364266700427],[0.246040899012424,52.4998913009411],[0.206123341125585,52.5196351215419]]]}},{"type":"Feature","properties":{"name":"North Norfolk","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[0.717832734741303,52.7823458206879],[0.707938541626203,52.788471945511],[0.727774001373804,52.8553386830594],[0.781324234066334,52.9766969399614],[0.866611474241805,52.9790259337746],[0.871864597850963,52.979091536851],[0.977548697472944,52.9798898154084],[0.994546025783269,52.9778542744312],[1.24198733946878,52.9424298698473],[1.27241813660638,52.9375377820402],[1.28333811800785,52.9357801279587],[1.30655038878603,52.9309859658311],[1.33521187925769,52.92220783098],[1.3675273588962,52.9096698239472],[1.38049650389768,52.9046333822721],[1.40649461411723,52.8938765464021],[1.41372008387852,52.8907785022122],[1.41389396511274,52.8907039347454],[1.58671256096868,52.8016594826067],[1.58737239970531,52.8012200135989],[1.60513984483448,52.7893817854517],[1.6751542012274,52.742644186135],[1.54921374413448,52.6815417842342],[1.54353679356831,52.6796242981102],[1.51224512812449,52.6816350411438],[1.43589221323085,52.6901833026218],[0.780280198175252,52.769409750021],[0.717832734741303,52.7823458206879]]]}},{"type":"Feature","properties":{"name":"Norwich","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[1.20634350396822,52.6383077807936],[1.20389047148497,52.644703803805],[1.26285930653953,52.6774055351358],[1.29233000873307,52.6849351236194],[1.43469715556091,52.6200569135315],[1.51843751737937,52.5758310449798],[1.536393889767,52.5622043184163],[1.54058399920127,52.5555931595448],[1.25778572878032,52.5981471264267],[1.21637094111686,52.6255697967132],[1.20634350396822,52.6383077807936]]]}},{"type":"Feature","properties":{"name":"South Norfolk","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[1.02023426769146,52.3942166619313],[0.947028051906419,52.575832526637],[0.954585786757407,52.5869356930258],[0.963749781870351,52.5946257985197],[1.05443160319313,52.6633292123355],[1.18721566345096,52.677468396207],[1.19367487558649,52.6780651087004],[1.22169291804446,52.6731693449424],[1.64558744577103,52.5888668829904],[1.68237448875996,52.4952244549621],[1.68197158974217,52.4899993477508],[1.67084835776017,52.4765273729761],[1.65868716255051,52.4683511670137],[1.21264058219253,52.3553869637816],[1.15705537137944,52.3613047136952],[1.02995703023961,52.3787354707697],[1.02023426769146,52.3942166619313]]]}},{"type":"Feature","properties":{"name":"Craven","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-2.46954984634616,54.0462122430995],[-2.56341446740704,54.12469273651],[-2.56341030273354,54.1404056829693],[-2.56050449737639,54.1530521184271],[-2.46086273483392,54.2267161360628],[-2.37232524199247,54.2482345946195],[-2.31909631949867,54.2571558310793],[-2.22921680420902,54.2521788040335],[-2.21682817807329,54.2504869044703],[-2.10003071279382,54.2319657629654],[-2.06087161165384,54.2103247431824],[-1.90561626244359,54.1224732108453],[-1.86711322882357,54.0976894392617],[-1.84059412422617,54.0705805799309],[-1.81952696130942,53.9964163647291],[-1.81876438477391,53.9925261994257],[-1.81673301854612,53.9781393219124],[-1.98765329122528,53.867737023799],[-2.04613032171259,53.8501412464577],[-2.08991499194819,53.8681819729435],[-2.45877489102487,54.0404955283586],[-2.46954984634616,54.0462122430995]]]}},{"type":"Feature","properties":{"name":"Hambleton","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.7046516359446,54.2768686047327],[-1.70526086993587,54.2855427056271],[-1.57461356628086,54.4185052282302],[-1.54615778699897,54.4445343896301],[-1.47555932906158,54.4981083123046],[-1.46735265618934,54.5025273466288],[-1.45779803490864,54.503647886172],[-1.22013631075884,54.5109411339474],[-1.0945238497457,54.5067598362799],[-1.0368514550928,54.4940440605226],[-0.983516462133161,54.4788774155976],[-0.972092111987041,54.4608464524094],[-1.00853801154643,54.1237724693685],[-1.01625773382534,54.107923692345],[-1.0395902735992,54.0736949363468],[-1.05873382513449,54.0478451039287],[-1.13699822638128,53.9910826227764],[-1.15191246934286,53.9891781234417],[-1.2754093710629,54.0344990014269],[-1.640366359175,54.1906800707976],[-1.7046516359446,54.2768686047327]]]}},{"type":"Feature","properties":{"name":"Harrogate","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.87415087994064,53.9450877504718],[-2.00450785291312,54.1728844397467],[-1.96774995756415,54.192023964706],[-1.82333272922554,54.2474867656166],[-1.70456974000764,54.2608306846966],[-1.68446906515044,54.2616012473657],[-1.44368655472963,54.2161338735649],[-1.34738740064504,54.1594881712655],[-1.33473994694509,54.1496263429868],[-1.17550999290166,54.0021966083669],[-1.1956382252846,53.9223801336735],[-1.27855209334913,53.8914306413283],[-1.58685844156437,53.9012519779665],[-1.71795853789499,53.9085427041814],[-1.85950461344345,53.9325130132681],[-1.87415087994064,53.9450877504718]]]}},{"type":"Feature","properties":{"name":"Richmondshire","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-2.31909631949867,54.2571558310793],[-2.36771223910638,54.3560706152439],[-2.29286520125281,54.4393074918431],[-2.26790292597675,54.4472335747047],[-2.24953922329874,54.4519434362394],[-1.7213108898176,54.5423017252838],[-1.65793716561516,54.5345889230914],[-1.49152217227962,54.4860915243329],[-1.47537275452127,54.4738451788965],[-1.46761924250396,54.4621505177809],[-1.47205221947318,54.4555996013609],[-1.68446906515044,54.2616012473657],[-1.69882207720728,54.2564208316008],[-1.75596308880438,54.2393636421036],[-2.00450785291312,54.1728844397467],[-2.01471464663516,54.172795607348],[-2.03473106307786,54.1757888812719],[-2.28331953780234,54.2385609838623],[-2.30510675597374,54.2493435715375],[-2.31909631949867,54.2571558310793]]]}},{"type":"Feature","properties":{"name":"Ryedale","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.25002379813104,54.3117665861872],[-1.26563922377026,54.3437118657252],[-1.26468795220063,54.3522880669441],[-1.23848132545557,54.3759503062438],[-1.05938059463134,54.4125783024861],[-1.02687295853114,54.4153443284802],[-0.950442837451209,54.4088577326149],[-0.632615612312574,54.3759521231263],[-0.312453088003662,54.2172764263681],[-0.2126028937597,54.1576066678597],[-0.221691468642107,54.1379729736178],[-0.22974662180302,54.1324403558],[-0.681798469610617,54.0103552838417],[-0.70490243910112,54.0060723868692],[-0.984657476406473,53.981547889456],[-0.995817988536795,53.9839810513635],[-1.18934192954866,54.2002684614723],[-1.19988661144019,54.2129657332567],[-1.21507408523294,54.2415603094734],[-1.25002379813104,54.3117665861872]]]}},{"type":"Feature","properties":{"name":"Scarborough","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.05938059463134,54.4125783024861],[-1.06469587990416,54.4211404819896],[-1.05750620992846,54.4409171126117],[-1.0368514550928,54.4940440605226],[-1.02380033989238,54.5020450654456],[-0.793346883280616,54.5583087975598],[-0.774535975882038,54.55739946391],[-0.588163957707713,54.4886396342613],[-0.56890838191931,54.4797474264871],[-0.521476959252688,54.4469678126923],[-0.259259432499059,54.2158784453962],[-0.263254737676529,54.1759538619303],[-0.266793674105597,54.1739514370559],[-0.277811870130536,54.1743772703519],[-0.550410818093488,54.1925763963677],[-0.599040365214269,54.1997252140731],[-0.61845261984639,54.205515359319],[-1.05938059463134,54.4125783024861]]]}},{"type":"Feature","properties":{"name":"Selby","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.31535677889255,53.7436807014006],[-1.3529698771545,53.8567507520096],[-1.32105312933982,53.9034800801928],[-1.27085603411856,53.9346591676463],[-1.25190199176294,53.9356014782329],[-1.23527816376711,53.9350089142217],[-0.938611986000199,53.8875414936387],[-0.926835271698008,53.882562396696],[-0.923517752139632,53.8807664519424],[-0.90524918728046,53.7170482896399],[-1.05327754938186,53.65153690905],[-1.1354072030232,53.632728679272],[-1.23284427243353,53.6211122464196],[-1.25366203263728,53.6411993780061],[-1.31535677889255,53.7436807014006]]]}},{"type":"Feature","properties":{"name":"Ashfield","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.33586846310334,53.0529658466922],[-1.34411229730592,53.0623315669311],[-1.34383457830861,53.0687295616196],[-1.32558340645085,53.156474886819],[-1.32344684110941,53.1623424531774],[-1.31655016334559,53.1653619517486],[-1.29596178794204,53.1712248619122],[-1.28875775031709,53.1714552917787],[-1.26897895743025,53.1681938966046],[-1.25993009829984,53.1644809106531],[-1.24093708569125,53.1529978005134],[-1.17789116216515,53.1148104411525],[-1.16425148277133,53.1032693686635],[-1.17715172169489,53.037052027094],[-1.1827461829988,53.01856914589],[-1.18452541509796,53.0163861645589],[-1.22514776798074,53.0080958021553],[-1.33586846310334,53.0529658466922]]]}},{"type":"Feature","properties":{"name":"Bassetlaw","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.20942448225347,53.2176967645087],[-1.21245933128975,53.2455858747039],[-1.19974106069052,53.3114394544059],[-1.16194934785768,53.3579088239998],[-1.13349259127567,53.3914806103838],[-1.11604100602787,53.4073493537968],[-1.09873738770383,53.4187347519569],[-1.08704609824437,53.4255440500069],[-0.935564625288195,53.5025165293909],[-0.797483349537156,53.4550644469113],[-0.75861635902076,53.3538375874827],[-0.750051550807065,53.3243173732238],[-0.74715298067211,53.3044448779536],[-0.750179231138818,53.2945415893939],[-0.780363092510896,53.1963979236758],[-1.20223676804996,53.2161171707827],[-1.20942448225347,53.2176967645087]]]}},{"type":"Feature","properties":{"name":"Broxtowe","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.33577283024486,53.0507431645501],[-1.33586846310334,53.0529658466922],[-1.3296074922393,53.0544796391458],[-1.28803550302791,53.0482555678996],[-1.27746148988076,53.0462400574954],[-1.25769404832667,53.0409565638799],[-1.23877639005979,53.0326298667962],[-1.22906420446731,53.0227439746174],[-1.20340553428798,52.9875428088163],[-1.1823012510609,52.9173362705305],[-1.22049251357766,52.8955638432422],[-1.23970599304057,52.8922892374961],[-1.27168556230913,52.9051132050397],[-1.28193610087569,52.9107561907686],[-1.33311042063717,53.0338823061083],[-1.33577283024486,53.0507431645501]]]}},{"type":"Feature","properties":{"name":"Gedling","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.22811869229901,53.0545707384929],[-1.23128870787785,53.0620648987529],[-1.22630954565114,53.0810231386544],[-1.19604421992243,53.0945035233688],[-1.16425148277133,53.1032693686635],[-1.15995725461357,53.1039601611064],[-1.13928710703244,53.0996450286007],[-1.08950248736585,53.0780194776372],[-1.02972993483392,53.024255950206],[-1.00876539501049,52.9892044070999],[-1.00708600519626,52.9854570877984],[-1.03379440889325,52.9583552242293],[-1.04155666542289,52.9512617042436],[-1.08611507246246,52.9485698839615],[-1.11518974485093,52.9648565910303],[-1.18448161805232,53.0144459867537],[-1.22811869229901,53.0545707384929]]]}},{"type":"Feature","properties":{"name":"Mansfield","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.25532439346219,53.1546158019483],[-1.26006786057334,53.1643670966369],[-1.20942448225347,53.2176967645087],[-1.10329585420785,53.2356073423104],[-1.09543846939306,53.2324225064133],[-1.09525165753966,53.2277080787042],[-1.11105637906414,53.1534275287742],[-1.12021727234224,53.1190809038545],[-1.12348418523917,53.1181683029802],[-1.17789116216515,53.1148104411525],[-1.18585201039167,53.1158090024554],[-1.22460345627771,53.1316314332092],[-1.22930043010993,53.1341707829183],[-1.23954381240422,53.1406027817014],[-1.25532439346219,53.1546158019483]]]}},{"type":"Feature","properties":{"name":"Newark and Sherwood","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.13018150599062,53.0736070675178],[-1.17789116216515,53.1148104411525],[-1.152984213695,53.1753260011884],[-1.10329585420785,53.2356073423104],[-1.02753448898444,53.2608515507104],[-0.688027280325921,53.2583912407031],[-0.666577004989044,53.2397024965169],[-0.695144260163121,53.0665304037453],[-0.778278647253454,52.97692337951],[-0.812850938336058,52.9574642126954],[-1.00708600519626,52.9854570877984],[-1.038117956046,52.9956299046437],[-1.13018150599062,53.0736070675178]]]}},{"type":"Feature","properties":{"name":"Rushcliffe","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.27436347501172,52.8361295182939],[-1.27528282314089,52.8603800401658],[-1.26788907937114,52.8733686514596],[-1.24639858780154,52.8891378624584],[-1.15228878148246,52.9370264523314],[-0.91012044940713,53.0359284297717],[-0.833354055828536,53.0077239625327],[-0.822916664810415,53.000985976254],[-0.815158220785605,52.9856613505293],[-0.822811634981401,52.9437070815773],[-0.85763357391753,52.9056423200794],[-0.989003720968529,52.8182501371527],[-1.19613782241416,52.7901649582826],[-1.22195327821202,52.7917687287077],[-1.22840698829114,52.793107985969],[-1.25536431835604,52.8041520130404],[-1.26192675778543,52.8104533294567],[-1.27003719602656,52.8233172125951],[-1.27436347501172,52.8361295182939]]]}},{"type":"Feature","properties":{"name":"Cherwell","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.51819292929745,51.9898672562241],[-1.52282569381325,51.9968433232583],[-1.50185527404318,52.0716266306576],[-1.48780444309778,52.0939574330421],[-1.47730164801721,52.1013509449693],[-1.44885625484416,52.1160379918892],[-1.3318971346503,52.168485056197],[-1.060847344146,52.0086108302234],[-1.05317192410626,52.0025360993267],[-1.0471229362899,51.8398136635254],[-1.12354117099906,51.7941812934693],[-1.3028200145808,51.7809650253817],[-1.32234287012786,51.7878396561035],[-1.51819292929745,51.9898672562241]]]}},{"type":"Feature","properties":{"name":"Oxford","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.28878722900167,51.7489976298279],[-1.30367005506943,51.7726369118402],[-1.3028200145808,51.7809650253817],[-1.28364459230596,51.7962695881101],[-1.25809430677354,51.793510545404],[-1.18068811810198,51.7659953747077],[-1.17972652423451,51.7630817735605],[-1.1757938083229,51.7334765953091],[-1.18415374595438,51.7215732275327],[-1.18830669945221,51.7167546723896],[-1.20020289418302,51.7121436472737],[-1.22228414164303,51.7109850357034],[-1.25350887864601,51.7279720579599],[-1.28878722900167,51.7489976298279]]]}},{"type":"Feature","properties":{"name":"South Oxfordshire","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.22679203559485,51.5351584620885],[-1.29022497489805,51.5778972221941],[-1.28912253931995,51.647933459248],[-1.25380910648972,51.7978469654728],[-1.24196364597874,51.809995834108],[-1.16741030149783,51.8137775288111],[-0.954122405769175,51.7578469475703],[-0.933204634951446,51.7523403375452],[-0.924115298282359,51.7477150779008],[-0.904027615988972,51.73199614919],[-0.887682430834599,51.7183433693197],[-0.879895887122356,51.6808648769757],[-0.877706762468148,51.6683850758408],[-0.870025174755948,51.5043908449018],[-0.910608236181327,51.4768309225316],[-0.926867203070439,51.4672847034017],[-0.949167813983683,51.4595133240547],[-1.01820453413265,51.4665845234538],[-1.08836180760873,51.485752747896],[-1.10277657673746,51.4901709246292],[-1.22679203559485,51.5351584620885]]]}},{"type":"Feature","properties":{"name":"Vale of White Horse","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.69111065938545,51.583523727724],[-1.70018909588819,51.6707416649703],[-1.69651831061135,51.6821163773715],[-1.68305860763384,51.6901103608739],[-1.33025008665943,51.7862745669368],[-1.32234287012786,51.7878396561035],[-1.30472749933304,51.7896556868134],[-1.24130957964358,51.7251596978921],[-1.23357583958643,51.7117933275085],[-1.22175345958989,51.6846203407817],[-1.20227418245018,51.5901293044522],[-1.22679203559485,51.5351584620885],[-1.22994143157423,51.5346136394912],[-1.60281227577577,51.5182950573493],[-1.68405026397286,51.5729005120114],[-1.69111065938545,51.583523727724]]]}},{"type":"Feature","properties":{"name":"West Oxfordshire","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.69581834766911,51.72377291612],[-1.71948863302901,51.783211828608],[-1.66575430454863,51.9874888219864],[-1.54174159477537,51.9964320602947],[-1.52282569381325,51.9968433232583],[-1.43737183445808,51.9891925734778],[-1.37723463739556,51.9796014131655],[-1.36139623053788,51.9685367691785],[-1.30622432350134,51.919765346626],[-1.29866194343839,51.9120088699364],[-1.2899046729513,51.8939101187877],[-1.28613275824864,51.8751577574617],[-1.32234287012786,51.7878396561035],[-1.36917775854333,51.7230188943762],[-1.39191993739824,51.7062959256464],[-1.49212635782599,51.6938859311735],[-1.62830177896531,51.6838503706283],[-1.64825374342062,51.6840870667632],[-1.6861662033357,51.7101759451736],[-1.69581834766911,51.72377291612]]]}},{"type":"Feature","properties":{"name":"Mendip","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-2.8243130826543,51.1203658370092],[-2.8426879403719,51.1729411627784],[-2.83844336590277,51.1895398882181],[-2.76464422735267,51.3225771747279],[-2.75480588668727,51.3245482049342],[-2.27774724630575,51.3257041239791],[-2.27309487103777,51.3228790460251],[-2.25349723752292,51.2898347409545],[-2.24443053733742,51.2631190848013],[-2.24534123488723,51.2538761371033],[-2.26666418827455,51.2155336408141],[-2.29846468216909,51.1753224442548],[-2.33217403500786,51.137983575281],[-2.34630465392582,51.1305106831692],[-2.61334728277224,51.0651355434428],[-2.63270529607598,51.0633102549862],[-2.70585261180625,51.0720341925312],[-2.78969509304741,51.0984034673078],[-2.81987348345156,51.1079327961481],[-2.8243130826543,51.1203658370092]]]}},{"type":"Feature","properties":{"name":"Sedgemoor","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-3.19355638320066,51.1123567009458],[-3.21646875444181,51.1303768781666],[-3.20546776739122,51.1428055649624],[-3.03592989396078,51.3285451730706],[-2.81867321270989,51.3263654540974],[-2.80647002170137,51.3261479706787],[-2.76464422735267,51.3225771747279],[-2.7363032592801,51.3065174735447],[-2.73248406850087,51.3038950223295],[-2.71496868307739,51.281743472751],[-2.71146947906477,51.269251527924],[-2.78611276833126,51.1124295348261],[-2.8572947463802,51.077947173323],[-2.95778256621146,51.0474313340406],[-2.98070626565375,51.0408694742919],[-3.03121167578629,51.0479143250849],[-3.13653741217902,51.0720635521942],[-3.19355638320066,51.1123567009458]]]}},{"type":"Feature","properties":{"name":"South Somerset","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-3.05406225928356,50.8730431239436],[-3.09238845384294,50.9296428294941],[-3.08837749506336,50.9380066699312],[-2.84994511660274,51.1031754124953],[-2.81987348345156,51.1079327961481],[-2.40803174002957,51.1477121168228],[-2.37098443557828,51.1433477062287],[-2.34630465392582,51.1305106831692],[-2.32585275983044,51.0796755881052],[-2.3300144212501,51.0413445746229],[-2.34455653686763,50.9788293029238],[-2.61610129488952,50.8816335411571],[-2.62412936640247,50.8792590583397],[-2.95432123760533,50.8211725185423],[-3.03680608618723,50.8510651729283],[-3.05406225928356,50.8730431239436]]]}},{"type":"Feature","properties":{"name":"Cannock Chase","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-2.05131381088512,52.6779742191845],[-2.05463221958658,52.6900591908124],[-2.01842570744699,52.7588607313945],[-1.99677616224925,52.7636439315402],[-1.9491455533459,52.7733590957036],[-1.94394384912081,52.7737595605108],[-1.91137491354065,52.7590527159271],[-1.91080679278257,52.7511909520294],[-1.91551067849955,52.7106385962707],[-1.96028059215627,52.6441628925989],[-1.96397292368402,52.6418150858843],[-1.98655031223884,52.6404092782399],[-2.05131381088512,52.6779742191845]]]}},{"type":"Feature","properties":{"name":"East Staffordshire","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.96788446325612,52.8243009801489],[-2.04265036635517,52.915726247826],[-2.04152635969792,52.9174768209124],[-1.88417697630507,53.0200550802302],[-1.85603268760378,53.034096988681],[-1.77898129670065,53.0448443741093],[-1.7681938448564,53.0440382008205],[-1.75903746906611,53.0375523348905],[-1.59128667483578,52.8362614019305],[-1.58797644349777,52.8315367418831],[-1.58894635200613,52.7998222132013],[-1.61246242918384,52.7812182067485],[-1.69788586316216,52.7353820162554],[-1.70415800106741,52.7320787781291],[-1.71079530408229,52.7298558083897],[-1.71763927764304,52.731284603175],[-1.78456254287488,52.7458521775434],[-1.81752567730303,52.7551908930745],[-1.9513271234175,52.8074284016666],[-1.96788446325612,52.8243009801489]]]}},{"type":"Feature","properties":{"name":"Lichfield","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.95456973548851,52.6626411711504],[-1.96322524496663,52.6746329202931],[-1.95813101906937,52.7984909833021],[-1.9513271234175,52.8074284016666],[-1.93078065649739,52.8055673094297],[-1.83815229375055,52.7959702356167],[-1.81757774346415,52.7930279073571],[-1.59754104512465,52.7004217669502],[-1.58628530395622,52.69449844859],[-1.5896451852037,52.6872608081784],[-1.6042650474493,52.673721500547],[-1.7003926529636,52.5909126449143],[-1.70478616946946,52.5875065284062],[-1.87256445035415,52.5849446957769],[-1.89062691945564,52.5980635183441],[-1.95456973548851,52.6626411711504]]]}},{"type":"Feature","properties":{"name":"Newcastle-under-Lyme","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-2.46524352355853,52.8921616984104],[-2.47084125003617,52.9058690823754],[-2.38512366576312,53.0480909972802],[-2.37505980292515,53.0545307203804],[-2.32900939016106,53.0765798964248],[-2.31672798268146,53.0811150720024],[-2.2113149262639,53.1158244641231],[-2.1892713706602,53.1014323896947],[-2.18267245168045,53.0924707822976],[-2.18120675463031,53.0897970691097],[-2.20434090153092,52.9813982117568],[-2.26411218227811,52.9236963755586],[-2.3855545685442,52.8879883871584],[-2.44614159360973,52.8740080691121],[-2.4575938483273,52.879104605484],[-2.46524352355853,52.8921616984104]]]}},{"type":"Feature","properties":{"name":"South Staffordshire","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-2.3127491667011,52.4892088291572],[-2.32547507277904,52.6000992610679],[-2.3248336041539,52.7053358311102],[-2.31671752993342,52.7379758823737],[-2.31220085865136,52.7408631916215],[-2.14478585744367,52.7836338118626],[-2.09386043074587,52.7862071504896],[-2.07473137892304,52.7784244360714],[-2.04451482094381,52.7620916514734],[-2.0253258961465,52.7345974420882],[-1.98373680431892,52.6436092678047],[-2.16381069752851,52.4232580756115],[-2.19287601440949,52.4232923129682],[-2.2615026509419,52.4369411086874],[-2.26950475053342,52.4386159936785],[-2.28718691776708,52.4456539525173],[-2.2949641030381,52.4489476840565],[-2.3127491667011,52.4892088291572]]]}},{"type":"Feature","properties":{"name":"Stafford","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-2.38562300360953,52.7907111710368],[-2.41634660240013,52.8270059910047],[-2.37917217385222,52.9128870996625],[-2.27022497642705,52.9633720452975],[-2.26256589061591,52.965689707897],[-2.22710380115519,52.9763749533732],[-2.21251375044799,52.9805793513013],[-2.08812772094549,52.97385200276],[-2.06844733488644,52.9683673878394],[-2.0430316722824,52.9513532166664],[-1.9360513130626,52.8706843726278],[-1.93432432526855,52.8662202177955],[-1.93357614736412,52.8531654317609],[-1.94394384912081,52.7737595605108],[-2.02680200618696,52.7363177599337],[-2.24534640092645,52.7151642267369],[-2.2506541681952,52.7155468101455],[-2.31220085865136,52.7408631916215],[-2.33047536231167,52.7516170046655],[-2.36882980280175,52.7772757190521],[-2.38562300360953,52.7907111710368]]]}},{"type":"Feature","properties":{"name":"Staffordshire Moorlands","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-2.06295685717658,52.9223952012366],[-2.2113149262639,53.1158244641231],[-2.14073139793868,53.1835786878237],[-1.96236461007117,53.2262417356404],[-1.87397365004863,53.1953607549267],[-1.83717586580524,53.1757590017478],[-1.81607333504688,53.158636375845],[-1.81202512678931,53.1527440795625],[-1.7837258959914,53.1028279820508],[-1.77565273133291,53.0593546425468],[-1.77898129670065,53.0448443741093],[-1.78486501187173,53.0245837108726],[-1.79600054534464,53.0132086514519],[-1.91018560060171,52.9398093355698],[-1.93436516846469,52.9316690349704],[-2.03496050949529,52.9178133816924],[-2.04152635969792,52.9174768209124],[-2.06295685717658,52.9223952012366]]]}},{"type":"Feature","properties":{"name":"Tamworth","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.7003926529636,52.5909126449143],[-1.73577125343367,52.6367016634954],[-1.73412913789626,52.6435994015659],[-1.72255254139977,52.6513661306249],[-1.6449429538447,52.6575167797495],[-1.63424759687035,52.6430431761339],[-1.63601514632815,52.6196169494317],[-1.63977736511557,52.608393066876],[-1.64370705001515,52.6036448945835],[-1.65157754034906,52.5984182738847],[-1.66563959036358,52.5922522330128],[-1.68569088726036,52.5893509928612],[-1.7003926529636,52.5909126449143]]]}},{"type":"Feature","properties":{"name":"Babergh","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[0.628658069819016,52.1246639452756],[0.626916651404469,52.1310004070851],[0.637540788959107,52.1502327905288],[0.641387250313516,52.1562845253859],[0.645374242363174,52.1601772561061],[0.694232001980498,52.1800069373768],[0.703285041214444,52.1810794041007],[0.786919173100123,52.1778942419446],[0.938049905094061,52.1575405008549],[1.1091971832755,52.0710043217242],[1.26730316429769,51.9878681976816],[1.27022807901817,51.9841865304079],[1.2790881432162,51.9603882606802],[1.27639416004413,51.9574895874104],[1.27373809501707,51.9556665458932],[1.26938621628984,51.9544934787792],[1.08121781294911,51.9446823332193],[0.810877141632654,51.9606960885641],[0.787161496964329,51.9631342452994],[0.772261026840059,51.970424512006],[0.706528875942585,52.0295250970259],[0.698821850984104,52.0367113483526],[0.656900901436426,52.0854416870867],[0.632675374601027,52.115235309914],[0.628658069819016,52.1246639452756]]]}},{"type":"Feature","properties":{"name":"Ipswich","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[1.11294353316438,52.0345776233272],[1.10727569557284,52.0461857793896],[1.10913580284497,52.0880664805701],[1.1137573681941,52.0900651928511],[1.14229237480986,52.0944696524962],[1.18989426782392,52.0804499950831],[1.20021450640739,52.0685352830541],[1.20520979973826,52.0621405120977],[1.22361032387657,52.0294342540291],[1.21936875644319,52.0228829098216],[1.20947704335699,52.020768655973],[1.17767542194341,52.0224467219524],[1.12957709153612,52.0299545272446],[1.11294353316438,52.0345776233272]]]}},{"type":"Feature","properties":{"name":"Mid Suffolk","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[0.814169470353268,52.170732600777],[0.797580855297455,52.2512298748277],[0.80160378054401,52.2659093611394],[0.967471013014227,52.3701127866583],[1.00681380135656,52.375743016216],[1.02768563676051,52.3785724571752],[1.34710101168893,52.4044110222302],[1.3609638843196,52.403522694092],[1.37485702054714,52.3946773751995],[1.4095085144785,52.3632651065005],[1.40164540153403,52.2856981107003],[1.15783883919243,52.0887516359453],[1.1091971832755,52.0710043217242],[1.09123166392176,52.065399893832],[1.06538743642165,52.0653918171146],[1.04143507019285,52.0686182907602],[1.02602081381262,52.0708869424252],[0.970778306434515,52.0956705829834],[0.82557891253304,52.1626671670715],[0.814681898552302,52.1689792526993],[0.814169470353268,52.170732600777]]]}},{"type":"Feature","properties":{"name":"Elmbridge","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.47676917282771,51.3432634788662],[-0.48115569977815,51.3493580616654],[-0.474121366689124,51.3639677887353],[-0.467623459084868,51.3746199100905],[-0.451890803604447,51.3876328384163],[-0.411535892480602,51.4032546412382],[-0.39719328561754,51.4085961917425],[-0.359139329301899,51.4119031603976],[-0.317697879461912,51.3936670802519],[-0.313111086424265,51.3887724742728],[-0.307365447908524,51.3783835469693],[-0.308471291881675,51.3757949805653],[-0.330655551869037,51.329009639034],[-0.360315847342355,51.3118031069032],[-0.394742082222749,51.2979482192583],[-0.405326341630148,51.2948923633347],[-0.440312035139234,51.3048363832651],[-0.47676917282771,51.3432634788662]]]}},{"type":"Feature","properties":{"name":"Epsom and Ewell","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.272234355213241,51.2923303488632],[-0.30619199674676,51.3350844108749],[-0.297771117293604,51.3492612573375],[-0.288249074170444,51.3621165672627],[-0.28407531400389,51.365147556108],[-0.261148558997612,51.3795998002344],[-0.245030259031958,51.3800339656124],[-0.226943704152365,51.362625173256],[-0.217264425569081,51.3433870908233],[-0.220940778700181,51.3298630408652],[-0.24713372014336,51.298678489718],[-0.272234355213241,51.2923303488632]]]}},{"type":"Feature","properties":{"name":"Guildford","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.747653595753886,51.2143885966503],[-0.748336015847959,51.2234954915756],[-0.731093833410657,51.2803620913767],[-0.687495803758243,51.3138115864281],[-0.67136139494148,51.3173651275811],[-0.483797280689399,51.3315058792741],[-0.451452008159039,51.330938320438],[-0.436606619052883,51.3263268559251],[-0.394742082222749,51.2979482192583],[-0.387142549569629,51.2650815815861],[-0.389274244826868,51.2559285012597],[-0.408336773385754,51.1757072374421],[-0.418564944938553,51.1731814316052],[-0.648119784721682,51.1758370146029],[-0.731642049228366,51.1968612641598],[-0.747201588916866,51.2089324740656],[-0.747653595753886,51.2143885966503]]]}},{"type":"Feature","properties":{"name":"Mole Valley","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.419203500082164,51.1052045809821],[-0.438436754321913,51.209679497252],[-0.434648247892369,51.2399058425111],[-0.396926448018453,51.3128169239413],[-0.30619199674676,51.3350844108749],[-0.287661666828235,51.3211176514044],[-0.226744026474043,51.2559011426676],[-0.177058047915056,51.1679031347247],[-0.17670622529243,51.1668499726532],[-0.186866075364391,51.1616658528207],[-0.214234803403043,51.1484637545475],[-0.275290745685159,51.1303085216959],[-0.300346786136933,51.1247356968359],[-0.419203500082164,51.1052045809821]]]}},{"type":"Feature","properties":{"name":"Reigate and Banstead","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.243060917750982,51.1828332685674],[-0.272234355213241,51.2923303488632],[-0.242968399924459,51.3212801730898],[-0.233948406524055,51.3272965298694],[-0.197319341793986,51.3435951617074],[-0.187459117706562,51.3408122796846],[-0.163076714225111,51.3302642191708],[-0.124292859195443,51.2867586590943],[-0.128253703598407,51.1627897398302],[-0.140462480803131,51.1600473191154],[-0.160892553371527,51.1598234237289],[-0.223761462464509,51.174930971058],[-0.243060917750982,51.1828332685674]]]}},{"type":"Feature","properties":{"name":"Runnymede","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.594416053696383,51.3765260080723],[-0.618495201013367,51.3923882534352],[-0.618368608441882,51.3990257749748],[-0.605124550506387,51.4313121178821],[-0.594219457112765,51.4414680219201],[-0.571675217761157,51.451007631736],[-0.522765050804453,51.4353004066197],[-0.511202721484142,51.4306776942021],[-0.457990747179475,51.3805669610262],[-0.466971498106567,51.3565753201173],[-0.48115569977815,51.3493580616654],[-0.499046217191924,51.34357850796],[-0.516079965316535,51.3393143524425],[-0.548549357282802,51.3480208970891],[-0.569800038229262,51.3605941965824],[-0.594416053696383,51.3765260080723]]]}},{"type":"Feature","properties":{"name":"Spelthorne","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.531436348980556,51.4417130210241],[-0.54061316396913,51.4578521275783],[-0.529960218464429,51.4701681905953],[-0.524358681535487,51.471528484042],[-0.509701400845035,51.4691759477034],[-0.458644591609625,51.4563100938075],[-0.386641678029352,51.4200808195965],[-0.383350028118426,51.4085382960284],[-0.432089354140983,51.3840415975487],[-0.462795692319218,51.3784350550079],[-0.48286270824654,51.3865182133442],[-0.48642303385642,51.3888814185793],[-0.512595809545317,51.4173766645137],[-0.531436348980556,51.4417130210241]]]}},{"type":"Feature","properties":{"name":"Surrey Heath","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.733348692015766,51.2817911208774],[-0.775466206963731,51.3319589032434],[-0.735335360826244,51.3650095832703],[-0.735258360031567,51.365040216935],[-0.667634283855982,51.3845713456129],[-0.655300457263153,51.3872457872762],[-0.618495201013367,51.3923882534352],[-0.597702002690927,51.3855023532427],[-0.555233930841177,51.3619357331498],[-0.548549357282802,51.3480208970891],[-0.576897905019913,51.3362640384203],[-0.706560237954146,51.2833198375583],[-0.720235172411052,51.2792474574396],[-0.731093833410657,51.2803620913767],[-0.733348692015766,51.2817911208774]]]}},{"type":"Feature","properties":{"name":"Tandridge","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.137571778320172,51.1421596105082],[-0.154218261905109,51.2290683558409],[-0.152247065293282,51.2350371377572],[-0.131056493393277,51.284817394494],[-0.082224109790183,51.3169577054],[-0.050261219672833,51.3326393320538],[-0.037892270902319,51.3387044848688],[-0.022056700450286,51.3380996039451],[0.002294720966143,51.3291388513245],[0.042620201159846,51.3013288993907],[0.048171074855135,51.2856526496172],[0.057607654344816,51.2449143797108],[0.054805363070837,51.1495285929708],[0.050016528693635,51.1426500167773],[0.027361224766083,51.1398505070994],[-0.006588864859286,51.1375688266709],[-0.056325694097903,51.1367655212928],[-0.131025048622507,51.1394831344474],[-0.137571778320172,51.1421596105082]]]}},{"type":"Feature","properties":{"name":"Waverley","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.834203925546664,51.1475816697554],[-0.848912169248545,51.2107157287771],[-0.826608560856257,51.2343800003203],[-0.820778172016609,51.2392708266815],[-0.804749572959298,51.2450647475977],[-0.775856696310843,51.2419100880382],[-0.532445111045568,51.2134482277123],[-0.505637157377342,51.2050191915872],[-0.443917219476152,51.1835915047329],[-0.432884014087502,51.1791123844399],[-0.418564944938553,51.1731814316052],[-0.415211510690965,51.1584481678358],[-0.413236600134928,51.1263288688421],[-0.419203500082164,51.1052045809821],[-0.438436290445316,51.0979081237137],[-0.535523150105076,51.0831756299593],[-0.696752296390414,51.0714916867383],[-0.723413943929025,51.0778178122279],[-0.753480635682262,51.0864557098491],[-0.834203925546664,51.1475816697554]]]}},{"type":"Feature","properties":{"name":"Woking","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.618602944921065,51.2830396590312],[-0.647890639256157,51.3043550614778],[-0.646791891855231,51.311902363558],[-0.624680337167743,51.3348203946693],[-0.60814613897054,51.339695032513],[-0.548549357282802,51.3480208970891],[-0.48115569977815,51.3493580616654],[-0.46365364983465,51.3406157494153],[-0.462343997790484,51.3299602984635],[-0.475320035003946,51.3164522876787],[-0.537445766202498,51.2684144314704],[-0.544369609523115,51.2655035662757],[-0.550731194788179,51.2669529968416],[-0.618602944921065,51.2830396590312]]]}},{"type":"Feature","properties":{"name":"North Warwickshire","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.78679966131805,52.5830722780581],[-1.7880812993329,52.5878626088221],[-1.5896451852037,52.6872608081784],[-1.569106299685,52.6796671744559],[-1.55177141577137,52.6674551064611],[-1.45999402369308,52.5515899273182],[-1.51482261244222,52.4762667858341],[-1.55142085388797,52.4570443030562],[-1.66658594082774,52.4354715665142],[-1.67715419118533,52.4363566272537],[-1.70847691907694,52.4656132700967],[-1.75352319084031,52.5129668960538],[-1.75707693385447,52.5178270640517],[-1.78679966131805,52.5830722780581]]]}},{"type":"Feature","properties":{"name":"Nuneaton and Bedworth","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.54522870615797,52.4726014653185],[-1.55522331072838,52.5173873332749],[-1.55392229129889,52.5334768609387],[-1.45999402369308,52.5515899273182],[-1.42408394807535,52.5395883492076],[-1.41895772172901,52.5377680030107],[-1.40754561520514,52.5153371352606],[-1.40388669555277,52.5023811245583],[-1.40479101049749,52.483101264177],[-1.4104105897706,52.4665662889779],[-1.42120999164671,52.4630289743289],[-1.45905317416489,52.4551580337385],[-1.50002558298674,52.4510383428143],[-1.51965491847479,52.4533419277927],[-1.52967710442915,52.4570877486033],[-1.53979081939549,52.4647986868735],[-1.54522870615797,52.4726014653185]]]}},{"type":"Feature","properties":{"name":"Rugby","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.46491357144704,52.3580775285269],[-1.46498344950176,52.367138403285],[-1.45905317416489,52.4551580337385],[-1.42266594471041,52.5315704029327],[-1.41734425186395,52.5344553070612],[-1.39512719080899,52.5270459228751],[-1.32508812135485,52.5010423245412],[-1.30594754120562,52.4933952805605],[-1.25783058976019,52.4538925815372],[-1.23675360283845,52.4360394953442],[-1.23644413534428,52.435727332155],[-1.20161328230779,52.3967317959132],[-1.17212636579044,52.3613009289764],[-1.21789741216418,52.2618036952701],[-1.23299880379763,52.2532588499543],[-1.30901531727689,52.2574734664414],[-1.41940775930447,52.3037535843654],[-1.45619918213479,52.3467772347763],[-1.46491357144704,52.3580775285269]]]}},{"type":"Feature","properties":{"name":"Stratford-on-Avon","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.96040736772155,52.1686717313137],[-1.96166886129646,52.1725290703112],[-1.93868701965673,52.2704978848159],[-1.93545357182612,52.2769665449454],[-1.88897350255566,52.3610931439567],[-1.87203384032481,52.3675985302351],[-1.83498003554301,52.3674038332426],[-1.80791009025338,52.366623456809],[-1.38915081198415,52.3008546157343],[-1.2878031010097,52.2736257371497],[-1.23299880379763,52.2532588499543],[-1.25477999303111,52.1988889675003],[-1.35776965526573,52.101310424564],[-1.52792904821891,51.9917543158507],[-1.5496712341503,51.9808596590458],[-1.61234247849955,51.9554034171782],[-1.66575430454863,51.9874888219864],[-1.9443024167711,52.1553331527715],[-1.96040736772155,52.1686717313137]]]}},{"type":"Feature","properties":{"name":"Warwick","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.77822576810609,52.3565665074572],[-1.77922436694685,52.3645399179904],[-1.60106738247379,52.3892994855589],[-1.46660878554623,52.3772040829588],[-1.40663863250335,52.3176722559088],[-1.43521535835732,52.2727880737056],[-1.50010483589777,52.2375633563233],[-1.52819878677112,52.2251503684082],[-1.57439755959193,52.2161959572715],[-1.62122663120606,52.2138066665691],[-1.761664701543,52.3080059531255],[-1.76807854102469,52.3238110700992],[-1.77575239671801,52.3479636776833],[-1.77822576810609,52.3565665074572]]]}},{"type":"Feature","properties":{"name":"Adur","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.36899617000409,50.8552815233775],[-0.371508079156642,50.8706680296709],[-0.364597872567908,50.874525774452],[-0.255303084256952,50.8715514534251],[-0.248977986983059,50.8706483107664],[-0.239752980304111,50.8619523263178],[-0.222906153132839,50.8390885916079],[-0.216617971698271,50.8275951943654],[-0.248135484191805,50.8247985600214],[-0.33229942820325,50.8175375993471],[-0.349426266399174,50.8225492305706],[-0.359138942558179,50.8355866624105],[-0.365916104291122,50.8473459870651],[-0.36899617000409,50.8552815233775]]]}},{"type":"Feature","properties":{"name":"Arun","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.761526292769063,50.7727158524187],[-0.763632800157432,50.7776787447252],[-0.755091993383259,50.7906853976602],[-0.654944510369044,50.9056787576394],[-0.617385108843538,50.905562050286],[-0.482842229556523,50.899096530345],[-0.388718475836793,50.8923456312719],[-0.363896226067984,50.888479674543],[-0.36352750691342,50.8762338306749],[-0.367453204005458,50.8605318030971],[-0.435941924138588,50.8031402283081],[-0.750543247252681,50.7569937345229],[-0.752568806466395,50.7580504862783],[-0.753731339796589,50.7594582998422],[-0.761526292769063,50.7727158524187]]]}},{"type":"Feature","properties":{"name":"Chichester","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.942576239196575,50.8153971829418],[-0.957581427612506,50.8906296881445],[-0.942110087824929,50.9428940861142],[-0.898507475250597,51.0176674465377],[-0.894505276084098,51.0234955921171],[-0.843670929195131,51.0662789562995],[-0.837290866288864,51.0692029549056],[-0.753480635682262,51.0864557098491],[-0.53497929663322,51.0935789223352],[-0.492127175324818,51.0944841769189],[-0.47842213199678,51.0665347741981],[-0.475653204861996,51.0564077255276],[-0.473194275922599,51.0338500047922],[-0.475893135899819,51.0208840648213],[-0.536400886301167,50.9133740706972],[-0.779775940984914,50.7277877576527],[-0.7891668480937,50.7223605168371],[-0.902039961498244,50.7727948555733],[-0.916824395101302,50.7803818274808],[-0.942576239196575,50.8153971829418]]]}},{"type":"Feature","properties":{"name":"Crawley","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.25461326381062,51.1390503685817],[-0.255167664563843,51.1441405976481],[-0.195921749409937,51.1623023175835],[-0.185297862155254,51.1648197208438],[-0.17670622529243,51.1668499726532],[-0.132959635268358,51.1588837320771],[-0.137015736326022,51.112999050712],[-0.145218154396569,51.1031805090516],[-0.150615867247981,51.0992506313955],[-0.160869518045177,51.0932009215532],[-0.161325572046038,51.0929391928114],[-0.172541766209116,51.0898956347909],[-0.195581109836526,51.0861473965161],[-0.211977567162676,51.086584504198],[-0.232490577974214,51.0973508250544],[-0.25461326381062,51.1390503685817]]]}},{"type":"Feature","properties":{"name":"Horsham","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.568366707539285,50.9342485801022],[-0.56878838776104,50.9423466452947],[-0.492127175324818,51.0944841769189],[-0.488519644888992,51.0973405849399],[-0.391524793518279,51.1165107863938],[-0.240824220057338,51.1431143862383],[-0.200274263901966,51.1390924662514],[-0.223783863677265,50.9117841373855],[-0.239238286310074,50.8678855967986],[-0.244970867103618,50.8638089043948],[-0.256579131963737,50.8623352673194],[-0.343336323602386,50.8629070936951],[-0.548712718778861,50.880075306784],[-0.561038073639796,50.8878503544162],[-0.568366707539285,50.9342485801022]]]}},{"type":"Feature","properties":{"name":"Mid Sussex","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.248659770651226,50.8730707787815],[-0.249081348544969,51.0249473507198],[-0.247085927745639,51.033428518441],[-0.211977567162676,51.086584504198],[-0.137571778320172,51.1421596105082],[-0.082613051363085,51.1426377476602],[-0.017786255579234,51.1411999553874],[0.027361224766083,51.1398505070994],[0.04456545831132,51.1106493987571],[-0.024604259008753,50.9800251742248],[-0.137140727458006,50.8845793041141],[-0.18773445855603,50.8685704699966],[-0.239238286310074,50.8678855967986],[-0.248659770651226,50.8730707787815]]]}},{"type":"Feature","properties":{"name":"Worthing","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.44365912425899,50.821459627672],[-0.446531773483826,50.8363258572344],[-0.446007008879058,50.8398542062517],[-0.422793813030102,50.860234940193],[-0.381266998793959,50.8632243034371],[-0.367453204005458,50.8605318030971],[-0.33229942820325,50.8175375993471],[-0.332696992966186,50.8174449925402],[-0.36011628854353,50.8112731843484],[-0.378322231589092,50.8079952574408],[-0.388391469458141,50.8066887279008],[-0.435941924138588,50.8031402283081],[-0.441936758208473,50.8173291752685],[-0.44365912425899,50.821459627672]]]}},{"type":"Feature","properties":{"name":"Bromsgrove","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-2.12405512062693,52.3145029140462],[-2.16770663043039,52.4237803511181],[-2.16485128257998,52.4302041413132],[-2.10524933915254,52.4442078989719],[-2.09328034075516,52.4452825223829],[-2.03788100010757,52.4415575551052],[-1.86874678259764,52.4047375099132],[-1.84559793546976,52.3994272467433],[-1.87038595185995,52.3126090511931],[-2.00245990914605,52.2795824171182],[-2.02325531495022,52.2780994981177],[-2.09168999868822,52.2885608696368],[-2.12405512062693,52.3145029140462]]]}},{"type":"Feature","properties":{"name":"Malvern Hills","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-2.62887068275684,52.2403491753744],[-2.66320577515059,52.3039371898238],[-2.4747702332673,52.3671455210521],[-2.45765251691188,52.3678244469603],[-2.41492339318484,52.3682547125976],[-2.31093194204397,52.340550090416],[-2.27388986097079,52.3289321407385],[-2.26641521822817,52.3236054648157],[-2.16492166656419,52.1428294584192],[-2.14879421748944,52.0996520716595],[-2.14997816782549,52.0754256062341],[-2.16472740060025,51.996073009777],[-2.25135998124032,51.9665649342157],[-2.30043302609069,51.9667752646008],[-2.32653298644337,51.9757878171901],[-2.62887068275684,52.2403491753744]]]}},{"type":"Feature","properties":{"name":"Redditch","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-2.01673935544796,52.2372751013875],[-2.01890981408891,52.2414715256662],[-2.01552960892091,52.2700022303517],[-2.00201768098981,52.2881394139607],[-1.97788925814592,52.309875986049],[-1.96957076167059,52.3150274807625],[-1.95509731740668,52.3209980543791],[-1.93469916750146,52.3241762978634],[-1.90938781418613,52.323514969823],[-1.8918685638989,52.3214255474996],[-1.87520703557667,52.3054821828913],[-1.88647936317105,52.2866325493725],[-1.93461083149063,52.2520178646591],[-1.96758525140064,52.2370254601366],[-1.99465550259195,52.2352712130543],[-2.01673935544796,52.2372751013875]]]}},{"type":"Feature","properties":{"name":"Worcester","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-2.24731113584007,52.16972329856],[-2.26187952931941,52.1819552690907],[-2.26183708282749,52.1898060788038],[-2.2605323953996,52.1963434095658],[-2.24327173178734,52.2218541571442],[-2.23347935650543,52.2267954242335],[-2.22247370652199,52.2313829580844],[-2.16763299226021,52.2163801642785],[-2.1577879984766,52.2133899922318],[-2.1711524336967,52.1845601192022],[-2.18861930351517,52.1710123801597],[-2.2176016823796,52.1619949521988],[-2.22762433800666,52.1636663277203],[-2.24731113584007,52.16972329856]]]}},{"type":"Feature","properties":{"name":"Wychavon","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-2.27481179416094,52.2715224333952],[-2.27489004299771,52.3087304721566],[-2.27177602792604,52.3326320535131],[-2.24568386647501,52.361036233594],[-2.23348699571286,52.3610771885379],[-2.12773393507284,52.3522409690981],[-1.93461083149063,52.2520178646591],[-1.75783398046533,52.1161296465127],[-1.8353091289734,52.0091624211653],[-1.83905030714283,52.0067831284916],[-2.13520211576955,51.9997043406281],[-2.14185772526002,51.9998152166019],[-2.15078195954122,52.0066280416879],[-2.17138093353095,52.0475735011324],[-2.27481179416094,52.2715224333952]]]}},{"type":"Feature","properties":{"name":"Wyre Forest","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-2.42716490558148,52.3218802985194],[-2.43650998244075,52.3240272277871],[-2.41515928211866,52.3789836988758],[-2.41047383637194,52.3871532921095],[-2.36352792484789,52.4394258309827],[-2.28738237113974,52.4553169285039],[-2.16770663043039,52.4237803511181],[-2.13403568819586,52.4103004976891],[-2.1262477824948,52.4033039263932],[-2.11921321829335,52.3578889377849],[-2.16679884520556,52.3183885232204],[-2.17453805431035,52.3166511955628],[-2.36328281500724,52.3148509529162],[-2.42716490558148,52.3218802985194]]]}},{"type":"Feature","properties":{"name":"St Albans","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.426557005671613,51.7443427839785],[-0.440584240768879,51.7868783599547],[-0.416312830933192,51.8357035178017],[-0.40485880669367,51.8406074632762],[-0.339485896124555,51.8496055501941],[-0.265056664477198,51.8338425094877],[-0.243428376979503,51.8127919099282],[-0.241998897791504,51.7432064349946],[-0.244427606620147,51.7318919236486],[-0.300019499980876,51.6965246094501],[-0.322332181395496,51.6934796375874],[-0.371998945371841,51.6875908504885],[-0.405872870202833,51.7137997688309],[-0.426557005671613,51.7443427839785]]]}},{"type":"Feature","properties":{"name":"Welwyn Hatfield","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.277427769273555,51.7780798438268],[-0.277542612573709,51.7977860029779],[-0.273535467739625,51.8353646307438],[-0.272521756953831,51.8404652948965],[-0.195763589731963,51.8590832507582],[-0.183546171624465,51.860443867016],[-0.172785294956129,51.8565877880352],[-0.092141320835119,51.7432085753237],[-0.10577913835527,51.6918756459932],[-0.118098711044608,51.6889625446564],[-0.149370126892843,51.6855183589113],[-0.163493271938224,51.6881150805638],[-0.23897170067197,51.7061417859005],[-0.255135647681091,51.7295373720626],[-0.275838010946972,51.7722493551879],[-0.277427769273555,51.7780798438268]]]}},{"type":"Feature","properties":{"name":"East Hertfordshire","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.138407683202453,51.7372758517354],[-0.183598135116009,51.815065965133],[-0.173584538635936,51.8753306310418],[-0.162186195515956,51.9203416801756],[-0.154798968092807,51.9295997185182],[-0.074656833944219,51.971164483687],[-0.023733803361704,51.9971696634496],[0.096460611163959,51.9843259691199],[0.183901307345926,51.8933671715309],[0.193409587892196,51.873252917691],[0.195594279900795,51.8680863196043],[0.172583035411387,51.8163043896198],[0.150766868798829,51.7970495131105],[-0.058350881204074,51.7346995613198],[-0.098653730173009,51.73594646627],[-0.138407683202453,51.7372758517354]]]}},{"type":"Feature","properties":{"name":"Stevenage","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.230535390111684,51.8988893755001],[-0.234371697047689,51.9052547272262],[-0.226166360297581,51.9281768363009],[-0.2200677500025,51.9309677601638],[-0.184606471302981,51.9324133792184],[-0.168074520856558,51.9279555739049],[-0.156346123203107,51.9148157327451],[-0.15301947970924,51.8989977879678],[-0.148420976910147,51.8692676944124],[-0.204203619966741,51.880138389396],[-0.2252753835282,51.893236155811],[-0.230535390111684,51.8988893755001]]]}},{"type":"Feature","properties":{"name":"East Suffolk","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[1.17767542194341,52.0224467219524],[1.15783883919243,52.0887516359453],[1.16946895373073,52.1312496797732],[1.34631012395329,52.4089979272838],[1.35663563132795,52.421483979582],[1.36375911839746,52.4275161799748],[1.42014985219332,52.4710466444201],[1.66567728189296,52.5496548394847],[1.68611385506773,52.5493801949502],[1.7025764111788,52.5444251788412],[1.74037086158233,52.5321004523097],[1.74174699479942,52.529402257068],[1.75290334760025,52.5059516096842],[1.76047301612095,52.4900263267534],[1.76142294803892,52.4874538383196],[1.76357118981522,52.4816350668861],[1.7601654189459,52.4737684841954],[1.72794878841983,52.4001088724696],[1.58232145753213,52.0906414743015],[1.57894539303224,52.0861478557961],[1.32021345294513,51.9334942637986],[1.18833162306344,52.0149988795902],[1.1784121951194,52.021715177143],[1.17767542194341,52.0224467219524]]]}},{"type":"Feature","properties":{"name":"West Suffolk","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[0.342684099441605,52.2423433461623],[0.340002513478712,52.2676878654228],[0.374777423612123,52.4097288652912],[0.445538699626893,52.4473717805671],[0.554821216225092,52.4560280663213],[0.666156137289512,52.4625058067551],[0.718793357770034,52.4496472058216],[0.936754388819869,52.3866734383145],[0.967471013014227,52.3701127866583],[0.967252605068106,52.3657349199946],[0.957339338255441,52.3403723825862],[0.836273784434032,52.1821694144928],[0.822494316232032,52.1745589306944],[0.656900901436426,52.0854416870867],[0.651877687893858,52.0831501331482],[0.542262964458395,52.0577593101052],[0.500488121231356,52.0538464741917],[0.404638263575799,52.0655023804364],[0.381803808187178,52.1027012943415],[0.342684099441605,52.2423433461623]]]}},{"type":"Feature","properties":{"name":"Somerset West and Taunton","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-3.83473753508469,51.1413826268167],[-3.83982066625529,51.1766737220128],[-3.72054918666876,51.2330675605237],[-3.55451084867313,51.2330877762059],[-3.13144137756214,51.2108381706449],[-3.05387273350212,51.2060265856385],[-2.88819348190725,51.0690987345502],[-2.88384423829354,51.0457873564886],[-2.98046119325378,50.9649923127111],[-3.05239884145015,50.9082765870699],[-3.13962619766317,50.8914611827896],[-3.14418579605699,50.8913960952003],[-3.60974550295832,51.0079832347218],[-3.80428873272582,51.1156852822548],[-3.82211474766656,51.1269538775696],[-3.83473753508469,51.1413826268167]]]}},{"type":"Feature","properties":{"name":"Bolton","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-2.56183020149949,53.5389003300727],[-2.62751053283129,53.5894420668497],[-2.62590677319225,53.5936832713985],[-2.6151581746337,53.6028238399848],[-2.59592575554149,53.6108149806104],[-2.43872438284017,53.6460454486624],[-2.37913211400899,53.6308703634519],[-2.36299442013161,53.610306610352],[-2.3381935436519,53.5336141395002],[-2.35438848105194,53.5262406598844],[-2.53132085785757,53.5229480191006],[-2.56183020149949,53.5389003300727]]]}},{"type":"Feature","properties":{"name":"Bury","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-2.37358896897132,53.5539141059641],[-2.38345547885541,53.625545382906],[-2.3712361929384,53.6670806553965],[-2.29895927555818,53.6666904790205],[-2.25100307688202,53.6072126540229],[-2.24556684976965,53.5991308887819],[-2.23654021314406,53.5592264564981],[-2.23416458732994,53.5433643217431],[-2.23722983443378,53.5388605089248],[-2.24856679537132,53.525115664704],[-2.25696400257154,53.5179472281819],[-2.29078671602898,53.5120216498843],[-2.30225967808431,53.5170874756571],[-2.3381935436519,53.5336141395002],[-2.37358896897132,53.5539141059641]]]}},{"type":"Feature","properties":{"name":"Manchester","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-2.31399816114173,53.3574246421479],[-2.31991901980795,53.4116235539266],[-2.26846028363433,53.5371019555575],[-2.25875920490643,53.5431545576291],[-2.24802079978758,53.5441597369606],[-2.21872522360518,53.5439068290273],[-2.17021558446743,53.5275981949177],[-2.15918767614258,53.5221269071793],[-2.15624343878206,53.5158007472432],[-2.14686336966403,53.4674977464222],[-2.14910759375136,53.4605729821715],[-2.24079008412411,53.3595742669914],[-2.28793341075338,53.3430861116573],[-2.30166163948606,53.3402241854423],[-2.31399816114173,53.3574246421479]]]}},{"type":"Feature","properties":{"name":"Oldham","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-2.17826647567308,53.5067674416539],[-2.18601421230859,53.529059398541],[-2.17199289755819,53.5582322937222],[-2.15658095529971,53.5822882663664],[-2.11063766856673,53.5997088234209],[-2.02681573905277,53.6241671470048],[-2.00947078713106,53.6167795111392],[-1.9128846428011,53.5516436149553],[-1.90962083195551,53.5383909865468],[-1.91676643607638,53.5144957600166],[-1.92197284577495,53.5099546848918],[-1.95133267475833,53.5041988388905],[-2.13622548060328,53.4919041207539],[-2.16303024605401,53.4928491976846],[-2.17551298786569,53.5026503594651],[-2.17826647567308,53.5067674416539]]]}},{"type":"Feature","properties":{"name":"Rochdale","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-2.28143913029138,53.5827432666351],[-2.2824382077572,53.5867228605034],[-2.26986609501716,53.6461366085906],[-2.26144134783303,53.654123190461],[-2.23657496233667,53.6670071610434],[-2.22582386681298,53.6707678527565],[-2.13412727235101,53.6857340308733],[-2.05124217318998,53.6836917604439],[-2.03570939134714,53.659327667816],[-2.02681573905277,53.6241671470048],[-2.03582706619567,53.6029323762618],[-2.18601421230859,53.529059398541],[-2.23722983443378,53.5388605089248],[-2.28143913029138,53.5827432666351]]]}},{"type":"Feature","properties":{"name":"Salford","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-2.47815332906477,53.4434174890128],[-2.48971382174961,53.460282297438],[-2.4541130617134,53.5262220244723],[-2.43576820515121,53.5419834555084],[-2.34592821065474,53.5374530620972],[-2.25696400257154,53.5179472281819],[-2.2452274841905,53.5121567078394],[-2.24533630556405,53.5049108697971],[-2.24563811115397,53.4851402303623],[-2.26532011730774,53.4727290184161],[-2.28389255715399,53.4653419832458],[-2.44937818830286,53.4158914442799],[-2.47815332906477,53.4434174890128]]]}},{"type":"Feature","properties":{"name":"Stockport","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-2.24079008412411,53.3595742669914],[-2.24682802957703,53.3960599942886],[-2.16604350557302,53.453648366181],[-2.15845128388528,53.4549368626877],[-2.0262554175393,53.4298651614286],[-1.99232947055908,53.4151931330374],[-2.00464286724195,53.3863272775011],[-2.01708408317754,53.3778327563457],[-2.031058463243,53.3702623861094],[-2.0611634123619,53.3584382505572],[-2.15253543959371,53.3285532755778],[-2.15985776182758,53.3281040222295],[-2.18487676886287,53.3326914197545],[-2.24079008412411,53.3595742669914]]]}},{"type":"Feature","properties":{"name":"Tameside","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-2.15845128388528,53.4549368626877],[-2.16753738018323,53.4810959904391],[-2.1659689329096,53.4915732741052],[-2.16303024605401,53.4928491976846],[-2.0921225397267,53.5206148865437],[-2.05693618497193,53.530676519898],[-2.02679923729576,53.5294264617958],[-1.99692731145345,53.5220652942898],[-1.96338598926022,53.509827260669],[-1.98153249272799,53.4645050571844],[-1.98690112931495,53.4543163401689],[-2.00421605197447,53.4359217858561],[-2.0262554175393,53.4298651614286],[-2.03906836529363,53.4271821929147],[-2.08300714770683,53.4268314915697],[-2.14169023568556,53.4382511328352],[-2.15845128388528,53.4549368626877]]]}},{"type":"Feature","properties":{"name":"Trafford","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-2.47104407233731,53.3923379171296],[-2.47845617870327,53.3962182008363],[-2.39564437461677,53.4588397469859],[-2.36907469600764,53.4692655027925],[-2.36212078314205,53.4716992381104],[-2.35217725616451,53.4747251912188],[-2.32946689531268,53.4799946382227],[-2.31920313273669,53.4796514400232],[-2.26532011730774,53.4727290184161],[-2.25376421288665,53.4627607010993],[-2.25368727534751,53.4599456438348],[-2.28634280926889,53.3758471168032],[-2.29859454979864,53.3608249460527],[-2.31399816114173,53.3574246421479],[-2.32342362533264,53.3582668293845],[-2.36502717938874,53.3631059713324],[-2.47104407233731,53.3923379171296]]]}},{"type":"Feature","properties":{"name":"Wigan","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-2.72302700403764,53.510003003997],[-2.73052451043225,53.5205976080495],[-2.71922182910363,53.5761114904479],[-2.68931258757785,53.6043028419438],[-2.63616105877765,53.6082906388892],[-2.42163691605794,53.5199278662091],[-2.41534425723608,53.5120453033638],[-2.43446941523023,53.4650444080407],[-2.5767428316775,53.446057209294],[-2.58331871677147,53.4488719056986],[-2.61311107698976,53.4617748312379],[-2.72302700403764,53.510003003997]]]}},{"type":"Feature","properties":{"name":"Knowsley","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-2.8905423379989,53.4069261449941],[-2.92261510760143,53.4749832157279],[-2.91955921218475,53.4820728835894],[-2.8984196166973,53.5008151488443],[-2.88798948091431,53.5038316529092],[-2.8733324381136,53.5000393451111],[-2.8498364247934,53.4931391728108],[-2.82496446470994,53.4852092183666],[-2.80440775963104,53.4672364378258],[-2.74517465588857,53.4020967259185],[-2.74339554539956,53.3952851545635],[-2.74814169744091,53.3885013591145],[-2.78730169890452,53.3562903954798],[-2.81880391042643,53.3480007286832],[-2.84040558010117,53.3473311035908],[-2.84633865216938,53.3539814292757],[-2.8905423379989,53.4069261449941]]]}},{"type":"Feature","properties":{"name":"Liverpool","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-3.00176306297194,53.4110490235582],[-3.00862063658468,53.4378554725726],[-2.96984182394178,53.465977397335],[-2.95630659000364,53.4729934783111],[-2.92261510760143,53.4749832157279],[-2.90592876894377,53.4701786953365],[-2.89144033887932,53.4631156094759],[-2.86843180578277,53.449947483463],[-2.82195480947219,53.3806670450162],[-2.81880391042643,53.3480007286832],[-2.81877988191501,53.339771534052],[-2.82575690218936,53.3318139402841],[-2.83641028510294,53.3270180230687],[-2.85497271766899,53.3274716915791],[-2.8781584032105,53.3341988138049],[-2.96929985749059,53.3758042875494],[-2.98497258192719,53.3865033554766],[-2.99506094505106,53.4009260909557],[-3.00176306297194,53.4110490235582]]]}},{"type":"Feature","properties":{"name":"St. Helens","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-2.81871177202822,53.4668910846076],[-2.82496446470994,53.4852092183666],[-2.82259023750594,53.5051205000939],[-2.81674018026807,53.5121744967699],[-2.78247648840079,53.531430197881],[-2.73052451043225,53.5205976080495],[-2.71000708874071,53.5146418520621],[-2.66632160468633,53.4997681178983],[-2.61213826989975,53.4811380914232],[-2.58397756839392,53.4538779376162],[-2.5767428316775,53.446057209294],[-2.58459660205676,53.4403931211141],[-2.67631721274984,53.3876193660995],[-2.69063280067745,53.3853882186661],[-2.70504209395206,53.3867457528089],[-2.78677597011541,53.4011875676072],[-2.80502953494485,53.4386600052671],[-2.81871177202822,53.4668910846076]]]}},{"type":"Feature","properties":{"name":"Sefton","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-3.10147987878623,53.5408076731774],[-3.10546969372255,53.5515151227781],[-3.10051940107972,53.5693935592256],[-3.01409163674866,53.679129034507],[-2.97714577059521,53.6965349909235],[-2.96527621527027,53.6982022386331],[-2.95523031951581,53.6964959967848],[-2.94678566949808,53.6880175654031],[-2.88120734094307,53.5200020107629],[-2.88798948091431,53.5038316529092],[-2.89957235016058,53.4928141006124],[-2.91684330786844,53.4792613894898],[-2.92261510760143,53.4749832157279],[-2.97530723079532,53.4432470183631],[-2.98519479580744,53.441577584112],[-3.00862063658468,53.4378554725726],[-3.04042291475171,53.4647457969497],[-3.04145607648159,53.4656287475057],[-3.10147987878623,53.5408076731774]]]}},{"type":"Feature","properties":{"name":"Wirral","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-3.19851887570534,53.3757472181922],[-3.20036786484447,53.3875152778136],[-3.17760588455519,53.3997272778065],[-3.05671380257696,53.4400930158996],[-3.04032032385677,53.4428974501825],[-2.92876393030535,53.3084068394297],[-2.9316025858093,53.3060687965256],[-2.96803333271532,53.3012551099336],[-3.01283698795953,53.298970797262],[-3.11072293929503,53.2962983182363],[-3.19057115642075,53.3682434485254],[-3.19851887570534,53.3757472181922]]]}},{"type":"Feature","properties":{"name":"Barnsley","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.81952377656311,53.5134280919329],[-1.82222878111984,53.5210909218023],[-1.80428301600162,53.5370133734778],[-1.59115126334538,53.6067811932954],[-1.57198440210244,53.6086091689699],[-1.44762384495194,53.612736992566],[-1.37670296002844,53.606478418801],[-1.35611963714612,53.5953662145859],[-1.29745679856708,53.5513818235849],[-1.27572648676218,53.5298373129109],[-1.27650448582045,53.520633252685],[-1.28128337823297,53.5164922779904],[-1.5263640314224,53.4390742467559],[-1.5329268641654,53.4383153120021],[-1.80147063244941,53.4809917607504],[-1.81952377656311,53.5134280919329]]]}},{"type":"Feature","properties":{"name":"Doncaster","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.31322926047695,53.5019888226911],[-1.34873341137308,53.5833476300582],[-1.21564716881913,53.6419826850635],[-1.20982718259376,53.6431641296687],[-0.990459547125056,53.6612232816087],[-0.946844642823067,53.6591417674831],[-0.865338726025611,53.6377082330427],[-0.892270343424618,53.5376159945953],[-0.995669798894032,53.4369266843309],[-1.01434673955409,53.4262954965662],[-1.10822686375117,53.405881775697],[-1.13339767628057,53.4087430373407],[-1.23809855203463,53.4327545117386],[-1.25075915244201,53.4407717292611],[-1.29701155388408,53.4751671052503],[-1.31322926047695,53.5019888226911]]]}},{"type":"Feature","properties":{"name":"Rotherham","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.44292944404854,53.4472783571977],[-1.4552192140429,53.471750945559],[-1.4522066569649,53.4849288644871],[-1.4409332348754,53.4911076363099],[-1.37905012207418,53.514526485737],[-1.36888195187445,53.5152231342956],[-1.31244277467456,53.5137944816166],[-1.13601973902786,53.4244825565683],[-1.11804557196485,53.4109417011444],[-1.11604100602787,53.4073493537968],[-1.11557938044441,53.3971857499007],[-1.13871810210376,53.3413828117799],[-1.2032390468772,53.3042232405841],[-1.24332977849925,53.3016490547021],[-1.25429413883004,53.3017548282498],[-1.28201141324174,53.3094625902199],[-1.29567816421914,53.3150369724564],[-1.32165867760413,53.3256874313088],[-1.39118030696998,53.3833186382692],[-1.44292944404854,53.4472783571977]]]}},{"type":"Feature","properties":{"name":"Sheffield","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.74671906273467,53.4261649304386],[-1.80147063244941,53.4809917607504],[-1.7110094090154,53.5012594585658],[-1.70108876364153,53.5031209760333],[-1.66905289349772,53.5006703206656],[-1.49474873428307,53.4862692667841],[-1.46689511787317,53.4780596211646],[-1.4552192140429,53.471750945559],[-1.38172968542074,53.4254456732161],[-1.33207644395998,53.3524148391351],[-1.32556766635791,53.3369562686665],[-1.32466917492843,53.3288100139839],[-1.3402595397932,53.3155346848568],[-1.5367688622067,53.3047486744278],[-1.55845761275355,53.3053224657301],[-1.59909327897252,53.3113181996876],[-1.6254937445137,53.3164239788115],[-1.63272698677736,53.3208392129653],[-1.74671906273467,53.4261649304386]]]}},{"type":"Feature","properties":{"name":"Newcastle upon Tyne","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.76980280360302,54.9813900292368],[-1.77568505202114,54.9896304456867],[-1.77384237281685,55.0041394758906],[-1.71377414645177,55.0654631338258],[-1.70457986894502,55.0709285669782],[-1.64768125804879,55.07938870152],[-1.59263768532565,55.0389403658381],[-1.53061208500245,54.9840923898839],[-1.54075192424966,54.9630026905033],[-1.55030688264821,54.9608463194801],[-1.55515437598374,54.9604545634902],[-1.63945377452031,54.9603502212251],[-1.72023658178279,54.9682021812299],[-1.76980280360302,54.9813900292368]]]}},{"type":"Feature","properties":{"name":"North Tyneside","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.63850785874478,55.0415513474158],[-1.63971347687119,55.0440818042426],[-1.63788917426985,55.0647693044458],[-1.63290182638717,55.0659018938537],[-1.47071716901509,55.0744860778803],[-1.46198677877224,55.07457436562],[-1.45138733347301,55.0700602654346],[-1.40349208930986,55.01466452803],[-1.45650552441973,54.9885661980219],[-1.53998584190862,54.9833186415913],[-1.56257082397792,54.992240562162],[-1.60026644234707,55.0098384131371],[-1.63850785874478,55.0415513474158]]]}},{"type":"Feature","properties":{"name":"South Tyneside","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.53069938878032,54.9579779275242],[-1.53436934989812,54.9648831138497],[-1.52838827497977,54.9821124079534],[-1.42906385461312,55.0073209582531],[-1.42383599475655,55.0081572899477],[-1.41415671034667,55.005275014779],[-1.38113262776522,54.9857735929164],[-1.36074054011455,54.9713319663969],[-1.35663012910714,54.9651987897589],[-1.35367572775507,54.9586040317833],[-1.35380580957644,54.9568260467571],[-1.36397526025229,54.9440687384364],[-1.3756833106135,54.936909974317],[-1.41937079278914,54.9299239966335],[-1.4835874722974,54.9283688788392],[-1.51121751654077,54.9316658784504],[-1.53069938878032,54.9579779275242]]]}},{"type":"Feature","properties":{"name":"Sunderland","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.56180965217131,54.8757167569592],[-1.56889133560984,54.9246247988281],[-1.55670460347322,54.92997809202],[-1.5273468842718,54.9330640844893],[-1.3743489082481,54.9435360704099],[-1.36397526025229,54.9440687384364],[-1.35344185387766,54.9183998042039],[-1.35067694975135,54.9059579017582],[-1.34740366298581,54.8605661447213],[-1.42254772949499,54.8031731312525],[-1.43753071909599,54.8005273203859],[-1.45460147505553,54.800021898569],[-1.49350840589928,54.799997827197],[-1.56180965217131,54.8757167569592]]]}},{"type":"Feature","properties":{"name":"Birmingham","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-2.01135254232925,52.3861805026382],[-2.03220823936371,52.4015480230252],[-2.01324348263751,52.4621907903812],[-1.96023750482389,52.5313480117817],[-1.85279623242263,52.6024926868058],[-1.83237033744878,52.6078065700331],[-1.80846977540344,52.6030903135623],[-1.7965280894026,52.5991229386816],[-1.76354616286319,52.5709791319543],[-1.72885044838865,52.5244674374639],[-1.75497780141399,52.4562841016905],[-1.76139223116363,52.4509230024101],[-1.84360880287724,52.4105238031483],[-1.8826972850066,52.3998129649372],[-1.93431470610424,52.3872363795687],[-1.99451104210707,52.3811811647072],[-2.01135254232925,52.3861805026382]]]}},{"type":"Feature","properties":{"name":"Coventry","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.60106738247379,52.3892994855589],[-1.61444487489606,52.4279648374589],[-1.60827084648276,52.4388409749033],[-1.59492116060893,52.4606897378561],[-1.58986310702649,52.4619121090901],[-1.53979081939549,52.4647986868735],[-1.4639211641373,52.4583176543853],[-1.44364719055357,52.4474219652077],[-1.42414571781375,52.4340002038467],[-1.43224781406913,52.3958774478883],[-1.46040192707784,52.3748079048743],[-1.46401360334253,52.3732671682518],[-1.55555538969844,52.3650403030653],[-1.60106738247379,52.3892994855589]]]}},{"type":"Feature","properties":{"name":"Dudley","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-2.18865957656525,52.494507322495],[-2.1917488108249,52.5033970774824],[-2.18798239526355,52.5083629817049],[-2.13348672789088,52.5540666639507],[-2.12759765825411,52.5582068280222],[-2.07804402736844,52.5569250428155],[-2.01846829664569,52.4744262183369],[-2.01324348263751,52.4621907903812],[-2.01303817240331,52.450373370073],[-2.01699028095924,52.4326829309962],[-2.02970627999278,52.427301530946],[-2.14357493565654,52.4260547328205],[-2.16485128257998,52.4302041413132],[-2.18865957656525,52.494507322495]]]}},{"type":"Feature","properties":{"name":"Sandwell","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-2.07220955043117,52.4607425849982],[-2.09708318118932,52.4683939028838],[-2.07926934434774,52.5354455468187],[-2.07394205771191,52.5498796749801],[-2.02704866346928,52.5646064715491],[-2.01097848483523,52.5690653353549],[-1.95406892213995,52.5622119737263],[-1.94230925174648,52.5607613590017],[-1.93260232119757,52.5593295501874],[-1.91815749708244,52.5473065302947],[-1.93813215324312,52.4984247557075],[-1.94302844199936,52.4915121309864],[-1.951566756486,52.482826199578],[-1.96574528552979,52.4733620377617],[-1.98171395236995,52.4662913765315],[-2.01324348263751,52.4621907903812],[-2.07220955043117,52.4607425849982]]]}},{"type":"Feature","properties":{"name":"Solihull","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.77575239671801,52.3479636776833],[-1.87203384032481,52.3675985302351],[-1.86874678259764,52.4047375099132],[-1.8647711831032,52.4109986327536],[-1.79929459260207,52.5036996247193],[-1.79165177100983,52.5091703711046],[-1.76848391189917,52.5142437317158],[-1.75352319084031,52.5129668960538],[-1.61421254511723,52.4629996782311],[-1.59548725924308,52.4559197590616],[-1.59522861041217,52.4399264159155],[-1.60106738247379,52.3892994855589],[-1.60801986400734,52.3763552228854],[-1.62250698532454,52.3661644313339],[-1.64841803963759,52.3567433964995],[-1.69388500073929,52.3510133572142],[-1.77575239671801,52.3479636776833]]]}},{"type":"Feature","properties":{"name":"Walsall","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-2.06195257793633,52.55824905929],[-2.07779302176381,52.5861278943407],[-2.05071786918317,52.6205226805822],[-1.95994479808559,52.6620371838393],[-1.95456973548851,52.6626411711504],[-1.93351994278229,52.6615291028358],[-1.91284218201852,52.6582337072495],[-1.90865983061504,52.6540000147135],[-1.88514254979993,52.612671402952],[-1.87256445035415,52.5849446957769],[-1.8785192231514,52.5696355825939],[-1.8997930437395,52.5549992684976],[-1.91815749708244,52.5473065302947],[-2.04846229624456,52.5517421897383],[-2.05098246778017,52.5527291152837],[-2.06195257793633,52.55824905929]]]}},{"type":"Feature","properties":{"name":"Wolverhampton","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-2.20180321025657,52.5787799031303],[-2.20687697905067,52.5865833477777],[-2.19519867207528,52.6070659086818],[-2.15298298978926,52.6297528971979],[-2.13164409930699,52.6376230837758],[-2.11824568737562,52.6377084218431],[-2.05071786918317,52.6205226805822],[-2.0480217334804,52.6160352343492],[-2.05098246778017,52.5527291152837],[-2.06146913708656,52.546922913777],[-2.10775972190216,52.5441215678079],[-2.17304882126826,52.5546408789932],[-2.20180321025657,52.5787799031303]]]}},{"type":"Feature","properties":{"name":"Bradford","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-2.03161698874053,53.8091030761119],[-2.06125057169733,53.8256354819636],[-2.04613032171259,53.8501412464577],[-1.96618060011997,53.9515581085872],[-1.95068342650275,53.9567427305714],[-1.88224199432317,53.9631370172727],[-1.87872339574187,53.9623919921242],[-1.74562604180612,53.9230037629874],[-1.72721624906541,53.9101971483664],[-1.64062350674453,53.779976471293],[-1.64072200126971,53.7737543355319],[-1.65161425772186,53.7673580766617],[-1.68162088419758,53.7564689245215],[-1.77371111795989,53.7243564465797],[-1.85545631955713,53.7483079538574],[-1.98084882466309,53.786352988811],[-2.03161698874053,53.8091030761119]]]}},{"type":"Feature","properties":{"name":"Calderdale","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-2.16258292564966,53.6992212453444],[-2.17329358668748,53.7230116839111],[-2.12835851818789,53.7990313038972],[-2.11227899052983,53.8057083891249],[-2.06125057169733,53.8256354819636],[-1.80878570781591,53.7638884615849],[-1.75363679123141,53.7258602592013],[-1.73682458880605,53.7141320421837],[-1.72722486311416,53.6828112501195],[-1.73140556746262,53.6803623930692],[-1.97950815822871,53.6230595588856],[-2.00947078713106,53.6167795111392],[-2.02303595762586,53.6158394769092],[-2.1422575495828,53.6780058071684],[-2.14632807589891,53.682231530348],[-2.16258292564966,53.6992212453444]]]}},{"type":"Feature","properties":{"name":"Kirklees","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.98164621160679,53.5893378442983],[-2.00947078713106,53.6167795111392],[-2.00454189286171,53.6224098908721],[-1.74735162839978,53.7466913736386],[-1.72221755582591,53.7588336387032],[-1.70487965650417,53.7648483550099],[-1.63864455025782,53.7461555772128],[-1.58209311049843,53.7138834807769],[-1.57112226540619,53.7064046046417],[-1.58519142647103,53.6005318957118],[-1.58797836748171,53.5934865509527],[-1.59619871324849,53.5769869083184],[-1.61563188440644,53.5630283217832],[-1.82222878111984,53.5210909218023],[-1.84182082823365,53.5199087802658],[-1.89410949217378,53.5336117793005],[-1.90962083195551,53.5383909865468],[-1.94272585126694,53.5616412941119],[-1.98164621160679,53.5893378442983]]]}},{"type":"Feature","properties":{"name":"Leeds","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.7119957394645,53.7830697684932],[-1.8004211776478,53.885962044243],[-1.79496289062895,53.8946278494752],[-1.78746483055356,53.8969004813653],[-1.71643260299151,53.9176348144794],[-1.70708308020122,53.9191312559919],[-1.39718249968378,53.9425351723531],[-1.34040516519185,53.9458881880291],[-1.30696183943773,53.9344240754619],[-1.29418007558142,53.92706422306],[-1.29041541713377,53.763078722496],[-1.30204330436809,53.7417246404076],[-1.30820402443328,53.739105158318],[-1.32308634482718,53.7348235857369],[-1.39895077751177,53.719388258808],[-1.55932285722572,53.698983710792],[-1.62337162846243,53.7185469364097],[-1.68162088419758,53.7564689245215],[-1.7119957394645,53.7830697684932]]]}},{"type":"Feature","properties":{"name":"Wakefield","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.62316513829203,53.6381079103768],[-1.62409704764272,53.654100723918],[-1.61521688403456,53.6775811411908],[-1.59837596840081,53.699780779735],[-1.51322165280209,53.7275336766751],[-1.50563343659481,53.7291492102579],[-1.30204330436809,53.7417246404076],[-1.21981187384993,53.7144190177334],[-1.19881814854623,53.7007329060597],[-1.19901535684986,53.6948883427854],[-1.22789207754961,53.6173428618018],[-1.24720997338638,53.6007051895756],[-1.25802813621318,53.5919974498377],[-1.28228538741061,53.5830203223616],[-1.29864383186131,53.5774555145084],[-1.3078197080881,53.5753669707637],[-1.53078144404236,53.5931293799247],[-1.53540387734426,53.5938789680584],[-1.58200758120623,53.6057277049274],[-1.58645325959614,53.6071740555695],[-1.6075137790051,53.6195728683013],[-1.61457196538147,53.6259260243021],[-1.62316513829203,53.6381079103768]]]}},{"type":"Feature","properties":{"name":"Gateshead","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-1.82064075368048,54.9057781862755],[-1.85272134451354,54.9174135398416],[-1.8336523880921,54.9532996400882],[-1.81280740471121,54.9762855689695],[-1.78851501661457,54.9842673636274],[-1.59380726904834,54.9698126612537],[-1.53436934989812,54.9648831138497],[-1.52934659554587,54.9633545772866],[-1.51898295597991,54.9592648839714],[-1.51629377176596,54.9549759106934],[-1.51121751654077,54.9316658784504],[-1.55941079225447,54.8820371188128],[-1.57990946563576,54.8777701487896],[-1.64368946248493,54.878804042423],[-1.65098204958232,54.8796671361877],[-1.82064075368048,54.9057781862755]]]}},{"type":"Feature","properties":{"name":"City of London","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.111474950392423,51.5107577789505],[-0.113795291953892,51.5182593202663],[-0.097382426222659,51.5215942974358],[-0.078533782056433,51.5215053445643],[-0.074003284602797,51.514478466161],[-0.073052076952636,51.511808326193],[-0.074544629308776,51.5099541991881],[-0.078702351241859,51.5076784373144],[-0.111474950392423,51.5107577789505]]]}},{"type":"Feature","properties":{"name":"Barking and Dagenham","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[0.069204336909277,51.5363480056376],[0.068290614506543,51.5442409366187],[0.068352609504004,51.5443920331686],[0.126386612530658,51.586725221955],[0.141935434696006,51.5965591757346],[0.148206068251708,51.5989684765055],[0.185180463309676,51.565513082632],[0.190169325302629,51.5527206970396],[0.159048794054703,51.5120717943002],[0.100509379900435,51.5145693106894],[0.096934223412043,51.5163260924743],[0.072598168002661,51.5307518462806],[0.069204336909277,51.5363480056376]]]}},{"type":"Feature","properties":{"name":"Barnet","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.253106306419443,51.5724409222569],[-0.304460768242916,51.6320337627611],[-0.304455276938232,51.6363500485845],[-0.249348030054731,51.6560578127185],[-0.199871677333062,51.6701702737025],[-0.182085377482676,51.6686040585302],[-0.154761728709057,51.6555335830556],[-0.129121091209286,51.6322690372456],[-0.13876012089654,51.610194942666],[-0.144469452461756,51.6001287754514],[-0.157158754391415,51.5862030538117],[-0.171259811936078,51.5724322033182],[-0.173435927702792,51.5711019804725],[-0.199385017692441,51.5561952331522],[-0.213476554588311,51.555188542315],[-0.247000297052359,51.5686222543882],[-0.253106306419443,51.5724409222569]]]}},{"type":"Feature","properties":{"name":"Bexley","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[0.095128288955898,51.4200833602834],[0.07536733825141,51.4319850061927],[0.078854796679342,51.4591494486054],[0.082313074249685,51.4666413163448],[0.118787744080156,51.5113197929839],[0.128620890855794,51.5132941547309],[0.166190946323591,51.5036686354597],[0.217644190043408,51.4804485903159],[0.219202439132856,51.4796095648107],[0.210612945126035,51.4624813117235],[0.200233863315772,51.4525964315834],[0.152932433172376,51.4087084822957],[0.148869409057703,51.4084291289611],[0.11312430922989,51.4129061187317],[0.104491396528712,51.4152210873909],[0.095128288955898,51.4200833602834]]]}},{"type":"Feature","properties":{"name":"Brent","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.307478059578533,51.533066903594],[-0.335562197062358,51.5565845954689],[-0.326668726306194,51.5785999754112],[-0.290398256183297,51.5935703158442],[-0.287056114337917,51.5945645680676],[-0.267131470058722,51.6003730690269],[-0.220632876744405,51.5616707747097],[-0.203711511004685,51.5469596248513],[-0.191458547220205,51.5362913453065],[-0.197339667992266,51.5278963565528],[-0.216004504140691,51.5279299344382],[-0.282944992140647,51.5288440916386],[-0.30270856525399,51.5319837207285],[-0.307478059578533,51.533066903594]]]}},{"type":"Feature","properties":{"name":"Bromley","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[0.015009378507288,51.2917860709615],[-0.080737014768685,51.4160158409551],[-0.078294493918319,51.420604880078],[-0.073919049033279,51.4261512868959],[0.030603467757381,51.4443170256634],[0.083213104438857,51.4298686449399],[0.148869409057703,51.4084291289611],[0.161313215594569,51.3923697290386],[0.151622150978868,51.3683837981381],[0.141287334301148,51.3497791064572],[0.136958109807481,51.3441746039777],[0.091184788886724,51.29682736787],[0.081579679005318,51.2918392351545],[0.058510226943699,51.2893537137148],[0.015009378507288,51.2917860709615]]]}},{"type":"Feature","properties":{"name":"Camden","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.191458547220205,51.5362913453065],[-0.213476554588311,51.555188542315],[-0.182108655035085,51.5687238900824],[-0.171259811936078,51.5724322033182],[-0.142389915041378,51.5691229084999],[-0.105322049415006,51.518544582242],[-0.111581077794617,51.5153396471014],[-0.129041448588674,51.5134527300329],[-0.188748581031736,51.5345256984123],[-0.191458547220205,51.5362913453065]]]}},{"type":"Feature","properties":{"name":"Croydon","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.157735020247375,51.3044275103801],[-0.161879752207213,51.3196257050228],[-0.131508189010393,51.4049290291027],[-0.127722267477981,51.4123206689225],[-0.112624082113261,51.4232432373017],[-0.096846785622042,51.4226759472542],[-0.078562121189969,51.4198751949025],[-0.052964392012261,51.4014610932399],[-0.036498458892205,51.3884608124397],[-0.026794772846408,51.3793741724316],[-0.005306356838984,51.3525782892825],[0.003311737022468,51.3321555626221],[0.002294720966143,51.3291388513245],[-0.117775245875414,51.2870948097597],[-0.124292859195443,51.2867586590943],[-0.151023184109817,51.3007219321699],[-0.157735020247375,51.3044275103801]]]}},{"type":"Feature","properties":{"name":"Ealing","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.406884732410765,51.4996945375717],[-0.419454309688641,51.5383596245981],[-0.416757484631925,51.5401621734173],[-0.39869991765403,51.5478923357616],[-0.377786868951508,51.554987669241],[-0.34753293834007,51.5596851851861],[-0.335562197062358,51.5565845954689],[-0.246287507126217,51.5327541192766],[-0.245072052928578,51.5067701091961],[-0.245679355712493,51.5046261673417],[-0.255409300744252,51.494978183816],[-0.26890043347817,51.4940118122259],[-0.311902608517679,51.4919702688959],[-0.371851247572024,51.4904707325442],[-0.406884732410765,51.4996945375717]]]}},{"type":"Feature","properties":{"name":"Enfield","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.144510483515812,51.6154872034944],[-0.185429286574437,51.6635330272543],[-0.182085377482676,51.6686040585302],[-0.163493271938224,51.6881150805638],[-0.10577913835527,51.6918756459932],[-0.083910020064384,51.6899650044714],[-0.011918676012088,51.6808778146802],[-0.010328400591473,51.676664671279],[-0.009831421729795,51.6617704482379],[-0.011837258196909,51.6488475117328],[-0.0122587363441,51.6462340740994],[-0.014766387544593,51.6367390522639],[-0.016809087731401,51.6335288975069],[-0.033995148190473,51.6094884308111],[-0.041426027272963,51.6056328600517],[-0.115623127779697,51.6084286353437],[-0.13876012089654,51.610194942666],[-0.144510483515812,51.6154872034944]]]}},{"type":"Feature","properties":{"name":"Greenwich","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.022792600768894,51.4744630495243],[-0.026373868245041,51.4815084128844],[-0.02430585939016,51.4852044901356],[0.000852384060338,51.5045242753471],[0.118787744080156,51.5113197929839],[0.120975422868598,51.5008002965361],[0.124185321945107,51.4768471166998],[0.07536733825141,51.4319850061927],[0.063228224450872,51.4242033374641],[0.058225702021072,51.4248830083464],[0.021509139296262,51.4427353133445],[-0.01717853882122,51.4693432634176],[-0.022792600768894,51.4744630495243]]]}},{"type":"Feature","properties":{"name":"Hackney","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.097007277512651,51.53298432942],[-0.104370616733993,51.5647782736229],[-0.097637732275544,51.5736548617879],[-0.085661658737207,51.5750398010949],[-0.061158574989238,51.5777860362647],[-0.03003074788377,51.5613653171739],[-0.017164997446645,51.5516761847925],[-0.01714003298197,51.5515773128463],[-0.016549676137034,51.5433298677014],[-0.078533782056433,51.5215053445643],[-0.085191595074603,51.520336203493],[-0.097007277512651,51.53298432942]]]}},{"type":"Feature","properties":{"name":"Hammersmith and Fulham","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.253060864941531,51.5014009187711],[-0.255067207454281,51.5043209720364],[-0.251800085186841,51.5221065758378],[-0.246287507126217,51.5327541192766],[-0.233818470091464,51.5323339940026],[-0.228478855909725,51.5303545050421],[-0.179438042764162,51.4775199243473],[-0.182317007249174,51.4718710962267],[-0.182357595596313,51.4718128335764],[-0.185901483695399,51.4673771924397],[-0.19737486402442,51.4652092462899],[-0.20931714204621,51.4660909484408],[-0.211615625773053,51.4664469946666],[-0.214265733641228,51.4679991340157],[-0.216664071246001,51.4695696729317],[-0.243587037964877,51.4888646811721],[-0.253060864941531,51.5014009187711]]]}},{"type":"Feature","properties":{"name":"Haringey","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.142389915041378,51.5691229084999],[-0.171259811936078,51.5724322033182],[-0.161761102286482,51.5974788597696],[-0.156296125347311,51.6053698665318],[-0.13876012089654,51.610194942666],[-0.067483116430999,51.6086447178001],[-0.041426027272963,51.6056328600517],[-0.053159315537042,51.5869155117408],[-0.061158574989238,51.5777860362647],[-0.104370616733993,51.5647782736229],[-0.142389915041378,51.5691229084999]]]}},{"type":"Feature","properties":{"name":"Harrow","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.395527253503503,51.5906015037761],[-0.404050154365865,51.6131839959912],[-0.316672226651474,51.6405356329504],[-0.304455276938232,51.6363500485845],[-0.267131470058722,51.6003730690269],[-0.282446897137555,51.5850500141978],[-0.335562197062358,51.5565845954689],[-0.375840164014913,51.5530624859359],[-0.377786868951508,51.554987669241],[-0.381948521728072,51.5630736931081],[-0.385872784361507,51.5709111964951],[-0.395527253503503,51.5906015037761]]]}},{"type":"Feature","properties":{"name":"Havering","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[0.146703650652822,51.5687966359729],[0.13818423398537,51.6235453961019],[0.224087730411796,51.6317377623678],[0.263326036885848,51.6091753895771],[0.313035077012051,51.5658181319616],[0.327816065130876,51.5509945703927],[0.333902599889603,51.5424937049473],[0.331429402036812,51.5400454610513],[0.211870087476876,51.4899589563564],[0.187684066854566,51.4878588743526],[0.159048794054703,51.5120717943002],[0.146703650652822,51.5687966359729]]]}},{"type":"Feature","properties":{"name":"Hillingdon","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.493861634990079,51.4627229058023],[-0.509701400845035,51.4691759477034],[-0.499965055290516,51.6291733065649],[-0.497042456594896,51.6316977908827],[-0.404050154365865,51.6131839959912],[-0.377786868951508,51.554987669241],[-0.376363869485393,51.5288891560822],[-0.411133653872026,51.4698818701745],[-0.435040624466151,51.4568540873945],[-0.443983068180207,51.4532665064901],[-0.493861634990079,51.4627229058023]]]}},{"type":"Feature","properties":{"name":"Hounslow","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.456475094105894,51.4382245455337],[-0.461319946211036,51.4523912619669],[-0.458644591609625,51.4563100938075],[-0.406884732410765,51.4996945375717],[-0.280760872438689,51.5028513880128],[-0.253060864941531,51.5014009187711],[-0.245269304499865,51.498385460009],[-0.243587037964877,51.4888646811721],[-0.255065830748371,51.472924263257],[-0.255783084832855,51.4726169005125],[-0.384921173992198,51.4212586669798],[-0.407775634811968,51.4235783906118],[-0.439983256329709,51.4306264500758],[-0.456475094105894,51.4382245455337]]]}},{"type":"Feature","properties":{"name":"Islington","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.139414037002799,51.5582441525867],[-0.142389915041378,51.5691229084999],[-0.133393892888697,51.5728727412005],[-0.118867764102146,51.5747348402581],[-0.091720865895403,51.5602294857003],[-0.079413199291923,51.551653660736],[-0.077722940411991,51.5494658731379],[-0.076812639284964,51.5460813997276],[-0.085191595074603,51.520336203493],[-0.086200421642147,51.5188114598553],[-0.105322049415006,51.518544582242],[-0.114227491789358,51.5255189133939],[-0.119870070991019,51.5309394886792],[-0.139414037002799,51.5582441525867]]]}},{"type":"Feature","properties":{"name":"Kensington and Chelsea","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.226539154579125,51.5195790558103],[-0.228478855909725,51.5303545050421],[-0.207295433042116,51.5262405492271],[-0.158448217525237,51.5022504177161],[-0.150332330164787,51.4854382898946],[-0.179438042764162,51.4775199243473],[-0.183883900110734,51.4774399302466],[-0.202360692961491,51.491665492437],[-0.207977648253101,51.4960231558301],[-0.215021105449591,51.5021889065966],[-0.216986053178403,51.5044655749063],[-0.217010788529331,51.5045026471463],[-0.226539154579125,51.5195790558103]]]}},{"type":"Feature","properties":{"name":"Kingston upon Thames","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.323946904733229,51.3267160657782],[-0.330655551869037,51.329009639034],[-0.327923135992918,51.3521845134341],[-0.31444736144441,51.4282589753108],[-0.31065617392531,51.4322104984599],[-0.254066819000282,51.4372901119915],[-0.251060202228833,51.4325655064198],[-0.23967668186346,51.3892942876317],[-0.245030259031958,51.3800339656124],[-0.30619199674676,51.3350844108749],[-0.323946904733229,51.3267160657782]]]}},{"type":"Feature","properties":{"name":"Lambeth","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.148059824268802,51.412870194636],[-0.150532424714838,51.46629748362],[-0.118324868424955,51.5057269329775],[-0.108805057906591,51.5084463004895],[-0.108707331712305,51.5084505305689],[-0.09301267911526,51.4720296176339],[-0.091153059129707,51.4675989911969],[-0.078294493918319,51.420604880078],[-0.078562121189969,51.4198751949025],[-0.127722267477981,51.4123206689225],[-0.148059824268802,51.412870194636]]]}},{"type":"Feature","properties":{"name":"Lewisham","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.021014190992118,51.4160188020497],[-0.073919049033279,51.4261512868959],[-0.072838476850157,51.4320839265634],[-0.053960456133642,51.4879385517111],[-0.040530246043102,51.4927920373424],[-0.032422051715732,51.4933701250389],[0.017962968641141,51.4738300333226],[0.0377249303609,51.4333465450045],[0.039054843436345,51.4246712434381],[0.034625335700227,51.4233710489029],[-0.000727686445705,51.4159120499718],[-0.007669365566351,51.4144823192995],[-0.021014190992118,51.4160188020497]]]}},{"type":"Feature","properties":{"name":"Merton","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.246891669374426,51.3971086714084],[-0.254224081510499,51.4293169620162],[-0.251060202228833,51.4325655064198],[-0.224509604384766,51.4385889243113],[-0.190020341140797,51.4414735533163],[-0.140379469201757,51.4192492641484],[-0.127722267477981,51.4123206689225],[-0.125391517089764,51.3988244843397],[-0.134308288693061,51.3909223082518],[-0.134353416957172,51.3908854911656],[-0.218080546340844,51.3801819376327],[-0.223196472164978,51.3820457424955],[-0.23967668186346,51.3892942876317],[-0.246891669374426,51.3971086714084]]]}},{"type":"Feature","properties":{"name":"Newham","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.018009321822916,51.5322241499022],[-0.021267833703349,51.5370074023034],[-0.01714003298197,51.5515773128463],[0.05034512006719,51.5639901523825],[0.063615451980584,51.5573078465204],[0.064988619476041,51.5564105609889],[0.092634503069218,51.5256748562494],[0.096934223412043,51.5163260924743],[0.096790117829937,51.5151511996254],[0.06866134795883,51.4990865718774],[0.024441540197002,51.4983071935252],[0.002235055390003,51.5110094219231],[-0.005663840211207,51.5167641466106],[-0.018009321822916,51.5322241499022]]]}},{"type":"Feature","properties":{"name":"Redbridge","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[0.014268815221768,51.5635091011541],[0.008708535067169,51.6190749193472],[0.02181441260303,51.6288272201855],[0.13818423398537,51.6235453961019],[0.147495894337989,51.6123510992922],[0.148206068251708,51.5989684765055],[0.129324280822724,51.5665254420886],[0.12049159667184,51.5585734675569],[0.106131021962619,51.5509445459917],[0.09352309425389,51.5458592989579],[0.080067038661811,51.5447735869979],[0.068352609504004,51.5443920331686],[0.025368955666417,51.5540638558903],[0.020368867202555,51.5562688389235],[0.014268815221768,51.5635091011541]]]}},{"type":"Feature","properties":{"name":"Richmond upon Thames","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.389649816289074,51.4106933301514],[-0.39134197049661,51.4223261130517],[-0.387671957727299,51.4493692634999],[-0.369567298725676,51.4569679270368],[-0.292518111949495,51.4871801285466],[-0.235505416577919,51.4889505349782],[-0.228011328288862,51.4851101178221],[-0.225834410217329,51.4786941441571],[-0.224891478005853,51.4759145556557],[-0.223642311868644,51.4722316598663],[-0.2416054470792,51.4431326263224],[-0.317697879461912,51.3936670802519],[-0.325860281127279,51.3914396052782],[-0.383350028118426,51.4085382960284],[-0.389649816289074,51.4106933301514]]]}},{"type":"Feature","properties":{"name":"Southwark","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.108214348827061,51.4802903184263],[-0.111466566638069,51.4964588687304],[-0.108707331712305,51.5084505305689],[-0.104676526122011,51.50862492191],[-0.042993061182713,51.5072176535123],[-0.033869578801483,51.5060830189342],[-0.033454609807964,51.5024392365918],[-0.032422051715732,51.4933701250389],[-0.041622844246629,51.4549902228086],[-0.046125006741052,51.4498729421208],[-0.078294493918319,51.420604880078],[-0.089345236118095,51.4320171662847],[-0.100762534534072,51.4503361147443],[-0.108214348827061,51.4802903184263]]]}},{"type":"Feature","properties":{"name":"Sutton","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.229822680877552,51.3365228063624],[-0.245404841047607,51.3668454406997],[-0.245041244589302,51.3799602704585],[-0.244959905330948,51.3806514224095],[-0.23967668186346,51.3892942876317],[-0.234633353676997,51.3905378113132],[-0.174842319084082,51.393417478451],[-0.134353416957172,51.3908854911656],[-0.13261046435426,51.3901264349014],[-0.126693593220938,51.3770648308121],[-0.121408350637414,51.3623405136072],[-0.117287034566951,51.3456794501028],[-0.145558322827444,51.3235021391558],[-0.156543168202182,51.3215085885945],[-0.220940778700181,51.3298630408652],[-0.229822680877552,51.3365228063624]]]}},{"type":"Feature","properties":{"name":"Tower Hamlets","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.016381664130718,51.4861488176913],[-0.078702351241859,51.5076784373144],[-0.078533782056433,51.5215053445643],[-0.075715309555896,51.5283581951982],[-0.062432536209543,51.5355320712099],[-0.033182455944243,51.5446861073386],[-0.016549676137034,51.5433298677014],[0.007060562770996,51.5143010584472],[0.009835717622707,51.5084290698702],[-0.003024499110289,51.4908752961792],[-0.006500019332994,51.4871241922925],[-0.016381664130718,51.4861488176913]]]}},{"type":"Feature","properties":{"name":"Waltham Forest","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.051151276190893,51.5677252078935],[-0.061158574989238,51.5777860362647],[-0.052353754530354,51.5935459941806],[-0.0122587363441,51.6462340740994],[0.02271954314114,51.6411154937777],[0.02515921561762,51.6372893906118],[0.025224408089044,51.6352496039113],[0.020368867202555,51.5562688389235],[0.016269237075887,51.5532254717214],[0.009535698487318,51.5512392642911],[-0.008652619281213,51.5499286278292],[-0.01714003298197,51.5515773128463],[-0.045126845153683,51.5617915487147],[-0.051151276190893,51.5677252078935]]]}},{"type":"Feature","properties":{"name":"Wandsworth","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.254066819000282,51.4372901119915],[-0.259089619978081,51.4549320259913],[-0.252892206493031,51.4652165228006],[-0.232924033408999,51.4716787416289],[-0.170615013391759,51.4815336822333],[-0.141875968135479,51.4850274154261],[-0.136490890379183,51.4854030742651],[-0.128091958615048,51.4852676612045],[-0.126338564335188,51.4844668423445],[-0.135238171436242,51.4303349645787],[-0.137825920461977,51.4211062533284],[-0.140379469201757,51.4192492641484],[-0.144454366216548,51.4177517052053],[-0.16157368060006,51.4198639130111],[-0.251060202228833,51.4325655064198],[-0.254066819000282,51.4372901119915]]]}},{"type":"Feature","properties":{"name":"Westminster","level":"LAD"},"geometry":{"type":"Polygon","coordinates":[[[-0.215546934485741,51.5267216493086],[-0.216004504140691,51.5279299344382],[-0.215182844575574,51.5313912776595],[-0.178328139673015,51.539794984165],[-0.17576552433296,51.5396167268367],[-0.152706883198073,51.5375212232938],[-0.111581077794617,51.5153396471014],[-0.111474950392423,51.5107577789505],[-0.128457519716824,51.4882394309284],[-0.136490890379183,51.4854030742651],[-0.141875968135479,51.4850274154261],[-0.150332330164787,51.4854382898946],[-0.179546548954858,51.4977795217552],[-0.215546934485741,51.5267216493086]]]}}]} \ No newline at end of file diff --git a/browse_dropdown_filters/assets/edit_attributes-29b396e1.svg b/browse_dropdown_filters/assets/edit_attributes-29b396e1.svg deleted file mode 100644 index fe46d701a..000000000 --- a/browse_dropdown_filters/assets/edit_attributes-29b396e1.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/browse_dropdown_filters/assets/edit_geometry-02dad294.svg b/browse_dropdown_filters/assets/edit_geometry-02dad294.svg deleted file mode 100644 index 70d6d41f3..000000000 --- a/browse_dropdown_filters/assets/edit_geometry-02dad294.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/browse_dropdown_filters/assets/fonts/bold-affa96571d-v2.woff b/browse_dropdown_filters/assets/fonts/bold-affa96571d-v2.woff deleted file mode 100755 index 48fbcf59c..000000000 Binary files a/browse_dropdown_filters/assets/fonts/bold-affa96571d-v2.woff and /dev/null differ diff --git a/browse_dropdown_filters/assets/fonts/bold-b542beb274-v2.woff2 b/browse_dropdown_filters/assets/fonts/bold-b542beb274-v2.woff2 deleted file mode 100755 index 81fd14985..000000000 Binary files a/browse_dropdown_filters/assets/fonts/bold-b542beb274-v2.woff2 and /dev/null differ diff --git a/browse_dropdown_filters/assets/fonts/light-94a07e06a1-v2.woff2 b/browse_dropdown_filters/assets/fonts/light-94a07e06a1-v2.woff2 deleted file mode 100755 index 1eb101571..000000000 Binary files a/browse_dropdown_filters/assets/fonts/light-94a07e06a1-v2.woff2 and /dev/null differ diff --git a/browse_dropdown_filters/assets/fonts/light-f591b13f7d-v2.woff b/browse_dropdown_filters/assets/fonts/light-f591b13f7d-v2.woff deleted file mode 100755 index 3b26d5ffd..000000000 Binary files a/browse_dropdown_filters/assets/fonts/light-f591b13f7d-v2.woff and /dev/null differ diff --git a/browse_dropdown_filters/assets/help-d011708a.svg b/browse_dropdown_filters/assets/help-d011708a.svg deleted file mode 100644 index f7ffc5da2..000000000 --- a/browse_dropdown_filters/assets/help-d011708a.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/browse_dropdown_filters/assets/images/favicon.ico b/browse_dropdown_filters/assets/images/favicon.ico deleted file mode 100644 index 28004dd3f..000000000 Binary files a/browse_dropdown_filters/assets/images/favicon.ico and /dev/null differ diff --git a/browse_dropdown_filters/assets/images/govuk-apple-touch-icon-152x152.png b/browse_dropdown_filters/assets/images/govuk-apple-touch-icon-152x152.png deleted file mode 100755 index 4804b9ac5..000000000 Binary files a/browse_dropdown_filters/assets/images/govuk-apple-touch-icon-152x152.png and /dev/null differ diff --git a/browse_dropdown_filters/assets/images/govuk-apple-touch-icon-167x167.png b/browse_dropdown_filters/assets/images/govuk-apple-touch-icon-167x167.png deleted file mode 100755 index a4cbdbe3d..000000000 Binary files a/browse_dropdown_filters/assets/images/govuk-apple-touch-icon-167x167.png and /dev/null differ diff --git a/browse_dropdown_filters/assets/images/govuk-apple-touch-icon-180x180.png b/browse_dropdown_filters/assets/images/govuk-apple-touch-icon-180x180.png deleted file mode 100755 index 3b9475f60..000000000 Binary files a/browse_dropdown_filters/assets/images/govuk-apple-touch-icon-180x180.png and /dev/null differ diff --git a/browse_dropdown_filters/assets/images/govuk-apple-touch-icon.png b/browse_dropdown_filters/assets/images/govuk-apple-touch-icon.png deleted file mode 100755 index d84eac206..000000000 Binary files a/browse_dropdown_filters/assets/images/govuk-apple-touch-icon.png and /dev/null differ diff --git a/browse_dropdown_filters/assets/images/govuk-crest-2x.png b/browse_dropdown_filters/assets/images/govuk-crest-2x.png deleted file mode 100644 index 78e751cc2..000000000 Binary files a/browse_dropdown_filters/assets/images/govuk-crest-2x.png and /dev/null differ diff --git a/browse_dropdown_filters/assets/images/govuk-crest.png b/browse_dropdown_filters/assets/images/govuk-crest.png deleted file mode 100644 index bed4efe41..000000000 Binary files a/browse_dropdown_filters/assets/images/govuk-crest.png and /dev/null differ diff --git a/browse_dropdown_filters/assets/images/govuk-logotype-crown.png b/browse_dropdown_filters/assets/images/govuk-logotype-crown.png deleted file mode 100644 index a6cdbfd47..000000000 Binary files a/browse_dropdown_filters/assets/images/govuk-logotype-crown.png and /dev/null differ diff --git a/browse_dropdown_filters/assets/images/govuk-mask-icon.svg b/browse_dropdown_filters/assets/images/govuk-mask-icon.svg deleted file mode 100644 index 2cf32d6ce..000000000 --- a/browse_dropdown_filters/assets/images/govuk-mask-icon.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/browse_dropdown_filters/assets/images/govuk-opengraph-image.png b/browse_dropdown_filters/assets/images/govuk-opengraph-image.png deleted file mode 100644 index 355284fbf..000000000 Binary files a/browse_dropdown_filters/assets/images/govuk-opengraph-image.png and /dev/null differ diff --git a/browse_dropdown_filters/assets/index-46d9c0d7.css b/browse_dropdown_filters/assets/index-46d9c0d7.css deleted file mode 100644 index 09ad3a3a5..000000000 --- a/browse_dropdown_filters/assets/index-46d9c0d7.css +++ /dev/null @@ -1 +0,0 @@ -body{margin:0;padding:0}.left.svelte-lyn11h{margin:10px}#map.svelte-lyn11h{position:absolute;top:0;bottom:0;right:0;width:50%} diff --git a/browse_dropdown_filters/assets/main-88cc3b48.js b/browse_dropdown_filters/assets/main-88cc3b48.js deleted file mode 100644 index 808fdce4b..000000000 --- a/browse_dropdown_filters/assets/main-88cc3b48.js +++ /dev/null @@ -1 +0,0 @@ -import{S as K,i as Z,s as Q,c as me,a as W,e as p,b as ae,d as I,l as H,u as ge,g as ve,f as be,h as ke,t as C,j as L,k as T,m as oe,n as _e,o as se,p as q,q as w,r as h,v as _,w as X,x as ie,y as ye,z as we,A as R,B as $e,C as Ae,F as Se,D as z,E as ue,G as Be,H as D,I as J,J as re,K as O,L as Ee,M as Fe,N as Ie}from"./maplibre_helpers-5d84afaa.js";import{i as Te}from"./all-b6f1cdfd.js";import{A as Ne,a as je}from"./About-563eb94d.js";function Ce(l){let t,e,o,u;const f=l[2].default,a=me(f,l,l[1],null);let i=[{type:"button"},{class:"govuk-button"},{"data-module":"govuk-button"},l[0]],s={};for(let n=0;n{e(0,t=W(W({},t),oe(a))),"$$scope"in a&&e(1,u=a.$$scope)},t=oe(t),[t,u,o,f]}class De extends K{constructor(t){super(),Z(this,t,Le,Ce,Q,{})}}function fe(l,t,e){const o=l.slice();return o[7]=t[e][0],o[8]=t[e][1],o}function de(l){let t,e,o,u,f=!1,a,i,s=l[8]+"",n,d,c,B,v,j;return B=we(l[6][0]),{c(){t=p("div"),e=p("input"),a=w(),i=p("label"),n=q(s),c=w(),h(e,"class","govuk-radios__input"),h(e,"id",o=l[2]+l[7]),h(e,"type","radio"),e.__value=u=l[7],R(e,e.__value),h(i,"class","govuk-label govuk-radios__label"),h(i,"for",d=l[2]+l[7]),h(t,"class","govuk-radios__item"),B.p(e)},m(m,$){I(m,t,$),_(t,e),e.checked=e.__value===l[0],_(t,a),_(t,i),_(i,n),_(t,c),v||(j=[H(e,"change",l[5]),H(e,"change",l[4])],v=!0)},p(m,$){$&12&&o!==(o=m[2]+m[7])&&h(e,"id",o),$&8&&u!==(u=m[7])&&(e.__value=u,R(e,e.__value),f=!0),(f||$&9)&&(e.checked=e.__value===m[0]),$&8&&s!==(s=m[8]+"")&&X(n,s),$&12&&d!==(d=m[2]+m[7])&&h(i,"for",d)},d(m){m&&T(t),B.r(),v=!1,$e(j)}}}function Je(l){let t,e,o,u,f,a,i=se(l[3]),s=[];for(let n=0;n{"legend"in d&&e(1,o=d.legend),"id"in d&&e(2,u=d.id),"choices"in d&&e(3,f=d.choices),"value"in d&&e(0,a=d.value)},[a,o,u,f,s,n,i]}class Me extends K{constructor(t){super(),Z(this,t,Oe,Je,Q,{legend:1,id:2,choices:3,value:0})}}function qe(l){let t;return{c(){t=q("About")},m(e,o){I(e,t,o)},d(e){e&&T(t)}}}function Ge(l){let t,e,o,u,f;return{c(){t=p("input"),e=w(),o=p("datalist"),h(t,"class","govuk-input govuk-input--width-20"),h(t,"id","inputValue"),h(t,"data-testid","transport-authority"),h(t,"list","authorities-list"),h(o,"id","authorities-list")},m(a,i){I(a,t,i),R(t,l[0]),I(a,e,i),I(a,o,i),l[11](o),u||(f=H(t,"input",l[10]),u=!0)},p(a,i){i&1&&t.value!==a[0]&&R(t,a[0])},d(a){a&&(T(t),T(e),T(o)),l[11](null),u=!1,f()}}}function Pe(l){let t;return{c(){t=q("Start")},m(e,o){I(e,t,o)},d(e){e&&T(t)}}}function ce(l){let t,e;return{c(){t=p("i"),e=q(l[4])},m(o,u){I(o,t,u),_(t,e)},p(o,u){u&16&&X(e,o[4])},d(o){o&&T(t)}}}function Ve(l){let t,e,o,u,f,a,i,s,n,d,c,B,v,j,m,$,G,P,g,b,E,A,F,S,N;f=new Ae({props:{$$slots:{default:[qe]},$$scope:{ctx:l}}}),f.$on("click",l[9]),i=new Se({props:{label:"Select Transport Authority or Local Authority District",id:"inputValue",$$slots:{default:[Ge]},$$scope:{ctx:l}}}),n=new De({props:{disabled:!l[5],$$slots:{default:[Pe]},$$scope:{ctx:l}}}),n.$on("click",l[8]);function he(r){l[12](r)}let Y={legend:"Or pick from the map",id:"showBoundaries",choices:[["TA","Transport Authorities"],["LAD","Local Authority Districts"]]};l[3]!==void 0&&(Y.value=l[3]),v=new Me({props:Y}),z.push(()=>ue(v,"value",he)),v.$on("change",l[6]);let k=l[4]&&ce(l);g=new Be({props:{label:"Or upload an ATIP GeoJSON file",loadFile:l[7],id:"load-geojson"}});function pe(r){l[13](r)}let x={};return l[1]!==void 0&&(x.open=l[1]),F=new Ne({props:x}),z.push(()=>ue(F,"open",pe)),{c(){t=p("div"),e=p("div"),o=p("h1"),o.textContent="Welcome to ATIP v2",u=w(),D(f.$$.fragment),a=w(),D(i.$$.fragment),s=w(),D(n.$$.fragment),d=w(),c=p("hr"),B=w(),D(v.$$.fragment),m=w(),k&&k.c(),$=w(),G=p("hr"),P=w(),D(g.$$.fragment),b=w(),E=p("div"),E.innerHTML='
    ',A=w(),D(F.$$.fragment),h(o,"class","govuk-heading-l"),h(e,"class","govuk-grid-column-one-half left svelte-lyn11h"),h(E,"class","govuk-grid-column-one-half"),h(t,"class","govuk-grid-row")},m(r,y){I(r,t,y),_(t,e),_(e,o),_(e,u),J(f,e,null),_(e,a),J(i,e,null),_(e,s),J(n,e,null),_(e,d),_(e,c),_(e,B),J(v,e,null),_(e,m),k&&k.m(e,null),_(e,$),_(e,G),_(e,P),J(g,e,null),_(t,b),_(t,E),I(r,A,y),J(F,r,y),N=!0},p(r,[y]){const ee={};y&65536&&(ee.$$scope={dirty:y,ctx:r}),f.$set(ee);const te={};y&65541&&(te.$$scope={dirty:y,ctx:r}),i.$set(te);const U={};y&32&&(U.disabled=!r[5]),y&65536&&(U.$$scope={dirty:y,ctx:r}),n.$set(U);const le={};!j&&y&8&&(j=!0,le.value=r[3],re(()=>j=!1)),v.$set(le),r[4]?k?k.p(r,y):(k=ce(r),k.c(),k.m(e,$)):k&&(k.d(1),k=null);const ne={};!S&&y&2&&(S=!0,ne.open=r[1],re(()=>S=!1)),F.$set(ne)},i(r){N||(C(f.$$.fragment,r),C(i.$$.fragment,r),C(n.$$.fragment,r),C(v.$$.fragment,r),C(g.$$.fragment,r),C(F.$$.fragment,r),N=!0)},o(r){L(f.$$.fragment,r),L(i.$$.fragment,r),L(n.$$.fragment,r),L(v.$$.fragment,r),L(g.$$.fragment,r),L(F.$$.fragment,r),N=!1},d(r){r&&(T(t),T(A)),O(f),O(i),O(n),O(v),k&&k.d(),O(g),O(F,r)}}}let V="boundary",M="boundary-layer";function He(l){if(l.features.length>0){let t=l.features[0].properties;for(let e of["planning","v2","criticals"])if(t&&e in t)return e}return"v1"}function Re(l,t,e){let o,u=!1,f,a,i=new Set,s=null,n="TA";function d(){s==null||s.setFilter(M,["==",["get","level"],n])}let c=null;Ee(async()=>{Te();const b=await(await fetch(je)).text(),E=JSON.parse(b);for(let S of E.features){let N=document.createElement("option");N.value=S.properties.name,a.appendChild(N),i.add(S.properties.name)}s=new Fe.Map({container:"map",style:"https://api.maptiler.com/maps/streets/style.json?key=MZEJTanw3WpxRvt7qDfo"});let A=null;function F(){A!==null&&s.setFeatureState({source:V,id:A},{hover:!1})}s.on("load",function(){s.fitBounds(Ie(E),{padding:20,animate:!1}),s.addSource(V,{type:"geojson",data:E,generateId:!0}),s.addLayer({id:M,source:V,filter:["==",["get","level"],n],type:"fill",paint:{"fill-color":"rgb(200, 100, 240)","fill-outline-color":"rgb(200, 100, 240)","fill-opacity":["case",["boolean",["feature-state","hover"],!1],.8,.4]}}),s.on("mousemove",M,S=>{S.features.length>0&&(F(),A=S.features[0].id,e(4,c=S.features[0].properties.name),s.setFeatureState({source:V,id:A},{hover:!0}))}),s.on("mouseleave",M,()=>{F(),A=null,e(4,c=null)}),s.on("click",M,function(S){let N=S.features[0].properties.name;window.location.href=`scheme.html?authority=${N}`})})});function B(g){try{let b=JSON.parse(g);if(!b.authority)throw new Error("File doesn't have an authority set; is it an ATIP file?");if(!i.has(b.authority))throw new Error(`Unknown authority ${b.authority}`);let E=b.authority,A=He(b);A!="v1"&&(E+=`_${A}`),window.localStorage.setItem(E,JSON.stringify(b)),window.location.href=`scheme.html?authority=${b.authority}&schema=${A}`}catch(b){window.alert(`Couldn't load scheme from a file: ${b}`)}}function v(){window.location.href=`scheme.html?authority=${f}`}const j=()=>e(1,u=!u);function m(){f=this.value,e(0,f)}function $(g){z[g?"unshift":"push"](()=>{a=g,e(2,a)})}function G(g){n=g,e(3,n)}function P(g){u=g,e(1,u)}return l.$$.update=()=>{l.$$.dirty&1&&e(5,o=i.has(f))},[f,u,a,n,c,o,d,B,v,j,m,$,G,P]}class Ue extends K{constructor(t){super(),Z(this,t,Re,Ve,Q,{})}}document.body.className=document.body.className?document.body.className+" js-enabled":"js-enabled";new Ue({target:document.getElementById("app")}); diff --git a/browse_dropdown_filters/assets/maplibre_helpers-35cb7a5b.css b/browse_dropdown_filters/assets/maplibre_helpers-35cb7a5b.css deleted file mode 100644 index 7b3f4b336..000000000 --- a/browse_dropdown_filters/assets/maplibre_helpers-35cb7a5b.css +++ /dev/null @@ -1 +0,0 @@ -.maplibregl-map{-webkit-tap-highlight-color:rgb(0 0 0/0);font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px #0000001a}@media (-ms-high-contrast:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (-ms-high-contrast:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:#0000000d}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8h-8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8h-8z'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8h-8z'/%3E%3Cpath fill='%23999' d='m10.5 16 4 8 4-8h-8z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8h-8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8h-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1 9-9z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (-ms-high-contrast:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1 9-9z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1 9-9z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.255 1.255 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.255 1.255 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5.11 5.11 0 0 1 .314-.787l.009-.016a4.623 4.623 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.548 4.548 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4.314.319.566.676.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.416 2.416 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.448 2.448 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675c.211.2.381.43.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.76 4.76 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.407 3.407 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.255 1.255 0 0 1 .689 1.004 4.73 4.73 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528 0 .343-.02.694-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.815 5.815 0 0 1-.548-2.512c0-.286.017-.567.053-.843a1.255 1.255 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.778 4.778 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.47 4.47 0 0 1-1.935-.424 1.252 1.252 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.402 2.402 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.703 4.703 0 0 1-1.782 1.884 4.767 4.767 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.47 4.47 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a4.983 4.983 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.255 1.255 0 0 1-1.115.676h-.098a1.255 1.255 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15c.329-.237.574-.499.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267c-.088-.22-.264-.438-.526-.658l-.032-.028a3.16 3.16 0 0 0-.668-.428l-.27-.12a3.293 3.293 0 0 0-1.235-.23c-.757 0-1.415.163-1.974.493a3.36 3.36 0 0 0-1.3 1.382c-.297.593-.444 1.284-.444 2.074 0 .8.17 1.503.51 2.107a3.795 3.795 0 0 0 1.382 1.381 3.883 3.883 0 0 0 1.893.477c.53 0 1.015-.11 1.455-.33zm-2.789-5.38c-.384.45-.575 1.038-.575 1.762 0 .735.186 1.332.559 1.794.384.45.933.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.17 2.17 0 0 0 .468-.29l.178-.161a2.163 2.163 0 0 0 .397-.561c.163-.333.244-.717.244-1.15v-.115c0-.472-.098-.894-.296-1.267l-.043-.077a2.211 2.211 0 0 0-.633-.709l-.13-.086-.047-.028a2.099 2.099 0 0 0-1.073-.285c-.702 0-1.244.231-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.958.958 0 0 0-.353-.389.851.851 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.626 2.626 0 0 0 .331.423c.213.22.464.402.755.548l.173.074c.433.17.93.255 1.49.255.68 0 1.295-.165 1.844-.493a3.447 3.447 0 0 0 1.316-1.4c.329-.603.493-1.299.493-2.089 0-1.273-.33-2.243-.988-2.913-.658-.68-1.52-1.02-2.584-1.02-.598 0-1.124.115-1.575.347a2.807 2.807 0 0 0-.415.262l-.199.166a3.35 3.35 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138c.137.193.297.36.48.5l.155.11.053.034c.34.197.713.297 1.119.297.714 0 1.262-.225 1.645-.675.385-.46.576-1.048.576-1.762 0-.746-.192-1.338-.576-1.777-.372-.45-.92-.675-1.645-.675-.29 0-.569.053-.835.16a2.366 2.366 0 0 0-.284.136 1.99 1.99 0 0 0-.363.254 2.237 2.237 0 0 0-.46.569l-.082.162a2.56 2.56 0 0 0-.213 1.072v.115c0 .471.098.894.296 1.267l.135.211zm.964-.818a1.11 1.11 0 0 0 .367.385.937.937 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a.995.995 0 0 0-.503.135l-.012.007a.859.859 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.43 1.43 0 0 0 .14.66zm15.7-6.222c.232-.23.346-.516.346-.856a1.053 1.053 0 0 0-.345-.79 1.175 1.175 0 0 0-.84-.329c-.34 0-.625.11-.855.33a1.053 1.053 0 0 0-.346.79c0 .34.115.625.346.855.23.23.516.346.856.346.34 0 .62-.115.839-.346zm4.337 9.314.033-1.332c.128.269.324.518.59.747l.098.081a3.727 3.727 0 0 0 .316.224l.223.122a3.21 3.21 0 0 0 1.44.322 3.785 3.785 0 0 0 1.875-.477 3.52 3.52 0 0 0 1.382-1.366c.352-.593.526-1.29.526-2.09 0-.79-.147-1.48-.444-2.073a3.235 3.235 0 0 0-1.283-1.399c-.549-.34-1.195-.51-1.942-.51a3.476 3.476 0 0 0-1.527.344l-.086.043-.165.09a3.412 3.412 0 0 0-.33.214c-.288.21-.507.446-.656.707a1.893 1.893 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.482 2.482 0 0 0 .566.7c.078.065.159.125.245.18l.144.08a2.105 2.105 0 0 0 .975.232c.713 0 1.262-.225 1.645-.675.384-.46.576-1.053.576-1.778 0-.734-.192-1.327-.576-1.777-.373-.46-.921-.692-1.645-.692a2.18 2.18 0 0 0-1.015.235c-.147.075-.285.17-.415.282l-.15.142a2.086 2.086 0 0 0-.42.594c-.149.32-.223.685-.223 1.1v.115c0 .47.097.89.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.868.868 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.13 1.13 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013c.23-.087.472-.134.724-.14l.069-.002c.329 0 .542.033.642.099l.247-1.794c-.13-.066-.37-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2.086 2.086 0 0 0-.411.148 2.18 2.18 0 0 0-.4.249 2.482 2.482 0 0 0-.485.499 2.659 2.659 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884c0-.364.053-.678.159-.943a1.49 1.49 0 0 1 .466-.636 2.52 2.52 0 0 1 .399-.253 2.19 2.19 0 0 1 .224-.099zm9.784 2.656.05-.922c0-1.162-.285-2.062-.856-2.698-.559-.647-1.42-.97-2.584-.97-.746 0-1.415.163-2.007.493a3.462 3.462 0 0 0-1.4 1.382c-.329.604-.493 1.306-.493 2.106 0 .714.143 1.371.428 1.975.285.593.73 1.07 1.332 1.432.604.351 1.355.526 2.255.526.649 0 1.204-.062 1.668-.185l.044-.012.135-.04c.409-.122.736-.263.984-.421l-.542-1.267c-.2.108-.415.199-.642.274l-.297.087c-.34.088-.773.131-1.3.131-.636 0-1.135-.147-1.497-.444a1.573 1.573 0 0 1-.192-.193c-.244-.294-.415-.705-.512-1.234l-.004-.021h5.43zm-5.427-1.256-.003.022h3.752v-.138c-.007-.485-.104-.857-.288-1.118a1.056 1.056 0 0 0-.156-.176c-.307-.285-.746-.428-1.316-.428-.657 0-1.155.202-1.494.604-.253.3-.417.712-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81c-.68 0-1.311-.16-1.893-.478a3.795 3.795 0 0 1-1.381-1.382c-.34-.604-.51-1.306-.51-2.106 0-.79.147-1.482.444-2.074a3.364 3.364 0 0 1 1.3-1.382c.559-.33 1.217-.494 1.974-.494a3.293 3.293 0 0 1 1.234.231 3.341 3.341 0 0 1 .97.575c.264.22.44.439.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332c-.186.395-.526.746-1.02 1.053a3.167 3.167 0 0 1-1.662.444zm.296-1.482c.626 0 1.152-.214 1.58-.642.428-.44.642-1.01.642-1.711v-.115c0-.472-.098-.894-.296-1.267a2.211 2.211 0 0 0-.807-.872 2.098 2.098 0 0 0-1.119-.313c-.702 0-1.245.231-1.629.692-.384.45-.575 1.037-.575 1.76 0 .736.186 1.333.559 1.795.384.45.933.675 1.645.675zm6.521-6.237h1.711v1.4c.604-1.065 1.547-1.597 2.83-1.597 1.064 0 1.926.34 2.584 1.02.659.67.988 1.641.988 2.914 0 .79-.164 1.487-.493 2.09a3.456 3.456 0 0 1-1.316 1.399 3.51 3.51 0 0 1-1.844.493c-.636 0-1.19-.11-1.662-.329a2.665 2.665 0 0 1-1.086-.97l.017 5.134h-1.728V9.242zm4.048 6.22c.714 0 1.262-.224 1.645-.674.385-.46.576-1.048.576-1.762 0-.746-.192-1.338-.576-1.777-.372-.45-.92-.675-1.645-.675-.395 0-.768.098-1.12.296-.34.187-.613.46-.822.823-.197.351-.296.763-.296 1.234v.115c0 .472.098.894.296 1.267.209.362.483.647.823.855.34.197.713.297 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.159 1.159 0 0 1-.856-.346 1.165 1.165 0 0 1-.346-.856 1.053 1.053 0 0 1 .346-.79c.23-.219.516-.329.856-.329.329 0 .609.11.839.33a1.053 1.053 0 0 1 .345.79 1.159 1.159 0 0 1-.345.855c-.22.23-.5.346-.84.346zm7.875 9.133a3.167 3.167 0 0 1-1.662-.444c-.482-.307-.817-.658-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283c.186-.438.548-.812 1.086-1.119a3.486 3.486 0 0 1 1.778-.477c.746 0 1.393.17 1.942.51a3.235 3.235 0 0 1 1.283 1.4c.297.592.444 1.282.444 2.072 0 .8-.175 1.498-.526 2.09a3.52 3.52 0 0 1-1.382 1.366 3.785 3.785 0 0 1-1.876.477zm-.296-1.481c.713 0 1.26-.225 1.645-.675.384-.46.577-1.053.577-1.778 0-.734-.193-1.327-.577-1.776-.373-.46-.921-.692-1.645-.692a2.115 2.115 0 0 0-1.58.659c-.428.428-.642.992-.642 1.694v.115c0 .473.098.895.296 1.267a2.385 2.385 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481c.176-.505.46-.91.856-1.217a2.14 2.14 0 0 1 1.349-.46c.351 0 .593.032.724.098l-.247 1.794c-.099-.066-.313-.099-.642-.099-.516 0-.988.164-1.416.494-.417.329-.626.855-.626 1.58v3.883h-1.777V9.242zm9.534 7.718c-.9 0-1.651-.175-2.255-.526-.603-.362-1.047-.84-1.332-1.432a4.567 4.567 0 0 1-.428-1.975c0-.8.164-1.502.493-2.106a3.462 3.462 0 0 1 1.4-1.382c.592-.33 1.262-.494 2.007-.494 1.163 0 2.024.324 2.584.97.57.637.856 1.537.856 2.7 0 .296-.017.603-.05.92h-5.43c.12.67.356 1.153.708 1.45.362.296.86.443 1.497.443.526 0 .96-.044 1.3-.131a4.123 4.123 0 0 0 .938-.362l.542 1.267c-.274.175-.647.329-1.119.46-.472.132-1.042.197-1.711.197zm1.596-4.558c.01-.68-.137-1.158-.444-1.432-.307-.285-.746-.428-1.316-.428-1.152 0-1.815.62-1.991 1.86h3.752z'/%3E%3Cg fill-rule='evenodd' stroke-width='1.036'%3E%3Cpath fill='%23000' fill-opacity='.4' d='m8.166 16.146-.002.002a1.54 1.54 0 0 1-2.009 0l-.002-.002-.043-.034-.002-.002-.199-.162H4.377a.657.657 0 0 0-.659.659v1.84a.657.657 0 0 0 .659.659h5.565a.657.657 0 0 0 .659-.659v-1.84a.657.657 0 0 0-.659-.659H8.411l-.202.164zm-1.121-.905a.29.29 0 0 0 .113.023.286.286 0 0 0 .189-.07l.077-.063c.634-.508 4.672-3.743 4.672-7.575 0-2.55-2.215-4.625-4.938-4.625S2.221 5.006 2.221 7.556c0 3.225 2.86 6.027 4.144 7.137h.004l.04.038.484.4.077.063a.628.628 0 0 0 .074.047zm-2.52-.548a16.898 16.898 0 0 1-1.183-1.315C2.187 11.942.967 9.897.967 7.555c0-3.319 2.855-5.88 6.192-5.88 3.338 0 6.193 2.561 6.193 5.881 0 2.34-1.22 4.387-2.376 5.822a16.898 16.898 0 0 1-1.182 1.315h.15a1.912 1.912 0 0 1 1.914 1.914v1.84a1.912 1.912 0 0 1-1.914 1.914H4.377a1.912 1.912 0 0 1-1.914-1.914v-1.84a1.912 1.912 0 0 1 1.914-1.914zm3.82-6.935c0 .692-.55 1.222-1.187 1.222s-1.185-.529-1.185-1.222.548-1.222 1.185-1.222c.638 0 1.186.529 1.186 1.222zm-1.186 2.477c1.348 0 2.442-1.11 2.442-2.478S8.507 5.28 7.159 5.28 4.72 6.39 4.72 7.758s1.092 2.477 2.44 2.477zm2.048 7.71H5.114v-.838h4.093z'/%3E%3Cpath fill='%23e1e3e9' d='M2.222 7.555c0-2.55 2.214-4.625 4.937-4.625 2.723 0 4.938 2.075 4.938 4.625 0 3.832-4.038 7.068-4.672 7.575l-.077.063a.286.286 0 0 1-.189.07.286.286 0 0 1-.188-.07l-.077-.063c-.634-.507-4.672-3.743-4.672-7.575zm4.937 2.68c1.348 0 2.442-1.11 2.442-2.478S8.507 5.28 7.159 5.28 4.72 6.39 4.72 7.758s1.092 2.477 2.44 2.477z'/%3E%3Cpath fill='%23fff' d='M4.377 15.948a.657.657 0 0 0-.659.659v1.84a.657.657 0 0 0 .659.659h5.565a.657.657 0 0 0 .659-.659v-1.84a.657.657 0 0 0-.659-.659zm4.83 1.16H5.114v.838h4.093z'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (-ms-high-contrast:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.255 1.255 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.255 1.255 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5.11 5.11 0 0 1 .314-.787l.009-.016a4.623 4.623 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.548 4.548 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4.314.319.566.676.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.416 2.416 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.448 2.448 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675c.211.2.381.43.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.76 4.76 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.407 3.407 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.255 1.255 0 0 1 .689 1.004 4.73 4.73 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528 0 .343-.02.694-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.815 5.815 0 0 1-.548-2.512c0-.286.017-.567.053-.843a1.255 1.255 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.778 4.778 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.47 4.47 0 0 1-1.935-.424 1.252 1.252 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.402 2.402 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.703 4.703 0 0 1-1.782 1.884 4.767 4.767 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.47 4.47 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a4.983 4.983 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.255 1.255 0 0 1-1.115.676h-.098a1.255 1.255 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15c.329-.237.574-.499.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267c-.088-.22-.264-.438-.526-.658l-.032-.028a3.16 3.16 0 0 0-.668-.428l-.27-.12a3.293 3.293 0 0 0-1.235-.23c-.757 0-1.415.163-1.974.493a3.36 3.36 0 0 0-1.3 1.382c-.297.593-.444 1.284-.444 2.074 0 .8.17 1.503.51 2.107a3.795 3.795 0 0 0 1.382 1.381 3.883 3.883 0 0 0 1.893.477c.53 0 1.015-.11 1.455-.33zm-2.789-5.38c-.384.45-.575 1.038-.575 1.762 0 .735.186 1.332.559 1.794.384.45.933.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.17 2.17 0 0 0 .468-.29l.178-.161a2.163 2.163 0 0 0 .397-.561c.163-.333.244-.717.244-1.15v-.115c0-.472-.098-.894-.296-1.267l-.043-.077a2.211 2.211 0 0 0-.633-.709l-.13-.086-.047-.028a2.099 2.099 0 0 0-1.073-.285c-.702 0-1.244.231-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.958.958 0 0 0-.353-.389.851.851 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.626 2.626 0 0 0 .331.423c.213.22.464.402.755.548l.173.074c.433.17.93.255 1.49.255.68 0 1.295-.165 1.844-.493a3.447 3.447 0 0 0 1.316-1.4c.329-.603.493-1.299.493-2.089 0-1.273-.33-2.243-.988-2.913-.658-.68-1.52-1.02-2.584-1.02-.598 0-1.124.115-1.575.347a2.807 2.807 0 0 0-.415.262l-.199.166a3.35 3.35 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138c.137.193.297.36.48.5l.155.11.053.034c.34.197.713.297 1.119.297.714 0 1.262-.225 1.645-.675.385-.46.576-1.048.576-1.762 0-.746-.192-1.338-.576-1.777-.372-.45-.92-.675-1.645-.675-.29 0-.569.053-.835.16a2.366 2.366 0 0 0-.284.136 1.99 1.99 0 0 0-.363.254 2.237 2.237 0 0 0-.46.569l-.082.162a2.56 2.56 0 0 0-.213 1.072v.115c0 .471.098.894.296 1.267l.135.211zm.964-.818a1.11 1.11 0 0 0 .367.385.937.937 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a.995.995 0 0 0-.503.135l-.012.007a.859.859 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.43 1.43 0 0 0 .14.66zm15.7-6.222c.232-.23.346-.516.346-.856a1.053 1.053 0 0 0-.345-.79 1.175 1.175 0 0 0-.84-.329c-.34 0-.625.11-.855.33a1.053 1.053 0 0 0-.346.79c0 .34.115.625.346.855.23.23.516.346.856.346.34 0 .62-.115.839-.346zm4.337 9.314.033-1.332c.128.269.324.518.59.747l.098.081a3.727 3.727 0 0 0 .316.224l.223.122a3.21 3.21 0 0 0 1.44.322 3.785 3.785 0 0 0 1.875-.477 3.52 3.52 0 0 0 1.382-1.366c.352-.593.526-1.29.526-2.09 0-.79-.147-1.48-.444-2.073a3.235 3.235 0 0 0-1.283-1.399c-.549-.34-1.195-.51-1.942-.51a3.476 3.476 0 0 0-1.527.344l-.086.043-.165.09a3.412 3.412 0 0 0-.33.214c-.288.21-.507.446-.656.707a1.893 1.893 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.482 2.482 0 0 0 .566.7c.078.065.159.125.245.18l.144.08a2.105 2.105 0 0 0 .975.232c.713 0 1.262-.225 1.645-.675.384-.46.576-1.053.576-1.778 0-.734-.192-1.327-.576-1.777-.373-.46-.921-.692-1.645-.692a2.18 2.18 0 0 0-1.015.235c-.147.075-.285.17-.415.282l-.15.142a2.086 2.086 0 0 0-.42.594c-.149.32-.223.685-.223 1.1v.115c0 .47.097.89.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.868.868 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.13 1.13 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013c.23-.087.472-.134.724-.14l.069-.002c.329 0 .542.033.642.099l.247-1.794c-.13-.066-.37-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2.086 2.086 0 0 0-.411.148 2.18 2.18 0 0 0-.4.249 2.482 2.482 0 0 0-.485.499 2.659 2.659 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884c0-.364.053-.678.159-.943a1.49 1.49 0 0 1 .466-.636 2.52 2.52 0 0 1 .399-.253 2.19 2.19 0 0 1 .224-.099zm9.784 2.656.05-.922c0-1.162-.285-2.062-.856-2.698-.559-.647-1.42-.97-2.584-.97-.746 0-1.415.163-2.007.493a3.462 3.462 0 0 0-1.4 1.382c-.329.604-.493 1.306-.493 2.106 0 .714.143 1.371.428 1.975.285.593.73 1.07 1.332 1.432.604.351 1.355.526 2.255.526.649 0 1.204-.062 1.668-.185l.044-.012.135-.04c.409-.122.736-.263.984-.421l-.542-1.267c-.2.108-.415.199-.642.274l-.297.087c-.34.088-.773.131-1.3.131-.636 0-1.135-.147-1.497-.444a1.573 1.573 0 0 1-.192-.193c-.244-.294-.415-.705-.512-1.234l-.004-.021h5.43zm-5.427-1.256-.003.022h3.752v-.138c-.007-.485-.104-.857-.288-1.118a1.056 1.056 0 0 0-.156-.176c-.307-.285-.746-.428-1.316-.428-.657 0-1.155.202-1.494.604-.253.3-.417.712-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81c-.68 0-1.311-.16-1.893-.478a3.795 3.795 0 0 1-1.381-1.382c-.34-.604-.51-1.306-.51-2.106 0-.79.147-1.482.444-2.074a3.364 3.364 0 0 1 1.3-1.382c.559-.33 1.217-.494 1.974-.494a3.293 3.293 0 0 1 1.234.231 3.341 3.341 0 0 1 .97.575c.264.22.44.439.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332c-.186.395-.526.746-1.02 1.053a3.167 3.167 0 0 1-1.662.444zm.296-1.482c.626 0 1.152-.214 1.58-.642.428-.44.642-1.01.642-1.711v-.115c0-.472-.098-.894-.296-1.267a2.211 2.211 0 0 0-.807-.872 2.098 2.098 0 0 0-1.119-.313c-.702 0-1.245.231-1.629.692-.384.45-.575 1.037-.575 1.76 0 .736.186 1.333.559 1.795.384.45.933.675 1.645.675zm6.521-6.237h1.711v1.4c.604-1.065 1.547-1.597 2.83-1.597 1.064 0 1.926.34 2.584 1.02.659.67.988 1.641.988 2.914 0 .79-.164 1.487-.493 2.09a3.456 3.456 0 0 1-1.316 1.399 3.51 3.51 0 0 1-1.844.493c-.636 0-1.19-.11-1.662-.329a2.665 2.665 0 0 1-1.086-.97l.017 5.134h-1.728V9.242zm4.048 6.22c.714 0 1.262-.224 1.645-.674.385-.46.576-1.048.576-1.762 0-.746-.192-1.338-.576-1.777-.372-.45-.92-.675-1.645-.675-.395 0-.768.098-1.12.296-.34.187-.613.46-.822.823-.197.351-.296.763-.296 1.234v.115c0 .472.098.894.296 1.267.209.362.483.647.823.855.34.197.713.297 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.159 1.159 0 0 1-.856-.346 1.165 1.165 0 0 1-.346-.856 1.053 1.053 0 0 1 .346-.79c.23-.219.516-.329.856-.329.329 0 .609.11.839.33a1.053 1.053 0 0 1 .345.79 1.159 1.159 0 0 1-.345.855c-.22.23-.5.346-.84.346zm7.875 9.133a3.167 3.167 0 0 1-1.662-.444c-.482-.307-.817-.658-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283c.186-.438.548-.812 1.086-1.119a3.486 3.486 0 0 1 1.778-.477c.746 0 1.393.17 1.942.51a3.235 3.235 0 0 1 1.283 1.4c.297.592.444 1.282.444 2.072 0 .8-.175 1.498-.526 2.09a3.52 3.52 0 0 1-1.382 1.366 3.785 3.785 0 0 1-1.876.477zm-.296-1.481c.713 0 1.26-.225 1.645-.675.384-.46.577-1.053.577-1.778 0-.734-.193-1.327-.577-1.776-.373-.46-.921-.692-1.645-.692a2.115 2.115 0 0 0-1.58.659c-.428.428-.642.992-.642 1.694v.115c0 .473.098.895.296 1.267a2.385 2.385 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481c.176-.505.46-.91.856-1.217a2.14 2.14 0 0 1 1.349-.46c.351 0 .593.032.724.098l-.247 1.794c-.099-.066-.313-.099-.642-.099-.516 0-.988.164-1.416.494-.417.329-.626.855-.626 1.58v3.883h-1.777V9.242zm9.534 7.718c-.9 0-1.651-.175-2.255-.526-.603-.362-1.047-.84-1.332-1.432a4.567 4.567 0 0 1-.428-1.975c0-.8.164-1.502.493-2.106a3.462 3.462 0 0 1 1.4-1.382c.592-.33 1.262-.494 2.007-.494 1.163 0 2.024.324 2.584.97.57.637.856 1.537.856 2.7 0 .296-.017.603-.05.92h-5.43c.12.67.356 1.153.708 1.45.362.296.86.443 1.497.443.526 0 .96-.044 1.3-.131a4.123 4.123 0 0 0 .938-.362l.542 1.267c-.274.175-.647.329-1.119.46-.472.132-1.042.197-1.711.197zm1.596-4.558c.01-.68-.137-1.158-.444-1.432-.307-.285-.746-.428-1.316-.428-1.152 0-1.815.62-1.991 1.86h3.752z'/%3E%3Cg fill-rule='evenodd' stroke-width='1.036'%3E%3Cpath fill='%23000' fill-opacity='.4' d='m8.166 16.146-.002.002a1.54 1.54 0 0 1-2.009 0l-.002-.002-.043-.034-.002-.002-.199-.162H4.377a.657.657 0 0 0-.659.659v1.84a.657.657 0 0 0 .659.659h5.565a.657.657 0 0 0 .659-.659v-1.84a.657.657 0 0 0-.659-.659H8.411l-.202.164zm-1.121-.905a.29.29 0 0 0 .113.023.286.286 0 0 0 .189-.07l.077-.063c.634-.508 4.672-3.743 4.672-7.575 0-2.55-2.215-4.625-4.938-4.625S2.221 5.006 2.221 7.556c0 3.225 2.86 6.027 4.144 7.137h.004l.04.038.484.4.077.063a.628.628 0 0 0 .074.047zm-2.52-.548a16.898 16.898 0 0 1-1.183-1.315C2.187 11.942.967 9.897.967 7.555c0-3.319 2.855-5.88 6.192-5.88 3.338 0 6.193 2.561 6.193 5.881 0 2.34-1.22 4.387-2.376 5.822a16.898 16.898 0 0 1-1.182 1.315h.15a1.912 1.912 0 0 1 1.914 1.914v1.84a1.912 1.912 0 0 1-1.914 1.914H4.377a1.912 1.912 0 0 1-1.914-1.914v-1.84a1.912 1.912 0 0 1 1.914-1.914zm3.82-6.935c0 .692-.55 1.222-1.187 1.222s-1.185-.529-1.185-1.222.548-1.222 1.185-1.222c.638 0 1.186.529 1.186 1.222zm-1.186 2.477c1.348 0 2.442-1.11 2.442-2.478S8.507 5.28 7.159 5.28 4.72 6.39 4.72 7.758s1.092 2.477 2.44 2.477zm2.048 7.71H5.114v-.838h4.093z'/%3E%3Cpath fill='%23e1e3e9' d='M2.222 7.555c0-2.55 2.214-4.625 4.937-4.625 2.723 0 4.938 2.075 4.938 4.625 0 3.832-4.038 7.068-4.672 7.575l-.077.063a.286.286 0 0 1-.189.07.286.286 0 0 1-.188-.07l-.077-.063c-.634-.507-4.672-3.743-4.672-7.575zm4.937 2.68c1.348 0 2.442-1.11 2.442-2.478S8.507 5.28 7.159 5.28 4.72 6.39 4.72 7.758s1.092 2.477 2.44 2.477z'/%3E%3Cpath fill='%23fff' d='M4.377 15.948a.657.657 0 0 0-.659.659v1.84a.657.657 0 0 0 .659.659h5.565a.657.657 0 0 0 .659-.659v-1.84a.657.657 0 0 0-.659-.659zm4.83 1.16H5.114v.838h4.093z'/%3E%3C/g%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.255 1.255 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.255 1.255 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5.11 5.11 0 0 1 .314-.787l.009-.016a4.623 4.623 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.548 4.548 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4.314.319.566.676.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.416 2.416 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.448 2.448 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675c.211.2.381.43.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.76 4.76 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.407 3.407 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.255 1.255 0 0 1 .689 1.004 4.73 4.73 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528 0 .343-.02.694-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.815 5.815 0 0 1-.548-2.512c0-.286.017-.567.053-.843a1.255 1.255 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.778 4.778 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.47 4.47 0 0 1-1.935-.424 1.252 1.252 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.402 2.402 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.703 4.703 0 0 1-1.782 1.884 4.767 4.767 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.47 4.47 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a4.983 4.983 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.255 1.255 0 0 1-1.115.676h-.098a1.255 1.255 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15c.329-.237.574-.499.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267c-.088-.22-.264-.438-.526-.658l-.032-.028a3.16 3.16 0 0 0-.668-.428l-.27-.12a3.293 3.293 0 0 0-1.235-.23c-.757 0-1.415.163-1.974.493a3.36 3.36 0 0 0-1.3 1.382c-.297.593-.444 1.284-.444 2.074 0 .8.17 1.503.51 2.107a3.795 3.795 0 0 0 1.382 1.381 3.883 3.883 0 0 0 1.893.477c.53 0 1.015-.11 1.455-.33zm-2.789-5.38c-.384.45-.575 1.038-.575 1.762 0 .735.186 1.332.559 1.794.384.45.933.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.17 2.17 0 0 0 .468-.29l.178-.161a2.163 2.163 0 0 0 .397-.561c.163-.333.244-.717.244-1.15v-.115c0-.472-.098-.894-.296-1.267l-.043-.077a2.211 2.211 0 0 0-.633-.709l-.13-.086-.047-.028a2.099 2.099 0 0 0-1.073-.285c-.702 0-1.244.231-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.958.958 0 0 0-.353-.389.851.851 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.626 2.626 0 0 0 .331.423c.213.22.464.402.755.548l.173.074c.433.17.93.255 1.49.255.68 0 1.295-.165 1.844-.493a3.447 3.447 0 0 0 1.316-1.4c.329-.603.493-1.299.493-2.089 0-1.273-.33-2.243-.988-2.913-.658-.68-1.52-1.02-2.584-1.02-.598 0-1.124.115-1.575.347a2.807 2.807 0 0 0-.415.262l-.199.166a3.35 3.35 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138c.137.193.297.36.48.5l.155.11.053.034c.34.197.713.297 1.119.297.714 0 1.262-.225 1.645-.675.385-.46.576-1.048.576-1.762 0-.746-.192-1.338-.576-1.777-.372-.45-.92-.675-1.645-.675-.29 0-.569.053-.835.16a2.366 2.366 0 0 0-.284.136 1.99 1.99 0 0 0-.363.254 2.237 2.237 0 0 0-.46.569l-.082.162a2.56 2.56 0 0 0-.213 1.072v.115c0 .471.098.894.296 1.267l.135.211zm.964-.818a1.11 1.11 0 0 0 .367.385.937.937 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a.995.995 0 0 0-.503.135l-.012.007a.859.859 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.43 1.43 0 0 0 .14.66zm15.7-6.222c.232-.23.346-.516.346-.856a1.053 1.053 0 0 0-.345-.79 1.175 1.175 0 0 0-.84-.329c-.34 0-.625.11-.855.33a1.053 1.053 0 0 0-.346.79c0 .34.115.625.346.855.23.23.516.346.856.346.34 0 .62-.115.839-.346zm4.337 9.314.033-1.332c.128.269.324.518.59.747l.098.081a3.727 3.727 0 0 0 .316.224l.223.122a3.21 3.21 0 0 0 1.44.322 3.785 3.785 0 0 0 1.875-.477 3.52 3.52 0 0 0 1.382-1.366c.352-.593.526-1.29.526-2.09 0-.79-.147-1.48-.444-2.073a3.235 3.235 0 0 0-1.283-1.399c-.549-.34-1.195-.51-1.942-.51a3.476 3.476 0 0 0-1.527.344l-.086.043-.165.09a3.412 3.412 0 0 0-.33.214c-.288.21-.507.446-.656.707a1.893 1.893 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.482 2.482 0 0 0 .566.7c.078.065.159.125.245.18l.144.08a2.105 2.105 0 0 0 .975.232c.713 0 1.262-.225 1.645-.675.384-.46.576-1.053.576-1.778 0-.734-.192-1.327-.576-1.777-.373-.46-.921-.692-1.645-.692a2.18 2.18 0 0 0-1.015.235c-.147.075-.285.17-.415.282l-.15.142a2.086 2.086 0 0 0-.42.594c-.149.32-.223.685-.223 1.1v.115c0 .47.097.89.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.868.868 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.13 1.13 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013c.23-.087.472-.134.724-.14l.069-.002c.329 0 .542.033.642.099l.247-1.794c-.13-.066-.37-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2.086 2.086 0 0 0-.411.148 2.18 2.18 0 0 0-.4.249 2.482 2.482 0 0 0-.485.499 2.659 2.659 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884c0-.364.053-.678.159-.943a1.49 1.49 0 0 1 .466-.636 2.52 2.52 0 0 1 .399-.253 2.19 2.19 0 0 1 .224-.099zm9.784 2.656.05-.922c0-1.162-.285-2.062-.856-2.698-.559-.647-1.42-.97-2.584-.97-.746 0-1.415.163-2.007.493a3.462 3.462 0 0 0-1.4 1.382c-.329.604-.493 1.306-.493 2.106 0 .714.143 1.371.428 1.975.285.593.73 1.07 1.332 1.432.604.351 1.355.526 2.255.526.649 0 1.204-.062 1.668-.185l.044-.012.135-.04c.409-.122.736-.263.984-.421l-.542-1.267c-.2.108-.415.199-.642.274l-.297.087c-.34.088-.773.131-1.3.131-.636 0-1.135-.147-1.497-.444a1.573 1.573 0 0 1-.192-.193c-.244-.294-.415-.705-.512-1.234l-.004-.021h5.43zm-5.427-1.256-.003.022h3.752v-.138c-.007-.485-.104-.857-.288-1.118a1.056 1.056 0 0 0-.156-.176c-.307-.285-.746-.428-1.316-.428-.657 0-1.155.202-1.494.604-.253.3-.417.712-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81c-.68 0-1.311-.16-1.893-.478a3.795 3.795 0 0 1-1.381-1.382c-.34-.604-.51-1.306-.51-2.106 0-.79.147-1.482.444-2.074a3.364 3.364 0 0 1 1.3-1.382c.559-.33 1.217-.494 1.974-.494a3.293 3.293 0 0 1 1.234.231 3.341 3.341 0 0 1 .97.575c.264.22.44.439.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332c-.186.395-.526.746-1.02 1.053a3.167 3.167 0 0 1-1.662.444zm.296-1.482c.626 0 1.152-.214 1.58-.642.428-.44.642-1.01.642-1.711v-.115c0-.472-.098-.894-.296-1.267a2.211 2.211 0 0 0-.807-.872 2.098 2.098 0 0 0-1.119-.313c-.702 0-1.245.231-1.629.692-.384.45-.575 1.037-.575 1.76 0 .736.186 1.333.559 1.795.384.45.933.675 1.645.675zm6.521-6.237h1.711v1.4c.604-1.065 1.547-1.597 2.83-1.597 1.064 0 1.926.34 2.584 1.02.659.67.988 1.641.988 2.914 0 .79-.164 1.487-.493 2.09a3.456 3.456 0 0 1-1.316 1.399 3.51 3.51 0 0 1-1.844.493c-.636 0-1.19-.11-1.662-.329a2.665 2.665 0 0 1-1.086-.97l.017 5.134h-1.728V9.242zm4.048 6.22c.714 0 1.262-.224 1.645-.674.385-.46.576-1.048.576-1.762 0-.746-.192-1.338-.576-1.777-.372-.45-.92-.675-1.645-.675-.395 0-.768.098-1.12.296-.34.187-.613.46-.822.823-.197.351-.296.763-.296 1.234v.115c0 .472.098.894.296 1.267.209.362.483.647.823.855.34.197.713.297 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.159 1.159 0 0 1-.856-.346 1.165 1.165 0 0 1-.346-.856 1.053 1.053 0 0 1 .346-.79c.23-.219.516-.329.856-.329.329 0 .609.11.839.33a1.053 1.053 0 0 1 .345.79 1.159 1.159 0 0 1-.345.855c-.22.23-.5.346-.84.346zm7.875 9.133a3.167 3.167 0 0 1-1.662-.444c-.482-.307-.817-.658-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283c.186-.438.548-.812 1.086-1.119a3.486 3.486 0 0 1 1.778-.477c.746 0 1.393.17 1.942.51a3.235 3.235 0 0 1 1.283 1.4c.297.592.444 1.282.444 2.072 0 .8-.175 1.498-.526 2.09a3.52 3.52 0 0 1-1.382 1.366 3.785 3.785 0 0 1-1.876.477zm-.296-1.481c.713 0 1.26-.225 1.645-.675.384-.46.577-1.053.577-1.778 0-.734-.193-1.327-.577-1.776-.373-.46-.921-.692-1.645-.692a2.115 2.115 0 0 0-1.58.659c-.428.428-.642.992-.642 1.694v.115c0 .473.098.895.296 1.267a2.385 2.385 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481c.176-.505.46-.91.856-1.217a2.14 2.14 0 0 1 1.349-.46c.351 0 .593.032.724.098l-.247 1.794c-.099-.066-.313-.099-.642-.099-.516 0-.988.164-1.416.494-.417.329-.626.855-.626 1.58v3.883h-1.777V9.242zm9.534 7.718c-.9 0-1.651-.175-2.255-.526-.603-.362-1.047-.84-1.332-1.432a4.567 4.567 0 0 1-.428-1.975c0-.8.164-1.502.493-2.106a3.462 3.462 0 0 1 1.4-1.382c.592-.33 1.262-.494 2.007-.494 1.163 0 2.024.324 2.584.97.57.637.856 1.537.856 2.7 0 .296-.017.603-.05.92h-5.43c.12.67.356 1.153.708 1.45.362.296.86.443 1.497.443.526 0 .96-.044 1.3-.131a4.123 4.123 0 0 0 .938-.362l.542 1.267c-.274.175-.647.329-1.119.46-.472.132-1.042.197-1.711.197zm1.596-4.558c.01-.68-.137-1.158-.444-1.432-.307-.285-.746-.428-1.316-.428-1.152 0-1.815.62-1.991 1.86h3.752z'/%3E%3Cg fill-rule='evenodd' stroke-width='1.036'%3E%3Cpath fill='%23000' fill-opacity='.4' d='m8.166 16.146-.002.002a1.54 1.54 0 0 1-2.009 0l-.002-.002-.043-.034-.002-.002-.199-.162H4.377a.657.657 0 0 0-.659.659v1.84a.657.657 0 0 0 .659.659h5.565a.657.657 0 0 0 .659-.659v-1.84a.657.657 0 0 0-.659-.659H8.411l-.202.164zm-1.121-.905a.29.29 0 0 0 .113.023.286.286 0 0 0 .189-.07l.077-.063c.634-.508 4.672-3.743 4.672-7.575 0-2.55-2.215-4.625-4.938-4.625S2.221 5.006 2.221 7.556c0 3.225 2.86 6.027 4.144 7.137h.004l.04.038.484.4.077.063a.628.628 0 0 0 .074.047zm-2.52-.548a16.898 16.898 0 0 1-1.183-1.315C2.187 11.942.967 9.897.967 7.555c0-3.319 2.855-5.88 6.192-5.88 3.338 0 6.193 2.561 6.193 5.881 0 2.34-1.22 4.387-2.376 5.822a16.898 16.898 0 0 1-1.182 1.315h.15a1.912 1.912 0 0 1 1.914 1.914v1.84a1.912 1.912 0 0 1-1.914 1.914H4.377a1.912 1.912 0 0 1-1.914-1.914v-1.84a1.912 1.912 0 0 1 1.914-1.914zm3.82-6.935c0 .692-.55 1.222-1.187 1.222s-1.185-.529-1.185-1.222.548-1.222 1.185-1.222c.638 0 1.186.529 1.186 1.222zm-1.186 2.477c1.348 0 2.442-1.11 2.442-2.478S8.507 5.28 7.159 5.28 4.72 6.39 4.72 7.758s1.092 2.477 2.44 2.477zm2.048 7.71H5.114v-.838h4.093z'/%3E%3Cpath fill='%23e1e3e9' d='M2.222 7.555c0-2.55 2.214-4.625 4.937-4.625 2.723 0 4.938 2.075 4.938 4.625 0 3.832-4.038 7.068-4.672 7.575l-.077.063a.286.286 0 0 1-.189.07.286.286 0 0 1-.188-.07l-.077-.063c-.634-.507-4.672-3.743-4.672-7.575zm4.937 2.68c1.348 0 2.442-1.11 2.442-2.478S8.507 5.28 7.159 5.28 4.72 6.39 4.72 7.758s1.092 2.477 2.44 2.477z'/%3E%3Cpath fill='%23fff' d='M4.377 15.948a.657.657 0 0 0-.659.659v1.84a.657.657 0 0 0 .659.659h5.565a.657.657 0 0 0 .659-.659v-1.84a.657.657 0 0 0-.659-.659zm4.83 1.16H5.114v.838h4.093z'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:#ffffff80;margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:#ffffff80;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:#0000000d}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (-ms-high-contrast:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (-ms-high-contrast:black-on-white){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:#000000bf;text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:#ffffffbf;border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:#0000000d}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px #0000001a;padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px #00000059;box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999} diff --git a/browse_dropdown_filters/assets/maplibre_helpers-5d84afaa.js b/browse_dropdown_filters/assets/maplibre_helpers-5d84afaa.js deleted file mode 100644 index 485cb4446..000000000 --- a/browse_dropdown_filters/assets/maplibre_helpers-5d84afaa.js +++ /dev/null @@ -1,583 +0,0 @@ -var df=Object.defineProperty;var pf=(E,A,D)=>A in E?df(E,A,{enumerable:!0,configurable:!0,writable:!0,value:D}):E[A]=D;var Yc=(E,A,D)=>(pf(E,typeof A!="symbol"?A+"":A,D),D);(function(){const A=document.createElement("link").relList;if(A&&A.supports&&A.supports("modulepreload"))return;for(const te of document.querySelectorAll('link[rel="modulepreload"]'))N(te);new MutationObserver(te=>{for(const ie of te)if(ie.type==="childList")for(const de of ie.addedNodes)de.tagName==="LINK"&&de.rel==="modulepreload"&&N(de)}).observe(document,{childList:!0,subtree:!0});function D(te){const ie={};return te.integrity&&(ie.integrity=te.integrity),te.referrerPolicy&&(ie.referrerPolicy=te.referrerPolicy),te.crossOrigin==="use-credentials"?ie.credentials="include":te.crossOrigin==="anonymous"?ie.credentials="omit":ie.credentials="same-origin",ie}function N(te){if(te.ep)return;te.ep=!0;const ie=D(te);fetch(te.href,ie)}})();function fa(){}const ff=E=>E;function Ll(E,A){for(const D in A)E[D]=A[D];return E}function td(E){return E()}function Hu(){return Object.create(null)}function ps(E){E.forEach(td)}function nh(E){return typeof E=="function"}function sh(E,A){return E!=E?A==A:E!==A||E&&typeof E=="object"||typeof E=="function"}let kl;function vm(E,A){return kl||(kl=document.createElement("a")),kl.href=A,E===kl.href}function mf(E){return Object.keys(E).length===0}function id(E,...A){if(E==null){for(const N of A)N(void 0);return fa}const D=E.subscribe(...A);return D.unsubscribe?()=>D.unsubscribe():D}function bm(E){let A;return id(E,D=>A=D)(),A}function wm(E,A,D){E.$$.on_destroy.push(id(A,D))}function rd(E,A,D,N){if(E){const te=nd(E,A,D,N);return E[0](te)}}function nd(E,A,D,N){return E[1]&&N?Ll(D.ctx.slice(),E[1](N(A))):D.ctx}function sd(E,A,D,N){if(E[2]&&N){const te=E[2](N(D));if(A.dirty===void 0)return te;if(typeof te=="object"){const ie=[],de=Math.max(A.dirty.length,te.length);for(let h=0;h32){const A=[],D=E.ctx.length/32;for(let N=0;Nwindow.performance.now():()=>Date.now(),ah=ld?E=>requestAnimationFrame(E):fa;const da=new Set;function cd(E){da.forEach(A=>{A.c(E)||(da.delete(A),A.f())}),da.size!==0&&ah(cd)}function _f(E){let A;return da.size===0&&ah(cd),{promise:new Promise(D=>{da.add(A={c:E,f:D})}),abort(){da.delete(A)}}}function zl(E,A){E.appendChild(A)}function hd(E){if(!E)return document;const A=E.getRootNode?E.getRootNode():E.ownerDocument;return A&&A.host?A:E.ownerDocument}function yf(E){const A=wo("style");return A.textContent="/* empty */",xf(hd(E),A),A.sheet}function xf(E,A){return zl(E.head||E,A),A.sheet}function oh(E,A,D){E.insertBefore(A,D||null)}function Eo(E){E.parentNode&&E.parentNode.removeChild(E)}function Em(E,A){for(let D=0;DE.removeEventListener(A,D,N)}function Am(E){return function(A){return A.stopPropagation(),E.call(this,A)}}function pn(E,A,D){D==null?E.removeAttribute(A):E.getAttribute(A)!==D&&E.setAttribute(A,D)}const bf=["width","height"];function Yu(E,A){const D=Object.getOwnPropertyDescriptors(E.__proto__);for(const N in A)A[N]==null?E.removeAttribute(N):N==="style"?E.style.cssText=A[N]:N==="__value"?E.value=E[N]=A[N]:D[N]&&D[N].set&&bf.indexOf(N)===-1?E[N]=A[N]:pn(E,N,A[N])}function Pm(E){let A;return{p(...D){A=D,A.forEach(N=>E.push(N))},r(){A.forEach(D=>E.splice(E.indexOf(D),1))}}}function Mm(E){return E===""?null:+E}function wf(E){return Array.from(E.childNodes)}function Tf(E,A){A=""+A,E.data!==A&&(E.data=A)}function Cm(E,A){E.value=A??""}function km(E,A,D,N){D==null?E.style.removeProperty(A):E.style.setProperty(A,D,N?"important":"")}function zm(E,A,D){for(let N=0;N>>0}function Sf(E,A){const D={stylesheet:yf(A),rules:{}};return Bl.set(E,D),D}function Ju(E,A,D,N,te,ie,de,h=0){const ce=16.666/N;let Y=`{ -`;for(let bt=0;bt<=1;bt+=ce){const et=A+(D-A)*ie(bt);Y+=bt*100+`%{${de(et,1-et)}} -`}const Ne=Y+`100% {${de(D,1-D)}} -}`,xe=`__svelte_${Ef(Ne)}_${h}`,nt=hd(E),{stylesheet:ot,rules:We}=Bl.get(nt)||Sf(nt,E);We[xe]||(We[xe]=!0,ot.insertRule(`@keyframes ${xe} ${Ne}`,ot.cssRules.length));const xt=E.style.animation||"";return E.style.animation=`${xt?`${xt}, `:""}${xe} ${N}ms linear ${te}ms 1 both`,Rl+=1,xe}function If(E,A){const D=(E.style.animation||"").split(", "),N=D.filter(A?ie=>ie.indexOf(A)<0:ie=>ie.indexOf("__svelte")===-1),te=D.length-N.length;te&&(E.style.animation=N.join(", "),Rl-=te,Rl||Af())}function Af(){ah(()=>{Rl||(Bl.forEach(E=>{const{ownerNode:A}=E.stylesheet;A&&Eo(A)}),Bl.clear())})}let To;function bo(E){To=E}function So(){if(!To)throw new Error("Function called outside component initialization");return To}function Bm(E){So().$$.on_mount.push(E)}function Rm(E){So().$$.on_destroy.push(E)}function Fm(){const E=So();return(A,D,{cancelable:N=!1}={})=>{const te=E.$$.callbacks[A];if(te){const ie=dd(A,D,{cancelable:N});return te.slice().forEach(de=>{de.call(E,ie)}),!ie.defaultPrevented}return!0}}function Om(E,A){return So().$$.context.set(E,A),A}function Um(E){return So().$$.context.get(E)}function Pf(E,A){const D=E.$$.callbacks[A.type];D&&D.slice().forEach(N=>N.call(this,A))}const ua=[],eh=[];let pa=[];const th=[],Mf=Promise.resolve();let ih=!1;function Cf(){ih||(ih=!0,Mf.then(pd))}function Fl(E){pa.push(E)}function Vm(E){th.push(E)}const Jc=new Set;let ha=0;function pd(){if(ha!==0)return;const E=To;do{try{for(;haE.indexOf(N)===-1?A.push(N):D.push(N)),D.forEach(N=>N()),pa=A}let vo;function Df(){return vo||(vo=Promise.resolve(),vo.then(()=>{vo=null})),vo}function Qc(E,A,D){E.dispatchEvent(dd(`${A?"intro":"outro"}${D}`))}const Dl=new Set;let fn;function Nm(){fn={r:0,c:[],p:fn}}function $m(){fn.r||ps(fn.c),fn=fn.p}function Io(E,A){E&&E.i&&(Dl.delete(E),E.i(A))}function Vl(E,A,D,N){if(E&&E.o){if(Dl.has(E))return;Dl.add(E),fn.c.push(()=>{Dl.delete(E),N&&(D&&E.d(1),N())}),E.o(A)}else N&&N()}const Lf={duration:0};function qm(E,A,D,N){let ie=A(E,D,{direction:"both"}),de=N?0:1,h=null,ce=null,Y=null,Ne;function xe(){Y&&If(E,Y)}function nt(We,xt){const bt=We.b-de;return xt*=Math.abs(bt),{a:de,b:We.b,d:bt,duration:xt,start:We.start,end:We.start+xt,group:We.group}}function ot(We){const{delay:xt=0,duration:bt=300,easing:et=ff,tick:Bt=fa,css:pt}=ie||Lf,ri={start:gf()+xt,b:We};We||(ri.group=fn,fn.r+=1),"inert"in E&&(We?Ne!==void 0&&(E.inert=Ne):(Ne=E.inert,E.inert=!0)),h||ce?ce=ri:(pt&&(xe(),Y=Ju(E,de,We,bt,xt,et,pt)),We&&Bt(0,1),h=nt(ri,bt),Fl(()=>Qc(E,We,"start")),_f(Rt=>{if(ce&&Rt>ce.start&&(h=nt(ce,bt),ce=null,Qc(E,h.b,"start"),pt&&(xe(),Y=Ju(E,de,h.b,h.duration,0,et,ie.css))),h){if(Rt>=h.end)Bt(de=h.b,1-de),Qc(E,h.b,"end"),ce||(h.b?xe():--h.group.r||ps(h.group.c)),h=null;else if(Rt>=h.start){const Ai=Rt-h.start;de=h.a+h.d*et(Ai/h.duration),Bt(de,1-de)}}return!!(h||ce)}))}return{run(We){nh(ie)?Df().then(()=>{ie=ie({direction:We?"in":"out"}),ot(We)}):ot(We)},end(){xe(),h=ce=null}}}function jm(E){return(E==null?void 0:E.length)!==void 0?E:Array.from(E)}function Zm(E,A){Vl(E,1,1,()=>{A.delete(E.key)})}function Gm(E,A,D,N,te,ie,de,h,ce,Y,Ne,xe){let nt=E.length,ot=ie.length,We=nt;const xt={};for(;We--;)xt[E[We].key]=We;const bt=[],et=new Map,Bt=new Map,pt=[];for(We=ot;We--;){const Mt=xe(te,ie,We),Ct=D(Mt);let ni=de.get(Ct);ni?N&&pt.push(()=>ni.p(Mt,A)):(ni=Y(Ct,Mt),ni.c()),et.set(Ct,bt[We]=ni),Ct in xt&&Bt.set(Ct,Math.abs(We-xt[Ct]))}const ri=new Set,Rt=new Set;function Ai(Mt){Io(Mt,1),Mt.m(h,Ne),de.set(Mt.key,Mt),Ne=Mt.first,ot--}for(;nt&&ot;){const Mt=bt[ot-1],Ct=E[nt-1],ni=Mt.key,Vt=Ct.key;Mt===Ct?(Ne=Mt.first,nt--,ot--):et.has(Vt)?!de.has(ni)||ri.has(ni)?Ai(Mt):Rt.has(Vt)?nt--:Bt.get(ni)>Bt.get(Vt)?(Rt.add(ni),Ai(Mt)):(ri.add(Vt),nt--):(ce(Ct,de),nt--)}for(;nt--;){const Mt=E[nt];et.has(Mt.key)||ce(Mt,de)}for(;ot;)Ai(bt[ot-1]);return ps(pt),bt}function Bf(E,A){const D={},N={},te={$$scope:1};let ie=E.length;for(;ie--;){const de=E[ie],h=A[ie];if(h){for(const ce in de)ce in h||(N[ce]=1);for(const ce in h)te[ce]||(D[ce]=h[ce],te[ce]=1);E[ie]=h}else for(const ce in de)te[ce]=1}for(const de in N)de in D||(D[de]=void 0);return D}function Xm(E,A,D){const N=E.$$.props[A];N!==void 0&&(E.$$.bound[N]=D,D(E.$$.ctx[N]))}function Rf(E){E&&E.c()}function fd(E,A,D){const{fragment:N,after_update:te}=E.$$;N&&N.m(A,D),Fl(()=>{const ie=E.$$.on_mount.map(td).filter(nh);E.$$.on_destroy?E.$$.on_destroy.push(...ie):ps(ie),E.$$.on_mount=[]}),te.forEach(Fl)}function md(E,A){const D=E.$$;D.fragment!==null&&(zf(D.after_update),ps(D.on_destroy),D.fragment&&D.fragment.d(A),D.on_destroy=D.fragment=null,D.ctx=[])}function Ff(E,A){E.$$.dirty[0]===-1&&(ua.push(E),Cf(),E.$$.dirty.fill(0)),E.$$.dirty[A/31|0]|=1<{const We=ot.length?ot[0]:nt;return Y.ctx&&te(Y.ctx[xe],Y.ctx[xe]=We)&&(!Y.skip_bound&&Y.bound[xe]&&Y.bound[xe](We),Ne&&Ff(E,xe)),nt}):[],Y.update(),Ne=!0,ps(Y.before_update),Y.fragment=N?N(Y.ctx):!1,A.target){if(A.hydrate){const xe=wf(A.target);Y.fragment&&Y.fragment.l(xe),xe.forEach(Eo)}else Y.fragment&&Y.fragment.c();A.intro&&Io(E.$$.fragment),fd(E,A.target,A.anchor),pd()}bo(ce)}class hh{constructor(){Yc(this,"$$");Yc(this,"$$set")}$destroy(){md(this,1),this.$destroy=fa}$on(A,D){if(!nh(D))return fa;const N=this.$$.callbacks[A]||(this.$$.callbacks[A]=[]);return N.push(D),()=>{const te=N.indexOf(D);te!==-1&&N.splice(te,1)}}$set(A){this.$$set&&!mf(A)&&(this.$$.skip_bound=!0,this.$$set(A),this.$$.skip_bound=!1)}}const Of="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Of);var Uf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Wm(E){return E&&E.__esModule&&Object.prototype.hasOwnProperty.call(E,"default")?E.default:E}function Hm(E){if(E.__esModule)return E;var A=E.default;if(typeof A=="function"){var D=function N(){if(this instanceof N){var te=[null];te.push.apply(te,arguments);var ie=Function.bind.apply(A,te);return new ie}return A.apply(this,arguments)};D.prototype=A.prototype}else D={};return Object.defineProperty(D,"__esModule",{value:!0}),Object.keys(E).forEach(function(N){var te=Object.getOwnPropertyDescriptor(E,N);Object.defineProperty(D,N,te.get?te:{enumerable:!0,get:function(){return E[N]}})}),D}var gd={exports:{}};(function(E,A){(function(D,N){E.exports=N()})(Uf,function(){var D,N,te;function ie(h,ce){if(!D)D=ce;else if(!N)N=ce;else{var Y="var sharedChunk = {}; ("+D+")(sharedChunk); ("+N+")(sharedChunk);",Ne={};D(Ne),te=ce(Ne),typeof window<"u"&&(te.workerUrl=window.URL.createObjectURL(new Blob([Y],{type:"text/javascript"})))}}ie(["exports"],function(h){function ce(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Y=Ne;function Ne(i,e){this.x=i,this.y=e}Ne.prototype={clone:function(){return new Ne(this.x,this.y)},add:function(i){return this.clone()._add(i)},sub:function(i){return this.clone()._sub(i)},multByPoint:function(i){return this.clone()._multByPoint(i)},divByPoint:function(i){return this.clone()._divByPoint(i)},mult:function(i){return this.clone()._mult(i)},div:function(i){return this.clone()._div(i)},rotate:function(i){return this.clone()._rotate(i)},rotateAround:function(i,e){return this.clone()._rotateAround(i,e)},matMult:function(i){return this.clone()._matMult(i)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(i){return this.x===i.x&&this.y===i.y},dist:function(i){return Math.sqrt(this.distSqr(i))},distSqr:function(i){var e=i.x-this.x,r=i.y-this.y;return e*e+r*r},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(i){return Math.atan2(this.y-i.y,this.x-i.x)},angleWith:function(i){return this.angleWithSep(i.x,i.y)},angleWithSep:function(i,e){return Math.atan2(this.x*e-this.y*i,this.x*i+this.y*e)},_matMult:function(i){var e=i[2]*this.x+i[3]*this.y;return this.x=i[0]*this.x+i[1]*this.y,this.y=e,this},_add:function(i){return this.x+=i.x,this.y+=i.y,this},_sub:function(i){return this.x-=i.x,this.y-=i.y,this},_mult:function(i){return this.x*=i,this.y*=i,this},_div:function(i){return this.x/=i,this.y/=i,this},_multByPoint:function(i){return this.x*=i.x,this.y*=i.y,this},_divByPoint:function(i){return this.x/=i.x,this.y/=i.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var i=this.y;return this.y=this.x,this.x=-i,this},_rotate:function(i){var e=Math.cos(i),r=Math.sin(i),s=r*this.x+e*this.y;return this.x=e*this.x-r*this.y,this.y=s,this},_rotateAround:function(i,e){var r=Math.cos(i),s=Math.sin(i),l=e.y+s*(this.x-e.x)+r*(this.y-e.y);return this.x=e.x+r*(this.x-e.x)-s*(this.y-e.y),this.y=l,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},Ne.convert=function(i){return i instanceof Ne?i:Array.isArray(i)?new Ne(i[0],i[1]):i};var xe=ce(Y),nt=ot;function ot(i,e,r,s){this.cx=3*i,this.bx=3*(r-i)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(s-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=i,this.p1y=e,this.p2x=r,this.p2y=s}ot.prototype={sampleCurveX:function(i){return((this.ax*i+this.bx)*i+this.cx)*i},sampleCurveY:function(i){return((this.ay*i+this.by)*i+this.cy)*i},sampleCurveDerivativeX:function(i){return(3*this.ax*i+2*this.bx)*i+this.cx},solveCurveX:function(i,e){if(e===void 0&&(e=1e-6),i<0)return 0;if(i>1)return 1;for(var r=i,s=0;s<8;s++){var l=this.sampleCurveX(r)-i;if(Math.abs(l)l?d=r:f=r,r=.5*(f-d)+d;return r},solve:function(i,e){return this.sampleCurveY(this.solveCurveX(i,e))}};var We=ce(nt);function xt(i,e,r,s){const l=new We(i,e,r,s);return function(u){return l.solve(u)}}const bt=xt(.25,.1,.25,1);function et(i,e,r){return Math.min(r,Math.max(e,i))}function Bt(i,e,r){const s=r-e,l=((i-e)%s+s)%s+e;return l===e?r:l}function pt(i,...e){for(const r of e)for(const s in r)i[s]=r[s];return i}let ri=1;function Rt(i,e){i.forEach(r=>{e[r]&&(e[r]=e[r].bind(e))})}function Ai(i,e,r){const s={};for(const l in i)s[l]=e.call(r||this,i[l],l,i);return s}function Mt(i,e,r){const s={};for(const l in i)e.call(r||this,i[l],l,i)&&(s[l]=i[l]);return s}function Ct(i){return Array.isArray(i)?i.map(Ct):typeof i=="object"&&i?Ai(i,Ct):i}const ni={};function Vt(i){ni[i]||(typeof console<"u"&&console.warn(i),ni[i]=!0)}function yt(i,e,r){return(r.y-i.y)*(e.x-i.x)>(e.y-i.y)*(r.x-i.x)}function ga(i){let e=0;for(let r,s,l=0,u=i.length,d=u-1;lcancelAnimationFrame(e)}},getImageData(i,e=0){return this.getImageCanvasContext(i).getImageData(-e,-e,i.width+2*e,i.height+2*e)},getImageCanvasContext(i){const e=window.document.createElement("canvas"),r=e.getContext("2d",{willReadFrequently:!0});if(!r)throw new Error("failed to create canvas 2d context");return e.width=i.width,e.height=i.height,r.drawImage(i,0,0,i.width,i.height),r},resolveURL:i=>(gn||(gn=document.createElement("a")),gn.href=i,gn.href),hardwareConcurrency:typeof navigator<"u"&&navigator.hardwareConcurrency||4,get prefersReducedMotion(){return!!matchMedia&&(Hr==null&&(Hr=matchMedia("(prefers-reduced-motion: reduce)")),Hr.matches)}},Nn={MAX_PARALLEL_IMAGE_REQUESTS:16,MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:8,MAX_TILE_CACHE_ZOOM_LEVELS:5,REGISTERED_PROTOCOLS:{},WORKER_URL:""};class Br extends Error{constructor(e,r,s,l){super(`AJAXError: ${r} (${e}): ${s}`),this.status=e,this.statusText=r,this.url=s,this.body=l}}const bi=Zi()?()=>self.worker&&self.worker.referrer:()=>(window.location.protocol==="blob:"?window.parent:window).location.href,Gi=i=>Nn.REGISTERED_PROTOCOLS[i.substring(0,i.indexOf("://"))];function hi(i,e){const r=new AbortController,s=new Request(i.url,{method:i.method||"GET",body:i.body,credentials:i.credentials,headers:i.headers,referrer:bi(),signal:r.signal});let l=!1,u=!1;return i.type==="json"&&s.headers.set("Accept","application/json"),u||fetch(s).then(d=>d.ok?(f=>{(i.type==="arrayBuffer"||i.type==="image"?f.arrayBuffer():i.type==="json"?f.json():f.text()).then(g=>{u||(l=!0,e(null,g,f.headers.get("Cache-Control"),f.headers.get("Expires")))}).catch(g=>{u||e(new Error(g.message))})})(d):d.blob().then(f=>e(new Br(d.status,d.statusText,i.url,f)))).catch(d=>{d.code!==20&&e(new Error(d.message))}),{cancel:()=>{u=!0,l||r.abort()}}}const yn=function(i,e){if(/:\/\//.test(i.url)&&!/^https?:|^file:/.test(i.url)){if(Zi()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",i,e);if(!Zi())return(Gi(i.url)||hi)(i,e)}if(!(/^file:/.test(r=i.url)||/^file:/.test(bi())&&!/^\w+:/.test(r))){if(fetch&&Request&&AbortController&&Object.prototype.hasOwnProperty.call(Request.prototype,"signal"))return hi(i,e);if(Zi()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",i,e,void 0,!0)}var r;return function(s,l){const u=new XMLHttpRequest;u.open(s.method||"GET",s.url,!0),s.type!=="arrayBuffer"&&s.type!=="image"||(u.responseType="arraybuffer");for(const d in s.headers)u.setRequestHeader(d,s.headers[d]);return s.type==="json"&&(u.responseType="text",u.setRequestHeader("Accept","application/json")),u.withCredentials=s.credentials==="include",u.onerror=()=>{l(new Error(u.statusText))},u.onload=()=>{if((u.status>=200&&u.status<300||u.status===0)&&u.response!==null){let d=u.response;if(s.type==="json")try{d=JSON.parse(u.response)}catch(f){return l(f)}l(null,d,u.getResponseHeader("Cache-Control"),u.getResponseHeader("Expires"))}else{const d=new Blob([u.response],{type:u.getResponseHeader("Content-Type")});l(new Br(u.status,u.statusText,s.url,d))}},u.send(s.body),{cancel:()=>u.abort()}}(i,e)},xn=function(i,e){return yn(pt(i,{type:"arrayBuffer"}),e)};function Kr(i){if(!i||i.indexOf("://")<=0||i.indexOf("data:image/")===0||i.indexOf("blob:")===0)return!0;const e=new URL(i),r=window.location;return e.protocol===r.protocol&&e.host===r.host}function Rr(i,e,r){r[i]&&r[i].indexOf(e)!==-1||(r[i]=r[i]||[],r[i].push(e))}function br(i,e,r){if(r&&r[i]){const s=r[i].indexOf(e);s!==-1&&r[i].splice(s,1)}}class wr{constructor(e,r={}){pt(this,r),this.type=e}}class Xi extends wr{constructor(e,r={}){super("error",pt({error:e},r))}}class vn{on(e,r){return this._listeners=this._listeners||{},Rr(e,r,this._listeners),this}off(e,r){return br(e,r,this._listeners),br(e,r,this._oneTimeListeners),this}once(e,r){return r?(this._oneTimeListeners=this._oneTimeListeners||{},Rr(e,r,this._oneTimeListeners),this):new Promise(s=>this.once(e,s))}fire(e,r){typeof e=="string"&&(e=new wr(e,r||{}));const s=e.type;if(this.listens(s)){e.target=this;const l=this._listeners&&this._listeners[s]?this._listeners[s].slice():[];for(const f of l)f.call(this,e);const u=this._oneTimeListeners&&this._oneTimeListeners[s]?this._oneTimeListeners[s].slice():[];for(const f of u)br(s,f,this._oneTimeListeners),f.call(this,e);const d=this._eventedParent;d&&(pt(e,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),d.fire(e))}else e instanceof Xi&&console.error(e.error);return this}listens(e){return this._listeners&&this._listeners[e]&&this._listeners[e].length>0||this._oneTimeListeners&&this._oneTimeListeners[e]&&this._oneTimeListeners[e].length>0||this._eventedParent&&this._eventedParent.listens(e)}setEventedParent(e,r){return this._eventedParent=e,this._eventedParentData=r,this}}var le={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},terrain:{type:"terrain"},sources:{required:!0,type:"sources"},sprite:{type:"sprite"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{required:!0,type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image",{"!":"icon-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"padding",default:[2],units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},"viewport-glyph":{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field",{"!":"text-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number",minimum:0,default:1}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}};const Fr=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function $n(i,e){const r={};for(const s in i)s!=="ref"&&(r[s]=i[s]);return Fr.forEach(s=>{s in e&&(r[s]=e[s])}),r}function wt(i,e){if(Array.isArray(i)){if(!Array.isArray(e)||i.length!==e.length)return!1;for(let r=0;r`:i.itemType.kind==="value"?"array":`array<${e}>`}return i.kind}const jn=[Or,be,Qe,Ye,Pi,Er,Qt,ui(He),er,Sr];function cr(i,e){if(e.kind==="error")return null;if(i.kind==="array"){if(e.kind==="array"&&(e.N===0&&e.itemType.kind==="value"||!cr(i.itemType,e.itemType))&&(typeof i.N!="number"||i.N===e.N))return null}else{if(i.kind===e.kind)return null;if(i.kind==="value"){for(const r of jn)if(!cr(r,e))return null}}return`Expected ${St(i)} but found ${St(e)} instead.`}function V(i,e){return e.some(r=>r.kind===i.kind)}function I(i,e){return e.some(r=>r==="null"?i===null:r==="array"?Array.isArray(i):r==="object"?i&&!Array.isArray(i)&&typeof i=="object":r===typeof i)}function M(i,e){return i.kind==="array"&&e.kind==="array"?i.itemType.kind===e.itemType.kind&&typeof i.N=="number":i.kind===e.kind}const L=.96422,j=.82521,Z=4/29,J=6/29,W=3*J*J,G=J*J*J,ee=Math.PI/180,ue=180/Math.PI;function fe(i){return(i%=360)<0&&(i+=360),i}function pe([i,e,r,s]){let l,u;const d=Xe((.2225045*(i=$e(i))+.7168786*(e=$e(e))+.0606169*(r=$e(r)))/1);i===e&&e===r?l=u=d:(l=Xe((.4360747*i+.3850649*e+.1430804*r)/L),u=Xe((.0139322*i+.0971045*e+.7141733*r)/j));const f=116*d-16;return[f<0?0:f,500*(l-d),200*(d-u),s]}function $e(i){return i<=.04045?i/12.92:Math.pow((i+.055)/1.055,2.4)}function Xe(i){return i>G?Math.pow(i,1/3):i/W+Z}function Le([i,e,r,s]){let l=(i+16)/116,u=isNaN(e)?l:l+e/500,d=isNaN(r)?l:l-r/200;return l=1*Ge(l),u=L*Ge(u),d=j*Ge(d),[Oe(3.1338561*u-1.6168667*l-.4906146*d),Oe(-.9787684*u+1.9161415*l+.033454*d),Oe(.0719453*u-.2289914*l+1.4052427*d),s]}function Oe(i){return(i=i<=.00304?12.92*i:1.055*Math.pow(i,1/2.4)-.055)<0?0:i>1?1:i}function Ge(i){return i>J?i*i*i:W*(i-Z)}function at(i){return parseInt(i.padEnd(2,i),16)/255}function tt(i,e){return ct(e?i/100:i,0,1)}function ct(i,e,r){return Math.min(Math.max(e,i),r)}function Tt(i){return!i.some(Number.isNaN)}const Xt={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};class Ze{constructor(e,r,s,l=1,u=!0){this.r=e,this.g=r,this.b=s,this.a=l,u||(this.r*=l,this.g*=l,this.b*=l,l||this.overwriteGetter("rgb",[e,r,s,l]))}static parse(e){if(e instanceof Ze)return e;if(typeof e!="string")return;const r=function(s){if((s=s.toLowerCase())==="transparent")return[0,0,0,0];const l=Xt[s];if(l){const[d,f,g]=l;return[d/255,f/255,g/255,1]}if(s.startsWith("#")&&/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.test(s)){const d=s.length<6?1:2;let f=1;return[at(s.slice(f,f+=d)),at(s.slice(f,f+=d)),at(s.slice(f,f+=d)),at(s.slice(f,f+d)||"ff")]}if(s.startsWith("rgb")){const d=s.match(/^rgba?\(\s*([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(d){const[f,g,v,b,S,P,C,z,U,F,K,Q]=d,X=[b||" ",C||" ",F].join("");if(X===" "||X===" /"||X===",,"||X===",,,"){const ne=[v,P,U].join(""),ae=ne==="%%%"?100:ne===""?255:0;if(ae){const he=[ct(+g/ae,0,1),ct(+S/ae,0,1),ct(+z/ae,0,1),K?tt(+K,Q):1];if(Tt(he))return he}}return}}const u=s.match(/^hsla?\(\s*([\de.+-]+)(?:deg)?(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(u){const[d,f,g,v,b,S,P,C,z]=u,U=[g||" ",b||" ",P].join("");if(U===" "||U===" /"||U===",,"||U===",,,"){const F=[+f,ct(+v,0,100),ct(+S,0,100),C?tt(+C,z):1];if(Tt(F))return function([K,Q,X,ne]){function ae(he){const ze=(he+K/30)%12,Be=Q*Math.min(X,1-X);return X-Be*Math.max(-1,Math.min(ze-3,9-ze,1))}return K=fe(K),Q/=100,X/=100,[ae(0),ae(8),ae(4),ne]}(F)}}}(e);return r?new Ze(...r,!1):void 0}get rgb(){const{r:e,g:r,b:s,a:l}=this,u=l||1/0;return this.overwriteGetter("rgb",[e/u,r/u,s/u,l])}get hcl(){return this.overwriteGetter("hcl",function(e){const[r,s,l,u]=pe(e),d=Math.sqrt(s*s+l*l);return[Math.round(1e4*d)?fe(Math.atan2(l,s)*ue):NaN,d,r,u]}(this.rgb))}get lab(){return this.overwriteGetter("lab",pe(this.rgb))}overwriteGetter(e,r){return Object.defineProperty(this,e,{value:r}),r}toString(){const[e,r,s,l]=this.rgb;return`rgba(${[e,r,s].map(u=>Math.round(255*u)).join(",")},${l})`}}Ze.black=new Ze(0,0,0,1),Ze.white=new Ze(1,1,1,1),Ze.transparent=new Ze(0,0,0,0),Ze.red=new Ze(1,0,0,1);class Lt{constructor(e,r,s){this.sensitivity=e?r?"variant":"case":r?"accent":"base",this.locale=s,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(e,r){return this.collator.compare(e,r)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class Ur{constructor(e,r,s,l,u){this.text=e,this.image=r,this.scale=s,this.fontStack=l,this.textColor=u}}class di{constructor(e){this.sections=e}static fromString(e){return new di([new Ur(e,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(e=>e.text.length!==0||e.image&&e.image.name.length!==0)}static factory(e){return e instanceof di?e:di.fromString(e)}toString(){return this.sections.length===0?"":this.sections.map(e=>e.text).join("")}}class Li{constructor(e){this.values=e.slice()}static parse(e){if(e instanceof Li)return e;if(typeof e=="number")return new Li([e,e,e,e]);if(Array.isArray(e)&&!(e.length<1||e.length>4)){for(const r of e)if(typeof r!="number")return;switch(e.length){case 1:e=[e[0],e[0],e[0],e[0]];break;case 2:e=[e[0],e[1],e[0],e[1]];break;case 3:e=[e[0],e[1],e[2],e[1]]}return new Li(e)}}toString(){return JSON.stringify(this.values)}}class Wi{constructor(e){this.name=e.name,this.available=e.available}toString(){return this.name}static fromString(e){return e?new Wi({name:e,available:!1}):null}}function Tn(i,e,r,s){return typeof i=="number"&&i>=0&&i<=255&&typeof e=="number"&&e>=0&&e<=255&&typeof r=="number"&&r>=0&&r<=255?s===void 0||typeof s=="number"&&s>=0&&s<=1?null:`Invalid rgba value [${[i,e,r,s].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof s=="number"?[i,e,r,s]:[i,e,r]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function ms(i){if(i===null||typeof i=="string"||typeof i=="boolean"||typeof i=="number"||i instanceof Ze||i instanceof Lt||i instanceof di||i instanceof Li||i instanceof Wi)return!0;if(Array.isArray(i)){for(const e of i)if(!ms(e))return!1;return!0}if(typeof i=="object"){for(const e in i)if(!ms(i[e]))return!1;return!0}return!1}function Wt(i){if(i===null)return Or;if(typeof i=="string")return Qe;if(typeof i=="boolean")return Ye;if(typeof i=="number")return be;if(i instanceof Ze)return Pi;if(i instanceof Lt)return Tr;if(i instanceof di)return Er;if(i instanceof Li)return er;if(i instanceof Wi)return Sr;if(Array.isArray(i)){const e=i.length;let r;for(const s of i){const l=Wt(s);if(r){if(r===l)continue;r=He;break}r=l}return ui(r||He,e)}return Qt}function Zn(i){const e=typeof i;return i===null?"":e==="string"||e==="number"||e==="boolean"?String(i):i instanceof Ze||i instanceof di||i instanceof Li||i instanceof Wi?i.toString():JSON.stringify(i)}class Vr{constructor(e,r){this.type=e,this.value=r}static parse(e,r){if(e.length!==2)return r.error(`'literal' expression requires exactly one argument, but found ${e.length-1} instead.`);if(!ms(e[1]))return r.error("invalid value");const s=e[1];let l=Wt(s);const u=r.expectedType;return l.kind!=="array"||l.N!==0||!u||u.kind!=="array"||typeof u.N=="number"&&u.N!==0||(l=u),new Vr(l,s)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}}class Nt{constructor(e){this.name="ExpressionEvaluationError",this.message=e}toJSON(){return this.message}}const gs={string:Qe,number:be,boolean:Ye,object:Qt};class tr{constructor(e,r){this.type=e,this.args=r}static parse(e,r){if(e.length<2)return r.error("Expected at least one argument.");let s,l=1;const u=e[0];if(u==="array"){let f,g;if(e.length>2){const v=e[1];if(typeof v!="string"||!(v in gs)||v==="object")return r.error('The item type argument of "array" must be one of string, number, boolean',1);f=gs[v],l++}else f=He;if(e.length>3){if(e[2]!==null&&(typeof e[2]!="number"||e[2]<0||e[2]!==Math.floor(e[2])))return r.error('The length argument to "array" must be a positive integer literal',2);g=e[2],l++}s=ui(f,g)}else{if(!gs[u])throw new Error(`Types doesn't contain name = ${u}`);s=gs[u]}const d=[];for(;le.outputDefined())}}const Ao={"to-boolean":Ye,"to-color":Pi,"to-number":be,"to-string":Qe};class pi{constructor(e,r){this.type=e,this.args=r}static parse(e,r){if(e.length<2)return r.error("Expected at least one argument.");const s=e[0];if(!Ao[s])throw new Error(`Can't parse ${s} as it is not part of the known types`);if((s==="to-boolean"||s==="to-string")&&e.length!==2)return r.error("Expected one argument.");const l=Ao[s],u=[];for(let d=1;d4?`Invalid rbga value ${JSON.stringify(r)}: expected an array containing either three or four numeric values.`:Tn(r[0],r[1],r[2],r[3]),!s))return new Ze(r[0]/255,r[1]/255,r[2]/255,r[3])}throw new Nt(s||`Could not parse color from value '${typeof r=="string"?r:JSON.stringify(r)}'`)}if(this.type.kind==="padding"){let r;for(const s of this.args){r=s.evaluate(e);const l=Li.parse(r);if(l)return l}throw new Nt(`Could not parse padding from value '${typeof r=="string"?r:JSON.stringify(r)}'`)}if(this.type.kind==="number"){let r=null;for(const s of this.args){if(r=s.evaluate(e),r===null)return 0;const l=Number(r);if(!isNaN(l))return l}throw new Nt(`Could not convert ${JSON.stringify(r)} to number.`)}return this.type.kind==="formatted"?di.fromString(Zn(this.args[0].evaluate(e))):this.type.kind==="resolvedImage"?Wi.fromString(Zn(this.args[0].evaluate(e))):Zn(this.args[0].evaluate(e))}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}}const _a=["Unknown","Point","LineString","Polygon"];class _s{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null}id(){return this.feature&&"id"in this.feature?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?_a[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}parseColor(e){let r=this._parseColorCache[e];return r||(r=this._parseColorCache[e]=Ze.parse(e)),r}}class Nr{constructor(e,r,s=[],l,u=new wn,d=[]){this.registry=e,this.path=s,this.key=s.map(f=>`[${f}]`).join(""),this.scope=u,this.errors=d,this.expectedType=l,this._isConstant=r}parse(e,r,s,l,u={}){return r?this.concat(r,s,l)._parse(e,u):this._parse(e,u)}_parse(e,r){function s(l,u,d){return d==="assert"?new tr(u,[l]):d==="coerce"?new pi(u,[l]):l}if(e!==null&&typeof e!="string"&&typeof e!="boolean"&&typeof e!="number"||(e=["literal",e]),Array.isArray(e)){if(e.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const l=e[0];if(typeof l!="string")return this.error(`Expression name must be a string, but found ${typeof l} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;const u=this.registry[l];if(u){let d=u.parse(e,this);if(!d)return null;if(this.expectedType){const f=this.expectedType,g=d.type;if(f.kind!=="string"&&f.kind!=="number"&&f.kind!=="boolean"&&f.kind!=="object"&&f.kind!=="array"||g.kind!=="value")if(f.kind!=="color"&&f.kind!=="formatted"&&f.kind!=="resolvedImage"||g.kind!=="value"&&g.kind!=="string")if(f.kind!=="padding"||g.kind!=="value"&&g.kind!=="number"&&g.kind!=="array"){if(this.checkSubtype(f,g))return null}else d=s(d,f,r.typeAnnotation||"coerce");else d=s(d,f,r.typeAnnotation||"coerce");else d=s(d,f,r.typeAnnotation||"assert")}if(!(d instanceof Vr)&&d.type.kind!=="resolvedImage"&&this._isConstant(d)){const f=new _s;try{d=new Vr(d.type,d.evaluate(f))}catch(g){return this.error(g.message),null}}return d}return this.error(`Unknown expression "${l}". If you wanted a literal array, use ["literal", [...]].`,0)}return this.error(e===void 0?"'undefined' value invalid. Use null instead.":typeof e=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof e} instead.`)}concat(e,r,s){const l=typeof e=="number"?this.path.concat(e):this.path,u=s?this.scope.concat(s):this.scope;return new Nr(this.registry,this._isConstant,l,r||null,u,this.errors)}error(e,...r){const s=`${this.key}${r.map(l=>`[${l}]`).join("")}`;this.errors.push(new fi(s,e))}checkSubtype(e,r){const s=cr(e,r);return s&&this.error(s),s}}class mt{constructor(e,r,s){this.type=Tr,this.locale=s,this.caseSensitive=e,this.diacriticSensitive=r}static parse(e,r){if(e.length!==2)return r.error("Expected one argument.");const s=e[1];if(typeof s!="object"||Array.isArray(s))return r.error("Collator options argument must be an object.");const l=r.parse(s["case-sensitive"]!==void 0&&s["case-sensitive"],1,Ye);if(!l)return null;const u=r.parse(s["diacritic-sensitive"]!==void 0&&s["diacritic-sensitive"],1,Ye);if(!u)return null;let d=null;return s.locale&&(d=r.parse(s.locale,1,Qe),!d)?null:new mt(l,u,d)}evaluate(e){return new Lt(this.caseSensitive.evaluate(e),this.diacriticSensitive.evaluate(e),this.locale?this.locale.evaluate(e):null)}eachChild(e){e(this.caseSensitive),e(this.diacriticSensitive),this.locale&&e(this.locale)}outputDefined(){return!1}}const $r=8192;function Gn(i,e){i[0]=Math.min(i[0],e[0]),i[1]=Math.min(i[1],e[1]),i[2]=Math.max(i[2],e[0]),i[3]=Math.max(i[3],e[1])}function ys(i,e){return!(i[0]<=e[0]||i[2]>=e[2]||i[1]<=e[1]||i[3]>=e[3])}function Po(i,e){const r=(180+i[0])/360,s=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+i[1]*Math.PI/360)))/360,l=Math.pow(2,e.z);return[Math.round(r*l*$r),Math.round(s*l*$r)]}function Mo(i,e,r){const s=i[0]-e[0],l=i[1]-e[1],u=i[0]-r[0],d=i[1]-r[1];return s*d-u*l==0&&s*u<=0&&l*d<=0}function ya(i,e){let r=!1;for(let d=0,f=e.length;d(s=i)[1]!=(u=g[v+1])[1]>s[1]&&s[0]<(u[0]-l[0])*(s[1]-l[1])/(u[1]-l[1])+l[0]&&(r=!r)}}var s,l,u;return r}function Co(i,e){for(let r=0;r0&&f<0||d<0&&f>0}function ql(i,e,r){for(const v of r)for(let b=0;br[2]){const l=.5*s;let u=i[0]-r[0]>l?-s:r[0]-i[0]>l?s:0;u===0&&(u=i[0]-r[2]>l?-s:r[2]-i[0]>l?s:0),i[0]+=u}Gn(e,i)}function zo(i,e,r,s){const l=Math.pow(2,s.z)*$r,u=[s.x*$r,s.y*$r],d=[];for(const f of i)for(const g of f){const v=[g.x+u[0],g.y+u[1]];wa(v,e,r,l),d.push(v)}return d}function Do(i,e,r,s){const l=Math.pow(2,s.z)*$r,u=[s.x*$r,s.y*$r],d=[];for(const g of i){const v=[];for(const b of g){const S=[b.x+u[0],b.y+u[1]];Gn(e,S),v.push(S)}d.push(v)}if(e[2]-e[0]<=l/2){(f=e)[0]=f[1]=1/0,f[2]=f[3]=-1/0;for(const g of d)for(const v of g)wa(v,e,r,l)}var f;return d}class Ir{constructor(e,r){this.type=Ye,this.geojson=e,this.geometries=r}static parse(e,r){if(e.length!==2)return r.error(`'within' expression requires exactly one argument, but found ${e.length-1} instead.`);if(ms(e[1])){const s=e[1];if(s.type==="FeatureCollection")for(let l=0;l!Array.isArray(v)||v.length===e.length-1);let g=null;for(const[v,b]of f){g=new Nr(r.registry,vs,r.path,null,r.scope);const S=[];let P=!1;for(let C=1;C{return P=S,Array.isArray(P)?`(${P.map(St).join(", ")})`:`(${St(P.type)}...)`;var P}).join(" | "),b=[];for(let S=1;S{r=e?r&&vs(s):r&&s instanceof Vr}),!!r&&Xn(i)&&bs(i,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}function Xn(i){if(i instanceof Hi&&(i.name==="get"&&i.args.length===1||i.name==="feature-state"||i.name==="has"&&i.args.length===1||i.name==="properties"||i.name==="geometry-type"||i.name==="id"||/^filter-/.test(i.name))||i instanceof Ir)return!1;let e=!0;return i.eachChild(r=>{e&&!Xn(r)&&(e=!1)}),e}function En(i){if(i instanceof Hi&&i.name==="feature-state")return!1;let e=!0;return i.eachChild(r=>{e&&!En(r)&&(e=!1)}),e}function bs(i,e){if(i instanceof Hi&&e.indexOf(i.name)>=0)return!1;let r=!0;return i.eachChild(s=>{r&&!bs(s,e)&&(r=!1)}),r}function ws(i,e){const r=i.length-1;let s,l,u=0,d=r,f=0;for(;u<=d;)if(f=Math.floor((u+d)/2),s=i[f],l=i[f+1],s<=e){if(f===r||ee))throw new Nt("Input is not a number.");d=f-1}return 0}class Sn{constructor(e,r,s){this.type=e,this.input=r,this.labels=[],this.outputs=[];for(const[l,u]of s)this.labels.push(l),this.outputs.push(u)}static parse(e,r){if(e.length-1<4)return r.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return r.error("Expected an even number of arguments.");const s=r.parse(e[1],1,be);if(!s)return null;const l=[];let u=null;r.expectedType&&r.expectedType.kind!=="value"&&(u=r.expectedType);for(let d=1;d=f)return r.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',v);const S=r.parse(g,b,u);if(!S)return null;u=u||S.type,l.push([f,S])}return new Sn(u,s,l)}evaluate(e){const r=this.labels,s=this.outputs;if(r.length===1)return s[0].evaluate(e);const l=this.input.evaluate(e);if(l<=r[0])return s[0].evaluate(e);const u=r.length;return l>=r[u-1]?s[u-1].evaluate(e):s[ws(r,l)].evaluate(e)}eachChild(e){e(this.input);for(const r of this.outputs)e(r)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}}function In(i,e,r){return i+r*(e-i)}function Ts(i,e,r){return i.map((s,l)=>In(s,e[l],r))}const Bi={number:In,color:function(i,e,r,s="rgb"){switch(s){case"rgb":{const[l,u,d,f]=Ts(i.rgb,e.rgb,r);return new Ze(l,u,d,f,!1)}case"hcl":{const[l,u,d,f]=i.hcl,[g,v,b,S]=e.hcl;let P,C;if(isNaN(l)||isNaN(g))isNaN(l)?isNaN(g)?P=NaN:(P=g,d!==1&&d!==0||(C=v)):(P=l,b!==1&&b!==0||(C=u));else{let Q=g-l;g>l&&Q>180?Q-=360:g180&&(Q+=360),P=l+r*Q}const[z,U,F,K]=function([Q,X,ne,ae]){return Q=isNaN(Q)?0:Q*ee,Le([ne,Math.cos(Q)*X,Math.sin(Q)*X,ae])}([P,C??In(u,v,r),In(d,b,r),In(f,S,r)]);return new Ze(z,U,F,K,!1)}case"lab":{const[l,u,d,f]=Le(Ts(i.lab,e.lab,r));return new Ze(l,u,d,f,!1)}}},array:Ts,padding:function(i,e,r){return new Li(Ts(i.values,e.values,r))}};class Ri{constructor(e,r,s,l,u){this.type=e,this.operator=r,this.interpolation=s,this.input=l,this.labels=[],this.outputs=[];for(const[d,f]of u)this.labels.push(d),this.outputs.push(f)}static interpolationFactor(e,r,s,l){let u=0;if(e.name==="exponential")u=Ta(r,e.base,s,l);else if(e.name==="linear")u=Ta(r,1,s,l);else if(e.name==="cubic-bezier"){const d=e.controlPoints;u=new We(d[0],d[1],d[2],d[3]).solve(Ta(r,1,s,l))}return u}static parse(e,r){let[s,l,u,...d]=e;if(!Array.isArray(l)||l.length===0)return r.error("Expected an interpolation type expression.",1);if(l[0]==="linear")l={name:"linear"};else if(l[0]==="exponential"){const v=l[1];if(typeof v!="number")return r.error("Exponential interpolation requires a numeric base.",1,1);l={name:"exponential",base:v}}else{if(l[0]!=="cubic-bezier")return r.error(`Unknown interpolation type ${String(l[0])}`,1,0);{const v=l.slice(1);if(v.length!==4||v.some(b=>typeof b!="number"||b<0||b>1))return r.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);l={name:"cubic-bezier",controlPoints:v}}}if(e.length-1<4)return r.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return r.error("Expected an even number of arguments.");if(u=r.parse(u,2,be),!u)return null;const f=[];let g=null;s==="interpolate-hcl"||s==="interpolate-lab"?g=Pi:r.expectedType&&r.expectedType.kind!=="value"&&(g=r.expectedType);for(let v=0;v=b)return r.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',P);const z=r.parse(S,C,g);if(!z)return null;g=g||z.type,f.push([b,z])}return M(g,be)||M(g,Pi)||M(g,er)||M(g,ui(be))?new Ri(g,s,l,u,f):r.error(`Type ${St(g)} is not interpolatable.`)}evaluate(e){const r=this.labels,s=this.outputs;if(r.length===1)return s[0].evaluate(e);const l=this.input.evaluate(e);if(l<=r[0])return s[0].evaluate(e);const u=r.length;if(l>=r[u-1])return s[u-1].evaluate(e);const d=ws(r,l),f=Ri.interpolationFactor(this.interpolation,l,r[d],r[d+1]),g=s[d].evaluate(e),v=s[d+1].evaluate(e);switch(this.operator){case"interpolate":return Bi[this.type.kind](g,v,f);case"interpolate-hcl":return Bi.color(g,v,f,"hcl");case"interpolate-lab":return Bi.color(g,v,f,"lab")}}eachChild(e){e(this.input);for(const r of this.outputs)e(r)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}}function Ta(i,e,r,s){const l=s-r,u=i-r;return l===0?0:e===1?u/l:(Math.pow(e,u)-1)/(Math.pow(e,l)-1)}class Es{constructor(e,r){this.type=e,this.args=r}static parse(e,r){if(e.length<2)return r.error("Expectected at least one argument.");let s=null;const l=r.expectedType;l&&l.kind!=="value"&&(s=l);const u=[];for(const f of e.slice(1)){const g=r.parse(f,1+u.length,s,void 0,{typeAnnotation:"omit"});if(!g)return null;s=s||g.type,u.push(g)}if(!s)throw new Error("No output type");const d=l&&u.some(f=>cr(l,f.type));return new Es(d?He:s,u)}evaluate(e){let r,s=null,l=0;for(const u of this.args)if(l++,s=u.evaluate(e),s&&s instanceof Wi&&!s.available&&(r||(r=s.name),s=null,l===this.args.length&&(s=r)),s!==null)break;return s}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}}class Ss{constructor(e,r){this.type=r.type,this.bindings=[].concat(e),this.result=r}evaluate(e){return this.result.evaluate(e)}eachChild(e){for(const r of this.bindings)e(r[1]);e(this.result)}static parse(e,r){if(e.length<4)return r.error(`Expected at least 3 arguments, but found ${e.length-1} instead.`);const s=[];for(let u=1;u=s.length)throw new Nt(`Array index out of bounds: ${r} > ${s.length-1}.`);if(r!==Math.floor(r))throw new Nt(`Array index must be an integer, but found ${r} instead.`);return s[r]}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}}class Wn{constructor(e,r){this.type=Ye,this.needle=e,this.haystack=r}static parse(e,r){if(e.length!==3)return r.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const s=r.parse(e[1],1,He),l=r.parse(e[2],2,He);return s&&l?V(s.type,[Ye,Qe,be,Or,He])?new Wn(s,l):r.error(`Expected first argument to be of type boolean, string, number or null, but found ${St(s.type)} instead`):null}evaluate(e){const r=this.needle.evaluate(e),s=this.haystack.evaluate(e);if(!s)return!1;if(!I(r,["boolean","string","number","null"]))throw new Nt(`Expected first argument to be of type boolean, string, number or null, but found ${St(Wt(r))} instead.`);if(!I(s,["string","array"]))throw new Nt(`Expected second argument to be of type array or string, but found ${St(Wt(s))} instead.`);return s.indexOf(r)>=0}eachChild(e){e(this.needle),e(this.haystack)}outputDefined(){return!0}}class en{constructor(e,r,s){this.type=be,this.needle=e,this.haystack=r,this.fromIndex=s}static parse(e,r){if(e.length<=2||e.length>=5)return r.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const s=r.parse(e[1],1,He),l=r.parse(e[2],2,He);if(!s||!l)return null;if(!V(s.type,[Ye,Qe,be,Or,He]))return r.error(`Expected first argument to be of type boolean, string, number or null, but found ${St(s.type)} instead`);if(e.length===4){const u=r.parse(e[3],3,be);return u?new en(s,l,u):null}return new en(s,l)}evaluate(e){const r=this.needle.evaluate(e),s=this.haystack.evaluate(e);if(!I(r,["boolean","string","number","null"]))throw new Nt(`Expected first argument to be of type boolean, string, number or null, but found ${St(Wt(r))} instead.`);if(!I(s,["string","array"]))throw new Nt(`Expected second argument to be of type array or string, but found ${St(Wt(s))} instead.`);if(this.fromIndex){const l=this.fromIndex.evaluate(e);return s.indexOf(r,l)}return s.indexOf(r)}eachChild(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)}outputDefined(){return!1}}class ht{constructor(e,r,s,l,u,d){this.inputType=e,this.type=r,this.input=s,this.cases=l,this.outputs=u,this.otherwise=d}static parse(e,r){if(e.length<5)return r.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if(e.length%2!=1)return r.error("Expected an even number of arguments.");let s,l;r.expectedType&&r.expectedType.kind!=="value"&&(l=r.expectedType);const u={},d=[];for(let v=2;vNumber.MAX_SAFE_INTEGER)return P.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof z=="number"&&Math.floor(z)!==z)return P.error("Numeric branch labels must be integer values.");if(s){if(P.checkSubtype(s,Wt(z)))return null}else s=Wt(z);if(u[String(z)]!==void 0)return P.error("Branch labels must be unique.");u[String(z)]=d.length}const C=r.parse(S,v,l);if(!C)return null;l=l||C.type,d.push(C)}const f=r.parse(e[1],1,He);if(!f)return null;const g=r.parse(e[e.length-1],e.length-1,l);return g?f.type.kind!=="value"&&r.concat(1).checkSubtype(s,f.type)?null:new ht(s,l,f,u,d,g):null}evaluate(e){const r=this.input.evaluate(e);return(Wt(r)===this.inputType&&this.outputs[this.cases[r]]||this.otherwise).evaluate(e)}eachChild(e){e(this.input),this.outputs.forEach(e),e(this.otherwise)}outputDefined(){return this.outputs.every(e=>e.outputDefined())&&this.otherwise.outputDefined()}}class Sa{constructor(e,r,s){this.type=e,this.branches=r,this.otherwise=s}static parse(e,r){if(e.length<4)return r.error(`Expected at least 3 arguments, but found only ${e.length-1}.`);if(e.length%2!=0)return r.error("Expected an odd number of arguments.");let s;r.expectedType&&r.expectedType.kind!=="value"&&(s=r.expectedType);const l=[];for(let d=1;dr.outputDefined())&&this.otherwise.outputDefined()}}class Is{constructor(e,r,s,l){this.type=e,this.input=r,this.beginIndex=s,this.endIndex=l}static parse(e,r){if(e.length<=2||e.length>=5)return r.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const s=r.parse(e[1],1,He),l=r.parse(e[2],2,be);if(!s||!l)return null;if(!V(s.type,[ui(He),Qe,He]))return r.error(`Expected first argument to be of type array or string, but found ${St(s.type)} instead`);if(e.length===4){const u=r.parse(e[3],3,be);return u?new Is(s.type,s,l,u):null}return new Is(s.type,s,l)}evaluate(e){const r=this.input.evaluate(e),s=this.beginIndex.evaluate(e);if(!I(r,["string","array"]))throw new Nt(`Expected first argument to be of type array or string, but found ${St(Wt(r))} instead.`);if(this.endIndex){const l=this.endIndex.evaluate(e);return r.slice(s,l)}return r.slice(s)}eachChild(e){e(this.input),e(this.beginIndex),this.endIndex&&e(this.endIndex)}outputDefined(){return!1}}function Lo(i,e){return i==="=="||i==="!="?e.kind==="boolean"||e.kind==="string"||e.kind==="number"||e.kind==="null"||e.kind==="value":e.kind==="string"||e.kind==="number"||e.kind==="value"}function Bo(i,e,r,s){return s.compare(e,r)===0}function An(i,e,r){const s=i!=="=="&&i!=="!=";return class _d{constructor(u,d,f){this.type=Ye,this.lhs=u,this.rhs=d,this.collator=f,this.hasUntypedArgument=u.type.kind==="value"||d.type.kind==="value"}static parse(u,d){if(u.length!==3&&u.length!==4)return d.error("Expected two or three arguments.");const f=u[0];let g=d.parse(u[1],1,He);if(!g)return null;if(!Lo(f,g.type))return d.concat(1).error(`"${f}" comparisons are not supported for type '${St(g.type)}'.`);let v=d.parse(u[2],2,He);if(!v)return null;if(!Lo(f,v.type))return d.concat(2).error(`"${f}" comparisons are not supported for type '${St(v.type)}'.`);if(g.type.kind!==v.type.kind&&g.type.kind!=="value"&&v.type.kind!=="value")return d.error(`Cannot compare types '${St(g.type)}' and '${St(v.type)}'.`);s&&(g.type.kind==="value"&&v.type.kind!=="value"?g=new tr(v.type,[g]):g.type.kind!=="value"&&v.type.kind==="value"&&(v=new tr(g.type,[v])));let b=null;if(u.length===4){if(g.type.kind!=="string"&&v.type.kind!=="string"&&g.type.kind!=="value"&&v.type.kind!=="value")return d.error("Cannot use collator to compare non-string types.");if(b=d.parse(u[3],3,Tr),!b)return null}return new _d(g,v,b)}evaluate(u){const d=this.lhs.evaluate(u),f=this.rhs.evaluate(u);if(s&&this.hasUntypedArgument){const g=Wt(d),v=Wt(f);if(g.kind!==v.kind||g.kind!=="string"&&g.kind!=="number")throw new Nt(`Expected arguments for "${i}" to be (string, string) or (number, number), but found (${g.kind}, ${v.kind}) instead.`)}if(this.collator&&!s&&this.hasUntypedArgument){const g=Wt(d),v=Wt(f);if(g.kind!=="string"||v.kind!=="string")return e(u,d,f)}return this.collator?r(u,d,f,this.collator.evaluate(u)):e(u,d,f)}eachChild(u){u(this.lhs),u(this.rhs),this.collator&&u(this.collator)}outputDefined(){return!0}}}const Zl=An("==",function(i,e,r){return e===r},Bo),Gl=An("!=",function(i,e,r){return e!==r},function(i,e,r,s){return!Bo(0,e,r,s)}),Xl=An("<",function(i,e,r){return e",function(i,e,r){return e>r},function(i,e,r,s){return s.compare(e,r)>0}),Hl=An("<=",function(i,e,r){return e<=r},function(i,e,r,s){return s.compare(e,r)<=0}),Kl=An(">=",function(i,e,r){return e>=r},function(i,e,r,s){return s.compare(e,r)>=0});class Ia{constructor(e,r,s,l,u){this.type=Qe,this.number=e,this.locale=r,this.currency=s,this.minFractionDigits=l,this.maxFractionDigits=u}static parse(e,r){if(e.length!==3)return r.error("Expected two arguments.");const s=r.parse(e[1],1,be);if(!s)return null;const l=e[2];if(typeof l!="object"||Array.isArray(l))return r.error("NumberFormat options argument must be an object.");let u=null;if(l.locale&&(u=r.parse(l.locale,1,Qe),!u))return null;let d=null;if(l.currency&&(d=r.parse(l.currency,1,Qe),!d))return null;let f=null;if(l["min-fraction-digits"]&&(f=r.parse(l["min-fraction-digits"],1,be),!f))return null;let g=null;return l["max-fraction-digits"]&&(g=r.parse(l["max-fraction-digits"],1,be),!g)?null:new Ia(s,u,d,f,g)}evaluate(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(e):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(e):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(e):void 0}).format(this.number.evaluate(e))}eachChild(e){e(this.number),this.locale&&e(this.locale),this.currency&&e(this.currency),this.minFractionDigits&&e(this.minFractionDigits),this.maxFractionDigits&&e(this.maxFractionDigits)}outputDefined(){return!1}}class As{constructor(e){this.type=Er,this.sections=e}static parse(e,r){if(e.length<2)return r.error("Expected at least one argument.");const s=e[1];if(!Array.isArray(s)&&typeof s=="object")return r.error("First argument must be an image or text section.");const l=[];let u=!1;for(let d=1;d<=e.length-1;++d){const f=e[d];if(u&&typeof f=="object"&&!Array.isArray(f)){u=!1;let g=null;if(f["font-scale"]&&(g=r.parse(f["font-scale"],1,be),!g))return null;let v=null;if(f["text-font"]&&(v=r.parse(f["text-font"],1,ui(Qe)),!v))return null;let b=null;if(f["text-color"]&&(b=r.parse(f["text-color"],1,Pi),!b))return null;const S=l[l.length-1];S.scale=g,S.font=v,S.textColor=b}else{const g=r.parse(e[d],1,He);if(!g)return null;const v=g.type.kind;if(v!=="string"&&v!=="value"&&v!=="null"&&v!=="resolvedImage")return r.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");u=!0,l.push({content:g,scale:null,font:null,textColor:null})}}return new As(l)}evaluate(e){return new di(this.sections.map(r=>{const s=r.content.evaluate(e);return Wt(s)===Sr?new Ur("",s,null,null,null):new Ur(Zn(s),null,r.scale?r.scale.evaluate(e):null,r.font?r.font.evaluate(e).join(","):null,r.textColor?r.textColor.evaluate(e):null)}))}eachChild(e){for(const r of this.sections)e(r.content),r.scale&&e(r.scale),r.font&&e(r.font),r.textColor&&e(r.textColor)}outputDefined(){return!1}}class Aa{constructor(e){this.type=Sr,this.input=e}static parse(e,r){if(e.length!==2)return r.error("Expected two arguments.");const s=r.parse(e[1],1,Qe);return s?new Aa(s):r.error("No image name provided.")}evaluate(e){const r=this.input.evaluate(e),s=Wi.fromString(r);return s&&e.availableImages&&(s.available=e.availableImages.indexOf(r)>-1),s}eachChild(e){e(this.input)}outputDefined(){return!1}}class Pa{constructor(e){this.type=be,this.input=e}static parse(e,r){if(e.length!==2)return r.error(`Expected 1 argument, but found ${e.length-1} instead.`);const s=r.parse(e[1],1);return s?s.type.kind!=="array"&&s.type.kind!=="string"&&s.type.kind!=="value"?r.error(`Expected argument of type string or array, but found ${St(s.type)} instead.`):new Pa(s):null}evaluate(e){const r=this.input.evaluate(e);if(typeof r=="string"||Array.isArray(r))return r.length;throw new Nt(`Expected value to be of type string or array, but found ${St(Wt(r))} instead.`)}eachChild(e){e(this.input)}outputDefined(){return!1}}const Pn={"==":Zl,"!=":Gl,">":Wl,"<":Xl,">=":Kl,"<=":Hl,array:tr,at:Ea,boolean:tr,case:Sa,coalesce:Es,collator:mt,format:As,image:Aa,in:Wn,"index-of":en,interpolate:Ri,"interpolate-hcl":Ri,"interpolate-lab":Ri,length:Pa,let:Ss,literal:Vr,match:ht,number:tr,"number-format":Ia,object:tr,slice:Is,step:Sn,string:tr,"to-boolean":pi,"to-color":pi,"to-number":pi,"to-string":pi,var:xs,within:Ir};function Ro(i,[e,r,s,l]){e=e.evaluate(i),r=r.evaluate(i),s=s.evaluate(i);const u=l?l.evaluate(i):1,d=Tn(e,r,s,u);if(d)throw new Nt(d);return new Ze(e/255,r/255,s/255,u,!1)}function Fo(i,e){return i in e}function Ma(i,e){const r=e[i];return r===void 0?null:r}function tn(i){return{type:i}}function Oo(i){return{result:"success",value:i}}function Mn(i){return{result:"error",value:i}}function Cn(i){return i["property-type"]==="data-driven"||i["property-type"]==="cross-faded-data-driven"}function Uo(i){return!!i.expression&&i.expression.parameters.indexOf("zoom")>-1}function Ca(i){return!!i.expression&&i.expression.interpolated}function _t(i){return i instanceof Number?"number":i instanceof String?"string":i instanceof Boolean?"boolean":Array.isArray(i)?"array":i===null?"null":typeof i}function Ps(i){return typeof i=="object"&&i!==null&&!Array.isArray(i)}function Yl(i){return i}function Vo(i,e){const r=e.type==="color",s=i.stops&&typeof i.stops[0][0]=="object",l=s||!(s||i.property!==void 0),u=i.type||(Ca(e)?"exponential":"interval");if(r||e.type==="padding"){const b=r?Ze.parse:Li.parse;(i=lr({},i)).stops&&(i.stops=i.stops.map(S=>[S[0],b(S[1])])),i.default=b(i.default?i.default:e.default)}if(i.colorSpace&&(d=i.colorSpace)!=="rgb"&&d!=="hcl"&&d!=="lab")throw new Error(`Unknown color space: "${i.colorSpace}"`);var d;let f,g,v;if(u==="exponential")f=No;else if(u==="interval")f=ka;else if(u==="categorical"){f=Jl,g=Object.create(null);for(const b of i.stops)g[b[0]]=b[1];v=typeof i.stops[0][0]}else{if(u!=="identity")throw new Error(`Unknown function type "${u}"`);f=Ql}if(s){const b={},S=[];for(let z=0;zz[0]),evaluate:({zoom:z},U)=>No({stops:P,base:i.base},e,z).evaluate(z,U)}}if(l){const b=u==="exponential"?{name:"exponential",base:i.base!==void 0?i.base:1}:null;return{kind:"camera",interpolationType:b,interpolationFactor:Ri.interpolationFactor.bind(void 0,b),zoomStops:i.stops.map(S=>S[0]),evaluate:({zoom:S})=>f(i,e,S,g,v)}}return{kind:"source",evaluate(b,S){const P=S&&S.properties?S.properties[i.property]:void 0;return P===void 0?Hn(i.default,e.default):f(i,e,P,g,v)}}}function Hn(i,e,r){return i!==void 0?i:e!==void 0?e:r!==void 0?r:void 0}function Jl(i,e,r,s,l){return Hn(typeof r===l?s[r]:void 0,i.default,e.default)}function ka(i,e,r){if(_t(r)!=="number")return Hn(i.default,e.default);const s=i.stops.length;if(s===1||r<=i.stops[0][0])return i.stops[0][1];if(r>=i.stops[s-1][0])return i.stops[s-1][1];const l=ws(i.stops.map(u=>u[0]),r);return i.stops[l][1]}function No(i,e,r){const s=i.base!==void 0?i.base:1;if(_t(r)!=="number")return Hn(i.default,e.default);const l=i.stops.length;if(l===1||r<=i.stops[0][0])return i.stops[0][1];if(r>=i.stops[l-1][0])return i.stops[l-1][1];const u=ws(i.stops.map(b=>b[0]),r),d=function(b,S,P,C){const z=C-P,U=b-P;return z===0?0:S===1?U/z:(Math.pow(S,U)-1)/(Math.pow(S,z)-1)}(r,s,i.stops[u][0],i.stops[u+1][0]),f=i.stops[u][1],g=i.stops[u+1][1],v=Bi[e.type]||Yl;return typeof f.evaluate=="function"?{evaluate(...b){const S=f.evaluate.apply(void 0,b),P=g.evaluate.apply(void 0,b);if(S!==void 0&&P!==void 0)return v(S,P,d,i.colorSpace)}}:v(f,g,d,i.colorSpace)}function Ql(i,e,r){switch(e.type){case"color":r=Ze.parse(r);break;case"formatted":r=di.fromString(r.toString());break;case"resolvedImage":r=Wi.fromString(r.toString());break;case"padding":r=Li.parse(r);break;default:_t(r)===e.type||e.type==="enum"&&e.values[r]||(r=void 0)}return Hn(r,i.default,e.default)}Hi.register(Pn,{error:[{kind:"error"},[Qe],(i,[e])=>{throw new Nt(e.evaluate(i))}],typeof:[Qe,[He],(i,[e])=>St(Wt(e.evaluate(i)))],"to-rgba":[ui(be,4),[Pi],(i,[e])=>{const[r,s,l,u]=e.evaluate(i).rgb;return[255*r,255*s,255*l,u]}],rgb:[Pi,[be,be,be],Ro],rgba:[Pi,[be,be,be,be],Ro],has:{type:Ye,overloads:[[[Qe],(i,[e])=>Fo(e.evaluate(i),i.properties())],[[Qe,Qt],(i,[e,r])=>Fo(e.evaluate(i),r.evaluate(i))]]},get:{type:He,overloads:[[[Qe],(i,[e])=>Ma(e.evaluate(i),i.properties())],[[Qe,Qt],(i,[e,r])=>Ma(e.evaluate(i),r.evaluate(i))]]},"feature-state":[He,[Qe],(i,[e])=>Ma(e.evaluate(i),i.featureState||{})],properties:[Qt,[],i=>i.properties()],"geometry-type":[Qe,[],i=>i.geometryType()],id:[He,[],i=>i.id()],zoom:[be,[],i=>i.globals.zoom],"heatmap-density":[be,[],i=>i.globals.heatmapDensity||0],"line-progress":[be,[],i=>i.globals.lineProgress||0],accumulated:[He,[],i=>i.globals.accumulated===void 0?null:i.globals.accumulated],"+":[be,tn(be),(i,e)=>{let r=0;for(const s of e)r+=s.evaluate(i);return r}],"*":[be,tn(be),(i,e)=>{let r=1;for(const s of e)r*=s.evaluate(i);return r}],"-":{type:be,overloads:[[[be,be],(i,[e,r])=>e.evaluate(i)-r.evaluate(i)],[[be],(i,[e])=>-e.evaluate(i)]]},"/":[be,[be,be],(i,[e,r])=>e.evaluate(i)/r.evaluate(i)],"%":[be,[be,be],(i,[e,r])=>e.evaluate(i)%r.evaluate(i)],ln2:[be,[],()=>Math.LN2],pi:[be,[],()=>Math.PI],e:[be,[],()=>Math.E],"^":[be,[be,be],(i,[e,r])=>Math.pow(e.evaluate(i),r.evaluate(i))],sqrt:[be,[be],(i,[e])=>Math.sqrt(e.evaluate(i))],log10:[be,[be],(i,[e])=>Math.log(e.evaluate(i))/Math.LN10],ln:[be,[be],(i,[e])=>Math.log(e.evaluate(i))],log2:[be,[be],(i,[e])=>Math.log(e.evaluate(i))/Math.LN2],sin:[be,[be],(i,[e])=>Math.sin(e.evaluate(i))],cos:[be,[be],(i,[e])=>Math.cos(e.evaluate(i))],tan:[be,[be],(i,[e])=>Math.tan(e.evaluate(i))],asin:[be,[be],(i,[e])=>Math.asin(e.evaluate(i))],acos:[be,[be],(i,[e])=>Math.acos(e.evaluate(i))],atan:[be,[be],(i,[e])=>Math.atan(e.evaluate(i))],min:[be,tn(be),(i,e)=>Math.min(...e.map(r=>r.evaluate(i)))],max:[be,tn(be),(i,e)=>Math.max(...e.map(r=>r.evaluate(i)))],abs:[be,[be],(i,[e])=>Math.abs(e.evaluate(i))],round:[be,[be],(i,[e])=>{const r=e.evaluate(i);return r<0?-Math.round(-r):Math.round(r)}],floor:[be,[be],(i,[e])=>Math.floor(e.evaluate(i))],ceil:[be,[be],(i,[e])=>Math.ceil(e.evaluate(i))],"filter-==":[Ye,[Qe,He],(i,[e,r])=>i.properties()[e.value]===r.value],"filter-id-==":[Ye,[He],(i,[e])=>i.id()===e.value],"filter-type-==":[Ye,[Qe],(i,[e])=>i.geometryType()===e.value],"filter-<":[Ye,[Qe,He],(i,[e,r])=>{const s=i.properties()[e.value],l=r.value;return typeof s==typeof l&&s{const r=i.id(),s=e.value;return typeof r==typeof s&&r":[Ye,[Qe,He],(i,[e,r])=>{const s=i.properties()[e.value],l=r.value;return typeof s==typeof l&&s>l}],"filter-id->":[Ye,[He],(i,[e])=>{const r=i.id(),s=e.value;return typeof r==typeof s&&r>s}],"filter-<=":[Ye,[Qe,He],(i,[e,r])=>{const s=i.properties()[e.value],l=r.value;return typeof s==typeof l&&s<=l}],"filter-id-<=":[Ye,[He],(i,[e])=>{const r=i.id(),s=e.value;return typeof r==typeof s&&r<=s}],"filter->=":[Ye,[Qe,He],(i,[e,r])=>{const s=i.properties()[e.value],l=r.value;return typeof s==typeof l&&s>=l}],"filter-id->=":[Ye,[He],(i,[e])=>{const r=i.id(),s=e.value;return typeof r==typeof s&&r>=s}],"filter-has":[Ye,[He],(i,[e])=>e.value in i.properties()],"filter-has-id":[Ye,[],i=>i.id()!==null&&i.id()!==void 0],"filter-type-in":[Ye,[ui(Qe)],(i,[e])=>e.value.indexOf(i.geometryType())>=0],"filter-id-in":[Ye,[ui(He)],(i,[e])=>e.value.indexOf(i.id())>=0],"filter-in-small":[Ye,[Qe,ui(He)],(i,[e,r])=>r.value.indexOf(i.properties()[e.value])>=0],"filter-in-large":[Ye,[Qe,ui(He)],(i,[e,r])=>function(s,l,u,d){for(;u<=d;){const f=u+d>>1;if(l[f]===s)return!0;l[f]>s?d=f-1:u=f+1}return!1}(i.properties()[e.value],r.value,0,r.value.length-1)],all:{type:Ye,overloads:[[[Ye,Ye],(i,[e,r])=>e.evaluate(i)&&r.evaluate(i)],[tn(Ye),(i,e)=>{for(const r of e)if(!r.evaluate(i))return!1;return!0}]]},any:{type:Ye,overloads:[[[Ye,Ye],(i,[e,r])=>e.evaluate(i)||r.evaluate(i)],[tn(Ye),(i,e)=>{for(const r of e)if(r.evaluate(i))return!0;return!1}]]},"!":[Ye,[Ye],(i,[e])=>!e.evaluate(i)],"is-supported-script":[Ye,[Qe],(i,[e])=>{const r=i.globals&&i.globals.isSupportedScript;return!r||r(e.evaluate(i))}],upcase:[Qe,[Qe],(i,[e])=>e.evaluate(i).toUpperCase()],downcase:[Qe,[Qe],(i,[e])=>e.evaluate(i).toLowerCase()],concat:[Qe,tn(He),(i,e)=>e.map(r=>Zn(r.evaluate(i))).join("")],"resolved-locale":[Qe,[Tr],(i,[e])=>e.evaluate(i).resolvedLocale()]});class za{constructor(e,r){var s;this.expression=e,this._warningHistory={},this._evaluator=new _s,this._defaultValue=r?(s=r).type==="color"&&Ps(s.default)?new Ze(0,0,0,0):s.type==="color"?Ze.parse(s.default)||null:s.type==="padding"?Li.parse(s.default)||null:s.default===void 0?null:s.default:null,this._enumValues=r&&r.type==="enum"?r.values:null}evaluateWithoutErrorHandling(e,r,s,l,u,d){return this._evaluator.globals=e,this._evaluator.feature=r,this._evaluator.featureState=s,this._evaluator.canonical=l,this._evaluator.availableImages=u||null,this._evaluator.formattedSection=d,this.expression.evaluate(this._evaluator)}evaluate(e,r,s,l,u,d){this._evaluator.globals=e,this._evaluator.feature=r||null,this._evaluator.featureState=s||null,this._evaluator.canonical=l,this._evaluator.availableImages=u||null,this._evaluator.formattedSection=d||null;try{const f=this.expression.evaluate(this._evaluator);if(f==null||typeof f=="number"&&f!=f)return this._defaultValue;if(this._enumValues&&!(f in this._enumValues))throw new Nt(`Expected value to be one of ${Object.keys(this._enumValues).map(g=>JSON.stringify(g)).join(", ")}, but found ${JSON.stringify(f)} instead.`);return f}catch(f){return this._warningHistory[f.message]||(this._warningHistory[f.message]=!0,typeof console<"u"&&console.warn(f.message)),this._defaultValue}}}function Ms(i){return Array.isArray(i)&&i.length>0&&typeof i[0]=="string"&&i[0]in Pn}function Dt(i,e){const r=new Nr(Pn,vs,[],e?function(l){const u={color:Pi,string:Qe,number:be,enum:Qe,boolean:Ye,formatted:Er,padding:er,resolvedImage:Sr};return l.type==="array"?ui(u[l.value]||He,l.length):u[l.type]}(e):void 0),s=r.parse(i,void 0,void 0,void 0,e&&e.type==="string"?{typeAnnotation:"coerce"}:void 0);return s?Oo(new za(s,e)):Mn(r.errors)}class Da{constructor(e,r){this.kind=e,this._styleExpression=r,this.isStateDependent=e!=="constant"&&!En(r.expression)}evaluateWithoutErrorHandling(e,r,s,l,u,d){return this._styleExpression.evaluateWithoutErrorHandling(e,r,s,l,u,d)}evaluate(e,r,s,l,u,d){return this._styleExpression.evaluate(e,r,s,l,u,d)}}class st{constructor(e,r,s,l){this.kind=e,this.zoomStops=s,this._styleExpression=r,this.isStateDependent=e!=="camera"&&!En(r.expression),this.interpolationType=l}evaluateWithoutErrorHandling(e,r,s,l,u,d){return this._styleExpression.evaluateWithoutErrorHandling(e,r,s,l,u,d)}evaluate(e,r,s,l,u,d){return this._styleExpression.evaluate(e,r,s,l,u,d)}interpolationFactor(e,r,s){return this.interpolationType?Ri.interpolationFactor(this.interpolationType,e,r,s):0}}function Cs(i,e){const r=Dt(i,e);if(r.result==="error")return r;const s=r.value.expression,l=Xn(s);if(!l&&!Cn(e))return Mn([new fi("","data expressions not supported")]);const u=bs(s,["zoom"]);if(!u&&!Uo(e))return Mn([new fi("","zoom expressions not supported")]);const d=Et(s);return d||u?d instanceof fi?Mn([d]):d instanceof Ri&&!Ca(e)?Mn([new fi("",'"interpolate" expressions cannot be used with this property')]):Oo(d?new st(l?"camera":"composite",r.value,d.labels,d instanceof Ri?d.interpolation:void 0):new Da(l?"constant":"source",r.value)):Mn([new fi("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}class It{constructor(e,r){this._parameters=e,this._specification=r,lr(this,Vo(this._parameters,this._specification))}static deserialize(e){return new It(e._parameters,e._specification)}static serialize(e){return{_parameters:e._parameters,_specification:e._specification}}}function Et(i){let e=null;if(i instanceof Ss)e=Et(i.result);else if(i instanceof Es){for(const r of i.args)if(e=Et(r),e)break}else(i instanceof Sn||i instanceof Ri)&&i.input instanceof Hi&&i.input.name==="zoom"&&(e=i);return e instanceof fi||i.eachChild(r=>{const s=Et(r);s instanceof fi?e=s:!e&&s?e=new fi("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):e&&s&&e!==s&&(e=new fi("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),e}function kn(i){if(i===!0||i===!1)return!0;if(!Array.isArray(i)||i.length===0)return!1;switch(i[0]){case"has":return i.length>=2&&i[1]!=="$id"&&i[1]!=="$type";case"in":return i.length>=3&&(typeof i[1]!="string"||Array.isArray(i[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return i.length!==3||Array.isArray(i[1])||Array.isArray(i[2]);case"any":case"all":for(const e of i.slice(1))if(!kn(e)&&typeof e!="boolean")return!1;return!0;default:return!0}}const $o={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function La(i){if(i==null)return{filter:()=>!0,needGeometry:!1};kn(i)||(i=ks(i));const e=Dt(i,$o);if(e.result==="error")throw new Error(e.value.map(r=>`${r.key}: ${r.message}`).join(", "));return{filter:(r,s,l)=>e.value.evaluate(r,s,{},l),needGeometry:qo(i)}}function ec(i,e){return ie?1:0}function qo(i){if(!Array.isArray(i))return!1;if(i[0]==="within")return!0;for(let e=1;e"||e==="<="||e===">="?zs(i[1],i[2],e):e==="any"?(r=i.slice(1),["any"].concat(r.map(ks))):e==="all"?["all"].concat(i.slice(1).map(ks)):e==="none"?["all"].concat(i.slice(1).map(ks).map(Kn)):e==="in"?Ba(i[1],i.slice(2)):e==="!in"?Kn(Ba(i[1],i.slice(2))):e==="has"?Ra(i[1]):e==="!has"?Kn(Ra(i[1])):e!=="within"||i;var r}function zs(i,e,r){switch(i){case"$type":return[`filter-type-${r}`,e];case"$id":return[`filter-id-${r}`,e];default:return[`filter-${r}`,i,e]}}function Ba(i,e){if(e.length===0)return!1;switch(i){case"$type":return["filter-type-in",["literal",e]];case"$id":return["filter-id-in",["literal",e]];default:return e.length>200&&!e.some(r=>typeof r!=typeof e[0])?["filter-in-large",i,["literal",e.sort(ec)]]:["filter-in-small",i,["literal",e]]}}function Ra(i){switch(i){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",i]}}function Kn(i){return["!",i]}function Yn(i){const e=typeof i;if(e==="number"||e==="boolean"||e==="string"||i==null)return JSON.stringify(i);if(Array.isArray(i)){let l="[";for(const u of i)l+=`${Yn(u)},`;return`${l}]`}const r=Object.keys(i).sort();let s="{";for(let l=0;ls.maximum?[new we(e,r,`${r} is greater than the maximum value ${s.maximum}`)]:[]}function Go(i){const e=i.valueSpec,r=$t(i.value.type);let s,l,u,d={};const f=r!=="categorical"&&i.value.property===void 0,g=!f,v=_t(i.value.stops)==="array"&&_t(i.value.stops[0])==="array"&&_t(i.value.stops[0][0])==="object",b=Ki({key:i.key,value:i.value,valueSpec:i.styleSpec.function,validateSpec:i.validateSpec,style:i.style,styleSpec:i.styleSpec,objectElementValidators:{stops:function(C){if(r==="identity")return[new we(C.key,C.value,'identity function may not have a "stops" property')];let z=[];const U=C.value;return z=z.concat(Zo({key:C.key,value:U,valueSpec:C.valueSpec,validateSpec:C.validateSpec,style:C.style,styleSpec:C.styleSpec,arrayElementValidator:S})),_t(U)==="array"&&U.length===0&&z.push(new we(C.key,U,"array must have at least one stop")),z},default:function(C){return C.validateSpec({key:C.key,value:C.value,valueSpec:e,validateSpec:C.validateSpec,style:C.style,styleSpec:C.styleSpec})}}});return r==="identity"&&f&&b.push(new we(i.key,i.value,'missing required property "property"')),r==="identity"||i.value.stops||b.push(new we(i.key,i.value,'missing required property "stops"')),r==="exponential"&&i.valueSpec.expression&&!Ca(i.valueSpec)&&b.push(new we(i.key,i.value,"exponential functions not supported")),i.styleSpec.$version>=8&&(g&&!Cn(i.valueSpec)?b.push(new we(i.key,i.value,"property functions not supported")):f&&!Uo(i.valueSpec)&&b.push(new we(i.key,i.value,"zoom functions not supported"))),r!=="categorical"&&!v||i.value.property!==void 0||b.push(new we(i.key,i.value,'"property" property is required')),b;function S(C){let z=[];const U=C.value,F=C.key;if(_t(U)!=="array")return[new we(F,U,`array expected, ${_t(U)} found`)];if(U.length!==2)return[new we(F,U,`array length 2 expected, length ${U.length} found`)];if(v){if(_t(U[0])!=="object")return[new we(F,U,`object expected, ${_t(U[0])} found`)];if(U[0].zoom===void 0)return[new we(F,U,"object stop key must have zoom")];if(U[0].value===void 0)return[new we(F,U,"object stop key must have value")];if(u&&u>$t(U[0].zoom))return[new we(F,U[0].zoom,"stop zoom values must appear in ascending order")];$t(U[0].zoom)!==u&&(u=$t(U[0].zoom),l=void 0,d={}),z=z.concat(Ki({key:`${F}[0]`,value:U[0],valueSpec:{zoom:{}},validateSpec:C.validateSpec,style:C.style,styleSpec:C.styleSpec,objectElementValidators:{zoom:Fa,value:P}}))}else z=z.concat(P({key:`${F}[0]`,value:U[0],valueSpec:{},validateSpec:C.validateSpec,style:C.style,styleSpec:C.styleSpec},U));return Ms(rn(U[1]))?z.concat([new we(`${F}[1]`,U[1],"expressions are not allowed in function stops.")]):z.concat(C.validateSpec({key:`${F}[1]`,value:U[1],valueSpec:e,validateSpec:C.validateSpec,style:C.style,styleSpec:C.styleSpec}))}function P(C,z){const U=_t(C.value),F=$t(C.value),K=C.value!==null?C.value:z;if(s){if(U!==s)return[new we(C.key,K,`${U} stop domain type must match previous stop domain type ${s}`)]}else s=U;if(U!=="number"&&U!=="string"&&U!=="boolean")return[new we(C.key,K,"stop domain value must be a number, string, or boolean")];if(U!=="number"&&r!=="categorical"){let Q=`number expected, ${U} found`;return Cn(e)&&r===void 0&&(Q+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new we(C.key,K,Q)]}return r!=="categorical"||U!=="number"||isFinite(F)&&Math.floor(F)===F?r!=="categorical"&&U==="number"&&l!==void 0&&Fnew we(`${i.key}${s.key}`,i.value,s.message));const r=e.value.expression||e.value._styleExpression.expression;if(i.expressionContext==="property"&&i.propertyKey==="text-font"&&!r.outputDefined())return[new we(i.key,i.value,`Invalid data expression for "${i.propertyKey}". Output values must be contained as literals within the expression.`)];if(i.expressionContext==="property"&&i.propertyType==="layout"&&!En(r))return[new we(i.key,i.value,'"feature-state" data expressions are not supported with layout properties.')];if(i.expressionContext==="filter"&&!En(r))return[new we(i.key,i.value,'"feature-state" data expressions are not supported with filters.')];if(i.expressionContext&&i.expressionContext.indexOf("cluster")===0){if(!bs(r,["zoom","feature-state"]))return[new we(i.key,i.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if(i.expressionContext==="cluster-initial"&&!Xn(r))return[new we(i.key,i.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function Jn(i){const e=i.key,r=i.value,s=i.valueSpec,l=[];return Array.isArray(s.values)?s.values.indexOf($t(r))===-1&&l.push(new we(e,r,`expected one of [${s.values.join(", ")}], ${JSON.stringify(r)} found`)):Object.keys(s.values).indexOf($t(r))===-1&&l.push(new we(e,r,`expected one of [${Object.keys(s.values).join(", ")}], ${JSON.stringify(r)} found`)),l}function zn(i){return kn(rn(i.value))?nn(lr({},i,{expressionContext:"filter",valueSpec:{value:"boolean"}})):Xo(i)}function Xo(i){const e=i.value,r=i.key;if(_t(e)!=="array")return[new we(r,e,`array expected, ${_t(e)} found`)];const s=i.styleSpec;let l,u=[];if(e.length<1)return[new we(r,e,"filter array must have at least 1 element")];switch(u=u.concat(Jn({key:`${r}[0]`,value:e[0],valueSpec:s.filter_operator,style:i.style,styleSpec:i.styleSpec})),$t(e[0])){case"<":case"<=":case">":case">=":e.length>=2&&$t(e[1])==="$type"&&u.push(new we(r,e,`"$type" cannot be use with operator "${e[0]}"`));case"==":case"!=":e.length!==3&&u.push(new we(r,e,`filter array for operator "${e[0]}" must have 3 elements`));case"in":case"!in":e.length>=2&&(l=_t(e[1]),l!=="string"&&u.push(new we(`${r}[1]`,e[1],`string expected, ${l} found`)));for(let d=2;d{v in r&&e.push(new we(s,r[v],`"${v}" is prohibited for ref layers`))}),l.layers.forEach(v=>{$t(v.id)===f&&(g=v)}),g?g.ref?e.push(new we(s,r.ref,"ref cannot reference another ref layer")):d=$t(g.type):e.push(new we(s,r.ref,`ref layer "${f}" not found`))}else if(d!=="background")if(r.source){const g=l.sources&&l.sources[r.source],v=g&&$t(g.type);g?v==="vector"&&d==="raster"?e.push(new we(s,r.source,`layer "${r.id}" requires a raster source`)):v==="raster"&&d!=="raster"?e.push(new we(s,r.source,`layer "${r.id}" requires a vector source`)):v!=="vector"||r["source-layer"]?v==="raster-dem"&&d!=="hillshade"?e.push(new we(s,r.source,"raster-dem source can only be used with layer type 'hillshade'.")):d!=="line"||!r.paint||!r.paint["line-gradient"]||v==="geojson"&&g.lineMetrics||e.push(new we(s,r,`layer "${r.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):e.push(new we(s,r,`layer "${r.id}" must specify a "source-layer"`)):e.push(new we(s,r.source,`source "${r.source}" not found`))}else e.push(new we(s,r,'missing required property "source"'));return e=e.concat(Ki({key:s,value:r,valueSpec:u.layer,style:i.style,styleSpec:i.styleSpec,validateSpec:i.validateSpec,objectElementValidators:{"*":()=>[],type:()=>i.validateSpec({key:`${s}.type`,value:r.type,valueSpec:u.layer.type,style:i.style,styleSpec:i.styleSpec,validateSpec:i.validateSpec,object:r,objectKey:"type"}),filter:zn,layout:g=>Ki({layer:r,key:g.key,value:g.value,style:g.style,styleSpec:g.styleSpec,validateSpec:g.validateSpec,objectElementValidators:{"*":v=>Wo(lr({layerType:d},v))}}),paint:g=>Ki({layer:r,key:g.key,value:g.value,style:g.style,styleSpec:g.styleSpec,validateSpec:g.validateSpec,objectElementValidators:{"*":v=>Ua(lr({layerType:d},v))}})}})),e}function hr(i){const e=i.value,r=i.key,s=_t(e);return s!=="string"?[new we(r,e,`string expected, ${s} found`)]:[]}const Ls={promoteId:function({key:i,value:e}){if(_t(e)==="string")return hr({key:i,value:e});{const r=[];for(const s in e)r.push(...hr({key:`${i}.${s}`,value:e[s]}));return r}}};function Bs(i){const e=i.value,r=i.key,s=i.styleSpec,l=i.style,u=i.validateSpec;if(!e.type)return[new we(r,e,'"type" is required')];const d=$t(e.type);let f;switch(d){case"vector":case"raster":case"raster-dem":return f=Ki({key:r,value:e,valueSpec:s[`source_${d.replace("-","_")}`],style:i.style,styleSpec:s,objectElementValidators:Ls,validateSpec:u}),f;case"geojson":if(f=Ki({key:r,value:e,valueSpec:s.source_geojson,style:l,styleSpec:s,validateSpec:u,objectElementValidators:Ls}),e.cluster)for(const g in e.clusterProperties){const[v,b]=e.clusterProperties[g],S=typeof v=="string"?[v,["accumulated"],["get",g]]:v;f.push(...nn({key:`${r}.${g}.map`,value:b,validateSpec:u,expressionContext:"cluster-map"})),f.push(...nn({key:`${r}.${g}.reduce`,value:S,validateSpec:u,expressionContext:"cluster-reduce"}))}return f;case"video":return Ki({key:r,value:e,valueSpec:s.source_video,style:l,validateSpec:u,styleSpec:s});case"image":return Ki({key:r,value:e,valueSpec:s.source_image,style:l,validateSpec:u,styleSpec:s});case"canvas":return[new we(r,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return Jn({key:`${r}.type`,value:e.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:l,validateSpec:u,styleSpec:s})}}function Ho(i){const e=i.value,r=i.styleSpec,s=r.light,l=i.style;let u=[];const d=_t(e);if(e===void 0)return u;if(d!=="object")return u=u.concat([new we("light",e,`object expected, ${d} found`)]),u;for(const f in e){const g=f.match(/^(.*)-transition$/);u=u.concat(g&&s[g[1]]&&s[g[1]].transition?i.validateSpec({key:f,value:e[f],valueSpec:r.transition,validateSpec:i.validateSpec,style:l,styleSpec:r}):s[f]?i.validateSpec({key:f,value:e[f],valueSpec:s[f],validateSpec:i.validateSpec,style:l,styleSpec:r}):[new we(f,e[f],`unknown property "${f}"`)])}return u}function Qn(i){const e=i.value,r=i.styleSpec,s=r.terrain,l=i.style;let u=[];const d=_t(e);if(e===void 0)return u;if(d!=="object")return u=u.concat([new we("terrain",e,`object expected, ${d} found`)]),u;for(const f in e)u=u.concat(s[f]?i.validateSpec({key:f,value:e[f],valueSpec:s[f],validateSpec:i.validateSpec,style:l,styleSpec:r}):[new we(f,e[f],`unknown property "${f}"`)]);return u}function Ko(i){let e=[];const r=i.value,s=i.key;if(Array.isArray(r)){const l=[],u=[];for(const d in r)r[d].id&&l.includes(r[d].id)&&e.push(new we(s,r,`all the sprites' ids must be unique, but ${r[d].id} is duplicated`)),l.push(r[d].id),r[d].url&&u.includes(r[d].url)&&e.push(new we(s,r,`all the sprites' URLs must be unique, but ${r[d].url} is duplicated`)),u.push(r[d].url),e=e.concat(Ki({key:`${s}[${d}]`,value:r[d],valueSpec:{id:{type:"string",required:!0},url:{type:"string",required:!0}},validateSpec:i.validateSpec}));return e}return hr({key:s,value:r})}const Yo={"*":()=>[],array:Zo,boolean:function(i){const e=i.value,r=i.key,s=_t(e);return s!=="boolean"?[new we(r,e,`boolean expected, ${s} found`)]:[]},number:Fa,color:function(i){const e=i.key,r=i.value,s=_t(r);return s!=="string"?[new we(e,r,`color expected, ${s} found`)]:Ze.parse(String(r))?[]:[new we(e,r,`color expected, "${r}" found`)]},constants:jo,enum:Jn,filter:zn,function:Go,layer:Ds,object:Ki,source:Bs,light:Ho,terrain:Qn,string:hr,formatted:function(i){return hr(i).length===0?[]:nn(i)},resolvedImage:function(i){return hr(i).length===0?[]:nn(i)},padding:function(i){const e=i.key,r=i.value;if(_t(r)==="array"){if(r.length<1||r.length>4)return[new we(e,r,`padding requires 1 to 4 values; ${r.length} values found`)];const s={type:"number"};let l=[];for(let u=0;u[]}})),i.constants&&(r=r.concat(jo({key:"constants",value:i.constants,style:i,styleSpec:e,validateSpec:es}))),ts(r)}function Yi(i){return function(e){return i({...e,validateSpec:es})}}function ts(i){return[].concat(i).sort((e,r)=>e.line-r.line)}function Ht(i){return function(...e){return ts(i.apply(this,e))}}ur.source=Ht(Yi(Bs)),ur.sprite=Ht(Yi(Ko)),ur.glyphs=Ht(Yi(Jo)),ur.light=Ht(Yi(Ho)),ur.terrain=Ht(Yi(Qn)),ur.layer=Ht(Yi(Ds)),ur.filter=Ht(Yi(zn)),ur.paintProperty=Ht(Yi(Ua)),ur.layoutProperty=Ht(Yi(Wo));const qr=ur,ic=qr.light,rc=qr.paintProperty,nc=qr.layoutProperty;function Dn(i,e){let r=!1;if(e&&e.length)for(const s of e)i.fire(new Xi(new Error(s.message))),r=!0;return r}class is{constructor(e,r,s){const l=this.cells=[];if(e instanceof ArrayBuffer){this.arrayBuffer=e;const d=new Int32Array(this.arrayBuffer);e=d[0],this.d=(r=d[1])+2*(s=d[2]);for(let g=0;g=S[z+0]&&l>=S[z+1])?(f[C]=!0,d.push(b[C])):f[C]=!1}}}}_forEachCell(e,r,s,l,u,d,f,g){const v=this._convertToCellCoord(e),b=this._convertToCellCoord(r),S=this._convertToCellCoord(s),P=this._convertToCellCoord(l);for(let C=v;C<=S;C++)for(let z=b;z<=P;z++){const U=this.d*z+C;if((!g||g(this._convertFromCellCoord(C),this._convertFromCellCoord(z),this._convertFromCellCoord(C+1),this._convertFromCellCoord(z+1)))&&u.call(this,e,r,s,l,U,d,f,g))return}}_convertFromCellCoord(e){return(e-this.padding)/this.scale}_convertToCellCoord(e){return Math.max(0,Math.min(this.d-1,Math.floor(e*this.scale)+this.padding))}toArrayBuffer(){if(this.arrayBuffer)return this.arrayBuffer;const e=this.cells,r=3+this.cells.length+1+1;let s=0;for(let d=0;d=0)continue;const d=i[u];l[u]=dr[s].shallow.indexOf(u)>=0?d:rs(d,e)}i instanceof Error&&(l.message=i.message)}if(l.$name)throw new Error("$name property is reserved for worker serialization logic.");return s!=="Object"&&(l.$name=s),l}throw new Error("can't serialize object of type "+typeof i)}function Ar(i){if(i==null||typeof i=="boolean"||typeof i=="number"||typeof i=="string"||i instanceof Boolean||i instanceof Number||i instanceof String||i instanceof Date||i instanceof RegExp||i instanceof Blob||Rs(i)||Wr(i)||ArrayBuffer.isView(i)||i instanceof ImageData)return i;if(Array.isArray(i))return i.map(Ar);if(typeof i=="object"){const e=i.$name||"Object";if(!dr[e])throw new Error(`can't deserialize unregistered class ${e}`);const{klass:r}=dr[e];if(!r)throw new Error(`can't deserialize unregistered class ${e}`);if(r.deserialize)return r.deserialize(i);const s=Object.create(r.prototype);for(const l of Object.keys(i)){if(l==="$name")continue;const u=i[l];s[l]=dr[e].shallow.indexOf(l)>=0?u:Ar(u)}return s}throw new Error("can't deserialize object of type "+typeof i)}class Qo{constructor(){this.first=!0}update(e,r){const s=Math.floor(e);return this.first?(this.first=!1,this.lastIntegerZoom=s,this.lastIntegerZoomTime=0,this.lastZoom=e,this.lastFloorZoom=s,!0):(this.lastFloorZoom>s?(this.lastIntegerZoom=s+1,this.lastIntegerZoomTime=r):this.lastFloorZoomi>=128&&i<=255,Arabic:i=>i>=1536&&i<=1791,"Arabic Supplement":i=>i>=1872&&i<=1919,"Arabic Extended-A":i=>i>=2208&&i<=2303,"Hangul Jamo":i=>i>=4352&&i<=4607,"Unified Canadian Aboriginal Syllabics":i=>i>=5120&&i<=5759,Khmer:i=>i>=6016&&i<=6143,"Unified Canadian Aboriginal Syllabics Extended":i=>i>=6320&&i<=6399,"General Punctuation":i=>i>=8192&&i<=8303,"Letterlike Symbols":i=>i>=8448&&i<=8527,"Number Forms":i=>i>=8528&&i<=8591,"Miscellaneous Technical":i=>i>=8960&&i<=9215,"Control Pictures":i=>i>=9216&&i<=9279,"Optical Character Recognition":i=>i>=9280&&i<=9311,"Enclosed Alphanumerics":i=>i>=9312&&i<=9471,"Geometric Shapes":i=>i>=9632&&i<=9727,"Miscellaneous Symbols":i=>i>=9728&&i<=9983,"Miscellaneous Symbols and Arrows":i=>i>=11008&&i<=11263,"CJK Radicals Supplement":i=>i>=11904&&i<=12031,"Kangxi Radicals":i=>i>=12032&&i<=12255,"Ideographic Description Characters":i=>i>=12272&&i<=12287,"CJK Symbols and Punctuation":i=>i>=12288&&i<=12351,Hiragana:i=>i>=12352&&i<=12447,Katakana:i=>i>=12448&&i<=12543,Bopomofo:i=>i>=12544&&i<=12591,"Hangul Compatibility Jamo":i=>i>=12592&&i<=12687,Kanbun:i=>i>=12688&&i<=12703,"Bopomofo Extended":i=>i>=12704&&i<=12735,"CJK Strokes":i=>i>=12736&&i<=12783,"Katakana Phonetic Extensions":i=>i>=12784&&i<=12799,"Enclosed CJK Letters and Months":i=>i>=12800&&i<=13055,"CJK Compatibility":i=>i>=13056&&i<=13311,"CJK Unified Ideographs Extension A":i=>i>=13312&&i<=19903,"Yijing Hexagram Symbols":i=>i>=19904&&i<=19967,"CJK Unified Ideographs":i=>i>=19968&&i<=40959,"Yi Syllables":i=>i>=40960&&i<=42127,"Yi Radicals":i=>i>=42128&&i<=42191,"Hangul Jamo Extended-A":i=>i>=43360&&i<=43391,"Hangul Syllables":i=>i>=44032&&i<=55215,"Hangul Jamo Extended-B":i=>i>=55216&&i<=55295,"Private Use Area":i=>i>=57344&&i<=63743,"CJK Compatibility Ideographs":i=>i>=63744&&i<=64255,"Arabic Presentation Forms-A":i=>i>=64336&&i<=65023,"Vertical Forms":i=>i>=65040&&i<=65055,"CJK Compatibility Forms":i=>i>=65072&&i<=65103,"Small Form Variants":i=>i>=65104&&i<=65135,"Arabic Presentation Forms-B":i=>i>=65136&&i<=65279,"Halfwidth and Fullwidth Forms":i=>i>=65280&&i<=65519};function Fs(i){for(const e of i)if(Os(e.charCodeAt(0)))return!0;return!1}function Va(i){for(const e of i)if(!el(e.charCodeAt(0)))return!1;return!0}function el(i){return!(Ae.Arabic(i)||Ae["Arabic Supplement"](i)||Ae["Arabic Extended-A"](i)||Ae["Arabic Presentation Forms-A"](i)||Ae["Arabic Presentation Forms-B"](i))}function Os(i){return!(i!==746&&i!==747&&(i<4352||!(Ae["Bopomofo Extended"](i)||Ae.Bopomofo(i)||Ae["CJK Compatibility Forms"](i)&&!(i>=65097&&i<=65103)||Ae["CJK Compatibility Ideographs"](i)||Ae["CJK Compatibility"](i)||Ae["CJK Radicals Supplement"](i)||Ae["CJK Strokes"](i)||!(!Ae["CJK Symbols and Punctuation"](i)||i>=12296&&i<=12305||i>=12308&&i<=12319||i===12336)||Ae["CJK Unified Ideographs Extension A"](i)||Ae["CJK Unified Ideographs"](i)||Ae["Enclosed CJK Letters and Months"](i)||Ae["Hangul Compatibility Jamo"](i)||Ae["Hangul Jamo Extended-A"](i)||Ae["Hangul Jamo Extended-B"](i)||Ae["Hangul Jamo"](i)||Ae["Hangul Syllables"](i)||Ae.Hiragana(i)||Ae["Ideographic Description Characters"](i)||Ae.Kanbun(i)||Ae["Kangxi Radicals"](i)||Ae["Katakana Phonetic Extensions"](i)||Ae.Katakana(i)&&i!==12540||!(!Ae["Halfwidth and Fullwidth Forms"](i)||i===65288||i===65289||i===65293||i>=65306&&i<=65310||i===65339||i===65341||i===65343||i>=65371&&i<=65503||i===65507||i>=65512&&i<=65519)||!(!Ae["Small Form Variants"](i)||i>=65112&&i<=65118||i>=65123&&i<=65126)||Ae["Unified Canadian Aboriginal Syllabics"](i)||Ae["Unified Canadian Aboriginal Syllabics Extended"](i)||Ae["Vertical Forms"](i)||Ae["Yijing Hexagram Symbols"](i)||Ae["Yi Syllables"](i)||Ae["Yi Radicals"](i))))}function tl(i){return!(Os(i)||function(e){return!!(Ae["Latin-1 Supplement"](e)&&(e===167||e===169||e===174||e===177||e===188||e===189||e===190||e===215||e===247)||Ae["General Punctuation"](e)&&(e===8214||e===8224||e===8225||e===8240||e===8241||e===8251||e===8252||e===8258||e===8263||e===8264||e===8265||e===8273)||Ae["Letterlike Symbols"](e)||Ae["Number Forms"](e)||Ae["Miscellaneous Technical"](e)&&(e>=8960&&e<=8967||e>=8972&&e<=8991||e>=8996&&e<=9e3||e===9003||e>=9085&&e<=9114||e>=9150&&e<=9165||e===9167||e>=9169&&e<=9179||e>=9186&&e<=9215)||Ae["Control Pictures"](e)&&e!==9251||Ae["Optical Character Recognition"](e)||Ae["Enclosed Alphanumerics"](e)||Ae["Geometric Shapes"](e)||Ae["Miscellaneous Symbols"](e)&&!(e>=9754&&e<=9759)||Ae["Miscellaneous Symbols and Arrows"](e)&&(e>=11026&&e<=11055||e>=11088&&e<=11097||e>=11192&&e<=11243)||Ae["CJK Symbols and Punctuation"](e)||Ae.Katakana(e)||Ae["Private Use Area"](e)||Ae["CJK Compatibility Forms"](e)||Ae["Small Form Variants"](e)||Ae["Halfwidth and Fullwidth Forms"](e)||e===8734||e===8756||e===8757||e>=9984&&e<=10087||e>=10102&&e<=10131||e===65532||e===65533)}(i))}function Us(i){return i>=1424&&i<=2303||Ae["Arabic Presentation Forms-A"](i)||Ae["Arabic Presentation Forms-B"](i)}function Vs(i,e){return!(!e&&Us(i)||i>=2304&&i<=3583||i>=3840&&i<=4255||Ae.Khmer(i))}function il(i){for(const e of i)if(Us(e.charCodeAt(0)))return!0;return!1}const Na="deferred",Ns="loading",$a="loaded";let ns=null,Mi="unavailable",jr=null;const rl=function(i){i&&typeof i=="string"&&i.indexOf("NetworkError")>-1&&(Mi="error"),ns&&ns(i)};function qa(){$s.fire(new wr("pluginStateChange",{pluginStatus:Mi,pluginURL:jr}))}const $s=new vn,ja=function(){return Mi},nl=function(){if(Mi!==Na||!jr)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Mi=Ns,qa(),jr&&xn({url:jr},i=>{i?rl(i):(Mi=$a,qa())})},Ji={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:()=>Mi===$a||Ji.applyArabicShaping!=null,isLoading:()=>Mi===Ns,setState(i){if(!Zi())throw new Error("Cannot set the state of the rtl-text-plugin when not in the web-worker context");Mi=i.pluginStatus,jr=i.pluginURL},isParsed(){if(!Zi())throw new Error("rtl-text-plugin is only parsed on the worker-threads");return Ji.applyArabicShaping!=null&&Ji.processBidirectionalText!=null&&Ji.processStyledBidirectionalText!=null},getPluginURL(){if(!Zi())throw new Error("rtl-text-plugin url can only be queried from the worker threads");return jr}};class kt{constructor(e,r){this.zoom=e,r?(this.now=r.now,this.fadeDuration=r.fadeDuration,this.zoomHistory=r.zoomHistory,this.transition=r.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Qo,this.transition={})}isSupportedScript(e){return function(r,s){for(const l of r)if(!Vs(l.charCodeAt(0),s))return!1;return!0}(e,Ji.isLoaded())}crossFadingFactor(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)}getCrossfadeParameters(){const e=this.zoom,r=e-Math.floor(e),s=this.crossFadingFactor();return e>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:r+(1-r)*s}:{fromScale:.5,toScale:1,t:1-(1-s)*r}}}class qs{constructor(e,r){this.property=e,this.value=r,this.expression=function(s,l){if(Ps(s))return new It(s,l);if(Ms(s)){const u=Cs(s,l);if(u.result==="error")throw new Error(u.value.map(d=>`${d.key}: ${d.message}`).join(", "));return u.value}{let u=s;return l.type==="color"&&typeof s=="string"?u=Ze.parse(s):l.type!=="padding"||typeof s!="number"&&!Array.isArray(s)||(u=Li.parse(s)),{kind:"constant",evaluate:()=>u}}}(r===void 0?e.specification.default:r,e.specification)}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}possiblyEvaluate(e,r,s){return this.property.possiblyEvaluate(this,e,r,s)}}class Za{constructor(e){this.property=e,this.value=new qs(e,void 0)}transitioned(e,r){return new ss(this.property,this.value,r,pt({},e.transition,this.transition),e.now)}untransitioned(){return new ss(this.property,this.value,null,{},0)}}class sl{constructor(e){this._properties=e,this._values=Object.create(e.defaultTransitionablePropertyValues)}getValue(e){return Ct(this._values[e].value.value)}setValue(e,r){Object.prototype.hasOwnProperty.call(this._values,e)||(this._values[e]=new Za(this._values[e].property)),this._values[e].value=new qs(this._values[e].property,r===null?void 0:Ct(r))}getTransition(e){return Ct(this._values[e].transition)}setTransition(e,r){Object.prototype.hasOwnProperty.call(this._values,e)||(this._values[e]=new Za(this._values[e].property)),this._values[e].transition=Ct(r)||void 0}serialize(){const e={};for(const r of Object.keys(this._values)){const s=this.getValue(r);s!==void 0&&(e[r]=s);const l=this.getTransition(r);l!==void 0&&(e[`${r}-transition`]=l)}return e}transitioned(e,r){const s=new al(this._properties);for(const l of Object.keys(this._values))s._values[l]=this._values[l].transitioned(e,r._values[l]);return s}untransitioned(){const e=new al(this._properties);for(const r of Object.keys(this._values))e._values[r]=this._values[r].untransitioned();return e}}class ss{constructor(e,r,s,l,u){this.property=e,this.value=r,this.begin=u+l.delay||0,this.end=this.begin+l.duration||0,e.specification.transition&&(l.delay||l.duration)&&(this.prior=s)}possiblyEvaluate(e,r,s){const l=e.now||0,u=this.value.possiblyEvaluate(e,r,s),d=this.prior;if(d){if(l>this.end)return this.prior=null,u;if(this.value.isDataDriven())return this.prior=null,u;if(l=1)return 1;const v=g*g,b=v*g;return 4*(g<.5?b:3*(g-v)+b-.75)}(f))}}return u}}class al{constructor(e){this._properties=e,this._values=Object.create(e.defaultTransitioningPropertyValues)}possiblyEvaluate(e,r,s){const l=new js(this._properties);for(const u of Object.keys(this._values))l._values[u]=this._values[u].possiblyEvaluate(e,r,s);return l}hasTransition(){for(const e of Object.keys(this._values))if(this._values[e].prior)return!0;return!1}}class Ga{constructor(e){this._properties=e,this._values=Object.create(e.defaultPropertyValues)}getValue(e){return Ct(this._values[e].value)}setValue(e,r){this._values[e]=new qs(this._values[e].property,r===null?void 0:Ct(r))}serialize(){const e={};for(const r of Object.keys(this._values)){const s=this.getValue(r);s!==void 0&&(e[r]=s)}return e}possiblyEvaluate(e,r,s){const l=new js(this._properties);for(const u of Object.keys(this._values))l._values[u]=this._values[u].possiblyEvaluate(e,r,s);return l}}class pr{constructor(e,r,s){this.property=e,this.value=r,this.parameters=s}isConstant(){return this.value.kind==="constant"}constantOr(e){return this.value.kind==="constant"?this.value.value:e}evaluate(e,r,s,l){return this.property.evaluate(this.value,this.parameters,e,r,s,l)}}class js{constructor(e){this._properties=e,this._values=Object.create(e.defaultPossiblyEvaluatedValues)}get(e){return this._values[e]}}class Fe{constructor(e){this.specification=e}possiblyEvaluate(e,r){if(e.isDataDriven())throw new Error("Value should not be data driven");return e.expression.evaluate(r)}interpolate(e,r,s){const l=Bi[this.specification.type];return l?l(e,r,s):e}}class qe{constructor(e,r){this.specification=e,this.overrides=r}possiblyEvaluate(e,r,s,l){return new pr(this,e.expression.kind==="constant"||e.expression.kind==="camera"?{kind:"constant",value:e.expression.evaluate(r,null,{},s,l)}:e.expression,r)}interpolate(e,r,s){if(e.value.kind!=="constant"||r.value.kind!=="constant")return e;if(e.value.value===void 0||r.value.value===void 0)return new pr(this,{kind:"constant",value:void 0},e.parameters);const l=Bi[this.specification.type];if(l){const u=l(e.value.value,r.value.value,s);return new pr(this,{kind:"constant",value:u},e.parameters)}return e}evaluate(e,r,s,l,u,d){return e.kind==="constant"?e.value:e.evaluate(r,s,l,u,d)}}class as extends qe{possiblyEvaluate(e,r,s,l){if(e.value===void 0)return new pr(this,{kind:"constant",value:void 0},r);if(e.expression.kind==="constant"){const u=e.expression.evaluate(r,null,{},s,l),d=e.property.specification.type==="resolvedImage"&&typeof u!="string"?u.name:u,f=this._calculate(d,d,d,r);return new pr(this,{kind:"constant",value:f},r)}if(e.expression.kind==="camera"){const u=this._calculate(e.expression.evaluate({zoom:r.zoom-1}),e.expression.evaluate({zoom:r.zoom}),e.expression.evaluate({zoom:r.zoom+1}),r);return new pr(this,{kind:"constant",value:u},r)}return new pr(this,e.expression,r)}evaluate(e,r,s,l,u,d){if(e.kind==="source"){const f=e.evaluate(r,s,l,u,d);return this._calculate(f,f,f,r)}return e.kind==="composite"?this._calculate(e.evaluate({zoom:Math.floor(r.zoom)-1},s,l),e.evaluate({zoom:Math.floor(r.zoom)},s,l),e.evaluate({zoom:Math.floor(r.zoom)+1},s,l),r):e.value}_calculate(e,r,s,l){return l.zoom>l.zoomHistory.lastIntegerZoom?{from:e,to:r}:{from:s,to:r}}interpolate(e){return e}}class Xa{constructor(e){this.specification=e}possiblyEvaluate(e,r,s,l){if(e.value!==void 0){if(e.expression.kind==="constant"){const u=e.expression.evaluate(r,null,{},s,l);return this._calculate(u,u,u,r)}return this._calculate(e.expression.evaluate(new kt(Math.floor(r.zoom-1),r)),e.expression.evaluate(new kt(Math.floor(r.zoom),r)),e.expression.evaluate(new kt(Math.floor(r.zoom+1),r)),r)}}_calculate(e,r,s,l){return l.zoom>l.zoomHistory.lastIntegerZoom?{from:e,to:r}:{from:s,to:r}}interpolate(e){return e}}class Wa{constructor(e){this.specification=e}possiblyEvaluate(e,r,s,l){return!!e.expression.evaluate(r,null,{},s,l)}interpolate(){return!1}}class Ci{constructor(e){this.properties=e,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(const r in e){const s=e[r];s.specification.overridable&&this.overridableProperties.push(r);const l=this.defaultPropertyValues[r]=new qs(s,void 0),u=this.defaultTransitionablePropertyValues[r]=new Za(s);this.defaultTransitioningPropertyValues[r]=u.untransitioned(),this.defaultPossiblyEvaluatedValues[r]=l.possiblyEvaluate({})}}}De("DataDrivenProperty",qe),De("DataConstantProperty",Fe),De("CrossFadedDataDrivenProperty",as),De("CrossFadedProperty",Xa),De("ColorRampProperty",Wa);const ol="-transition";class fr extends vn{constructor(e,r){if(super(),this.id=e.id,this.type=e.type,this._featureFilter={filter:()=>!0,needGeometry:!1},e.type!=="custom"&&(this.metadata=e.metadata,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,e.type!=="background"&&(this.source=e.source,this.sourceLayer=e["source-layer"],this.filter=e.filter),r.layout&&(this._unevaluatedLayout=new Ga(r.layout)),r.paint)){this._transitionablePaint=new sl(r.paint);for(const s in e.paint)this.setPaintProperty(s,e.paint[s],{validate:!1});for(const s in e.layout)this.setLayoutProperty(s,e.layout[s],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new js(r.paint)}}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(e){return e==="visibility"?this.visibility:this._unevaluatedLayout.getValue(e)}setLayoutProperty(e,r,s={}){r!=null&&this._validate(nc,`layers.${this.id}.layout.${e}`,e,r,s)||(e!=="visibility"?this._unevaluatedLayout.setValue(e,r):this.visibility=r)}getPaintProperty(e){return e.endsWith(ol)?this._transitionablePaint.getTransition(e.slice(0,-11)):this._transitionablePaint.getValue(e)}setPaintProperty(e,r,s={}){if(r!=null&&this._validate(rc,`layers.${this.id}.paint.${e}`,e,r,s))return!1;if(e.endsWith(ol))return this._transitionablePaint.setTransition(e.slice(0,-11),r||void 0),!1;{const l=this._transitionablePaint._values[e],u=l.property.specification["property-type"]==="cross-faded-data-driven",d=l.value.isDataDriven(),f=l.value;this._transitionablePaint.setValue(e,r),this._handleSpecialPaintPropertyUpdate(e);const g=this._transitionablePaint._values[e].value;return g.isDataDriven()||d||u||this._handleOverridablePaintPropertyUpdate(e,f,g)}}_handleSpecialPaintPropertyUpdate(e){}_handleOverridablePaintPropertyUpdate(e,r,s){return!1}isHidden(e){return!!(this.minzoom&&e=this.maxzoom)||this.visibility==="none"}updateTransitions(e){this._transitioningPaint=this._transitionablePaint.transitioned(e,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(e,r){e.getCrossfadeParameters&&(this._crossfadeParameters=e.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(e,void 0,r)),this.paint=this._transitioningPaint.possiblyEvaluate(e,void 0,r)}serialize(){const e={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(e.layout=e.layout||{},e.layout.visibility=this.visibility),Mt(e,(r,s)=>!(r===void 0||s==="layout"&&!Object.keys(r).length||s==="paint"&&!Object.keys(r).length))}_validate(e,r,s,l,u={}){return(!u||u.validate!==!1)&&Dn(this,e.call(qr,{key:r,layerType:this.type,objectKey:s,value:l,styleSpec:le,style:{glyphs:!0,sprite:!0}}))}is3D(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(const e in this.paint._values){const r=this.paint.get(e);if(r instanceof pr&&Cn(r.property.specification)&&(r.value.kind==="source"||r.value.kind==="composite")&&r.value.isStateDependent)return!0}return!1}}const sc={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};class Pr{constructor(e,r){this._structArray=e,this._pos1=r*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}}class Ft{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(e,r){return e._trim(),r&&(e.isTransferred=!0,r.push(e.arrayBuffer)),{length:e.length,arrayBuffer:e.arrayBuffer}}static deserialize(e){const r=Object.create(this.prototype);return r.arrayBuffer=e.arrayBuffer,r.length=e.length,r.capacity=e.arrayBuffer.byteLength/r.bytesPerElement,r._refreshViews(),r}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(e){this.reserve(e),this.length=e}reserve(e){if(e>this.capacity){this.capacity=Math.max(e,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);const r=this.uint8;this._refreshViews(),r&&this.uint8.set(r)}}_refreshViews(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")}}function Kt(i,e=1){let r=0,s=0;return{members:i.map(l=>{const u=sc[l.type].BYTES_PER_ELEMENT,d=r=ll(r,Math.max(e,u)),f=l.components||1;return s=Math.max(s,u),r+=u*f,{name:l.name,type:l.type,components:f,offset:d}}),size:ll(r,Math.max(s,e)),alignment:e}}function ll(i,e){return Math.ceil(i/e)*e}class Ln extends Ft{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,r){const s=this.length;return this.resize(s+1),this.emplace(s,e,r)}emplace(e,r,s){const l=2*e;return this.int16[l+0]=r,this.int16[l+1]=s,e}}Ln.prototype.bytesPerElement=4,De("StructArrayLayout2i4",Ln);class Zs extends Ft{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,r,s){const l=this.length;return this.resize(l+1),this.emplace(l,e,r,s)}emplace(e,r,s,l){const u=3*e;return this.int16[u+0]=r,this.int16[u+1]=s,this.int16[u+2]=l,e}}Zs.prototype.bytesPerElement=6,De("StructArrayLayout3i6",Zs);class Ha extends Ft{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,r,s,l){const u=this.length;return this.resize(u+1),this.emplace(u,e,r,s,l)}emplace(e,r,s,l,u){const d=4*e;return this.int16[d+0]=r,this.int16[d+1]=s,this.int16[d+2]=l,this.int16[d+3]=u,e}}Ha.prototype.bytesPerElement=8,De("StructArrayLayout4i8",Ha);class mr extends Ft{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,r,s,l,u,d){const f=this.length;return this.resize(f+1),this.emplace(f,e,r,s,l,u,d)}emplace(e,r,s,l,u,d,f){const g=6*e;return this.int16[g+0]=r,this.int16[g+1]=s,this.int16[g+2]=l,this.int16[g+3]=u,this.int16[g+4]=d,this.int16[g+5]=f,e}}mr.prototype.bytesPerElement=12,De("StructArrayLayout2i4i12",mr);class Gs extends Ft{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,r,s,l,u,d){const f=this.length;return this.resize(f+1),this.emplace(f,e,r,s,l,u,d)}emplace(e,r,s,l,u,d,f){const g=4*e,v=8*e;return this.int16[g+0]=r,this.int16[g+1]=s,this.uint8[v+4]=l,this.uint8[v+5]=u,this.uint8[v+6]=d,this.uint8[v+7]=f,e}}Gs.prototype.bytesPerElement=8,De("StructArrayLayout2i4ub8",Gs);class sn extends Ft{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,r){const s=this.length;return this.resize(s+1),this.emplace(s,e,r)}emplace(e,r,s){const l=2*e;return this.float32[l+0]=r,this.float32[l+1]=s,e}}sn.prototype.bytesPerElement=8,De("StructArrayLayout2f8",sn);class Xs extends Ft{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,r,s,l,u,d,f,g,v,b){const S=this.length;return this.resize(S+1),this.emplace(S,e,r,s,l,u,d,f,g,v,b)}emplace(e,r,s,l,u,d,f,g,v,b,S){const P=10*e;return this.uint16[P+0]=r,this.uint16[P+1]=s,this.uint16[P+2]=l,this.uint16[P+3]=u,this.uint16[P+4]=d,this.uint16[P+5]=f,this.uint16[P+6]=g,this.uint16[P+7]=v,this.uint16[P+8]=b,this.uint16[P+9]=S,e}}Xs.prototype.bytesPerElement=20,De("StructArrayLayout10ui20",Xs);class os extends Ft{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,r,s,l,u,d,f,g,v,b,S,P){const C=this.length;return this.resize(C+1),this.emplace(C,e,r,s,l,u,d,f,g,v,b,S,P)}emplace(e,r,s,l,u,d,f,g,v,b,S,P,C){const z=12*e;return this.int16[z+0]=r,this.int16[z+1]=s,this.int16[z+2]=l,this.int16[z+3]=u,this.uint16[z+4]=d,this.uint16[z+5]=f,this.uint16[z+6]=g,this.uint16[z+7]=v,this.int16[z+8]=b,this.int16[z+9]=S,this.int16[z+10]=P,this.int16[z+11]=C,e}}os.prototype.bytesPerElement=24,De("StructArrayLayout4i4ui4i24",os);class Ka extends Ft{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,r,s){const l=this.length;return this.resize(l+1),this.emplace(l,e,r,s)}emplace(e,r,s,l){const u=3*e;return this.float32[u+0]=r,this.float32[u+1]=s,this.float32[u+2]=l,e}}Ka.prototype.bytesPerElement=12,De("StructArrayLayout3f12",Ka);class Bn extends Ft{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e){const r=this.length;return this.resize(r+1),this.emplace(r,e)}emplace(e,r){return this.uint32[1*e+0]=r,e}}Bn.prototype.bytesPerElement=4,De("StructArrayLayout1ul4",Bn);class an extends Ft{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,r,s,l,u,d,f,g,v){const b=this.length;return this.resize(b+1),this.emplace(b,e,r,s,l,u,d,f,g,v)}emplace(e,r,s,l,u,d,f,g,v,b){const S=10*e,P=5*e;return this.int16[S+0]=r,this.int16[S+1]=s,this.int16[S+2]=l,this.int16[S+3]=u,this.int16[S+4]=d,this.int16[S+5]=f,this.uint32[P+3]=g,this.uint16[S+8]=v,this.uint16[S+9]=b,e}}an.prototype.bytesPerElement=20,De("StructArrayLayout6i1ul2ui20",an);class Ya extends Ft{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,r,s,l,u,d){const f=this.length;return this.resize(f+1),this.emplace(f,e,r,s,l,u,d)}emplace(e,r,s,l,u,d,f){const g=6*e;return this.int16[g+0]=r,this.int16[g+1]=s,this.int16[g+2]=l,this.int16[g+3]=u,this.int16[g+4]=d,this.int16[g+5]=f,e}}Ya.prototype.bytesPerElement=12,De("StructArrayLayout2i2i2i12",Ya);class Ws extends Ft{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,r,s,l,u){const d=this.length;return this.resize(d+1),this.emplace(d,e,r,s,l,u)}emplace(e,r,s,l,u,d){const f=4*e,g=8*e;return this.float32[f+0]=r,this.float32[f+1]=s,this.float32[f+2]=l,this.int16[g+6]=u,this.int16[g+7]=d,e}}Ws.prototype.bytesPerElement=16,De("StructArrayLayout2f1f2i16",Ws);class on extends Ft{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,r,s,l){const u=this.length;return this.resize(u+1),this.emplace(u,e,r,s,l)}emplace(e,r,s,l,u){const d=12*e,f=3*e;return this.uint8[d+0]=r,this.uint8[d+1]=s,this.float32[f+1]=l,this.float32[f+2]=u,e}}on.prototype.bytesPerElement=12,De("StructArrayLayout2ub2f12",on);class Hs extends Ft{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,r,s){const l=this.length;return this.resize(l+1),this.emplace(l,e,r,s)}emplace(e,r,s,l){const u=3*e;return this.uint16[u+0]=r,this.uint16[u+1]=s,this.uint16[u+2]=l,e}}Hs.prototype.bytesPerElement=6,De("StructArrayLayout3ui6",Hs);class Ja extends Ft{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,r,s,l,u,d,f,g,v,b,S,P,C,z,U,F,K){const Q=this.length;return this.resize(Q+1),this.emplace(Q,e,r,s,l,u,d,f,g,v,b,S,P,C,z,U,F,K)}emplace(e,r,s,l,u,d,f,g,v,b,S,P,C,z,U,F,K,Q){const X=24*e,ne=12*e,ae=48*e;return this.int16[X+0]=r,this.int16[X+1]=s,this.uint16[X+2]=l,this.uint16[X+3]=u,this.uint32[ne+2]=d,this.uint32[ne+3]=f,this.uint32[ne+4]=g,this.uint16[X+10]=v,this.uint16[X+11]=b,this.uint16[X+12]=S,this.float32[ne+7]=P,this.float32[ne+8]=C,this.uint8[ae+36]=z,this.uint8[ae+37]=U,this.uint8[ae+38]=F,this.uint32[ne+10]=K,this.int16[X+22]=Q,e}}Ja.prototype.bytesPerElement=48,De("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",Ja);class Ks extends Ft{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,r,s,l,u,d,f,g,v,b,S,P,C,z,U,F,K,Q,X,ne,ae,he,ze,Be,Pe,Se,Te,Me){const Ie=this.length;return this.resize(Ie+1),this.emplace(Ie,e,r,s,l,u,d,f,g,v,b,S,P,C,z,U,F,K,Q,X,ne,ae,he,ze,Be,Pe,Se,Te,Me)}emplace(e,r,s,l,u,d,f,g,v,b,S,P,C,z,U,F,K,Q,X,ne,ae,he,ze,Be,Pe,Se,Te,Me,Ie){const ye=34*e,Ve=17*e;return this.int16[ye+0]=r,this.int16[ye+1]=s,this.int16[ye+2]=l,this.int16[ye+3]=u,this.int16[ye+4]=d,this.int16[ye+5]=f,this.int16[ye+6]=g,this.int16[ye+7]=v,this.uint16[ye+8]=b,this.uint16[ye+9]=S,this.uint16[ye+10]=P,this.uint16[ye+11]=C,this.uint16[ye+12]=z,this.uint16[ye+13]=U,this.uint16[ye+14]=F,this.uint16[ye+15]=K,this.uint16[ye+16]=Q,this.uint16[ye+17]=X,this.uint16[ye+18]=ne,this.uint16[ye+19]=ae,this.uint16[ye+20]=he,this.uint16[ye+21]=ze,this.uint16[ye+22]=Be,this.uint32[Ve+12]=Pe,this.float32[Ve+13]=Se,this.float32[Ve+14]=Te,this.float32[Ve+15]=Me,this.float32[Ve+16]=Ie,e}}Ks.prototype.bytesPerElement=68,De("StructArrayLayout8i15ui1ul4f68",Ks);class Ys extends Ft{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e){const r=this.length;return this.resize(r+1),this.emplace(r,e)}emplace(e,r){return this.float32[1*e+0]=r,e}}Ys.prototype.bytesPerElement=4,De("StructArrayLayout1f4",Ys);class Js extends Ft{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,r,s){const l=this.length;return this.resize(l+1),this.emplace(l,e,r,s)}emplace(e,r,s,l){const u=4*e;return this.uint32[2*e+0]=r,this.uint16[u+2]=s,this.uint16[u+3]=l,e}}Js.prototype.bytesPerElement=8,De("StructArrayLayout1ul2ui8",Js);class o extends Ft{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,r){const s=this.length;return this.resize(s+1),this.emplace(s,e,r)}emplace(e,r,s){const l=2*e;return this.uint16[l+0]=r,this.uint16[l+1]=s,e}}o.prototype.bytesPerElement=4,De("StructArrayLayout2ui4",o);class t extends Ft{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e){const r=this.length;return this.resize(r+1),this.emplace(r,e)}emplace(e,r){return this.uint16[1*e+0]=r,e}}t.prototype.bytesPerElement=2,De("StructArrayLayout1ui2",t);class n extends Ft{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,r,s,l){const u=this.length;return this.resize(u+1),this.emplace(u,e,r,s,l)}emplace(e,r,s,l,u){const d=4*e;return this.float32[d+0]=r,this.float32[d+1]=s,this.float32[d+2]=l,this.float32[d+3]=u,e}}n.prototype.bytesPerElement=16,De("StructArrayLayout4f16",n);class a extends Pr{get anchorPointX(){return this._structArray.int16[this._pos2+0]}get anchorPointY(){return this._structArray.int16[this._pos2+1]}get x1(){return this._structArray.int16[this._pos2+2]}get y1(){return this._structArray.int16[this._pos2+3]}get x2(){return this._structArray.int16[this._pos2+4]}get y2(){return this._structArray.int16[this._pos2+5]}get featureIndex(){return this._structArray.uint32[this._pos4+3]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+8]}get bucketIndex(){return this._structArray.uint16[this._pos2+9]}get anchorPoint(){return new xe(this.anchorPointX,this.anchorPointY)}}a.prototype.size=20;class c extends an{get(e){return new a(this,e)}}De("CollisionBoxArray",c);class p extends Pr{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+2]}get numGlyphs(){return this._structArray.uint16[this._pos2+3]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+2]}get lineStartIndex(){return this._structArray.uint32[this._pos4+3]}get lineLength(){return this._structArray.uint32[this._pos4+4]}get segment(){return this._structArray.uint16[this._pos2+10]}get lowerSize(){return this._structArray.uint16[this._pos2+11]}get upperSize(){return this._structArray.uint16[this._pos2+12]}get lineOffsetX(){return this._structArray.float32[this._pos4+7]}get lineOffsetY(){return this._structArray.float32[this._pos4+8]}get writingMode(){return this._structArray.uint8[this._pos1+36]}get placedOrientation(){return this._structArray.uint8[this._pos1+37]}set placedOrientation(e){this._structArray.uint8[this._pos1+37]=e}get hidden(){return this._structArray.uint8[this._pos1+38]}set hidden(e){this._structArray.uint8[this._pos1+38]=e}get crossTileID(){return this._structArray.uint32[this._pos4+10]}set crossTileID(e){this._structArray.uint32[this._pos4+10]=e}get associatedIconIndex(){return this._structArray.int16[this._pos2+22]}}p.prototype.size=48;class m extends Ja{get(e){return new p(this,e)}}De("PlacedSymbolArray",m);class y extends Pr{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+2]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+3]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+4]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+5]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+6]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+7]}get key(){return this._structArray.uint16[this._pos2+8]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+9]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+10]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+11]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+12]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+13]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+14]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get featureIndex(){return this._structArray.uint16[this._pos2+17]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+18]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+19]}get numIconVertices(){return this._structArray.uint16[this._pos2+20]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+21]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+22]}get crossTileID(){return this._structArray.uint32[this._pos4+12]}set crossTileID(e){this._structArray.uint32[this._pos4+12]=e}get textBoxScale(){return this._structArray.float32[this._pos4+13]}get textOffset0(){return this._structArray.float32[this._pos4+14]}get textOffset1(){return this._structArray.float32[this._pos4+15]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+16]}}y.prototype.size=68;class _ extends Ks{get(e){return new y(this,e)}}De("SymbolInstanceArray",_);class x extends Ys{getoffsetX(e){return this.float32[1*e+0]}}De("GlyphOffsetArray",x);class T extends Zs{getx(e){return this.int16[3*e+0]}gety(e){return this.int16[3*e+1]}gettileUnitDistanceFromAnchor(e){return this.int16[3*e+2]}}De("SymbolLineVertexArray",T);class w extends Pr{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}}w.prototype.size=8;class k extends Js{get(e){return new w(this,e)}}De("FeatureIndexArray",k);class O extends Ln{}class B extends Ln{}class R extends Ln{}class q extends mr{}class H extends Gs{}class se extends sn{}class $ extends Xs{}class re extends os{}class oe extends Ka{}class me extends Bn{}class _e extends Ya{}class ve extends on{}class ge extends Hs{}class Ce extends o{}const Ue=Kt([{name:"a_pos",components:2,type:"Int16"}],4),{members:Ke}=Ue;class Ee{constructor(e=[]){this.segments=e}prepareSegment(e,r,s,l){let u=this.segments[this.segments.length-1];return e>Ee.MAX_VERTEX_ARRAY_LENGTH&&Vt(`Max vertices per segment is ${Ee.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${e}`),(!u||u.vertexLength+e>Ee.MAX_VERTEX_ARRAY_LENGTH||u.sortKey!==l)&&(u={vertexOffset:r.length,primitiveOffset:s.length,vertexLength:0,primitiveLength:0},l!==void 0&&(u.sortKey=l),this.segments.push(u)),u}get(){return this.segments}destroy(){for(const e of this.segments)for(const r in e.vaos)e.vaos[r].destroy()}static simpleSegment(e,r,s,l){return new Ee([{vertexOffset:e,primitiveOffset:r,vertexLength:s,primitiveLength:l,vaos:{},sortKey:0}])}}function je(i,e){return 256*(i=et(Math.floor(i),0,255))+et(Math.floor(e),0,255)}Ee.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,De("SegmentVector",Ee);const ke=Kt([{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"}]);var ut={exports:{}},qt={exports:{}};qt.exports=function(i,e){var r,s,l,u,d,f,g,v;for(s=i.length-(r=3&i.length),l=e,d=3432918353,f=461845907,v=0;v>>16)*d&65535)<<16)&4294967295)<<15|g>>>17))*f+(((g>>>16)*f&65535)<<16)&4294967295)<<13|l>>>19))+((5*(l>>>16)&65535)<<16)&4294967295))+((58964+(u>>>16)&65535)<<16);switch(g=0,r){case 3:g^=(255&i.charCodeAt(v+2))<<16;case 2:g^=(255&i.charCodeAt(v+1))<<8;case 1:l^=g=(65535&(g=(g=(65535&(g^=255&i.charCodeAt(v)))*d+(((g>>>16)*d&65535)<<16)&4294967295)<<15|g>>>17))*f+(((g>>>16)*f&65535)<<16)&4294967295}return l^=i.length,l=2246822507*(65535&(l^=l>>>16))+((2246822507*(l>>>16)&65535)<<16)&4294967295,l=3266489909*(65535&(l^=l>>>13))+((3266489909*(l>>>16)&65535)<<16)&4294967295,(l^=l>>>16)>>>0};var dt=qt.exports,Je={exports:{}};Je.exports=function(i,e){for(var r,s=i.length,l=e^s,u=0;s>=4;)r=1540483477*(65535&(r=255&i.charCodeAt(u)|(255&i.charCodeAt(++u))<<8|(255&i.charCodeAt(++u))<<16|(255&i.charCodeAt(++u))<<24))+((1540483477*(r>>>16)&65535)<<16),l=1540483477*(65535&l)+((1540483477*(l>>>16)&65535)<<16)^(r=1540483477*(65535&(r^=r>>>24))+((1540483477*(r>>>16)&65535)<<16)),s-=4,++u;switch(s){case 3:l^=(255&i.charCodeAt(u+2))<<16;case 2:l^=(255&i.charCodeAt(u+1))<<8;case 1:l=1540483477*(65535&(l^=255&i.charCodeAt(u)))+((1540483477*(l>>>16)&65535)<<16)}return l=1540483477*(65535&(l^=l>>>13))+((1540483477*(l>>>16)&65535)<<16),(l^=l>>>15)>>>0};var Ot=dt,wi=Je.exports;ut.exports=Ot,ut.exports.murmur3=Ot,ut.exports.murmur2=wi;var jt=ce(ut.exports);class si{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(e,r,s,l){this.ids.push(Fi(e)),this.positions.push(r,s,l)}getPositions(e){if(!this.indexed)throw new Error("Trying to get index, but feature positions are not indexed");const r=Fi(e);let s=0,l=this.ids.length-1;for(;s>1;this.ids[d]>=r?l=d:s=d+1}const u=[];for(;this.ids[s]===r;)u.push({index:this.positions[3*s],start:this.positions[3*s+1],end:this.positions[3*s+2]}),s++;return u}static serialize(e,r){const s=new Float64Array(e.ids),l=new Uint32Array(e.positions);return ir(s,l,0,s.length-1),r&&r.push(s.buffer,l.buffer),{ids:s,positions:l}}static deserialize(e){const r=new si;return r.ids=e.ids,r.positions=e.positions,r.indexed=!0,r}}function Fi(i){const e=+i;return!isNaN(e)&&e<=Number.MAX_SAFE_INTEGER?e:jt(String(i))}function ir(i,e,r,s){for(;r>1];let u=r-1,d=s+1;for(;;){do u++;while(i[u]l);if(u>=d)break;rr(i,u,d),rr(e,3*u,3*d),rr(e,3*u+1,3*d+1),rr(e,3*u+2,3*d+2)}d-r`u_${l}`),this.type=s}setUniform(e,r,s){e.set(s.constantOr(this.value))}getBinding(e,r,s){return this.type==="color"?new mi(e,r):new gr(e,r)}}class oi{constructor(e,r){this.uniformNames=r.map(s=>`u_${s}`),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(e,r){this.pixelRatioFrom=r.pixelRatio,this.pixelRatioTo=e.pixelRatio,this.patternFrom=r.tlbr,this.patternTo=e.tlbr}setUniform(e,r,s,l){const u=l==="u_pattern_to"?this.patternTo:l==="u_pattern_from"?this.patternFrom:l==="u_pixel_ratio_to"?this.pixelRatioTo:l==="u_pixel_ratio_from"?this.pixelRatioFrom:null;u&&e.set(u)}getBinding(e,r,s){return s.substr(0,9)==="u_pattern"?new ls(e,r):new gr(e,r)}}class gt{constructor(e,r,s,l){this.expression=e,this.type=s,this.maxValue=0,this.paintVertexAttributes=r.map(u=>({name:`a_${u}`,type:"Float32",components:s==="color"?2:1,offset:0})),this.paintVertexArray=new l}populatePaintArray(e,r,s,l,u){const d=this.paintVertexArray.length,f=this.expression.evaluate(new kt(0),r,{},l,[],u);this.paintVertexArray.resize(e),this._setPaintValue(d,e,f)}updatePaintArray(e,r,s,l){const u=this.expression.evaluate({zoom:0},s,l);this._setPaintValue(e,r,u)}_setPaintValue(e,r,s){if(this.type==="color"){const l=ft(s);for(let u=e;u`u_${f}_t`),this.type=s,this.useIntegerZoom=l,this.zoom=u,this.maxValue=0,this.paintVertexAttributes=r.map(f=>({name:`a_${f}`,type:"Float32",components:s==="color"?4:2,offset:0})),this.paintVertexArray=new d}populatePaintArray(e,r,s,l,u){const d=this.expression.evaluate(new kt(this.zoom),r,{},l,[],u),f=this.expression.evaluate(new kt(this.zoom+1),r,{},l,[],u),g=this.paintVertexArray.length;this.paintVertexArray.resize(e),this._setPaintValue(g,e,d,f)}updatePaintArray(e,r,s,l){const u=this.expression.evaluate({zoom:this.zoom},s,l),d=this.expression.evaluate({zoom:this.zoom+1},s,l);this._setPaintValue(e,r,u,d)}_setPaintValue(e,r,s,l){if(this.type==="color"){const u=ft(s),d=ft(l);for(let f=e;f`#define HAS_UNIFORM_${l}`))}return e}getBinderAttributes(){const e=[];for(const r in this.binders){const s=this.binders[r];if(s instanceof gt||s instanceof ti)for(let l=0;l!0){this.programConfigurations={};for(const l of e)this.programConfigurations[l.id]=new Qs(l,r,s);this.needsUpload=!1,this._featureMap=new si,this._bufferOffset=0}populatePaintArrays(e,r,s,l,u,d){for(const f in this.programConfigurations)this.programConfigurations[f].populatePaintArrays(e,r,l,u,d);r.id!==void 0&&this._featureMap.add(r.id,s,this._bufferOffset,e),this._bufferOffset=e,this.needsUpload=!0}updatePaintArrays(e,r,s,l){for(const u of s)this.needsUpload=this.programConfigurations[u.id].updatePaintArrays(e,this._featureMap,r,u,l)||this.needsUpload}get(e){return this.programConfigurations[e]}upload(e){if(this.needsUpload){for(const r in this.programConfigurations)this.programConfigurations[r].upload(e);this.needsUpload=!1}}destroy(){for(const e in this.programConfigurations)this.programConfigurations[e].destroy()}}function ac(i,e){return{"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-extrusion-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"]}[i]||[i.replace(`${e}-`,"").replace(/-/g,"_")]}function cl(i,e,r){const s={color:{source:sn,composite:n},number:{source:Ys,composite:sn}},l=function(u){return{"line-pattern":{source:$,composite:$},"fill-pattern":{source:$,composite:$},"fill-extrusion-pattern":{source:$,composite:$}}[u]}(i);return l&&l[r]||s[e][r]}De("ConstantBinder",ei),De("CrossFadedConstantBinder",oi),De("SourceExpressionBinder",gt),De("CrossFadedCompositeBinder",Oi),De("CompositeExpressionBinder",ti),De("ProgramConfiguration",Qs,{omit:["_buffers"]}),De("ProgramConfigurationSet",Mr);var At=8192;const Qa=Math.pow(2,14)-1,cs=-Qa-1;function Cr(i){const e=At/i.extent,r=i.loadGeometry();for(let s=0;sd.x+1||gd.y+1)&&Vt("Geometry exceeds allowed extent, reduce your vector tile buffer size")}}return r}function hs(i,e){return{type:i.type,id:i.id,properties:i.properties,geometry:e?Cr(i):[]}}function hl(i,e,r,s,l){i.emplaceBack(2*e+(s+1)/2,2*r+(l+1)/2)}class oc{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(r=>r.id),this.index=e.index,this.hasPattern=!1,this.layoutVertexArray=new B,this.indexArray=new ge,this.segments=new Ee,this.programConfigurations=new Mr(e.layers,e.zoom),this.stateDependentLayerIds=this.layers.filter(r=>r.isStateDependent()).map(r=>r.id)}populate(e,r,s){const l=this.layers[0],u=[];let d=null,f=!1;l.type==="circle"&&(d=l.layout.get("circle-sort-key"),f=!d.isConstant());for(const{feature:g,id:v,index:b,sourceLayerIndex:S}of e){const P=this.layers[0]._featureFilter.needGeometry,C=hs(g,P);if(!this.layers[0]._featureFilter.filter(new kt(this.zoom),C,s))continue;const z=f?d.evaluate(C,{},s):void 0,U={id:v,properties:g.properties,type:g.type,sourceLayerIndex:S,index:b,geometry:P?C.geometry:Cr(g),patterns:{},sortKey:z};u.push(U)}f&&u.sort((g,v)=>g.sortKey-v.sortKey);for(const g of u){const{geometry:v,index:b,sourceLayerIndex:S}=g,P=e[b].feature;this.addFeature(g,v,b,s),r.featureIndex.insert(P,v,b,S,this.index)}}update(e,r,s){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,r,this.stateDependentLayers,s)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Ke),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(e,r,s,l){for(const u of r)for(const d of u){const f=d.x,g=d.y;if(f<0||f>=At||g<0||g>=At)continue;const v=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,e.sortKey),b=v.vertexLength;hl(this.layoutVertexArray,f,g,-1,-1),hl(this.layoutVertexArray,f,g,1,-1),hl(this.layoutVertexArray,f,g,1,1),hl(this.layoutVertexArray,f,g,-1,1),this.indexArray.emplaceBack(b,b+1,b+2),this.indexArray.emplaceBack(b,b+3,b+2),v.vertexLength+=4,v.primitiveLength+=2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,s,{},l)}}function yh(i,e){for(let r=0;r1){if(lc(i,e))return!0;for(let s=0;s1?r:r.sub(e)._mult(l)._add(e))}function bh(i,e){let r,s,l,u=!1;for(let d=0;de.y!=l.y>e.y&&e.x<(l.x-s.x)*(e.y-s.y)/(l.y-s.y)+s.x&&(u=!u)}return u}function ea(i,e){let r=!1;for(let s=0,l=i.length-1;se.y!=d.y>e.y&&e.x<(d.x-u.x)*(e.y-u.y)/(d.y-u.y)+u.x&&(r=!r)}return r}function kd(i,e,r){const s=r[0],l=r[2];if(i.xl.x&&e.x>l.x||i.yl.y&&e.y>l.y)return!1;const u=yt(i,e,r[0]);return u!==yt(i,e,r[1])||u!==yt(i,e,r[2])||u!==yt(i,e,r[3])}function eo(i,e,r){const s=e.paint.get(i).value;return s.kind==="constant"?s.value:r.programConfigurations.get(e.id).getMaxValue(i)}function ul(i){return Math.sqrt(i[0]*i[0]+i[1]*i[1])}function dl(i,e,r,s,l){if(!e[0]&&!e[1])return i;const u=xe.convert(e)._mult(l);r==="viewport"&&u._rotate(-s);const d=[];for(let f=0;fi.width||l.height>i.height||r.x>i.width-l.width||r.y>i.height-l.height)throw new RangeError("out of range source coordinates for image copy");if(l.width>e.width||l.height>e.height||s.x>e.width-l.width||s.y>e.height-l.height)throw new RangeError("out of range destination coordinates for image copy");const d=i.data,f=e.data;if(d===f)throw new Error("srcData equals dstData, so image is already copied");for(let g=0;g{e[i.evaluationKey]=g;const v=i.expression.evaluate(e);l.data[d+f+0]=Math.floor(255*v.r/v.a),l.data[d+f+1]=Math.floor(255*v.g/v.a),l.data[d+f+2]=Math.floor(255*v.b/v.a),l.data[d+f+3]=Math.floor(255*v.a)};if(i.clips)for(let d=0,f=0;d80*r){s=u=i[0],l=d=i[1];for(var z=r;zu&&(u=f),g>d&&(d=g);v=(v=Math.max(u-s,d-l))!==0?32767/v:0}return ro(P,C,r,s,l,v,0),C}function kh(i,e,r,s,l){var u,d;if(l===gc(i,e,r,s)>0)for(u=e;u=e;u-=s)d=Lh(u,i[u],i[u+1],d);return d&&ml(d,d.next)&&(so(d),d=d.next),d}function us(i,e){if(!i)return i;e||(e=i);var r,s=i;do if(r=!1,s.steiner||!ml(s,s.next)&&Zt(s.prev,s,s.next)!==0)s=s.next;else{if(so(s),(s=e=s.prev)===s.next)break;r=!0}while(r||s!==e);return e}function ro(i,e,r,s,l,u,d){if(i){!d&&u&&function(b,S,P,C){var z=b;do z.z===0&&(z.z=fc(z.x,z.y,S,P,C)),z.prevZ=z.prev,z.nextZ=z.next,z=z.next;while(z!==b);z.prevZ.nextZ=null,z.prevZ=null,function(U){var F,K,Q,X,ne,ae,he,ze,Be=1;do{for(K=U,U=null,ne=null,ae=0;K;){for(ae++,Q=K,he=0,F=0;F0||ze>0&&Q;)he!==0&&(ze===0||!Q||K.z<=Q.z)?(X=K,K=K.nextZ,he--):(X=Q,Q=Q.nextZ,ze--),ne?ne.nextZ=X:U=X,X.prevZ=ne,ne=X;K=Q}ne.nextZ=null,Be*=2}while(ae>1)}(z)}(i,s,l,u);for(var f,g,v=i;i.prev!==i.next;)if(f=i.prev,g=i.next,u?Ud(i,s,l,u):Od(i))e.push(f.i/r|0),e.push(i.i/r|0),e.push(g.i/r|0),so(i),i=g.next,v=g.next;else if((i=g)===v){d?d===1?ro(i=Vd(us(i),e,r),e,r,s,l,u,2):d===2&&Nd(i,e,r,s,l,u):ro(us(i),e,r,s,l,u,1);break}}}function Od(i){var e=i.prev,r=i,s=i.next;if(Zt(e,r,s)>=0)return!1;for(var l=e.x,u=r.x,d=s.x,f=e.y,g=r.y,v=s.y,b=lu?l>d?l:d:u>d?u:d,C=f>g?f>v?f:v:g>v?g:v,z=s.next;z!==e;){if(z.x>=b&&z.x<=P&&z.y>=S&&z.y<=C&&ia(l,f,u,g,d,v,z.x,z.y)&&Zt(z.prev,z,z.next)>=0)return!1;z=z.next}return!0}function Ud(i,e,r,s){var l=i.prev,u=i,d=i.next;if(Zt(l,u,d)>=0)return!1;for(var f=l.x,g=u.x,v=d.x,b=l.y,S=u.y,P=d.y,C=fg?f>v?f:v:g>v?g:v,F=b>S?b>P?b:P:S>P?S:P,K=fc(C,z,e,r,s),Q=fc(U,F,e,r,s),X=i.prevZ,ne=i.nextZ;X&&X.z>=K&&ne&&ne.z<=Q;){if(X.x>=C&&X.x<=U&&X.y>=z&&X.y<=F&&X!==l&&X!==d&&ia(f,b,g,S,v,P,X.x,X.y)&&Zt(X.prev,X,X.next)>=0||(X=X.prevZ,ne.x>=C&&ne.x<=U&&ne.y>=z&&ne.y<=F&&ne!==l&&ne!==d&&ia(f,b,g,S,v,P,ne.x,ne.y)&&Zt(ne.prev,ne,ne.next)>=0))return!1;ne=ne.nextZ}for(;X&&X.z>=K;){if(X.x>=C&&X.x<=U&&X.y>=z&&X.y<=F&&X!==l&&X!==d&&ia(f,b,g,S,v,P,X.x,X.y)&&Zt(X.prev,X,X.next)>=0)return!1;X=X.prevZ}for(;ne&&ne.z<=Q;){if(ne.x>=C&&ne.x<=U&&ne.y>=z&&ne.y<=F&&ne!==l&&ne!==d&&ia(f,b,g,S,v,P,ne.x,ne.y)&&Zt(ne.prev,ne,ne.next)>=0)return!1;ne=ne.nextZ}return!0}function Vd(i,e,r){var s=i;do{var l=s.prev,u=s.next.next;!ml(l,u)&&zh(l,s,s.next,u)&&no(l,u)&&no(u,l)&&(e.push(l.i/r|0),e.push(s.i/r|0),e.push(u.i/r|0),so(s),so(s.next),s=i=u),s=s.next}while(s!==i);return us(s)}function Nd(i,e,r,s,l,u){var d=i;do{for(var f=d.next.next;f!==d.prev;){if(d.i!==f.i&&Gd(d,f)){var g=Dh(d,f);return d=us(d,d.next),g=us(g,g.next),ro(d,e,r,s,l,u,0),void ro(g,e,r,s,l,u,0)}f=f.next}d=d.next}while(d!==i)}function $d(i,e){return i.x-e.x}function qd(i,e){var r=function(l,u){var d,f=u,g=l.x,v=l.y,b=-1/0;do{if(v<=f.y&&v>=f.next.y&&f.next.y!==f.y){var S=f.x+(v-f.y)*(f.next.x-f.x)/(f.next.y-f.y);if(S<=g&&S>b&&(b=S,d=f.x=f.x&&f.x>=z&&g!==f.x&&ia(vd.x||f.x===d.x&&jd(d,f)))&&(d=f,F=P)),f=f.next;while(f!==C);return d}(i,e);if(!r)return e;var s=Dh(r,i);return us(s,s.next),us(r,r.next)}function jd(i,e){return Zt(i.prev,i,e.prev)<0&&Zt(e.next,i,i.next)<0}function fc(i,e,r,s,l){return(i=1431655765&((i=858993459&((i=252645135&((i=16711935&((i=(i-r)*l|0)|i<<8))|i<<4))|i<<2))|i<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-s)*l|0)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function Zd(i){var e=i,r=i;do(e.x=(i-d)*(u-f)&&(i-d)*(s-f)>=(r-d)*(e-f)&&(r-d)*(u-f)>=(l-d)*(s-f)}function Gd(i,e){return i.next.i!==e.i&&i.prev.i!==e.i&&!function(r,s){var l=r;do{if(l.i!==r.i&&l.next.i!==r.i&&l.i!==s.i&&l.next.i!==s.i&&zh(l,l.next,r,s))return!0;l=l.next}while(l!==r);return!1}(i,e)&&(no(i,e)&&no(e,i)&&function(r,s){var l=r,u=!1,d=(r.x+s.x)/2,f=(r.y+s.y)/2;do l.y>f!=l.next.y>f&&l.next.y!==l.y&&d<(l.next.x-l.x)*(f-l.y)/(l.next.y-l.y)+l.x&&(u=!u),l=l.next;while(l!==r);return u}(i,e)&&(Zt(i.prev,i,e.prev)||Zt(i,e.prev,e))||ml(i,e)&&Zt(i.prev,i,i.next)>0&&Zt(e.prev,e,e.next)>0)}function Zt(i,e,r){return(e.y-i.y)*(r.x-e.x)-(e.x-i.x)*(r.y-e.y)}function ml(i,e){return i.x===e.x&&i.y===e.y}function zh(i,e,r,s){var l=_l(Zt(i,e,r)),u=_l(Zt(i,e,s)),d=_l(Zt(r,s,i)),f=_l(Zt(r,s,e));return l!==u&&d!==f||!(l!==0||!gl(i,r,e))||!(u!==0||!gl(i,s,e))||!(d!==0||!gl(r,i,s))||!(f!==0||!gl(r,e,s))}function gl(i,e,r){return e.x<=Math.max(i.x,r.x)&&e.x>=Math.min(i.x,r.x)&&e.y<=Math.max(i.y,r.y)&&e.y>=Math.min(i.y,r.y)}function _l(i){return i>0?1:i<0?-1:0}function no(i,e){return Zt(i.prev,i,i.next)<0?Zt(i,e,i.next)>=0&&Zt(i,i.prev,e)>=0:Zt(i,e,i.prev)<0||Zt(i,i.next,e)<0}function Dh(i,e){var r=new mc(i.i,i.x,i.y),s=new mc(e.i,e.x,e.y),l=i.next,u=e.prev;return i.next=e,e.prev=i,r.next=l,l.prev=r,s.next=r,r.prev=s,u.next=s,s.prev=u,s}function Lh(i,e,r,s){var l=new mc(i,e,r);return s?(l.next=s.next,l.prev=s,s.next.prev=l,s.next=l):(l.prev=l,l.next=l),l}function so(i){i.next.prev=i.prev,i.prev.next=i.next,i.prevZ&&(i.prevZ.nextZ=i.nextZ),i.nextZ&&(i.nextZ.prevZ=i.prevZ)}function mc(i,e,r){this.i=i,this.x=e,this.y=r,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function gc(i,e,r,s){for(var l=0,u=e,d=r-s;u0&&r.holes.push(s+=i[l-1].length)}return r};var Bh=ce(pc.exports);function Xd(i,e,r,s,l){Rh(i,e,r||0,s||i.length-1,l||Wd)}function Rh(i,e,r,s,l){for(;s>r;){if(s-r>600){var u=s-r+1,d=e-r+1,f=Math.log(u),g=.5*Math.exp(2*f/3),v=.5*Math.sqrt(f*g*(u-g)/u)*(d-u/2<0?-1:1);Rh(i,e,Math.max(r,Math.floor(e-d*g/u+v)),Math.min(s,Math.floor(e+(u-d)*g/u+v)),l)}var b=i[e],S=r,P=s;for(ao(i,r,e),l(i[s],b)>0&&ao(i,r,s);S0;)P--}l(i[r],b)===0?ao(i,r,P):ao(i,++P,s),P<=e&&(r=P+1),e<=P&&(s=P-1)}}function ao(i,e,r){var s=i[e];i[e]=i[r],i[r]=s}function Wd(i,e){return ie?1:0}function _c(i,e){const r=i.length;if(r<=1)return[i];const s=[];let l,u;for(let d=0;d1)for(let d=0;dr.id),this.index=e.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new R,this.indexArray=new ge,this.indexArray2=new Ce,this.programConfigurations=new Mr(e.layers,e.zoom),this.segments=new Ee,this.segments2=new Ee,this.stateDependentLayerIds=this.layers.filter(r=>r.isStateDependent()).map(r=>r.id)}populate(e,r,s){this.hasPattern=yc("fill",this.layers,r);const l=this.layers[0].layout.get("fill-sort-key"),u=!l.isConstant(),d=[];for(const{feature:f,id:g,index:v,sourceLayerIndex:b}of e){const S=this.layers[0]._featureFilter.needGeometry,P=hs(f,S);if(!this.layers[0]._featureFilter.filter(new kt(this.zoom),P,s))continue;const C=u?l.evaluate(P,{},s,r.availableImages):void 0,z={id:g,properties:f.properties,type:f.type,sourceLayerIndex:b,index:v,geometry:S?P.geometry:Cr(f),patterns:{},sortKey:C};d.push(z)}u&&d.sort((f,g)=>f.sortKey-g.sortKey);for(const f of d){const{geometry:g,index:v,sourceLayerIndex:b}=f;if(this.hasPattern){const S=xc("fill",this.layers,f,this.zoom,r);this.patternFeatures.push(S)}else this.addFeature(f,g,v,s,{});r.featureIndex.insert(e[v].feature,g,v,b,this.index)}}update(e,r,s){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,r,this.stateDependentLayers,s)}addFeatures(e,r,s){for(const l of this.patternFeatures)this.addFeature(l,l.geometry,l.index,r,s)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Fd),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.indexBuffer2=e.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(e,r,s,l,u){for(const d of _c(r,500)){let f=0;for(const C of d)f+=C.length;const g=this.segments.prepareSegment(f,this.layoutVertexArray,this.indexArray),v=g.vertexLength,b=[],S=[];for(const C of d){if(C.length===0)continue;C!==d[0]&&S.push(b.length/2);const z=this.segments2.prepareSegment(C.length,this.layoutVertexArray,this.indexArray2),U=z.vertexLength;this.layoutVertexArray.emplaceBack(C[0].x,C[0].y),this.indexArray2.emplaceBack(U+C.length-1,U),b.push(C[0].x),b.push(C[0].y);for(let F=1;F>3}if(l--,s===1||s===2)u+=i.readSVarint(),d+=i.readSVarint(),s===1&&(e&&f.push(e),e=[]),e.push(new ep(u,d));else{if(s!==7)throw new Error("unknown command "+s);e&&e.push(e[0].clone())}}return e&&f.push(e),f},ra.prototype.bbox=function(){var i=this._pbf;i.pos=this._geometry;for(var e=i.readVarint()+i.pos,r=1,s=0,l=0,u=0,d=1/0,f=-1/0,g=1/0,v=-1/0;i.pos>3}if(s--,r===1||r===2)(l+=i.readSVarint())f&&(f=l),(u+=i.readSVarint())v&&(v=u);else if(r!==7)throw new Error("unknown command "+r)}return[d,g,f,v]},ra.prototype.toGeoJSON=function(i,e,r){var s,l,u=this.extent*Math.pow(2,r),d=this.extent*i,f=this.extent*e,g=this.loadGeometry(),v=ra.types[this.type];function b(C){for(var z=0;z>3;l=d===1?s.readString():d===2?s.readFloat():d===3?s.readDouble():d===4?s.readVarint64():d===5?s.readVarint():d===6?s.readSVarint():d===7?s.readBoolean():null}return l}(r))}Nh.prototype.feature=function(i){if(i<0||i>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[i];var e=this._pbf.readVarint()+this._pbf.pos;return new rp(this._pbf,e,this.extent,this._keys,this._values)};var sp=Vh;function ap(i,e,r){if(i===3){var s=new sp(r,r.readVarint()+r.pos);s.length&&(e[s.name]=s)}}Rn.VectorTile=function(i,e){this.layers=i.readFields(ap,{},e)},Rn.VectorTileFeature=Uh,Rn.VectorTileLayer=Vh;const op=Rn.VectorTileFeature.types,bc=Math.pow(2,13);function oo(i,e,r,s,l,u,d,f){i.emplaceBack(e,r,2*Math.floor(s*bc)+d,l*bc*2,u*bc*2,Math.round(f))}class wc{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(r=>r.id),this.index=e.index,this.hasPattern=!1,this.layoutVertexArray=new q,this.centroidVertexArray=new O,this.indexArray=new ge,this.programConfigurations=new Mr(e.layers,e.zoom),this.segments=new Ee,this.stateDependentLayerIds=this.layers.filter(r=>r.isStateDependent()).map(r=>r.id)}populate(e,r,s){this.features=[],this.hasPattern=yc("fill-extrusion",this.layers,r);for(const{feature:l,id:u,index:d,sourceLayerIndex:f}of e){const g=this.layers[0]._featureFilter.needGeometry,v=hs(l,g);if(!this.layers[0]._featureFilter.filter(new kt(this.zoom),v,s))continue;const b={id:u,sourceLayerIndex:f,index:d,geometry:g?v.geometry:Cr(l),properties:l.properties,type:l.type,patterns:{}};this.hasPattern?this.features.push(xc("fill-extrusion",this.layers,b,this.zoom,r)):this.addFeature(b,b.geometry,d,s,{}),r.featureIndex.insert(l,b.geometry,d,f,this.index,!0)}}addFeatures(e,r,s){for(const l of this.features){const{geometry:u}=l;this.addFeature(l,u,l.index,r,s)}}update(e,r,s){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,r,this.stateDependentLayers,s)}isEmpty(){return this.layoutVertexArray.length===0&&this.centroidVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Qd),this.centroidVertexBuffer=e.createVertexBuffer(this.centroidVertexArray,Jd.members,!0),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.centroidVertexBuffer.destroy())}addFeature(e,r,s,l,u){const d={x:0,y:0,vertexCount:0};for(const f of _c(r,500)){let g=0;for(const z of f)g+=z.length;let v=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray);for(const z of f){if(z.length===0||cp(z))continue;let U=0;for(let F=0;F=1){const Q=z[F-1];if(!lp(K,Q)){v.vertexLength+4>Ee.MAX_VERTEX_ARRAY_LENGTH&&(v=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));const X=K.sub(Q)._perp()._unit(),ne=Q.dist(K);U+ne>32768&&(U=0),oo(this.layoutVertexArray,K.x,K.y,X.x,X.y,0,0,U),oo(this.layoutVertexArray,K.x,K.y,X.x,X.y,0,1,U),d.x+=2*K.x,d.y+=2*K.y,d.vertexCount+=2,U+=ne,oo(this.layoutVertexArray,Q.x,Q.y,X.x,X.y,0,0,U),oo(this.layoutVertexArray,Q.x,Q.y,X.x,X.y,0,1,U),d.x+=2*Q.x,d.y+=2*Q.y,d.vertexCount+=2;const ae=v.vertexLength;this.indexArray.emplaceBack(ae,ae+2,ae+1),this.indexArray.emplaceBack(ae+1,ae+2,ae+3),v.vertexLength+=4,v.primitiveLength+=2}}}}if(v.vertexLength+g>Ee.MAX_VERTEX_ARRAY_LENGTH&&(v=this.segments.prepareSegment(g,this.layoutVertexArray,this.indexArray)),op[e.type]!=="Polygon")continue;const b=[],S=[],P=v.vertexLength;for(const z of f)if(z.length!==0){z!==f[0]&&S.push(b.length/2);for(let U=0;UAt)||i.y===e.y&&(i.y<0||i.y>At)}function cp(i){return i.every(e=>e.x<0)||i.every(e=>e.x>At)||i.every(e=>e.y<0)||i.every(e=>e.y>At)}let $h;De("FillExtrusionBucket",wc,{omit:["layers","features"]});var hp={get paint(){return $h=$h||new Ci({"fill-extrusion-opacity":new Fe(le["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new qe(le["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new Fe(le["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new Fe(le["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new as(le["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new qe(le["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new qe(le["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new Fe(le["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])})}};function lo(i,e){return i.x*e.x+i.y*e.y}function qh(i,e){if(i.length===1){let r=0;const s=e[r++];let l;for(;!l||s.equals(l);)if(l=e[r++],!l)return 1/0;for(;rr.id),this.index=e.index,this.hasPattern=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={},this.layers.forEach(r=>{this.gradients[r.id]={}}),this.layoutVertexArray=new H,this.layoutVertexArray2=new se,this.indexArray=new ge,this.programConfigurations=new Mr(e.layers,e.zoom),this.segments=new Ee,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(r=>r.isStateDependent()).map(r=>r.id)}populate(e,r,s){this.hasPattern=yc("line",this.layers,r);const l=this.layers[0].layout.get("line-sort-key"),u=!l.isConstant(),d=[];for(const{feature:f,id:g,index:v,sourceLayerIndex:b}of e){const S=this.layers[0]._featureFilter.needGeometry,P=hs(f,S);if(!this.layers[0]._featureFilter.filter(new kt(this.zoom),P,s))continue;const C=u?l.evaluate(P,{},s):void 0,z={id:g,properties:f.properties,type:f.type,sourceLayerIndex:b,index:v,geometry:S?P.geometry:Cr(f),patterns:{},sortKey:C};d.push(z)}u&&d.sort((f,g)=>f.sortKey-g.sortKey);for(const f of d){const{geometry:g,index:v,sourceLayerIndex:b}=f;if(this.hasPattern){const S=xc("line",this.layers,f,this.zoom,r);this.patternFeatures.push(S)}else this.addFeature(f,g,v,s,{});r.featureIndex.insert(e[v].feature,g,v,b,this.index)}}update(e,r,s){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,r,this.stateDependentLayers,s)}addFeatures(e,r,s){for(const l of this.patternFeatures)this.addFeature(l,l.geometry,l.index,r,s)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexArray2.length!==0&&(this.layoutVertexBuffer2=e.createVertexBuffer(this.layoutVertexArray2,fp)),this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,dp),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(e){if(e.properties&&Object.prototype.hasOwnProperty.call(e.properties,"mapbox_clip_start")&&Object.prototype.hasOwnProperty.call(e.properties,"mapbox_clip_end"))return{start:+e.properties.mapbox_clip_start,end:+e.properties.mapbox_clip_end}}addFeature(e,r,s,l,u){const d=this.layers[0].layout,f=d.get("line-join").evaluate(e,{}),g=d.get("line-cap"),v=d.get("line-miter-limit"),b=d.get("line-round-limit");this.lineClips=this.lineFeatureClips(e);for(const S of r)this.addLine(S,e,f,g,v,b);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,s,u,l)}addLine(e,r,s,l,u,d){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineClips){this.lineClipsArray.push(this.lineClips);for(let K=0;K=2&&e[g-1].equals(e[g-2]);)g--;let v=0;for(;v0;if(ze&&K>v){const Te=P.dist(C);if(Te>2*b){const Me=P.sub(P.sub(C)._mult(b/Te)._round());this.updateDistance(C,Me),this.addCurrentVertex(Me,U,0,0,S),C=Me}}const Pe=C&&z;let Se=Pe?s:f?"butt":l;if(Pe&&Se==="round"&&(aeu&&(Se="bevel"),Se==="bevel"&&(ae>2&&(Se="flipbevel"),ae100)Q=F.mult(-1);else{const Te=ae*U.add(F).mag()/U.sub(F).mag();Q._perp()._mult(Te*(Be?-1:1))}this.addCurrentVertex(P,Q,0,0,S),this.addCurrentVertex(P,Q.mult(-1),0,0,S)}else if(Se==="bevel"||Se==="fakeround"){const Te=-Math.sqrt(ae*ae-1),Me=Be?Te:0,Ie=Be?0:Te;if(C&&this.addCurrentVertex(P,U,Me,Ie,S),Se==="fakeround"){const ye=Math.round(180*he/Math.PI/20);for(let Ve=1;Ve2*b){const Me=P.add(z.sub(P)._mult(b/Te)._round());this.updateDistance(P,Me),this.addCurrentVertex(Me,F,0,0,S),P=Me}}}}addCurrentVertex(e,r,s,l,u,d=!1){const f=r.y*l-r.x,g=-r.y-r.x*l;this.addHalfVertex(e,r.x+r.y*s,r.y-r.x*s,d,!1,s,u),this.addHalfVertex(e,f,g,d,!0,-l,u),this.distance>jh/2&&this.totalDistance===0&&(this.distance=0,this.updateScaledDistance(),this.addCurrentVertex(e,r,s,l,u,d))}addHalfVertex({x:e,y:r},s,l,u,d,f,g){const v=.5*(this.lineClips?this.scaledDistance*(jh-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((e<<1)+(u?1:0),(r<<1)+(d?1:0),Math.round(63*s)+128,Math.round(63*l)+128,1+(f===0?0:f<0?-1:1)|(63&v)<<2,v>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);const b=g.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,b),g.primitiveLength++),d?this.e2=b:this.e1=b}updateScaledDistance(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance}updateDistance(e,r){this.distance+=e.dist(r),this.updateScaledDistance()}}let Zh,Gh;De("LineBucket",Tc,{omit:["layers","patternFeatures"]});var Xh={get paint(){return Gh=Gh||new Ci({"line-opacity":new qe(le.paint_line["line-opacity"]),"line-color":new qe(le.paint_line["line-color"]),"line-translate":new Fe(le.paint_line["line-translate"]),"line-translate-anchor":new Fe(le.paint_line["line-translate-anchor"]),"line-width":new qe(le.paint_line["line-width"]),"line-gap-width":new qe(le.paint_line["line-gap-width"]),"line-offset":new qe(le.paint_line["line-offset"]),"line-blur":new qe(le.paint_line["line-blur"]),"line-dasharray":new Xa(le.paint_line["line-dasharray"]),"line-pattern":new as(le.paint_line["line-pattern"]),"line-gradient":new Wa(le.paint_line["line-gradient"])})},get layout(){return Zh=Zh||new Ci({"line-cap":new Fe(le.layout_line["line-cap"]),"line-join":new qe(le.layout_line["line-join"]),"line-miter-limit":new Fe(le.layout_line["line-miter-limit"]),"line-round-limit":new Fe(le.layout_line["line-round-limit"]),"line-sort-key":new qe(le.layout_line["line-sort-key"])})}};class _p extends qe{possiblyEvaluate(e,r){return r=new kt(Math.floor(r.zoom),{now:r.now,fadeDuration:r.fadeDuration,zoomHistory:r.zoomHistory,transition:r.transition}),super.possiblyEvaluate(e,r)}evaluate(e,r,s,l){return r=pt({},r,{zoom:Math.floor(r.zoom)}),super.evaluate(e,r,s,l)}}let yl;function Wh(i,e){return e>0?e+2*i:i}const yp=Kt([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),xp=Kt([{name:"a_projected_pos",components:3,type:"Float32"}],4);Kt([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);const vp=Kt([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}]);Kt([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]);const Hh=Kt([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),bp=Kt([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function wp(i,e,r){return i.sections.forEach(s=>{s.text=function(l,u,d){const f=u.layout.get("text-transform").evaluate(d,{});return f==="uppercase"?l=l.toLocaleUpperCase():f==="lowercase"&&(l=l.toLocaleLowerCase()),Ji.applyArabicShaping&&(l=Ji.applyArabicShaping(l)),l}(s.text,e,r)}),i}Kt([{name:"triangle",components:3,type:"Uint16"}]),Kt([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),Kt([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",components:2,name:"textOffset"},{type:"Float32",name:"collisionCircleDiameter"}]),Kt([{type:"Float32",name:"offsetX"}]),Kt([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);const co={"!":"︕","#":"#",$:"$","%":"%","&":"&","(":"︵",")":"︶","*":"*","+":"+",",":"︐","-":"︲",".":"・","/":"/",":":"︓",";":"︔","<":"︿","=":"=",">":"﹀","?":"︖","@":"@","[":"﹇","\\":"\","]":"﹈","^":"^",_:"︳","`":"`","{":"︷","|":"―","}":"︸","~":"~","¢":"¢","£":"£","¥":"¥","¦":"¦","¬":"¬","¯":" ̄","–":"︲","—":"︱","‘":"﹃","’":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","〔":"︹","〕":"︺","〖":"︗","〗":"︘","!":"︕","(":"︵",")":"︶",",":"︐","-":"︲",".":"・",":":"︓",";":"︔","<":"︿",">":"﹀","?":"︖","[":"﹇","]":"﹈","_":"︳","{":"︷","|":"―","}":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂"};var li=24,Kh=vt,Yh=function(i,e,r,s,l){var u,d,f=8*l-s-1,g=(1<>1,b=-7,S=r?l-1:0,P=r?-1:1,C=i[e+S];for(S+=P,u=C&(1<<-b)-1,C>>=-b,b+=f;b>0;u=256*u+i[e+S],S+=P,b-=8);for(d=u&(1<<-b)-1,u>>=-b,b+=s;b>0;d=256*d+i[e+S],S+=P,b-=8);if(u===0)u=1-v;else{if(u===g)return d?NaN:1/0*(C?-1:1);d+=Math.pow(2,s),u-=v}return(C?-1:1)*d*Math.pow(2,u-s)},Jh=function(i,e,r,s,l,u){var d,f,g,v=8*u-l-1,b=(1<>1,P=l===23?Math.pow(2,-24)-Math.pow(2,-77):0,C=s?0:u-1,z=s?1:-1,U=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(f=isNaN(e)?1:0,d=b):(d=Math.floor(Math.log(e)/Math.LN2),e*(g=Math.pow(2,-d))<1&&(d--,g*=2),(e+=d+S>=1?P/g:P*Math.pow(2,1-S))*g>=2&&(d++,g/=2),d+S>=b?(f=0,d=b):d+S>=1?(f=(e*g-1)*Math.pow(2,l),d+=S):(f=e*Math.pow(2,S-1)*Math.pow(2,l),d=0));l>=8;i[r+C]=255&f,C+=z,f/=256,l-=8);for(d=d<0;i[r+C]=255&d,C+=z,d/=256,v-=8);i[r+C-z]|=128*U};function vt(i){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(i)?i:new Uint8Array(i||0),this.pos=0,this.type=0,this.length=this.buf.length}vt.Varint=0,vt.Fixed64=1,vt.Bytes=2,vt.Fixed32=5;var Ec=4294967296,Qh=1/Ec,eu=typeof TextDecoder>"u"?null:new TextDecoder("utf8");function ln(i){return i.type===vt.Bytes?i.readVarint()+i.pos:i.pos+1}function na(i,e,r){return r?4294967296*e+(i>>>0):4294967296*(e>>>0)+(i>>>0)}function tu(i,e,r){var s=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.floor(Math.log(e)/(7*Math.LN2));r.realloc(s);for(var l=r.pos-1;l>=i;l--)r.buf[l+s]=r.buf[l]}function Tp(i,e){for(var r=0;r>>8,i[r+2]=e>>>16,i[r+3]=e>>>24}function iu(i,e){return(i[e]|i[e+1]<<8|i[e+2]<<16)+(i[e+3]<<24)}vt.prototype={destroy:function(){this.buf=null},readFields:function(i,e,r){for(r=r||this.length;this.pos>3,u=this.pos;this.type=7&s,i(l,e,this),this.pos===u&&this.skip(s)}return e},readMessage:function(i,e){return this.readFields(i,e,this.readVarint()+this.pos)},readFixed32:function(){var i=xl(this.buf,this.pos);return this.pos+=4,i},readSFixed32:function(){var i=iu(this.buf,this.pos);return this.pos+=4,i},readFixed64:function(){var i=xl(this.buf,this.pos)+xl(this.buf,this.pos+4)*Ec;return this.pos+=8,i},readSFixed64:function(){var i=xl(this.buf,this.pos)+iu(this.buf,this.pos+4)*Ec;return this.pos+=8,i},readFloat:function(){var i=Yh(this.buf,this.pos,!0,23,4);return this.pos+=4,i},readDouble:function(){var i=Yh(this.buf,this.pos,!0,52,8);return this.pos+=8,i},readVarint:function(i){var e,r,s=this.buf;return e=127&(r=s[this.pos++]),r<128?e:(e|=(127&(r=s[this.pos++]))<<7,r<128?e:(e|=(127&(r=s[this.pos++]))<<14,r<128?e:(e|=(127&(r=s[this.pos++]))<<21,r<128?e:function(l,u,d){var f,g,v=d.buf;if(f=(112&(g=v[d.pos++]))>>4,g<128||(f|=(127&(g=v[d.pos++]))<<3,g<128)||(f|=(127&(g=v[d.pos++]))<<10,g<128)||(f|=(127&(g=v[d.pos++]))<<17,g<128)||(f|=(127&(g=v[d.pos++]))<<24,g<128)||(f|=(1&(g=v[d.pos++]))<<31,g<128))return na(l,f,u);throw new Error("Expected varint not more than 10 bytes")}(e|=(15&(r=s[this.pos]))<<28,i,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var i=this.readVarint();return i%2==1?(i+1)/-2:i/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var i=this.readVarint()+this.pos,e=this.pos;return this.pos=i,i-e>=12&&eu?function(r,s,l){return eu.decode(r.subarray(s,l))}(this.buf,e,i):function(r,s,l){for(var u="",d=s;d239?4:b>223?3:b>191?2:1;if(d+P>l)break;P===1?b<128&&(S=b):P===2?(192&(f=r[d+1]))==128&&(S=(31&b)<<6|63&f)<=127&&(S=null):P===3?(g=r[d+2],(192&(f=r[d+1]))==128&&(192&g)==128&&((S=(15&b)<<12|(63&f)<<6|63&g)<=2047||S>=55296&&S<=57343)&&(S=null)):P===4&&(g=r[d+2],v=r[d+3],(192&(f=r[d+1]))==128&&(192&g)==128&&(192&v)==128&&((S=(15&b)<<18|(63&f)<<12|(63&g)<<6|63&v)<=65535||S>=1114112)&&(S=null)),S===null?(S=65533,P=1):S>65535&&(S-=65536,u+=String.fromCharCode(S>>>10&1023|55296),S=56320|1023&S),u+=String.fromCharCode(S),d+=P}return u}(this.buf,e,i)},readBytes:function(){var i=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,i);return this.pos=i,e},readPackedVarint:function(i,e){if(this.type!==vt.Bytes)return i.push(this.readVarint(e));var r=ln(this);for(i=i||[];this.pos127;);else if(e===vt.Bytes)this.pos=this.readVarint()+this.pos;else if(e===vt.Fixed32)this.pos+=4;else{if(e!==vt.Fixed64)throw new Error("Unimplemented type: "+e);this.pos+=8}},writeTag:function(i,e){this.writeVarint(i<<3|e)},realloc:function(i){for(var e=this.length||16;e268435455||i<0?function(e,r){var s,l;if(e>=0?(s=e%4294967296|0,l=e/4294967296|0):(l=~(-e/4294967296),4294967295^(s=~(-e%4294967296))?s=s+1|0:(s=0,l=l+1|0)),e>=18446744073709552e3||e<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");r.realloc(10),function(u,d,f){f.buf[f.pos++]=127&u|128,u>>>=7,f.buf[f.pos++]=127&u|128,u>>>=7,f.buf[f.pos++]=127&u|128,u>>>=7,f.buf[f.pos++]=127&u|128,f.buf[f.pos]=127&(u>>>=7)}(s,0,r),function(u,d){var f=(7&u)<<4;d.buf[d.pos++]|=f|((u>>>=3)?128:0),u&&(d.buf[d.pos++]=127&u|((u>>>=7)?128:0),u&&(d.buf[d.pos++]=127&u|((u>>>=7)?128:0),u&&(d.buf[d.pos++]=127&u|((u>>>=7)?128:0),u&&(d.buf[d.pos++]=127&u|((u>>>=7)?128:0),u&&(d.buf[d.pos++]=127&u)))))}(l,r)}(i,this):(this.realloc(4),this.buf[this.pos++]=127&i|(i>127?128:0),i<=127||(this.buf[this.pos++]=127&(i>>>=7)|(i>127?128:0),i<=127||(this.buf[this.pos++]=127&(i>>>=7)|(i>127?128:0),i<=127||(this.buf[this.pos++]=i>>>7&127))))},writeSVarint:function(i){this.writeVarint(i<0?2*-i-1:2*i)},writeBoolean:function(i){this.writeVarint(!!i)},writeString:function(i){i=String(i),this.realloc(4*i.length),this.pos++;var e=this.pos;this.pos=function(s,l,u){for(var d,f,g=0;g55295&&d<57344){if(!f){d>56319||g+1===l.length?(s[u++]=239,s[u++]=191,s[u++]=189):f=d;continue}if(d<56320){s[u++]=239,s[u++]=191,s[u++]=189,f=d;continue}d=f-55296<<10|d-56320|65536,f=null}else f&&(s[u++]=239,s[u++]=191,s[u++]=189,f=null);d<128?s[u++]=d:(d<2048?s[u++]=d>>6|192:(d<65536?s[u++]=d>>12|224:(s[u++]=d>>18|240,s[u++]=d>>12&63|128),s[u++]=d>>6&63|128),s[u++]=63&d|128)}return u}(this.buf,i,this.pos);var r=this.pos-e;r>=128&&tu(e,r,this),this.pos=e-1,this.writeVarint(r),this.pos+=r},writeFloat:function(i){this.realloc(4),Jh(this.buf,i,this.pos,!0,23,4),this.pos+=4},writeDouble:function(i){this.realloc(8),Jh(this.buf,i,this.pos,!0,52,8),this.pos+=8},writeBytes:function(i){var e=i.length;this.writeVarint(e),this.realloc(e);for(var r=0;r=128&&tu(r,s,this),this.pos=r-1,this.writeVarint(s),this.pos+=s},writeMessage:function(i,e,r){this.writeTag(i,vt.Bytes),this.writeRawMessage(e,r)},writePackedVarint:function(i,e){e.length&&this.writeMessage(i,Tp,e)},writePackedSVarint:function(i,e){e.length&&this.writeMessage(i,Ep,e)},writePackedBoolean:function(i,e){e.length&&this.writeMessage(i,Ap,e)},writePackedFloat:function(i,e){e.length&&this.writeMessage(i,Sp,e)},writePackedDouble:function(i,e){e.length&&this.writeMessage(i,Ip,e)},writePackedFixed32:function(i,e){e.length&&this.writeMessage(i,Pp,e)},writePackedSFixed32:function(i,e){e.length&&this.writeMessage(i,Mp,e)},writePackedFixed64:function(i,e){e.length&&this.writeMessage(i,Cp,e)},writePackedSFixed64:function(i,e){e.length&&this.writeMessage(i,kp,e)},writeBytesField:function(i,e){this.writeTag(i,vt.Bytes),this.writeBytes(e)},writeFixed32Field:function(i,e){this.writeTag(i,vt.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(i,e){this.writeTag(i,vt.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(i,e){this.writeTag(i,vt.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(i,e){this.writeTag(i,vt.Fixed64),this.writeSFixed64(e)},writeVarintField:function(i,e){this.writeTag(i,vt.Varint),this.writeVarint(e)},writeSVarintField:function(i,e){this.writeTag(i,vt.Varint),this.writeSVarint(e)},writeStringField:function(i,e){this.writeTag(i,vt.Bytes),this.writeString(e)},writeFloatField:function(i,e){this.writeTag(i,vt.Fixed32),this.writeFloat(e)},writeDoubleField:function(i,e){this.writeTag(i,vt.Fixed64),this.writeDouble(e)},writeBooleanField:function(i,e){this.writeVarintField(i,!!e)}};var Sc=ce(Kh);const Ic=3;function zp(i,e,r){i===1&&r.readMessage(Dp,e)}function Dp(i,e,r){if(i===3){const{id:s,bitmap:l,width:u,height:d,left:f,top:g,advance:v}=r.readMessage(Lp,{});e.push({id:s,bitmap:new io({width:u+2*Ic,height:d+2*Ic},l),metrics:{width:u,height:d,left:f,top:g,advance:v}})}}function Lp(i,e,r){i===1?e.id=r.readVarint():i===2?e.bitmap=r.readBytes():i===3?e.width=r.readVarint():i===4?e.height=r.readVarint():i===5?e.left=r.readSVarint():i===6?e.top=r.readSVarint():i===7&&(e.advance=r.readVarint())}const ru=Ic;function nu(i){let e=0,r=0;for(const d of i)e+=d.w*d.h,r=Math.max(r,d.w);i.sort((d,f)=>f.h-d.h);const s=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(e/.95)),r),h:1/0}];let l=0,u=0;for(const d of i)for(let f=s.length-1;f>=0;f--){const g=s[f];if(!(d.w>g.w||d.h>g.h)){if(d.x=g.x,d.y=g.y,u=Math.max(u,d.y+d.h),l=Math.max(l,d.x+d.w),d.w===g.w&&d.h===g.h){const v=s.pop();f=0&&s>=e&&bl[this.text.charCodeAt(s)];s--)r--;this.text=this.text.substring(e,r),this.sectionIndex=this.sectionIndex.slice(e,r)}substring(e,r){const s=new aa;return s.text=this.text.substring(e,r),s.sectionIndex=this.sectionIndex.slice(e,r),s.sections=this.sections,s}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((e,r)=>Math.max(e,this.sections[r].scale),0)}addTextSection(e,r){this.text+=e.text,this.sections.push(uo.forText(e.scale,e.fontStack||r));const s=this.sections.length-1;for(let l=0;l=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}}function vl(i,e,r,s,l,u,d,f,g,v,b,S,P,C,z,U){const F=aa.fromFeature(i,l);let K;S===h.WritingMode.vertical&&F.verticalizePunctuation();const{processBidirectionalText:Q,processStyledBidirectionalText:X}=Ji;if(Q&&F.sections.length===1){K=[];const he=Q(F.toString(),Pc(F,v,u,e,s,C,z));for(const ze of he){const Be=new aa;Be.text=ze,Be.sections=F.sections;for(let Pe=0;Pe0&&hn>$i&&($i=hn)}else{const or=Be[rt.fontStack],qi=or&&or[vi];if(qi&&qi.rect)kr=qi.rect,_r=qi.metrics;else{const hn=ze[rt.fontStack],_o=hn&&hn[vi];if(!_o)continue;_r=_o.metrics}Ii=(yi-rt.scale)*li}yr?(he.verticalizable=!0,Ni.push({glyph:vi,imageName:zr,x:Pt,y:zt+Ii,vertical:yr,scale:rt.scale,fontStack:rt.fontStack,sectionIndex:Qi,metrics:_r,rect:kr}),Pt+=cn*rt.scale+Ve):(Ni.push({glyph:vi,imageName:zr,x:Pt,y:zt+Ii,vertical:yr,scale:rt.scale,fontStack:rt.fontStack,sectionIndex:Qi,metrics:_r,rect:kr}),Pt+=_r.advance*rt.scale+Ve)}Ni.length!==0&&(ii=Math.max(Pt-Ve,ii),Fp(Ni,0,Ni.length-1,gi,$i)),Pt=0;const Ut=Te*yi+$i;zi.lineOffset=Math.max($i,Si),zt+=Ut,ar=Math.max(Ut,ar),++Yt}var ci;const _i=zt-ho,{horizontalAlign:Ei,verticalAlign:Vi}=Mc(Me);(function(Jt,yi,Si,zi,Ni,$i,Ut,xi,rt){const Qi=(yi-Si)*Ni;let vi=0;vi=$i!==Ut?-xi*zi-ho:(-zi*rt+.5)*Ut;for(const Ii of Jt)for(const _r of Ii.positionedGlyphs)_r.x+=Qi,_r.y+=vi})(he.positionedLines,gi,Ei,Vi,ii,ar,Te,_i,Se.length),he.top+=-Vi*_i,he.bottom=he.top+_i,he.left+=-Ei*ii,he.right=he.left+ii}(ae,e,r,s,K,d,f,g,S,v,P,U),!function(he){for(const ze of he)if(ze.positionedGlyphs.length!==0)return!1;return!0}(ne)&&ae}const bl={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},Bp={10:!0,32:!0,38:!0,40:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0};function au(i,e,r,s,l,u){if(e.imageName){const d=s[e.imageName];return d?d.displaySize[0]*e.scale*li/u+l:0}{const d=r[e.fontStack],f=d&&d[i];return f?f.metrics.advance*e.scale+l:0}}function ou(i,e,r,s){const l=Math.pow(i-e,2);return s?i=0;let b=0;for(let P=0;Pd.id),this.index=e.index,this.pixelRatio=e.pixelRatio,this.sourceLayerIndex=e.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=hc([]),this.placementViewportMatrix=hc([]);const r=this.layers[0]._unevaluatedLayout._values;this.textSizeData=uu(this.zoom,r["text-size"]),this.iconSizeData=uu(this.zoom,r["icon-size"]);const s=this.layers[0].layout,l=s.get("symbol-sort-key"),u=s.get("symbol-z-order");this.canOverlap=Cc(s,"text-overlap","text-allow-overlap")!=="never"||Cc(s,"icon-overlap","icon-allow-overlap")!=="never"||s.get("text-ignore-placement")||s.get("icon-ignore-placement"),this.sortFeaturesByKey=u!=="viewport-y"&&!l.isConstant(),this.sortFeaturesByY=(u==="viewport-y"||u==="auto"&&!this.sortFeaturesByKey)&&this.canOverlap,s.get("symbol-placement")==="point"&&(this.writingModes=s.get("text-writing-mode").map(d=>h.WritingMode[d])),this.stateDependentLayerIds=this.layers.filter(d=>d.isStateDependent()).map(d=>d.id),this.sourceID=e.sourceID}createArrays(){this.text=new zc(new Mr(this.layers,this.zoom,e=>/^text/.test(e))),this.icon=new zc(new Mr(this.layers,this.zoom,e=>/^icon/.test(e))),this.glyphOffsetArray=new x,this.lineVertexArray=new T,this.symbolInstances=new _}calculateGlyphDependencies(e,r,s,l,u){for(let d=0;d0)&&(d.value.kind!=="constant"||d.value.value.length>0),b=g.value.kind!=="constant"||!!g.value.value||Object.keys(g.parameters).length>0,S=u.get("symbol-sort-key");if(this.features=[],!v&&!b)return;const P=r.iconDependencies,C=r.glyphDependencies,z=r.availableImages,U=new kt(this.zoom);for(const{feature:F,id:K,index:Q,sourceLayerIndex:X}of e){const ne=l._featureFilter.needGeometry,ae=hs(F,ne);if(!l._featureFilter.filter(U,ae,s))continue;let he,ze;if(ne||(ae.geometry=Cr(F)),v){const Pe=l.getValueAndResolveTokens("text-field",ae,s,z),Se=di.factory(Pe);Np(Se)&&(this.hasRTLText=!0),(!this.hasRTLText||ja()==="unavailable"||this.hasRTLText&&Ji.isParsed())&&(he=wp(Se,l,ae))}if(b){const Pe=l.getValueAndResolveTokens("icon-image",ae,s,z);ze=Pe instanceof Wi?Pe:Wi.fromString(Pe)}if(!he&&!ze)continue;const Be=this.sortFeaturesByKey?S.evaluate(ae,{},s):void 0;if(this.features.push({id:K,text:he,icon:ze,index:Q,sourceLayerIndex:X,geometry:ae.geometry,properties:F.properties,type:Up[F.type],sortKey:Be}),ze&&(P[ze.name]=!0),he){const Pe=d.evaluate(ae,{},s).join(","),Se=u.get("text-rotation-alignment")!=="viewport"&&u.get("symbol-placement")!=="point";this.allowVerticalPlacement=this.writingModes&&this.writingModes.indexOf(h.WritingMode.vertical)>=0;for(const Te of he.sections)if(Te.image)P[Te.image.name]=!0;else{const Me=Fs(he.toString()),Ie=Te.fontStack||Pe,ye=C[Ie]=C[Ie]||{};this.calculateGlyphDependencies(Te.text,ye,Se,this.allowVerticalPlacement,Me)}}}u.get("symbol-placement")==="line"&&(this.features=function(F){const K={},Q={},X=[];let ne=0;function ae(Pe){X.push(F[Pe]),ne++}function he(Pe,Se,Te){const Me=Q[Pe];return delete Q[Pe],Q[Se]=Me,X[Me].geometry[0].pop(),X[Me].geometry[0]=X[Me].geometry[0].concat(Te[0]),Me}function ze(Pe,Se,Te){const Me=K[Se];return delete K[Se],K[Pe]=Me,X[Me].geometry[0].shift(),X[Me].geometry[0]=Te[0].concat(X[Me].geometry[0]),Me}function Be(Pe,Se,Te){const Me=Te?Se[0][Se[0].length-1]:Se[0][0];return`${Pe}:${Me.x}:${Me.y}`}for(let Pe=0;PePe.geometry)}(this.features)),this.sortFeaturesByKey&&this.features.sort((F,K)=>F.sortKey-K.sortKey)}update(e,r,s){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(e,r,this.layers,s),this.icon.programConfigurations.updatePaintArrays(e,r,this.layers,s))}isEmpty(){return this.symbolInstances.length===0&&!this.hasRTLText}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(e){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(e),this.iconCollisionBox.upload(e)),this.text.upload(e,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(e,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(e,r){const s=this.lineVertexArray.length;if(e.segment!==void 0){let l=e.dist(r[e.segment+1]),u=e.dist(r[e.segment]);const d={};for(let f=e.segment+1;f=0;f--)d[f]={x:r[f].x,y:r[f].y,tileUnitDistanceFromAnchor:u},f>0&&(u+=r[f-1].dist(r[f]));for(let f=0;f0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(e,r){const s=e.placedSymbolArray.get(r),l=s.vertexStartIndex+4*s.numGlyphs;for(let u=s.vertexStartIndex;ul[f]-l[g]||u[g]-u[f]),d}addToSortKeyRanges(e,r){const s=this.sortKeyRanges[this.sortKeyRanges.length-1];s&&s.sortKey===r?s.symbolInstanceEnd=e+1:this.sortKeyRanges.push({sortKey:r,symbolInstanceStart:e,symbolInstanceEnd:e+1})}sortFeatures(e){if(this.sortFeaturesByY&&this.sortedAngle!==e&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(e),this.sortedAngle=e,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(const r of this.symbolInstanceIndexes){const s=this.symbolInstances.get(r);this.featureSortOrder.push(s.featureIndex),[s.rightJustifiedTextSymbolIndex,s.centerJustifiedTextSymbolIndex,s.leftJustifiedTextSymbolIndex].forEach((l,u,d)=>{l>=0&&d.indexOf(l)===u&&this.addIndicesForPlacedSymbol(this.text,l)}),s.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,s.verticalPlacedTextSymbolIndex),s.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,s.placedIconSymbolIndex),s.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,s.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}}let du,pu;De("SymbolBucket",oa,{omit:["layers","collisionBoxArray","features","compareText"]}),oa.MAX_GLYPHS=65535,oa.addDynamicAttributes=kc;var Lc={get paint(){return pu=pu||new Ci({"icon-opacity":new qe(le.paint_symbol["icon-opacity"]),"icon-color":new qe(le.paint_symbol["icon-color"]),"icon-halo-color":new qe(le.paint_symbol["icon-halo-color"]),"icon-halo-width":new qe(le.paint_symbol["icon-halo-width"]),"icon-halo-blur":new qe(le.paint_symbol["icon-halo-blur"]),"icon-translate":new Fe(le.paint_symbol["icon-translate"]),"icon-translate-anchor":new Fe(le.paint_symbol["icon-translate-anchor"]),"text-opacity":new qe(le.paint_symbol["text-opacity"]),"text-color":new qe(le.paint_symbol["text-color"],{runtimeType:Pi,getOverride:i=>i.textColor,hasOverride:i=>!!i.textColor}),"text-halo-color":new qe(le.paint_symbol["text-halo-color"]),"text-halo-width":new qe(le.paint_symbol["text-halo-width"]),"text-halo-blur":new qe(le.paint_symbol["text-halo-blur"]),"text-translate":new Fe(le.paint_symbol["text-translate"]),"text-translate-anchor":new Fe(le.paint_symbol["text-translate-anchor"])})},get layout(){return du=du||new Ci({"symbol-placement":new Fe(le.layout_symbol["symbol-placement"]),"symbol-spacing":new Fe(le.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Fe(le.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new qe(le.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Fe(le.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Fe(le.layout_symbol["icon-allow-overlap"]),"icon-overlap":new Fe(le.layout_symbol["icon-overlap"]),"icon-ignore-placement":new Fe(le.layout_symbol["icon-ignore-placement"]),"icon-optional":new Fe(le.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Fe(le.layout_symbol["icon-rotation-alignment"]),"icon-size":new qe(le.layout_symbol["icon-size"]),"icon-text-fit":new Fe(le.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Fe(le.layout_symbol["icon-text-fit-padding"]),"icon-image":new qe(le.layout_symbol["icon-image"]),"icon-rotate":new qe(le.layout_symbol["icon-rotate"]),"icon-padding":new qe(le.layout_symbol["icon-padding"]),"icon-keep-upright":new Fe(le.layout_symbol["icon-keep-upright"]),"icon-offset":new qe(le.layout_symbol["icon-offset"]),"icon-anchor":new qe(le.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Fe(le.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Fe(le.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Fe(le.layout_symbol["text-rotation-alignment"]),"text-field":new qe(le.layout_symbol["text-field"]),"text-font":new qe(le.layout_symbol["text-font"]),"text-size":new qe(le.layout_symbol["text-size"]),"text-max-width":new qe(le.layout_symbol["text-max-width"]),"text-line-height":new Fe(le.layout_symbol["text-line-height"]),"text-letter-spacing":new qe(le.layout_symbol["text-letter-spacing"]),"text-justify":new qe(le.layout_symbol["text-justify"]),"text-radial-offset":new qe(le.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Fe(le.layout_symbol["text-variable-anchor"]),"text-anchor":new qe(le.layout_symbol["text-anchor"]),"text-max-angle":new Fe(le.layout_symbol["text-max-angle"]),"text-writing-mode":new Fe(le.layout_symbol["text-writing-mode"]),"text-rotate":new qe(le.layout_symbol["text-rotate"]),"text-padding":new Fe(le.layout_symbol["text-padding"]),"text-keep-upright":new Fe(le.layout_symbol["text-keep-upright"]),"text-transform":new qe(le.layout_symbol["text-transform"]),"text-offset":new qe(le.layout_symbol["text-offset"]),"text-allow-overlap":new Fe(le.layout_symbol["text-allow-overlap"]),"text-overlap":new Fe(le.layout_symbol["text-overlap"]),"text-ignore-placement":new Fe(le.layout_symbol["text-ignore-placement"]),"text-optional":new Fe(le.layout_symbol["text-optional"])})}};class fu{constructor(e){if(e.property.overrides===void 0)throw new Error("overrides must be provided to instantiate FormatSectionOverride class");this.type=e.property.overrides?e.property.overrides.runtimeType:Or,this.defaultValue=e}evaluate(e){if(e.formattedSection){const r=this.defaultValue.property.overrides;if(r&&r.hasOverride(e.formattedSection))return r.getOverride(e.formattedSection)}return e.feature&&e.featureState?this.defaultValue.evaluate(e.feature,e.featureState):this.defaultValue.property.specification.default}eachChild(e){this.defaultValue.isConstant()||e(this.defaultValue.value._styleExpression.expression)}outputDefined(){return!1}serialize(){return null}}De("FormatSectionOverride",fu,{omit:["defaultValue"]});class Tl extends fr{constructor(e){super(e,Lc)}recalculate(e,r){if(super.recalculate(e,r),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout._values["icon-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout._values["text-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")==="map"?"map":"viewport"),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){const s=this.layout.get("text-writing-mode");if(s){const l=[];for(const u of s)l.indexOf(u)<0&&l.push(u);this.layout._values["text-writing-mode"]=l}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()}getValueAndResolveTokens(e,r,s,l){const u=this.layout.get(e).evaluate(r,{},s,l),d=this._unevaluatedLayout._values[e];return d.isDataDriven()||Ms(d.value)||!u?u:function(f,g){return g.replace(/{([^{}]+)}/g,(v,b)=>b in f?String(f[b]):"")}(r.properties,u)}createBucket(e){return new oa(e)}queryRadius(){return 0}queryIntersectsFeature(){throw new Error("Should take a different path in FeatureIndex")}_setPaintOverrides(){for(const e of Lc.paint.overridableProperties){if(!Tl.hasPaintOverride(this.layout,e))continue;const r=this.paint.get(e),s=new fu(r),l=new za(s,r.property.specification);let u=null;u=r.value.kind==="constant"||r.value.kind==="source"?new Da("source",l):new st("composite",l,r.value.zoomStops),this.paint._values[e]=new pr(r.property,u,r.parameters)}}_handleOverridablePaintPropertyUpdate(e,r,s){return!(!this.layout||r.isDataDriven()||s.isDataDriven())&&Tl.hasPaintOverride(this.layout,e)}static hasPaintOverride(e,r){const s=e.get("text-field"),l=Lc.paint.properties[r];let u=!1;const d=f=>{for(const g of f)if(l.overrides&&l.overrides.hasOverride(g))return void(u=!0)};if(s.value.kind==="constant"&&s.value.value instanceof di)d(s.value.value.sections);else if(s.value.kind==="source"){const f=v=>{u||(v instanceof Vr&&Wt(v.value)===Er?d(v.value.sections):v instanceof As?d(v.sections):v.eachChild(f))},g=s.value;g._styleExpression&&f(g._styleExpression.expression)}return u}}let mu;var $p={get paint(){return mu=mu||new Ci({"background-color":new Fe(le.paint_background["background-color"]),"background-pattern":new Xa(le.paint_background["background-pattern"]),"background-opacity":new Fe(le.paint_background["background-opacity"])})}};let gu;var qp={get paint(){return gu=gu||new Ci({"raster-opacity":new Fe(le.paint_raster["raster-opacity"]),"raster-hue-rotate":new Fe(le.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new Fe(le.paint_raster["raster-brightness-min"]),"raster-brightness-max":new Fe(le.paint_raster["raster-brightness-max"]),"raster-saturation":new Fe(le.paint_raster["raster-saturation"]),"raster-contrast":new Fe(le.paint_raster["raster-contrast"]),"raster-resampling":new Fe(le.paint_raster["raster-resampling"]),"raster-fade-duration":new Fe(le.paint_raster["raster-fade-duration"])})}};class jp extends fr{constructor(e){super(e,{}),this.onAdd=r=>{this.implementation.onAdd&&this.implementation.onAdd(r,r.painter.context.gl)},this.onRemove=r=>{this.implementation.onRemove&&this.implementation.onRemove(r,r.painter.context.gl)},this.implementation=e}is3D(){return this.implementation.renderingMode==="3d"}hasOffscreenPass(){return this.implementation.prerender!==void 0}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){throw new Error("Custom layers cannot be serialized")}}const Zp={circle:class extends fr{constructor(i){super(i,zd)}createBucket(i){return new oc(i)}queryRadius(i){const e=i;return eo("circle-radius",this,e)+eo("circle-stroke-width",this,e)+ul(this.paint.get("circle-translate"))}queryIntersectsFeature(i,e,r,s,l,u,d,f){const g=dl(i,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),u.angle,d),v=this.paint.get("circle-radius").evaluate(e,r)+this.paint.get("circle-stroke-width").evaluate(e,r),b=this.paint.get("circle-pitch-alignment")==="map",S=b?g:function(C,z){return C.map(U=>Sh(U,z))}(g,f),P=b?v*d:v;for(const C of s)for(const z of C){const U=b?z:Sh(z,f);let F=P;const K=pl([],[z.x,z.y,0,1],f);if(this.paint.get("circle-pitch-scale")==="viewport"&&this.paint.get("circle-pitch-alignment")==="map"?F*=K[3]/u.cameraToCenterDistance:this.paint.get("circle-pitch-scale")==="map"&&this.paint.get("circle-pitch-alignment")==="viewport"&&(F*=u.cameraToCenterDistance/K[3]),Pd(S,U,F))return!0}return!1}},heatmap:class extends fr{createBucket(i){return new Ih(i)}constructor(i){super(i,Ld),this._updateColorRamp()}_handleSpecialPaintPropertyUpdate(i){i==="heatmap-color"&&this._updateColorRamp()}_updateColorRamp(){this.colorRamp=Mh({expression:this._transitionablePaint._values["heatmap-color"].value.expression,evaluationKey:"heatmapDensity",image:this.colorRamp}),this.colorRampTexture=null}resize(){this.heatmapFbo&&(this.heatmapFbo.destroy(),this.heatmapFbo=null)}queryRadius(){return 0}queryIntersectsFeature(){return!1}hasOffscreenPass(){return this.paint.get("heatmap-opacity")!==0&&this.visibility!=="none"}},hillshade:class extends fr{constructor(i){super(i,Bd)}hasOffscreenPass(){return this.paint.get("hillshade-exaggeration")!==0&&this.visibility!=="none"}},fill:class extends fr{constructor(i){super(i,Kd)}recalculate(i,e){super.recalculate(i,e);const r=this.paint._values["fill-outline-color"];r.value.kind==="constant"&&r.value.value===void 0&&(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"])}createBucket(i){return new vc(i)}queryRadius(){return ul(this.paint.get("fill-translate"))}queryIntersectsFeature(i,e,r,s,l,u,d){return xh(dl(i,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),u.angle,d),s)}isTileClipped(){return!0}},"fill-extrusion":class extends fr{constructor(i){super(i,hp)}createBucket(i){return new wc(i)}queryRadius(){return ul(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}queryIntersectsFeature(i,e,r,s,l,u,d,f){const g=dl(i,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),u.angle,d),v=this.paint.get("fill-extrusion-height").evaluate(e,r),b=this.paint.get("fill-extrusion-base").evaluate(e,r),S=function(C,z,U,F){const K=[];for(const Q of C){const X=[Q.x,Q.y,0,1];pl(X,X,z),K.push(new xe(X[0]/X[3],X[1]/X[3]))}return K}(g,f),P=function(C,z,U,F){const K=[],Q=[],X=F[8]*z,ne=F[9]*z,ae=F[10]*z,he=F[11]*z,ze=F[8]*U,Be=F[9]*U,Pe=F[10]*U,Se=F[11]*U;for(const Te of C){const Me=[],Ie=[];for(const ye of Te){const Ve=ye.x,Re=ye.y,it=F[0]*Ve+F[4]*Re+F[12],Pt=F[1]*Ve+F[5]*Re+F[13],zt=F[2]*Ve+F[6]*Re+F[14],ii=F[3]*Ve+F[7]*Re+F[15],ar=zt+ae,gi=ii+he,Yt=it+ze,ci=Pt+Be,_i=zt+Pe,Ei=ii+Se,Vi=new xe((it+X)/gi,(Pt+ne)/gi);Vi.z=ar/gi,Me.push(Vi);const Jt=new xe(Yt/Ei,ci/Ei);Jt.z=_i/Ei,Ie.push(Jt)}K.push(Me),Q.push(Ie)}return[K,Q]}(s,b,v,f);return function(C,z,U){let F=1/0;xh(U,z)&&(F=qh(U,z[0]));for(let K=0;K=3){for(let U=0;U{this._triggered=!1,this._callback()})}trigger(){this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout(()=>{this._triggered=!1,this._callback()},0))}remove(){delete this._channel,this._callback=()=>{}}}const Bc=63710088e-1;class Un{constructor(e,r){if(isNaN(e)||isNaN(r))throw new Error(`Invalid LngLat object: (${e}, ${r})`);if(this.lng=+e,this.lat=+r,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new Un(Bt(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(e){const r=Math.PI/180,s=this.lat*r,l=e.lat*r,u=Math.sin(s)*Math.sin(l)+Math.cos(s)*Math.cos(l)*Math.cos((e.lng-this.lng)*r);return Bc*Math.acos(Math.min(u,1))}static convert(e){if(e instanceof Un)return e;if(Array.isArray(e)&&(e.length===2||e.length===3))return new Un(Number(e[0]),Number(e[1]));if(!Array.isArray(e)&&typeof e=="object"&&e!==null)return new Un(Number("lng"in e?e.lng:e.lon),Number(e.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")}}const _u=2*Math.PI*Bc;function yu(i){return _u*Math.cos(i*Math.PI/180)}function xu(i){return(180+i)/360}function vu(i){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+i*Math.PI/360)))/360}function bu(i,e){return i/yu(e)}function Rc(i){return 360/Math.PI*Math.atan(Math.exp((180-360*i)*Math.PI/180))-90}class El{constructor(e,r,s=0){this.x=+e,this.y=+r,this.z=+s}static fromLngLat(e,r=0){const s=Un.convert(e);return new El(xu(s.lng),vu(s.lat),bu(r,s.lat))}toLngLat(){return new Un(360*this.x-180,Rc(this.y))}toAltitude(){return this.z*yu(Rc(this.y))}meterInMercatorCoordinateUnits(){return 1/_u*(e=Rc(this.y),1/Math.cos(e*Math.PI/180));var e}}function wu(i,e,r){var s=2*Math.PI*6378137/256/Math.pow(2,r);return[i*s-2*Math.PI*6378137/2,e*s-2*Math.PI*6378137/2]}class Fc{constructor(e,r,s){if(e<0||e>25||s<0||s>=Math.pow(2,e)||r<0||r>=Math.pow(2,e))throw new Error(`x=${r}, y=${s}, z=${e} outside of bounds. 0<=x<${Math.pow(2,e)}, 0<=y<${Math.pow(2,e)} 0<=z<=25 `);this.z=e,this.x=r,this.y=s,this.key=fo(0,e,e,r,s)}equals(e){return this.z===e.z&&this.x===e.x&&this.y===e.y}url(e,r,s){const l=(d=this.y,f=this.z,g=wu(256*(u=this.x),256*(d=Math.pow(2,f)-d-1),f),v=wu(256*(u+1),256*(d+1),f),g[0]+","+g[1]+","+v[0]+","+v[1]);var u,d,f,g,v;const b=function(S,P,C){let z,U="";for(let F=S;F>0;F--)z=1<1?"@2x":"").replace(/{quadkey}/g,b).replace(/{bbox-epsg-3857}/g,l)}isChildOf(e){const r=this.z-e.z;return r>0&&e.x===this.x>>r&&e.y===this.y>>r}getTilePoint(e){const r=Math.pow(2,this.z);return new xe((e.x*r-this.x)*At,(e.y*r-this.y)*At)}toString(){return`${this.z}/${this.x}/${this.y}`}}class Tu{constructor(e,r){this.wrap=e,this.canonical=r,this.key=fo(e,r.z,r.z,r.x,r.y)}}class sr{constructor(e,r,s,l,u){if(e= z; overscaledZ = ${e}; z = ${s}`);this.overscaledZ=e,this.wrap=r,this.canonical=new Fc(s,+l,+u),this.key=fo(r,e,s,l,u)}clone(){return new sr(this.overscaledZ,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)}equals(e){return this.overscaledZ===e.overscaledZ&&this.wrap===e.wrap&&this.canonical.equals(e.canonical)}scaledTo(e){if(e>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${e}; overscaledZ = ${this.overscaledZ}`);const r=this.canonical.z-e;return e>this.canonical.z?new sr(e,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new sr(e,this.wrap,e,this.canonical.x>>r,this.canonical.y>>r)}calculateScaledKey(e,r){if(e>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${e}; overscaledZ = ${this.overscaledZ}`);const s=this.canonical.z-e;return e>this.canonical.z?fo(this.wrap*+r,e,this.canonical.z,this.canonical.x,this.canonical.y):fo(this.wrap*+r,e,e,this.canonical.x>>s,this.canonical.y>>s)}isChildOf(e){if(e.wrap!==this.wrap)return!1;const r=this.canonical.z-e.canonical.z;return e.overscaledZ===0||e.overscaledZ>r&&e.canonical.y===this.canonical.y>>r}children(e){if(this.overscaledZ>=e)return[new sr(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];const r=this.canonical.z+1,s=2*this.canonical.x,l=2*this.canonical.y;return[new sr(r,this.wrap,r,s,l),new sr(r,this.wrap,r,s+1,l),new sr(r,this.wrap,r,s,l+1),new sr(r,this.wrap,r,s+1,l+1)]}isLessThan(e){return this.wrape.wrap)&&(this.overscaledZe.overscaledZ)&&(this.canonical.xe.canonical.x)&&this.canonical.ythis.max&&(this.max=f),f=this.dim+1||r<-1||r>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(r+1)*this.stride+(e+1)}_unpackMapbox(e,r,s){return(256*e*256+256*r+s)/10-1e4}_unpackTerrarium(e,r,s){return 256*e+r+s/256-32768}getPixels(){return new nr({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))}backfillBorder(e,r,s){if(this.dim!==e.dim)throw new Error("dem dimension mismatch");let l=r*this.dim,u=r*this.dim+this.dim,d=s*this.dim,f=s*this.dim+this.dim;switch(r){case-1:l=u-1;break;case 1:u=l+1}switch(s){case-1:d=f-1;break;case 1:f=d+1}const g=-r*this.dim,v=-s*this.dim;for(let b=d;b=this._numberToString.length)throw new Error(`Out of bounds. Index requested n=${e} can't be >= this._numberToString.length ${this._numberToString.length}`);return this._numberToString[e]}}class Iu{constructor(e,r,s,l,u){this.type="Feature",this._vectorTileFeature=e,e._z=r,e._x=s,e._y=l,this.properties=e.properties,this.id=u}get geometry(){return this._geometry===void 0&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry}set geometry(e){this._geometry=e}toJSON(){const e={geometry:this.geometry};for(const r in this)r!=="_geometry"&&r!=="_vectorTileFeature"&&(e[r]=this[r]);return e}}class Au{constructor(e,r){this.tileID=e,this.x=e.canonical.x,this.y=e.canonical.y,this.z=e.canonical.z,this.grid=new is(At,16,0),this.grid3D=new is(At,16,0),this.featureIndexArray=new k,this.promoteId=r}insert(e,r,s,l,u,d){const f=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(s,l,u);const g=d?this.grid3D:this.grid;for(let v=0;v=0&&S[3]>=0&&g.insert(f,S[0],S[1],S[2],S[3])}}loadVTLayers(){return this.vtLayers||(this.vtLayers=new Rn.VectorTile(new Sc(this.rawTileData)).layers,this.sourceLayerCoder=new Su(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers}query(e,r,s,l){this.loadVTLayers();const u=e.params||{},d=At/e.tileSize/e.scale,f=La(u.filter),g=e.queryGeometry,v=e.queryPadding*d,b=Mu(g),S=this.grid.query(b.minX-v,b.minY-v,b.maxX+v,b.maxY+v),P=Mu(e.cameraQueryGeometry),C=this.grid3D.query(P.minX-v,P.minY-v,P.maxX+v,P.maxY+v,(F,K,Q,X)=>function(ne,ae,he,ze,Be){for(const Se of ne)if(ae<=Se.x&&he<=Se.y&&ze>=Se.x&&Be>=Se.y)return!0;const Pe=[new xe(ae,he),new xe(ae,Be),new xe(ze,Be),new xe(ze,he)];if(ne.length>2){for(const Se of Pe)if(ea(ne,Se))return!0}for(let Se=0;Se(X||(X=Cr(ne)),ae.queryIntersectsFeature(g,ne,he,X,this.z,e.transform,d,e.pixelPosMatrix)))}return z}loadMatchingFeature(e,r,s,l,u,d,f,g,v,b,S){const P=this.bucketLayerIDs[r];if(d&&!function(F,K){for(let Q=0;Q=0)return!0;return!1}(d,P))return;const C=this.sourceLayerCoder.decode(s),z=this.vtLayers[C].feature(l);if(u.needGeometry){const F=hs(z,!0);if(!u.filter(new kt(this.tileID.overscaledZ),F,this.tileID.canonical))return}else if(!u.filter(new kt(this.tileID.overscaledZ),z))return;const U=this.getId(z,C);for(let F=0;F{const f=e instanceof js?e.get(d):null;return f&&f.evaluate?f.evaluate(r,s,l):f})}function Mu(i){let e=1/0,r=1/0,s=-1/0,l=-1/0;for(const u of i)e=Math.min(e,u.x),r=Math.min(r,u.y),s=Math.max(s,u.x),l=Math.max(l,u.y);return{minX:e,minY:r,maxX:s,maxY:l}}function Xp(i,e){return e-i}function Cu(i,e,r,s,l){const u=[];for(let d=0;d=s&&S.x>=s||(b.x>=s?b=new xe(s,b.y+(s-b.x)/(S.x-b.x)*(S.y-b.y))._round():S.x>=s&&(S=new xe(s,b.y+(s-b.x)/(S.x-b.x)*(S.y-b.y))._round()),b.y>=l&&S.y>=l||(b.y>=l?b=new xe(b.x+(l-b.y)/(S.y-b.y)*(S.x-b.x),l)._round():S.y>=l&&(S=new xe(b.x+(l-b.y)/(S.y-b.y)*(S.x-b.x),l)._round()),g&&b.equals(g[g.length-1])||(g=[b],u.push(g)),g.push(S)))))}}return u}De("FeatureIndex",Au,{omit:["rawTileData","sourceLayerCoder"]});class Vn extends xe{constructor(e,r,s,l){super(e,r),this.angle=s,l!==void 0&&(this.segment=l)}clone(){return new Vn(this.x,this.y,this.angle,this.segment)}}function ku(i,e,r,s,l){if(e.segment===void 0)return!0;let u=e,d=e.segment+1,f=0;for(;f>-r/2;){if(d--,d<0)return!1;f-=i[d].dist(u),u=i[d]}f+=i[d].dist(i[d+1]),d++;const g=[];let v=0;for(;fs;)v-=g.shift().angleDelta;if(v>l)return!1;d++,f+=b.dist(S)}return!0}function zu(i){let e=0;for(let r=0;rv){const z=(v-g)/C,U=Bi.number(S.x,P.x,z),F=Bi.number(S.y,P.y,z),K=new Vn(U,F,P.angleTo(S),b);return K._round(),!d||ku(i,K,f,d,e)?K:void 0}g+=C}}function Hp(i,e,r,s,l,u,d,f,g){const v=Du(s,u,d),b=Lu(s,l),S=b*d,P=i[0].x===0||i[0].x===g||i[0].y===0||i[0].y===g;return e-S=0&&ne=0&&ae=0&&P+v<=b){const he=new Vn(ne,ae,Q,z);he._round(),s&&!ku(i,he,u,s,l)||C.push(he)}}S+=K}return f||C.length||d||(C=Bu(i,S/2,r,s,l,u,d,!0,g)),C}De("Anchor",Vn);const la=Ui;function Ru(i,e,r,s){const l=[],u=i.image,d=u.pixelRatio,f=u.paddedRect.w-2*la,g=u.paddedRect.h-2*la,v=i.right-i.left,b=i.bottom-i.top,S=u.stretchX||[[0,f]],P=u.stretchY||[[0,g]],C=(Te,Me)=>Te+Me[1]-Me[0],z=S.reduce(C,0),U=P.reduce(C,0),F=f-z,K=g-U;let Q=0,X=z,ne=0,ae=U,he=0,ze=F,Be=0,Pe=K;if(u.content&&s){const Te=u.content;Q=Sl(S,0,Te[0]),ne=Sl(P,0,Te[1]),X=Sl(S,Te[0],Te[2]),ae=Sl(P,Te[1],Te[3]),he=Te[0]-Q,Be=Te[1]-ne,ze=Te[2]-Te[0]-X,Pe=Te[3]-Te[1]-ae}const Se=(Te,Me,Ie,ye)=>{const Ve=Il(Te.stretch-Q,X,v,i.left),Re=Al(Te.fixed-he,ze,Te.stretch,z),it=Il(Me.stretch-ne,ae,b,i.top),Pt=Al(Me.fixed-Be,Pe,Me.stretch,U),zt=Il(Ie.stretch-Q,X,v,i.left),ii=Al(Ie.fixed-he,ze,Ie.stretch,z),ar=Il(ye.stretch-ne,ae,b,i.top),gi=Al(ye.fixed-Be,Pe,ye.stretch,U),Yt=new xe(Ve,it),ci=new xe(zt,it),_i=new xe(zt,ar),Ei=new xe(Ve,ar),Vi=new xe(Re/d,Pt/d),Jt=new xe(ii/d,gi/d),yi=e*Math.PI/180;if(yi){const Ni=Math.sin(yi),$i=Math.cos(yi),Ut=[$i,-Ni,Ni,$i];Yt._matMult(Ut),ci._matMult(Ut),Ei._matMult(Ut),_i._matMult(Ut)}const Si=Te.stretch+Te.fixed,zi=Me.stretch+Me.fixed;return{tl:Yt,tr:ci,bl:Ei,br:_i,tex:{x:u.paddedRect.x+la+Si,y:u.paddedRect.y+la+zi,w:Ie.stretch+Ie.fixed-Si,h:ye.stretch+ye.fixed-zi},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:Vi,pixelOffsetBR:Jt,minFontScaleX:ze/d/v,minFontScaleY:Pe/d/b,isSDF:r}};if(s&&(u.stretchX||u.stretchY)){const Te=Fu(S,F,z),Me=Fu(P,K,U);for(let Ie=0;Ie0&&(z=Math.max(10,z),this.circleDiameter=z)}else{let S=d.top*f-g[0],P=d.bottom*f+g[2],C=d.left*f-g[3],z=d.right*f+g[1];const U=d.collisionPadding;if(U&&(C-=U[0]*f,S-=U[1]*f,z+=U[2]*f,P+=U[3]*f),b){const F=new xe(C,S),K=new xe(z,S),Q=new xe(C,P),X=new xe(z,P),ne=b*Math.PI/180;F._rotate(ne),K._rotate(ne),Q._rotate(ne),X._rotate(ne),C=Math.min(F.x,K.x,Q.x,X.x),z=Math.max(F.x,K.x,Q.x,X.x),S=Math.min(F.y,K.y,Q.y,X.y),P=Math.max(F.y,K.y,Q.y,X.y)}e.emplaceBack(r.x,r.y,C,S,z,P,s,l,u)}this.boxEndIndex=e.length}}class Kp{constructor(e=[],r=Yp){if(this.data=e,this.length=this.data.length,this.compare=r,this.length>0)for(let s=(this.length>>1)-1;s>=0;s--)this._down(s)}push(e){this.data.push(e),this.length++,this._up(this.length-1)}pop(){if(this.length===0)return;const e=this.data[0],r=this.data.pop();return this.length--,this.length>0&&(this.data[0]=r,this._down(0)),e}peek(){return this.data[0]}_up(e){const{data:r,compare:s}=this,l=r[e];for(;e>0;){const u=e-1>>1,d=r[u];if(s(l,d)>=0)break;r[e]=d,e=u}r[e]=l}_down(e){const{data:r,compare:s}=this,l=this.length>>1,u=r[e];for(;e=0)break;r[e]=f,e=d}r[e]=u}}function Yp(i,e){return ie?1:0}function Jp(i,e=1,r=!1){let s=1/0,l=1/0,u=-1/0,d=-1/0;const f=i[0];for(let C=0;Cu)&&(u=z.x),(!C||z.y>d)&&(d=z.y)}const g=Math.min(u-s,d-l);let v=g/2;const b=new Kp([],Qp);if(g===0)return new xe(s,l);for(let C=s;CS.d||!S.d)&&(S=C,r&&console.log("found best %d after %d probes",Math.round(1e4*C.d)/1e4,P)),C.max-S.d<=e||(v=C.h/2,b.push(new ca(C.p.x-v,C.p.y-v,v,i)),b.push(new ca(C.p.x+v,C.p.y-v,v,i)),b.push(new ca(C.p.x-v,C.p.y+v,v,i)),b.push(new ca(C.p.x+v,C.p.y+v,v,i)),P+=4)}return r&&(console.log(`num probes: ${P}`),console.log(`best distance: ${S.d}`)),S.p}function Qp(i,e){return e.max-i.max}function ca(i,e,r,s){this.p=new xe(i,e),this.h=r,this.d=function(l,u){let d=!1,f=1/0;for(let g=0;gl.y!=z.y>l.y&&l.x<(z.x-C.x)*(l.y-C.y)/(z.y-C.y)+C.x&&(d=!d),f=Math.min(f,vh(l,C,z))}}return(d?1:-1)*Math.sqrt(f)}(this.p,s),this.max=this.d+this.h*Math.SQRT2}const Oc=Number.POSITIVE_INFINITY;function Ou(i,e){return e[1]!==Oc?function(r,s,l){let u=0,d=0;switch(s=Math.abs(s),l=Math.abs(l),r){case"top-right":case"top-left":case"top":d=l-7;break;case"bottom-right":case"bottom-left":case"bottom":d=7-l}switch(r){case"top-right":case"bottom-right":case"right":u=-s;break;case"top-left":case"bottom-left":case"left":u=s}return[u,d]}(i,e[0],e[1]):function(r,s){let l=0,u=0;s<0&&(s=0);const d=s/Math.sqrt(2);switch(r){case"top-right":case"top-left":u=d-7;break;case"bottom-right":case"bottom-left":u=7-d;break;case"bottom":u=7-s;break;case"top":u=s-7}switch(r){case"top-right":case"bottom-right":l=-d;break;case"top-left":case"bottom-left":l=d;break;case"left":l=s;break;case"right":l=-s}return[l,u]}(i,e[0])}function Uc(i){switch(i){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function ef(i,e,r,s,l,u,d,f,g,v,b){let S=u.textMaxSize.evaluate(e,{});S===void 0&&(S=d);const P=i.layers[0].layout,C=P.get("icon-offset").evaluate(e,{},b),z=Vu(r.horizontal),U=d/24,F=i.tilePixelRatio*U,K=i.tilePixelRatio*S/24,Q=i.tilePixelRatio*f,X=i.tilePixelRatio*P.get("symbol-spacing"),ne=P.get("text-padding")*i.tilePixelRatio,ae=function(ye,Ve,Re,it=1){const Pt=ye.get("icon-padding").evaluate(Ve,{},Re),zt=Pt&&Pt.values;return[zt[0]*it,zt[1]*it,zt[2]*it,zt[3]*it]}(P,e,b,i.tilePixelRatio),he=P.get("text-max-angle")/180*Math.PI,ze=P.get("text-rotation-alignment")!=="viewport"&&P.get("symbol-placement")!=="point",Be=P.get("icon-rotation-alignment")==="map"&&P.get("symbol-placement")!=="point",Pe=P.get("symbol-placement"),Se=X/2,Te=P.get("icon-text-fit");let Me;s&&Te!=="none"&&(i.allowVerticalPlacement&&r.vertical&&(Me=hu(s,r.vertical,Te,P.get("icon-text-fit-padding"),C,U)),z&&(s=hu(s,z,Te,P.get("icon-text-fit-padding"),C,U)));const Ie=(ye,Ve)=>{Ve.x<0||Ve.x>=At||Ve.y<0||Ve.y>=At||function(Re,it,Pt,zt,ii,ar,gi,Yt,ci,_i,Ei,Vi,Jt,yi,Si,zi,Ni,$i,Ut,xi,rt,Qi,vi,Ii,_r){const kr=Re.addToLineVertexArray(it,Pt);let zr,cn,yr,or,qi=0,hn=0,_o=0,ju=0,Xc=-1,Wc=-1;const un={};let Zu=jt(""),Hc=0,Kc=0;if(Yt._unevaluatedLayout.getValue("text-radial-offset")===void 0?[Hc,Kc]=Yt.layout.get("text-offset").evaluate(rt,{},Ii).map(ji=>ji*li):(Hc=Yt.layout.get("text-radial-offset").evaluate(rt,{},Ii)*li,Kc=Oc),Re.allowVerticalPlacement&&zt.vertical){const ji=Yt.layout.get("text-rotate").evaluate(rt,{},Ii)+90;yr=new Pl(ci,it,_i,Ei,Vi,zt.vertical,Jt,yi,Si,ji),gi&&(or=new Pl(ci,it,_i,Ei,Vi,gi,Ni,$i,Si,ji))}if(ii){const ji=Yt.layout.get("icon-rotate").evaluate(rt,{}),Gr=Yt.layout.get("icon-text-fit")!=="none",yo=Ru(ii,ji,vi,Gr),xo=gi?Ru(gi,ji,vi,Gr):void 0;cn=new Pl(ci,it,_i,Ei,Vi,ii,Ni,$i,!1,ji),qi=4*yo.length;const Wu=Re.iconSizeData;let ds=null;Wu.kind==="source"?(ds=[Zr*Yt.layout.get("icon-size").evaluate(rt,{})],ds[0]>On&&Vt(`${Re.layerIds[0]}: Value for "icon-size" is >= ${po}. Reduce your "icon-size".`)):Wu.kind==="composite"&&(ds=[Zr*Qi.compositeIconSizes[0].evaluate(rt,{},Ii),Zr*Qi.compositeIconSizes[1].evaluate(rt,{},Ii)],(ds[0]>On||ds[1]>On)&&Vt(`${Re.layerIds[0]}: Value for "icon-size" is >= ${po}. Reduce your "icon-size".`)),Re.addSymbols(Re.icon,yo,ds,xi,Ut,rt,h.WritingMode.none,it,kr.lineStartIndex,kr.lineLength,-1,Ii),Xc=Re.icon.placedSymbolArray.length-1,xo&&(hn=4*xo.length,Re.addSymbols(Re.icon,xo,ds,xi,Ut,rt,h.WritingMode.vertical,it,kr.lineStartIndex,kr.lineLength,-1,Ii),Wc=Re.icon.placedSymbolArray.length-1)}const Gu=Object.keys(zt.horizontal);for(const ji of Gu){const Gr=zt.horizontal[ji];if(!zr){Zu=jt(Gr.text);const xo=Yt.layout.get("text-rotate").evaluate(rt,{},Ii);zr=new Pl(ci,it,_i,Ei,Vi,Gr,Jt,yi,Si,xo)}const yo=Gr.positionedLines.length===1;if(_o+=Uu(Re,it,Gr,ar,Yt,Si,rt,zi,kr,zt.vertical?h.WritingMode.horizontal:h.WritingMode.horizontalOnly,yo?Gu:[ji],un,Xc,Qi,Ii),yo)break}zt.vertical&&(ju+=Uu(Re,it,zt.vertical,ar,Yt,Si,rt,zi,kr,h.WritingMode.vertical,["vertical"],un,Wc,Qi,Ii));const nf=zr?zr.boxStartIndex:Re.collisionBoxArray.length,sf=zr?zr.boxEndIndex:Re.collisionBoxArray.length,af=yr?yr.boxStartIndex:Re.collisionBoxArray.length,of=yr?yr.boxEndIndex:Re.collisionBoxArray.length,lf=cn?cn.boxStartIndex:Re.collisionBoxArray.length,cf=cn?cn.boxEndIndex:Re.collisionBoxArray.length,hf=or?or.boxStartIndex:Re.collisionBoxArray.length,uf=or?or.boxEndIndex:Re.collisionBoxArray.length;let Dr=-1;const Cl=(ji,Gr)=>ji&&ji.circleDiameter?Math.max(ji.circleDiameter,Gr):Gr;Dr=Cl(zr,Dr),Dr=Cl(yr,Dr),Dr=Cl(cn,Dr),Dr=Cl(or,Dr);const Xu=Dr>-1?1:0;Xu&&(Dr*=_r/li),Re.glyphOffsetArray.length>=oa.MAX_GLYPHS&&Vt("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),rt.sortKey!==void 0&&Re.addToSortKeyRanges(Re.symbolInstances.length,rt.sortKey),Re.symbolInstances.emplaceBack(it.x,it.y,un.right>=0?un.right:-1,un.center>=0?un.center:-1,un.left>=0?un.left:-1,un.vertical||-1,Xc,Wc,Zu,nf,sf,af,of,lf,cf,hf,uf,_i,_o,ju,qi,hn,Xu,0,Jt,Hc,Kc,Dr)}(i,Ve,ye,r,s,l,Me,i.layers[0],i.collisionBoxArray,e.index,e.sourceLayerIndex,i.index,F,[ne,ne,ne,ne],ze,g,Q,ae,Be,C,e,u,v,b,d)};if(Pe==="line")for(const ye of Cu(e.geometry,0,0,At,At)){const Ve=Hp(ye,X,he,r.vertical||z,s,24,K,i.overscaling,At);for(const Re of Ve)z&&tf(i,z.text,Se,Re)||Ie(ye,Re)}else if(Pe==="line-center"){for(const ye of e.geometry)if(ye.length>1){const Ve=Wp(ye,he,r.vertical||z,s,24,K);Ve&&Ie(ye,Ve)}}else if(e.type==="Polygon")for(const ye of _c(e.geometry,0)){const Ve=Jp(ye,16);Ie(ye[0],new Vn(Ve.x,Ve.y,0))}else if(e.type==="LineString")for(const ye of e.geometry)Ie(ye,new Vn(ye[0].x,ye[0].y,0));else if(e.type==="Point")for(const ye of e.geometry)for(const Ve of ye)Ie([Ve],new Vn(Ve.x,Ve.y,0))}function Uu(i,e,r,s,l,u,d,f,g,v,b,S,P,C,z){const U=function(Q,X,ne,ae,he,ze,Be,Pe){const Se=ae.layout.get("text-rotate").evaluate(ze,{})*Math.PI/180,Te=[];for(const Me of X.positionedLines)for(const Ie of Me.positionedGlyphs){if(!Ie.rect)continue;const ye=Ie.rect||{};let Ve=ru+1,Re=!0,it=1,Pt=0;const zt=(he||Pe)&&Ie.vertical,ii=Ie.metrics.advance*Ie.scale/2;if(Pe&&X.verticalizable&&(Pt=Me.lineOffset/2-(Ie.imageName?-(li-Ie.metrics.width*Ie.scale)/2:(Ie.scale-1)*li)),Ie.imageName){const Ut=Be[Ie.imageName];Re=Ut.sdf,it=Ut.pixelRatio,Ve=Ui/it}const ar=he?[Ie.x+ii,Ie.y]:[0,0];let gi=he?[0,0]:[Ie.x+ii+ne[0],Ie.y+ne[1]-Pt],Yt=[0,0];zt&&(Yt=gi,gi=[0,0]);const ci=(Ie.metrics.left-Ve)*Ie.scale-ii+gi[0],_i=(-Ie.metrics.top-Ve)*Ie.scale+gi[1],Ei=ci+ye.w*Ie.scale/it,Vi=_i+ye.h*Ie.scale/it,Jt=new xe(ci,_i),yi=new xe(Ei,_i),Si=new xe(ci,Vi),zi=new xe(Ei,Vi);if(zt){const Ut=new xe(-ii,ii-ho),xi=-Math.PI/2,rt=li/2-ii,Qi=new xe(5-ho-rt,-(Ie.imageName?rt:0)),vi=new xe(...Yt);Jt._rotateAround(xi,Ut)._add(Qi)._add(vi),yi._rotateAround(xi,Ut)._add(Qi)._add(vi),Si._rotateAround(xi,Ut)._add(Qi)._add(vi),zi._rotateAround(xi,Ut)._add(Qi)._add(vi)}if(Se){const Ut=Math.sin(Se),xi=Math.cos(Se),rt=[xi,-Ut,Ut,xi];Jt._matMult(rt),yi._matMult(rt),Si._matMult(rt),zi._matMult(rt)}const Ni=new xe(0,0),$i=new xe(0,0);Te.push({tl:Jt,tr:yi,bl:Si,br:zi,tex:ye,writingMode:X.writingMode,glyphOffset:ar,sectionIndex:Ie.sectionIndex,isSDF:Re,pixelOffsetTL:Ni,pixelOffsetBR:$i,minFontScaleX:0,minFontScaleY:0})}return Te}(0,r,f,l,u,d,s,i.allowVerticalPlacement),F=i.textSizeData;let K=null;F.kind==="source"?(K=[Zr*l.layout.get("text-size").evaluate(d,{})],K[0]>On&&Vt(`${i.layerIds[0]}: Value for "text-size" is >= ${po}. Reduce your "text-size".`)):F.kind==="composite"&&(K=[Zr*C.compositeTextSizes[0].evaluate(d,{},z),Zr*C.compositeTextSizes[1].evaluate(d,{},z)],(K[0]>On||K[1]>On)&&Vt(`${i.layerIds[0]}: Value for "text-size" is >= ${po}. Reduce your "text-size".`)),i.addSymbols(i.text,U,K,f,u,d,v,e,g.lineStartIndex,g.lineLength,P,z);for(const Q of b)S[Q]=i.text.placedSymbolArray.length-1;return 4*U.length}function Vu(i){for(const e in i)return i[e];return null}function tf(i,e,r,s){const l=i.compareText;if(e in l){const u=l[e];for(let d=u.length-1;d>=0;d--)if(s.dist(u[d])>4;if(l!==1)throw new Error(`Got v${l} data when expected v1.`);const u=Nu[15&s];if(!u)throw new Error("Unrecognized array type.");const[d]=new Uint16Array(e,2,1),[f]=new Uint32Array(e,4,1);return new Vc(f,d,u,e)}constructor(e,r=64,s=Float64Array,l){if(isNaN(e)||e<0)throw new Error(`Unpexpected numItems value: ${e}.`);this.numItems=+e,this.nodeSize=Math.min(Math.max(+r,2),65535),this.ArrayType=s,this.IndexArrayType=e<65536?Uint16Array:Uint32Array;const u=Nu.indexOf(this.ArrayType),d=2*e*this.ArrayType.BYTES_PER_ELEMENT,f=e*this.IndexArrayType.BYTES_PER_ELEMENT,g=(8-f%8)%8;if(u<0)throw new Error(`Unexpected typed array class: ${s}.`);l&&l instanceof ArrayBuffer?(this.data=l,this.ids=new this.IndexArrayType(this.data,8,e),this.coords=new this.ArrayType(this.data,8+f+g,2*e),this._pos=2*e,this._finished=!0):(this.data=new ArrayBuffer(8+d+f+g),this.ids=new this.IndexArrayType(this.data,8,e),this.coords=new this.ArrayType(this.data,8+f+g,2*e),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+u]),new Uint16Array(this.data,2,1)[0]=r,new Uint32Array(this.data,4,1)[0]=e)}add(e,r){const s=this._pos>>1;return this.ids[s]=s,this.coords[this._pos++]=e,this.coords[this._pos++]=r,s}finish(){const e=this._pos>>1;if(e!==this.numItems)throw new Error(`Added ${e} items when expected ${this.numItems}.`);return Nc(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(e,r,s,l){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:u,coords:d,nodeSize:f}=this,g=[0,u.length-1,0],v=[];for(;g.length;){const b=g.pop()||0,S=g.pop()||0,P=g.pop()||0;if(S-P<=f){for(let F=P;F<=S;F++){const K=d[2*F],Q=d[2*F+1];K>=e&&K<=s&&Q>=r&&Q<=l&&v.push(u[F])}continue}const C=P+S>>1,z=d[2*C],U=d[2*C+1];z>=e&&z<=s&&U>=r&&U<=l&&v.push(u[C]),(b===0?e<=z:r<=U)&&(g.push(P),g.push(C-1),g.push(1-b)),(b===0?s>=z:l>=U)&&(g.push(C+1),g.push(S),g.push(1-b))}return v}within(e,r,s){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:l,coords:u,nodeSize:d}=this,f=[0,l.length-1,0],g=[],v=s*s;for(;f.length;){const b=f.pop()||0,S=f.pop()||0,P=f.pop()||0;if(S-P<=d){for(let F=P;F<=S;F++)qu(u[2*F],u[2*F+1],e,r)<=v&&g.push(l[F]);continue}const C=P+S>>1,z=u[2*C],U=u[2*C+1];qu(z,U,e,r)<=v&&g.push(l[C]),(b===0?e-s<=z:r-s<=U)&&(f.push(P),f.push(C-1),f.push(1-b)),(b===0?e+s>=z:r+s>=U)&&(f.push(C+1),f.push(S),f.push(1-b))}return g}}function Nc(i,e,r,s,l,u){if(l-s<=r)return;const d=s+l>>1;$u(i,e,d,s,l,u),Nc(i,e,r,s,d-1,1-u),Nc(i,e,r,d+1,l,1-u)}function $u(i,e,r,s,l,u){for(;l>s;){if(l-s>600){const v=l-s+1,b=r-s+1,S=Math.log(v),P=.5*Math.exp(2*S/3),C=.5*Math.sqrt(S*P*(v-P)/v)*(b-v/2<0?-1:1);$u(i,e,r,Math.max(s,Math.floor(r-b*P/v+C)),Math.min(l,Math.floor(r+(v-b)*P/v+C)),u)}const d=e[2*r+u];let f=s,g=l;for(mo(i,e,s,r),e[2*l+u]>d&&mo(i,e,s,l);fd;)g--}e[2*s+u]===d?mo(i,e,s,g):(g++,mo(i,e,g,l)),g<=r&&(s=g+1),r<=g&&(l=g-1)}}function mo(i,e,r,s){$c(i,r,s),$c(e,2*r,2*s),$c(e,2*r+1,2*s+1)}function $c(i,e,r){const s=i[e];i[e]=i[r],i[r]=s}function qu(i,e,r,s){const l=i-r,u=e-s;return l*l+u*u}var qc;h.PerformanceMarkers=void 0,(qc=h.PerformanceMarkers||(h.PerformanceMarkers={})).create="create",qc.load="load",qc.fullLoad="fullLoad";let Ml=null,go=[];const jc=1e3/60,Zc="loadTime",Gc="fullLoadTime",rf={mark(i){performance.mark(i)},frame(i){const e=i;Ml!=null&&go.push(e-Ml),Ml=e},clearMetrics(){Ml=null,go=[],performance.clearMeasures(Zc),performance.clearMeasures(Gc);for(const i in h.PerformanceMarkers)performance.clearMarks(h.PerformanceMarkers[i])},getPerformanceMetrics(){performance.measure(Zc,h.PerformanceMarkers.create,h.PerformanceMarkers.load),performance.measure(Gc,h.PerformanceMarkers.create,h.PerformanceMarkers.fullLoad);const i=performance.getEntriesByName(Zc)[0].duration,e=performance.getEntriesByName(Gc)[0].duration,r=go.length,s=1/(go.reduce((u,d)=>u+d,0)/r/1e3),l=go.filter(u=>u>jc).reduce((u,d)=>u+(d-jc)/jc,0);return{loadTime:i,fullLoadTime:e,fps:s,percentDroppedFrames:l/(r+l)*100,totalFrames:r}}};h.AJAXError=Br,h.ARRAY_TYPE=ta,h.Actor=class{constructor(i,e,r){this.target=i,this.parent=e,this.mapId=r,this.callbacks={},this.tasks={},this.taskQueue=[],this.cancelCallbacks={},Rt(["receive","process"],this),this.invoker=new Gp(this.process),this.target.addEventListener("message",this.receive,!1),this.globalScope=Zi()?i:window}send(i,e,r,s,l=!1){const u=Math.round(1e18*Math.random()).toString(36).substring(0,10);r&&(this.callbacks[u]=r);const d=Lr(this.globalScope)?void 0:[];return this.target.postMessage({id:u,type:i,hasCallback:!!r,targetMapId:s,mustQueue:l,sourceMapId:this.mapId,data:rs(e,d)},d),{cancel:()=>{r&&delete this.callbacks[u],this.target.postMessage({id:u,type:"",targetMapId:s,sourceMapId:this.mapId})}}}receive(i){const e=i.data,r=e.id;if(r&&(!e.targetMapId||this.mapId===e.targetMapId))if(e.type===""){delete this.tasks[r];const s=this.cancelCallbacks[r];delete this.cancelCallbacks[r],s&&s()}else Zi()||e.mustQueue?(this.tasks[r]=e,this.taskQueue.push(r),this.invoker.trigger()):this.processTask(r,e)}process(){if(!this.taskQueue.length)return;const i=this.taskQueue.shift(),e=this.tasks[i];delete this.tasks[i],this.taskQueue.length&&this.invoker.trigger(),e&&this.processTask(i,e)}processTask(i,e){if(e.type===""){const r=this.callbacks[i];delete this.callbacks[i],r&&(e.error?r(Ar(e.error)):r(null,Ar(e.data)))}else{let r=!1;const s=Lr(this.globalScope)?void 0:[],l=e.hasCallback?(f,g)=>{r=!0,delete this.cancelCallbacks[i],this.target.postMessage({id:i,type:"",sourceMapId:this.mapId,error:f?rs(f):null,data:rs(g,s)},s)}:f=>{r=!0};let u=null;const d=Ar(e.data);if(this.parent[e.type])u=this.parent[e.type](e.sourceMapId,d,l);else if(this.parent.getWorkerSource){const f=e.type.split(".");u=this.parent.getWorkerSource(e.sourceMapId,f[0],d.source)[f[1]](d,l)}else l(new Error(`Could not find function ${e.type}`));!r&&u&&u.cancel&&(this.cancelCallbacks[i]=u.cancel)}}remove(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)}},h.AlphaImage=io,h.CanonicalTileID=Fc,h.CollisionBoxArray=c,h.CollisionCircleLayoutArray=class extends Ws{},h.Color=Ze,h.DEMData=Eu,h.DataConstantProperty=Fe,h.DictionaryCoder=Su,h.EXTENT=At,h.ErrorEvent=Xi,h.EvaluationParameters=kt,h.Event=wr,h.Evented=vn,h.FeatureIndex=Au,h.FillBucket=vc,h.FillExtrusionBucket=wc,h.GeoJSONFeature=Iu,h.ImageAtlas=su,h.ImagePosition=Ac,h.KDBush=Vc,h.LineBucket=Tc,h.LineStripIndexArray=class extends t{},h.LngLat=Un,h.MercatorCoordinate=El,h.ONE_EM=li,h.OverscaledTileID=sr,h.PerformanceUtils=rf,h.Point=xe,h.Pos3dArray=class extends Zs{},h.PosArray=O,h.Properties=Ci,h.Protobuf=Sc,h.QuadTriangleArray=class extends Hs{},h.RGBAImage=nr,h.RasterBoundsArray=class extends Ha{},h.RequestPerformance=class{constructor(i){this._marks={start:[i.url,"start"].join("#"),end:[i.url,"end"].join("#"),measure:i.url.toString()},performance.mark(this._marks.start)}finish(){performance.mark(this._marks.end);let i=performance.getEntriesByName(this._marks.measure);return i.length===0&&(performance.measure(this._marks.measure,this._marks.start,this._marks.end),i=performance.getEntriesByName(this._marks.measure),performance.clearMarks(this._marks.start),performance.clearMarks(this._marks.end),performance.clearMeasures(this._marks.measure)),i}},h.SegmentVector=Ee,h.SymbolBucket=oa,h.Transitionable=sl,h.TriangleIndexArray=ge,h.Uniform1f=gr,h.Uniform1i=class extends Ti{constructor(i,e){super(i,e),this.current=0}set(i){this.current!==i&&(this.current=i,this.gl.uniform1i(this.location,i))}},h.Uniform2f=class extends Ti{constructor(i,e){super(i,e),this.current=[0,0]}set(i){i[0]===this.current[0]&&i[1]===this.current[1]||(this.current=i,this.gl.uniform2f(this.location,i[0],i[1]))}},h.Uniform3f=class extends Ti{constructor(i,e){super(i,e),this.current=[0,0,0]}set(i){i[0]===this.current[0]&&i[1]===this.current[1]&&i[2]===this.current[2]||(this.current=i,this.gl.uniform3f(this.location,i[0],i[1],i[2]))}},h.Uniform4f=ls,h.UniformColor=mi,h.UniformMatrix4f=class extends Ti{constructor(i,e){super(i,e),this.current=ai}set(i){if(i[12]!==this.current[12]||i[0]!==this.current[0])return this.current=i,void this.gl.uniformMatrix4fv(this.location,!1,i);for(let e=1;e<16;e++)if(i[e]!==this.current[e]){this.current=i,this.gl.uniformMatrix4fv(this.location,!1,i);break}}},h.UnwrappedTileID=Tu,h.ValidationError=we,h.ZoomHistory=Qo,h.addDynamicAttributes=kc,h.arrayBufferToImage=function(i,e){const r=new Image;r.onload=()=>{e(null,r),URL.revokeObjectURL(r.src),r.onload=null,window.requestAnimationFrame(()=>{r.src=vr})},r.onerror=()=>e(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));const s=new Blob([new Uint8Array(i)],{type:"image/png"});r.src=i.byteLength?URL.createObjectURL(s):vr},h.arrayBufferToImageBitmap=function(i,e){const r=new Blob([new Uint8Array(i)],{type:"image/png"});createImageBitmap(r).then(s=>{e(null,s)}).catch(s=>{e(new Error(`Could not load image because of ${s.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`))})},h.asyncAll=function(i,e,r){if(!i.length)return r(null,[]);let s=i.length;const l=new Array(i.length);let u=null;i.forEach((d,f)=>{e(d,(g,v)=>{g&&(u=g),l[f]=v,--s==0&&r(u,l)})})},h.bezier=xt,h.bindAll=Rt,h.clamp=et,h.clipLine=Cu,h.clone=function(i){var e=new ta(16);return e[0]=i[0],e[1]=i[1],e[2]=i[2],e[3]=i[3],e[4]=i[4],e[5]=i[5],e[6]=i[6],e[7]=i[7],e[8]=i[8],e[9]=i[9],e[10]=i[10],e[11]=i[11],e[12]=i[12],e[13]=i[13],e[14]=i[14],e[15]=i[15],e},h.clone$1=Ct,h.collisionCircleLayout=bp,h.config=Nn,h.copy=function(i,e){return i[0]=e[0],i[1]=e[1],i[2]=e[2],i[3]=e[3],i[4]=e[4],i[5]=e[5],i[6]=e[6],i[7]=e[7],i[8]=e[8],i[9]=e[9],i[10]=e[10],i[11]=e[11],i[12]=e[12],i[13]=e[13],i[14]=e[14],i[15]=e[15],i},h.create=function(){var i=new ta(16);return ta!=Float32Array&&(i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[11]=0,i[12]=0,i[13]=0,i[14]=0),i[0]=1,i[5]=1,i[10]=1,i[15]=1,i},h.createExpression=Dt,h.createFilter=La,h.createLayout=Kt,h.createStyleLayer=function(i){return i.type==="custom"?new jp(i):new Zp[i.type](i)},h.deepEqual=function i(e,r){if(Array.isArray(e)){if(!Array.isArray(r)||e.length!==r.length)return!1;for(let s=0;s{s[d.source]?r.push({command:lt.removeLayer,args:[d.id]}):u.push(d)}),r=r.concat(l),function(d,f,g){f=f||[];const v=(d=d||[]).map(bn),b=f.map(bn),S=d.reduce(Qr,{}),P=f.reduce(Qr,{}),C=v.slice(),z=Object.create(null);let U,F,K,Q,X,ne,ae;for(U=0,F=0;U{}}},h.groupByLayout=function(i,e){const r={};for(let l=0;l@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(r,s,l,u)=>{const d=l||u;return e[s]=!d||d.toLowerCase(),""}),e["max-age"]){const r=parseInt(e["max-age"],10);isNaN(r)?delete e["max-age"]:e["max-age"]=r}return e},h.parseGlyphPbf=function(i){return new Sc(i).readFields(zp,[])},h.pbf=Kh,h.performSymbolLayout=function(i){i.bucket.createArrays(),i.bucket.tilePixelRatio=At/(512*i.bucket.overscaling),i.bucket.compareText={},i.bucket.iconsNeedLinear=!1;const e=i.bucket.layers[0].layout,r=i.bucket.layers[0]._unevaluatedLayout._values,s={layoutIconSize:r["icon-size"].possiblyEvaluate(new kt(i.bucket.zoom+1),i.canonical),layoutTextSize:r["text-size"].possiblyEvaluate(new kt(i.bucket.zoom+1),i.canonical),textMaxSize:r["text-size"].possiblyEvaluate(new kt(18))};if(i.bucket.textSizeData.kind==="composite"){const{minZoom:g,maxZoom:v}=i.bucket.textSizeData;s.compositeTextSizes=[r["text-size"].possiblyEvaluate(new kt(g),i.canonical),r["text-size"].possiblyEvaluate(new kt(v),i.canonical)]}if(i.bucket.iconSizeData.kind==="composite"){const{minZoom:g,maxZoom:v}=i.bucket.iconSizeData;s.compositeIconSizes=[r["icon-size"].possiblyEvaluate(new kt(g),i.canonical),r["icon-size"].possiblyEvaluate(new kt(v),i.canonical)]}const l=e.get("text-line-height")*li,u=e.get("text-rotation-alignment")!=="viewport"&&e.get("symbol-placement")!=="point",d=e.get("text-keep-upright"),f=e.get("text-size");for(const g of i.bucket.features){const v=e.get("text-font").evaluate(g,{},i.canonical).join(","),b=f.evaluate(g,{},i.canonical),S=s.layoutTextSize.evaluate(g,{},i.canonical),P=s.layoutIconSize.evaluate(g,{},i.canonical),C={horizontal:{},vertical:void 0},z=g.text;let U,F=[0,0];if(z){const X=z.toString(),ne=e.get("text-letter-spacing").evaluate(g,{},i.canonical)*li,ae=Va(X)?ne:0,he=e.get("text-anchor").evaluate(g,{},i.canonical),ze=e.get("text-variable-anchor");if(!ze){const Me=e.get("text-radial-offset").evaluate(g,{},i.canonical);F=Me?Ou(he,[Me*li,Oc]):e.get("text-offset").evaluate(g,{},i.canonical).map(Ie=>Ie*li)}let Be=u?"center":e.get("text-justify").evaluate(g,{},i.canonical);const Pe=e.get("symbol-placement"),Se=Pe==="point"?e.get("text-max-width").evaluate(g,{},i.canonical)*li:0,Te=()=>{i.bucket.allowVerticalPlacement&&Fs(X)&&(C.vertical=vl(z,i.glyphMap,i.glyphPositions,i.imagePositions,v,Se,l,he,"left",ae,F,h.WritingMode.vertical,!0,Pe,S,b))};if(!u&&ze){const Me=Be==="auto"?ze.map(ye=>Uc(ye)):[Be];let Ie=!1;for(let ye=0;yethis._layers[fe.id]),J=Z[0];if(J.visibility==="none")continue;const W=J.source||"";let G=this.familiesBySource[W];G||(G=this.familiesBySource[W]={});const ee=J.sourceLayer||"_geojsonTileLayer";let ue=G[ee];ue||(ue=G[ee]=[]),ue.push(Z)}}}class Y{constructor(I){const M={},L=[];for(const W in I){const G=I[W],ee=M[W]={};for(const ue in G){const fe=G[+ue];if(!fe||fe.bitmap.width===0||fe.bitmap.height===0)continue;const pe={x:0,y:0,w:fe.bitmap.width+2,h:fe.bitmap.height+2};L.push(pe),ee[ue]={rect:pe,metrics:fe.metrics}}}const{w:j,h:Z}=h.potpack(L),J=new h.AlphaImage({width:j||1,height:Z||1});for(const W in I){const G=I[W];for(const ee in G){const ue=G[+ee];if(!ue||ue.bitmap.width===0||ue.bitmap.height===0)continue;const fe=M[W][ee].rect;h.AlphaImage.copy(ue.bitmap,J,{x:0,y:0},{x:fe.x+1,y:fe.y+1},ue.bitmap)}}this.image=J,this.positions=M}}h.register("GlyphAtlas",Y);class Ne{constructor(I){this.tileID=new h.OverscaledTileID(I.tileID.overscaledZ,I.tileID.wrap,I.tileID.canonical.z,I.tileID.canonical.x,I.tileID.canonical.y),this.uid=I.uid,this.zoom=I.zoom,this.pixelRatio=I.pixelRatio,this.tileSize=I.tileSize,this.source=I.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=I.showCollisionBoxes,this.collectResourceTiming=!!I.collectResourceTiming,this.returnDependencies=!!I.returnDependencies,this.promoteId=I.promoteId}parse(I,M,L,j,Z){this.status="parsing",this.data=I,this.collisionBoxArray=new h.CollisionBoxArray;const J=new h.DictionaryCoder(Object.keys(I.layers).sort()),W=new h.FeatureIndex(this.tileID,this.promoteId);W.bucketLayerIDs=[];const G={},ee={featureIndex:W,iconDependencies:{},patternDependencies:{},glyphDependencies:{},availableImages:L},ue=M.familiesBySource[this.source];for(const tt in ue){const ct=I.layers[tt];if(!ct)continue;ct.version===1&&h.warnOnce(`Vector tile source "${this.source}" layer "${tt}" does not use vector tile spec v2 and therefore may have some rendering errors.`);const Tt=J.encode(tt),Xt=[];for(let Ze=0;Ze=Lt.maxzoom||Lt.visibility!=="none"&&(xe(Ze,this.zoom,L),(G[Lt.id]=Lt.createBucket({index:W.bucketLayerIDs.length,layers:Ze,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:Tt,sourceID:this.source})).populate(Xt,ee,this.tileID.canonical),W.bucketLayerIDs.push(Ze.map(Ur=>Ur.id)))}}let fe,pe,$e,Xe;const Le=h.mapObject(ee.glyphDependencies,tt=>Object.keys(tt).map(Number));Object.keys(Le).length?j.send("getGlyphs",{uid:this.uid,stacks:Le,source:this.source,tileID:this.tileID,type:"glyphs"},(tt,ct)=>{fe||(fe=tt,pe=ct,at.call(this))}):pe={};const Oe=Object.keys(ee.iconDependencies);Oe.length?j.send("getImages",{icons:Oe,source:this.source,tileID:this.tileID,type:"icons"},(tt,ct)=>{fe||(fe=tt,$e=ct,at.call(this))}):$e={};const Ge=Object.keys(ee.patternDependencies);function at(){if(fe)return Z(fe);if(pe&&$e&&Xe){const tt=new Y(pe),ct=new h.ImageAtlas($e,Xe);for(const Tt in G){const Xt=G[Tt];Xt instanceof h.SymbolBucket?(xe(Xt.layers,this.zoom,L),h.performSymbolLayout({bucket:Xt,glyphMap:pe,glyphPositions:tt.positions,imageMap:$e,imagePositions:ct.iconPositions,showCollisionBoxes:this.showCollisionBoxes,canonical:this.tileID.canonical})):Xt.hasPattern&&(Xt instanceof h.LineBucket||Xt instanceof h.FillBucket||Xt instanceof h.FillExtrusionBucket)&&(xe(Xt.layers,this.zoom,L),Xt.addFeatures(ee,this.tileID.canonical,ct.patternPositions))}this.status="done",Z(null,{buckets:Object.values(G).filter(Tt=>!Tt.isEmpty()),featureIndex:W,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:tt.image,imageAtlas:ct,glyphMap:this.returnDependencies?pe:null,iconMap:this.returnDependencies?$e:null,glyphPositions:this.returnDependencies?tt.positions:null})}}Ge.length?j.send("getImages",{icons:Ge,source:this.source,tileID:this.tileID,type:"patterns"},(tt,ct)=>{fe||(fe=tt,Xe=ct,at.call(this))}):Xe={},at.call(this)}}function xe(V,I,M){const L=new h.EvaluationParameters(I);for(const j of V)j.recalculate(L,M)}function nt(V,I){const M=h.getArrayBuffer(V.request,(L,j,Z,J)=>{L?I(L):j&&I(null,{vectorTile:new h.vectorTile.VectorTile(new h.Protobuf(j)),rawData:j,cacheControl:Z,expires:J})});return()=>{M.cancel(),I()}}class ot{constructor(I,M,L,j){this.actor=I,this.layerIndex=M,this.availableImages=L,this.loadVectorData=j||nt,this.loading={},this.loaded={}}loadTile(I,M){const L=I.uid;this.loading||(this.loading={});const j=!!(I&&I.request&&I.request.collectResourceTiming)&&new h.RequestPerformance(I.request),Z=this.loading[L]=new Ne(I);Z.abort=this.loadVectorData(I,(J,W)=>{if(delete this.loading[L],J||!W)return Z.status="done",this.loaded[L]=Z,M(J);const G=W.rawData,ee={};W.expires&&(ee.expires=W.expires),W.cacheControl&&(ee.cacheControl=W.cacheControl);const ue={};if(j){const fe=j.finish();fe&&(ue.resourceTiming=JSON.parse(JSON.stringify(fe)))}Z.vectorTile=W.vectorTile,Z.parse(W.vectorTile,this.layerIndex,this.availableImages,this.actor,(fe,pe)=>{if(fe||!pe)return M(fe);M(null,h.extend({rawTileData:G.slice(0)},pe,ee,ue))}),this.loaded=this.loaded||{},this.loaded[L]=Z})}reloadTile(I,M){const L=this.loaded,j=I.uid,Z=this;if(L&&L[j]){const J=L[j];J.showCollisionBoxes=I.showCollisionBoxes;const W=(G,ee)=>{const ue=J.reloadCallback;ue&&(delete J.reloadCallback,J.parse(J.vectorTile,Z.layerIndex,this.availableImages,Z.actor,ue)),M(G,ee)};J.status==="parsing"?J.reloadCallback=W:J.status==="done"&&(J.vectorTile?J.parse(J.vectorTile,this.layerIndex,this.availableImages,this.actor,W):W())}}abortTile(I,M){const L=this.loading,j=I.uid;L&&L[j]&&L[j].abort&&(L[j].abort(),delete L[j]),M()}removeTile(I,M){const L=this.loaded,j=I.uid;L&&L[j]&&delete L[j],M()}}class We{constructor(){this.loaded={}}loadTile(I,M){const{uid:L,encoding:j,rawImageData:Z}=I,J=h.isImageBitmap(Z)?this.getImageData(Z):Z,W=new h.DEMData(L,J,j);this.loaded=this.loaded||{},this.loaded[L]=W,M(null,W)}getImageData(I){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(I.width,I.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d",{willReadFrequently:!0})),this.offscreenCanvas.width=I.width,this.offscreenCanvas.height=I.height,this.offscreenCanvasContext.drawImage(I,0,0,I.width,I.height);const M=this.offscreenCanvasContext.getImageData(-1,-1,I.width+2,I.height+2);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new h.RGBAImage({width:M.width,height:M.height},M.data)}removeTile(I){const M=this.loaded,L=I.uid;M&&M[L]&&delete M[L]}}function xt(V,I){if(V.length!==0){bt(V[0],I);for(var M=1;M=Math.abs(W)?M-G+W:W-G+M,M=G}M+L>=0!=!!I&&V.reverse()}var et=h.getDefaultExportFromCjs(function V(I,M){var L,j=I&&I.type;if(j==="FeatureCollection")for(L=0;L>31}function vr(V,I){for(var M=V.loadGeometry(),L=V.type,j=0,Z=0,J=M.length,W=0;WV},Nn=Math.fround||(Br=new Float32Array(1),V=>(Br[0]=+V,Br[0]));var Br;const bi=3,Gi=5,hi=6;class yn{constructor(I){this.options=Object.assign(Object.create(_n),I),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(I){const{log:M,minZoom:L,maxZoom:j}=this.options;M&&console.time("total time");const Z=`prepare ${I.length} points`;M&&console.time(Z),this.points=I;const J=[];for(let G=0;G=L;G--){const ee=+Date.now();W=this.trees[G]=this._createTree(this._cluster(W,G)),M&&console.log("z%d: %d clusters in %dms",G,W.numItems,+Date.now()-ee)}return M&&console.timeEnd("total time"),this}getClusters(I,M){let L=((I[0]+180)%360+360)%360-180;const j=Math.max(-90,Math.min(90,I[1]));let Z=I[2]===180?180:((I[2]+180)%360+360)%360-180;const J=Math.max(-90,Math.min(90,I[3]));if(I[2]-I[0]>=360)L=-180,Z=180;else if(L>Z){const fe=this.getClusters([L,j,180,J],M),pe=this.getClusters([-180,j,Z,J],M);return fe.concat(pe)}const W=this.trees[this._limitZoom(M)],G=W.range(Rr(L),br(J),Rr(Z),br(j)),ee=W.data,ue=[];for(const fe of G){const pe=this.stride*fe;ue.push(ee[pe+Gi]>1?xn(ee,pe,this.clusterProps):this.points[ee[pe+bi]])}return ue}getChildren(I){const M=this._getOriginId(I),L=this._getOriginZoom(I),j="No cluster with the specified id.",Z=this.trees[L];if(!Z)throw new Error(j);const J=Z.data;if(M*this.stride>=J.length)throw new Error(j);const W=this.options.radius/(this.options.extent*Math.pow(2,L-1)),G=Z.within(J[M*this.stride],J[M*this.stride+1],W),ee=[];for(const ue of G){const fe=ue*this.stride;J[fe+4]===I&&ee.push(J[fe+Gi]>1?xn(J,fe,this.clusterProps):this.points[J[fe+bi]])}if(ee.length===0)throw new Error(j);return ee}getLeaves(I,M,L){const j=[];return this._appendLeaves(j,I,M=M||10,L=L||0,0),j}getTile(I,M,L){const j=this.trees[this._limitZoom(I)],Z=Math.pow(2,I),{extent:J,radius:W}=this.options,G=W/J,ee=(L-G)/Z,ue=(L+1+G)/Z,fe={features:[]};return this._addTileFeatures(j.range((M-G)/Z,ee,(M+1+G)/Z,ue),j.data,M,L,Z,fe),M===0&&this._addTileFeatures(j.range(1-G/Z,ee,1,ue),j.data,Z,L,Z,fe),M===Z-1&&this._addTileFeatures(j.range(0,ee,G/Z,ue),j.data,-1,L,Z,fe),fe.features.length?fe:null}getClusterExpansionZoom(I){let M=this._getOriginZoom(I)-1;for(;M<=this.options.maxZoom;){const L=this.getChildren(I);if(M++,L.length!==1)break;I=L[0].properties.cluster_id}return M}_appendLeaves(I,M,L,j,Z){const J=this.getChildren(M);for(const W of J){const G=W.properties;if(G&&G.cluster?Z+G.point_count<=j?Z+=G.point_count:Z=this._appendLeaves(I,G.cluster_id,L,j,Z):Z1;let ue,fe,pe;if(ee)ue=Kr(M,G,this.clusterProps),fe=M[G],pe=M[G+1];else{const Le=this.points[M[G+bi]];ue=Le.properties;const[Oe,Ge]=Le.geometry.coordinates;fe=Rr(Oe),pe=br(Ge)}const $e={type:1,geometry:[[Math.round(this.options.extent*(fe*Z-L)),Math.round(this.options.extent*(pe*Z-j))]],tags:ue};let Xe;Xe=ee||this.options.generateId?M[G+bi]:this.points[M[G+bi]].id,Xe!==void 0&&($e.id=Xe),J.features.push($e)}}_limitZoom(I){return Math.max(this.options.minZoom,Math.min(Math.floor(+I),this.options.maxZoom+1))}_cluster(I,M){const{radius:L,extent:j,reduce:Z,minPoints:J}=this.options,W=L/(j*Math.pow(2,M)),G=I.data,ee=[],ue=this.stride;for(let fe=0;feM&&(Oe+=G[at+Gi])}if(Oe>Le&&Oe>=J){let Ge,at=pe*Le,tt=$e*Le,ct=-1;const Tt=((fe/ue|0)<<5)+(M+1)+this.points.length;for(const Xt of Xe){const Ze=Xt*ue;if(G[Ze+2]<=M)continue;G[Ze+2]=M;const Lt=G[Ze+Gi];at+=G[Ze]*Lt,tt+=G[Ze+1]*Lt,G[Ze+4]=Tt,Z&&(Ge||(Ge=this._map(G,fe,!0),ct=this.clusterProps.length,this.clusterProps.push(Ge)),Z(Ge,this._map(G,Ze)))}G[fe+4]=Tt,ee.push(at/Oe,tt/Oe,1/0,Tt,-1,Oe),Z&&ee.push(ct)}else{for(let Ge=0;Ge1)for(const Ge of Xe){const at=Ge*ue;if(!(G[at+2]<=M)){G[at+2]=M;for(let tt=0;tt>5}_getOriginZoom(I){return(I-this.points.length)%32}_map(I,M,L){if(I[M+Gi]>1){const J=this.clusterProps[I[M+hi]];return L?Object.assign({},J):J}const j=this.points[I[M+bi]].properties,Z=this.options.map(j);return L&&Z===j?Object.assign({},Z):Z}}function xn(V,I,M){return{type:"Feature",id:V[I+bi],properties:Kr(V,I,M),geometry:{type:"Point",coordinates:[(L=V[I],360*(L-.5)),wr(V[I+1])]}};var L}function Kr(V,I,M){const L=V[I+Gi],j=L>=1e4?`${Math.round(L/1e3)}k`:L>=1e3?Math.round(L/100)/10+"k":L,Z=V[I+hi],J=Z===-1?{}:Object.assign({},M[Z]);return Object.assign(J,{cluster:!0,cluster_id:V[I+bi],point_count:L,point_count_abbreviated:j})}function Rr(V){return V/360+.5}function br(V){const I=Math.sin(V*Math.PI/180),M=.5-.25*Math.log((1+I)/(1-I))/Math.PI;return M<0?0:M>1?1:M}function wr(V){const I=(180-360*V)*Math.PI/180;return 360*Math.atan(Math.exp(I))/Math.PI-90}function Xi(V,I,M,L){for(var j,Z=L,J=M-I>>1,W=M-I,G=V[I],ee=V[I+1],ue=V[M],fe=V[M+1],pe=I+3;peZ)j=pe,Z=$e;else if($e===Z){var Xe=Math.abs(pe-J);XeL&&(j-I>3&&Xi(V,I,j,L),V[j+2]=Z,M-j>3&&Xi(V,j,M,L))}function vn(V,I,M,L,j,Z){var J=j-M,W=Z-L;if(J!==0||W!==0){var G=((V-M)*J+(I-L)*W)/(J*J+W*W);G>1?(M=j,L=Z):G>0&&(M+=J*G,L+=W*G)}return(J=V-M)*J+(W=I-L)*W}function le(V,I,M,L){var j={id:V===void 0?null:V,type:I,geometry:M,tags:L,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(Z){var J=Z.geometry,W=Z.type;if(W==="Point"||W==="MultiPoint"||W==="LineString")Fr(Z,J);else if(W==="Polygon"||W==="MultiLineString")for(var G=0;G0&&(J+=L?(j*ee-G*Z)/2:Math.sqrt(Math.pow(G-j,2)+Math.pow(ee-Z,2))),j=G,Z=ee}var ue=I.length-3;I[2]=1,Xi(I,0,ue,M),I[ue+2]=1,I.size=Math.abs(J),I.start=0,I.end=I.size}function Yr(V,I,M,L){for(var j=0;j1?1:M}function Gt(V,I,M,L,j,Z,J,W){if(L/=I,Z>=(M/=I)&&J=L)return null;for(var G=[],ee=0;ee=M&&Xe=L)){var Le=[];if(pe==="Point"||pe==="MultiPoint")Jr(fe,Le,M,L,j);else if(pe==="LineString")bn(fe,Le,M,L,j,!1,W.lineMetrics);else if(pe==="MultiLineString")we(fe,Le,M,L,j,!1);else if(pe==="Polygon")we(fe,Le,M,L,j,!0);else if(pe==="MultiPolygon")for(var Oe=0;Oe=M&&J<=L&&(I.push(V[Z]),I.push(V[Z+1]),I.push(V[Z+2]))}}function bn(V,I,M,L,j,Z,J){for(var W,G,ee=Qr(V),ue=j===0?fi:wn,fe=V.start,pe=0;peM&&(G=ue(ee,$e,Xe,Oe,Ge,M),J&&(ee.start=fe+W*G)):at>L?tt=M&&(G=ue(ee,$e,Xe,Oe,Ge,M),ct=!0),tt>L&&at<=L&&(G=ue(ee,$e,Xe,Oe,Ge,L),ct=!0),!Z&&ct&&(J&&(ee.end=fe+W*G),I.push(ee),ee=Qr(V)),J&&(fe+=W)}var Tt=V.length-3;$e=V[Tt],Xe=V[Tt+1],Le=V[Tt+2],(at=j===0?$e:Xe)>=M&&at<=L&&lr(ee,$e,Xe,Le),Tt=ee.length-3,Z&&Tt>=3&&(ee[Tt]!==ee[0]||ee[Tt+1]!==ee[1])&&lr(ee,ee[0],ee[1],ee[2]),ee.length&&I.push(ee)}function Qr(V){var I=[];return I.size=V.size,I.start=V.start,I.end=V.end,I}function we(V,I,M,L,j,Z){for(var J=0;JJ.maxX&&(J.maxX=ue),fe>J.maxY&&(J.maxY=fe)}return J}function Qt(V,I,M,L){var j=I.geometry,Z=I.type,J=[];if(Z==="Point"||Z==="MultiPoint")for(var W=0;W0&&I.size<(j?J:L))M.numPoints+=I.length/3;else{for(var W=[],G=0;GJ)&&(M.numSimplified++,W.push(I[G]),W.push(I[G+1])),M.numPoints++;j&&function(ee,ue){for(var fe=0,pe=0,$e=ee.length,Xe=$e-2;pe<$e;Xe=pe,pe+=2)fe+=(ee[pe]-ee[Xe])*(ee[pe+1]+ee[Xe+1]);if(fe>0===ue)for(pe=0,$e=ee.length;pe<$e/2;pe+=2){var Le=ee[pe],Oe=ee[pe+1];ee[pe]=ee[$e-2-pe],ee[pe+1]=ee[$e-1-pe],ee[$e-2-pe]=Le,ee[$e-1-pe]=Oe}}(W,Z),V.push(W)}}function Tr(V,I){var M=(I=this.options=function(j,Z){for(var J in Z)j[J]=Z[J];return j}(Object.create(this.options),I)).debug;if(M&&console.time("preprocess data"),I.maxZoom<0||I.maxZoom>24)throw new Error("maxZoom should be in the 0-24 range");if(I.promoteId&&I.generateId)throw new Error("promoteId and generateId cannot be used together.");var L=function(j,Z){var J=[];if(j.type==="FeatureCollection")for(var W=0;W1&&console.time("creation"),pe=this.tiles[fe]=Pi(V,I,M,L,G),this.tileCoords.push({z:I,x:M,y:L}),ee)){ee>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",I,M,L,pe.numFeatures,pe.numPoints,pe.numSimplified),console.timeEnd("creation"));var $e="z"+I;this.stats[$e]=(this.stats[$e]||0)+1,this.total++}if(pe.source=V,j){if(I===G.maxZoom||I===j)continue;var Xe=1<1&&console.time("clipping");var Le,Oe,Ge,at,tt,ct,Tt=.5*G.buffer/G.extent,Xt=.5-Tt,Ze=.5+Tt,Lt=1+Tt;Le=Oe=Ge=at=null,tt=Gt(V,ue,M-Tt,M+Ze,0,pe.minX,pe.maxX,G),ct=Gt(V,ue,M+Xt,M+Lt,0,pe.minX,pe.maxX,G),V=null,tt&&(Le=Gt(tt,ue,L-Tt,L+Ze,1,pe.minY,pe.maxY,G),Oe=Gt(tt,ue,L+Xt,L+Lt,1,pe.minY,pe.maxY,G),tt=null),ct&&(Ge=Gt(ct,ue,L-Tt,L+Ze,1,pe.minY,pe.maxY,G),at=Gt(ct,ue,L+Xt,L+Lt,1,pe.minY,pe.maxY,G),ct=null),ee>1&&console.timeEnd("clipping"),W.push(Le||[],I+1,2*M,2*L),W.push(Oe||[],I+1,2*M,2*L+1),W.push(Ge||[],I+1,2*M+1,2*L),W.push(at||[],I+1,2*M+1,2*L+1)}}},Tr.prototype.getTile=function(V,I,M){var L=this.options,j=L.extent,Z=L.debug;if(V<0||V>24)return null;var J=1<1&&console.log("drilling down to z%d-%d-%d",V,I,M);for(var G,ee=V,ue=I,fe=M;!G&&ee>0;)ee--,ue=Math.floor(ue/2),fe=Math.floor(fe/2),G=this.tiles[Er(ee,ue,fe)];return G&&G.source?(Z>1&&console.log("found parent tile z%d-%d-%d",ee,ue,fe),Z>1&&console.time("drilling down"),this.splitTile(G.source,ee,ue,fe,V,I,M),Z>1&&console.timeEnd("drilling down"),this.tiles[W]?Qe(this.tiles[W],j):null):null};class jn extends ot{constructor(I,M,L,j){super(I,M,L,St),this._dataUpdateable=new Map,this.loadGeoJSON=(Z,J)=>{const{promoteId:W}=Z;if(Z.request)return h.getJSON(Z.request,(G,ee,ue,fe)=>{this._dataUpdateable=Sr(ee,W)?ui(ee,W):void 0,J(G,ee,ue,fe)});if(typeof Z.data=="string")try{const G=JSON.parse(Z.data);this._dataUpdateable=Sr(G,W)?ui(G,W):void 0,J(null,G)}catch{J(new Error(`Input data given to '${Z.source}' is not a valid GeoJSON object.`))}else Z.dataDiff?this._dataUpdateable?(function(G,ee,ue){var fe,pe,$e,Xe;if(ee.removeAll&&G.clear(),ee.remove)for(const Le of ee.remove)G.delete(Le);if(ee.add)for(const Le of ee.add){const Oe=er(Le,ue);Oe!=null&&G.set(Oe,Le)}if(ee.update)for(const Le of ee.update){let Oe=G.get(Le.id);if(Oe==null)continue;const Ge=!Le.removeAllProperties&&(((fe=Le.removeProperties)===null||fe===void 0?void 0:fe.length)>0||((pe=Le.addOrUpdateProperties)===null||pe===void 0?void 0:pe.length)>0);if((Le.newGeometry||Le.removeAllProperties||Ge)&&(Oe={...Oe},G.set(Le.id,Oe),Ge&&(Oe.properties={...Oe.properties})),Le.newGeometry&&(Oe.geometry=Le.newGeometry),Le.removeAllProperties)Oe.properties={};else if((($e=Le.removeProperties)===null||$e===void 0?void 0:$e.length)>0)for(const at of Le.removeProperties)Object.prototype.hasOwnProperty.call(Oe.properties,at)&&delete Oe.properties[at];if(((Xe=Le.addOrUpdateProperties)===null||Xe===void 0?void 0:Xe.length)>0)for(const{key:at,value:tt}of Le.addOrUpdateProperties)Oe.properties[at]=tt}}(this._dataUpdateable,Z.dataDiff,W),J(null,{type:"FeatureCollection",features:Array.from(this._dataUpdateable.values())})):J(new Error(`Cannot update existing geojson data in ${Z.source}`)):J(new Error(`Input data given to '${Z.source}' is not a valid GeoJSON object.`));return{cancel:()=>{}}},j&&(this.loadGeoJSON=j)}loadData(I,M){var L;(L=this._pendingRequest)===null||L===void 0||L.cancel(),this._pendingCallback&&this._pendingCallback(null,{abandoned:!0});const j=!!(I&&I.request&&I.request.collectResourceTiming)&&new h.RequestPerformance(I.request);this._pendingCallback=M,this._pendingRequest=this.loadGeoJSON(I,(Z,J)=>{if(delete this._pendingCallback,delete this._pendingRequest,Z||!J)return M(Z);if(typeof J!="object")return M(new Error(`Input data given to '${I.source}' is not a valid GeoJSON object.`));{et(J,!0);try{if(I.filter){const G=h.createExpression(I.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if(G.result==="error")throw new Error(G.value.map(ue=>`${ue.key}: ${ue.message}`).join(", "));J={type:"FeatureCollection",features:J.features.filter(ue=>G.value.evaluate({zoom:0},ue))}}this._geoJSONIndex=I.cluster?new yn(function({superclusterOptions:G,clusterProperties:ee}){if(!ee||!G)return G;const ue={},fe={},pe={accumulated:null,zoom:0},$e={properties:null},Xe=Object.keys(ee);for(const Le of Xe){const[Oe,Ge]=ee[Le],at=h.createExpression(Ge),tt=h.createExpression(typeof Oe=="string"?[Oe,["accumulated"],["get",Le]]:Oe);ue[Le]=at.value,fe[Le]=tt.value}return G.map=Le=>{$e.properties=Le;const Oe={};for(const Ge of Xe)Oe[Ge]=ue[Ge].evaluate(pe,$e);return Oe},G.reduce=(Le,Oe)=>{$e.properties=Oe;for(const Ge of Xe)pe.accumulated=Le[Ge],Le[Ge]=fe[Ge].evaluate(pe,$e)},G}(I)).load(J.features):function(G,ee){return new Tr(G,ee)}(J,I.geojsonVtOptions)}catch(G){return M(G)}this.loaded={};const W={};if(j){const G=j.finish();G&&(W.resourceTiming={},W.resourceTiming[I.source]=JSON.parse(JSON.stringify(G)))}M(null,W)}})}reloadTile(I,M){const L=this.loaded;return L&&L[I.uid]?super.reloadTile(I,M):this.loadTile(I,M)}removeSource(I,M){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),M()}getClusterExpansionZoom(I,M){try{M(null,this._geoJSONIndex.getClusterExpansionZoom(I.clusterId))}catch(L){M(L)}}getClusterChildren(I,M){try{M(null,this._geoJSONIndex.getChildren(I.clusterId))}catch(L){M(L)}}getClusterLeaves(I,M){try{M(null,this._geoJSONIndex.getLeaves(I.clusterId,I.limit,I.offset))}catch(L){M(L)}}}class cr{constructor(I){this.self=I,this.actor=new h.Actor(I,this),this.layerIndexes={},this.availableImages={},this.workerSourceTypes={vector:ot,geojson:jn},this.workerSources={},this.demWorkerSources={},this.self.registerWorkerSource=(M,L)=>{if(this.workerSourceTypes[M])throw new Error(`Worker source with name "${M}" already registered.`);this.workerSourceTypes[M]=L},this.self.registerRTLTextPlugin=M=>{if(h.plugin.isParsed())throw new Error("RTL text plugin already registered.");h.plugin.applyArabicShaping=M.applyArabicShaping,h.plugin.processBidirectionalText=M.processBidirectionalText,h.plugin.processStyledBidirectionalText=M.processStyledBidirectionalText}}setReferrer(I,M){this.referrer=M}setImages(I,M,L){this.availableImages[I]=M;for(const j in this.workerSources[I]){const Z=this.workerSources[I][j];for(const J in Z)Z[J].availableImages=M}L()}setLayers(I,M,L){this.getLayerIndex(I).replace(M),L()}updateLayers(I,M,L){this.getLayerIndex(I).update(M.layers,M.removedIds),L()}loadTile(I,M,L){this.getWorkerSource(I,M.type,M.source).loadTile(M,L)}loadDEMTile(I,M,L){this.getDEMWorkerSource(I,M.source).loadTile(M,L)}reloadTile(I,M,L){this.getWorkerSource(I,M.type,M.source).reloadTile(M,L)}abortTile(I,M,L){this.getWorkerSource(I,M.type,M.source).abortTile(M,L)}removeTile(I,M,L){this.getWorkerSource(I,M.type,M.source).removeTile(M,L)}removeDEMTile(I,M){this.getDEMWorkerSource(I,M.source).removeTile(M)}removeSource(I,M,L){if(!this.workerSources[I]||!this.workerSources[I][M.type]||!this.workerSources[I][M.type][M.source])return;const j=this.workerSources[I][M.type][M.source];delete this.workerSources[I][M.type][M.source],j.removeSource!==void 0?j.removeSource(M,L):L()}loadWorkerSource(I,M,L){try{this.self.importScripts(M.url),L()}catch(j){L(j.toString())}}syncRTLPluginState(I,M,L){try{h.plugin.setState(M);const j=h.plugin.getPluginURL();if(h.plugin.isLoaded()&&!h.plugin.isParsed()&&j!=null){this.self.importScripts(j);const Z=h.plugin.isParsed();L(Z?void 0:new Error(`RTL Text Plugin failed to import scripts from ${j}`),Z)}}catch(j){L(j.toString())}}getAvailableImages(I){let M=this.availableImages[I];return M||(M=[]),M}getLayerIndex(I){let M=this.layerIndexes[I];return M||(M=this.layerIndexes[I]=new ce),M}getWorkerSource(I,M,L){if(this.workerSources[I]||(this.workerSources[I]={}),this.workerSources[I][M]||(this.workerSources[I][M]={}),!this.workerSources[I][M][L]){const j={send:(Z,J,W)=>{this.actor.send(Z,J,W,I)}};this.workerSources[I][M][L]=new this.workerSourceTypes[M](j,this.getLayerIndex(I),this.getAvailableImages(I))}return this.workerSources[I][M][L]}getDEMWorkerSource(I,M){return this.demWorkerSources[I]||(this.demWorkerSources[I]={}),this.demWorkerSources[I][M]||(this.demWorkerSources[I][M]=new We),this.demWorkerSources[I][M]}}return h.isWorker()&&(self.worker=new cr(self)),cr}),ie(["./shared"],function(h){var ce="3.1.0";class Y{static testProp(t){if(!Y.docStyle)return t[0];for(let n=0;n{window.removeEventListener("click",Y.suppressClickInternal,!0)},0)}static mousePos(t,n){const a=t.getBoundingClientRect();return new h.Point(n.clientX-a.left-t.clientLeft,n.clientY-a.top-t.clientTop)}static touchPos(t,n){const a=t.getBoundingClientRect(),c=[];for(let p=0;p{t=[],n=0,a=0,c={}},o.addThrottleControl=x=>{const T=a++;return c[T]=x,T},o.removeThrottleControl=x=>{delete c[x],y()},o.getImage=(x,T,w=!0)=>{Ne.supported&&(x.headers||(x.headers={}),x.headers.accept="image/webp,*/*");const k={requestParameters:x,supportImageRefresh:w,callback:T,cancelled:!1,completed:!1,cancel:()=>{k.completed||k.cancelled||(k.cancelled=!0,k.innerRequest&&(k.innerRequest.cancel(),n--),y())}};return t.push(k),y(),k};const p=x=>{const{requestParameters:T,supportImageRefresh:w,callback:k}=x;return h.extend(T,{type:"image"}),(w!==!1||h.isWorker()||h.getProtocolAction(T.url)||T.headers&&!Object.keys(T.headers).reduce((O,B)=>O&&B==="accept",!0)?h.makeRequest:_)(T,(O,B,R,q)=>{m(x,k,O,B,R,q)})},m=(x,T,w,k,O,B)=>{w?T(w):k instanceof HTMLImageElement||k instanceof ImageBitmap?T(null,k):k&&((R,q)=>{typeof createImageBitmap=="function"?h.arrayBufferToImageBitmap(R,q):h.arrayBufferToImage(R,q)})(k,(R,q)=>{R!=null?T(R):q!=null&&T(null,q,{cacheControl:O,expires:B})}),x.cancelled||(x.completed=!0,n--,y())},y=()=>{const x=(()=>{const T=Object.keys(c);let w=!1;if(T.length>0){for(const k of T)if(w=c[k](),w)break}return w})()?h.config.MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:h.config.MAX_PARALLEL_IMAGE_REQUESTS;for(let T=n;T0;T++){const w=t.shift();if(w.cancelled){T--;continue}const k=p(w);n++,w.innerRequest=k}},_=(x,T)=>{const w=new Image,k=x.url;let O=!1;const B=x.credentials;return B&&B==="include"?w.crossOrigin="use-credentials":(B&&B==="same-origin"||!h.sameOrigin(k))&&(w.crossOrigin="anonymous"),w.fetchPriority="high",w.onload=()=>{T(null,w),w.onerror=w.onload=null},w.onerror=()=>{O||T(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.")),w.onerror=w.onload=null},w.src=k,{cancel:()=>{O=!0,w.src=""}}}}(bt||(bt={})),bt.resetRequestQueue();var et,Bt=bt;(function(o){o.Glyphs="Glyphs",o.Image="Image",o.Source="Source",o.SpriteImage="SpriteImage",o.SpriteJSON="SpriteJSON",o.Style="Style",o.Tile="Tile",o.Unknown="Unknown"})(et||(et={}));class pt{constructor(t){this._transformRequestFn=t}transformRequest(t,n){return this._transformRequestFn&&this._transformRequestFn(t,n)||{url:t}}normalizeSpriteURL(t,n,a){const c=function(p){const m=p.match(ri);if(!m)throw new Error(`Unable to parse URL "${p}"`);return{protocol:m[1],authority:m[2],path:m[3]||"/",params:m[4]?m[4].split("&"):[]}}(t);return c.path+=`${n}${a}`,function(p){const m=p.params.length?`?${p.params.join("&")}`:"";return`${p.protocol}://${p.authority}${p.path}${m}`}(c)}setTransformRequest(t){this._transformRequestFn=t}}const ri=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function Rt(o){var t=new h.ARRAY_TYPE(3);return t[0]=o[0],t[1]=o[1],t[2]=o[2],t}var Ai,Mt=function(o,t,n){return o[0]=t[0]-n[0],o[1]=t[1]-n[1],o[2]=t[2]-n[2],o};Ai=new h.ARRAY_TYPE(3),h.ARRAY_TYPE!=Float32Array&&(Ai[0]=0,Ai[1]=0,Ai[2]=0);var Ct=function(o){var t=o[0],n=o[1];return t*t+n*n};function ni(o){const t=[];if(typeof o=="string")t.push({id:"default",url:o});else if(o&&o.length>0){const n=[];for(const{id:a,url:c}of o){const p=`${a}${c}`;n.indexOf(p)===-1&&(n.push(p),t.push({id:a,url:c}))}}return t}function Vt(o,t,n,a,c){if(a)return void o(a);if(c!==Object.values(t).length||c!==Object.values(n).length)return;const p={};for(const m in t){p[m]={};const y=h.exported.getImageCanvasContext(n[m]),_=t[m];for(const x in _){const{width:T,height:w,x:k,y:O,sdf:B,pixelRatio:R,stretchX:q,stretchY:H,content:se}=_[x];p[m][x]={data:null,pixelRatio:R,sdf:B,stretchX:q,stretchY:H,content:se,spriteData:{width:T,height:w,x:k,y:O,context:y}}}}o(null,p)}(function(){var o=new h.ARRAY_TYPE(2);h.ARRAY_TYPE!=Float32Array&&(o[0]=0,o[1]=0)})();class yt{constructor(t,n,a,c){this.context=t,this.format=a,this.texture=t.gl.createTexture(),this.update(n,c)}update(t,n,a){const{width:c,height:p}=t,m=!(this.size&&this.size[0]===c&&this.size[1]===p||a),{context:y}=this,{gl:_}=y;if(this.useMipmap=!!(n&&n.useMipmap),_.bindTexture(_.TEXTURE_2D,this.texture),y.pixelStoreUnpackFlipY.set(!1),y.pixelStoreUnpack.set(1),y.pixelStoreUnpackPremultiplyAlpha.set(this.format===_.RGBA&&(!n||n.premultiply!==!1)),m)this.size=[c,p],t instanceof HTMLImageElement||t instanceof HTMLCanvasElement||t instanceof HTMLVideoElement||t instanceof ImageData||h.isImageBitmap(t)?_.texImage2D(_.TEXTURE_2D,0,this.format,this.format,_.UNSIGNED_BYTE,t):_.texImage2D(_.TEXTURE_2D,0,this.format,c,p,0,this.format,_.UNSIGNED_BYTE,t.data);else{const{x,y:T}=a||{x:0,y:0};t instanceof HTMLImageElement||t instanceof HTMLCanvasElement||t instanceof HTMLVideoElement||t instanceof ImageData||h.isImageBitmap(t)?_.texSubImage2D(_.TEXTURE_2D,0,x,T,_.RGBA,_.UNSIGNED_BYTE,t):_.texSubImage2D(_.TEXTURE_2D,0,x,T,c,p,_.RGBA,_.UNSIGNED_BYTE,t.data)}this.useMipmap&&this.isSizePowerOfTwo()&&_.generateMipmap(_.TEXTURE_2D)}bind(t,n,a){const{context:c}=this,{gl:p}=c;p.bindTexture(p.TEXTURE_2D,this.texture),a!==p.LINEAR_MIPMAP_NEAREST||this.isSizePowerOfTwo()||(a=p.LINEAR),t!==this.filter&&(p.texParameteri(p.TEXTURE_2D,p.TEXTURE_MAG_FILTER,t),p.texParameteri(p.TEXTURE_2D,p.TEXTURE_MIN_FILTER,a||t),this.filter=t),n!==this.wrap&&(p.texParameteri(p.TEXTURE_2D,p.TEXTURE_WRAP_S,n),p.texParameteri(p.TEXTURE_2D,p.TEXTURE_WRAP_T,n),this.wrap=n)}isSizePowerOfTwo(){return this.size[0]===this.size[1]&&Math.log(this.size[0])/Math.LN2%1==0}destroy(){const{gl:t}=this.context;t.deleteTexture(this.texture),this.texture=null}}function ga(o){const{userImage:t}=o;return!!(t&&t.render&&t.render())&&(o.data.replace(new Uint8Array(t.data.buffer)),!0)}class Zi extends h.Evented{constructor(){super(),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new h.RGBAImage({width:1,height:1}),this.dirty=!0}isLoaded(){return this.loaded}setLoaded(t){if(this.loaded!==t&&(this.loaded=t,t)){for(const{ids:n,callback:a}of this.requestors)this._notify(n,a);this.requestors=[]}}getImage(t){const n=this.images[t];if(n&&!n.data&&n.spriteData){const a=n.spriteData;n.data=new h.RGBAImage({width:a.width,height:a.height},a.context.getImageData(a.x,a.y,a.width,a.height).data),n.spriteData=null}return n}addImage(t,n){if(this.images[t])throw new Error(`Image id ${t} already exist, use updateImage instead`);this._validate(t,n)&&(this.images[t]=n)}_validate(t,n){let a=!0;const c=n.data||n.spriteData;return this._validateStretch(n.stretchX,c&&c.width)||(this.fire(new h.ErrorEvent(new Error(`Image "${t}" has invalid "stretchX" value`))),a=!1),this._validateStretch(n.stretchY,c&&c.height)||(this.fire(new h.ErrorEvent(new Error(`Image "${t}" has invalid "stretchY" value`))),a=!1),this._validateContent(n.content,n)||(this.fire(new h.ErrorEvent(new Error(`Image "${t}" has invalid "content" value`))),a=!1),a}_validateStretch(t,n){if(!t)return!0;let a=0;for(const c of t){if(c[0]-1);_++,p[_]=y,m[_]=x,m[_+1]=xr}for(let y=0,_=0;y{let y=this.entries[c];y||(y=this.entries[c]={glyphs:{},requests:{},ranges:{}});let _=y.glyphs[p];if(_!==void 0)return void m(null,{stack:c,id:p,glyph:_});if(_=this._tinySDF(y,c,p),_)return y.glyphs[p]=_,void m(null,{stack:c,id:p,glyph:_});const x=Math.floor(p/256);if(256*x>65535)return void m(new Error("glyphs > 65535 not supported"));if(y.ranges[x])return void m(null,{stack:c,id:p,glyph:_});if(!this.url)return void m(new Error("glyphsUrl is not set"));let T=y.requests[x];T||(T=y.requests[x]=[],vr.loadGlyphRange(c,x,this.url,this.requestManager,(w,k)=>{if(k){for(const O in k)this._doesCharSupportLocalGlyph(+O)||(y.glyphs[+O]=k[+O]);y.ranges[x]=!0}for(const O of T)O(w,k);delete y.requests[x]})),T.push((w,k)=>{w?m(w):k&&m(null,{stack:c,id:p,glyph:k[p]||null})})},(c,p)=>{if(c)n(c);else if(p){const m={};for(const{stack:y,id:_,glyph:x}of p)(m[y]||(m[y]={}))[_]=x&&{id:x.id,bitmap:x.bitmap.clone(),metrics:x.metrics};n(null,m)}})}_doesCharSupportLocalGlyph(t){return!!this.localIdeographFontFamily&&(h.unicodeBlockLookup["CJK Unified Ideographs"](t)||h.unicodeBlockLookup["Hangul Syllables"](t)||h.unicodeBlockLookup.Hiragana(t)||h.unicodeBlockLookup.Katakana(t))}_tinySDF(t,n,a){const c=this.localIdeographFontFamily;if(!c||!this._doesCharSupportLocalGlyph(a))return;let p=t.tinySDF;if(!p){let y="400";/bold/i.test(n)?y="900":/medium/i.test(n)?y="500":/light/i.test(n)&&(y="200"),p=t.tinySDF=new vr.TinySDF({fontSize:24,buffer:3,radius:8,cutoff:.25,fontFamily:c,fontWeight:y})}const m=p.draw(String.fromCharCode(a));return{id:a,bitmap:new h.AlphaImage({width:m.width||30,height:m.height||30},m.data),metrics:{width:m.glyphWidth||24,height:m.glyphHeight||24,left:m.glyphLeft||0,top:m.glyphTop-27||-8,advance:m.glyphAdvance||24}}}}vr.loadGlyphRange=function(o,t,n,a,c){const p=256*t,m=p+255,y=a.transformRequest(n.replace("{fontstack}",o).replace("{range}",`${p}-${m}`),et.Glyphs);h.getArrayBuffer(y,(_,x)=>{if(_)c(_);else if(x){const T={};for(const w of h.parseGlyphPbf(x))T[w.id]=w;c(null,T)}})},vr.TinySDF=class{constructor({fontSize:o=24,buffer:t=3,radius:n=8,cutoff:a=.25,fontFamily:c="sans-serif",fontWeight:p="normal",fontStyle:m="normal"}={}){this.buffer=t,this.cutoff=a,this.radius=n;const y=this.size=o+4*t,_=this._createCanvas(y),x=this.ctx=_.getContext("2d",{willReadFrequently:!0});x.font=`${m} ${p} ${o}px ${c}`,x.textBaseline="alphabetic",x.textAlign="left",x.fillStyle="black",this.gridOuter=new Float64Array(y*y),this.gridInner=new Float64Array(y*y),this.f=new Float64Array(y),this.z=new Float64Array(y+1),this.v=new Uint16Array(y)}_createCanvas(o){const t=document.createElement("canvas");return t.width=t.height=o,t}draw(o){const{width:t,actualBoundingBoxAscent:n,actualBoundingBoxDescent:a,actualBoundingBoxLeft:c,actualBoundingBoxRight:p}=this.ctx.measureText(o),m=Math.ceil(n),y=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(p-c))),_=Math.min(this.size-this.buffer,m+Math.ceil(a)),x=y+2*this.buffer,T=_+2*this.buffer,w=Math.max(x*T,0),k=new Uint8ClampedArray(w),O={data:k,width:x,height:T,glyphWidth:y,glyphHeight:_,glyphTop:m,glyphLeft:0,glyphAdvance:t};if(y===0||_===0)return O;const{ctx:B,buffer:R,gridInner:q,gridOuter:H}=this;B.clearRect(R,R,y,_),B.fillText(o,R,R+m);const se=B.getImageData(R,R,y,_);H.fill(xr,0,w),q.fill(0,0,w);for(let $=0;$<_;$++)for(let re=0;re0?_e*_e:0,q[me]=_e<0?_e*_e:0}}Lr(H,0,0,x,T,x,this.f,this.v,this.z),Lr(q,R,R,y,_,x,this.f,this.v,this.z);for(let $=0;$1&&(_=t[++y]);const T=Math.abs(x-_.left),w=Math.abs(x-_.right),k=Math.min(T,w);let O;const B=p/a*(c+1);if(_.isDash){const R=c-Math.abs(B);O=Math.sqrt(k*k+R*R)}else O=c-Math.sqrt(k*k+B*B);this.data[m+x]=Math.max(0,Math.min(255,O+128))}}}addRegularDash(t){for(let y=t.length-1;y>=0;--y){const _=t[y],x=t[y+1];_.zeroLength?t.splice(y,1):x&&x.isDash===_.isDash&&(x.left=_.left,t.splice(y,1))}const n=t[0],a=t[t.length-1];n.isDash===a.isDash&&(n.left=a.left-this.width,a.right=n.right+this.width);const c=this.width*this.nextRow;let p=0,m=t[p];for(let y=0;y1&&(m=t[++p]);const _=Math.abs(y-m.left),x=Math.abs(y-m.right),T=Math.min(_,x);this.data[c+y]=Math.max(0,Math.min(255,(m.isDash?T:-T)+128))}}addDash(t,n){const a=n?7:0,c=2*a+1;if(this.nextRow+c>this.height)return h.warnOnce("LineAtlas out of space"),null;let p=0;for(let y=0;y{c.send(t,n,p)},a=a||function(){})}getActor(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]}remove(t=!0){this.actors.forEach(n=>{n.remove()}),this.actors=[],t&&this.workerPool.release(this.id)}}function Gi(o,t,n){const a=function(c,p){if(c)return n(c);if(p){const m=h.pick(h.extend(p,o),["tiles","minzoom","maxzoom","attribution","bounds","scheme","tileSize","encoding"]);p.vector_layers&&(m.vectorLayers=p.vector_layers,m.vectorLayerIds=m.vectorLayers.map(y=>y.id)),n(null,m)}};return o.url?h.getJSON(t.transformRequest(o.url,et.Source),a):h.exported.frame(()=>a(null,o))}bi.Actor=h.Actor;class hi{constructor(t,n){t&&(n?this.setSouthWest(t).setNorthEast(n):Array.isArray(t)&&(t.length===4?this.setSouthWest([t[0],t[1]]).setNorthEast([t[2],t[3]]):this.setSouthWest(t[0]).setNorthEast(t[1])))}setNorthEast(t){return this._ne=t instanceof h.LngLat?new h.LngLat(t.lng,t.lat):h.LngLat.convert(t),this}setSouthWest(t){return this._sw=t instanceof h.LngLat?new h.LngLat(t.lng,t.lat):h.LngLat.convert(t),this}extend(t){const n=this._sw,a=this._ne;let c,p;if(t instanceof h.LngLat)c=t,p=t;else{if(!(t instanceof hi))return Array.isArray(t)?t.length===4||t.every(Array.isArray)?this.extend(hi.convert(t)):this.extend(h.LngLat.convert(t)):t&&("lng"in t||"lon"in t)&&"lat"in t?this.extend(h.LngLat.convert(t)):this;if(c=t._sw,p=t._ne,!c||!p)return this}return n||a?(n.lng=Math.min(c.lng,n.lng),n.lat=Math.min(c.lat,n.lat),a.lng=Math.max(p.lng,a.lng),a.lat=Math.max(p.lat,a.lat)):(this._sw=new h.LngLat(c.lng,c.lat),this._ne=new h.LngLat(p.lng,p.lat)),this}getCenter(){return new h.LngLat((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new h.LngLat(this.getWest(),this.getNorth())}getSouthEast(){return new h.LngLat(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(t){const{lng:n,lat:a}=h.LngLat.convert(t);let c=this._sw.lng<=n&&n<=this._ne.lng;return this._sw.lng>this._ne.lng&&(c=this._sw.lng>=n&&n>=this._ne.lng),this._sw.lat<=a&&a<=this._ne.lat&&c}static convert(t){return t instanceof hi?t:t&&new hi(t)}static fromLngLat(t,n=0){const a=360*n/40075017,c=a/Math.cos(Math.PI/180*t.lat);return new hi(new h.LngLat(t.lng-c,t.lat-a),new h.LngLat(t.lng+c,t.lat+a))}}class yn{constructor(t,n,a){this.bounds=hi.convert(this.validateBounds(t)),this.minzoom=n||0,this.maxzoom=a||24}validateBounds(t){return Array.isArray(t)&&t.length===4?[Math.max(-180,t[0]),Math.max(-90,t[1]),Math.min(180,t[2]),Math.min(90,t[3])]:[-180,-90,180,90]}contains(t){const n=Math.pow(2,t.z),a=Math.floor(h.mercatorXfromLng(this.bounds.getWest())*n),c=Math.floor(h.mercatorYfromLat(this.bounds.getNorth())*n),p=Math.ceil(h.mercatorXfromLng(this.bounds.getEast())*n),m=Math.ceil(h.mercatorYfromLat(this.bounds.getSouth())*n);return t.x>=a&&t.x=c&&t.y{this._tileJSONRequest=null,this._loaded=!0,this.map.style.sourceCaches[this.id].clearTiles(),t?this.fire(new h.ErrorEvent(t)):n&&(h.extend(this,n),n.bounds&&(this.tileBounds=new yn(n.bounds,this.minzoom,this.maxzoom)),this.fire(new h.Event("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new h.Event("data",{dataType:"source",sourceDataType:"content"})))})}loaded(){return this._loaded}hasTile(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)}onAdd(t){this.map=t,this.load()}setSourceProperty(t){this._tileJSONRequest&&this._tileJSONRequest.cancel(),t(),this.load()}setTiles(t){return this.setSourceProperty(()=>{this._options.tiles=t}),this}setUrl(t){return this.setSourceProperty(()=>{this.url=t,this._options.url=t}),this}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)}serialize(){return h.extend({},this._options)}loadTile(t,n){const a=t.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),c={request:this.map._requestManager.transformRequest(a,et.Tile),uid:t.uid,tileID:t.tileID,zoom:t.tileID.overscaledZ,tileSize:this.tileSize*t.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};function p(m,y){return delete t.request,t.aborted?n(null):m&&m.status!==404?n(m):(y&&y.resourceTiming&&(t.resourceTiming=y.resourceTiming),this.map._refreshExpiredTiles&&y&&t.setExpiryData(y),t.loadVectorData(y,this.map.painter),n(null),void(t.reloadCallback&&(this.loadTile(t,t.reloadCallback),t.reloadCallback=null)))}c.request.collectResourceTiming=this._collectResourceTiming,t.actor&&t.state!=="expired"?t.state==="loading"?t.reloadCallback=n:t.request=t.actor.send("reloadTile",c,p.bind(this)):(t.actor=this.dispatcher.getActor(),t.request=t.actor.send("loadTile",c,p.bind(this)))}abortTile(t){t.request&&(t.request.cancel(),delete t.request),t.actor&&t.actor.send("abortTile",{uid:t.uid,type:this.type,source:this.id},void 0)}unloadTile(t){t.unloadVectorData(),t.actor&&t.actor.send("removeTile",{uid:t.uid,type:this.type,source:this.id},void 0)}hasTransition(){return!1}}class Kr extends h.Evented{constructor(t,n,a,c){super(),this.id=t,this.dispatcher=a,this.setEventedParent(c),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=h.extend({type:"raster"},n),h.extend(this,h.pick(n,["url","scheme","tileSize"]))}load(){this._loaded=!1,this.fire(new h.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=Gi(this._options,this.map._requestManager,(t,n)=>{this._tileJSONRequest=null,this._loaded=!0,t?this.fire(new h.ErrorEvent(t)):n&&(h.extend(this,n),n.bounds&&(this.tileBounds=new yn(n.bounds,this.minzoom,this.maxzoom)),this.fire(new h.Event("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new h.Event("data",{dataType:"source",sourceDataType:"content"})))})}loaded(){return this._loaded}onAdd(t){this.map=t,this.load()}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)}serialize(){return h.extend({},this._options)}hasTile(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)}loadTile(t,n){const a=t.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme);t.request=Bt.getImage(this.map._requestManager.transformRequest(a,et.Tile),(c,p,m)=>{if(delete t.request,t.aborted)t.state="unloaded",n(null);else if(c)t.state="errored",n(c);else if(p){this.map._refreshExpiredTiles&&m&&t.setExpiryData(m);const y=this.map.painter.context,_=y.gl;t.texture=this.map.painter.getTileTexture(p.width),t.texture?t.texture.update(p,{useMipmap:!0}):(t.texture=new yt(y,p,_.RGBA,{useMipmap:!0}),t.texture.bind(_.LINEAR,_.CLAMP_TO_EDGE,_.LINEAR_MIPMAP_NEAREST),y.extTextureFilterAnisotropic&&_.texParameterf(_.TEXTURE_2D,y.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,y.extTextureFilterAnisotropicMax)),t.state="loaded",n(null)}},this.map._refreshExpiredTiles)}abortTile(t,n){t.request&&(t.request.cancel(),delete t.request),n()}unloadTile(t,n){t.texture&&this.map.painter.saveTileTexture(t.texture),n()}hasTransition(){return!1}}class Rr extends Kr{constructor(t,n,a,c){super(t,n,a,c),this.type="raster-dem",this.maxzoom=22,this._options=h.extend({type:"raster-dem"},n),this.encoding=n.encoding||"mapbox"}serialize(){return{type:"raster-dem",url:this.url,tileSize:this.tileSize,tiles:this.tiles,bounds:this.bounds,encoding:this.encoding}}loadTile(t,n){const a=t.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme);function c(p,m){p&&(t.state="errored",n(p)),m&&(t.dem=m,t.needsHillshadePrepare=!0,t.needsTerrainPrepare=!0,t.state="loaded",n(null))}t.request=Bt.getImage(this.map._requestManager.transformRequest(a,et.Tile),function(p,m){if(delete t.request,t.aborted)t.state="unloaded",n(null);else if(p)t.state="errored",n(p);else if(m){this.map._refreshExpiredTiles&&t.setExpiryData(m),delete m.cacheControl,delete m.expires;const y=h.isImageBitmap(m)&&(_n==null&&(_n=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),_n)?m:h.exported.getImageData(m,1),_={uid:t.uid,coord:t.tileID,source:this.id,rawImageData:y,encoding:this.encoding};t.actor&&t.state!=="expired"||(t.actor=this.dispatcher.getActor(),t.actor.send("loadDEMTile",_,c.bind(this)))}}.bind(this),this.map._refreshExpiredTiles),t.neighboringTiles=this._getNeighboringTiles(t.tileID)}_getNeighboringTiles(t){const n=t.canonical,a=Math.pow(2,n.z),c=(n.x-1+a)%a,p=n.x===0?t.wrap-1:t.wrap,m=(n.x+1+a)%a,y=n.x+1===a?t.wrap+1:t.wrap,_={};return _[new h.OverscaledTileID(t.overscaledZ,p,n.z,c,n.y).key]={backfilled:!1},_[new h.OverscaledTileID(t.overscaledZ,y,n.z,m,n.y).key]={backfilled:!1},n.y>0&&(_[new h.OverscaledTileID(t.overscaledZ,p,n.z,c,n.y-1).key]={backfilled:!1},_[new h.OverscaledTileID(t.overscaledZ,t.wrap,n.z,n.x,n.y-1).key]={backfilled:!1},_[new h.OverscaledTileID(t.overscaledZ,y,n.z,m,n.y-1).key]={backfilled:!1}),n.y+1{if(this._pendingLoads--,this._removed||c&&c.abandoned)return void this.fire(new h.Event("dataabort",{dataType:"source"}));let p=null;if(c&&c.resourceTiming&&c.resourceTiming[this.id]&&(p=c.resourceTiming[this.id].slice(0)),a)return void this.fire(new h.ErrorEvent(a));const m={dataType:"source"};this._collectResourceTiming&&p&&p.length>0&&h.extend(m,{resourceTiming:p}),this.fire(new h.Event("data",{...m,sourceDataType:"metadata"})),this.fire(new h.Event("data",{...m,sourceDataType:"content"}))})}loaded(){return this._pendingLoads===0}loadTile(t,n){const a=t.actor?"reloadTile":"loadTile";t.actor=this.actor;const c={type:this.type,uid:t.uid,tileID:t.tileID,zoom:t.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};t.request=this.actor.send(a,c,(p,m)=>(delete t.request,t.unloadVectorData(),t.aborted?n(null):p?n(p):(t.loadVectorData(m,this.map.painter,a==="reloadTile"),n(null))))}abortTile(t){t.request&&(t.request.cancel(),delete t.request),t.aborted=!0}unloadTile(t){t.unloadVectorData(),this.actor.send("removeTile",{uid:t.uid,type:this.type,source:this.id})}onRemove(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})}serialize(){return h.extend({},this._options,{type:this.type,data:this._data})}hasTransition(){return!1}}var wr=h.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]);class Xi extends h.Evented{constructor(t,n,a,c){super(),this.id=t,this.dispatcher=a,this.coordinates=n.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(c),this.options=n}load(t,n){this._loaded=!1,this.fire(new h.Event("dataloading",{dataType:"source"})),this.url=this.options.url,this._request=Bt.getImage(this.map._requestManager.transformRequest(this.url,et.Image),(a,c)=>{this._request=null,this._loaded=!0,a?this.fire(new h.ErrorEvent(a)):c&&(this.image=c,t&&(this.coordinates=t),n&&n(),this._finishLoading())})}loaded(){return this._loaded}updateImage(t){return t.url?(this._request&&(this._request.cancel(),this._request=null),this.options.url=t.url,this.load(t.coordinates,()=>{this.texture=null}),this):this}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new h.Event("data",{dataType:"source",sourceDataType:"metadata"})))}onAdd(t){this.map=t,this.load()}onRemove(){this._request&&(this._request.cancel(),this._request=null)}setCoordinates(t){this.coordinates=t;const n=t.map(h.MercatorCoordinate.fromLngLat);this.tileID=function(c){let p=1/0,m=1/0,y=-1/0,_=-1/0;for(const k of c)p=Math.min(p,k.x),m=Math.min(m,k.y),y=Math.max(y,k.x),_=Math.max(_,k.y);const x=Math.max(y-p,_-m),T=Math.max(0,Math.floor(-Math.log(x)/Math.LN2)),w=Math.pow(2,T);return new h.CanonicalTileID(T,Math.floor((p+y)/2*w),Math.floor((m+_)/2*w))}(n),this.minzoom=this.maxzoom=this.tileID.z;const a=n.map(c=>this.tileID.getTilePoint(c)._round());return this._boundsArray=new h.RasterBoundsArray,this._boundsArray.emplaceBack(a[0].x,a[0].y,0,0),this._boundsArray.emplaceBack(a[1].x,a[1].y,h.EXTENT,0),this._boundsArray.emplaceBack(a[3].x,a[3].y,0,h.EXTENT),this._boundsArray.emplaceBack(a[2].x,a[2].y,h.EXTENT,h.EXTENT),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new h.Event("data",{dataType:"source",sourceDataType:"content"})),this}prepare(){if(Object.keys(this.tiles).length===0||!this.image)return;const t=this.map.painter.context,n=t.gl;this.boundsBuffer||(this.boundsBuffer=t.createVertexBuffer(this._boundsArray,wr.members)),this.boundsSegments||(this.boundsSegments=h.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new yt(t,this.image,n.RGBA),this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE));let a=!1;for(const c in this.tiles){const p=this.tiles[c];p.state!=="loaded"&&(p.state="loaded",p.texture=this.texture,a=!0)}a&&this.fire(new h.Event("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}loadTile(t,n){this.tileID&&this.tileID.equals(t.tileID.canonical)?(this.tiles[String(t.tileID.wrap)]=t,t.buckets={},n(null)):(t.state="errored",n(null))}serialize(){return{type:"image",url:this.options.url,coordinates:this.coordinates}}hasTransition(){return!1}}class vn extends Xi{constructor(t,n,a,c){super(t,n,a,c),this.roundZoom=!0,this.type="video",this.options=n}load(){this._loaded=!1;const t=this.options;this.urls=[];for(const n of t.urls)this.urls.push(this.map._requestManager.transformRequest(n,et.Source).url);h.getVideo(this.urls,(n,a)=>{this._loaded=!0,n?this.fire(new h.ErrorEvent(n)):a&&(this.video=a,this.video.loop=!0,this.video.addEventListener("playing",()=>{this.map.triggerRepaint()}),this.map&&this.video.play(),this._finishLoading())})}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(t){if(this.video){const n=this.video.seekable;tn.end(0)?this.fire(new h.ErrorEvent(new h.ValidationError(`sources.${this.id}`,null,`Playback for this video can be set only between the ${n.start(0)} and ${n.end(0)}-second mark.`))):this.video.currentTime=t}}getVideo(){return this.video}onAdd(t){this.map||(this.map=t,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}prepare(){if(Object.keys(this.tiles).length===0||this.video.readyState<2)return;const t=this.map.painter.context,n=t.gl;this.boundsBuffer||(this.boundsBuffer=t.createVertexBuffer(this._boundsArray,wr.members)),this.boundsSegments||(this.boundsSegments=h.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE),n.texSubImage2D(n.TEXTURE_2D,0,0,0,n.RGBA,n.UNSIGNED_BYTE,this.video)):(this.texture=new yt(t,this.video,n.RGBA),this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE));let a=!1;for(const c in this.tiles){const p=this.tiles[c];p.state!=="loaded"&&(p.state="loaded",p.texture=this.texture,a=!0)}a&&this.fire(new h.Event("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"video",urls:this.urls,coordinates:this.coordinates}}hasTransition(){return this.video&&!this.video.paused}}class le extends Xi{constructor(t,n,a,c){super(t,n,a,c),n.coordinates?Array.isArray(n.coordinates)&&n.coordinates.length===4&&!n.coordinates.some(p=>!Array.isArray(p)||p.length!==2||p.some(m=>typeof m!="number"))||this.fire(new h.ErrorEvent(new h.ValidationError(`sources.${t}`,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new h.ErrorEvent(new h.ValidationError(`sources.${t}`,null,'missing required property "coordinates"'))),n.animate&&typeof n.animate!="boolean"&&this.fire(new h.ErrorEvent(new h.ValidationError(`sources.${t}`,null,'optional "animate" property must be a boolean value'))),n.canvas?typeof n.canvas=="string"||n.canvas instanceof HTMLCanvasElement||this.fire(new h.ErrorEvent(new h.ValidationError(`sources.${t}`,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new h.ErrorEvent(new h.ValidationError(`sources.${t}`,null,'missing required property "canvas"'))),this.options=n,this.animate=n.animate===void 0||n.animate}load(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof HTMLCanvasElement?this.options.canvas:document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new h.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())}getCanvas(){return this.canvas}onAdd(t){this.map=t,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this.pause()}prepare(){let t=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,t=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,t=!0),this._hasInvalidDimensions()||Object.keys(this.tiles).length===0)return;const n=this.map.painter.context,a=n.gl;this.boundsBuffer||(this.boundsBuffer=n.createVertexBuffer(this._boundsArray,wr.members)),this.boundsSegments||(this.boundsSegments=h.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(t||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new yt(n,this.canvas,a.RGBA,{premultiply:!0});let c=!1;for(const p in this.tiles){const m=this.tiles[p];m.state!=="loaded"&&(m.state="loaded",m.texture=this.texture,c=!0)}c&&this.fire(new h.Event("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"canvas",coordinates:this.coordinates}}hasTransition(){return this._playing}_hasInvalidDimensions(){for(const t of[this.canvas.width,this.canvas.height])if(isNaN(t)||t<=0)return!0;return!1}}const Fr={vector:xn,raster:Kr,"raster-dem":Rr,geojson:br,video:vn,image:Xi,canvas:le};function $n(o,t){const n=h.create();return h.translate(n,n,[1,1,0]),h.scale(n,n,[.5*o.width,.5*o.height,1]),h.multiply(n,n,o.calculatePosMatrix(t.toUnwrapped()))}function wt(o,t,n,a,c,p){const m=function(w,k,O){if(w)for(const B of w){const R=k[B];if(R&&R.source===O&&R.type==="fill-extrusion")return!0}else for(const B in k){const R=k[B];if(R.source===O&&R.type==="fill-extrusion")return!0}return!1}(c&&c.layers,t,o.id),y=p.maxPitchScaleFactor(),_=o.tilesIn(a,y,m);_.sort(lt);const x=[];for(const w of _)x.push({wrappedTileID:w.tileID.wrapped().key,queryResults:w.tile.queryRenderedFeatures(t,n,o._state,w.queryGeometry,w.cameraQueryGeometry,w.scale,c,p,y,$n(o.transform,w.tileID))});const T=function(w){const k={},O={};for(const B of w){const R=B.queryResults,q=B.wrappedTileID,H=O[q]=O[q]||{};for(const se in R){const $=R[se],re=H[se]=H[se]||{},oe=k[se]=k[se]||[];for(const me of $)re[me.featureIndex]||(re[me.featureIndex]=!0,oe.push(me))}}return k}(x);for(const w in T)T[w].forEach(k=>{const O=k.feature,B=o.getFeatureState(O.layer["source-layer"],O.id);O.source=O.layer.source,O.layer["source-layer"]&&(O.sourceLayer=O.layer["source-layer"]),O.state=B});return T}function lt(o,t){const n=o.tileID,a=t.tileID;return n.overscaledZ-a.overscaledZ||n.canonical.y-a.canonical.y||n.wrap-a.wrap||n.canonical.x-a.canonical.x}class Yr{constructor(t,n){this.timeAdded=0,this.fadeEndTime=0,this.tileID=t,this.uid=h.uniqueId(),this.uses=0,this.tileSize=n,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.rtt=[],this.rttCoords={},this.expiredRequestCount=0,this.state="loading"}registerFadeDuration(t){const n=t+this.timeAdded;np.getLayer(x)).filter(Boolean);if(_.length!==0){y.layers=_,y.stateDependentLayerIds&&(y.stateDependentLayers=y.stateDependentLayerIds.map(x=>_.filter(T=>T.id===x)[0]));for(const x of _)m[x.id]=y}}return m}(t.buckets,n.style),this.hasSymbolBuckets=!1;for(const c in this.buckets){const p=this.buckets[c];if(p instanceof h.SymbolBucket){if(this.hasSymbolBuckets=!0,!a)break;p.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(const c in this.buckets){const p=this.buckets[c];if(p instanceof h.SymbolBucket&&p.hasRTLText){this.hasRTLText=!0,h.lazyLoadRTLTextPlugin();break}}this.queryPadding=0;for(const c in this.buckets){const p=this.buckets[c];this.queryPadding=Math.max(this.queryPadding,n.style.getLayer(c).queryRadius(p))}t.imageAtlas&&(this.imageAtlas=t.imageAtlas),t.glyphAtlasImage&&(this.glyphAtlasImage=t.glyphAtlasImage)}else this.collisionBoxArray=new h.CollisionBoxArray}unloadVectorData(){for(const t in this.buckets)this.buckets[t].destroy();this.buckets={},this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.imageAtlas&&(this.imageAtlas=null),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.latestFeatureIndex=null,this.state="unloaded"}getBucket(t){return this.buckets[t.id]}upload(t){for(const a in this.buckets){const c=this.buckets[a];c.uploadPending()&&c.upload(t)}const n=t.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new yt(t,this.imageAtlas.image,n.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new yt(t,this.glyphAtlasImage,n.ALPHA),this.glyphAtlasImage=null)}prepare(t){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(t,this.imageAtlasTexture)}queryRenderedFeatures(t,n,a,c,p,m,y,_,x,T){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:c,cameraQueryGeometry:p,scale:m,tileSize:this.tileSize,pixelPosMatrix:T,transform:_,params:y,queryPadding:this.queryPadding*x},t,n,a):{}}querySourceFeatures(t,n){const a=this.latestFeatureIndex;if(!a||!a.rawTileData)return;const c=a.loadVTLayers(),p=n&&n.sourceLayer?n.sourceLayer:"",m=c._geojsonTileLayer||c[p];if(!m)return;const y=h.createFilter(n&&n.filter),{z:_,x,y:T}=this.tileID.canonical,w={z:_,x,y:T};for(let k=0;ka)c=!1;else if(n)if(this.expirationTime{this.remove(t,p)},a)),this.data[c].push(p),this.order.push(c),this.order.length>this.max){const m=this._getAndRemoveByKey(this.order[0]);m&&this.onRemove(m)}return this}has(t){return t.wrapped().key in this.data}getAndRemove(t){return this.has(t)?this._getAndRemoveByKey(t.wrapped().key):null}_getAndRemoveByKey(t){const n=this.data[t].shift();return n.timeout&&clearTimeout(n.timeout),this.data[t].length===0&&delete this.data[t],this.order.splice(this.order.indexOf(t),1),n.value}getByKey(t){const n=this.data[t];return n?n[0].value:null}get(t){return this.has(t)?this.data[t.wrapped().key][0].value:null}remove(t,n){if(!this.has(t))return this;const a=t.wrapped().key,c=n===void 0?0:this.data[a].indexOf(n),p=this.data[a][c];return this.data[a].splice(c,1),p.timeout&&clearTimeout(p.timeout),this.data[a].length===0&&delete this.data[a],this.onRemove(p.value),this.order.splice(this.order.indexOf(a),1),this}setMaxSize(t){for(this.max=t;this.order.length>this.max;){const n=this._getAndRemoveByKey(this.order[0]);n&&this.onRemove(n)}return this}filter(t){const n=[];for(const a in this.data)for(const c of this.data[a])t(c.value)||n.push(c);for(const a of n)this.remove(a.value.tileID,a)}}class fs{constructor(){this.state={},this.stateChanges={},this.deletedStates={}}updateState(t,n,a){const c=String(n);if(this.stateChanges[t]=this.stateChanges[t]||{},this.stateChanges[t][c]=this.stateChanges[t][c]||{},h.extend(this.stateChanges[t][c],a),this.deletedStates[t]===null){this.deletedStates[t]={};for(const p in this.state[t])p!==c&&(this.deletedStates[t][p]=null)}else if(this.deletedStates[t]&&this.deletedStates[t][c]===null){this.deletedStates[t][c]={};for(const p in this.state[t][c])a[p]||(this.deletedStates[t][c][p]=null)}else for(const p in a)this.deletedStates[t]&&this.deletedStates[t][c]&&this.deletedStates[t][c][p]===null&&delete this.deletedStates[t][c][p]}removeFeatureState(t,n,a){if(this.deletedStates[t]===null)return;const c=String(n);if(this.deletedStates[t]=this.deletedStates[t]||{},a&&n!==void 0)this.deletedStates[t][c]!==null&&(this.deletedStates[t][c]=this.deletedStates[t][c]||{},this.deletedStates[t][c][a]=null);else if(n!==void 0)if(this.stateChanges[t]&&this.stateChanges[t][c])for(a in this.deletedStates[t][c]={},this.stateChanges[t][c])this.deletedStates[t][c][a]=null;else this.deletedStates[t][c]=null;else this.deletedStates[t]=null}getState(t,n){const a=String(n),c=h.extend({},(this.state[t]||{})[a],(this.stateChanges[t]||{})[a]);if(this.deletedStates[t]===null)return{};if(this.deletedStates[t]){const p=this.deletedStates[t][n];if(p===null)return{};for(const m in p)delete c[m]}return c}initializeTileState(t,n){t.setFeatureState(this.state,n)}coalesceChanges(t,n){const a={};for(const c in this.stateChanges){this.state[c]=this.state[c]||{};const p={};for(const m in this.stateChanges[c])this.state[c][m]||(this.state[c][m]={}),h.extend(this.state[c][m],this.stateChanges[c][m]),p[m]=this.state[c][m];a[c]=p}for(const c in this.deletedStates){this.state[c]=this.state[c]||{};const p={};if(this.deletedStates[c]===null)for(const m in this.state[c])p[m]={},this.state[c][m]={};else for(const m in this.deletedStates[c]){if(this.deletedStates[c][m]===null)this.state[c][m]={};else for(const y of Object.keys(this.deletedStates[c][m]))delete this.state[c][m][y];p[m]=this.state[c][m]}a[c]=a[c]||{},h.extend(a[c],p)}if(this.stateChanges={},this.deletedStates={},Object.keys(a).length!==0)for(const c in t)t[c].setFeatureState(a,n)}}class Gt extends h.Evented{constructor(t,n,a){super(),this.id=t,this.dispatcher=a,this.on("data",c=>{c.dataType==="source"&&c.sourceDataType==="metadata"&&(this._sourceLoaded=!0),this._sourceLoaded&&!this._paused&&c.dataType==="source"&&c.sourceDataType==="content"&&(this.reload(),this.transform&&this.update(this.transform,this.terrain),this._didEmitContent=!0)}),this.on("dataloading",()=>{this._sourceErrored=!1}),this.on("error",()=>{this._sourceErrored=this._source.loaded()}),this._source=function(c,p,m,y){const _=new Fr[p.type](c,p,m,y);if(_.id!==c)throw new Error(`Expected Source id to be ${c} instead of ${_.id}`);return h.bindAll(["load","abort","unload","serialize","prepare"],_),_}(t,n,a,this),this._tiles={},this._cache=new qn(0,this._unloadTile.bind(this)),this._timers={},this._cacheTimers={},this._maxTileCacheSize=null,this._maxTileCacheZoomLevels=null,this._loadedParentTiles={},this._coveredTiles={},this._state=new fs,this._didEmitContent=!1,this._updated=!1}onAdd(t){this.map=t,this._maxTileCacheSize=t?t._maxTileCacheSize:null,this._maxTileCacheZoomLevels=t?t._maxTileCacheZoomLevels:null,this._source&&this._source.onAdd&&this._source.onAdd(t)}onRemove(t){this.clearTiles(),this._source&&this._source.onRemove&&this._source.onRemove(t)}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded||!this._source.loaded())return!1;if(!(this.used===void 0&&this.usedForTerrain===void 0||this.used||this.usedForTerrain))return!0;if(!this._updated)return!1;for(const t in this._tiles){const n=this._tiles[t];if(n.state!=="loaded"&&n.state!=="errored")return!1}return!0}getSource(){return this._source}pause(){this._paused=!0}resume(){if(!this._paused)return;const t=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,t&&this.reload(),this.transform&&this.update(this.transform,this.terrain)}_loadTile(t,n){return this._source.loadTile(t,n)}_unloadTile(t){if(this._source.unloadTile)return this._source.unloadTile(t,()=>{})}_abortTile(t){this._source.abortTile&&this._source.abortTile(t,()=>{}),this._source.fire(new h.Event("dataabort",{tile:t,coord:t.tileID,dataType:"source"}))}serialize(){return this._source.serialize()}prepare(t){this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null);for(const n in this._tiles){const a=this._tiles[n];a.upload(t),a.prepare(this.map.style.imageManager)}}getIds(){return Object.values(this._tiles).map(t=>t.tileID).sort(Jr).map(t=>t.key)}getRenderableIds(t){const n=[];for(const a in this._tiles)this._isIdRenderable(a,t)&&n.push(this._tiles[a]);return t?n.sort((a,c)=>{const p=a.tileID,m=c.tileID,y=new h.Point(p.canonical.x,p.canonical.y)._rotate(this.transform.angle),_=new h.Point(m.canonical.x,m.canonical.y)._rotate(this.transform.angle);return p.overscaledZ-m.overscaledZ||_.y-y.y||_.x-y.x}).map(a=>a.tileID.key):n.map(a=>a.tileID).sort(Jr).map(a=>a.key)}hasRenderableParent(t){const n=this.findLoadedParent(t,0);return!!n&&this._isIdRenderable(n.tileID.key)}_isIdRenderable(t,n){return this._tiles[t]&&this._tiles[t].hasData()&&!this._coveredTiles[t]&&(n||!this._tiles[t].holdingForFade())}reload(){if(this._paused)this._shouldReloadOnResume=!0;else{this._cache.reset();for(const t in this._tiles)this._tiles[t].state!=="errored"&&this._reloadTile(t,"reloading")}}_reloadTile(t,n){const a=this._tiles[t];a&&(a.state!=="loading"&&(a.state=n),this._loadTile(a,this._tileLoaded.bind(this,a,t,n)))}_tileLoaded(t,n,a,c){if(c)return t.state="errored",void(c.status!==404?this._source.fire(new h.ErrorEvent(c,{tile:t})):this.update(this.transform,this.terrain));t.timeAdded=h.exported.now(),a==="expired"&&(t.refreshedUponExpiration=!0),this._setTileReloadTimer(n,t),this.getSource().type==="raster-dem"&&t.dem&&this._backfillDEM(t),this._state.initializeTileState(t,this.map?this.map.painter:null),t.aborted||this._source.fire(new h.Event("data",{dataType:"source",tile:t,coord:t.tileID}))}_backfillDEM(t){const n=this.getRenderableIds();for(let c=0;c1||(Math.abs(m)>1&&(Math.abs(m+_)===1?m+=_:Math.abs(m-_)===1&&(m-=_)),p.dem&&c.dem&&(c.dem.backfillBorder(p.dem,m,y),c.neighboringTiles&&c.neighboringTiles[x]&&(c.neighboringTiles[x].backfilled=!0)))}}getTile(t){return this.getTileByID(t.key)}getTileByID(t){return this._tiles[t]}_retainLoadedChildren(t,n,a,c){for(const p in this._tiles){let m=this._tiles[p];if(c[p]||!m.hasData()||m.tileID.overscaledZ<=n||m.tileID.overscaledZ>a)continue;let y=m.tileID;for(;m&&m.tileID.overscaledZ>n+1;){const x=m.tileID.scaledTo(m.tileID.overscaledZ-1);m=this._tiles[x.key],m&&m.hasData()&&(y=x)}let _=y;for(;_.overscaledZ>n;)if(_=_.scaledTo(_.overscaledZ-1),t[_.key]){c[y.key]=y;break}}}findLoadedParent(t,n){if(t.key in this._loadedParentTiles){const a=this._loadedParentTiles[t.key];return a&&a.tileID.overscaledZ>=n?a:null}for(let a=t.overscaledZ-1;a>=n;a--){const c=t.scaledTo(a),p=this._getLoadedTile(c);if(p)return p}}_getLoadedTile(t){const n=this._tiles[t.key];return n&&n.hasData()?n:this._cache.getByKey(t.wrapped().key)}updateCacheSize(t){const n=Math.ceil(t.width/this._source.tileSize)+1,a=Math.ceil(t.height/this._source.tileSize)+1,c=Math.floor(n*a*(this._maxTileCacheZoomLevels===null?h.config.MAX_TILE_CACHE_ZOOM_LEVELS:this._maxTileCacheZoomLevels)),p=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,c):c;this._cache.setMaxSize(p)}handleWrapJump(t){const n=Math.round((t-(this._prevLng===void 0?t:this._prevLng))/360);if(this._prevLng=t,n){const a={};for(const c in this._tiles){const p=this._tiles[c];p.tileID=p.tileID.unwrapTo(p.tileID.wrap+n),a[p.tileID.key]=p}this._tiles=a;for(const c in this._timers)clearTimeout(this._timers[c]),delete this._timers[c];for(const c in this._tiles)this._setTileReloadTimer(c,this._tiles[c])}}update(t,n){if(this.transform=t,this.terrain=n,!this._sourceLoaded||this._paused)return;let a;this.updateCacheSize(t),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used||this.usedForTerrain?this._source.tileID?a=t.getVisibleUnwrappedCoordinates(this._source.tileID).map(T=>new h.OverscaledTileID(T.canonical.z,T.wrap,T.canonical.z,T.canonical.x,T.canonical.y)):(a=t.coveringTiles({tileSize:this.usedForTerrain?this.tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:!this.usedForTerrain&&this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled,terrain:n}),this._source.hasTile&&(a=a.filter(T=>this._source.hasTile(T)))):a=[];const c=t.coveringZoomLevel(this._source),p=Math.max(c-Gt.maxOverzooming,this._source.minzoom),m=Math.max(c+Gt.maxUnderzooming,this._source.minzoom);if(this.usedForTerrain){const T={};for(const w of a)if(w.canonical.z>this._source.minzoom){const k=w.scaledTo(w.canonical.z-1);T[k.key]=k;const O=w.scaledTo(Math.max(this._source.minzoom,Math.min(w.canonical.z,5)));T[O.key]=O}a=a.concat(Object.values(T))}const y=a.length===0&&!this._updated&&this._didEmitContent;this._updated=!0,y&&this.fire(new h.Event("data",{sourceDataType:"idle",dataType:"source",sourceId:this.id}));const _=this._updateRetainedTiles(a,c);if(bn(this._source.type)){const T={},w={},k=Object.keys(_),O=h.exported.now();for(const B of k){const R=_[B],q=this._tiles[B];if(!q||q.fadeEndTime!==0&&q.fadeEndTime<=O)continue;const H=this.findLoadedParent(R,p);H&&(this._addTile(H.tileID),T[H.tileID.key]=H.tileID),w[B]=R}this._retainLoadedChildren(w,c,m,_);for(const B in T)_[B]||(this._coveredTiles[B]=!0,_[B]=T[B]);if(n){const B={},R={};for(const q of a)this._tiles[q.key].hasData()?B[q.key]=q:R[q.key]=q;for(const q in R){const H=R[q].children(this._source.maxzoom);this._tiles[H[0].key]&&this._tiles[H[1].key]&&this._tiles[H[2].key]&&this._tiles[H[3].key]&&(B[H[0].key]=_[H[0].key]=H[0],B[H[1].key]=_[H[1].key]=H[1],B[H[2].key]=_[H[2].key]=H[2],B[H[3].key]=_[H[3].key]=H[3],delete R[q])}for(const q in R){const H=this.findLoadedParent(R[q],this._source.minzoom);if(H){B[H.tileID.key]=_[H.tileID.key]=H.tileID;for(const se in B)B[se].isChildOf(H.tileID)&&delete B[se]}}for(const q in this._tiles)B[q]||(this._coveredTiles[q]=!0)}}for(const T in _)this._tiles[T].clearFadeHold();const x=h.keysDifference(this._tiles,_);for(const T of x){const w=this._tiles[T];w.hasSymbolBuckets&&!w.holdingForFade()?w.setHoldDuration(this.map._fadeDuration):w.hasSymbolBuckets&&!w.symbolFadeFinished()||this._removeTile(T)}this._updateLoadedParentTileCache()}releaseSymbolFadeTiles(){for(const t in this._tiles)this._tiles[t].holdingForFade()&&this._removeTile(t)}_updateRetainedTiles(t,n){const a={},c={},p=Math.max(n-Gt.maxOverzooming,this._source.minzoom),m=Math.max(n+Gt.maxUnderzooming,this._source.minzoom),y={};for(const _ of t){const x=this._addTile(_);a[_.key]=_,x.hasData()||nthis._source.maxzoom){const w=_.children(this._source.maxzoom)[0],k=this.getTile(w);if(k&&k.hasData()){a[w.key]=w;continue}}else{const w=_.children(this._source.maxzoom);if(a[w[0].key]&&a[w[1].key]&&a[w[2].key]&&a[w[3].key])continue}let T=x.wasRequested();for(let w=_.overscaledZ-1;w>=p;--w){const k=_.scaledTo(w);if(c[k.key])break;if(c[k.key]=!0,x=this.getTile(k),!x&&T&&(x=this._addTile(k)),x){const O=x.hasData();if((T||O)&&(a[k.key]=k),T=x.wasRequested(),O)break}}}return a}_updateLoadedParentTileCache(){this._loadedParentTiles={};for(const t in this._tiles){const n=[];let a,c=this._tiles[t].tileID;for(;c.overscaledZ>0;){if(c.key in this._loadedParentTiles){a=this._loadedParentTiles[c.key];break}n.push(c.key);const p=c.scaledTo(c.overscaledZ-1);if(a=this._getLoadedTile(p),a)break;c=p}for(const p of n)this._loadedParentTiles[p]=a}}_addTile(t){let n=this._tiles[t.key];if(n)return n;n=this._cache.getAndRemove(t),n&&(this._setTileReloadTimer(t.key,n),n.tileID=t,this._state.initializeTileState(n,this.map?this.map.painter:null),this._cacheTimers[t.key]&&(clearTimeout(this._cacheTimers[t.key]),delete this._cacheTimers[t.key],this._setTileReloadTimer(t.key,n)));const a=n;return n||(n=new Yr(t,this._source.tileSize*t.overscaleFactor()),this._loadTile(n,this._tileLoaded.bind(this,n,t.key,n.state))),n.uses++,this._tiles[t.key]=n,a||this._source.fire(new h.Event("dataloading",{tile:n,coord:n.tileID,dataType:"source"})),n}_setTileReloadTimer(t,n){t in this._timers&&(clearTimeout(this._timers[t]),delete this._timers[t]);const a=n.getExpiryTimeout();a&&(this._timers[t]=setTimeout(()=>{this._reloadTile(t,"expired"),delete this._timers[t]},a))}_removeTile(t){const n=this._tiles[t];n&&(n.uses--,delete this._tiles[t],this._timers[t]&&(clearTimeout(this._timers[t]),delete this._timers[t]),n.uses>0||(n.hasData()&&n.state!=="reloading"?this._cache.add(n.tileID,n,n.getExpiryTimeout()):(n.aborted=!0,this._abortTile(n),this._unloadTile(n))))}clearTiles(){this._shouldReloadOnResume=!1,this._paused=!1;for(const t in this._tiles)this._removeTile(t);this._cache.reset()}tilesIn(t,n,a){const c=[],p=this.transform;if(!p)return c;const m=a?p.getCameraQueryGeometry(t):t,y=t.map(B=>p.pointCoordinate(B,this.terrain)),_=m.map(B=>p.pointCoordinate(B,this.terrain)),x=this.getIds();let T=1/0,w=1/0,k=-1/0,O=-1/0;for(const B of _)T=Math.min(T,B.x),w=Math.min(w,B.y),k=Math.max(k,B.x),O=Math.max(O,B.y);for(let B=0;B=0&&$[1].y+se>=0){const re=y.map(me=>q.getTilePoint(me)),oe=_.map(me=>q.getTilePoint(me));c.push({tile:R,tileID:q,queryGeometry:re,cameraQueryGeometry:oe,scale:H})}}return c}getVisibleCoordinates(t){const n=this.getRenderableIds(t).map(a=>this._tiles[a].tileID);for(const a of n)a.posMatrix=this.transform.calculatePosMatrix(a.toUnwrapped());return n}hasTransition(){if(this._source.hasTransition())return!0;if(bn(this._source.type)){const t=h.exported.now();for(const n in this._tiles)if(this._tiles[n].fadeEndTime>=t)return!0}return!1}setFeatureState(t,n,a){this._state.updateState(t=t||"_geojsonTileLayer",n,a)}removeFeatureState(t,n,a){this._state.removeFeatureState(t=t||"_geojsonTileLayer",n,a)}getFeatureState(t,n){return this._state.getState(t=t||"_geojsonTileLayer",n)}setDependencies(t,n,a){const c=this._tiles[t];c&&c.setDependencies(n,a)}reloadTilesForDependencies(t,n){for(const a in this._tiles)this._tiles[a].hasDependency(t,n)&&this._reloadTile(a,"reloading");this._cache.filter(a=>!a.hasDependency(t,n))}}function Jr(o,t){const n=Math.abs(2*o.wrap)-+(o.wrap<0),a=Math.abs(2*t.wrap)-+(t.wrap<0);return o.overscaledZ-t.overscaledZ||a-n||t.canonical.y-o.canonical.y||t.canonical.x-o.canonical.x}function bn(o){return o==="raster"||o==="image"||o==="video"}Gt.maxOverzooming=10,Gt.maxUnderzooming=3;const Qr="mapboxgl_preloaded_worker_pool";class we{constructor(){this.active={}}acquire(t){if(!this.workers)for(this.workers=[];this.workers.length{n.terminate()}),this.workers=null)}isPreloaded(){return!!this.active[Qr]}numActive(){return Object.keys(this.active).length}}const lr=Math.floor(h.exported.hardwareConcurrency/2);let fi;function wn(){return fi||(fi=new we),fi}we.workerCount=h.isSafari(globalThis)?Math.max(Math.min(lr,3),1):1;class Or{constructor(t,n){this.reset(t,n)}reset(t,n){this.points=t||[],this._distances=[0];for(let a=1;a0?(c-m)/y:0;return this.points[p].mult(1-_).add(this.points[n].mult(_))}}function be(o,t){let n=!0;return o==="always"||o!=="never"&&t!=="never"||(n=!1),n}class Qe{constructor(t,n,a){const c=this.boxCells=[],p=this.circleCells=[];this.xCellCount=Math.ceil(t/a),this.yCellCount=Math.ceil(n/a);for(let m=0;mthis.width||c<0||n>this.height)return[];const _=[];if(t<=0&&n<=0&&this.width<=a&&this.height<=c){if(p)return[{key:null,x1:t,y1:n,x2:a,y2:c}];for(let x=0;x0}hitTestCircle(t,n,a,c,p){const m=t-a,y=t+a,_=n-a,x=n+a;if(y<0||m>this.width||x<0||_>this.height)return!1;const T=[];return this._forEachCell(m,_,y,x,this._queryCellCircle,T,{hitTest:!0,overlapMode:c,circle:{x:t,y:n,radius:a},seenUids:{box:{},circle:{}}},p),T.length>0}_queryCell(t,n,a,c,p,m,y,_){const{seenUids:x,hitTest:T,overlapMode:w}=y,k=this.boxCells[p];if(k!==null){const B=this.bboxes;for(const R of k)if(!x.box[R]){x.box[R]=!0;const q=4*R,H=this.boxKeys[R];if(t<=B[q+2]&&n<=B[q+3]&&a>=B[q+0]&&c>=B[q+1]&&(!_||_(H))&&(!T||!be(w,H.overlapMode))&&(m.push({key:H,x1:B[q],y1:B[q+1],x2:B[q+2],y2:B[q+3]}),T))return!0}}const O=this.circleCells[p];if(O!==null){const B=this.circles;for(const R of O)if(!x.circle[R]){x.circle[R]=!0;const q=3*R,H=this.circleKeys[R];if(this._circleAndRectCollide(B[q],B[q+1],B[q+2],t,n,a,c)&&(!_||_(H))&&(!T||!be(w,H.overlapMode))){const se=B[q],$=B[q+1],re=B[q+2];if(m.push({key:H,x1:se-re,y1:$-re,x2:se+re,y2:$+re}),T)return!0}}}return!1}_queryCellCircle(t,n,a,c,p,m,y,_){const{circle:x,seenUids:T,overlapMode:w}=y,k=this.boxCells[p];if(k!==null){const B=this.bboxes;for(const R of k)if(!T.box[R]){T.box[R]=!0;const q=4*R,H=this.boxKeys[R];if(this._circleAndRectCollide(x.x,x.y,x.radius,B[q+0],B[q+1],B[q+2],B[q+3])&&(!_||_(H))&&!be(w,H.overlapMode))return m.push(!0),!0}}const O=this.circleCells[p];if(O!==null){const B=this.circles;for(const R of O)if(!T.circle[R]){T.circle[R]=!0;const q=3*R,H=this.circleKeys[R];if(this._circlesCollide(B[q],B[q+1],B[q+2],x.x,x.y,x.radius)&&(!_||_(H))&&!be(w,H.overlapMode))return m.push(!0),!0}}}_forEachCell(t,n,a,c,p,m,y,_){const x=this._convertToXCellCoord(t),T=this._convertToYCellCoord(n),w=this._convertToXCellCoord(a),k=this._convertToYCellCoord(c);for(let O=x;O<=w;O++)for(let B=T;B<=k;B++)if(p.call(this,t,n,a,c,this.xCellCount*B+O,m,y,_))return}_convertToXCellCoord(t){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(t*this.xScale)))}_convertToYCellCoord(t){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(t*this.yScale)))}_circlesCollide(t,n,a,c,p,m){const y=c-t,_=p-n,x=a+m;return x*x>y*y+_*_}_circleAndRectCollide(t,n,a,c,p,m,y){const _=(m-c)/2,x=Math.abs(t-(c+_));if(x>_+a)return!1;const T=(y-p)/2,w=Math.abs(n-(p+T));if(w>T+a)return!1;if(x<=_||w<=T)return!0;const k=x-_,O=w-T;return k*k+O*O<=a*a}}function Ye(o,t,n,a,c){const p=h.create();return t?(h.scale(p,p,[1/c,1/c,1]),n||h.rotateZ(p,p,a.angle)):h.multiply(p,a.labelPlaneMatrix,o),p}function Pi(o,t,n,a,c){if(t){const p=h.clone(o);return h.scale(p,p,[c,c,1]),n||h.rotateZ(p,p,-a.angle),p}return a.glCoordMatrix}function Qt(o,t,n){let a;n?(a=[o.x,o.y,n(o.x,o.y),1],h.transformMat4(a,a,t)):(a=[o.x,o.y,0,1],j(a,a,t));const c=a[3];return{point:new h.Point(a[0]/c,a[1]/c),signedDistanceFromCamera:c}}function He(o,t){return .5+o/t*.5}function Tr(o,t){const n=o[0]/o[3],a=o[1]/o[3];return n>=-t[0]&&n<=t[0]&&a>=-t[1]&&a<=t[1]}function Er(o,t,n,a,c,p,m,y,_,x){const T=a?o.textSizeData:o.iconSizeData,w=h.evaluateSizeForZoom(T,n.transform.zoom),k=[256/n.width*2+1,256/n.height*2+1],O=a?o.text.dynamicLayoutVertexArray:o.icon.dynamicLayoutVertexArray;O.clear();const B=o.lineVertexArray,R=a?o.text.placedSymbolArray:o.icon.placedSymbolArray,q=n.transform.width/n.transform.height;let H=!1;for(let se=0;seMath.abs(n.x-t.x)*a?{useVertical:!0}:(o===h.WritingMode.vertical?t.yn.x)?{needsFlipping:!0}:null}function ui(o,t,n,a,c,p,m,y,_,x,T,w,k,O,B,R){const q=t/24,H=o.lineOffsetX*q,se=o.lineOffsetY*q;let $;if(o.numGlyphs>1){const re=o.glyphStartIndex+o.numGlyphs,oe=o.lineStartIndex,me=o.lineStartIndex+o.lineLength,_e=er(q,y,H,se,n,T,w,o,_,p,k,B,R);if(!_e)return{notEnoughRoom:!0};const ve=Qt(_e.first.point,m,R).point,ge=Qt(_e.last.point,m,R).point;if(a&&!n){const Ce=Sr(o.writingMode,ve,ge,O);if(Ce)return Ce}$=[_e.first];for(let Ce=o.glyphStartIndex+1;Ce0?ve.point:St(w,_e,oe,1,c,R),Ce=Sr(o.writingMode,oe,ge,O);if(Ce)return Ce}const re=I(q*y.getoffsetX(o.glyphStartIndex),H,se,n,T,w,o.segment,o.lineStartIndex,o.lineStartIndex+o.lineLength,_,p,k,B,R);if(!re)return{notEnoughRoom:!0};$=[re]}for(const re of $)h.addDynamicAttributes(x,re.point,re.angle);return{}}function St(o,t,n,a,c,p){const m=Qt(o.add(o.sub(t)._unit()),c,p).point,y=n.sub(m);return n.add(y._mult(a/y.mag()))}function jn(o,t){const{projectionCache:n,lineVertexArray:a,labelPlaneMatrix:c,tileAnchorPoint:p,distanceFromAnchor:m,getElevation:y,previousVertex:_,direction:x,absOffsetX:T}=t;if(n.projections[o])return n.projections[o];const w=new h.Point(a.getx(o),a.gety(o)),k=Qt(w,c,y);if(k.signedDistanceFromCamera>0)return n.projections[o]=k.point,k.point;const O=o-x;return St(m===0?p:new h.Point(a.getx(O),a.gety(O)),w,_,T-m+1,c,y)}function cr(o,t,n){return o._unit()._perp()._mult(t*n)}function V(o,t,n,a,c,p,m,y){const{projectionCache:_,direction:x}=y;if(_.offsets[o])return _.offsets[o];const T=n.add(t);if(o+x=c)return _.offsets[o]=T,T;const w=jn(o+x,y),k=cr(w.sub(n),m,x),O=n.add(k),B=w.add(k);return _.offsets[o]=h.findLineIntersection(p,T,O,B)||T,_.offsets[o]}function I(o,t,n,a,c,p,m,y,_,x,T,w,k,O){const B=a?o-t:o+t;let R=B>0?1:-1,q=0;a&&(R*=-1,q=Math.PI),R<0&&(q+=Math.PI);let H,se,$=R>0?y+m:y+m+1,re=c,oe=c,me=0,_e=0;const ve=Math.abs(B),ge=[];let Ce;for(;me+_e<=ve;){if($+=R,$=_)return null;me+=_e,oe=re,se=H;const Ee={projectionCache:w,lineVertexArray:x,labelPlaneMatrix:T,tileAnchorPoint:p,distanceFromAnchor:me,getElevation:O,previousVertex:oe,direction:R,absOffsetX:ve};if(re=jn($,Ee),n===0)ge.push(oe),Ce=re.sub(oe);else{let je;const ke=re.sub(oe);je=ke.mag()===0?cr(jn($+R,Ee).sub(re),n,R):cr(ke,n,R),se||(se=oe.add(je)),H=V($,je,re,y,_,se,n,Ee),ge.push(se),Ce=H.sub(se)}_e=Ce.mag()}const Ue=Ce._mult((ve-me)/_e)._add(se||oe),Ke=q+Math.atan2(re.y-oe.y,re.x-oe.x);return ge.push(Ue),{point:Ue,angle:k?Ke:0,path:ge}}const M=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function L(o,t){for(let n=0;n=1;dt--)ke.push(Ee.path[dt]);for(let dt=1;dtQt(Je,_,B));ke=dt.some(Je=>Je.signedDistanceFromCamera<=0)?[]:dt.map(Je=>Je.point)}let qt=[];if(ke.length>0){const dt=ke[0].clone(),Je=ke[0].clone();for(let Ot=1;Ot=Ce.x&&Je.x<=Ue.x&&dt.y>=Ce.y&&Je.y<=Ue.y?[ke]:Je.xUe.x||Je.yUe.y?[]:h.clipLine([ke],Ce.x,Ce.y,Ue.x,Ue.y)}for(const dt of qt){Ke.reset(dt,.25*ge);let Je=0;Je=Ke.length<=.5*ge?1:Math.ceil(Ke.paddedLength/ut)+1;for(let Ot=0;Ot=this.screenRightBoundary||cthis.screenBottomBoundary}isInsideGrid(t,n,a,c){return a>=0&&t=0&&na.collisionGroupID===n}}return this.collisionGroups[t]}}function Xe(o,t,n,a,c){const{horizontalAlign:p,verticalAlign:m}=h.getAnchorAlignment(o),y=-(p-.5)*t,_=-(m-.5)*n,x=h.evaluateVariableOffset(o,a);return new h.Point(y+x[0]*c,_+x[1]*c)}function Le(o,t,n,a,c,p){const{x1:m,x2:y,y1:_,y2:x,anchorPointX:T,anchorPointY:w}=o,k=new h.Point(t,n);return a&&k._rotate(c?p:-p),{x1:m+k.x,y1:_+k.y,x2:y+k.x,y2:x+k.y,anchorPointX:T,anchorPointY:w}}class Oe{constructor(t,n,a,c,p){this.transform=t.clone(),this.terrain=n,this.collisionIndex=new J(this.transform),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=a,this.retainedQueryData={},this.collisionGroups=new $e(c),this.collisionCircleArrays={},this.prevPlacement=p,p&&(p.prevPlacement=void 0),this.placedOrientations={}}getBucketParts(t,n,a,c){const p=a.getBucket(n),m=a.latestFeatureIndex;if(!p||!m||n.id!==p.layerIds[0])return;const y=a.collisionBoxArray,_=p.layers[0].layout,x=Math.pow(2,this.transform.zoom-a.tileID.overscaledZ),T=a.tileSize/h.EXTENT,w=this.transform.calculatePosMatrix(a.tileID.toUnwrapped()),k=_.get("text-pitch-alignment")==="map",O=_.get("text-rotation-alignment")==="map",B=W(a,1,this.transform.zoom),R=Ye(w,k,O,this.transform,B);let q=null;if(k){const se=Pi(w,k,O,this.transform,B);q=h.multiply([],this.transform.labelPlaneMatrix,se)}this.retainedQueryData[p.bucketInstanceId]=new pe(p.bucketInstanceId,m,p.sourceLayerIndex,p.index,a.tileID);const H={bucket:p,layout:_,posMatrix:w,textLabelPlaneMatrix:R,labelToScreenMatrix:q,scale:x,textPixelRatio:T,holdingForFade:a.holdingForFade(),collisionBoxArray:y,partiallyEvaluatedTextSize:h.evaluateSizeForZoom(p.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(p.sourceID)};if(c)for(const se of p.sortKeyRanges){const{sortKey:$,symbolInstanceStart:re,symbolInstanceEnd:oe}=se;t.push({sortKey:$,symbolInstanceStart:re,symbolInstanceEnd:oe,parameters:H})}else t.push({symbolInstanceStart:0,symbolInstanceEnd:p.symbolInstances.length,parameters:H})}attemptAnchorPlacement(t,n,a,c,p,m,y,_,x,T,w,k,O,B,R,q){const H=[k.textOffset0,k.textOffset1],se=Xe(t,a,c,H,p),$=this.collisionIndex.placeCollisionBox(Le(n,se.x,se.y,m,y,this.transform.angle),w,_,x,T.predicate,q);if((!R||this.collisionIndex.placeCollisionBox(Le(R,se.x,se.y,m,y,this.transform.angle),w,_,x,T.predicate,q).box.length!==0)&&$.box.length>0){let re;if(this.prevPlacement&&this.prevPlacement.variableOffsets[k.crossTileID]&&this.prevPlacement.placements[k.crossTileID]&&this.prevPlacement.placements[k.crossTileID].text&&(re=this.prevPlacement.variableOffsets[k.crossTileID].anchor),k.crossTileID===0)throw new Error("symbolInstance.crossTileID can't be 0");return this.variableOffsets[k.crossTileID]={textOffset:H,width:a,height:c,anchor:t,textBoxScale:p,prevAnchor:re},this.markUsedJustification(O,t,k,B),O.allowVerticalPlacement&&(this.markUsedOrientation(O,B,k),this.placedOrientations[k.crossTileID]=B),{shift:se,placedGlyphBoxes:$}}}placeLayerBucketPart(t,n,a){const{bucket:c,layout:p,posMatrix:m,textLabelPlaneMatrix:y,labelToScreenMatrix:_,textPixelRatio:x,holdingForFade:T,collisionBoxArray:w,partiallyEvaluatedTextSize:k,collisionGroup:O}=t.parameters,B=p.get("text-optional"),R=p.get("icon-optional"),q=h.getOverlapMode(p,"text-overlap","text-allow-overlap"),H=q==="always",se=h.getOverlapMode(p,"icon-overlap","icon-allow-overlap"),$=se==="always",re=p.get("text-rotation-alignment")==="map",oe=p.get("text-pitch-alignment")==="map",me=p.get("icon-text-fit")!=="none",_e=p.get("symbol-z-order")==="viewport-y",ve=H&&($||!c.hasIconData()||R),ge=$&&(H||!c.hasTextData()||B);!c.collisionArrays&&w&&c.deserializeCollisionBoxes(w);const Ce=this.retainedQueryData[c.bucketInstanceId].tileID,Ue=this.terrain?(Ee,je)=>this.terrain.getElevation(Ce,Ee,je):null,Ke=(Ee,je)=>{if(n[Ee.crossTileID])return;if(T)return void(this.placements[Ee.crossTileID]=new ue(!1,!1,!1));let ke=!1,ut=!1,qt=!0,dt=null,Je={box:null,offscreen:null},Ot={box:null,offscreen:null},wi=null,jt=null,si=null,Fi=0,ir=0,rr=0;je.textFeatureIndex?Fi=je.textFeatureIndex:Ee.useRuntimeCollisionCircles&&(Fi=Ee.featureIndex),je.verticalTextFeatureIndex&&(ir=je.verticalTextFeatureIndex);const Ti=je.textBox;if(Ti){const mi=ft=>{let ei=h.WritingMode.horizontal;if(c.allowVerticalPlacement&&!ft&&this.prevPlacement){const oi=this.prevPlacement.placedOrientations[Ee.crossTileID];oi&&(this.placedOrientations[Ee.crossTileID]=oi,ei=oi,this.markUsedOrientation(c,ei,Ee))}return ei},ai=(ft,ei)=>{if(c.allowVerticalPlacement&&Ee.numVerticalGlyphVertices>0&&je.verticalTextBox){for(const oi of c.writingModes)if(oi===h.WritingMode.vertical?(Je=ei(),Ot=Je):Je=ft(),Je&&Je.box&&Je.box.length)break}else Je=ft()};if(p.get("text-variable-anchor")){let ft=p.get("text-variable-anchor");if(this.prevPlacement&&this.prevPlacement.variableOffsets[Ee.crossTileID]){const gt=this.prevPlacement.variableOffsets[Ee.crossTileID];ft.indexOf(gt.anchor)>0&&(ft=ft.filter(ti=>ti!==gt.anchor),ft.unshift(gt.anchor))}const ei=(gt,ti,Oi)=>{const Qs=gt.x2-gt.x1,Mr=gt.y2-gt.y1,ac=Ee.textBoxScale,cl=me&&se==="never"?ti:null;let At={box:[],offscreen:!1};const Qa=q!=="never"?2*ft.length:ft.length;for(let cs=0;cs=ft.length?q:"never",Ee,c,Oi,cl,Ue);if(Cr&&(At=Cr.placedGlyphBoxes,At&&At.box&&At.box.length)){ke=!0,dt=Cr.shift;break}}return At};ai(()=>ei(Ti,je.iconBox,h.WritingMode.horizontal),()=>{const gt=je.verticalTextBox;return c.allowVerticalPlacement&&!(Je&&Je.box&&Je.box.length)&&Ee.numVerticalGlyphVertices>0&>?ei(gt,je.verticalIconBox,h.WritingMode.vertical):{box:null,offscreen:null}}),Je&&(ke=Je.box,qt=Je.offscreen);const oi=mi(Je&&Je.box);if(!ke&&this.prevPlacement){const gt=this.prevPlacement.variableOffsets[Ee.crossTileID];gt&&(this.variableOffsets[Ee.crossTileID]=gt,this.markUsedJustification(c,gt.anchor,Ee,oi))}}else{const ft=(ei,oi)=>{const gt=this.collisionIndex.placeCollisionBox(ei,q,x,m,O.predicate,Ue);return gt&>.box&>.box.length&&(this.markUsedOrientation(c,oi,Ee),this.placedOrientations[Ee.crossTileID]=oi),gt};ai(()=>ft(Ti,h.WritingMode.horizontal),()=>{const ei=je.verticalTextBox;return c.allowVerticalPlacement&&Ee.numVerticalGlyphVertices>0&&ei?ft(ei,h.WritingMode.vertical):{box:null,offscreen:null}}),mi(Je&&Je.box&&Je.box.length)}}if(wi=Je,ke=wi&&wi.box&&wi.box.length>0,qt=wi&&wi.offscreen,Ee.useRuntimeCollisionCircles){const mi=c.text.placedSymbolArray.get(Ee.centerJustifiedTextSymbolIndex),ai=h.evaluateSizeForFeature(c.textSizeData,k,mi),ft=p.get("text-padding");jt=this.collisionIndex.placeCollisionCircles(q,mi,c.lineVertexArray,c.glyphOffsetArray,ai,m,y,_,a,oe,O.predicate,Ee.collisionCircleDiameter,ft,Ue),jt.circles.length&&jt.collisionDetected&&!a&&h.warnOnce("Collisions detected, but collision boxes are not shown"),ke=H||jt.circles.length>0&&!jt.collisionDetected,qt=qt&&jt.offscreen}if(je.iconFeatureIndex&&(rr=je.iconFeatureIndex),je.iconBox){const mi=ai=>{const ft=me&&dt?Le(ai,dt.x,dt.y,re,oe,this.transform.angle):ai;return this.collisionIndex.placeCollisionBox(ft,se,x,m,O.predicate,Ue)};Ot&&Ot.box&&Ot.box.length&&je.verticalIconBox?(si=mi(je.verticalIconBox),ut=si.box.length>0):(si=mi(je.iconBox),ut=si.box.length>0),qt=qt&&si.offscreen}const gr=B||Ee.numHorizontalGlyphVertices===0&&Ee.numVerticalGlyphVertices===0,ls=R||Ee.numIconVertices===0;if(gr||ls?ls?gr||(ut=ut&&ke):ke=ut&&ke:ut=ke=ut&&ke,ke&&wi&&wi.box&&this.collisionIndex.insertCollisionBox(wi.box,q,p.get("text-ignore-placement"),c.bucketInstanceId,Ot&&Ot.box&&ir?ir:Fi,O.ID),ut&&si&&this.collisionIndex.insertCollisionBox(si.box,se,p.get("icon-ignore-placement"),c.bucketInstanceId,rr,O.ID),jt&&(ke&&this.collisionIndex.insertCollisionCircles(jt.circles,q,p.get("text-ignore-placement"),c.bucketInstanceId,Fi,O.ID),a)){const mi=c.bucketInstanceId;let ai=this.collisionCircleArrays[mi];ai===void 0&&(ai=this.collisionCircleArrays[mi]=new fe);for(let ft=0;ft=0;--je){const ke=Ee[je];Ke(c.symbolInstances.get(ke),c.collisionArrays[ke])}}else for(let Ee=t.symbolInstanceStart;Ee=0&&(t.text.placedSymbolArray.get(y).crossTileID=p>=0&&y!==p?0:a.crossTileID)}markUsedOrientation(t,n,a){const c=n===h.WritingMode.horizontal||n===h.WritingMode.horizontalOnly?n:0,p=n===h.WritingMode.vertical?n:0,m=[a.leftJustifiedTextSymbolIndex,a.centerJustifiedTextSymbolIndex,a.rightJustifiedTextSymbolIndex];for(const y of m)t.text.placedSymbolArray.get(y).placedOrientation=c;a.verticalPlacedTextSymbolIndex&&(t.text.placedSymbolArray.get(a.verticalPlacedTextSymbolIndex).placedOrientation=p)}commit(t){this.commitTime=t,this.zoomAtLastRecencyCheck=this.transform.zoom;const n=this.prevPlacement;let a=!1;this.prevZoomAdjustment=n?n.zoomAdjustment(this.transform.zoom):0;const c=n?n.symbolFadeChange(t):1,p=n?n.opacities:{},m=n?n.variableOffsets:{},y=n?n.placedOrientations:{};for(const _ in this.placements){const x=this.placements[_],T=p[_];T?(this.opacities[_]=new ee(T,c,x.text,x.icon),a=a||x.text!==T.text.placed||x.icon!==T.icon.placed):(this.opacities[_]=new ee(null,c,x.text,x.icon,x.skipFade),a=a||x.text||x.icon)}for(const _ in p){const x=p[_];if(!this.opacities[_]){const T=new ee(x,c,!1,!1);T.isHidden()||(this.opacities[_]=T,a=a||x.text.placed||x.icon.placed)}}for(const _ in m)this.variableOffsets[_]||!this.opacities[_]||this.opacities[_].isHidden()||(this.variableOffsets[_]=m[_]);for(const _ in y)this.placedOrientations[_]||!this.opacities[_]||this.opacities[_].isHidden()||(this.placedOrientations[_]=y[_]);if(n&&n.lastPlacementChangeTime===void 0)throw new Error("Last placement time for previous placement is not defined");a?this.lastPlacementChangeTime=t:typeof this.lastPlacementChangeTime!="number"&&(this.lastPlacementChangeTime=n?n.lastPlacementChangeTime:t)}updateLayerOpacities(t,n){const a={};for(const c of n){const p=c.getBucket(t);p&&c.latestFeatureIndex&&t.id===p.layerIds[0]&&this.updateBucketOpacities(p,a,c.collisionBoxArray)}}updateBucketOpacities(t,n,a){t.hasTextData()&&(t.text.opacityVertexArray.clear(),t.text.hasVisibleVertices=!1),t.hasIconData()&&(t.icon.opacityVertexArray.clear(),t.icon.hasVisibleVertices=!1),t.hasIconCollisionBoxData()&&t.iconCollisionBox.collisionVertexArray.clear(),t.hasTextCollisionBoxData()&&t.textCollisionBox.collisionVertexArray.clear();const c=t.layers[0].layout,p=new ee(null,0,!1,!1,!0),m=c.get("text-allow-overlap"),y=c.get("icon-allow-overlap"),_=c.get("text-variable-anchor"),x=c.get("text-rotation-alignment")==="map",T=c.get("text-pitch-alignment")==="map",w=c.get("icon-text-fit")!=="none",k=new ee(null,0,m&&(y||!t.hasIconData()||c.get("icon-optional")),y&&(m||!t.hasTextData()||c.get("text-optional")),!0);!t.collisionArrays&&a&&(t.hasIconCollisionBoxData()||t.hasTextCollisionBoxData())&&t.deserializeCollisionBoxes(a);const O=(B,R,q)=>{for(let H=0;H0,oe=this.placedOrientations[R.crossTileID],me=oe===h.WritingMode.vertical,_e=oe===h.WritingMode.horizontal||oe===h.WritingMode.horizontalOnly;if(q>0||H>0){const ve=Ur($.text);O(t.text,q,me?di:ve),O(t.text,H,_e?di:ve);const ge=$.text.isHidden();[R.rightJustifiedTextSymbolIndex,R.centerJustifiedTextSymbolIndex,R.leftJustifiedTextSymbolIndex].forEach(Ke=>{Ke>=0&&(t.text.placedSymbolArray.get(Ke).hidden=ge||me?1:0)}),R.verticalPlacedTextSymbolIndex>=0&&(t.text.placedSymbolArray.get(R.verticalPlacedTextSymbolIndex).hidden=ge||_e?1:0);const Ce=this.variableOffsets[R.crossTileID];Ce&&this.markUsedJustification(t,Ce.anchor,R,oe);const Ue=this.placedOrientations[R.crossTileID];Ue&&(this.markUsedJustification(t,"left",R,Ue),this.markUsedOrientation(t,Ue,R))}if(re){const ve=Ur($.icon),ge=!(w&&R.verticalPlacedIconSymbolIndex&&me);R.placedIconSymbolIndex>=0&&(O(t.icon,R.numIconVertices,ge?ve:di),t.icon.placedSymbolArray.get(R.placedIconSymbolIndex).hidden=$.icon.isHidden()),R.verticalPlacedIconSymbolIndex>=0&&(O(t.icon,R.numVerticalIconVertices,ge?di:ve),t.icon.placedSymbolArray.get(R.verticalPlacedIconSymbolIndex).hidden=$.icon.isHidden())}if(t.hasIconCollisionBoxData()||t.hasTextCollisionBoxData()){const ve=t.collisionArrays[B];if(ve){let ge=new h.Point(0,0);if(ve.textBox||ve.verticalTextBox){let Ue=!0;if(_){const Ke=this.variableOffsets[se];Ke?(ge=Xe(Ke.anchor,Ke.width,Ke.height,Ke.textOffset,Ke.textBoxScale),x&&ge._rotate(T?this.transform.angle:-this.transform.angle)):Ue=!1}ve.textBox&&Ge(t.textCollisionBox.collisionVertexArray,$.text.placed,!Ue||me,ge.x,ge.y),ve.verticalTextBox&&Ge(t.textCollisionBox.collisionVertexArray,$.text.placed,!Ue||_e,ge.x,ge.y)}const Ce=!!(!_e&&ve.verticalIconBox);ve.iconBox&&Ge(t.iconCollisionBox.collisionVertexArray,$.icon.placed,Ce,w?ge.x:0,w?ge.y:0),ve.verticalIconBox&&Ge(t.iconCollisionBox.collisionVertexArray,$.icon.placed,!Ce,w?ge.x:0,w?ge.y:0)}}}if(t.sortFeatures(this.transform.angle),this.retainedQueryData[t.bucketInstanceId]&&(this.retainedQueryData[t.bucketInstanceId].featureSortOrder=t.featureSortOrder),t.hasTextData()&&t.text.opacityVertexBuffer&&t.text.opacityVertexBuffer.updateData(t.text.opacityVertexArray),t.hasIconData()&&t.icon.opacityVertexBuffer&&t.icon.opacityVertexBuffer.updateData(t.icon.opacityVertexArray),t.hasIconCollisionBoxData()&&t.iconCollisionBox.collisionVertexBuffer&&t.iconCollisionBox.collisionVertexBuffer.updateData(t.iconCollisionBox.collisionVertexArray),t.hasTextCollisionBoxData()&&t.textCollisionBox.collisionVertexBuffer&&t.textCollisionBox.collisionVertexBuffer.updateData(t.textCollisionBox.collisionVertexArray),t.text.opacityVertexArray.length!==t.text.layoutVertexArray.length/4)throw new Error(`bucket.text.opacityVertexArray.length (= ${t.text.opacityVertexArray.length}) !== bucket.text.layoutVertexArray.length (= ${t.text.layoutVertexArray.length}) / 4`);if(t.icon.opacityVertexArray.length!==t.icon.layoutVertexArray.length/4)throw new Error(`bucket.icon.opacityVertexArray.length (= ${t.icon.opacityVertexArray.length}) !== bucket.icon.layoutVertexArray.length (= ${t.icon.layoutVertexArray.length}) / 4`);if(t.bucketInstanceId in this.collisionCircleArrays){const B=this.collisionCircleArrays[t.bucketInstanceId];t.placementInvProjMatrix=B.invProjMatrix,t.placementViewportMatrix=B.viewportMatrix,t.collisionCircleArray=B.circles,delete this.collisionCircleArrays[t.bucketInstanceId]}}symbolFadeChange(t){return this.fadeDuration===0?1:(t-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(t){return Math.max(0,(this.transform.zoom-t)/1.5)}hasTransitions(t){return this.stale||t-this.lastPlacementChangeTimet}setStale(){this.stale=!0}}function Ge(o,t,n,a,c){o.emplaceBack(t?1:0,n?1:0,a||0,c||0),o.emplaceBack(t?1:0,n?1:0,a||0,c||0),o.emplaceBack(t?1:0,n?1:0,a||0,c||0),o.emplaceBack(t?1:0,n?1:0,a||0,c||0)}const at=Math.pow(2,25),tt=Math.pow(2,24),ct=Math.pow(2,17),Tt=Math.pow(2,16),Xt=Math.pow(2,9),Ze=Math.pow(2,8),Lt=Math.pow(2,1);function Ur(o){if(o.opacity===0&&!o.placed)return 0;if(o.opacity===1&&o.placed)return 4294967295;const t=o.placed?1:0,n=Math.floor(127*o.opacity);return n*at+t*tt+n*ct+t*Tt+n*Xt+t*Ze+n*Lt+t}const di=0;class Li{constructor(t){this._sortAcrossTiles=t.layout.get("symbol-z-order")!=="viewport-y"&&!t.layout.get("symbol-sort-key").isConstant(),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]}continuePlacement(t,n,a,c,p){const m=this._bucketParts;for(;this._currentTileIndexy.sortKey-_.sortKey));this._currentPartIndex!this._forceFullPlacement&&h.exported.now()-c>2;for(;this._currentPlacementIndex>=0;){const m=n[t[this._currentPlacementIndex]],y=this.placement.collisionIndex.transform.zoom;if(m.type==="symbol"&&(!m.minzoom||m.minzoom<=y)&&(!m.maxzoom||m.maxzoom>y)){if(this._inProgressLayer||(this._inProgressLayer=new Li(m)),this._inProgressLayer.continuePlacement(a[m.source],this.placement,this._showCollisionBoxes,m,p))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(t){return this.placement.commit(t),this.placement}}const Tn=512/h.EXTENT/2;class ms{constructor(t,n,a){this.tileID=t,this.bucketInstanceId=a,this._symbolsByKey={};const c=new Map;for(let p=0;p({x:Math.floor(_.anchorX*Tn),y:Math.floor(_.anchorY*Tn)})),crossTileIDs:m.map(_=>_.crossTileID)};if(y.positions.length>128){const _=new h.KDBush(y.positions.length,16,Uint16Array);for(const{x,y:T}of y.positions)_.add(x,T);_.finish(),delete y.positions,y.index=_}this._symbolsByKey[p]=y}}getScaledCoordinates(t,n){const{x:a,y:c,z:p}=this.tileID.canonical,{x:m,y,z:_}=n.canonical,x=Tn/Math.pow(2,_-p),T=(y*h.EXTENT+t.anchorY)*x,w=c*h.EXTENT*Tn;return{x:Math.floor((m*h.EXTENT+t.anchorX)*x-a*h.EXTENT*Tn),y:Math.floor(T-w)}}findMatches(t,n,a){const c=this.tileID.canonical.zt)}}class Wt{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}}class Zn{constructor(){this.indexes={},this.usedCrossTileIDs={},this.lng=0}handleWrapJump(t){const n=Math.round((t-this.lng)/360);if(n!==0)for(const a in this.indexes){const c=this.indexes[a],p={};for(const m in c){const y=c[m];y.tileID=y.tileID.unwrapTo(y.tileID.wrap+n),p[y.tileID.key]=y}this.indexes[a]=p}this.lng=t}addBucket(t,n,a){if(this.indexes[t.overscaledZ]&&this.indexes[t.overscaledZ][t.key]){if(this.indexes[t.overscaledZ][t.key].bucketInstanceId===n.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(t.overscaledZ,this.indexes[t.overscaledZ][t.key])}for(let p=0;pt.overscaledZ)for(const y in m){const _=m[y];_.tileID.isChildOf(t)&&_.findMatches(n.symbolInstances,t,c)}else{const y=m[t.scaledTo(Number(p)).key];y&&y.findMatches(n.symbolInstances,t,c)}}for(let p=0;p{n[a]=!0});for(const a in this.layerIndexes)n[a]||delete this.layerIndexes[a]}}const Nt=(o,t)=>h.emitValidationErrors(o,t&&t.filter(n=>n.identifier!=="source.canvas")),gs=h.pick(h.operations,["addLayer","removeLayer","setPaintProperty","setLayoutProperty","setFilter","addSource","removeSource","setLayerZoomRange","setLight","setTransition","setGeoJSONSourceData","setGlyphs","setSprite"]),tr=h.pick(h.operations,["setCenter","setZoom","setBearing","setPitch"]),Ao=h.emptyStyle();class pi extends h.Evented{constructor(t,n={}){super(),this.map=t,this.dispatcher=new bi(wn(),this,t._getMapId()),this.imageManager=new Zi,this.imageManager.setEventedParent(this),this.glyphManager=new vr(t._requestManager,n.localIdeographFontFamily),this.lineAtlas=new Br(256,512),this.crossTileSymbolIndex=new Vr,this._spritesImagesIds={},this._layers={},this._order=[],this.sourceCaches={},this.zoomHistory=new h.ZoomHistory,this._loaded=!1,this._availableImages=[],this._resetUpdates(),this.dispatcher.broadcast("setReferrer",h.getReferrer());const a=this;this._rtlTextPluginCallback=pi.registerForPluginStateChange(c=>{a.dispatcher.broadcast("syncRTLPluginState",{pluginStatus:c.pluginStatus,pluginURL:c.pluginURL},(p,m)=>{if(h.triggerPluginCompletionEvent(p),m&&m.every(y=>y))for(const y in a.sourceCaches){const _=a.sourceCaches[y].getSource().type;_!=="vector"&&_!=="geojson"||a.sourceCaches[y].reload()}})}),this.on("data",c=>{if(c.dataType!=="source"||c.sourceDataType!=="metadata")return;const p=this.sourceCaches[c.sourceId];if(!p)return;const m=p.getSource();if(m&&m.vectorLayerIds)for(const y in this._layers){const _=this._layers[y];_.source===m.id&&this._validateLayer(_)}})}loadURL(t,n={},a){this.fire(new h.Event("dataloading",{dataType:"style"})),n.validate=typeof n.validate!="boolean"||n.validate;const c=this.map._requestManager.transformRequest(t,et.Style);this._request=h.getJSON(c,(p,m)=>{this._request=null,p?this.fire(new h.ErrorEvent(p)):m&&this._load(m,n,a)})}loadJSON(t,n={},a){this.fire(new h.Event("dataloading",{dataType:"style"})),this._request=h.exported.frame(()=>{this._request=null,n.validate=n.validate!==!1,this._load(t,n,a)})}loadEmpty(){this.fire(new h.Event("dataloading",{dataType:"style"})),this._load(Ao,{validate:!1})}_load(t,n,a){const c=n.transformStyle?n.transformStyle(a,t):t;if(!n.validate||!Nt(this,h.validateStyle(c))){this._loaded=!0,this.stylesheet=c;for(const p in c.sources)this.addSource(p,c.sources[p],{validate:!1});c.sprite?this._loadSprite(c.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(c.glyphs),this._createLayers(),this.light=new Nn(this.stylesheet.light),this.map.setTerrain(this.stylesheet.terrain),this.fire(new h.Event("data",{dataType:"style"})),this.fire(new h.Event("style.load"))}}_createLayers(){const t=h.derefLayers(this.stylesheet.layers);this.dispatcher.broadcast("setLayers",t),this._order=t.map(n=>n.id),this._layers={},this._serializedLayers=null;for(const n of t){const a=h.createStyleLayer(n);a.setEventedParent(this,{layer:{id:n.id}}),this._layers[n.id]=a}}_loadSprite(t,n=!1,a=void 0){this.imageManager.setLoaded(!1),this._spriteRequest=function(c,p,m,y){const _=ni(c),x=_.length,T=m>1?"@2x":"",w={},k={},O={};for(const{id:B,url:R}of _){const q=p.transformRequest(p.normalizeSpriteURL(R,T,".json"),et.SpriteJSON),H=`${B}_${q.url}`;w[H]=h.getJSON(q,(re,oe)=>{delete w[H],k[B]=oe,Vt(y,k,O,re,x)});const se=p.transformRequest(p.normalizeSpriteURL(R,T,".png"),et.SpriteImage),$=`${B}_${se.url}`;w[$]=Bt.getImage(se,(re,oe)=>{delete w[$],O[B]=oe,Vt(y,k,O,re,x)})}return{cancel(){for(const B of Object.values(w))B.cancel()}}}(t,this.map._requestManager,this.map.getPixelRatio(),(c,p)=>{if(this._spriteRequest=null,c)this.fire(new h.ErrorEvent(c));else if(p)for(const m in p){this._spritesImagesIds[m]=[];const y=this._spritesImagesIds[m]?this._spritesImagesIds[m].filter(_=>!(_ in p)):[];for(const _ of y)this.imageManager.removeImage(_),this._changedImages[_]=!0;for(const _ in p[m]){const x=m==="default"?_:`${m}:${_}`;this._spritesImagesIds[m].push(x),x in this.imageManager.images?this.imageManager.updateImage(x,p[m][_],!1):this.imageManager.addImage(x,p[m][_]),n&&(this._changedImages[x]=!0)}}this.imageManager.setLoaded(!0),this._availableImages=this.imageManager.listImages(),n&&(this._changed=!0),this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new h.Event("data",{dataType:"style"})),a&&a(c)})}_unloadSprite(){for(const t of Object.values(this._spritesImagesIds).flat())this.imageManager.removeImage(t),this._changedImages[t]=!0;this._spritesImagesIds={},this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new h.Event("data",{dataType:"style"}))}_validateLayer(t){const n=this.sourceCaches[t.source];if(!n)return;const a=t.sourceLayer;if(!a)return;const c=n.getSource();(c.type==="geojson"||c.vectorLayerIds&&c.vectorLayerIds.indexOf(a)===-1)&&this.fire(new h.ErrorEvent(new Error(`Source layer "${a}" does not exist on source "${c.id}" as specified by style layer "${t.id}".`)))}loaded(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(const t in this.sourceCaches)if(!this.sourceCaches[t].loaded())return!1;return!!this.imageManager.isLoaded()}_serializeByIds(t){const n=this._serializedAllLayers();if(!t||t.length===0)return Object.values(n);const a=[];for(const c of t)n[c]&&a.push(n[c]);return a}_serializedAllLayers(){let t=this._serializedLayers;if(t)return t;t=this._serializedLayers={};const n=Object.keys(this._layers);for(const a of n){const c=this._layers[a];c.type!=="custom"&&(t[a]=c.serialize())}return t}hasTransitions(){if(this.light&&this.light.hasTransition())return!0;for(const t in this.sourceCaches)if(this.sourceCaches[t].hasTransition())return!0;for(const t in this._layers)if(this._layers[t].hasTransition())return!0;return!1}_checkLoaded(){if(!this._loaded)throw new Error("Style is not done loading.")}update(t){if(!this._loaded)return;const n=this._changed;if(this._changed){const c=Object.keys(this._updatedLayers),p=Object.keys(this._removedLayers);(c.length||p.length)&&this._updateWorkerLayers(c,p);for(const m in this._updatedSources){const y=this._updatedSources[m];if(y==="reload")this._reloadSource(m);else{if(y!=="clear")throw new Error(`Invalid action ${y}`);this._clearSource(m)}}this._updateTilesForChangedImages(),this._updateTilesForChangedGlyphs();for(const m in this._updatedPaintProps)this._layers[m].updateTransitions(t);this.light.updateTransitions(t),this._resetUpdates()}const a={};for(const c in this.sourceCaches){const p=this.sourceCaches[c];a[c]=p.used,p.used=!1}for(const c of this._order){const p=this._layers[c];p.recalculate(t,this._availableImages),!p.isHidden(t.zoom)&&p.source&&(this.sourceCaches[p.source].used=!0)}for(const c in a){const p=this.sourceCaches[c];a[c]!==p.used&&p.fire(new h.Event("data",{sourceDataType:"visibility",dataType:"source",sourceId:c}))}this.light.recalculate(t),this.z=t.zoom,n&&this.fire(new h.Event("data",{dataType:"style"}))}_updateTilesForChangedImages(){const t=Object.keys(this._changedImages);if(t.length){for(const n in this.sourceCaches)this.sourceCaches[n].reloadTilesForDependencies(["icons","patterns"],t);this._changedImages={}}}_updateTilesForChangedGlyphs(){if(this._glyphsDidChange){for(const t in this.sourceCaches)this.sourceCaches[t].reloadTilesForDependencies(["glyphs"],[""]);this._glyphsDidChange=!1}}_updateWorkerLayers(t,n){this.dispatcher.broadcast("updateLayers",{layers:this._serializeByIds(t),removedIds:n})}_resetUpdates(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={},this._glyphsDidChange=!1}setState(t,n={}){this._checkLoaded();const a=this.serialize();if(t=n.transformStyle?n.transformStyle(a,t):t,Nt(this,h.validateStyle(t)))return!1;(t=h.clone$1(t)).layers=h.derefLayers(t.layers);const c=h.diffStyles(a,t).filter(m=>!(m.command in tr));if(c.length===0)return!1;const p=c.filter(m=>!(m.command in gs));if(p.length>0)throw new Error(`Unimplemented: ${p.map(m=>m.command).join(", ")}.`);for(const m of c)m.command!=="setTransition"&&this[m.command].apply(this,m.args);return this.stylesheet=t,!0}addImage(t,n){if(this.getImage(t))return this.fire(new h.ErrorEvent(new Error(`An image named "${t}" already exists.`)));this.imageManager.addImage(t,n),this._afterImageUpdated(t)}updateImage(t,n){this.imageManager.updateImage(t,n)}getImage(t){return this.imageManager.getImage(t)}removeImage(t){if(!this.getImage(t))return this.fire(new h.ErrorEvent(new Error(`An image named "${t}" does not exist.`)));this.imageManager.removeImage(t),this._afterImageUpdated(t)}_afterImageUpdated(t){this._availableImages=this.imageManager.listImages(),this._changedImages[t]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new h.Event("data",{dataType:"style"}))}listImages(){return this._checkLoaded(),this.imageManager.listImages()}addSource(t,n,a={}){if(this._checkLoaded(),this.sourceCaches[t]!==void 0)throw new Error(`Source "${t}" already exists.`);if(!n.type)throw new Error(`The type property must be defined, but only the following properties were given: ${Object.keys(n).join(", ")}.`);if(["vector","raster","geojson","video","image"].indexOf(n.type)>=0&&this._validate(h.validateStyle.source,`sources.${t}`,n,null,a))return;this.map&&this.map._collectResourceTiming&&(n.collectResourceTiming=!0);const c=this.sourceCaches[t]=new Gt(t,n,this.dispatcher);c.style=this,c.setEventedParent(this,()=>({isSourceLoaded:c.loaded(),source:c.serialize(),sourceId:t})),c.onAdd(this.map),this._changed=!0}removeSource(t){if(this._checkLoaded(),this.sourceCaches[t]===void 0)throw new Error("There is no source with this ID");for(const a in this._layers)if(this._layers[a].source===t)return this.fire(new h.ErrorEvent(new Error(`Source "${t}" cannot be removed while layer "${a}" is using it.`)));const n=this.sourceCaches[t];delete this.sourceCaches[t],delete this._updatedSources[t],n.fire(new h.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:t})),n.setEventedParent(null),n.onRemove(this.map),this._changed=!0}setGeoJSONSourceData(t,n){if(this._checkLoaded(),this.sourceCaches[t]===void 0)throw new Error(`There is no source with this ID=${t}`);const a=this.sourceCaches[t].getSource();if(a.type!=="geojson")throw new Error(`geojsonSource.type is ${a.type}, which is !== 'geojson`);a.setData(n),this._changed=!0}getSource(t){return this.sourceCaches[t]&&this.sourceCaches[t].getSource()}addLayer(t,n,a={}){this._checkLoaded();const c=t.id;if(this.getLayer(c))return void this.fire(new h.ErrorEvent(new Error(`Layer "${c}" already exists on this map.`)));let p;if(t.type==="custom"){if(Nt(this,h.validateCustomStyleLayer(t)))return;p=h.createStyleLayer(t)}else{if(typeof t.source=="object"&&(this.addSource(c,t.source),t=h.clone$1(t),t=h.extend(t,{source:c})),this._validate(h.validateStyle.layer,`layers.${c}`,t,{arrayIndex:-1},a))return;p=h.createStyleLayer(t),this._validateLayer(p),p.setEventedParent(this,{layer:{id:c}})}const m=n?this._order.indexOf(n):this._order.length;if(n&&m===-1)this.fire(new h.ErrorEvent(new Error(`Cannot add layer "${c}" before non-existing layer "${n}".`)));else{if(this._order.splice(m,0,c),this._layerOrderChanged=!0,this._layers[c]=p,this._removedLayers[c]&&p.source&&p.type!=="custom"){const y=this._removedLayers[c];delete this._removedLayers[c],y.type!==p.type?this._updatedSources[p.source]="clear":(this._updatedSources[p.source]="reload",this.sourceCaches[p.source].pause())}this._updateLayer(p),p.onAdd&&p.onAdd(this.map)}}moveLayer(t,n){if(this._checkLoaded(),this._changed=!0,!this._layers[t])return void this.fire(new h.ErrorEvent(new Error(`The layer '${t}' does not exist in the map's style and cannot be moved.`)));if(t===n)return;const a=this._order.indexOf(t);this._order.splice(a,1);const c=n?this._order.indexOf(n):this._order.length;n&&c===-1?this.fire(new h.ErrorEvent(new Error(`Cannot move layer "${t}" before non-existing layer "${n}".`))):(this._order.splice(c,0,t),this._layerOrderChanged=!0)}removeLayer(t){this._checkLoaded();const n=this._layers[t];if(!n)return void this.fire(new h.ErrorEvent(new Error(`Cannot remove non-existing layer "${t}".`)));n.setEventedParent(null);const a=this._order.indexOf(t);this._order.splice(a,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[t]=n,delete this._layers[t],this._serializedLayers&&delete this._serializedLayers[t],delete this._updatedLayers[t],delete this._updatedPaintProps[t],n.onRemove&&n.onRemove(this.map)}getLayer(t){return this._layers[t]}hasLayer(t){return t in this._layers}setLayerZoomRange(t,n,a){this._checkLoaded();const c=this.getLayer(t);c?c.minzoom===n&&c.maxzoom===a||(n!=null&&(c.minzoom=n),a!=null&&(c.maxzoom=a),this._updateLayer(c)):this.fire(new h.ErrorEvent(new Error(`Cannot set the zoom range of non-existing layer "${t}".`)))}setFilter(t,n,a={}){this._checkLoaded();const c=this.getLayer(t);if(c){if(!h.deepEqual(c.filter,n))return n==null?(c.filter=void 0,void this._updateLayer(c)):void(this._validate(h.validateStyle.filter,`layers.${c.id}.filter`,n,null,a)||(c.filter=h.clone$1(n),this._updateLayer(c)))}else this.fire(new h.ErrorEvent(new Error(`Cannot filter non-existing layer "${t}".`)))}getFilter(t){return h.clone$1(this.getLayer(t).filter)}setLayoutProperty(t,n,a,c={}){this._checkLoaded();const p=this.getLayer(t);p?h.deepEqual(p.getLayoutProperty(n),a)||(p.setLayoutProperty(n,a,c),this._updateLayer(p)):this.fire(new h.ErrorEvent(new Error(`Cannot style non-existing layer "${t}".`)))}getLayoutProperty(t,n){const a=this.getLayer(t);if(a)return a.getLayoutProperty(n);this.fire(new h.ErrorEvent(new Error(`Cannot get style of non-existing layer "${t}".`)))}setPaintProperty(t,n,a,c={}){this._checkLoaded();const p=this.getLayer(t);p?h.deepEqual(p.getPaintProperty(n),a)||(p.setPaintProperty(n,a,c)&&this._updateLayer(p),this._changed=!0,this._updatedPaintProps[t]=!0):this.fire(new h.ErrorEvent(new Error(`Cannot style non-existing layer "${t}".`)))}getPaintProperty(t,n){return this.getLayer(t).getPaintProperty(n)}setFeatureState(t,n){this._checkLoaded();const a=t.source,c=t.sourceLayer,p=this.sourceCaches[a];if(p===void 0)return void this.fire(new h.ErrorEvent(new Error(`The source '${a}' does not exist in the map's style.`)));const m=p.getSource().type;m==="geojson"&&c?this.fire(new h.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):m!=="vector"||c?(t.id===void 0&&this.fire(new h.ErrorEvent(new Error("The feature id parameter must be provided."))),p.setFeatureState(c,t.id,n)):this.fire(new h.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}removeFeatureState(t,n){this._checkLoaded();const a=t.source,c=this.sourceCaches[a];if(c===void 0)return void this.fire(new h.ErrorEvent(new Error(`The source '${a}' does not exist in the map's style.`)));const p=c.getSource().type,m=p==="vector"?t.sourceLayer:void 0;p!=="vector"||m?n&&typeof t.id!="string"&&typeof t.id!="number"?this.fire(new h.ErrorEvent(new Error("A feature id is required to remove its specific state property."))):c.removeFeatureState(m,t.id,n):this.fire(new h.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}getFeatureState(t){this._checkLoaded();const n=t.source,a=t.sourceLayer,c=this.sourceCaches[n];if(c!==void 0)return c.getSource().type!=="vector"||a?(t.id===void 0&&this.fire(new h.ErrorEvent(new Error("The feature id parameter must be provided."))),c.getFeatureState(a,t.id)):void this.fire(new h.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));this.fire(new h.ErrorEvent(new Error(`The source '${n}' does not exist in the map's style.`)))}getTransition(){return h.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)}serialize(){const t=h.mapObject(this.sourceCaches,c=>c.serialize()),n=this._serializeByIds(this._order),a=this.stylesheet;return h.filterObject({version:a.version,name:a.name,metadata:a.metadata,light:a.light,center:a.center,zoom:a.zoom,bearing:a.bearing,pitch:a.pitch,sprite:a.sprite,glyphs:a.glyphs,transition:a.transition,sources:t,layers:n},c=>c!==void 0)}_updateLayer(t){this._updatedLayers[t.id]=!0,t.source&&!this._updatedSources[t.source]&&this.sourceCaches[t.source].getSource().type!=="raster"&&(this._updatedSources[t.source]="reload",this.sourceCaches[t.source].pause()),this._serializedLayers=null,this._changed=!0}_flattenAndSortRenderedFeatures(t){const n=m=>this._layers[m].type==="fill-extrusion",a={},c=[];for(let m=this._order.length-1;m>=0;m--){const y=this._order[m];if(n(y)){a[y]=m;for(const _ of t){const x=_[y];if(x)for(const T of x)c.push(T)}}}c.sort((m,y)=>y.intersectionZ-m.intersectionZ);const p=[];for(let m=this._order.length-1;m>=0;m--){const y=this._order[m];if(n(y))for(let _=c.length-1;_>=0;_--){const x=c[_].feature;if(a[x.layer.id]{const ve=H.featureSortOrder;if(ve){const ge=ve.indexOf(me.featureIndex);return ve.indexOf(_e.featureIndex)-ge}return _e.featureIndex-me.featureIndex});for(const me of oe)re.push(me)}}for(const H in B)B[H].forEach(se=>{const $=se.feature,re=x[y[H].source].getFeatureState($.layer["source-layer"],$.id);$.source=$.layer.source,$.layer["source-layer"]&&($.sourceLayer=$.layer["source-layer"]),$.state=re});return B}(this._layers,m,this.sourceCaches,t,n,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(p)}querySourceFeatures(t,n){n&&n.filter&&this._validate(h.validateStyle.filter,"querySourceFeatures.filter",n.filter,null,n);const a=this.sourceCaches[t];return a?function(c,p){const m=c.getRenderableIds().map(x=>c.getTileByID(x)),y=[],_={};for(let x=0;xk.getTileByID(O)).sort((O,B)=>B.tileID.overscaledZ-O.tileID.overscaledZ||(O.tileID.isLessThan(B.tileID)?-1:1))}const w=this.crossTileSymbolIndex.addLayer(T,_[T.source],t.center.lng);m=m||w}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),((p=p||this._layerOrderChanged||a===0)||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(h.exported.now(),t.zoom))&&(this.pauseablePlacement=new Wi(t,this.map.terrain,this._order,p,n,a,c,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,_),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(h.exported.now()),y=!0),m&&this.pauseablePlacement.placement.setStale()),y||m)for(const x of this._order){const T=this._layers[x];T.type==="symbol"&&this.placement.updateLayerOpacities(T,_[T.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(h.exported.now())}_releaseSymbolFadeTiles(){for(const t in this.sourceCaches)this.sourceCaches[t].releaseSymbolFadeTiles()}getImages(t,n,a){this.imageManager.getImages(n.icons,a),this._updateTilesForChangedImages();const c=this.sourceCaches[n.source];c&&c.setDependencies(n.tileID.key,n.type,n.icons)}getGlyphs(t,n,a){this.glyphManager.getGlyphs(n.stacks,a);const c=this.sourceCaches[n.source];c&&c.setDependencies(n.tileID.key,n.type,[""])}getResource(t,n,a){return h.makeRequest(n,a)}getGlyphsUrl(){return this.stylesheet.glyphs||null}setGlyphs(t,n={}){this._checkLoaded(),t&&this._validate(h.validateStyle.glyphs,"glyphs",t,null,n)||(this._glyphsDidChange=!0,this.stylesheet.glyphs=t,this.glyphManager.entries={},this.glyphManager.setURL(t))}addSprite(t,n,a={},c){this._checkLoaded();const p=[{id:t,url:n}],m=[...ni(this.stylesheet.sprite),...p];this._validate(h.validateStyle.sprite,"sprite",m,null,a)||(this.stylesheet.sprite=m,this._loadSprite(p,!0,c))}removeSprite(t){this._checkLoaded();const n=ni(this.stylesheet.sprite);if(n.find(a=>a.id===t)){if(this._spritesImagesIds[t])for(const a of this._spritesImagesIds[t])this.imageManager.removeImage(a),this._changedImages[a]=!0;n.splice(n.findIndex(a=>a.id===t),1),this.stylesheet.sprite=n.length>0?n:void 0,delete this._spritesImagesIds[t],this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new h.Event("data",{dataType:"style"}))}else this.fire(new h.ErrorEvent(new Error(`Sprite "${t}" doesn't exists on this map.`)))}getSprite(){return ni(this.stylesheet.sprite)}setSprite(t,n={},a){this._checkLoaded(),t&&this._validate(h.validateStyle.sprite,"sprite",t,null,n)||(this.stylesheet.sprite=t,t?this._loadSprite(t,!0,a):(this._unloadSprite(),a&&a(null)))}}pi.getSourceType=function(o){return Fr[o]},pi.setSourceType=function(o,t){Fr[o]=t},pi.registerForPluginStateChange=h.registerForPluginStateChange;var _a=h.createLayout([{name:"a_pos",type:"Int16",components:2}]),_s="attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform float u_ele_delta;varying vec2 v_texture_pos;varying float v_depth;void main() {float extent=8192.0;float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/extent;gl_Position=u_matrix*vec4(a_pos3d.xy,get_elevation(a_pos3d.xy)-ele_delta,1.0);v_depth=gl_Position.z/gl_Position.w;}";const Nr={prelude:mt(`#ifdef GL_ES -precision mediump float; -#else -#if !defined(lowp) -#define lowp -#endif -#if !defined(mediump) -#define mediump -#endif -#if !defined(highp) -#define highp -#endif -#endif -`,`#ifdef GL_ES -precision highp float; -#else -#if !defined(lowp) -#define lowp -#endif -#if !defined(mediump) -#define mediump -#endif -#if !defined(highp) -#define highp -#endif -#endif -vec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(unpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0 -);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;} -#ifdef TERRAIN3D -uniform sampler2D u_terrain;uniform float u_terrain_dim;uniform mat4 u_terrain_matrix;uniform vec4 u_terrain_unpack;uniform float u_terrain_exaggeration;uniform highp sampler2D u_depth; -#endif -const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitShifts=vec4(1.)/bitSh;highp float unpack(highp vec4 color) {return dot(color,bitShifts);}highp float depthOpacity(vec3 frag) { -#ifdef TERRAIN3D -highp float d=unpack(texture2D(u_depth,frag.xy*0.5+0.5))+0.0001-frag.z;return 1.0-max(0.0,min(1.0,-d*500.0)); -#else -return 1.0; -#endif -}float calculate_visibility(vec4 pos) { -#ifdef TERRAIN3D -vec3 frag=pos.xyz/pos.w;highp float d=depthOpacity(frag);if (d > 0.95) return 1.0;return (d+depthOpacity(frag+vec3(0.0,0.01,0.0)))/2.0; -#else -return 1.0; -#endif -}float ele(vec2 pos) { -#ifdef TERRAIN3D -vec4 rgb=(texture2D(u_terrain,pos)*255.0)*u_terrain_unpack;return rgb.r+rgb.g+rgb.b-u_terrain_unpack.a; -#else -return 0.0; -#endif -}float get_elevation(vec2 pos) { -#ifdef TERRAIN3D -vec2 coord=(u_terrain_matrix*vec4(pos,0.0,1.0)).xy*u_terrain_dim+1.0;vec2 f=fract(coord);vec2 c=(floor(coord)+0.5)/(u_terrain_dim+2.0);float d=1.0/(u_terrain_dim+2.0);float tl=ele(c);float tr=ele(c+vec2(d,0.0));float bl=ele(c+vec2(0.0,d));float br=ele(c+vec2(d,d));float elevation=mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);return elevation*u_terrain_exaggeration; -#else -return 0.0; -#endif -}`),background:mt(`uniform vec4 u_color;uniform float u_opacity;void main() {gl_FragColor=u_color*u_opacity; -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,"attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),backgroundPattern:mt(`uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_mix)*u_opacity; -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,"uniform mat4 u_matrix;uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);}"),circle:mt(`varying vec3 v_data;varying float v_visibility; -#pragma mapbox: define highp vec4 color -#pragma mapbox: define mediump float radius -#pragma mapbox: define lowp float blur -#pragma mapbox: define lowp float opacity -#pragma mapbox: define highp vec4 stroke_color -#pragma mapbox: define mediump float stroke_width -#pragma mapbox: define lowp float stroke_opacity -void main() { -#pragma mapbox: initialize highp vec4 color -#pragma mapbox: initialize mediump float radius -#pragma mapbox: initialize lowp float blur -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize highp vec4 stroke_color -#pragma mapbox: initialize mediump float stroke_width -#pragma mapbox: initialize lowp float stroke_opacity -vec2 extrude=v_data.xy;float extrude_length=length(extrude);lowp float antialiasblur=v_data.z;float antialiased_blur=-max(blur,antialiasblur);float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(antialiased_blur,0.0,extrude_length-radius/(radius+stroke_width));gl_FragColor=v_visibility*opacity_t*mix(color*opacity,stroke_color*stroke_opacity,color_t); -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,`uniform mat4 u_matrix;uniform bool u_scale_with_map;uniform bool u_pitch_with_map;uniform vec2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;varying vec3 v_data;varying float v_visibility; -#pragma mapbox: define highp vec4 color -#pragma mapbox: define mediump float radius -#pragma mapbox: define lowp float blur -#pragma mapbox: define lowp float opacity -#pragma mapbox: define highp vec4 stroke_color -#pragma mapbox: define mediump float stroke_width -#pragma mapbox: define lowp float stroke_opacity -void main(void) { -#pragma mapbox: initialize highp vec4 color -#pragma mapbox: initialize mediump float radius -#pragma mapbox: initialize lowp float blur -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize highp vec4 stroke_color -#pragma mapbox: initialize mediump float stroke_width -#pragma mapbox: initialize lowp float stroke_opacity -vec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);float ele=get_elevation(circle_center);v_visibility=calculate_visibility(u_matrix*vec4(circle_center,ele,1.0));if (u_pitch_with_map) {vec2 corner_position=circle_center;if (u_scale_with_map) {corner_position+=extrude*(radius+stroke_width)*u_extrude_scale;} else {vec4 projected_center=u_matrix*vec4(circle_center,0,1);corner_position+=extrude*(radius+stroke_width)*u_extrude_scale*(projected_center.w/u_camera_to_center_distance);}gl_Position=u_matrix*vec4(corner_position,ele,1);} else {gl_Position=u_matrix*vec4(circle_center,ele,1);if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}lowp float antialiasblur=1.0/u_device_pixel_ratio/(radius+stroke_width);v_data=vec3(extrude.x,extrude.y,antialiasblur);}`),clippingMask:mt("void main() {gl_FragColor=vec4(1.0);}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),heatmap:mt(`uniform highp float u_intensity;varying vec2 v_extrude; -#pragma mapbox: define highp float weight -#define GAUSS_COEF 0.3989422804014327 -void main() { -#pragma mapbox: initialize highp float weight -float d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);gl_FragColor=vec4(val,1.0,1.0,1.0); -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,`uniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;attribute vec2 a_pos;varying vec2 v_extrude; -#pragma mapbox: define highp float weight -#pragma mapbox: define mediump float radius -const highp float ZERO=1.0/255.0/16.0; -#define GAUSS_COEF 0.3989422804014327 -void main(void) { -#pragma mapbox: initialize highp float weight -#pragma mapbox: initialize mediump float radius -vec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec4 pos=vec4(floor(a_pos*0.5)+extrude,0,1);gl_Position=u_matrix*pos;}`),heatmapTexture:mt(`uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;varying vec2 v_pos;void main() {float t=texture2D(u_image,v_pos).r;vec4 color=texture2D(u_color_ramp,vec2(t,0.5));gl_FragColor=color*u_opacity; -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(0.0); -#endif -}`,"uniform mat4 u_matrix;uniform vec2 u_world;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"),collisionBox:mt("varying float v_placed;varying float v_notUsed;void main() {float alpha=0.5;gl_FragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}","attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,get_elevation(a_pos),1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}"),collisionCircle:mt("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}","attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),debug:mt("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}","attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,get_elevation(a_pos),1);}"),fill:mt(`#pragma mapbox: define highp vec4 color -#pragma mapbox: define lowp float opacity -void main() { -#pragma mapbox: initialize highp vec4 color -#pragma mapbox: initialize lowp float opacity -gl_FragColor=color*opacity; -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,`attribute vec2 a_pos;uniform mat4 u_matrix; -#pragma mapbox: define highp vec4 color -#pragma mapbox: define lowp float opacity -void main() { -#pragma mapbox: initialize highp vec4 color -#pragma mapbox: initialize lowp float opacity -gl_Position=u_matrix*vec4(a_pos,0,1);}`),fillOutline:mt(`varying vec2 v_pos; -#pragma mapbox: define highp vec4 outline_color -#pragma mapbox: define lowp float opacity -void main() { -#pragma mapbox: initialize highp vec4 outline_color -#pragma mapbox: initialize lowp float opacity -float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=outline_color*(alpha*opacity); -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,`attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos; -#pragma mapbox: define highp vec4 outline_color -#pragma mapbox: define lowp float opacity -void main() { -#pragma mapbox: initialize highp vec4 outline_color -#pragma mapbox: initialize lowp float opacity -gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}`),fillOutlinePattern:mt(`uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos; -#pragma mapbox: define lowp float opacity -#pragma mapbox: define lowp vec4 pattern_from -#pragma mapbox: define lowp vec4 pattern_to -void main() { -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize mediump vec4 pattern_from -#pragma mapbox: initialize mediump vec4 pattern_to -vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=mix(color1,color2,u_fade)*alpha*opacity; -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,`uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos; -#pragma mapbox: define lowp float opacity -#pragma mapbox: define lowp vec4 pattern_from -#pragma mapbox: define lowp vec4 pattern_to -#pragma mapbox: define lowp float pixel_ratio_from -#pragma mapbox: define lowp float pixel_ratio_to -void main() { -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize mediump vec4 pattern_from -#pragma mapbox: initialize mediump vec4 pattern_to -#pragma mapbox: initialize lowp float pixel_ratio_from -#pragma mapbox: initialize lowp float pixel_ratio_to -vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}`),fillPattern:mt(`#ifdef GL_ES -precision highp float; -#endif -uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b; -#pragma mapbox: define lowp float opacity -#pragma mapbox: define lowp vec4 pattern_from -#pragma mapbox: define lowp vec4 pattern_to -void main() { -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize mediump vec4 pattern_from -#pragma mapbox: initialize mediump vec4 pattern_to -vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_fade)*opacity; -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,`uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b; -#pragma mapbox: define lowp float opacity -#pragma mapbox: define lowp vec4 pattern_from -#pragma mapbox: define lowp vec4 pattern_to -#pragma mapbox: define lowp float pixel_ratio_from -#pragma mapbox: define lowp float pixel_ratio_to -void main() { -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize mediump vec4 pattern_from -#pragma mapbox: initialize mediump vec4 pattern_to -#pragma mapbox: initialize lowp float pixel_ratio_from -#pragma mapbox: initialize lowp float pixel_ratio_to -vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}`),fillExtrusion:mt(`varying vec4 v_color;void main() {gl_FragColor=v_color; -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,`uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec2 a_pos;attribute vec4 a_normal_ed; -#ifdef TERRAIN3D -attribute vec2 a_centroid; -#endif -varying vec4 v_color; -#pragma mapbox: define highp float base -#pragma mapbox: define highp float height -#pragma mapbox: define highp vec4 color -void main() { -#pragma mapbox: initialize highp float base -#pragma mapbox: initialize highp float height -#pragma mapbox: initialize highp vec4 color -vec3 normal=a_normal_ed.xyz; -#ifdef TERRAIN3D -float height_terrain3d_offset=get_elevation(a_centroid);float base_terrain3d_offset=height_terrain3d_offset-(base > 0.0 ? 0.0 : 10.0); -#else -float height_terrain3d_offset=0.0;float base_terrain3d_offset=0.0; -#endif -base=max(0.0,base)+base_terrain3d_offset;height=max(0.0,height)+height_terrain3d_offset;float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t > 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}`),fillExtrusionPattern:mt(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting; -#pragma mapbox: define lowp float base -#pragma mapbox: define lowp float height -#pragma mapbox: define lowp vec4 pattern_from -#pragma mapbox: define lowp vec4 pattern_to -#pragma mapbox: define lowp float pixel_ratio_from -#pragma mapbox: define lowp float pixel_ratio_to -void main() { -#pragma mapbox: initialize lowp float base -#pragma mapbox: initialize lowp float height -#pragma mapbox: initialize mediump vec4 pattern_from -#pragma mapbox: initialize mediump vec4 pattern_to -#pragma mapbox: initialize lowp float pixel_ratio_from -#pragma mapbox: initialize lowp float pixel_ratio_to -vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting; -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,`uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec2 a_pos;attribute vec4 a_normal_ed; -#ifdef TERRAIN3D -attribute vec2 a_centroid; -#endif -varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting; -#pragma mapbox: define lowp float base -#pragma mapbox: define lowp float height -#pragma mapbox: define lowp vec4 pattern_from -#pragma mapbox: define lowp vec4 pattern_to -#pragma mapbox: define lowp float pixel_ratio_from -#pragma mapbox: define lowp float pixel_ratio_to -void main() { -#pragma mapbox: initialize lowp float base -#pragma mapbox: initialize lowp float height -#pragma mapbox: initialize mediump vec4 pattern_from -#pragma mapbox: initialize mediump vec4 pattern_to -#pragma mapbox: initialize lowp float pixel_ratio_from -#pragma mapbox: initialize lowp float pixel_ratio_to -vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to; -#ifdef TERRAIN3D -float height_terrain3d_offset=get_elevation(a_centroid);float base_terrain3d_offset=height_terrain3d_offset-(base > 0.0 ? 0.0 : 10.0); -#else -float height_terrain3d_offset=0.0;float base_terrain3d_offset=0.0; -#endif -base=max(0.0,base)+base_terrain3d_offset;height=max(0.0,height)+height_terrain3d_offset;float t=mod(normal.x,2.0);float z=t > 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0 -? a_pos -: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}`),hillshadePrepare:mt(`#ifdef GL_ES -precision highp float; -#endif -uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0); -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,"uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),hillshade:mt(`uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent; -#define PI 3.141592653589793 -void main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color; -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,"uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}"),line:mt(`uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale; -#pragma mapbox: define highp vec4 color -#pragma mapbox: define lowp float blur -#pragma mapbox: define lowp float opacity -void main() { -#pragma mapbox: initialize highp vec4 color -#pragma mapbox: initialize lowp float blur -#pragma mapbox: initialize lowp float opacity -float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity); -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,` -#define scale 0.015873016 -attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar; -#pragma mapbox: define highp vec4 color -#pragma mapbox: define lowp float blur -#pragma mapbox: define lowp float opacity -#pragma mapbox: define mediump float gapwidth -#pragma mapbox: define lowp float offset -#pragma mapbox: define mediump float width -void main() { -#pragma mapbox: initialize highp vec4 color -#pragma mapbox: initialize lowp float blur -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize mediump float gapwidth -#pragma mapbox: initialize lowp float offset -#pragma mapbox: initialize mediump float width -float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude; -#ifdef TERRAIN3D -v_gamma_scale=1.0; -#else -float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective; -#endif -v_width2=vec2(outset,inset);}`),lineGradient:mt(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv; -#pragma mapbox: define lowp float blur -#pragma mapbox: define lowp float opacity -void main() { -#pragma mapbox: initialize lowp float blur -#pragma mapbox: initialize lowp float opacity -float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,v_uv);gl_FragColor=color*(alpha*opacity); -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,` -#define scale 0.015873016 -attribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_uv_x;attribute float a_split_index;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec2 v_uv; -#pragma mapbox: define lowp float blur -#pragma mapbox: define lowp float opacity -#pragma mapbox: define mediump float gapwidth -#pragma mapbox: define lowp float offset -#pragma mapbox: define mediump float width -void main() { -#pragma mapbox: initialize lowp float blur -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize mediump float gapwidth -#pragma mapbox: initialize lowp float offset -#pragma mapbox: initialize mediump float width -float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude; -#ifdef TERRAIN3D -v_gamma_scale=1.0; -#else -float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective; -#endif -v_width2=vec2(outset,inset);}`),linePattern:mt(`#ifdef GL_ES -precision highp float; -#endif -uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width; -#pragma mapbox: define lowp vec4 pattern_from -#pragma mapbox: define lowp vec4 pattern_to -#pragma mapbox: define lowp float pixel_ratio_from -#pragma mapbox: define lowp float pixel_ratio_to -#pragma mapbox: define lowp float blur -#pragma mapbox: define lowp float opacity -void main() { -#pragma mapbox: initialize mediump vec4 pattern_from -#pragma mapbox: initialize mediump vec4 pattern_to -#pragma mapbox: initialize lowp float pixel_ratio_from -#pragma mapbox: initialize lowp float pixel_ratio_to -#pragma mapbox: initialize lowp float blur -#pragma mapbox: initialize lowp float opacity -vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity; -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,` -#define scale 0.015873016 -#define LINE_DISTANCE_SCALE 2.0 -attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width; -#pragma mapbox: define lowp float blur -#pragma mapbox: define lowp float opacity -#pragma mapbox: define lowp float offset -#pragma mapbox: define mediump float gapwidth -#pragma mapbox: define mediump float width -#pragma mapbox: define lowp float floorwidth -#pragma mapbox: define lowp vec4 pattern_from -#pragma mapbox: define lowp vec4 pattern_to -#pragma mapbox: define lowp float pixel_ratio_from -#pragma mapbox: define lowp float pixel_ratio_to -void main() { -#pragma mapbox: initialize lowp float blur -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize lowp float offset -#pragma mapbox: initialize mediump float gapwidth -#pragma mapbox: initialize mediump float width -#pragma mapbox: initialize lowp float floorwidth -#pragma mapbox: initialize mediump vec4 pattern_from -#pragma mapbox: initialize mediump vec4 pattern_to -#pragma mapbox: initialize lowp float pixel_ratio_from -#pragma mapbox: initialize lowp float pixel_ratio_to -float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude; -#ifdef TERRAIN3D -v_gamma_scale=1.0; -#else -float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective; -#endif -v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}`),lineSDF:mt(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale; -#pragma mapbox: define highp vec4 color -#pragma mapbox: define lowp float blur -#pragma mapbox: define lowp float opacity -#pragma mapbox: define mediump float width -#pragma mapbox: define lowp float floorwidth -void main() { -#pragma mapbox: initialize highp vec4 color -#pragma mapbox: initialize lowp float blur -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize mediump float width -#pragma mapbox: initialize lowp float floorwidth -float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity); -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,` -#define scale 0.015873016 -#define LINE_DISTANCE_SCALE 2.0 -attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale; -#pragma mapbox: define highp vec4 color -#pragma mapbox: define lowp float blur -#pragma mapbox: define lowp float opacity -#pragma mapbox: define mediump float gapwidth -#pragma mapbox: define lowp float offset -#pragma mapbox: define mediump float width -#pragma mapbox: define lowp float floorwidth -void main() { -#pragma mapbox: initialize highp vec4 color -#pragma mapbox: initialize lowp float blur -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize mediump float gapwidth -#pragma mapbox: initialize lowp float offset -#pragma mapbox: initialize mediump float width -#pragma mapbox: initialize lowp float floorwidth -float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude; -#ifdef TERRAIN3D -v_gamma_scale=1.0; -#else -float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective; -#endif -v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}`),raster:mt(`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a); -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,"uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}"),symbolIcon:mt(`uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity; -#pragma mapbox: define lowp float opacity -void main() { -#pragma mapbox: initialize lowp float opacity -lowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha; -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;varying vec2 v_tex;varying float v_fade_opacity; -#pragma mapbox: define lowp float opacity -void main() { -#pragma mapbox: initialize lowp float opacity -vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,ele,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? -camera_to_anchor_distance/u_camera_to_center_distance : -u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),ele,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,ele,1.0);float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),z,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float visibility=calculate_visibility(projectedPoint);v_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));}`),symbolSDF:mt(`#define SDF_PX 8.0 -uniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1; -#pragma mapbox: define highp vec4 fill_color -#pragma mapbox: define highp vec4 halo_color -#pragma mapbox: define lowp float opacity -#pragma mapbox: define lowp float halo_width -#pragma mapbox: define lowp float halo_blur -void main() { -#pragma mapbox: initialize highp vec4 fill_color -#pragma mapbox: initialize highp vec4 halo_color -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize lowp float halo_width -#pragma mapbox: initialize lowp float halo_blur -float EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity); -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;varying vec2 v_data0;varying vec3 v_data1; -#pragma mapbox: define highp vec4 fill_color -#pragma mapbox: define highp vec4 halo_color -#pragma mapbox: define lowp float opacity -#pragma mapbox: define lowp float halo_width -#pragma mapbox: define lowp float halo_blur -void main() { -#pragma mapbox: initialize highp vec4 fill_color -#pragma mapbox: initialize highp vec4 halo_color -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize lowp float halo_width -#pragma mapbox: initialize lowp float halo_blur -vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,ele,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? -camera_to_anchor_distance/u_camera_to_center_distance : -u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),ele,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,ele,1.0);float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),z,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}`),symbolTextAndIcon:mt(`#define SDF_PX 8.0 -#define SDF 1.0 -#define ICON 0.0 -uniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1; -#pragma mapbox: define highp vec4 fill_color -#pragma mapbox: define highp vec4 halo_color -#pragma mapbox: define lowp float opacity -#pragma mapbox: define lowp float halo_width -#pragma mapbox: define lowp float halo_blur -void main() { -#pragma mapbox: initialize highp vec4 fill_color -#pragma mapbox: initialize highp vec4 halo_color -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize lowp float halo_width -#pragma mapbox: initialize lowp float halo_blur -float fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha; -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -return;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity); -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;varying vec4 v_data0;varying vec4 v_data1; -#pragma mapbox: define highp vec4 fill_color -#pragma mapbox: define highp vec4 halo_color -#pragma mapbox: define lowp float opacity -#pragma mapbox: define lowp float halo_width -#pragma mapbox: define lowp float halo_blur -void main() { -#pragma mapbox: initialize highp vec4 fill_color -#pragma mapbox: initialize highp vec4 halo_color -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize lowp float halo_width -#pragma mapbox: initialize lowp float halo_blur -vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,ele,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? -camera_to_anchor_distance/u_camera_to_center_distance : -u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),ele,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,ele,1.0);float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),z,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`),terrain:mt("uniform sampler2D u_texture;varying vec2 v_texture_pos;void main() {gl_FragColor=texture2D(u_texture,v_texture_pos);}",_s),terrainDepth:mt("varying float v_depth;const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitMsk=vec4(0.,vec3(1./256.0));highp vec4 pack(highp float value) {highp vec4 comp=fract(value*bitSh);comp-=comp.xxyz*bitMsk;return comp;}void main() {gl_FragColor=pack(v_depth);}",_s),terrainCoords:mt("precision mediump float;uniform sampler2D u_texture;uniform float u_terrain_coords_id;varying vec2 v_texture_pos;void main() {vec4 rgba=texture2D(u_texture,v_texture_pos);gl_FragColor=vec4(rgba.r,rgba.g,rgba.b,u_terrain_coords_id);}",_s)};function mt(o,t){const n=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,a=t.match(/attribute ([\w]+) ([\w]+)/g),c=o.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),p=t.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),m=p?p.concat(c):c,y={};return{fragmentSource:o=o.replace(n,(_,x,T,w,k)=>(y[k]=!0,x==="define"?` -#ifndef HAS_UNIFORM_u_${k} -varying ${T} ${w} ${k}; -#else -uniform ${T} ${w} u_${k}; -#endif -`:` -#ifdef HAS_UNIFORM_u_${k} - ${T} ${w} ${k} = u_${k}; -#endif -`)),vertexSource:t=t.replace(n,(_,x,T,w,k)=>{const O=w==="float"?"vec2":"vec4",B=k.match(/color/)?"color":O;return y[k]?x==="define"?` -#ifndef HAS_UNIFORM_u_${k} -uniform lowp float u_${k}_t; -attribute ${T} ${O} a_${k}; -varying ${T} ${w} ${k}; -#else -uniform ${T} ${w} u_${k}; -#endif -`:B==="vec4"?` -#ifndef HAS_UNIFORM_u_${k} - ${k} = a_${k}; -#else - ${T} ${w} ${k} = u_${k}; -#endif -`:` -#ifndef HAS_UNIFORM_u_${k} - ${k} = unpack_mix_${B}(a_${k}, u_${k}_t); -#else - ${T} ${w} ${k} = u_${k}; -#endif -`:x==="define"?` -#ifndef HAS_UNIFORM_u_${k} -uniform lowp float u_${k}_t; -attribute ${T} ${O} a_${k}; -#else -uniform ${T} ${w} u_${k}; -#endif -`:B==="vec4"?` -#ifndef HAS_UNIFORM_u_${k} - ${T} ${w} ${k} = a_${k}; -#else - ${T} ${w} ${k} = u_${k}; -#endif -`:` -#ifndef HAS_UNIFORM_u_${k} - ${T} ${w} ${k} = unpack_mix_${B}(a_${k}, u_${k}_t); -#else - ${T} ${w} ${k} = u_${k}; -#endif -`}),staticAttributes:a,staticUniforms:m}}class $r{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null}bind(t,n,a,c,p,m,y,_,x){this.context=t;let T=this.boundPaintVertexBuffers.length!==c.length;for(let w=0;!T&&w({u_depth:new h.Uniform1i(_e,ve.u_depth),u_terrain:new h.Uniform1i(_e,ve.u_terrain),u_terrain_dim:new h.Uniform1f(_e,ve.u_terrain_dim),u_terrain_matrix:new h.UniformMatrix4f(_e,ve.u_terrain_matrix),u_terrain_unpack:new h.Uniform4f(_e,ve.u_terrain_unpack),u_terrain_exaggeration:new h.Uniform1f(_e,ve.u_terrain_exaggeration)}))(t,me),this.binderUniforms=c?c.getUniforms(t,me):[]}draw(t,n,a,c,p,m,y,_,x,T,w,k,O,B,R,q,H,se){const $=t.gl;if(this.failedToCreate)return;if(t.program.set(this.program),t.setDepthMode(a),t.setStencilMode(c),t.setColorMode(p),t.setCullFace(m),_){t.activeTexture.set($.TEXTURE2),$.bindTexture($.TEXTURE_2D,_.depthTexture),t.activeTexture.set($.TEXTURE3),$.bindTexture($.TEXTURE_2D,_.texture);for(const oe in this.terrainUniforms)this.terrainUniforms[oe].set(_[oe])}for(const oe in this.fixedUniforms)this.fixedUniforms[oe].set(y[oe]);R&&R.setUniforms(t,this.binderUniforms,O,{zoom:B});let re=0;switch(n){case $.LINES:re=2;break;case $.TRIANGLES:re=3;break;case $.LINE_STRIP:re=1}for(const oe of k.get()){const me=oe.vaos||(oe.vaos={});(me[x]||(me[x]=new $r)).bind(t,this,T,R?R.getPaintVertexBuffers():[],w,oe.vertexOffset,q,H,se),$.drawElements(n,oe.primitiveLength*re,$.UNSIGNED_SHORT,oe.primitiveOffset*re*2)}}}function Po(o,t,n){const a=1/W(n,1,t.transform.tileZoom),c=Math.pow(2,n.tileID.overscaledZ),p=n.tileSize*Math.pow(2,t.transform.tileZoom)/c,m=p*(n.tileID.canonical.x+n.tileID.wrap*c),y=p*n.tileID.canonical.y;return{u_image:0,u_texsize:n.imageAtlasTexture.size,u_scale:[a,o.fromScale,o.toScale],u_fade:o.t,u_pixel_coord_upper:[m>>16,y>>16],u_pixel_coord_lower:[65535&m,65535&y]}}const Mo=(o,t,n,a)=>{const c=t.style.light,p=c.properties.get("position"),m=[p.x,p.y,p.z],y=function(){var x=new h.ARRAY_TYPE(9);return h.ARRAY_TYPE!=Float32Array&&(x[1]=0,x[2]=0,x[3]=0,x[5]=0,x[6]=0,x[7]=0),x[0]=1,x[4]=1,x[8]=1,x}();c.properties.get("anchor")==="viewport"&&function(x,T){var w=Math.sin(T),k=Math.cos(T);x[0]=k,x[1]=w,x[2]=0,x[3]=-w,x[4]=k,x[5]=0,x[6]=0,x[7]=0,x[8]=1}(y,-t.transform.angle),function(x,T,w){var k=T[0],O=T[1],B=T[2];x[0]=k*w[0]+O*w[3]+B*w[6],x[1]=k*w[1]+O*w[4]+B*w[7],x[2]=k*w[2]+O*w[5]+B*w[8]}(m,m,y);const _=c.properties.get("color");return{u_matrix:o,u_lightpos:m,u_lightintensity:c.properties.get("intensity"),u_lightcolor:[_.r,_.g,_.b],u_vertical_gradient:+n,u_opacity:a}},ya=(o,t,n,a,c,p,m)=>h.extend(Mo(o,t,n,a),Po(p,t,m),{u_height_factor:-Math.pow(2,c.overscaledZ)/m.tileSize/8}),Co=o=>({u_matrix:o}),xa=(o,t,n,a)=>h.extend(Co(o),Po(n,t,a)),ql=(o,t)=>({u_matrix:o,u_world:t}),ko=(o,t,n,a,c)=>h.extend(xa(o,t,n,a),{u_world:c}),jl=(o,t,n,a)=>{const c=o.transform;let p,m;if(a.paint.get("circle-pitch-alignment")==="map"){const y=W(n,1,c.zoom);p=!0,m=[y,y]}else p=!1,m=c.pixelsToGLUnits;return{u_camera_to_center_distance:c.cameraToCenterDistance,u_scale_with_map:+(a.paint.get("circle-pitch-scale")==="map"),u_matrix:o.translatePosMatrix(t.posMatrix,n,a.paint.get("circle-translate"),a.paint.get("circle-translate-anchor")),u_pitch_with_map:+p,u_device_pixel_ratio:o.pixelRatio,u_extrude_scale:m}},va=(o,t,n)=>{const a=W(n,1,t.zoom),c=Math.pow(2,t.zoom-n.tileID.overscaledZ),p=n.tileID.overscaleFactor();return{u_matrix:o,u_camera_to_center_distance:t.cameraToCenterDistance,u_pixels_to_tile_units:a,u_extrude_scale:[t.pixelsToGLUnits[0]/(a*c),t.pixelsToGLUnits[1]/(a*c)],u_overscale_factor:p}},ba=(o,t,n=1)=>({u_matrix:o,u_color:t,u_overlay:0,u_overlay_scale:n}),wa=o=>({u_matrix:o}),zo=(o,t,n,a)=>({u_matrix:o,u_extrude_scale:W(t,1,n),u_intensity:a});function Do(o,t){const n=Math.pow(2,t.canonical.z),a=t.canonical.y;return[new h.MercatorCoordinate(0,a/n).toLngLat().lat,new h.MercatorCoordinate(0,(a+1)/n).toLngLat().lat]}const Ir=(o,t,n,a)=>{const c=o.transform;return{u_matrix:En(o,t,n,a),u_ratio:1/W(t,1,c.zoom),u_device_pixel_ratio:o.pixelRatio,u_units_to_pixels:[1/c.pixelsToGLUnits[0],1/c.pixelsToGLUnits[1]]}},xs=(o,t,n,a,c)=>h.extend(Ir(o,t,n,c),{u_image:0,u_image_height:a}),Hi=(o,t,n,a,c)=>{const p=o.transform,m=Xn(t,p);return{u_matrix:En(o,t,n,c),u_texsize:t.imageAtlasTexture.size,u_ratio:1/W(t,1,p.zoom),u_device_pixel_ratio:o.pixelRatio,u_image:0,u_scale:[m,a.fromScale,a.toScale],u_fade:a.t,u_units_to_pixels:[1/p.pixelsToGLUnits[0],1/p.pixelsToGLUnits[1]]}},vs=(o,t,n,a,c,p)=>{const m=o.lineAtlas,y=Xn(t,o.transform),_=n.layout.get("line-cap")==="round",x=m.getDash(a.from,_),T=m.getDash(a.to,_),w=x.width*c.fromScale,k=T.width*c.toScale;return h.extend(Ir(o,t,n,p),{u_patternscale_a:[y/w,-x.height/2],u_patternscale_b:[y/k,-T.height/2],u_sdfgamma:m.width/(256*Math.min(w,k)*o.pixelRatio)/2,u_image:0,u_tex_y_a:x.y,u_tex_y_b:T.y,u_mix:c.t})};function Xn(o,t){return 1/W(o,1,t.tileZoom)}function En(o,t,n,a){return o.translatePosMatrix(a?a.posMatrix:t.tileID.posMatrix,t,n.paint.get("line-translate"),n.paint.get("line-translate-anchor"))}const bs=(o,t,n,a,c)=>{return{u_matrix:o,u_tl_parent:t,u_scale_parent:n,u_buffer_scale:1,u_fade_t:a.mix,u_opacity:a.opacity*c.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:c.paint.get("raster-brightness-min"),u_brightness_high:c.paint.get("raster-brightness-max"),u_saturation_factor:(m=c.paint.get("raster-saturation"),m>0?1-1/(1.001-m):-m),u_contrast_factor:(p=c.paint.get("raster-contrast"),p>0?1/(1-p):1+p),u_spin_weights:ws(c.paint.get("raster-hue-rotate"))};var p,m};function ws(o){o*=Math.PI/180;const t=Math.sin(o),n=Math.cos(o);return[(2*n+1)/3,(-Math.sqrt(3)*t-n+1)/3,(Math.sqrt(3)*t-n+1)/3]}const Sn=(o,t,n,a,c,p,m,y,_,x)=>{const T=c.transform;return{u_is_size_zoom_constant:+(o==="constant"||o==="source"),u_is_size_feature_constant:+(o==="constant"||o==="camera"),u_size_t:t?t.uSizeT:0,u_size:t?t.uSize:0,u_camera_to_center_distance:T.cameraToCenterDistance,u_pitch:T.pitch/360*2*Math.PI,u_rotate_symbol:+n,u_aspect_ratio:T.width/T.height,u_fade_change:c.options.fadeDuration?c.symbolFadeChange:1,u_matrix:p,u_label_plane_matrix:m,u_coord_matrix:y,u_is_text:+_,u_pitch_with_map:+a,u_texsize:x,u_texture:0}},In=(o,t,n,a,c,p,m,y,_,x,T)=>{const w=c.transform;return h.extend(Sn(o,t,n,a,c,p,m,y,_,x),{u_gamma_scale:a?Math.cos(w._pitch)*w.cameraToCenterDistance:1,u_device_pixel_ratio:c.pixelRatio,u_is_halo:+T})},Ts=(o,t,n,a,c,p,m,y,_,x)=>h.extend(In(o,t,n,a,c,p,m,y,!0,_,!0),{u_texsize_icon:x,u_texture_icon:1}),Bi=(o,t,n)=>({u_matrix:o,u_opacity:t,u_color:n}),Ri=(o,t,n,a,c,p)=>h.extend(function(m,y,_,x){const T=_.imageManager.getPattern(m.from.toString()),w=_.imageManager.getPattern(m.to.toString()),{width:k,height:O}=_.imageManager.getPixelSize(),B=Math.pow(2,x.tileID.overscaledZ),R=x.tileSize*Math.pow(2,_.transform.tileZoom)/B,q=R*(x.tileID.canonical.x+x.tileID.wrap*B),H=R*x.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:T.tl,u_pattern_br_a:T.br,u_pattern_tl_b:w.tl,u_pattern_br_b:w.br,u_texsize:[k,O],u_mix:y.t,u_pattern_size_a:T.displaySize,u_pattern_size_b:w.displaySize,u_scale_a:y.fromScale,u_scale_b:y.toScale,u_tile_units_to_pixels:1/W(x,1,_.transform.tileZoom),u_pixel_coord_upper:[q>>16,H>>16],u_pixel_coord_lower:[65535&q,65535&H]}}(a,p,n,c),{u_matrix:o,u_opacity:t}),Ta={fillExtrusion:(o,t)=>({u_matrix:new h.UniformMatrix4f(o,t.u_matrix),u_lightpos:new h.Uniform3f(o,t.u_lightpos),u_lightintensity:new h.Uniform1f(o,t.u_lightintensity),u_lightcolor:new h.Uniform3f(o,t.u_lightcolor),u_vertical_gradient:new h.Uniform1f(o,t.u_vertical_gradient),u_opacity:new h.Uniform1f(o,t.u_opacity)}),fillExtrusionPattern:(o,t)=>({u_matrix:new h.UniformMatrix4f(o,t.u_matrix),u_lightpos:new h.Uniform3f(o,t.u_lightpos),u_lightintensity:new h.Uniform1f(o,t.u_lightintensity),u_lightcolor:new h.Uniform3f(o,t.u_lightcolor),u_vertical_gradient:new h.Uniform1f(o,t.u_vertical_gradient),u_height_factor:new h.Uniform1f(o,t.u_height_factor),u_image:new h.Uniform1i(o,t.u_image),u_texsize:new h.Uniform2f(o,t.u_texsize),u_pixel_coord_upper:new h.Uniform2f(o,t.u_pixel_coord_upper),u_pixel_coord_lower:new h.Uniform2f(o,t.u_pixel_coord_lower),u_scale:new h.Uniform3f(o,t.u_scale),u_fade:new h.Uniform1f(o,t.u_fade),u_opacity:new h.Uniform1f(o,t.u_opacity)}),fill:(o,t)=>({u_matrix:new h.UniformMatrix4f(o,t.u_matrix)}),fillPattern:(o,t)=>({u_matrix:new h.UniformMatrix4f(o,t.u_matrix),u_image:new h.Uniform1i(o,t.u_image),u_texsize:new h.Uniform2f(o,t.u_texsize),u_pixel_coord_upper:new h.Uniform2f(o,t.u_pixel_coord_upper),u_pixel_coord_lower:new h.Uniform2f(o,t.u_pixel_coord_lower),u_scale:new h.Uniform3f(o,t.u_scale),u_fade:new h.Uniform1f(o,t.u_fade)}),fillOutline:(o,t)=>({u_matrix:new h.UniformMatrix4f(o,t.u_matrix),u_world:new h.Uniform2f(o,t.u_world)}),fillOutlinePattern:(o,t)=>({u_matrix:new h.UniformMatrix4f(o,t.u_matrix),u_world:new h.Uniform2f(o,t.u_world),u_image:new h.Uniform1i(o,t.u_image),u_texsize:new h.Uniform2f(o,t.u_texsize),u_pixel_coord_upper:new h.Uniform2f(o,t.u_pixel_coord_upper),u_pixel_coord_lower:new h.Uniform2f(o,t.u_pixel_coord_lower),u_scale:new h.Uniform3f(o,t.u_scale),u_fade:new h.Uniform1f(o,t.u_fade)}),circle:(o,t)=>({u_camera_to_center_distance:new h.Uniform1f(o,t.u_camera_to_center_distance),u_scale_with_map:new h.Uniform1i(o,t.u_scale_with_map),u_pitch_with_map:new h.Uniform1i(o,t.u_pitch_with_map),u_extrude_scale:new h.Uniform2f(o,t.u_extrude_scale),u_device_pixel_ratio:new h.Uniform1f(o,t.u_device_pixel_ratio),u_matrix:new h.UniformMatrix4f(o,t.u_matrix)}),collisionBox:(o,t)=>({u_matrix:new h.UniformMatrix4f(o,t.u_matrix),u_camera_to_center_distance:new h.Uniform1f(o,t.u_camera_to_center_distance),u_pixels_to_tile_units:new h.Uniform1f(o,t.u_pixels_to_tile_units),u_extrude_scale:new h.Uniform2f(o,t.u_extrude_scale),u_overscale_factor:new h.Uniform1f(o,t.u_overscale_factor)}),collisionCircle:(o,t)=>({u_matrix:new h.UniformMatrix4f(o,t.u_matrix),u_inv_matrix:new h.UniformMatrix4f(o,t.u_inv_matrix),u_camera_to_center_distance:new h.Uniform1f(o,t.u_camera_to_center_distance),u_viewport_size:new h.Uniform2f(o,t.u_viewport_size)}),debug:(o,t)=>({u_color:new h.UniformColor(o,t.u_color),u_matrix:new h.UniformMatrix4f(o,t.u_matrix),u_overlay:new h.Uniform1i(o,t.u_overlay),u_overlay_scale:new h.Uniform1f(o,t.u_overlay_scale)}),clippingMask:(o,t)=>({u_matrix:new h.UniformMatrix4f(o,t.u_matrix)}),heatmap:(o,t)=>({u_extrude_scale:new h.Uniform1f(o,t.u_extrude_scale),u_intensity:new h.Uniform1f(o,t.u_intensity),u_matrix:new h.UniformMatrix4f(o,t.u_matrix)}),heatmapTexture:(o,t)=>({u_matrix:new h.UniformMatrix4f(o,t.u_matrix),u_world:new h.Uniform2f(o,t.u_world),u_image:new h.Uniform1i(o,t.u_image),u_color_ramp:new h.Uniform1i(o,t.u_color_ramp),u_opacity:new h.Uniform1f(o,t.u_opacity)}),hillshade:(o,t)=>({u_matrix:new h.UniformMatrix4f(o,t.u_matrix),u_image:new h.Uniform1i(o,t.u_image),u_latrange:new h.Uniform2f(o,t.u_latrange),u_light:new h.Uniform2f(o,t.u_light),u_shadow:new h.UniformColor(o,t.u_shadow),u_highlight:new h.UniformColor(o,t.u_highlight),u_accent:new h.UniformColor(o,t.u_accent)}),hillshadePrepare:(o,t)=>({u_matrix:new h.UniformMatrix4f(o,t.u_matrix),u_image:new h.Uniform1i(o,t.u_image),u_dimension:new h.Uniform2f(o,t.u_dimension),u_zoom:new h.Uniform1f(o,t.u_zoom),u_unpack:new h.Uniform4f(o,t.u_unpack)}),line:(o,t)=>({u_matrix:new h.UniformMatrix4f(o,t.u_matrix),u_ratio:new h.Uniform1f(o,t.u_ratio),u_device_pixel_ratio:new h.Uniform1f(o,t.u_device_pixel_ratio),u_units_to_pixels:new h.Uniform2f(o,t.u_units_to_pixels)}),lineGradient:(o,t)=>({u_matrix:new h.UniformMatrix4f(o,t.u_matrix),u_ratio:new h.Uniform1f(o,t.u_ratio),u_device_pixel_ratio:new h.Uniform1f(o,t.u_device_pixel_ratio),u_units_to_pixels:new h.Uniform2f(o,t.u_units_to_pixels),u_image:new h.Uniform1i(o,t.u_image),u_image_height:new h.Uniform1f(o,t.u_image_height)}),linePattern:(o,t)=>({u_matrix:new h.UniformMatrix4f(o,t.u_matrix),u_texsize:new h.Uniform2f(o,t.u_texsize),u_ratio:new h.Uniform1f(o,t.u_ratio),u_device_pixel_ratio:new h.Uniform1f(o,t.u_device_pixel_ratio),u_image:new h.Uniform1i(o,t.u_image),u_units_to_pixels:new h.Uniform2f(o,t.u_units_to_pixels),u_scale:new h.Uniform3f(o,t.u_scale),u_fade:new h.Uniform1f(o,t.u_fade)}),lineSDF:(o,t)=>({u_matrix:new h.UniformMatrix4f(o,t.u_matrix),u_ratio:new h.Uniform1f(o,t.u_ratio),u_device_pixel_ratio:new h.Uniform1f(o,t.u_device_pixel_ratio),u_units_to_pixels:new h.Uniform2f(o,t.u_units_to_pixels),u_patternscale_a:new h.Uniform2f(o,t.u_patternscale_a),u_patternscale_b:new h.Uniform2f(o,t.u_patternscale_b),u_sdfgamma:new h.Uniform1f(o,t.u_sdfgamma),u_image:new h.Uniform1i(o,t.u_image),u_tex_y_a:new h.Uniform1f(o,t.u_tex_y_a),u_tex_y_b:new h.Uniform1f(o,t.u_tex_y_b),u_mix:new h.Uniform1f(o,t.u_mix)}),raster:(o,t)=>({u_matrix:new h.UniformMatrix4f(o,t.u_matrix),u_tl_parent:new h.Uniform2f(o,t.u_tl_parent),u_scale_parent:new h.Uniform1f(o,t.u_scale_parent),u_buffer_scale:new h.Uniform1f(o,t.u_buffer_scale),u_fade_t:new h.Uniform1f(o,t.u_fade_t),u_opacity:new h.Uniform1f(o,t.u_opacity),u_image0:new h.Uniform1i(o,t.u_image0),u_image1:new h.Uniform1i(o,t.u_image1),u_brightness_low:new h.Uniform1f(o,t.u_brightness_low),u_brightness_high:new h.Uniform1f(o,t.u_brightness_high),u_saturation_factor:new h.Uniform1f(o,t.u_saturation_factor),u_contrast_factor:new h.Uniform1f(o,t.u_contrast_factor),u_spin_weights:new h.Uniform3f(o,t.u_spin_weights)}),symbolIcon:(o,t)=>({u_is_size_zoom_constant:new h.Uniform1i(o,t.u_is_size_zoom_constant),u_is_size_feature_constant:new h.Uniform1i(o,t.u_is_size_feature_constant),u_size_t:new h.Uniform1f(o,t.u_size_t),u_size:new h.Uniform1f(o,t.u_size),u_camera_to_center_distance:new h.Uniform1f(o,t.u_camera_to_center_distance),u_pitch:new h.Uniform1f(o,t.u_pitch),u_rotate_symbol:new h.Uniform1i(o,t.u_rotate_symbol),u_aspect_ratio:new h.Uniform1f(o,t.u_aspect_ratio),u_fade_change:new h.Uniform1f(o,t.u_fade_change),u_matrix:new h.UniformMatrix4f(o,t.u_matrix),u_label_plane_matrix:new h.UniformMatrix4f(o,t.u_label_plane_matrix),u_coord_matrix:new h.UniformMatrix4f(o,t.u_coord_matrix),u_is_text:new h.Uniform1i(o,t.u_is_text),u_pitch_with_map:new h.Uniform1i(o,t.u_pitch_with_map),u_texsize:new h.Uniform2f(o,t.u_texsize),u_texture:new h.Uniform1i(o,t.u_texture)}),symbolSDF:(o,t)=>({u_is_size_zoom_constant:new h.Uniform1i(o,t.u_is_size_zoom_constant),u_is_size_feature_constant:new h.Uniform1i(o,t.u_is_size_feature_constant),u_size_t:new h.Uniform1f(o,t.u_size_t),u_size:new h.Uniform1f(o,t.u_size),u_camera_to_center_distance:new h.Uniform1f(o,t.u_camera_to_center_distance),u_pitch:new h.Uniform1f(o,t.u_pitch),u_rotate_symbol:new h.Uniform1i(o,t.u_rotate_symbol),u_aspect_ratio:new h.Uniform1f(o,t.u_aspect_ratio),u_fade_change:new h.Uniform1f(o,t.u_fade_change),u_matrix:new h.UniformMatrix4f(o,t.u_matrix),u_label_plane_matrix:new h.UniformMatrix4f(o,t.u_label_plane_matrix),u_coord_matrix:new h.UniformMatrix4f(o,t.u_coord_matrix),u_is_text:new h.Uniform1i(o,t.u_is_text),u_pitch_with_map:new h.Uniform1i(o,t.u_pitch_with_map),u_texsize:new h.Uniform2f(o,t.u_texsize),u_texture:new h.Uniform1i(o,t.u_texture),u_gamma_scale:new h.Uniform1f(o,t.u_gamma_scale),u_device_pixel_ratio:new h.Uniform1f(o,t.u_device_pixel_ratio),u_is_halo:new h.Uniform1i(o,t.u_is_halo)}),symbolTextAndIcon:(o,t)=>({u_is_size_zoom_constant:new h.Uniform1i(o,t.u_is_size_zoom_constant),u_is_size_feature_constant:new h.Uniform1i(o,t.u_is_size_feature_constant),u_size_t:new h.Uniform1f(o,t.u_size_t),u_size:new h.Uniform1f(o,t.u_size),u_camera_to_center_distance:new h.Uniform1f(o,t.u_camera_to_center_distance),u_pitch:new h.Uniform1f(o,t.u_pitch),u_rotate_symbol:new h.Uniform1i(o,t.u_rotate_symbol),u_aspect_ratio:new h.Uniform1f(o,t.u_aspect_ratio),u_fade_change:new h.Uniform1f(o,t.u_fade_change),u_matrix:new h.UniformMatrix4f(o,t.u_matrix),u_label_plane_matrix:new h.UniformMatrix4f(o,t.u_label_plane_matrix),u_coord_matrix:new h.UniformMatrix4f(o,t.u_coord_matrix),u_is_text:new h.Uniform1i(o,t.u_is_text),u_pitch_with_map:new h.Uniform1i(o,t.u_pitch_with_map),u_texsize:new h.Uniform2f(o,t.u_texsize),u_texsize_icon:new h.Uniform2f(o,t.u_texsize_icon),u_texture:new h.Uniform1i(o,t.u_texture),u_texture_icon:new h.Uniform1i(o,t.u_texture_icon),u_gamma_scale:new h.Uniform1f(o,t.u_gamma_scale),u_device_pixel_ratio:new h.Uniform1f(o,t.u_device_pixel_ratio),u_is_halo:new h.Uniform1i(o,t.u_is_halo)}),background:(o,t)=>({u_matrix:new h.UniformMatrix4f(o,t.u_matrix),u_opacity:new h.Uniform1f(o,t.u_opacity),u_color:new h.UniformColor(o,t.u_color)}),backgroundPattern:(o,t)=>({u_matrix:new h.UniformMatrix4f(o,t.u_matrix),u_opacity:new h.Uniform1f(o,t.u_opacity),u_image:new h.Uniform1i(o,t.u_image),u_pattern_tl_a:new h.Uniform2f(o,t.u_pattern_tl_a),u_pattern_br_a:new h.Uniform2f(o,t.u_pattern_br_a),u_pattern_tl_b:new h.Uniform2f(o,t.u_pattern_tl_b),u_pattern_br_b:new h.Uniform2f(o,t.u_pattern_br_b),u_texsize:new h.Uniform2f(o,t.u_texsize),u_mix:new h.Uniform1f(o,t.u_mix),u_pattern_size_a:new h.Uniform2f(o,t.u_pattern_size_a),u_pattern_size_b:new h.Uniform2f(o,t.u_pattern_size_b),u_scale_a:new h.Uniform1f(o,t.u_scale_a),u_scale_b:new h.Uniform1f(o,t.u_scale_b),u_pixel_coord_upper:new h.Uniform2f(o,t.u_pixel_coord_upper),u_pixel_coord_lower:new h.Uniform2f(o,t.u_pixel_coord_lower),u_tile_units_to_pixels:new h.Uniform1f(o,t.u_tile_units_to_pixels)}),terrain:(o,t)=>({u_matrix:new h.UniformMatrix4f(o,t.u_matrix),u_texture:new h.Uniform1i(o,t.u_texture),u_ele_delta:new h.Uniform1f(o,t.u_ele_delta)}),terrainDepth:(o,t)=>({u_matrix:new h.UniformMatrix4f(o,t.u_matrix),u_ele_delta:new h.Uniform1f(o,t.u_ele_delta)}),terrainCoords:(o,t)=>({u_matrix:new h.UniformMatrix4f(o,t.u_matrix),u_texture:new h.Uniform1i(o,t.u_texture),u_terrain_coords_id:new h.Uniform1f(o,t.u_terrain_coords_id),u_ele_delta:new h.Uniform1f(o,t.u_ele_delta)})};class Es{constructor(t,n,a){this.context=t;const c=t.gl;this.buffer=c.createBuffer(),this.dynamicDraw=!!a,this.context.unbindVAO(),t.bindElementBuffer.set(this.buffer),c.bufferData(c.ELEMENT_ARRAY_BUFFER,n.arrayBuffer,this.dynamicDraw?c.DYNAMIC_DRAW:c.STATIC_DRAW),this.dynamicDraw||delete n.arrayBuffer}bind(){this.context.bindElementBuffer.set(this.buffer)}updateData(t){const n=this.context.gl;if(!this.dynamicDraw)throw new Error("Attempted to update data while not in dynamic mode.");this.context.unbindVAO(),this.bind(),n.bufferSubData(n.ELEMENT_ARRAY_BUFFER,0,t.arrayBuffer)}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}const Ss={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"};class Ea{constructor(t,n,a,c){this.length=n.length,this.attributes=a,this.itemSize=n.bytesPerElement,this.dynamicDraw=c,this.context=t;const p=t.gl;this.buffer=p.createBuffer(),t.bindVertexBuffer.set(this.buffer),p.bufferData(p.ARRAY_BUFFER,n.arrayBuffer,this.dynamicDraw?p.DYNAMIC_DRAW:p.STATIC_DRAW),this.dynamicDraw||delete n.arrayBuffer}bind(){this.context.bindVertexBuffer.set(this.buffer)}updateData(t){if(t.length!==this.length)throw new Error(`Length of new data is ${t.length}, which doesn't match current length of ${this.length}`);const n=this.context.gl;this.bind(),n.bufferSubData(n.ARRAY_BUFFER,0,t.arrayBuffer)}enableAttributes(t,n){for(let a=0;a0){const Ce=h.create(),Ue=_e;h.mul(Ce,me.placementInvProjMatrix,o.transform.glCoordMatrix),h.mul(Ce,Ce,me.placementViewportMatrix),T.push({circleArray:ge,circleOffset:k,transform:Ue,invTransform:Ce,coord:re}),w+=ge.length/4,k=w}ve&&x.draw(y,_.LINES,st.disabled,It.disabled,o.colorModeForRenderPass(),Et.disabled,va(_e,o.transform,oe),o.style.map.terrain&&o.style.map.terrain.getTerrainData(re),n.id,ve.layoutVertexBuffer,ve.indexBuffer,ve.segments,null,o.transform.zoom,null,null,ve.collisionVertexBuffer)}if(!m||!T.length)return;const O=o.useProgram("collisionCircle"),B=new h.CollisionCircleLayoutArray;B.resize(4*w),B._trim();let R=0;for(const $ of T)for(let re=0;re<$.circleArray.length/4;re++){const oe=4*re,me=$.circleArray[oe+0],_e=$.circleArray[oe+1],ve=$.circleArray[oe+2],ge=$.circleArray[oe+3];B.emplace(R++,me,_e,ve,ge,0),B.emplace(R++,me,_e,ve,ge,1),B.emplace(R++,me,_e,ve,ge,2),B.emplace(R++,me,_e,ve,ge,3)}(!kn||kn.length<2*w)&&(kn=function($){const re=2*$,oe=new h.QuadTriangleArray;oe.resize(re),oe._trim();for(let me=0;me=0&&(B[q.associatedIconIndex]={shiftedAnchor:Ke,angle:Ee})}else L(q.numGlyphs,k)}if(x){O.clear();const R=o.icon.placedSymbolArray;for(let q=0;qo.style.map.terrain.getElevation(ve,Qs,Mr):null,Oi=n.layout.get("text-rotation-alignment")==="map";Er(Ce,ve.posMatrix,o,c,rr,Ti,q,x,Oi,ti)}const mi=o.translatePosMatrix(ve.posMatrix,ge,p,m),ai=H||c&&me||ls?La:rr,ft=o.translatePosMatrix(Ti,ge,p,m,!0),ei=Ee&&n.paint.get(c?"text-halo-width":"icon-halo-width").constantOr(1)!==0;let oi;oi=Ee?Ce.iconsInText?Ts(je.kind,qt,se,q,o,mi,ai,ft,Je,si):In(je.kind,qt,se,q,o,mi,ai,ft,c,Je,!0):Sn(je.kind,qt,se,q,o,mi,ai,ft,c,Je);const gt={program:ut,buffers:Ue,uniformValues:oi,atlasTexture:Ot,atlasTextureIcon:Fi,atlasInterpolation:wi,atlasInterpolationIcon:jt,isSDF:Ee,hasHalo:ei};if($&&Ce.canOverlap){re=!0;const ti=Ue.segments.get();for(const Oi of ti)_e.push({segments:new h.SegmentVector([Oi]),sortKey:Oi.sortKey,state:gt,terrainData:dt})}else _e.push({segments:Ue.segments,sortKey:0,state:gt,terrainData:dt})}re&&_e.sort((ve,ge)=>ve.sortKey-ge.sortKey);for(const ve of _e){const ge=ve.state;if(k.activeTexture.set(O.TEXTURE0),ge.atlasTexture.bind(ge.atlasInterpolation,O.CLAMP_TO_EDGE),ge.atlasTextureIcon&&(k.activeTexture.set(O.TEXTURE1),ge.atlasTextureIcon&&ge.atlasTextureIcon.bind(ge.atlasInterpolationIcon,O.CLAMP_TO_EDGE)),ge.isSDF){const Ce=ge.uniformValues;ge.hasHalo&&(Ce.u_is_halo=1,Ba(ge.buffers,ve.segments,n,o,ge.program,oe,T,w,Ce,ve.terrainData)),Ce.u_is_halo=0}Ba(ge.buffers,ve.segments,n,o,ge.program,oe,T,w,ge.uniformValues,ve.terrainData)}}function Ba(o,t,n,a,c,p,m,y,_,x){const T=a.context;c.draw(T,T.gl.TRIANGLES,p,m,y,Et.disabled,_,x,n.id,o.layoutVertexBuffer,o.indexBuffer,t,n.paint,a.transform.zoom,o.programConfigurations.get(n.id),o.dynamicLayoutVertexBuffer,o.opacityVertexBuffer)}function Ra(o,t,n,a,c){if(!n||!a||!a.imageAtlas)return;const p=a.imageAtlas.patternPositions;let m=p[n.to.toString()],y=p[n.from.toString()];if(!m||!y){const _=c.getPaintProperty(t);m=p[_],y=p[_]}m&&y&&o.setConstantPatternPositions(m,y)}function Kn(o,t,n,a,c,p,m){const y=o.context.gl,_="fill-pattern",x=n.paint.get(_),T=x&&x.constantOr(1),w=n.getCrossfadeParameters();let k,O,B,R,q;m?(O=T&&!n.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",k=y.LINES):(O=T?"fillPattern":"fill",k=y.TRIANGLES);const H=x.constantOr(null);for(const se of a){const $=t.getTile(se);if(T&&!$.patternsLoaded())continue;const re=$.getBucket(n);if(!re)continue;const oe=re.programConfigurations.get(n.id),me=o.useProgram(O,oe),_e=o.style.map.terrain&&o.style.map.terrain.getTerrainData(se);T&&(o.context.activeTexture.set(y.TEXTURE0),$.imageAtlasTexture.bind(y.LINEAR,y.CLAMP_TO_EDGE),oe.updatePaintBuffers(w)),Ra(oe,_,H,$,n);const ve=_e?se:null,ge=o.translatePosMatrix(ve?ve.posMatrix:se.posMatrix,$,n.paint.get("fill-translate"),n.paint.get("fill-translate-anchor"));if(m){R=re.indexBuffer2,q=re.segments2;const Ce=[y.drawingBufferWidth,y.drawingBufferHeight];B=O==="fillOutlinePattern"&&T?ko(ge,o,w,$,Ce):ql(ge,Ce)}else R=re.indexBuffer,q=re.segments,B=T?xa(ge,o,w,$):Co(ge);me.draw(o.context,k,c,o.stencilModeForClipping(se),p,Et.disabled,B,_e,n.id,re.layoutVertexBuffer,R,q,n.paint,o.transform.zoom,oe)}}function Yn(o,t,n,a,c,p,m){const y=o.context,_=y.gl,x="fill-extrusion-pattern",T=n.paint.get(x),w=T.constantOr(1),k=n.getCrossfadeParameters(),O=n.paint.get("fill-extrusion-opacity"),B=T.constantOr(null);for(const R of a){const q=t.getTile(R),H=q.getBucket(n);if(!H)continue;const se=o.style.map.terrain&&o.style.map.terrain.getTerrainData(R),$=H.programConfigurations.get(n.id),re=o.useProgram(w?"fillExtrusionPattern":"fillExtrusion",$);w&&(o.context.activeTexture.set(_.TEXTURE0),q.imageAtlasTexture.bind(_.LINEAR,_.CLAMP_TO_EDGE),$.updatePaintBuffers(k)),Ra($,x,B,q,n);const oe=o.translatePosMatrix(R.posMatrix,q,n.paint.get("fill-extrusion-translate"),n.paint.get("fill-extrusion-translate-anchor")),me=n.paint.get("fill-extrusion-vertical-gradient"),_e=w?ya(oe,o,me,O,R,k,q):Mo(oe,o,me,O);re.draw(y,y.gl.TRIANGLES,c,p,m,Et.backCCW,_e,se,n.id,H.layoutVertexBuffer,H.indexBuffer,H.segments,n.paint,o.transform.zoom,$,o.style.map.terrain&&H.centroidVertexBuffer)}}function tc(o,t,n,a,c,p,m){const y=o.context,_=y.gl,x=n.fbo;if(!x)return;const T=o.useProgram("hillshade"),w=o.style.map.terrain&&o.style.map.terrain.getTerrainData(t);y.activeTexture.set(_.TEXTURE0),_.bindTexture(_.TEXTURE_2D,x.colorAttachment.get()),T.draw(y,_.TRIANGLES,c,p,m,Et.disabled,((k,O,B,R)=>{const q=B.paint.get("hillshade-shadow-color"),H=B.paint.get("hillshade-highlight-color"),se=B.paint.get("hillshade-accent-color");let $=B.paint.get("hillshade-illumination-direction")*(Math.PI/180);B.paint.get("hillshade-illumination-anchor")==="viewport"&&($-=k.transform.angle);const re=!k.options.moving;return{u_matrix:R?R.posMatrix:k.transform.calculatePosMatrix(O.tileID.toUnwrapped(),re),u_image:0,u_latrange:Do(0,O.tileID),u_light:[B.paint.get("hillshade-exaggeration"),$],u_shadow:q,u_highlight:H,u_accent:se}})(o,n,a,w?t:null),w,a.id,o.rasterBoundsBuffer,o.quadTriangleIndexBuffer,o.rasterBoundsSegments)}function jo(o,t,n,a,c,p){const m=o.context,y=m.gl,_=t.dem;if(_&&_.data){const x=_.dim,T=_.stride,w=_.getPixels();if(m.activeTexture.set(y.TEXTURE1),m.pixelStoreUnpackPremultiplyAlpha.set(!1),t.demTexture=t.demTexture||o.getTileTexture(T),t.demTexture){const O=t.demTexture;O.update(w,{premultiply:!1}),O.bind(y.NEAREST,y.CLAMP_TO_EDGE)}else t.demTexture=new yt(m,w,y.RGBA,{premultiply:!1}),t.demTexture.bind(y.NEAREST,y.CLAMP_TO_EDGE);m.activeTexture.set(y.TEXTURE0);let k=t.fbo;if(!k){const O=new yt(m,{width:x,height:x,data:null},y.RGBA);O.bind(y.LINEAR,y.CLAMP_TO_EDGE),k=t.fbo=m.createFramebuffer(x,x,!0,!1),k.colorAttachment.set(O.texture)}m.bindFramebuffer.set(k.framebuffer),m.viewport.set([0,0,x,x]),o.useProgram("hillshadePrepare").draw(m,y.TRIANGLES,a,c,p,Et.disabled,((O,B)=>{const R=B.stride,q=h.create();return h.ortho(q,0,h.EXTENT,-h.EXTENT,0,0,1),h.translate(q,q,[0,-h.EXTENT,0]),{u_matrix:q,u_image:1,u_dimension:[R,R],u_zoom:O.overscaledZ,u_unpack:B.getUnpackVector()}})(t.tileID,_),null,n.id,o.rasterBoundsBuffer,o.quadTriangleIndexBuffer,o.rasterBoundsSegments),t.needsHillshadePrepare=!1}}function $t(o,t,n,a,c,p){const m=a.paint.get("raster-fade-duration");if(!p&&m>0){const y=h.exported.now(),_=(y-o.timeAdded)/m,x=t?(y-t.timeAdded)/m:-1,T=n.getSource(),w=c.coveringZoomLevel({tileSize:T.tileSize,roundZoom:T.roundZoom}),k=!t||Math.abs(t.tileID.overscaledZ-w)>Math.abs(o.tileID.overscaledZ-w),O=k&&o.refreshedUponExpiration?1:h.clamp(k?_:1-x,0,1);return o.refreshedUponExpiration&&_>=1&&(o.refreshedUponExpiration=!1),t?{opacity:1,mix:1-O}:{opacity:O,mix:0}}return{opacity:1,mix:0}}const rn=new h.Color(1,0,0,1),Ki=new h.Color(0,1,0,1),Zo=new h.Color(0,0,1,1),Fa=new h.Color(1,0,1,1),Go=new h.Color(0,1,1,1);function nn(o,t,n,a){zn(o,0,t+n/2,o.transform.width,n,a)}function Jn(o,t,n,a){zn(o,t-n/2,0,n,o.transform.height,a)}function zn(o,t,n,a,c,p){const m=o.context,y=m.gl;y.enable(y.SCISSOR_TEST),y.scissor(t*o.pixelRatio,n*o.pixelRatio,a*o.pixelRatio,c*o.pixelRatio),m.clear({color:p}),y.disable(y.SCISSOR_TEST)}function Xo(o,t,n){const a=o.context,c=a.gl,p=n.posMatrix,m=o.useProgram("debug"),y=st.disabled,_=It.disabled,x=o.colorModeForRenderPass(),T="$debug",w=o.style.map.terrain&&o.style.map.terrain.getTerrainData(n);a.activeTexture.set(c.TEXTURE0);const k=t.getTileByID(n.key).latestRawTileData,O=Math.floor((k&&k.byteLength||0)/1024),B=t.getTile(n).tileSize,R=512/Math.min(B,512)*(n.overscaledZ/o.transform.zoom)*.5;let q=n.canonical.toString();n.overscaledZ!==n.canonical.z&&(q+=` => ${n.overscaledZ}`),function(H,se){H.initDebugOverlayCanvas();const $=H.debugOverlayCanvas,re=H.context.gl,oe=H.debugOverlayCanvas.getContext("2d");oe.clearRect(0,0,$.width,$.height),oe.shadowColor="white",oe.shadowBlur=2,oe.lineWidth=1.5,oe.strokeStyle="white",oe.textBaseline="top",oe.font="bold 36px Open Sans, sans-serif",oe.fillText(se,5,5),oe.strokeText(se,5,5),H.debugOverlayTexture.update($),H.debugOverlayTexture.bind(re.LINEAR,re.CLAMP_TO_EDGE)}(o,`${q} ${O}kB`),m.draw(a,c.TRIANGLES,y,_,Dt.alphaBlended,Et.disabled,ba(p,h.Color.transparent,R),null,T,o.debugBuffer,o.quadTriangleIndexBuffer,o.debugSegments),m.draw(a,c.LINE_STRIP,y,_,x,Et.disabled,ba(p,h.Color.red),w,T,o.debugBuffer,o.tileBorderIndexBuffer,o.debugSegments)}function Oa(o,t,n){const a=o.context,c=a.gl,p=o.colorModeForRenderPass(),m=new st(c.LEQUAL,st.ReadWrite,o.depthRangeFor3D),y=o.useProgram("terrain"),_=t.getTerrainMesh();a.bindFramebuffer.set(null),a.viewport.set([0,0,o.width,o.height]);for(const x of n){const T=o.renderToTexture.getTexture(x),w=t.getTerrainData(x.tileID);a.activeTexture.set(c.TEXTURE0),c.bindTexture(c.TEXTURE_2D,T.texture);const k={u_matrix:o.transform.calculatePosMatrix(x.tileID.toUnwrapped()),u_texture:0,u_ele_delta:t.getMeshFrameDelta(o.transform.zoom)};y.draw(a,c.TRIANGLES,m,It.disabled,p,Et.backCCW,k,w,"terrain",_.vertexBuffer,_.indexBuffer,_.segments)}}const Ua={symbol:function(o,t,n,a,c){if(o.renderPass!=="translucent")return;const p=It.disabled,m=o.colorModeForRenderPass();n.layout.get("text-variable-anchor")&&function(y,_,x,T,w,k,O){const B=_.transform,R=w==="map",q=k==="map";for(const H of y){const se=T.getTile(H),$=se.getBucket(x);if(!$||!$.text||!$.text.segments.get().length)continue;const re=h.evaluateSizeForZoom($.textSizeData,B.zoom),oe=W(se,1,_.transform.zoom),me=Ye(H.posMatrix,q,R,_.transform,oe),_e=x.layout.get("icon-text-fit")!=="none"&&$.hasIconData();if(re){const ve=Math.pow(2,B.zoom-se.tileID.overscaledZ);qo($,R,q,O,B,me,H.posMatrix,ve,re,_e,_.style.map.terrain?(ge,Ce)=>_.style.map.terrain.getElevation(H,ge,Ce):null)}}}(a,o,n,t,n.layout.get("text-rotation-alignment"),n.layout.get("text-pitch-alignment"),c),n.paint.get("icon-opacity").constantOr(1)!==0&&zs(o,t,n,a,!1,n.paint.get("icon-translate"),n.paint.get("icon-translate-anchor"),n.layout.get("icon-rotation-alignment"),n.layout.get("icon-pitch-alignment"),n.layout.get("icon-keep-upright"),p,m),n.paint.get("text-opacity").constantOr(1)!==0&&zs(o,t,n,a,!0,n.paint.get("text-translate"),n.paint.get("text-translate-anchor"),n.layout.get("text-rotation-alignment"),n.layout.get("text-pitch-alignment"),n.layout.get("text-keep-upright"),p,m),t.map.showCollisionBoxes&&($o(o,t,n,a,n.paint.get("text-translate"),n.paint.get("text-translate-anchor"),!0),$o(o,t,n,a,n.paint.get("icon-translate"),n.paint.get("icon-translate-anchor"),!1))},circle:function(o,t,n,a){if(o.renderPass!=="translucent")return;const c=n.paint.get("circle-opacity"),p=n.paint.get("circle-stroke-width"),m=n.paint.get("circle-stroke-opacity"),y=!n.layout.get("circle-sort-key").isConstant();if(c.constantOr(1)===0&&(p.constantOr(1)===0||m.constantOr(1)===0))return;const _=o.context,x=_.gl,T=o.depthModeForSublayer(0,st.ReadOnly),w=It.disabled,k=o.colorModeForRenderPass(),O=[];for(let B=0;BB.sortKey-R.sortKey);for(const B of O){const{programConfiguration:R,program:q,layoutVertexBuffer:H,indexBuffer:se,uniformValues:$,terrainData:re}=B.state;q.draw(_,x.TRIANGLES,T,w,k,Et.disabled,$,re,n.id,H,se,B.segments,n.paint,o.transform.zoom,R)}},heatmap:function(o,t,n,a){if(n.paint.get("heatmap-opacity")!==0)if(o.renderPass==="offscreen"){const c=o.context,p=c.gl,m=It.disabled,y=new Dt([p.ONE,p.ONE],h.Color.transparent,[!0,!0,!0,!0]);(function(_,x,T){const w=_.gl;_.activeTexture.set(w.TEXTURE1),_.viewport.set([0,0,x.width/4,x.height/4]);let k=T.heatmapFbo;if(k)w.bindTexture(w.TEXTURE_2D,k.colorAttachment.get()),_.bindFramebuffer.set(k.framebuffer);else{const O=w.createTexture();w.bindTexture(w.TEXTURE_2D,O),w.texParameteri(w.TEXTURE_2D,w.TEXTURE_WRAP_S,w.CLAMP_TO_EDGE),w.texParameteri(w.TEXTURE_2D,w.TEXTURE_WRAP_T,w.CLAMP_TO_EDGE),w.texParameteri(w.TEXTURE_2D,w.TEXTURE_MIN_FILTER,w.LINEAR),w.texParameteri(w.TEXTURE_2D,w.TEXTURE_MAG_FILTER,w.LINEAR),k=T.heatmapFbo=_.createFramebuffer(x.width/4,x.height/4,!1,!1),function(B,R,q,H){var se,$;const re=B.gl,oe=(se=B.HALF_FLOAT)!==null&&se!==void 0?se:re.UNSIGNED_BYTE,me=($=B.RGBA16F)!==null&&$!==void 0?$:re.RGBA;re.texImage2D(re.TEXTURE_2D,0,me,R.width/4,R.height/4,0,re.RGBA,oe,null),H.colorAttachment.set(q)}(_,x,O,k)}})(c,o,n),c.clear({color:h.Color.transparent});for(let _=0;_{const B=h.create();h.ortho(B,0,T.width,T.height,0,0,1);const R=T.context.gl;return{u_matrix:B,u_world:[R.drawingBufferWidth,R.drawingBufferHeight],u_image:0,u_color_ramp:1,u_opacity:w.paint.get("heatmap-opacity")}})(c,p),null,p.id,c.viewportBuffer,c.quadTriangleIndexBuffer,c.viewportSegments,p.paint,c.transform.zoom)}(o,n))},line:function(o,t,n,a){if(o.renderPass!=="translucent")return;const c=n.paint.get("line-opacity"),p=n.paint.get("line-width");if(c.constantOr(1)===0||p.constantOr(1)===0)return;const m=o.depthModeForSublayer(0,st.ReadOnly),y=o.colorModeForRenderPass(),_=n.paint.get("line-dasharray"),x=n.paint.get("line-pattern"),T=x.constantOr(1),w=n.paint.get("line-gradient"),k=n.getCrossfadeParameters(),O=T?"linePattern":_?"lineSDF":w?"lineGradient":"line",B=o.context,R=B.gl;let q=!0;for(const H of a){const se=t.getTile(H);if(T&&!se.patternsLoaded())continue;const $=se.getBucket(n);if(!$)continue;const re=$.programConfigurations.get(n.id),oe=o.context.program.get(),me=o.useProgram(O,re),_e=q||me.program!==oe,ve=o.style.map.terrain&&o.style.map.terrain.getTerrainData(H),ge=x.constantOr(null);if(ge&&se.imageAtlas){const Ke=se.imageAtlas,Ee=Ke.patternPositions[ge.to.toString()],je=Ke.patternPositions[ge.from.toString()];Ee&&je&&re.setConstantPatternPositions(Ee,je)}const Ce=ve?H:null,Ue=T?Hi(o,se,n,k,Ce):_?vs(o,se,n,_,k,Ce):w?xs(o,se,n,$.lineClipsArray.length,Ce):Ir(o,se,n,Ce);if(T)B.activeTexture.set(R.TEXTURE0),se.imageAtlasTexture.bind(R.LINEAR,R.CLAMP_TO_EDGE),re.updatePaintBuffers(k);else if(_&&(_e||o.lineAtlas.dirty))B.activeTexture.set(R.TEXTURE0),o.lineAtlas.bind(B);else if(w){const Ke=$.gradients[n.id];let Ee=Ke.texture;if(n.gradientVersion!==Ke.version){let je=256;if(n.stepInterpolant){const ke=t.getSource().maxzoom,ut=H.canonical.z===ke?Math.ceil(1<256&&this.clearStencil(),a.setColorMode(Dt.disabled),a.setDepthMode(st.disabled);const p=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(const m of n){const y=this._tileClippingMaskIDs[m.key]=this.nextStencilID++,_=this.style.map.terrain&&this.style.map.terrain.getTerrainData(m);p.draw(a,c.TRIANGLES,st.disabled,new It({func:c.ALWAYS,mask:0},y,255,c.KEEP,c.KEEP,c.REPLACE),Dt.disabled,Et.disabled,wa(m.posMatrix),_,"$clipping",this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();const t=this.nextStencilID++,n=this.context.gl;return new It({func:n.NOTEQUAL,mask:255},t,255,n.KEEP,n.KEEP,n.REPLACE)}stencilModeForClipping(t){const n=this.context.gl;return new It({func:n.EQUAL,mask:255},this._tileClippingMaskIDs[t.key],0,n.KEEP,n.KEEP,n.REPLACE)}stencilConfigForOverlap(t){const n=this.context.gl,a=t.sort((m,y)=>y.overscaledZ-m.overscaledZ),c=a[a.length-1].overscaledZ,p=a[0].overscaledZ-c+1;if(p>1){this.currentStencilSource=void 0,this.nextStencilID+p>256&&this.clearStencil();const m={};for(let y=0;y=0;this.currentLayer--){const _=this.style._layers[a[this.currentLayer]],x=c[_.source],T=p[_.source];this._renderTileClippingMasks(_,T),this.renderLayer(this,x,_,T)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayerq.source&&!q.isHidden(T)?[x.sourceCaches[q.source]]:[]),O=k.filter(q=>q.getSource().type==="vector"),B=k.filter(q=>q.getSource().type!=="vector"),R=q=>{(!w||w.getSource().maxzoomR(q)),w||B.forEach(q=>R(q)),w}(this.style,this.transform.zoom);_&&Ua.debug(this,_,_.getVisibleCoordinates())}this.options.showPadding&&function(_){const x=_.transform.padding;nn(_,_.transform.height-(x.top||0),3,rn),nn(_,x.bottom||0,3,Ki),Jn(_,x.left||0,3,Zo),Jn(_,_.transform.width-(x.right||0),3,Fa);const T=_.transform.centerPoint;(function(w,k,O,B){zn(w,k-1,O-10,2,20,B),zn(w,k-10,O-1,20,2,B)})(_,T.x,_.transform.height-T.y,Go)}(this),this.context.setDefault()}renderLayer(t,n,a,c){a.isHidden(this.transform.zoom)||(a.type==="background"||a.type==="custom"||(c||[]).length)&&(this.id=a.id,Ua[a.type](t,n,a,c,this.style.placement.variableOffsets))}translatePosMatrix(t,n,a,c,p){if(!a[0]&&!a[1])return t;const m=p?c==="map"?this.transform.angle:0:c==="viewport"?-this.transform.angle:0;if(m){const x=Math.sin(m),T=Math.cos(m);a=[a[0]*T-a[1]*x,a[0]*x+a[1]*T]}const y=[p?a[0]:W(n,a[0],this.transform.zoom),p?a[1]:W(n,a[1],this.transform.zoom),0],_=new Float32Array(16);return h.translate(_,t,y),_}saveTileTexture(t){const n=this._tileTextures[t.size[0]];n?n.push(t):this._tileTextures[t.size[0]]=[t]}getTileTexture(t){const n=this._tileTextures[t];return n&&n.length>0?n.pop():null}isPatternMissing(t){if(!t)return!1;if(!t.from||!t.to)return!0;const n=this.imageManager.getPattern(t.from.toString()),a=this.imageManager.getPattern(t.to.toString());return!n||!a}useProgram(t,n){this.cache=this.cache||{};const a=t+(n?n.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"")+(this.style.map.terrain?"/terrain":"");return this.cache[a]||(this.cache[a]=new ys(this.context,t,Nr[t],n,Ta[t],this._showOverdrawInspector,this.style.map.terrain)),this.cache[a]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){const t=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(t.FUNC_ADD)}initDebugOverlayCanvas(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new yt(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this.debugOverlayTexture&&this.debugOverlayTexture.destroy()}}class Ds{constructor(t,n){this.points=t,this.planes=n}static fromInvProjectionMatrix(t,n,a){const c=Math.pow(2,a),p=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(y=>{const _=1/(y=h.transformMat4([],y,t))[3]/n*c;return h.mul$1(y,y,[_,_,1/y[3],_])}),m=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(y=>{const _=function(k,O){var B=O[0],R=O[1],q=O[2],H=B*B+R*R+q*q;return H>0&&(H=1/Math.sqrt(H)),k[0]=O[0]*H,k[1]=O[1]*H,k[2]=O[2]*H,k}([],function(k,O,B){var R=O[0],q=O[1],H=O[2],se=B[0],$=B[1],re=B[2];return k[0]=q*re-H*$,k[1]=H*se-R*re,k[2]=R*$-q*se,k}([],Mt([],p[y[0]],p[y[1]]),Mt([],p[y[2]],p[y[1]]))),x=-((T=_)[0]*(w=p[y[1]])[0]+T[1]*w[1]+T[2]*w[2]);var T,w;return _.concat(x)});return new Ds(p,m)}}class hr{constructor(t,n){this.min=t,this.max=n,this.center=function(a,c,p){return a[0]=.5*c[0],a[1]=.5*c[1],a[2]=.5*c[2],a}([],function(a,c,p){return a[0]=c[0]+p[0],a[1]=c[1]+p[1],a[2]=c[2]+p[2],a}([],this.min,this.max))}quadrant(t){const n=[t%2==0,t<2],a=Rt(this.min),c=Rt(this.max);for(let p=0;p=0&&m++;if(m===0)return 0;m!==n.length&&(a=!1)}if(a)return 2;for(let c=0;c<3;c++){let p=Number.MAX_VALUE,m=-Number.MAX_VALUE;for(let y=0;ythis.max[c]-this.min[c])return 0}return 1}}class Ls{constructor(t=0,n=0,a=0,c=0){if(isNaN(t)||t<0||isNaN(n)||n<0||isNaN(a)||a<0||isNaN(c)||c<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=t,this.bottom=n,this.left=a,this.right=c}interpolate(t,n,a){return n.top!=null&&t.top!=null&&(this.top=h.interpolate.number(t.top,n.top,a)),n.bottom!=null&&t.bottom!=null&&(this.bottom=h.interpolate.number(t.bottom,n.bottom,a)),n.left!=null&&t.left!=null&&(this.left=h.interpolate.number(t.left,n.left,a)),n.right!=null&&t.right!=null&&(this.right=h.interpolate.number(t.right,n.right,a)),this}getCenter(t,n){const a=h.clamp((this.left+t-this.right)/2,0,t),c=h.clamp((this.top+n-this.bottom)/2,0,n);return new h.Point(a,c)}equals(t){return this.top===t.top&&this.bottom===t.bottom&&this.left===t.left&&this.right===t.right}clone(){return new Ls(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}class Bs{constructor(t,n,a,c,p){this.tileSize=512,this.maxValidLatitude=85.051129,this.freezeElevation=!1,this._renderWorldCopies=p===void 0||!!p,this._minZoom=t||0,this._maxZoom=n||22,this._minPitch=a??0,this._maxPitch=c??60,this.setMaxBounds(),this.width=0,this.height=0,this._center=new h.LngLat(0,0),this._elevation=0,this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new Ls,this._posMatrixCache={},this._alignedPosMatrixCache={}}clone(){const t=new Bs(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return t.apply(this),t}apply(t){this.tileSize=t.tileSize,this.latRange=t.latRange,this.width=t.width,this.height=t.height,this._center=t._center,this._elevation=t._elevation,this.zoom=t.zoom,this.angle=t.angle,this._fov=t._fov,this._pitch=t._pitch,this._unmodified=t._unmodified,this._edgeInsets=t._edgeInsets.clone(),this._calcMatrices()}get minZoom(){return this._minZoom}set minZoom(t){this._minZoom!==t&&(this._minZoom=t,this.zoom=Math.max(this.zoom,t))}get maxZoom(){return this._maxZoom}set maxZoom(t){this._maxZoom!==t&&(this._maxZoom=t,this.zoom=Math.min(this.zoom,t))}get minPitch(){return this._minPitch}set minPitch(t){this._minPitch!==t&&(this._minPitch=t,this.pitch=Math.max(this.pitch,t))}get maxPitch(){return this._maxPitch}set maxPitch(t){this._maxPitch!==t&&(this._maxPitch=t,this.pitch=Math.min(this.pitch,t))}get renderWorldCopies(){return this._renderWorldCopies}set renderWorldCopies(t){t===void 0?t=!0:t===null&&(t=!1),this._renderWorldCopies=t}get worldSize(){return this.tileSize*this.scale}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new h.Point(this.width,this.height)}get bearing(){return-this.angle/Math.PI*180}set bearing(t){const n=-h.wrap(t,-180,180)*Math.PI/180;this.angle!==n&&(this._unmodified=!1,this.angle=n,this._calcMatrices(),this.rotationMatrix=function(){var a=new h.ARRAY_TYPE(4);return h.ARRAY_TYPE!=Float32Array&&(a[1]=0,a[2]=0),a[0]=1,a[3]=1,a}(),function(a,c,p){var m=c[0],y=c[1],_=c[2],x=c[3],T=Math.sin(p),w=Math.cos(p);a[0]=m*w+_*T,a[1]=y*w+x*T,a[2]=m*-T+_*w,a[3]=y*-T+x*w}(this.rotationMatrix,this.rotationMatrix,this.angle))}get pitch(){return this._pitch/Math.PI*180}set pitch(t){const n=h.clamp(t,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==n&&(this._unmodified=!1,this._pitch=n,this._calcMatrices())}get fov(){return this._fov/Math.PI*180}set fov(t){t=Math.max(.01,Math.min(60,t)),this._fov!==t&&(this._unmodified=!1,this._fov=t/180*Math.PI,this._calcMatrices())}get zoom(){return this._zoom}set zoom(t){const n=Math.min(Math.max(t,this.minZoom),this.maxZoom);this._zoom!==n&&(this._unmodified=!1,this._zoom=n,this.tileZoom=Math.max(0,Math.floor(n)),this.scale=this.zoomScale(n),this._constrain(),this._calcMatrices())}get center(){return this._center}set center(t){t.lat===this._center.lat&&t.lng===this._center.lng||(this._unmodified=!1,this._center=t,this._constrain(),this._calcMatrices())}get elevation(){return this._elevation}set elevation(t){t!==this._elevation&&(this._elevation=t,this._constrain(),this._calcMatrices())}get padding(){return this._edgeInsets.toJSON()}set padding(t){this._edgeInsets.equals(t)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,t,1),this._calcMatrices())}get centerPoint(){return this._edgeInsets.getCenter(this.width,this.height)}isPaddingEqual(t){return this._edgeInsets.equals(t)}interpolatePadding(t,n,a){this._unmodified=!1,this._edgeInsets.interpolate(t,n,a),this._constrain(),this._calcMatrices()}coveringZoomLevel(t){const n=(t.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/t.tileSize));return Math.max(0,n)}getVisibleUnwrappedCoordinates(t){const n=[new h.UnwrappedTileID(0,t)];if(this._renderWorldCopies){const a=this.pointCoordinate(new h.Point(0,0)),c=this.pointCoordinate(new h.Point(this.width,0)),p=this.pointCoordinate(new h.Point(this.width,this.height)),m=this.pointCoordinate(new h.Point(0,this.height)),y=Math.floor(Math.min(a.x,c.x,p.x,m.x)),_=Math.floor(Math.max(a.x,c.x,p.x,m.x)),x=1;for(let T=y-x;T<=_+x;T++)T!==0&&n.push(new h.UnwrappedTileID(T,t))}return n}coveringTiles(t){var n,a;let c=this.coveringZoomLevel(t);const p=c;if(t.minzoom!==void 0&&ct.maxzoom&&(c=t.maxzoom);const m=this.pointCoordinate(this.getCameraPoint()),y=h.MercatorCoordinate.fromLngLat(this.center),_=Math.pow(2,c),x=[_*m.x,_*m.y,0],T=[_*y.x,_*y.y,0],w=Ds.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,c);let k=t.minzoom||0;!t.terrain&&this.pitch<=60&&this._edgeInsets.top<.1&&(k=c);const O=t.terrain?2/Math.min(this.tileSize,t.tileSize)*this.tileSize:3,B=$=>({aabb:new hr([$*_,0,0],[($+1)*_,_,0]),zoom:0,x:0,y:0,wrap:$,fullyVisible:!1}),R=[],q=[],H=c,se=t.reparseOverscaled?p:c;if(this._renderWorldCopies)for(let $=1;$<=3;$++)R.push(B(-$)),R.push(B($));for(R.push(B(0));R.length>0;){const $=R.pop(),re=$.x,oe=$.y;let me=$.fullyVisible;if(!me){const Ue=$.aabb.intersects(w);if(Ue===0)continue;me=Ue===2}const _e=t.terrain?x:T,ve=$.aabb.distanceX(_e),ge=$.aabb.distanceY(_e),Ce=Math.max(Math.abs(ve),Math.abs(ge));if($.zoom===H||Ce>O+(1<=k){const Ue=H-$.zoom,Ke=x[0]-.5-(re<>1),je=$.zoom+1;let ke=$.aabb.quadrant(Ue);if(t.terrain){const ut=new h.OverscaledTileID(je,$.wrap,je,Ke,Ee),qt=t.terrain.getMinMaxElevation(ut),dt=(n=qt.minElevation)!==null&&n!==void 0?n:this.elevation,Je=(a=qt.maxElevation)!==null&&a!==void 0?a:this.elevation;ke=new hr([ke.min[0],ke.min[1],dt],[ke.max[0],ke.max[1],Je])}R.push({aabb:ke,zoom:je,x:Ke,y:Ee,wrap:$.wrap,fullyVisible:me})}}return q.sort(($,re)=>$.distanceSq-re.distanceSq).map($=>$.tileID)}resize(t,n){this.width=t,this.height=n,this.pixelsToGLUnits=[2/t,-2/n],this._constrain(),this._calcMatrices()}get unmodified(){return this._unmodified}zoomScale(t){return Math.pow(2,t)}scaleZoom(t){return Math.log(t)/Math.LN2}project(t){const n=h.clamp(t.lat,-this.maxValidLatitude,this.maxValidLatitude);return new h.Point(h.mercatorXfromLng(t.lng)*this.worldSize,h.mercatorYfromLat(n)*this.worldSize)}unproject(t){return new h.MercatorCoordinate(t.x/this.worldSize,t.y/this.worldSize).toLngLat()}get point(){return this.project(this.center)}updateElevation(t){this.freezeElevation||(this.elevation=t?this.getElevation(this._center,t):0)}getElevation(t,n){const a=h.MercatorCoordinate.fromLngLat(t.wrap()),c=(1<m&&(c=m-B)}if(this.lngRange){const O=(y+_)/2,B=h.wrap(w.x,O-this.worldSize/2,O+this.worldSize/2),R=x.x/2;B-R_&&(a=_-R)}a===void 0&&c===void 0||(this.center=this.unproject(new h.Point(a!==void 0?a:w.x,c!==void 0?c:w.y)).wrap()),this._unmodified=T,this._constraining=!1}_calcMatrices(){if(!this.height)return;const t=this.centerOffset,n=this.point.x,a=this.point.y;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height,this._pixelPerMeter=h.mercatorZfromAltitude(1,this.center.lat)*this.worldSize;let c=h.identity(new Float64Array(16));h.scale(c,c,[this.width/2,-this.height/2,1]),h.translate(c,c,[1,-1,0]),this.labelPlaneMatrix=c,c=h.identity(new Float64Array(16)),h.scale(c,c,[1,-1,1]),h.translate(c,c,[-1,-1,0]),h.scale(c,c,[2/this.width,2/this.height,1]),this.glCoordMatrix=c,this.cameraToSeaLevelDistance=this.cameraToCenterDistance+this._elevation*this._pixelPerMeter/Math.cos(this._pitch);const p=this._elevation<0?this.cameraToCenterDistance:this.cameraToSeaLevelDistance,m=Math.PI/2+this._pitch,y=this._fov*(.5+t.y/this.height),_=Math.sin(y)*p/Math.sin(h.clamp(Math.PI-m-y,.01,Math.PI-.01)),x=this.getHorizon(),T=2*Math.atan(x/this.cameraToCenterDistance)*(.5+t.y/(2*x)),w=Math.sin(T)*p/Math.sin(h.clamp(Math.PI-m-T,.01,Math.PI-.01)),k=Math.min(_,w),O=1.01*(Math.cos(Math.PI/2-this._pitch)*k+p),B=this.height/50;c=new Float64Array(16),h.perspective(c,this._fov,this.width/this.height,B,O),c[8]=2*-t.x/this.width,c[9]=2*t.y/this.height,h.scale(c,c,[1,-1,1]),h.translate(c,c,[0,0,-this.cameraToCenterDistance]),h.rotateX(c,c,this._pitch),h.rotateZ(c,c,this.angle),h.translate(c,c,[-n,-a,0]),this.mercatorMatrix=h.scale([],c,[this.worldSize,this.worldSize,this.worldSize]),h.scale(c,c,[1,1,this._pixelPerMeter]),this.pixelMatrix=h.multiply(new Float64Array(16),this.labelPlaneMatrix,c),h.translate(c,c,[0,0,-this.elevation]),this.projMatrix=c,this.invProjMatrix=h.invert([],c),this.pixelMatrix3D=h.multiply(new Float64Array(16),this.labelPlaneMatrix,c);const R=this.width%2/2,q=this.height%2/2,H=Math.cos(this.angle),se=Math.sin(this.angle),$=n-Math.round(n)+H*R+se*q,re=a-Math.round(a)+H*q+se*R,oe=new Float64Array(c);if(h.translate(oe,oe,[$>.5?$-1:$,re>.5?re-1:re,0]),this.alignedProjMatrix=oe,c=h.invert(new Float64Array(16),this.pixelMatrix),!c)throw new Error("failed to invert matrix");this.pixelMatrixInverse=c,this._posMatrixCache={},this._alignedPosMatrixCache={}}maxPitchScaleFactor(){if(!this.pixelMatrixInverse)return 1;const t=this.pointCoordinate(new h.Point(0,0)),n=[t.x*this.worldSize,t.y*this.worldSize,0,1];return h.transformMat4(n,n,this.pixelMatrix)[3]/this.cameraToCenterDistance}getCameraPoint(){const t=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new h.Point(0,t))}getCameraQueryGeometry(t){const n=this.getCameraPoint();if(t.length===1)return[t[0],n];{let a=n.x,c=n.y,p=n.x,m=n.y;for(const y of t)a=Math.min(a,y.x),c=Math.min(c,y.y),p=Math.max(p,y.x),m=Math.max(m,y.y);return[new h.Point(a,c),new h.Point(p,c),new h.Point(p,m),new h.Point(a,m),new h.Point(a,c)]}}}class Ho{constructor(t){this._hashName=t&&encodeURIComponent(t),h.bindAll(["_getCurrentHash","_onHashChange","_updateHash"],this),this._updateHash=function(n,a){let c=!1,p=null;const m=()=>{p=null,c&&(n(),p=setTimeout(m,300),c=!1)};return()=>(c=!0,p||m(),p)}(this._updateHashUnthrottled.bind(this))}addTo(t){return this._map=t,addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this}remove(){return removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),delete this._map,this}getHashString(t){const n=this._map.getCenter(),a=Math.round(100*this._map.getZoom())/100,c=Math.ceil((a*Math.LN2+Math.log(512/360/.5))/Math.LN10),p=Math.pow(10,c),m=Math.round(n.lng*p)/p,y=Math.round(n.lat*p)/p,_=this._map.getBearing(),x=this._map.getPitch();let T="";if(T+=t?`/${m}/${y}/${a}`:`${a}/${y}/${m}`,(_||x)&&(T+="/"+Math.round(10*_)/10),x&&(T+=`/${Math.round(x)}`),this._hashName){const w=this._hashName;let k=!1;const O=window.location.hash.slice(1).split("&").map(B=>{const R=B.split("=")[0];return R===w?(k=!0,`${R}=${T}`):B}).filter(B=>B);return k||O.push(`${w}=${T}`),`#${O.join("&")}`}return`#${T}`}_getCurrentHash(){const t=window.location.hash.replace("#","");if(this._hashName){let n;return t.split("&").map(a=>a.split("=")).forEach(a=>{a[0]===this._hashName&&(n=a)}),(n&&n[1]||"").split("/")}return t.split("/")}_onHashChange(){const t=this._getCurrentHash();if(t.length>=3&&!t.some(n=>isNaN(n))){const n=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(t[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+t[2],+t[1]],zoom:+t[0],bearing:n,pitch:+(t[4]||0)}),!0}return!1}_updateHashUnthrottled(){const t=window.location.href.replace(/(#.+)?$/,this.getHashString());try{window.history.replaceState(window.history.state,null,t)}catch{}}}const Qn={linearity:.3,easing:h.bezier(0,0,.3,1)},Ko=h.extend({deceleration:2500,maxSpeed:1400},Qn),Yo=h.extend({deceleration:20,maxSpeed:1400},Qn),es=h.extend({deceleration:1e3,maxSpeed:360},Qn),Jo=h.extend({deceleration:1e3,maxSpeed:90},Qn);class ur{constructor(t){this._map=t,this.clear()}clear(){this._inertiaBuffer=[]}record(t){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:h.exported.now(),settings:t})}_drainInertiaBuffer(){const t=this._inertiaBuffer,n=h.exported.now();for(;t.length>0&&n-t[0].time>160;)t.shift()}_onMoveEnd(t){if(this._drainInertiaBuffer(),this._inertiaBuffer.length<2)return;const n={zoom:0,bearing:0,pitch:0,pan:new h.Point(0,0),pinchAround:void 0,around:void 0};for(const{settings:p}of this._inertiaBuffer)n.zoom+=p.zoomDelta||0,n.bearing+=p.bearingDelta||0,n.pitch+=p.pitchDelta||0,p.panDelta&&n.pan._add(p.panDelta),p.around&&(n.around=p.around),p.pinchAround&&(n.pinchAround=p.pinchAround);const a=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,c={};if(n.pan.mag()){const p=ts(n.pan.mag(),a,h.extend({},Ko,t||{}));c.offset=n.pan.mult(p.amount/n.pan.mag()),c.center=this._map.transform.center,Yi(c,p)}if(n.zoom){const p=ts(n.zoom,a,Yo);c.zoom=this._map.transform.zoom+p.amount,Yi(c,p)}if(n.bearing){const p=ts(n.bearing,a,es);c.bearing=this._map.transform.bearing+h.clamp(p.amount,-179,179),Yi(c,p)}if(n.pitch){const p=ts(n.pitch,a,Jo);c.pitch=this._map.transform.pitch+p.amount,Yi(c,p)}if(c.zoom||c.bearing){const p=n.pinchAround===void 0?n.around:n.pinchAround;c.around=p?this._map.unproject(p):this._map.getCenter()}return this.clear(),h.extend(c,{noMoveStart:!0})}}function Yi(o,t){(!o.duration||o.durationn.unproject(_)),y=p.reduce((_,x,T,w)=>_.add(x.div(w.length)),new h.Point(0,0));super(t,{points:p,point:y,lngLats:m,lngLat:n.unproject(y),originalEvent:a}),this._defaultPrevented=!1}}class ic extends h.Event{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(t,n,a){super(t,{originalEvent:a}),this._defaultPrevented=!1}}class rc{constructor(t,n){this._map=t,this._clickTolerance=n.clickTolerance}reset(){delete this._mousedownPos}wheel(t){return this._firePreventable(new ic(t.type,this._map,t))}mousedown(t,n){return this._mousedownPos=n,this._firePreventable(new Ht(t.type,this._map,t))}mouseup(t){this._map.fire(new Ht(t.type,this._map,t))}click(t,n){this._mousedownPos&&this._mousedownPos.dist(n)>=this._clickTolerance||this._map.fire(new Ht(t.type,this._map,t))}dblclick(t){return this._firePreventable(new Ht(t.type,this._map,t))}mouseover(t){this._map.fire(new Ht(t.type,this._map,t))}mouseout(t){this._map.fire(new Ht(t.type,this._map,t))}touchstart(t){return this._firePreventable(new qr(t.type,this._map,t))}touchmove(t){this._map.fire(new qr(t.type,this._map,t))}touchend(t){this._map.fire(new qr(t.type,this._map,t))}touchcancel(t){this._map.fire(new qr(t.type,this._map,t))}_firePreventable(t){if(this._map.fire(t),t.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class nc{constructor(t){this._map=t}reset(){this._delayContextMenu=!1,this._ignoreContextMenu=!0,delete this._contextMenuEvent}mousemove(t){this._map.fire(new Ht(t.type,this._map,t))}mousedown(){this._delayContextMenu=!0,this._ignoreContextMenu=!1}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new Ht("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}contextmenu(t){this._delayContextMenu?this._contextMenuEvent=t:this._ignoreContextMenu||this._map.fire(new Ht(t.type,this._map,t)),this._map.listens("contextmenu")&&t.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class Dn{constructor(t){this._map=t}get transform(){return this._map._requestedCameraState||this._map.transform}get center(){return{lng:this.transform.center.lng,lat:this.transform.center.lat}}get zoom(){return this.transform.zoom}get pitch(){return this.transform.pitch}get bearing(){return this.transform.bearing}unproject(t){return this.transform.pointLocation(h.Point.convert(t),this._map.terrain)}}class is{constructor(t,n){this._map=t,this._tr=new Dn(t),this._el=t.getCanvasContainer(),this._container=t.getContainer(),this._clickTolerance=n.clickTolerance||1}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(t,n){this.isEnabled()&&t.shiftKey&&t.button===0&&(Y.disableDrag(),this._startPos=this._lastPos=n,this._active=!0)}mousemoveWindow(t,n){if(!this._active)return;const a=n;if(this._lastPos.equals(a)||!this._box&&a.dist(this._startPos)p.fitScreenCoordinates(a,c,this._tr.bearing,{linear:!0})};this._fireEvent("boxzoomcancel",t)}keydown(t){this._active&&t.keyCode===27&&(this.reset(),this._fireEvent("boxzoomcancel",t))}reset(){this._active=!1,this._container.classList.remove("maplibregl-crosshair"),this._box&&(Y.remove(this._box),this._box=null),Y.enableDrag(),delete this._startPos,delete this._lastPos}_fireEvent(t,n){return this._map.fire(new h.Event(t,{originalEvent:n}))}}function dr(o,t){if(o.length!==t.length)throw new Error(`The number of touches and points are not equal - touches ${o.length}, points ${t.length}`);const n={};for(let a=0;athis.numTouches)&&(this.aborted=!0),this.aborted||(this.startTime===void 0&&(this.startTime=t.timeStamp),a.length===this.numTouches&&(this.centroid=function(c){const p=new h.Point(0,0);for(const m of c)p._add(m);return p.div(c.length)}(n),this.touches=dr(a,n)))}touchmove(t,n,a){if(this.aborted||!this.centroid)return;const c=dr(a,n);for(const p in this.touches){const m=c[p];(!m||m.dist(this.touches[p])>30)&&(this.aborted=!0)}}touchend(t,n,a){if((!this.centroid||t.timeStamp-this.startTime>500)&&(this.aborted=!0),a.length===0){const c=!this.aborted&&this.centroid;if(this.reset(),c)return c}}}class Rs{constructor(t){this.singleTap=new De(t),this.numTaps=t.numTaps,this.reset()}reset(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()}touchstart(t,n,a){this.singleTap.touchstart(t,n,a)}touchmove(t,n,a){this.singleTap.touchmove(t,n,a)}touchend(t,n,a){const c=this.singleTap.touchend(t,n,a);if(c){const p=t.timeStamp-this.lastTime<500,m=!this.lastTap||this.lastTap.dist(c)<30;if(p&&m||this.reset(),this.count++,this.lastTime=t.timeStamp,this.lastTap=c,this.count===this.numTaps)return this.reset(),c}}}class rs{constructor(t){this._tr=new Dn(t),this._zoomIn=new Rs({numTouches:1,numTaps:2}),this._zoomOut=new Rs({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(t,n,a){this._zoomIn.touchstart(t,n,a),this._zoomOut.touchstart(t,n,a)}touchmove(t,n,a){this._zoomIn.touchmove(t,n,a),this._zoomOut.touchmove(t,n,a)}touchend(t,n,a){const c=this._zoomIn.touchend(t,n,a),p=this._zoomOut.touchend(t,n,a),m=this._tr;return c?(this._active=!0,t.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:y=>y.easeTo({duration:300,zoom:m.zoom+1,around:m.unproject(c)},{originalEvent:t})}):p?(this._active=!0,t.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:y=>y.easeTo({duration:300,zoom:m.zoom-1,around:m.unproject(p)},{originalEvent:t})}):void 0}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Ar{constructor(t){this._enabled=!!t.enable,this._moveStateManager=t.moveStateManager,this._clickTolerance=t.clickTolerance||1,this._moveFunction=t.move,this._activateOnStart=!!t.activateOnStart,t.assignEvents(this),this.reset()}reset(t){this._active=!1,this._moved=!1,delete this._lastPoint,this._moveStateManager.endMove(t)}_move(...t){const n=this._moveFunction(...t);if(n.bearingDelta||n.pitchDelta||n.around||n.panDelta)return this._active=!0,n}dragStart(t,n){this.isEnabled()&&!this._lastPoint&&this._moveStateManager.isValidStartEvent(t)&&(this._moveStateManager.startMove(t),this._lastPoint=n.length?n[0]:n,this._activateOnStart&&this._lastPoint&&(this._active=!0))}dragMove(t,n){if(!this.isEnabled())return;const a=this._lastPoint;if(!a)return;if(t.preventDefault(),!this._moveStateManager.isValidMoveEvent(t))return void this.reset(t);const c=n.length?n[0]:n;return!this._moved&&c.dist(a){o.mousedown=o.dragStart,o.mousemoveWindow=o.dragMove,o.mouseup=o.dragEnd,o.contextmenu=function(t){t.preventDefault()}},el=({enable:o,clickTolerance:t,bearingDegreesPerPixelMoved:n=.8})=>{const a=new Ae({checkCorrectEvent:c=>Y.mouseButton(c)===0&&c.ctrlKey||Y.mouseButton(c)===2});return new Ar({clickTolerance:t,move:(c,p)=>({bearingDelta:(p.x-c.x)*n}),moveStateManager:a,enable:o,assignEvents:Va})},Os=({enable:o,clickTolerance:t,pitchDegreesPerPixelMoved:n=-.5})=>{const a=new Ae({checkCorrectEvent:c=>Y.mouseButton(c)===0&&c.ctrlKey||Y.mouseButton(c)===2});return new Ar({clickTolerance:t,move:(c,p)=>({pitchDelta:(p.y-c.y)*n}),moveStateManager:a,enable:o,assignEvents:Va})};class tl{constructor(t,n){this._minTouches=t.cooperativeGestures?2:1,this._clickTolerance=t.clickTolerance||1,this._map=n,this.reset()}reset(){this._active=!1,this._touches={},this._sum=new h.Point(0,0),setTimeout(()=>{this._cancelCooperativeMessage=!1},200)}touchstart(t,n,a){return this._calculateTransform(t,n,a)}touchmove(t,n,a){if(this._map._cooperativeGestures&&(this._minTouches===2&&a.length<2&&!this._cancelCooperativeMessage?this._map._onCooperativeGesture(t,!1,a.length):this._cancelCooperativeMessage||(this._cancelCooperativeMessage=!0)),this._active&&!(a.length0&&(this._active=!0);const c=dr(a,n),p=new h.Point(0,0),m=new h.Point(0,0);let y=0;for(const x in c){const T=c[x],w=this._touches[x];w&&(p._add(T),m._add(T.sub(w)),y++,c[x]=T)}if(this._touches=c,yMath.abs(o.x)}class Mi extends Us{constructor(t){super(),this._map=t}reset(){super.reset(),this._valid=void 0,delete this._firstMove,delete this._lastPoints}touchstart(t,n,a){super.touchstart(t,n,a),this._currentTouchCount=a.length}_start(t){this._lastPoints=t,ns(t[0].sub(t[1]))&&(this._valid=!1)}_move(t,n,a){if(this._map._cooperativeGestures&&this._currentTouchCount<3)return;const c=t[0].sub(this._lastPoints[0]),p=t[1].sub(this._lastPoints[1]);return this._valid=this.gestureBeginsVertically(c,p,a.timeStamp),this._valid?(this._lastPoints=t,this._active=!0,{pitchDelta:(c.y+p.y)/2*-.5}):void 0}gestureBeginsVertically(t,n,a){if(this._valid!==void 0)return this._valid;const c=t.mag()>=2,p=n.mag()>=2;if(!c&&!p)return;if(!c||!p)return this._firstMove===void 0&&(this._firstMove=a),a-this._firstMove<100&&void 0;const m=t.y>0==n.y>0;return ns(t)&&ns(n)&&m}}const jr={panStep:100,bearingStep:15,pitchStep:10};class rl{constructor(t){this._tr=new Dn(t);const n=jr;this._panStep=n.panStep,this._bearingStep=n.bearingStep,this._pitchStep=n.pitchStep,this._rotationDisabled=!1}reset(){this._active=!1}keydown(t){if(t.altKey||t.ctrlKey||t.metaKey)return;let n=0,a=0,c=0,p=0,m=0;switch(t.keyCode){case 61:case 107:case 171:case 187:n=1;break;case 189:case 109:case 173:n=-1;break;case 37:t.shiftKey?a=-1:(t.preventDefault(),p=-1);break;case 39:t.shiftKey?a=1:(t.preventDefault(),p=1);break;case 38:t.shiftKey?c=1:(t.preventDefault(),m=-1);break;case 40:t.shiftKey?c=-1:(t.preventDefault(),m=1);break;default:return}return this._rotationDisabled&&(a=0,c=0),{cameraAnimation:y=>{const _=this._tr;y.easeTo({duration:300,easeId:"keyboardHandler",easing:qa,zoom:n?Math.round(_.zoom)+n*(t.shiftKey?2:1):_.zoom,bearing:_.bearing+a*this._bearingStep,pitch:_.pitch+c*this._pitchStep,offset:[-p*this._panStep,-m*this._panStep],center:_.center},{originalEvent:t})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0}enableRotation(){this._rotationDisabled=!1}}function qa(o){return o*(2-o)}const $s=4.000244140625;class ja{constructor(t,n){this._map=t,this._tr=new Dn(t),this._el=t.getCanvasContainer(),this._handler=n,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222,h.bindAll(["_onTimeout"],this)}setZoomRate(t){this._defaultZoomRate=t}setWheelZoomRate(t){this._wheelZoomRate=t}isEnabled(){return!!this._enabled}isActive(){return!!this._active||this._finishTimeout!==void 0}isZooming(){return!!this._zooming}enable(t){this.isEnabled()||(this._enabled=!0,this._aroundCenter=t&&t.around==="center")}disable(){this.isEnabled()&&(this._enabled=!1)}wheel(t){if(!this.isEnabled())return;if(this._map._cooperativeGestures){if(!t[this._map._metaKey])return;t.preventDefault()}let n=t.deltaMode===WheelEvent.DOM_DELTA_LINE?40*t.deltaY:t.deltaY;const a=h.exported.now(),c=a-(this._lastWheelEventTime||0);this._lastWheelEventTime=a,n!==0&&n%$s==0?this._type="wheel":n!==0&&Math.abs(n)<4?this._type="trackpad":c>400?(this._type=null,this._lastValue=n,this._timeout=setTimeout(this._onTimeout,40,t)):this._type||(this._type=Math.abs(c*n)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,n+=this._lastValue)),t.shiftKey&&n&&(n/=4),this._type&&(this._lastWheelEvent=t,this._delta-=n,this._active||this._start(t)),t.preventDefault()}_onTimeout(t){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(t)}_start(t){if(!this._delta)return;this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);const n=Y.mousePos(this._el,t),a=this._tr;this._around=h.LngLat.convert(this._aroundCenter?a.center:a.unproject(n)),this._aroundPoint=a.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}renderFrame(){if(!this._frameId||(this._frameId=null,!this.isActive()))return;const t=this._tr.transform;if(this._delta!==0){const y=this._type==="wheel"&&Math.abs(this._delta)>$s?this._wheelZoomRate:this._defaultZoomRate;let _=2/(1+Math.exp(-Math.abs(this._delta*y)));this._delta<0&&_!==0&&(_=1/_);const x=typeof this._targetZoom=="number"?t.zoomScale(this._targetZoom):t.scale;this._targetZoom=Math.min(t.maxZoom,Math.max(t.minZoom,t.scaleZoom(x*_))),this._type==="wheel"&&(this._startZoom=t.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}const n=typeof this._targetZoom=="number"?this._targetZoom:t.zoom,a=this._startZoom,c=this._easing;let p,m=!1;if(this._type==="wheel"&&a&&c){const y=Math.min((h.exported.now()-this._lastWheelEventTime)/200,1),_=c(y);p=h.interpolate.number(a,n,_),y<1?this._frameId||(this._frameId=!0):m=!0}else p=n,m=!0;return this._active=!0,m&&(this._active=!1,this._finishTimeout=setTimeout(()=>{this._zooming=!1,this._handler._triggerRenderFrame(),delete this._targetZoom,delete this._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!m,zoomDelta:p-t.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}_smoothOutEasing(t){let n=h.ease;if(this._prevEase){const a=this._prevEase,c=(h.exported.now()-a.start)/a.duration,p=a.easing(c+.01)-a.easing(c),m=.27/Math.sqrt(p*p+1e-4)*.01,y=Math.sqrt(.0729-m*m);n=h.bezier(m,y,.25,1)}return this._prevEase={start:h.exported.now(),duration:t,easing:n},n}reset(){this._active=!1}}class nl{constructor(t,n){this._clickZoom=t,this._tapZoom=n}enable(){this._clickZoom.enable(),this._tapZoom.enable()}disable(){this._clickZoom.disable(),this._tapZoom.disable()}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}}class Ji{constructor(t){this._tr=new Dn(t),this.reset()}reset(){this._active=!1}dblclick(t,n){return t.preventDefault(),{cameraAnimation:a=>{a.easeTo({duration:300,zoom:this._tr.zoom+(t.shiftKey?-1:1),around:this._tr.unproject(n)},{originalEvent:t})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class kt{constructor(){this._tap=new Rs({numTouches:1,numTaps:1}),this.reset()}reset(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()}touchstart(t,n,a){this._swipePoint||(this._tapTime&&t.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?a.length>0&&(this._swipePoint=n[0],this._swipeTouch=a[0].identifier):this._tap.touchstart(t,n,a))}touchmove(t,n,a){if(this._tapTime){if(this._swipePoint){if(a[0].identifier!==this._swipeTouch)return;const c=n[0],p=c.y-this._swipePoint.y;return this._swipePoint=c,t.preventDefault(),this._active=!0,{zoomDelta:p/128}}}else this._tap.touchmove(t,n,a)}touchend(t,n,a){this._tapTime?this._swipePoint&&a.length===0&&this.reset():this._tap.touchend(t,n,a)&&(this._tapTime=t.timeStamp)}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class qs{constructor(t,n,a){this._el=t,this._mousePan=n,this._touchPan=a}enable(t){this._inertiaOptions=t||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("maplibregl-touch-drag-pan")}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("maplibregl-touch-drag-pan")}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}}class Za{constructor(t,n,a){this._pitchWithRotate=t.pitchWithRotate,this._mouseRotate=n,this._mousePitch=a}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()}}class sl{constructor(t,n,a,c){this._el=t,this._touchZoom=n,this._touchRotate=a,this._tapDragZoom=c,this._rotationDisabled=!1,this._enabled=!0}enable(t){this._touchZoom.enable(t),this._rotationDisabled||this._touchRotate.enable(t),this._tapDragZoom.enable(),this._el.classList.add("maplibregl-touch-zoom-rotate")}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("maplibregl-touch-zoom-rotate")}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}}const ss=o=>o.zoom||o.drag||o.pitch||o.rotate;class al extends h.Event{}function Ga(o){return o.panDelta&&o.panDelta.mag()||o.zoomDelta||o.bearingDelta||o.pitchDelta}class pr{constructor(t,n){this._map=t,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new ur(t),this._bearingSnap=n.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(n),h.bindAll(["handleEvent","handleWindowEvent"],this);const a=this._el;this._listeners=[[a,"touchstart",{passive:!0}],[a,"touchmove",{passive:!1}],[a,"touchend",void 0],[a,"touchcancel",void 0],[a,"mousedown",void 0],[a,"mousemove",void 0],[a,"mouseup",void 0],[document,"mousemove",{capture:!0}],[document,"mouseup",void 0],[a,"mouseover",void 0],[a,"mouseout",void 0],[a,"dblclick",void 0],[a,"click",void 0],[a,"keydown",{capture:!1}],[a,"keyup",void 0],[a,"wheel",{passive:!1}],[a,"contextmenu",void 0],[window,"blur",void 0]];for(const[c,p,m]of this._listeners)Y.addEventListener(c,p,c===document?this.handleWindowEvent:this.handleEvent,m)}destroy(){for(const[t,n,a]of this._listeners)Y.removeEventListener(t,n,t===document?this.handleWindowEvent:this.handleEvent,a)}_addDefaultHandlers(t){const n=this._map,a=n.getCanvasContainer();this._add("mapEvent",new rc(n,t));const c=n.boxZoom=new is(n,t);this._add("boxZoom",c);const p=new rs(n),m=new Ji(n);n.doubleClickZoom=new nl(m,p),this._add("tapZoom",p),this._add("clickZoom",m);const y=new kt;this._add("tapDragZoom",y);const _=n.touchPitch=new Mi(n);this._add("touchPitch",_);const x=el(t),T=Os(t);n.dragRotate=new Za(t,x,T),this._add("mouseRotate",x,["mousePitch"]),this._add("mousePitch",T,["mouseRotate"]);const w=(({enable:H,clickTolerance:se})=>{const $=new Ae({checkCorrectEvent:re=>Y.mouseButton(re)===0&&!re.ctrlKey});return new Ar({clickTolerance:se,move:(re,oe)=>({around:oe,panDelta:oe.sub(re)}),activateOnStart:!0,moveStateManager:$,enable:H,assignEvents:Va})})(t),k=new tl(t,n);n.dragPan=new qs(a,w,k),this._add("mousePan",w),this._add("touchPan",k,["touchZoom","touchRotate"]);const O=new $a,B=new Na;n.touchZoomRotate=new sl(a,B,O,y),this._add("touchRotate",O,["touchPan","touchZoom"]),this._add("touchZoom",B,["touchPan","touchRotate"]);const R=n.scrollZoom=new ja(n,this);this._add("scrollZoom",R,["mousePan"]);const q=n.keyboard=new rl(n);this._add("keyboard",q),this._add("blockableMapEvent",new nc(n));for(const H of["boxZoom","doubleClickZoom","tapDragZoom","touchPitch","dragRotate","dragPan","touchZoomRotate","scrollZoom","keyboard"])t.interactive&&t[H]&&n[H].enable(t[H])}_add(t,n,a){this._handlers.push({handlerName:t,handler:n,allowed:a}),this._handlersById[t]=n}stop(t){if(!this._updatingCamera){for(const{handler:n}of this._handlers)n.reset();this._inertia.clear(),this._fireEvents({},{},t),this._changes=[]}}isActive(){for(const{handler:t}of this._handlers)if(t.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return!!ss(this._eventsInProgress)||this.isZooming()}_blockedByActive(t,n,a){for(const c in t)if(c!==a&&(!n||n.indexOf(c)<0))return!0;return!1}handleWindowEvent(t){this.handleEvent(t,`${t.type}Window`)}_getMapTouches(t){const n=[];for(const a of t)this._el.contains(a.target)&&n.push(a);return n}handleEvent(t,n){if(t.type==="blur")return void this.stop(!0);this._updatingCamera=!0;const a=t.type==="renderFrame"?void 0:t,c={needsRenderFrame:!1},p={},m={},y=t.touches,_=y?this._getMapTouches(y):void 0,x=_?Y.touchPos(this._el,_):Y.mousePos(this._el,t);for(const{handlerName:k,handler:O,allowed:B}of this._handlers){if(!O.isEnabled())continue;let R;this._blockedByActive(m,B,k)?O.reset():O[n||t.type]&&(R=O[n||t.type](t,x,_),this.mergeHandlerResult(c,p,R,k,a),R&&R.needsRenderFrame&&this._triggerRenderFrame()),(R||O.isActive())&&(m[k]=O)}const T={};for(const k in this._previousActiveHandlers)m[k]||(T[k]=a);this._previousActiveHandlers=m,(Object.keys(T).length||Ga(c))&&(this._changes.push([c,p,T]),this._triggerRenderFrame()),(Object.keys(m).length||Ga(c))&&this._map._stop(!0),this._updatingCamera=!1;const{cameraAnimation:w}=c;w&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],w(this._map))}mergeHandlerResult(t,n,a,c,p){if(!a)return;h.extend(t,a);const m={handlerName:c,originalEvent:a.originalEvent||p};a.zoomDelta!==void 0&&(n.zoom=m),a.panDelta!==void 0&&(n.drag=m),a.pitchDelta!==void 0&&(n.pitch=m),a.bearingDelta!==void 0&&(n.rotate=m)}_applyChanges(){const t={},n={},a={};for(const[c,p,m]of this._changes)c.panDelta&&(t.panDelta=(t.panDelta||new h.Point(0,0))._add(c.panDelta)),c.zoomDelta&&(t.zoomDelta=(t.zoomDelta||0)+c.zoomDelta),c.bearingDelta&&(t.bearingDelta=(t.bearingDelta||0)+c.bearingDelta),c.pitchDelta&&(t.pitchDelta=(t.pitchDelta||0)+c.pitchDelta),c.around!==void 0&&(t.around=c.around),c.pinchAround!==void 0&&(t.pinchAround=c.pinchAround),c.noInertia&&(t.noInertia=c.noInertia),h.extend(n,p),h.extend(a,m);this._updateMapTransform(t,n,a),this._changes=[]}_updateMapTransform(t,n,a){const c=this._map,p=c._getTransformForUpdate(),m=c.terrain;if(!(Ga(t)||m&&this._terrainMovement))return this._fireEvents(n,a,!0);let{panDelta:y,zoomDelta:_,bearingDelta:x,pitchDelta:T,around:w,pinchAround:k}=t;k!==void 0&&(w=k),c._stop(!0),w=w||c.transform.centerPoint;const O=p.pointLocation(y?w.sub(y):w);x&&(p.bearing+=x),T&&(p.pitch+=T),_&&(p.zoom+=_),m?this._terrainMovement||!n.drag&&!n.zoom?n.drag&&this._terrainMovement?p.center=p.pointLocation(p.centerPoint.sub(y)):p.setLocationAtPoint(O,w):(this._terrainMovement=!0,p.freezeElevation=!0,p.setLocationAtPoint(O,w),this._map.once("moveend",()=>{p.freezeElevation=!1,this._terrainMovement=!1,p.recalculateZoom(c.terrain)})):p.setLocationAtPoint(O,w),c._applyUpdatedTransform(p),this._map._update(),t.noInertia||this._inertia.record(t),this._fireEvents(n,a,!0)}_fireEvents(t,n,a){const c=ss(this._eventsInProgress),p=ss(t),m={};for(const T in t){const{originalEvent:w}=t[T];this._eventsInProgress[T]||(m[`${T}start`]=w),this._eventsInProgress[T]=t[T]}!c&&p&&this._fireEvent("movestart",p.originalEvent);for(const T in m)this._fireEvent(T,m[T]);p&&this._fireEvent("move",p.originalEvent);for(const T in t){const{originalEvent:w}=t[T];this._fireEvent(T,w)}const y={};let _;for(const T in this._eventsInProgress){const{handlerName:w,originalEvent:k}=this._eventsInProgress[T];this._handlersById[w].isActive()||(delete this._eventsInProgress[T],_=n[w]||k,y[`${T}end`]=_)}for(const T in y)this._fireEvent(T,y[T]);const x=ss(this._eventsInProgress);if(a&&(c||p)&&!x){this._updatingCamera=!0;const T=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),w=k=>k!==0&&-this._bearingSnap{delete this._frameId,this.handleEvent(new al("renderFrame",{timeStamp:t})),this._applyChanges()})}_triggerRenderFrame(){this._frameId===void 0&&(this._frameId=this._requestFrame())}}const js={extend:(o,...t)=>h.extend(o,...t),run(o){o()},logToElement(o,t=!1,n="log"){const a=window.document.getElementById(n);a&&(t&&(a.innerHTML=""),a.innerHTML+=`
    ${o}`)}};class Fe extends h.Evented{constructor(t,n){super(),this._moving=!1,this._zooming=!1,this.transform=t,this._bearingSnap=n.bearingSnap,h.bindAll(["_renderFrameCallback"],this),this.on("moveend",()=>{delete this._requestedCameraState})}getCenter(){return new h.LngLat(this.transform.center.lng,this.transform.center.lat)}setCenter(t,n){return this.jumpTo({center:t},n)}panBy(t,n,a){return t=h.Point.convert(t).mult(-1),this.panTo(this.transform.center,h.extend({offset:t},n),a)}panTo(t,n,a){return this.easeTo(h.extend({center:t},n),a)}getZoom(){return this.transform.zoom}setZoom(t,n){return this.jumpTo({zoom:t},n),this}zoomTo(t,n,a){return this.easeTo(h.extend({zoom:t},n),a)}zoomIn(t,n){return this.zoomTo(this.getZoom()+1,t,n),this}zoomOut(t,n){return this.zoomTo(this.getZoom()-1,t,n),this}getBearing(){return this.transform.bearing}setBearing(t,n){return this.jumpTo({bearing:t},n),this}getPadding(){return this.transform.padding}setPadding(t,n){return this.jumpTo({padding:t},n),this}rotateTo(t,n,a){return this.easeTo(h.extend({bearing:t},n),a)}resetNorth(t,n){return this.rotateTo(0,h.extend({duration:1e3},t),n),this}resetNorthPitch(t,n){return this.easeTo(h.extend({bearing:0,pitch:0,duration:1e3},t),n),this}snapToNorth(t,n){return Math.abs(this.getBearing()){if(this._zooming&&(a.zoom=h.interpolate.number(c,_,me)),this._rotating&&(a.bearing=h.interpolate.number(p,x,me)),this._pitching&&(a.pitch=h.interpolate.number(m,T,me)),this._padding&&(a.interpolatePadding(y,w,me),O=a.centerPoint.add(k)),this.terrain&&!t.freezeElevation&&this._updateElevation(me),$)a.setLocationAtPoint($,re);else{const _e=a.zoomScale(a.zoom-c),ve=_>c?Math.min(2,se):Math.max(.5,se),ge=Math.pow(ve,1-me),Ce=a.unproject(q.add(H.mult(me*ge)).mult(_e));a.setLocationAtPoint(a.renderWorldCopies?Ce.wrap():Ce,O)}this._applyUpdatedTransform(a),this._fireMoveEvents(n)},me=>{this.terrain&&this._finalizeElevation(),this._afterEase(n,me)},t),this}_prepareEase(t,n,a={}){this._moving=!0,n||a.moving||this.fire(new h.Event("movestart",t)),this._zooming&&!a.zooming&&this.fire(new h.Event("zoomstart",t)),this._rotating&&!a.rotating&&this.fire(new h.Event("rotatestart",t)),this._pitching&&!a.pitching&&this.fire(new h.Event("pitchstart",t))}_prepareElevation(t){this._elevationCenter=t,this._elevationStart=this.transform.elevation,this._elevationTarget=this.transform.getElevation(t,this.terrain),this.transform.freezeElevation=!0}_updateElevation(t){const n=this.transform.getElevation(this._elevationCenter,this.terrain);if(t<1&&n!==this._elevationTarget){const a=this._elevationTarget-this._elevationStart;this._elevationStart+=t*(a-(n-(a*t+this._elevationStart))/(1-t)),this._elevationTarget=n}this.transform.elevation=h.interpolate.number(this._elevationStart,this._elevationTarget,t)}_finalizeElevation(){this.transform.freezeElevation=!1,this.transform.recalculateZoom(this.terrain)}_getTransformForUpdate(){return this.transformCameraUpdate?(this._requestedCameraState||(this._requestedCameraState=this.transform.clone()),this._requestedCameraState):this.transform}_applyUpdatedTransform(t){if(!this.transformCameraUpdate)return;const n=t.clone(),{center:a,zoom:c,pitch:p,bearing:m,elevation:y}=this.transformCameraUpdate(n);a&&(n.center=a),c!==void 0&&(n.zoom=c),p!==void 0&&(n.pitch=p),m!==void 0&&(n.bearing=m),y!==void 0&&(n.elevation=y),this.transform.apply(n)}_fireMoveEvents(t){this.fire(new h.Event("move",t)),this._zooming&&this.fire(new h.Event("zoom",t)),this._rotating&&this.fire(new h.Event("rotate",t)),this._pitching&&this.fire(new h.Event("pitch",t))}_afterEase(t,n){if(this._easeId&&n&&this._easeId===n)return;delete this._easeId;const a=this._zooming,c=this._rotating,p=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,a&&this.fire(new h.Event("zoomend",t)),c&&this.fire(new h.Event("rotateend",t)),p&&this.fire(new h.Event("pitchend",t)),this.fire(new h.Event("moveend",t))}flyTo(t,n){if(!t.essential&&h.exported.prefersReducedMotion){const ke=h.pick(t,["center","zoom","bearing","pitch","around"]);return this.jumpTo(ke,n)}this.stop(),t=h.extend({offset:[0,0],speed:1.2,curve:1.42,easing:h.ease},t);const a=this._getTransformForUpdate(),c=this.getZoom(),p=this.getBearing(),m=this.getPitch(),y=this.getPadding(),_="zoom"in t?h.clamp(+t.zoom,a.minZoom,a.maxZoom):c,x="bearing"in t?this._normalizeBearing(t.bearing,p):p,T="pitch"in t?+t.pitch:m,w="padding"in t?t.padding:a.padding,k=a.zoomScale(_-c),O=h.Point.convert(t.offset);let B=a.centerPoint.add(O);const R=a.pointLocation(B),q=h.LngLat.convert(t.center||R);this._normalizeCenter(q);const H=a.project(R),se=a.project(q).sub(H);let $=t.curve;const re=Math.max(a.width,a.height),oe=re/k,me=se.mag();if("minZoom"in t){const ke=h.clamp(Math.min(t.minZoom,c,_),a.minZoom,a.maxZoom),ut=re/a.zoomScale(ke-c);$=Math.sqrt(ut/me*2)}const _e=$*$;function ve(ke){const ut=(oe*oe-re*re+(ke?-1:1)*_e*_e*me*me)/(2*(ke?oe:re)*_e*me);return Math.log(Math.sqrt(ut*ut+1)-ut)}function ge(ke){return(Math.exp(ke)-Math.exp(-ke))/2}function Ce(ke){return(Math.exp(ke)+Math.exp(-ke))/2}const Ue=ve(0);let Ke=function(ke){return Ce(Ue)/Ce(Ue+$*ke)},Ee=function(ke){return re*((Ce(Ue)*(ge(ut=Ue+$*ke)/Ce(ut))-ge(Ue))/_e)/me;var ut},je=(ve(1)-Ue)/$;if(Math.abs(me)<1e-6||!isFinite(je)){if(Math.abs(re-oe)<1e-6)return this.easeTo(t,n);const ke=oet.maxDuration&&(t.duration=0),this._zooming=!0,this._rotating=p!==x,this._pitching=T!==m,this._padding=!a.isPaddingEqual(w),this._prepareEase(n,!1),this.terrain&&this._prepareElevation(q),this._ease(ke=>{const ut=ke*je,qt=1/Ke(ut);a.zoom=ke===1?_:c+a.scaleZoom(qt),this._rotating&&(a.bearing=h.interpolate.number(p,x,ke)),this._pitching&&(a.pitch=h.interpolate.number(m,T,ke)),this._padding&&(a.interpolatePadding(y,w,ke),B=a.centerPoint.add(O)),this.terrain&&!t.freezeElevation&&this._updateElevation(ke);const dt=ke===1?q:a.unproject(H.add(se.mult(Ee(ut))).mult(qt));a.setLocationAtPoint(a.renderWorldCopies?dt.wrap():dt,B),this._applyUpdatedTransform(a),this._fireMoveEvents(n)},()=>{this.terrain&&this._finalizeElevation(),this._afterEase(n)},t),this}isEasing(){return!!this._easeFrameId}stop(){return this._stop()}_stop(t,n){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){const a=this._onEaseEnd;delete this._onEaseEnd,a.call(this,n)}if(!t){const a=this.handlers;a&&a.stop(!1)}return this}_ease(t,n,a){a.animate===!1||a.duration===0?(t(1),n()):(this._easeStart=h.exported.now(),this._easeOptions=a,this._onEaseFrame=t,this._onEaseEnd=n,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_renderFrameCallback(){const t=Math.min((h.exported.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(t)),t<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()}_normalizeBearing(t,n){t=h.wrap(t,-180,180);const a=Math.abs(t-n);return Math.abs(t-360-n)180?-360:a<-180?360:0}queryTerrainElevation(t){return this.terrain?this.transform.getElevation(h.LngLat.convert(t),this.terrain)-this.transform.elevation:null}}class qe{constructor(t={}){this.options=t,h.bindAll(["_toggleAttribution","_updateData","_updateCompact","_updateCompactMinimize"],this)}getDefaultPosition(){return"bottom-right"}onAdd(t){return this._map=t,this._compact=this.options&&this.options.compact,this._container=Y.create("details","maplibregl-ctrl maplibregl-ctrl-attrib"),this._compactButton=Y.create("summary","maplibregl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=Y.create("div","maplibregl-ctrl-attrib-inner",this._container),this._updateAttributions(),this._updateCompact(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("terrain",this._updateData),this._map.on("resize",this._updateCompact),this._map.on("drag",this._updateCompactMinimize),this._container}onRemove(){Y.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("terrain",this._updateData),this._map.off("resize",this._updateCompact),this._map.off("drag",this._updateCompactMinimize),this._map=void 0,this._compact=void 0,this._attribHTML=void 0}_setElementTitle(t,n){const a=this._map._getUIString(`AttributionControl.${n}`);t.title=a,t.setAttribute("aria-label",a)}_toggleAttribution(){this._container.classList.contains("maplibregl-compact")&&(this._container.classList.contains("maplibregl-compact-show")?(this._container.setAttribute("open",""),this._container.classList.remove("maplibregl-compact-show")):(this._container.classList.add("maplibregl-compact-show"),this._container.removeAttribute("open")))}_updateData(t){!t||t.sourceDataType!=="metadata"&&t.sourceDataType!=="visibility"&&t.dataType!=="style"&&t.type!=="terrain"||this._updateAttributions()}_updateAttributions(){if(!this._map.style)return;let t=[];if(this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?t=t.concat(this.options.customAttribution.map(c=>typeof c!="string"?"":c)):typeof this.options.customAttribution=="string"&&t.push(this.options.customAttribution)),this._map.style.stylesheet){const c=this._map.style.stylesheet;this.styleOwner=c.owner,this.styleId=c.id}const n=this._map.style.sourceCaches;for(const c in n){const p=n[c];if(p.used||p.usedForTerrain){const m=p.getSource();m.attribution&&t.indexOf(m.attribution)<0&&t.push(m.attribution)}}t=t.filter(c=>String(c).trim()),t.sort((c,p)=>c.length-p.length),t=t.filter((c,p)=>{for(let m=p+1;m=0)return!1;return!0});const a=t.join(" | ");a!==this._attribHTML&&(this._attribHTML=a,t.length?(this._innerContainer.innerHTML=a,this._container.classList.remove("maplibregl-attrib-empty")):this._container.classList.add("maplibregl-attrib-empty"),this._updateCompact(),this._editLink=null)}_updateCompact(){this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact===!1?this._container.setAttribute("open",""):this._container.classList.contains("maplibregl-compact")||this._container.classList.contains("maplibregl-attrib-empty")||(this._container.setAttribute("open",""),this._container.classList.add("maplibregl-compact","maplibregl-compact-show")):(this._container.setAttribute("open",""),this._container.classList.contains("maplibregl-compact")&&this._container.classList.remove("maplibregl-compact","maplibregl-compact-show"))}_updateCompactMinimize(){this._container.classList.contains("maplibregl-compact")&&this._container.classList.contains("maplibregl-compact-show")&&this._container.classList.remove("maplibregl-compact-show")}}class as{constructor(t={}){this.options=t,h.bindAll(["_updateCompact"],this)}getDefaultPosition(){return"bottom-left"}onAdd(t){this._map=t,this._compact=this.options&&this.options.compact,this._container=Y.create("div","maplibregl-ctrl");const n=Y.create("a","maplibregl-ctrl-logo");return n.target="_blank",n.rel="noopener nofollow",n.href="https://maplibre.org/",n.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),n.setAttribute("rel","noopener nofollow"),this._container.appendChild(n),this._container.style.display="block",this._map.on("resize",this._updateCompact),this._updateCompact(),this._container}onRemove(){Y.remove(this._container),this._map.off("resize",this._updateCompact),this._map=void 0,this._compact=void 0}_updateCompact(){const t=this._container.children;if(t.length){const n=t[0];this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact!==!1&&n.classList.add("maplibregl-compact"):n.classList.remove("maplibregl-compact")}}}class Xa{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(t){const n=++this._id;return this._queue.push({callback:t,id:n,cancelled:!1}),n}remove(t){const n=this._currentlyRunning,a=n?this._queue.concat(n):this._queue;for(const c of a)if(c.id===t)return void(c.cancelled=!0)}run(t=0){if(this._currentlyRunning)throw new Error("Attempting to run(), but is already running.");const n=this._currentlyRunning=this._queue;this._queue=[];for(const a of n)if(!a.cancelled&&(a.callback(t),this._cleared))break;this._cleared=!1,this._currentlyRunning=!1}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}}const Wa={"AttributionControl.ToggleAttribution":"Toggle attribution","AttributionControl.MapFeedback":"Map feedback","FullscreenControl.Enter":"Enter fullscreen","FullscreenControl.Exit":"Exit fullscreen","GeolocateControl.FindMyLocation":"Find my location","GeolocateControl.LocationNotAvailable":"Location not available","LogoControl.Title":"Mapbox logo","NavigationControl.ResetBearing":"Reset bearing to north","NavigationControl.ZoomIn":"Zoom in","NavigationControl.ZoomOut":"Zoom out","ScaleControl.Feet":"ft","ScaleControl.Meters":"m","ScaleControl.Kilometers":"km","ScaleControl.Miles":"mi","ScaleControl.NauticalMiles":"nm","TerrainControl.enableTerrain":"Enable terrain","TerrainControl.disableTerrain":"Disable terrain"};var Ci=h.createLayout([{name:"a_pos3d",type:"Int16",components:3}]);class ol extends h.Evented{constructor(t){super(),this.sourceCache=t,this._tiles={},this._renderableTilesKeys=[],this._sourceTileCache={},this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.deltaZoom=1,t.usedForTerrain=!0,t.tileSize=this.tileSize*2**this.deltaZoom}destruct(){this.sourceCache.usedForTerrain=!1,this.sourceCache.tileSize=null}update(t,n){this.sourceCache.update(t,n),this._renderableTilesKeys=[];const a={};for(const c of t.coveringTiles({tileSize:this.tileSize,minzoom:this.minzoom,maxzoom:this.maxzoom,reparseOverscaled:!1,terrain:n}))a[c.key]=!0,this._renderableTilesKeys.push(c.key),this._tiles[c.key]||(c.posMatrix=new Float64Array(16),h.ortho(c.posMatrix,0,h.EXTENT,0,h.EXTENT,0,1),this._tiles[c.key]=new Yr(c,this.tileSize));for(const c in this._tiles)a[c]||delete this._tiles[c]}freeRtt(t){for(const n in this._tiles){const a=this._tiles[n];(!t||a.tileID.equals(t)||a.tileID.isChildOf(t)||t.isChildOf(a.tileID))&&(a.rtt=[])}}getRenderableTiles(){return this._renderableTilesKeys.map(t=>this.getTileByID(t))}getTileByID(t){return this._tiles[t]}getTerrainCoords(t){const n={};for(const a of this._renderableTilesKeys){const c=this._tiles[a].tileID;if(c.canonical.equals(t.canonical)){const p=t.clone();p.posMatrix=new Float64Array(16),h.ortho(p.posMatrix,0,h.EXTENT,0,h.EXTENT,0,1),n[a]=p}else if(c.canonical.isChildOf(t.canonical)){const p=t.clone();p.posMatrix=new Float64Array(16);const m=c.canonical.z-t.canonical.z,y=c.canonical.x-(c.canonical.x>>m<>m<>m;h.ortho(p.posMatrix,0,x,0,x,0,1),h.translate(p.posMatrix,p.posMatrix,[-y*x,-_*x,0]),n[a]=p}else if(t.canonical.isChildOf(c.canonical)){const p=t.clone();p.posMatrix=new Float64Array(16);const m=t.canonical.z-c.canonical.z,y=t.canonical.x-(t.canonical.x>>m<>m<>m;h.ortho(p.posMatrix,0,h.EXTENT,0,h.EXTENT,0,1),h.translate(p.posMatrix,p.posMatrix,[y*x,_*x,0]),h.scale(p.posMatrix,p.posMatrix,[1/2**m,1/2**m,0]),n[a]=p}}return n}getSourceTile(t,n){const a=this.sourceCache._source;let c=t.overscaledZ-this.deltaZoom;if(c>a.maxzoom&&(c=a.maxzoom),c=a.minzoom&&(!p||!p.dem);)p=this.sourceCache.getTileByID(t.scaledTo(c--).key);return p}tilesAfterTime(t=Date.now()){return Object.values(this._tiles).filter(n=>n.timeAdded>=t)}}class fr{constructor(t,n,a){this.painter=t,this.sourceCache=new ol(n),this.options=a,this.exaggeration=typeof a.exaggeration=="number"?a.exaggeration:1,this.qualityFactor=2,this.meshSize=128,this._demMatrixCache={},this.coordsIndex=[],this._coordsTextureSize=1024}getDEMElevation(t,n,a,c=h.EXTENT){if(!(n>=0&&n=0&&at.canonical.z&&(t.canonical.z>=c?p=t.canonical.z-c:h.warnOnce("cannot calculate elevation if elevation maxzoom > source.maxzoom"));const m=t.canonical.x-(t.canonical.x>>p<>p<>8<<4|p>>8,n[m+3]=0;const a=new h.RGBAImage({width:this._coordsTextureSize,height:this._coordsTextureSize},new Uint8Array(n.buffer)),c=new yt(t,a,t.gl.RGBA,{premultiply:!1});return c.bind(t.gl.NEAREST,t.gl.CLAMP_TO_EDGE),this._coordsTexture=c,c}pointCoordinate(t){const n=new Uint8Array(4),a=this.painter.context,c=a.gl;a.bindFramebuffer.set(this.getFramebuffer("coords").framebuffer),c.readPixels(t.x,this.painter.height/devicePixelRatio-t.y-1,1,1,c.RGBA,c.UNSIGNED_BYTE,n),a.bindFramebuffer.set(null);const p=n[0]+(n[2]>>4<<8),m=n[1]+((15&n[2])<<8),y=this.coordsIndex[255-n[3]],_=y&&this.sourceCache.getTileByID(y);if(!_)return null;const x=this._coordsTextureSize,T=(1<<_.tileID.canonical.z)*x;return new h.MercatorCoordinate((_.tileID.canonical.x*x+p)/T,(_.tileID.canonical.y*x+m)/T,this.getElevation(_.tileID,p,m,x))}getTerrainMesh(){if(this._mesh)return this._mesh;const t=this.painter.context,n=new h.Pos3dArray,a=new h.TriangleIndexArray,c=this.meshSize,p=h.EXTENT/c,m=c*c;for(let w=0;w<=c;w++)for(let k=0;k<=c;k++)n.emplaceBack(k*p,w*p,0);for(let w=0;wt.id!==n),this._recentlyUsed.push(t.id)}stampObject(t){t.stamp=++this._stamp}getOrCreateFreeObject(){for(const n of this._recentlyUsed)if(!this._objects[n].inUse)return this._objects[n];if(this._objects.length>=this._size)throw new Error("No free RenderPool available, call freeAllObjects() required!");const t=this._createObject(this._objects.length);return this._objects.push(t),t}freeObject(t){t.inUse=!1}freeAllObjects(){for(const t of this._objects)this.freeObject(t)}isFull(){return!(this._objects.length!t.inUse)===!1}}const Pr={background:!0,fill:!0,line:!0,raster:!0,hillshade:!0};class Ft{constructor(t,n){this.painter=t,this.terrain=n,this.pool=new sc(t.context,30,n.sourceCache.tileSize*n.qualityFactor)}destruct(){this.pool.destruct()}getTexture(t){return this.pool.getObjectForId(t.rtt[this._stacks.length-1].id).texture}prepareForRender(t,n){this._stacks=[],this._prevType=null,this._rttTiles=[],this._renderableTiles=this.terrain.sourceCache.getRenderableTiles(),this._renderableLayerIds=t._order.filter(a=>!t._layers[a].isHidden(n)),this._coordsDescendingInv={};for(const a in t.sourceCaches){this._coordsDescendingInv[a]={};const c=t.sourceCaches[a].getVisibleCoordinates();for(const p of c){const m=this.terrain.sourceCache.getTerrainCoords(p);for(const y in m)this._coordsDescendingInv[a][y]||(this._coordsDescendingInv[a][y]=[]),this._coordsDescendingInv[a][y].push(m[y])}}this._coordsDescendingInvStr={};for(const a of t._order){const c=t._layers[a],p=c.source;if(Pr[c.type]&&!this._coordsDescendingInvStr[p]){this._coordsDescendingInvStr[p]={};for(const m in this._coordsDescendingInv[p])this._coordsDescendingInvStr[p][m]=this._coordsDescendingInv[p][m].map(y=>y.key).sort().join()}}for(const a of this._renderableTiles)for(const c in this._coordsDescendingInvStr){const p=this._coordsDescendingInvStr[c][a.tileID.key];p&&p!==a.rttCoords[c]&&(a.rtt=[])}}renderLayer(t){if(t.isHidden(this.painter.transform.zoom))return!1;const n=t.type,a=this.painter,c=this._renderableLayerIds[this._renderableLayerIds.length-1]===t.id;if(Pr[n]&&(this._prevType&&Pr[this._prevType]||this._stacks.push([]),this._prevType=n,this._stacks[this._stacks.length-1].push(t.id),!c))return!0;if(Pr[this._prevType]||Pr[n]&&c){this._prevType=n;const p=this._stacks.length-1,m=this._stacks[p]||[];for(const y of this._renderableTiles){if(this.pool.isFull()&&(Oa(this.painter,this.terrain,this._rttTiles),this._rttTiles=[],this.pool.freeAllObjects()),this._rttTiles.push(y),y.rtt[p]){const x=this.pool.getObjectForId(y.rtt[p].id);if(x.stamp===y.rtt[p].stamp){this.pool.useObject(x);continue}}const _=this.pool.getOrCreateFreeObject();this.pool.useObject(_),this.pool.stampObject(_),y.rtt[p]={id:_.id,stamp:_.stamp},a.context.bindFramebuffer.set(_.fbo.framebuffer),a.context.clear({color:h.Color.transparent,stencil:0}),a.currentStencilSource=void 0;for(let x=0;x{o.touchstart=o.dragStart,o.touchmoveWindow=o.dragMove,o.touchend=o.dragEnd},Zs={showCompass:!0,showZoom:!0,visualizePitch:!1};class Ha{constructor(t,n,a=!1){this._clickTolerance=10;const c=t.dragRotate._mouseRotate.getClickTolerance(),p=t.dragRotate._mousePitch.getClickTolerance();this.element=n,this.mouseRotate=el({clickTolerance:c,enable:!0}),this.touchRotate=(({enable:m,clickTolerance:y,bearingDegreesPerPixelMoved:_=.8})=>{const x=new Fs;return new Ar({clickTolerance:y,move:(T,w)=>({bearingDelta:(w.x-T.x)*_}),moveStateManager:x,enable:m,assignEvents:Ln})})({clickTolerance:c,enable:!0}),this.map=t,a&&(this.mousePitch=Os({clickTolerance:p,enable:!0}),this.touchPitch=(({enable:m,clickTolerance:y,pitchDegreesPerPixelMoved:_=-.5})=>{const x=new Fs;return new Ar({clickTolerance:y,move:(T,w)=>({pitchDelta:(w.y-T.y)*_}),moveStateManager:x,enable:m,assignEvents:Ln})})({clickTolerance:p,enable:!0})),h.bindAll(["mousedown","mousemove","mouseup","touchstart","touchmove","touchend","reset"],this),Y.addEventListener(n,"mousedown",this.mousedown),Y.addEventListener(n,"touchstart",this.touchstart,{passive:!1}),Y.addEventListener(n,"touchcancel",this.reset)}startMouse(t,n){this.mouseRotate.dragStart(t,n),this.mousePitch&&this.mousePitch.dragStart(t,n),Y.disableDrag()}startTouch(t,n){this.touchRotate.dragStart(t,n),this.touchPitch&&this.touchPitch.dragStart(t,n),Y.disableDrag()}moveMouse(t,n){const a=this.map,{bearingDelta:c}=this.mouseRotate.dragMove(t,n)||{};if(c&&a.setBearing(a.getBearing()+c),this.mousePitch){const{pitchDelta:p}=this.mousePitch.dragMove(t,n)||{};p&&a.setPitch(a.getPitch()+p)}}moveTouch(t,n){const a=this.map,{bearingDelta:c}=this.touchRotate.dragMove(t,n)||{};if(c&&a.setBearing(a.getBearing()+c),this.touchPitch){const{pitchDelta:p}=this.touchPitch.dragMove(t,n)||{};p&&a.setPitch(a.getPitch()+p)}}off(){const t=this.element;Y.removeEventListener(t,"mousedown",this.mousedown),Y.removeEventListener(t,"touchstart",this.touchstart,{passive:!1}),Y.removeEventListener(window,"touchmove",this.touchmove,{passive:!1}),Y.removeEventListener(window,"touchend",this.touchend),Y.removeEventListener(t,"touchcancel",this.reset),this.offTemp()}offTemp(){Y.enableDrag(),Y.removeEventListener(window,"mousemove",this.mousemove),Y.removeEventListener(window,"mouseup",this.mouseup),Y.removeEventListener(window,"touchmove",this.touchmove,{passive:!1}),Y.removeEventListener(window,"touchend",this.touchend)}mousedown(t){this.startMouse(h.extend({},t,{ctrlKey:!0,preventDefault:()=>t.preventDefault()}),Y.mousePos(this.element,t)),Y.addEventListener(window,"mousemove",this.mousemove),Y.addEventListener(window,"mouseup",this.mouseup)}mousemove(t){this.moveMouse(t,Y.mousePos(this.element,t))}mouseup(t){this.mouseRotate.dragEnd(t),this.mousePitch&&this.mousePitch.dragEnd(t),this.offTemp()}touchstart(t){t.targetTouches.length!==1?this.reset():(this._startPos=this._lastPos=Y.touchPos(this.element,t.targetTouches)[0],this.startTouch(t,this._startPos),Y.addEventListener(window,"touchmove",this.touchmove,{passive:!1}),Y.addEventListener(window,"touchend",this.touchend))}touchmove(t){t.targetTouches.length!==1?this.reset():(this._lastPos=Y.touchPos(this.element,t.targetTouches)[0],this.moveTouch(t,this._lastPos))}touchend(t){t.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)180;){const a=n.locationPoint(o);if(a.x>=0&&a.y>=0&&a.x<=n.width&&a.y<=n.height)break;o.lng>n.center.lng?o.lng-=360:o.lng+=360}return o}const sn={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function Xs(o,t,n){const a=o.classList;for(const c in sn)a.remove(`maplibregl-${n}-anchor-${c}`);a.add(`maplibregl-${n}-anchor-${t}`)}class os extends h.Evented{constructor(t,n){if(super(),(t instanceof HTMLElement||n)&&(t=h.extend({element:t},n)),h.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress"],this),this._anchor=t&&t.anchor||"center",this._color=t&&t.color||"#3FB1CE",this._scale=t&&t.scale||1,this._draggable=t&&t.draggable||!1,this._clickTolerance=t&&t.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=t&&t.rotation||0,this._rotationAlignment=t&&t.rotationAlignment||"auto",this._pitchAlignment=t&&t.pitchAlignment&&t.pitchAlignment!=="auto"?t.pitchAlignment:this._rotationAlignment,t&&t.element)this._element=t.element,this._offset=h.Point.convert(t&&t.offset||[0,0]);else{this._defaultMarker=!0,this._element=Y.create("div"),this._element.setAttribute("aria-label","Map marker");const a=Y.createNS("http://www.w3.org/2000/svg","svg"),c=41,p=27;a.setAttributeNS(null,"display","block"),a.setAttributeNS(null,"height",`${c}px`),a.setAttributeNS(null,"width",`${p}px`),a.setAttributeNS(null,"viewBox",`0 0 ${p} ${c}`);const m=Y.createNS("http://www.w3.org/2000/svg","g");m.setAttributeNS(null,"stroke","none"),m.setAttributeNS(null,"stroke-width","1"),m.setAttributeNS(null,"fill","none"),m.setAttributeNS(null,"fill-rule","evenodd");const y=Y.createNS("http://www.w3.org/2000/svg","g");y.setAttributeNS(null,"fill-rule","nonzero");const _=Y.createNS("http://www.w3.org/2000/svg","g");_.setAttributeNS(null,"transform","translate(3.0, 29.0)"),_.setAttributeNS(null,"fill","#000000");const x=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}];for(const se of x){const $=Y.createNS("http://www.w3.org/2000/svg","ellipse");$.setAttributeNS(null,"opacity","0.04"),$.setAttributeNS(null,"cx","10.5"),$.setAttributeNS(null,"cy","5.80029008"),$.setAttributeNS(null,"rx",se.rx),$.setAttributeNS(null,"ry",se.ry),_.appendChild($)}const T=Y.createNS("http://www.w3.org/2000/svg","g");T.setAttributeNS(null,"fill",this._color);const w=Y.createNS("http://www.w3.org/2000/svg","path");w.setAttributeNS(null,"d","M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z"),T.appendChild(w);const k=Y.createNS("http://www.w3.org/2000/svg","g");k.setAttributeNS(null,"opacity","0.25"),k.setAttributeNS(null,"fill","#000000");const O=Y.createNS("http://www.w3.org/2000/svg","path");O.setAttributeNS(null,"d","M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z"),k.appendChild(O);const B=Y.createNS("http://www.w3.org/2000/svg","g");B.setAttributeNS(null,"transform","translate(6.0, 7.0)"),B.setAttributeNS(null,"fill","#FFFFFF");const R=Y.createNS("http://www.w3.org/2000/svg","g");R.setAttributeNS(null,"transform","translate(8.0, 8.0)");const q=Y.createNS("http://www.w3.org/2000/svg","circle");q.setAttributeNS(null,"fill","#000000"),q.setAttributeNS(null,"opacity","0.25"),q.setAttributeNS(null,"cx","5.5"),q.setAttributeNS(null,"cy","5.5"),q.setAttributeNS(null,"r","5.4999962");const H=Y.createNS("http://www.w3.org/2000/svg","circle");H.setAttributeNS(null,"fill","#FFFFFF"),H.setAttributeNS(null,"cx","5.5"),H.setAttributeNS(null,"cy","5.5"),H.setAttributeNS(null,"r","5.4999962"),R.appendChild(q),R.appendChild(H),y.appendChild(_),y.appendChild(T),y.appendChild(k),y.appendChild(B),y.appendChild(R),a.appendChild(y),a.setAttributeNS(null,"height",c*this._scale+"px"),a.setAttributeNS(null,"width",p*this._scale+"px"),this._element.appendChild(a),this._offset=h.Point.convert(t&&t.offset||[0,-14])}this._element.classList.add("maplibregl-marker"),this._element.addEventListener("dragstart",a=>{a.preventDefault()}),this._element.addEventListener("mousedown",a=>{a.preventDefault()}),Xs(this._element,this._anchor,"marker"),this._popup=null}addTo(t){return this.remove(),this._map=t,t.getCanvasContainer().appendChild(this._element),t.on("move",this._update),t.on("moveend",this._update),this.setDraggable(this._draggable),this._update(),this._map.on("click",this._onMapClick),this}remove(){return this._opacityTimeout&&(clearTimeout(this._opacityTimeout),delete this._opacityTimeout),this._map&&(this._map.off("click",this._onMapClick),this._map.off("move",this._update),this._map.off("moveend",this._update),this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler),this._map.off("mouseup",this._onUp),this._map.off("touchend",this._onUp),this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),delete this._map),Y.remove(this._element),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}setLngLat(t){return this._lngLat=h.LngLat.convert(t),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(),this}getElement(){return this._element}setPopup(t){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),t){if(!("offset"in t.options)){const c=Math.sqrt(Math.pow(13.5,2)/2);t.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-38.1],"bottom-left":[c,-1*(38.1-13.5+c)],"bottom-right":[-c,-1*(38.1-13.5+c)],left:[13.5,-1*(38.1-13.5)],right:[-13.5,-1*(38.1-13.5)]}:this._offset}this._popup=t,this._lngLat&&this._popup.setLngLat(this._lngLat),this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress)}return this}_onKeyPress(t){const n=t.code,a=t.charCode||t.keyCode;n!=="Space"&&n!=="Enter"&&a!==32&&a!==13||this.togglePopup()}_onMapClick(t){const n=t.originalEvent.target,a=this._element;this._popup&&(n===a||a.contains(n))&&this.togglePopup()}getPopup(){return this._popup}togglePopup(){const t=this._popup;return t?(t.isOpen()?t.remove():t.addTo(this._map),this):this}_update(t){if(!this._map)return;this._map.transform.renderWorldCopies&&(this._lngLat=Gs(this._lngLat,this._pos,this._map.transform)),this._pos=this._map.project(this._lngLat)._add(this._offset);let n="";this._rotationAlignment==="viewport"||this._rotationAlignment==="auto"?n=`rotateZ(${this._rotation}deg)`:this._rotationAlignment==="map"&&(n=`rotateZ(${this._rotation-this._map.getBearing()}deg)`);let a="";this._pitchAlignment==="viewport"||this._pitchAlignment==="auto"?a="rotateX(0deg)":this._pitchAlignment==="map"&&(a=`rotateX(${this._map.getPitch()}deg)`),t&&t.type!=="moveend"||(this._pos=this._pos.round()),Y.setTransform(this._element,`${sn[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${a} ${n}`),this._map.terrain&&!this._opacityTimeout&&(this._opacityTimeout=setTimeout(()=>{const c=this._map.unproject(this._pos),p=40075016686e-3*Math.abs(Math.cos(this._lngLat.lat*Math.PI/180))/Math.pow(2,this._map.transform.tileZoom+8);this._element.style.opacity=c.distanceTo(this._lngLat)>20*p?"0.2":"1.0",this._opacityTimeout=null},100))}getOffset(){return this._offset}setOffset(t){return this._offset=h.Point.convert(t),this._update(),this}_onMove(t){if(!this._isDragging){const n=this._clickTolerance||this._map._clickTolerance;this._isDragging=t.point.dist(this._pointerdownPos)>=n}this._isDragging&&(this._pos=t.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new h.Event("dragstart"))),this.fire(new h.Event("drag")))}_onUp(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new h.Event("dragend")),this._state="inactive"}_addDragHandler(t){this._element.contains(t.originalEvent.target)&&(t.preventDefault(),this._positionDelta=t.point.sub(this._pos).add(this._offset),this._pointerdownPos=t.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))}setDraggable(t){return this._draggable=!!t,this._map&&(t?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this}isDraggable(){return this._draggable}setRotation(t){return this._rotation=t||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(t){return this._rotationAlignment=t||"auto",this._update(),this}getRotationAlignment(){return this._rotationAlignment}setPitchAlignment(t){return this._pitchAlignment=t&&t!=="auto"?t:this._rotationAlignment,this._update(),this}getPitchAlignment(){return this._pitchAlignment}}const Ka={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0};let Bn=0,an=!1;const Ya={maxWidth:100,unit:"metric"};function Ws(o,t,n){const a=n&&n.maxWidth||100,c=o._container.clientHeight/2,p=o.unproject([0,c]),m=o.unproject([a,c]),y=p.distanceTo(m);if(n&&n.unit==="imperial"){const _=3.2808*y;_>5280?on(t,a,_/5280,o._getUIString("ScaleControl.Miles")):on(t,a,_,o._getUIString("ScaleControl.Feet"))}else n&&n.unit==="nautical"?on(t,a,y/1852,o._getUIString("ScaleControl.NauticalMiles")):y>=1e3?on(t,a,y/1e3,o._getUIString("ScaleControl.Kilometers")):on(t,a,y,o._getUIString("ScaleControl.Meters"))}function on(o,t,n,a){const c=function(p){const m=Math.pow(10,`${Math.floor(p)}`.length-1);let y=p/m;return y=y>=10?10:y>=5?5:y>=3?3:y>=2?2:y>=1?1:function(_){const x=Math.pow(10,Math.ceil(-Math.log(_)/Math.LN10));return Math.round(_*x)/x}(y),m*y}(n);o.style.width=t*(c/n)+"px",o.innerHTML=`${c} ${a}`}const Hs={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},Ja=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", ");function Ks(o){if(o){if(typeof o=="number"){const t=Math.round(Math.sqrt(.5*Math.pow(o,2)));return{center:new h.Point(0,0),top:new h.Point(0,o),"top-left":new h.Point(t,t),"top-right":new h.Point(-t,t),bottom:new h.Point(0,-o),"bottom-left":new h.Point(t,-t),"bottom-right":new h.Point(-t,-t),left:new h.Point(o,0),right:new h.Point(-o,0)}}if(o instanceof h.Point||Array.isArray(o)){const t=h.Point.convert(o);return{center:t,top:t,"top-left":t,"top-right":t,bottom:t,"bottom-left":t,"bottom-right":t,left:t,right:t}}return{center:h.Point.convert(o.center||[0,0]),top:h.Point.convert(o.top||[0,0]),"top-left":h.Point.convert(o["top-left"]||[0,0]),"top-right":h.Point.convert(o["top-right"]||[0,0]),bottom:h.Point.convert(o.bottom||[0,0]),"bottom-left":h.Point.convert(o["bottom-left"]||[0,0]),"bottom-right":h.Point.convert(o["bottom-right"]||[0,0]),left:h.Point.convert(o.left||[0,0]),right:h.Point.convert(o.right||[0,0])}}return Ks(new h.Point(0,0))}const Ys=ce,Js={setRTLTextPlugin:h.setRTLTextPlugin,getRTLTextPluginStatus:h.getRTLTextPluginStatus,Map:class extends Fe{constructor(o){var t;if(h.PerformanceUtils.mark(h.PerformanceMarkers.create),(o=h.extend({},ll,o)).minZoom!=null&&o.maxZoom!=null&&o.minZoom>o.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(o.minPitch!=null&&o.maxPitch!=null&&o.minPitch>o.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(o.minPitch!=null&&o.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(o.maxPitch!=null&&o.maxPitch>85)throw new Error("maxPitch must be less than or equal to 85");if(super(new Bs(o.minZoom,o.maxZoom,o.minPitch,o.maxPitch,o.renderWorldCopies),{bearingSnap:o.bearingSnap}),this._interactive=o.interactive,this._cooperativeGestures=o.cooperativeGestures,this._metaKey=navigator.platform.indexOf("Mac")===0?"metaKey":"ctrlKey",this._maxTileCacheSize=o.maxTileCacheSize,this._maxTileCacheZoomLevels=o.maxTileCacheZoomLevels,this._failIfMajorPerformanceCaveat=o.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=o.preserveDrawingBuffer,this._antialias=o.antialias,this._trackResize=o.trackResize,this._bearingSnap=o.bearingSnap,this._refreshExpiredTiles=o.refreshExpiredTiles,this._fadeDuration=o.fadeDuration,this._crossSourceCollisions=o.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=o.collectResourceTiming,this._renderTaskQueue=new Xa,this._controls=[],this._mapId=h.uniqueId(),this._locale=h.extend({},Wa,o.locale),this._clickTolerance=o.clickTolerance,this._pixelRatio=(t=o.pixelRatio)!==null&&t!==void 0?t:devicePixelRatio,this.transformCameraUpdate=o.transformCameraUpdate,this._imageQueueHandle=Bt.addThrottleControl(()=>this.isMoving()),this._requestManager=new pt(o.transformRequest),typeof o.container=="string"){if(this._container=document.getElementById(o.container),!this._container)throw new Error(`Container '${o.container}' not found.`)}else{if(!(o.container instanceof HTMLElement))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=o.container}if(o.maxBounds&&this.setMaxBounds(o.maxBounds),h.bindAll(["_onWindowOnline","_onMapScroll","_cooperativeGesturesOnWheel","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),this.on("move",()=>this._update(!1)),this.on("moveend",()=>this._update(!1)),this.on("zoom",()=>this._update(!0)),this.on("terrain",()=>{this.painter.terrainFacilitator.dirty=!0,this._update(!0)}),this.once("idle",()=>{this._idleTriggered=!0}),typeof window<"u"){addEventListener("online",this._onWindowOnline,!1);let n=!1;this._resizeObserver=new ResizeObserver(a=>{n?this._trackResize&&this.resize(a)._update():n=!0}),this._resizeObserver.observe(this._container)}this.handlers=new pr(this,o),this._cooperativeGestures&&this._setupCooperativeGestures(),this._hash=o.hash&&new Ho(typeof o.hash=="string"&&o.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:o.center,zoom:o.zoom,bearing:o.bearing,pitch:o.pitch}),o.bounds&&(this.resize(),this.fitBounds(o.bounds,h.extend({},o.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=o.localIdeographFontFamily,this._validateStyle=o.validateStyle,o.style&&this.setStyle(o.style,{localIdeographFontFamily:o.localIdeographFontFamily}),o.attributionControl&&this.addControl(new qe({customAttribution:o.customAttribution})),o.maplibreLogo&&this.addControl(new as,o.logoPosition),this.on("style.load",()=>{this.transform.unmodified&&this.jumpTo(this.style.stylesheet)}),this.on("data",n=>{this._update(n.dataType==="style"),this.fire(new h.Event(`${n.dataType}data`,n))}),this.on("dataloading",n=>{this.fire(new h.Event(`${n.dataType}dataloading`,n))}),this.on("dataabort",n=>{this.fire(new h.Event("sourcedataabort",n))})}_getMapId(){return this._mapId}addControl(o,t){if(t===void 0&&(t=o.getDefaultPosition?o.getDefaultPosition():"top-right"),!o||!o.onAdd)return this.fire(new h.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));const n=o.onAdd(this);this._controls.push(o);const a=this._controlPositions[t];return t.indexOf("bottom")!==-1?a.insertBefore(n,a.firstChild):a.appendChild(n),this}removeControl(o){if(!o||!o.onRemove)return this.fire(new h.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));const t=this._controls.indexOf(o);return t>-1&&this._controls.splice(t,1),o.onRemove(this),this}hasControl(o){return this._controls.indexOf(o)>-1}calculateCameraOptionsFromTo(o,t,n,a){return a==null&&this.terrain&&(a=this.transform.getElevation(n,this.terrain)),super.calculateCameraOptionsFromTo(o,t,n,a)}resize(o){var t;const n=this._containerDimensions(),a=n[0],c=n[1];this._resizeCanvas(a,c,this.getPixelRatio()),this.transform.resize(a,c),(t=this._requestedCameraState)===null||t===void 0||t.resize(a,c),this.painter.resize(a,c,this.getPixelRatio());const p=!this._moving;return p&&(this.stop(),this.fire(new h.Event("movestart",o)).fire(new h.Event("move",o))),this.fire(new h.Event("resize",o)),p&&this.fire(new h.Event("moveend",o)),this}getPixelRatio(){return this._pixelRatio}setPixelRatio(o){const[t,n]=this._containerDimensions();this._pixelRatio=o,this._resizeCanvas(t,n,o),this.painter.resize(t,n,o)}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()}setMaxBounds(o){return this.transform.setMaxBounds(hi.convert(o)),this._update()}setMinZoom(o){if((o=o??-2)>=-2&&o<=this.transform.maxZoom)return this.transform.minZoom=o,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=o,this._update(),this.getZoom()>o&&this.setZoom(o),this;throw new Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(o){if((o=o??0)<0)throw new Error("minPitch must be greater than or equal to 0");if(o>=0&&o<=this.transform.maxPitch)return this.transform.minPitch=o,this._update(),this.getPitch()85)throw new Error("maxPitch must be less than or equal to 85");if(o>=this.transform.minPitch)return this.transform.maxPitch=o,this._update(),this.getPitch()>o&&this.setPitch(o),this;throw new Error("maxPitch must be greater than the current minPitch")}getMaxPitch(){return this.transform.maxPitch}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(o){return this.transform.renderWorldCopies=o,this._update()}getCooperativeGestures(){return this._cooperativeGestures}setCooperativeGestures(o){return this._cooperativeGestures=o,this._cooperativeGestures?this._setupCooperativeGestures():this._destroyCooperativeGestures(),this}project(o){return this.transform.locationPoint(h.LngLat.convert(o),this.style&&this.terrain)}unproject(o){return this.transform.pointLocation(h.Point.convert(o),this.terrain)}isMoving(){var o;return this._moving||((o=this.handlers)===null||o===void 0?void 0:o.isMoving())}isZooming(){var o;return this._zooming||((o=this.handlers)===null||o===void 0?void 0:o.isZooming())}isRotating(){var o;return this._rotating||((o=this.handlers)===null||o===void 0?void 0:o.isRotating())}_createDelegatedListener(o,t,n){if(o==="mouseenter"||o==="mouseover"){let a=!1;return{layer:t,listener:n,delegates:{mousemove:p=>{const m=this.getLayer(t)?this.queryRenderedFeatures(p.point,{layers:[t]}):[];m.length?a||(a=!0,n.call(this,new Ht(o,this,p.originalEvent,{features:m}))):a=!1},mouseout:()=>{a=!1}}}}if(o==="mouseleave"||o==="mouseout"){let a=!1;return{layer:t,listener:n,delegates:{mousemove:m=>{(this.getLayer(t)?this.queryRenderedFeatures(m.point,{layers:[t]}):[]).length?a=!0:a&&(a=!1,n.call(this,new Ht(o,this,m.originalEvent)))},mouseout:m=>{a&&(a=!1,n.call(this,new Ht(o,this,m.originalEvent)))}}}}{const a=c=>{const p=this.getLayer(t)?this.queryRenderedFeatures(c.point,{layers:[t]}):[];p.length&&(c.features=p,n.call(this,c),delete c.features)};return{layer:t,listener:n,delegates:{[o]:a}}}}on(o,t,n){if(n===void 0)return super.on(o,t);const a=this._createDelegatedListener(o,t,n);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[o]=this._delegatedListeners[o]||[],this._delegatedListeners[o].push(a);for(const c in a.delegates)this.on(c,a.delegates[c]);return this}once(o,t,n){if(n===void 0)return super.once(o,t);const a=this._createDelegatedListener(o,t,n);for(const c in a.delegates)this.once(c,a.delegates[c]);return this}off(o,t,n){return n===void 0?super.off(o,t):(this._delegatedListeners&&this._delegatedListeners[o]&&(a=>{const c=this._delegatedListeners[o];for(let p=0;pthis._updateStyle(o,t));const n=this.style&&t.transformStyle?this.style.serialize():void 0;return this.style&&(this.style.setEventedParent(null),this.style._remove(!o)),o?(this.style=new pi(this,t||{}),this.style.setEventedParent(this,{style:this.style}),typeof o=="string"?this.style.loadURL(o,t,n):this.style.loadJSON(o,t,n),this):(delete this.style,this)}_lazyInitEmptyStyle(){this.style||(this.style=new pi(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}_diffStyle(o,t){if(typeof o=="string"){const n=this._requestManager.transformRequest(o,et.Style);h.getJSON(n,(a,c)=>{a?this.fire(new h.ErrorEvent(a)):c&&this._updateDiff(c,t)})}else typeof o=="object"&&this._updateDiff(o,t)}_updateDiff(o,t){try{this.style.setState(o,t)&&this._update(!0)}catch(n){h.warnOnce(`Unable to perform style diff: ${n.message||n.error||n}. Rebuilding the style from scratch.`),this._updateStyle(o,t)}}getStyle(){if(this.style)return this.style.serialize()}isStyleLoaded(){return this.style?this.style.loaded():h.warnOnce("There is no style added to the map.")}addSource(o,t){return this._lazyInitEmptyStyle(),this.style.addSource(o,t),this._update(!0)}isSourceLoaded(o){const t=this.style&&this.style.sourceCaches[o];if(t!==void 0)return t.loaded();this.fire(new h.ErrorEvent(new Error(`There is no source with ID '${o}'`)))}setTerrain(o){if(this.style._checkLoaded(),this._terrainDataCallback&&this.style.off("data",this._terrainDataCallback),o){const t=this.style.sourceCaches[o.source];if(!t)throw new Error(`cannot load terrain, because there exists no source with ID: ${o.source}`);for(const n in this.style._layers){const a=this.style._layers[n];a.type==="hillshade"&&a.source===o.source&&h.warnOnce("You are using the same source for a hillshade layer and for 3D terrain. Please consider using two separate sources to improve rendering quality.")}this.terrain=new fr(this.painter,t,o),this.painter.renderToTexture=new Ft(this.painter,this.terrain),this.transform.updateElevation(this.terrain),this._terrainDataCallback=n=>{n.dataType==="style"?this.terrain.sourceCache.freeRtt():n.dataType==="source"&&n.tile&&(n.sourceId===o.source&&this.transform.updateElevation(this.terrain),this.terrain.sourceCache.freeRtt(n.tile.tileID))},this.style.on("data",this._terrainDataCallback)}else this.terrain&&this.terrain.sourceCache.destruct(),this.terrain=null,this.painter.renderToTexture&&this.painter.renderToTexture.destruct(),this.painter.renderToTexture=null,this.transform.updateElevation(this.terrain);return this.fire(new h.Event("terrain",{terrain:o})),this}getTerrain(){return this.terrain&&this.terrain.options}areTilesLoaded(){const o=this.style&&this.style.sourceCaches;for(const t in o){const n=o[t]._tiles;for(const a in n){const c=n[a];if(c.state!=="loaded"&&c.state!=="errored")return!1}}return!0}addSourceType(o,t,n){return this._lazyInitEmptyStyle(),this.style.addSourceType(o,t,n)}removeSource(o){return this.style.removeSource(o),this._update(!0)}getSource(o){return this.style.getSource(o)}addImage(o,t,{pixelRatio:n=1,sdf:a=!1,stretchX:c,stretchY:p,content:m}={}){if(this._lazyInitEmptyStyle(),t instanceof HTMLImageElement||h.isImageBitmap(t)){const{width:y,height:_,data:x}=h.exported.getImageData(t);this.style.addImage(o,{data:new h.RGBAImage({width:y,height:_},x),pixelRatio:n,stretchX:c,stretchY:p,content:m,sdf:a,version:0})}else{if(t.width===void 0||t.height===void 0)return this.fire(new h.ErrorEvent(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));{const{width:y,height:_,data:x}=t,T=t;this.style.addImage(o,{data:new h.RGBAImage({width:y,height:_},new Uint8Array(x)),pixelRatio:n,stretchX:c,stretchY:p,content:m,sdf:a,version:0,userImage:T}),T.onAdd&&T.onAdd(this,o)}}}updateImage(o,t){const n=this.style.getImage(o);if(!n)return this.fire(new h.ErrorEvent(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));const a=t instanceof HTMLImageElement||h.isImageBitmap(t)?h.exported.getImageData(t):t,{width:c,height:p,data:m}=a;if(c===void 0||p===void 0)return this.fire(new h.ErrorEvent(new Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));if(c!==n.data.width||p!==n.data.height)return this.fire(new h.ErrorEvent(new Error("The width and height of the updated image must be that same as the previous version of the image")));const y=!(t instanceof HTMLImageElement||h.isImageBitmap(t));n.data.replace(m,y),this.style.updateImage(o,n)}getImage(o){return this.style.getImage(o)}hasImage(o){return o?!!this.style.getImage(o):(this.fire(new h.ErrorEvent(new Error("Missing required image id"))),!1)}removeImage(o){this.style.removeImage(o)}loadImage(o,t){Bt.getImage(this._requestManager.transformRequest(o,et.Image),t)}listImages(){return this.style.listImages()}addLayer(o,t){return this._lazyInitEmptyStyle(),this.style.addLayer(o,t),this._update(!0)}moveLayer(o,t){return this.style.moveLayer(o,t),this._update(!0)}removeLayer(o){return this.style.removeLayer(o),this._update(!0)}getLayer(o){return this.style.getLayer(o)}setLayerZoomRange(o,t,n){return this.style.setLayerZoomRange(o,t,n),this._update(!0)}setFilter(o,t,n={}){return this.style.setFilter(o,t,n),this._update(!0)}getFilter(o){return this.style.getFilter(o)}setPaintProperty(o,t,n,a={}){return this.style.setPaintProperty(o,t,n,a),this._update(!0)}getPaintProperty(o,t){return this.style.getPaintProperty(o,t)}setLayoutProperty(o,t,n,a={}){return this.style.setLayoutProperty(o,t,n,a),this._update(!0)}getLayoutProperty(o,t){return this.style.getLayoutProperty(o,t)}setGlyphs(o,t={}){return this._lazyInitEmptyStyle(),this.style.setGlyphs(o,t),this._update(!0)}getGlyphs(){return this.style.getGlyphsUrl()}addSprite(o,t,n={}){return this._lazyInitEmptyStyle(),this.style.addSprite(o,t,n,a=>{a||this._update(!0)}),this}removeSprite(o){return this._lazyInitEmptyStyle(),this.style.removeSprite(o),this._update(!0)}getSprite(){return this.style.getSprite()}setSprite(o,t={}){return this._lazyInitEmptyStyle(),this.style.setSprite(o,t,n=>{n||this._update(!0)}),this}setLight(o,t={}){return this._lazyInitEmptyStyle(),this.style.setLight(o,t),this._update(!0)}getLight(){return this.style.getLight()}setFeatureState(o,t){return this.style.setFeatureState(o,t),this._update()}removeFeatureState(o,t){return this.style.removeFeatureState(o,t),this._update()}getFeatureState(o){return this.style.getFeatureState(o)}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}_containerDimensions(){let o=0,t=0;return this._container&&(o=this._container.clientWidth||400,t=this._container.clientHeight||300),[o,t]}_setupContainer(){const o=this._container;o.classList.add("maplibregl-map");const t=this._canvasContainer=Y.create("div","maplibregl-canvas-container",o);this._interactive&&t.classList.add("maplibregl-interactive"),this._canvas=Y.create("canvas","maplibregl-canvas",t),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex","0"),this._canvas.setAttribute("aria-label","Map"),this._canvas.setAttribute("role","region");const n=this._containerDimensions();this._resizeCanvas(n[0],n[1],this.getPixelRatio());const a=this._controlContainer=Y.create("div","maplibregl-control-container",o),c=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach(p=>{c[p]=Y.create("div",`maplibregl-ctrl-${p} `,a)}),this._container.addEventListener("scroll",this._onMapScroll,!1)}_cooperativeGesturesOnWheel(o){this._onCooperativeGesture(o,o[this._metaKey],1)}_setupCooperativeGestures(){this._cooperativeGesturesScreen=Y.create("div","maplibregl-cooperative-gesture-screen",this._container);let o=typeof this._cooperativeGestures!="boolean"&&this._cooperativeGestures.windowsHelpText?this._cooperativeGestures.windowsHelpText:"Use Ctrl + scroll to zoom the map";navigator.platform.indexOf("Mac")===0&&(o=typeof this._cooperativeGestures!="boolean"&&this._cooperativeGestures.macHelpText?this._cooperativeGestures.macHelpText:"Use ⌘ + scroll to zoom the map"),this._cooperativeGesturesScreen.innerHTML=` -
    ${o}
    -
    ${typeof this._cooperativeGestures!="boolean"&&this._cooperativeGestures.mobileHelpText?this._cooperativeGestures.mobileHelpText:"Use two fingers to move the map"}
    - `,this._canvasContainer.addEventListener("wheel",this._cooperativeGesturesOnWheel,!1),this._canvasContainer.classList.add("maplibregl-cooperative-gestures")}_destroyCooperativeGestures(){Y.remove(this._cooperativeGesturesScreen),this._canvasContainer.removeEventListener("wheel",this._cooperativeGesturesOnWheel,!1),this._canvasContainer.classList.remove("maplibregl-cooperative-gestures")}_resizeCanvas(o,t,n){this._canvas.width=n*o,this._canvas.height=n*t,this._canvas.style.width=`${o}px`,this._canvas.style.height=`${t}px`}_setupPainter(){const o={alpha:!0,stencil:!0,depth:!0,failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1};let t=null;this._canvas.addEventListener("webglcontextcreationerror",a=>{t={requestedAttributes:o},a&&(t.statusMessage=a.statusMessage,t.type=a.type)},{once:!0});const n=this._canvas.getContext("webgl2",o)||this._canvas.getContext("webgl",o);if(!n){const a="Failed to initialize WebGL";throw t?(t.message=a,new Error(JSON.stringify(t))):new Error(a)}this.painter=new Wo(n,this.transform),Ne.testSupport(n)}_contextLost(o){o.preventDefault(),this._frame&&(this._frame.cancel(),this._frame=null),this.fire(new h.Event("webglcontextlost",{originalEvent:o}))}_contextRestored(o){this._setupPainter(),this.resize(),this._update(),this.fire(new h.Event("webglcontextrestored",{originalEvent:o}))}_onMapScroll(o){if(o.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1}_onCooperativeGesture(o,t,n){return!t&&n<2&&(this._cooperativeGesturesScreen.classList.add("maplibregl-show"),setTimeout(()=>{this._cooperativeGesturesScreen.classList.remove("maplibregl-show")},100)),!1}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(o){return this.style&&this.style._loaded?(this._styleDirty=this._styleDirty||o,this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(o){return this._update(),this._renderTaskQueue.add(o)}_cancelRenderFrame(o){this._renderTaskQueue.remove(o)}_render(o){const t=this._idleTriggered?this._fadeDuration:0;if(this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(o),this._removed)return;let n=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;const c=this.transform.zoom,p=h.exported.now();this.style.zoomHistory.update(c,p);const m=new h.EvaluationParameters(c,{now:p,fadeDuration:t,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),y=m.crossFadingFactor();y===1&&y===this._crossFadingFactor||(n=!0,this._crossFadingFactor=y),this.style.update(m)}this.style&&this._sourcesDirty&&(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this.terrain&&this.terrain.sourceCache.update(this.transform,this.terrain),this.transform.updateElevation(this.terrain),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,t,this._crossSourceCollisions),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:t,showPadding:this.showPadding}),this.fire(new h.Event("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,h.PerformanceUtils.mark(h.PerformanceMarkers.load),this.fire(new h.Event("load"))),this.style&&(this.style.hasTransitions()||n)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles();const a=this._sourcesDirty||this._styleDirty||this._placementDirty;return a||this._repaint?this.triggerRepaint():!this.isMoving()&&this.loaded()&&this.fire(new h.Event("idle")),!this._loaded||this._fullyLoaded||a||(this._fullyLoaded=!0,h.PerformanceUtils.mark(h.PerformanceMarkers.fullLoad)),this}redraw(){return this.style&&(this._frame&&(this._frame.cancel(),this._frame=null),this._render(0)),this}remove(){var o;this._hash&&this._hash.remove();for(const n of this._controls)n.onRemove(this);this._controls=[],this._frame&&(this._frame.cancel(),this._frame=null),this._renderTaskQueue.clear(),this.painter.destroy(),this.handlers.destroy(),delete this.handlers,this.setStyle(null),typeof window<"u"&&removeEventListener("online",this._onWindowOnline,!1),Bt.removeThrottleControl(this._imageQueueHandle),(o=this._resizeObserver)===null||o===void 0||o.disconnect();const t=this.painter.context.gl.getExtension("WEBGL_lose_context");t&&t.loseContext(),this._canvas.removeEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.removeEventListener("webglcontextlost",this._contextLost,!1),Y.remove(this._canvasContainer),Y.remove(this._controlContainer),this._cooperativeGestures&&this._destroyCooperativeGestures(),this._container.classList.remove("maplibregl-map"),h.PerformanceUtils.clearMetrics(),this._removed=!0,this.fire(new h.Event("remove"))}triggerRepaint(){this.style&&!this._frame&&(this._frame=h.exported.frame(o=>{h.PerformanceUtils.frame(o),this._frame=null,this._render(o)}))}_onWindowOnline(){this._update()}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(o){this._showTileBoundaries!==o&&(this._showTileBoundaries=o,this._update())}get showPadding(){return!!this._showPadding}set showPadding(o){this._showPadding!==o&&(this._showPadding=o,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(o){this._showCollisionBoxes!==o&&(this._showCollisionBoxes=o,o?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(o){this._showOverdrawInspector!==o&&(this._showOverdrawInspector=o,this._update())}get repaint(){return!!this._repaint}set repaint(o){this._repaint!==o&&(this._repaint=o,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(o){this._vertices=o,this._update()}get version(){return Kt}getCameraTargetElevation(){return this.transform.elevation}},NavigationControl:class{constructor(o){this.options=h.extend({},Zs,o),this._container=Y.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._container.addEventListener("contextmenu",t=>t.preventDefault()),this.options.showZoom&&(h.bindAll(["_setButtonTitle","_updateZoomButtons"],this),this._zoomInButton=this._createButton("maplibregl-ctrl-zoom-in",t=>this._map.zoomIn({},{originalEvent:t})),Y.create("span","maplibregl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("maplibregl-ctrl-zoom-out",t=>this._map.zoomOut({},{originalEvent:t})),Y.create("span","maplibregl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(h.bindAll(["_rotateCompassArrow"],this),this._compass=this._createButton("maplibregl-ctrl-compass",t=>{this.options.visualizePitch?this._map.resetNorthPitch({},{originalEvent:t}):this._map.resetNorth({},{originalEvent:t})}),this._compassIcon=Y.create("span","maplibregl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}_updateZoomButtons(){const o=this._map.getZoom(),t=o===this._map.getMaxZoom(),n=o===this._map.getMinZoom();this._zoomInButton.disabled=t,this._zoomOutButton.disabled=n,this._zoomInButton.setAttribute("aria-disabled",t.toString()),this._zoomOutButton.setAttribute("aria-disabled",n.toString())}_rotateCompassArrow(){const o=this.options.visualizePitch?`scale(${1/Math.pow(Math.cos(this._map.transform.pitch*(Math.PI/180)),.5)}) rotateX(${this._map.transform.pitch}deg) rotateZ(${this._map.transform.angle*(180/Math.PI)}deg)`:`rotate(${this._map.transform.angle*(180/Math.PI)}deg)`;this._compassIcon.style.transform=o}onAdd(o){return this._map=o,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),this._map.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&this._map.on("pitch",this._rotateCompassArrow),this._map.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new Ha(this._map,this._compass,this.options.visualizePitch)),this._container}onRemove(){Y.remove(this._container),this.options.showZoom&&this._map.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&this._map.off("pitch",this._rotateCompassArrow),this._map.off("rotate",this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map}_createButton(o,t){const n=Y.create("button",o,this._container);return n.type="button",n.addEventListener("click",t),n}_setButtonTitle(o,t){const n=this._map._getUIString(`NavigationControl.${t}`);o.title=n,o.setAttribute("aria-label",n)}},GeolocateControl:class extends h.Evented{constructor(o){super(),this.options=h.extend({},Ka,o),h.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}onAdd(o){return this._map=o,this._container=Y.create("div","maplibregl-ctrl maplibregl-ctrl-group"),function(t,n=!1){mr===void 0||n?window.navigator.permissions!==void 0?window.navigator.permissions.query({name:"geolocation"}).then(a=>{mr=a.state!=="denied",t(mr)}).catch(()=>{mr=!!window.navigator.geolocation,t(mr)}):(mr=!!window.navigator.geolocation,t(mr)):t(mr)}(this._setupUI),this._container}onRemove(){this._geolocationWatchID!==void 0&&(window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),Y.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,Bn=0,an=!1}_isOutOfMapMaxBounds(o){const t=this._map.getMaxBounds(),n=o.coords;return t&&(n.longitudet.getEast()||n.latitudet.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"ACTIVE_ERROR":break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}}_onSuccess(o){if(this._map){if(this._isOutOfMapMaxBounds(o))return this._setErrorState(),this.fire(new h.Event("outofmaxbounds",o)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=o,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background");break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(o),this.options.trackUserLocation&&this._watchState!=="ACTIVE_LOCK"||this._updateCamera(o),this.options.showUserLocation&&this._dotElement.classList.remove("maplibregl-user-location-dot-stale"),this.fire(new h.Event("geolocate",o)),this._finish()}}_updateCamera(o){const t=new h.LngLat(o.coords.longitude,o.coords.latitude),n=o.coords.accuracy,a=this._map.getBearing(),c=h.extend({bearing:a},this.options.fitBoundsOptions),p=hi.fromLngLat(t,n);this._map.fitBounds(p,c,{geolocateSource:!0})}_updateMarker(o){if(o){const t=new h.LngLat(o.coords.longitude,o.coords.latitude);this._accuracyCircleMarker.setLngLat(t).addTo(this._map),this._userLocationDotMarker.setLngLat(t).addTo(this._map),this._accuracy=o.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()}_updateCircleRadius(){const o=this._map.getBounds(),t=o.getSouthEast(),n=o.getNorthEast(),a=t.distanceTo(n),c=Math.ceil(this._accuracy/(a/this._map._container.clientHeight)*2);this._circleElement.style.width=`${c}px`,this._circleElement.style.height=`${c}px`}_onZoom(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}_onError(o){if(this._map){if(this.options.trackUserLocation)if(o.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;const t=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=t,this._geolocateButton.setAttribute("aria-label",t),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(o.code===3&&an)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("maplibregl-user-location-dot-stale"),this.fire(new h.Event("error",o)),this._finish()}}_finish(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0}_setupUI(o){if(this._map){if(this._container.addEventListener("contextmenu",t=>t.preventDefault()),this._geolocateButton=Y.create("button","maplibregl-ctrl-geolocate",this._container),Y.create("span","maplibregl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",o===!1){h.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");const t=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=t,this._geolocateButton.setAttribute("aria-label",t)}else{const t=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=t,this._geolocateButton.setAttribute("aria-label",t)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=Y.create("div","maplibregl-user-location-dot"),this._userLocationDotMarker=new os(this._dotElement),this._circleElement=Y.create("div","maplibregl-user-location-accuracy-circle"),this._accuracyCircleMarker=new os({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",t=>{t.geolocateSource||this._watchState!=="ACTIVE_LOCK"||t.originalEvent&&t.originalEvent.type==="resize"||(this._watchState="BACKGROUND",this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this.fire(new h.Event("trackuserlocationend")))})}}trigger(){if(!this._setup)return h.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new h.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":Bn--,an=!1,this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this.fire(new h.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new h.Event("trackuserlocationstart"));break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"OFF":break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){let o;this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),Bn++,Bn>1?(o={maximumAge:6e5,timeout:0},an=!0):(o=this.options.positionOptions,an=!1),this._geolocationWatchID=window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,o)}}else window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_clearWatch(){window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)}},AttributionControl:qe,LogoControl:as,ScaleControl:class{constructor(o){this.options=h.extend({},Ya,o),h.bindAll(["_onMove","setUnit"],this)}getDefaultPosition(){return"bottom-left"}_onMove(){Ws(this._map,this._container,this.options)}onAdd(o){return this._map=o,this._container=Y.create("div","maplibregl-ctrl maplibregl-ctrl-scale",o.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container}onRemove(){Y.remove(this._container),this._map.off("move",this._onMove),this._map=void 0}setUnit(o){this.options.unit=o,Ws(this._map,this._container,this.options)}},FullscreenControl:class extends h.Evented{constructor(o={}){super(),this._onFullscreenChange=()=>{(window.document.fullscreenElement||window.document.mozFullScreenElement||window.document.webkitFullscreenElement||window.document.msFullscreenElement)===this._container!==this._fullscreen&&this._handleFullscreenChange()},this._onClickFullscreen=()=>{this._isFullscreen()?this._exitFullscreen():this._requestFullscreen()},this._fullscreen=!1,o&&o.container&&(o.container instanceof HTMLElement?this._container=o.container:h.warnOnce("Full screen control 'container' must be a DOM element.")),"onfullscreenchange"in document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in document&&(this._fullscreenchange="MSFullscreenChange")}onAdd(o){return this._map=o,this._container||(this._container=this._map.getContainer()),this._controlContainer=Y.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),this._controlContainer}onRemove(){Y.remove(this._controlContainer),this._map=null,window.document.removeEventListener(this._fullscreenchange,this._onFullscreenChange)}_setupUI(){const o=this._fullscreenButton=Y.create("button","maplibregl-ctrl-fullscreen",this._controlContainer);Y.create("span","maplibregl-ctrl-icon",o).setAttribute("aria-hidden","true"),o.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),window.document.addEventListener(this._fullscreenchange,this._onFullscreenChange)}_updateTitle(){const o=this._getTitle();this._fullscreenButton.setAttribute("aria-label",o),this._fullscreenButton.title=o}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_handleFullscreenChange(){this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("maplibregl-ctrl-shrink"),this._fullscreenButton.classList.toggle("maplibregl-ctrl-fullscreen"),this._updateTitle(),this._fullscreen?(this.fire(new h.Event("fullscreenstart")),this._map._cooperativeGestures&&(this._prevCooperativeGestures=this._map._cooperativeGestures,this._map.setCooperativeGestures())):(this.fire(new h.Event("fullscreenend")),this._prevCooperativeGestures&&(this._map.setCooperativeGestures(this._prevCooperativeGestures),delete this._prevCooperativeGestures))}_exitFullscreen(){window.document.exitFullscreen?window.document.exitFullscreen():window.document.mozCancelFullScreen?window.document.mozCancelFullScreen():window.document.msExitFullscreen?window.document.msExitFullscreen():window.document.webkitCancelFullScreen?window.document.webkitCancelFullScreen():this._togglePseudoFullScreen()}_requestFullscreen(){this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen?this._container.webkitRequestFullscreen():this._togglePseudoFullScreen()}_togglePseudoFullScreen(){this._container.classList.toggle("maplibregl-pseudo-fullscreen"),this._handleFullscreenChange(),this._map.resize()}},TerrainControl:class{constructor(o){this.options=o,h.bindAll(["_toggleTerrain","_updateTerrainIcon"],this)}onAdd(o){return this._map=o,this._container=Y.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._terrainButton=Y.create("button","maplibregl-ctrl-terrain",this._container),Y.create("span","maplibregl-ctrl-icon",this._terrainButton).setAttribute("aria-hidden","true"),this._terrainButton.type="button",this._terrainButton.addEventListener("click",this._toggleTerrain),this._updateTerrainIcon(),this._map.on("terrain",this._updateTerrainIcon),this._container}onRemove(){Y.remove(this._container),this._map.off("terrain",this._updateTerrainIcon),this._map=void 0}_toggleTerrain(){this._map.getTerrain()?this._map.setTerrain(null):this._map.setTerrain(this.options),this._updateTerrainIcon()}_updateTerrainIcon(){this._terrainButton.classList.remove("maplibregl-ctrl-terrain"),this._terrainButton.classList.remove("maplibregl-ctrl-terrain-enabled"),this._map.terrain?(this._terrainButton.classList.add("maplibregl-ctrl-terrain-enabled"),this._terrainButton.title=this._map._getUIString("TerrainControl.disableTerrain")):(this._terrainButton.classList.add("maplibregl-ctrl-terrain"),this._terrainButton.title=this._map._getUIString("TerrainControl.enableTerrain"))}},Popup:class extends h.Evented{constructor(o){super(),this.options=h.extend(Object.create(Hs),o),h.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}addTo(o){return this._map&&this.remove(),this._map=o,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")):this._map.on("move",this._update),this.fire(new h.Event("open")),this}isOpen(){return!!this._map}remove(){return this._content&&Y.remove(this._content),this._container&&(Y.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new h.Event("close")),this}getLngLat(){return this._lngLat}setLngLat(o){return this._lngLat=h.LngLat.convert(o),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.remove("maplibregl-track-pointer")),this}trackPointer(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")),this}getElement(){return this._container}setText(o){return this.setDOMContent(document.createTextNode(o))}setHTML(o){const t=document.createDocumentFragment(),n=document.createElement("body");let a;for(n.innerHTML=o;a=n.firstChild,a;)t.appendChild(a);return this.setDOMContent(t)}getMaxWidth(){return this._container&&this._container.style.maxWidth}setMaxWidth(o){return this.options.maxWidth=o,this._update(),this}setDOMContent(o){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=Y.create("div","maplibregl-popup-content",this._container);return this._content.appendChild(o),this._createCloseButton(),this._update(),this._focusFirstElement(),this}addClassName(o){this._container&&this._container.classList.add(o)}removeClassName(o){this._container&&this._container.classList.remove(o)}setOffset(o){return this.options.offset=o,this._update(),this}toggleClassName(o){if(this._container)return this._container.classList.toggle(o)}_createCloseButton(){this.options.closeButton&&(this._closeButton=Y.create("button","maplibregl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))}_onMouseUp(o){this._update(o.point)}_onMouseMove(o){this._update(o.point)}_onDrag(o){this._update(o.point)}_update(o){if(!this._map||!this._lngLat&&!this._trackPointer||!this._content||(this._container||(this._container=Y.create("div","maplibregl-popup",this._map.getContainer()),this._tip=Y.create("div","maplibregl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(p=>this._container.classList.add(p)),this._trackPointer&&this._container.classList.add("maplibregl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=Gs(this._lngLat,this._pos,this._map.transform)),this._trackPointer&&!o))return;const t=this._pos=this._trackPointer&&o?o:this._map.project(this._lngLat);let n=this.options.anchor;const a=Ks(this.options.offset);if(!n){const p=this._container.offsetWidth,m=this._container.offsetHeight;let y;y=t.y+a.bottom.ythis._map.transform.height-m?["bottom"]:[],t.x

    this._map.transform.width-p/2&&y.push("right"),n=y.length===0?"bottom":y.join("-")}const c=t.add(a[n]).round();Y.setTransform(this._container,`${sn[n]} translate(${c.x}px,${c.y}px)`),Xs(this._container,n,"popup")}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;const o=this._container.querySelector(Ja);o&&o.focus()}_onClose(){this.remove()}},Marker:os,Style:pi,LngLat:h.LngLat,LngLatBounds:hi,Point:h.Point,MercatorCoordinate:h.MercatorCoordinate,Evented:h.Evented,AJAXError:h.AJAXError,config:h.config,CanvasSource:le,GeoJSONSource:br,ImageSource:Xi,RasterDEMTileSource:Rr,RasterTileSource:Kr,VectorTileSource:xn,VideoSource:vn,prewarm:function(){wn().acquire(Qr)},clearPrewarmedResources:function(){const o=fi;o&&(o.isPreloaded()&&o.numActive()===1?(o.release(Qr),fi=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},get version(){return Ys},get workerCount(){return we.workerCount},set workerCount(o){we.workerCount=o},get maxParallelImageRequests(){return h.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(o){h.config.MAX_PARALLEL_IMAGE_REQUESTS=o},get workerUrl(){return h.config.WORKER_URL},set workerUrl(o){h.config.WORKER_URL=o},addProtocol(o,t){h.config.REGISTERED_PROTOCOLS[o]=t},removeProtocol(o){delete h.config.REGISTERED_PROTOCOLS[o]}};return js.extend(Js,{isSafari:h.isSafari,getPerformanceMetrics:h.PerformanceUtils.getPerformanceMetrics}),Js});var de=te;return de})})(gd);var Km=gd.exports;function Vf(E){let A,D,N,te,ie;const de=E[3].default,h=rd(de,E,E[2],null);return{c(){A=wo("div"),D=wo("label"),N=lh(E[0]),te=vf(),h&&h.c(),pn(D,"class","govuk-label"),pn(D,"for",E[1]),pn(A,"class","govuk-form-group")},m(ce,Y){oh(ce,A,Y),zl(A,D),zl(D,N),zl(A,te),h&&h.m(A,null),ie=!0},p(ce,[Y]){(!ie||Y&1)&&Tf(N,ce[0]),(!ie||Y&2)&&pn(D,"for",ce[1]),h&&h.p&&(!ie||Y&4)&&ad(h,de,ce,ce[2],ie?sd(de,ce[2],Y,null):od(ce[2]),null)},i(ce){ie||(Io(h,ce),ie=!0)},o(ce){Vl(h,ce),ie=!1},d(ce){ce&&Eo(A),h&&h.d(ce)}}}function Nf(E,A,D){let{$$slots:N={},$$scope:te}=A,{label:ie}=A,{id:de}=A;return E.$$set=h=>{"label"in h&&D(0,ie=h.label),"id"in h&&D(1,de=h.id),"$$scope"in h&&D(2,te=h.$$scope)},[ie,de,te,N]}class $f extends hh{constructor(A){super(),ch(this,A,Nf,Vf,sh,{label:0,id:1})}}function qf(E){let A,D,N,te;const ie=E[2].default,de=rd(ie,E,E[1],null);let h=[{type:"button"},{class:"govuk-button govuk-button--secondary"},{"data-module":"govuk-button"},E[0]],ce={};for(let Y=0;Y{D(0,A=Ll(Ll({},A),Ku(de))),"$$scope"in de&&D(1,te=de.$$scope)},A=Ku(A),[A,te,N,ie]}class Ym extends hh{constructor(A){super(),ch(this,A,jf,qf,sh,{})}}function Zf(E){let A,D,N;return{c(){A=wo("input"),A.disabled=E[2],pn(A,"class","govuk-file-upload"),pn(A,"id",E[1]),pn(A,"type","file")},m(te,ie){oh(te,A,ie),E[6](A),D||(N=ud(A,"change",E[4]),D=!0)},p(te,ie){ie&4&&(A.disabled=te[2]),ie&2&&pn(A,"id",te[1])},d(te){te&&Eo(A),E[6](null),D=!1,N()}}}function Gf(E){let A,D;return A=new $f({props:{label:E[0],id:E[1],$$slots:{default:[Zf]},$$scope:{ctx:E}}}),{c(){Rf(A.$$.fragment)},m(N,te){fd(A,N,te),D=!0},p(N,[te]){const ie={};te&1&&(ie.label=N[0]),te&2&&(ie.id=N[1]),te&142&&(ie.$$scope={dirty:te,ctx:N}),A.$set(ie)},i(N){D||(Io(A.$$.fragment,N),D=!0)},o(N){Vl(A.$$.fragment,N),D=!1},d(N){md(A,N)}}}function Xf(E,A,D){let{label:N}=A,{id:te}=A,{loadFile:ie}=A,{disabled:de=!1}=A,h;function ce(Ne){let xe=new FileReader;xe.onload=ot=>{ie(ot.target.result)};let nt=h.files;xe.readAsText(nt[0])}function Y(Ne){eh[Ne?"unshift":"push"](()=>{h=Ne,D(3,h)})}return E.$$set=Ne=>{"label"in Ne&&D(0,N=Ne.label),"id"in Ne&&D(1,te=Ne.id),"loadFile"in Ne&&D(5,ie=Ne.loadFile),"disabled"in Ne&&D(2,de=Ne.disabled)},[N,te,de,h,ce,ie,Y]}class Jm extends hh{constructor(A){super(),ch(this,A,Xf,Gf,sh,{label:0,id:1,loadFile:5,disabled:2})}}var Di=63710088e-1,uh={centimeters:Di*100,centimetres:Di*100,degrees:Di/111325,feet:Di*3.28084,inches:Di*39.37,kilometers:Di/1e3,kilometres:Di/1e3,meters:Di,metres:Di,miles:Di/1609.344,millimeters:Di*1e3,millimetres:Di*1e3,nauticalmiles:Di/1852,radians:1,yards:Di*1.0936},Wf={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:1/1e3,kilometres:1/1e3,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/Di,yards:1.0936133},rh={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046};function Xr(E,A,D){D===void 0&&(D={});var N={type:"Feature"};return(D.id===0||D.id)&&(N.id=D.id),D.bbox&&(N.bbox=D.bbox),N.properties=A||{},N.geometry=E,N}function Hf(E,A,D){switch(E){case"Point":return dn(A).geometry;case"LineString":return mn(A).geometry;case"Polygon":return dh(A).geometry;case"MultiPoint":return xd(A).geometry;case"MultiLineString":return yd(A).geometry;case"MultiPolygon":return vd(A).geometry;default:throw new Error(E+" is invalid")}}function dn(E,A,D){if(D===void 0&&(D={}),!E)throw new Error("coordinates is required");if(!Array.isArray(E))throw new Error("coordinates must be an Array");if(E.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!Ol(E[0])||!Ol(E[1]))throw new Error("coordinates must contain numbers");var N={type:"Point",coordinates:E};return Xr(N,A,D)}function Kf(E,A,D){return D===void 0&&(D={}),Nl(E.map(function(N){return dn(N,A)}),D)}function dh(E,A,D){D===void 0&&(D={});for(var N=0,te=E;N=0))throw new Error("precision must be a positive number");var D=Math.pow(10,A||0);return Math.round(E*D)/D}function bd(E,A){A===void 0&&(A="kilometers");var D=uh[A];if(!D)throw new Error(A+" units is invalid");return E*D}function ph(E,A){A===void 0&&(A="kilometers");var D=uh[A];if(!D)throw new Error(A+" units is invalid");return E/D}function tm(E,A){return wd(ph(E,A))}function im(E){var A=E%360;return A<0&&(A+=360),A}function wd(E){var A=E%(2*Math.PI);return A*180/Math.PI}function rm(E){var A=E%360;return A*Math.PI/180}function nm(E,A,D){if(A===void 0&&(A="kilometers"),D===void 0&&(D="kilometers"),!(E>=0))throw new Error("length must be a positive number");return bd(ph(E,A),D)}function sm(E,A,D){if(A===void 0&&(A="meters"),D===void 0&&(D="kilometers"),!(E>=0))throw new Error("area must be a positive number");var N=rh[A];if(!N)throw new Error("invalid original units");var te=rh[D];if(!te)throw new Error("invalid final units");return E/N*te}function Ol(E){return!isNaN(E)&&E!==null&&!Array.isArray(E)}function fh(E){return!!E&&E.constructor===Object}function am(E){if(!E)throw new Error("bbox is required");if(!Array.isArray(E))throw new Error("bbox must be an Array");if(E.length!==4&&E.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");E.forEach(function(A){if(!Ol(A))throw new Error("bbox must only contain numbers")})}function om(E){if(!E)throw new Error("id is required");if(["string","number"].indexOf(typeof E)===-1)throw new Error("id must be a number or a string")}const Qm=Object.freeze(Object.defineProperty({__proto__:null,areaFactors:rh,bearingToAzimuth:im,convertArea:sm,convertLength:nm,degreesToRadians:rm,earthRadius:Di,factors:uh,feature:Xr,featureCollection:Nl,geometry:Hf,geometryCollection:Qf,isNumber:Ol,isObject:fh,lengthToDegrees:tm,lengthToRadians:ph,lineString:mn,lineStrings:Jf,multiLineString:yd,multiPoint:xd,multiPolygon:vd,point:dn,points:Kf,polygon:dh,polygons:Yf,radiansToDegrees:wd,radiansToLength:bd,round:em,unitsFactors:Wf,validateBBox:am,validateId:om},Symbol.toStringTag,{value:"Module"}));function ma(E,A,D){if(E!==null)for(var N,te,ie,de,h,ce,Y,Ne=0,xe=0,nt,ot=E.type,We=ot==="FeatureCollection",xt=ot==="Feature",bt=We?E.features.length:1,et=0;etce||We>Y||xt>Ne){h=xe,ce=N,Y=We,Ne=xt,ie=0;return}var bt=mn([h,xe],D.properties);if(A(bt,N,te,xt,ie)===!1)return!1;ie++,h=xe})===!1)return!1}}})}function fm(E,A,D){var N=D,te=!1;return Sd(E,function(ie,de,h,ce,Y){te===!1&&D===void 0?N=ie:N=A(N,ie,de,h,ce,Y),te=!0}),N}function Id(E,A){if(!E)throw new Error("geojson is required");$l(E,function(D,N,te){if(D.geometry!==null){var ie=D.geometry.type,de=D.geometry.coordinates;switch(ie){case"LineString":if(A(D,N,te,0,0)===!1)return!1;break;case"Polygon":for(var h=0;hD[0]&&(A[0]=D[0]),A[1]>D[1]&&(A[1]=D[1]),A[2]=0;te--){let ie=ed[te];if(ie==A.id){N=!0;break}E.getLayer(ie)&&(D=ie)}if(!N)throw new Error(`Layer ID ${A.id} not defined in layerZorder`);E.addLayer(A,D)}function ag(E,A){_h(E,{id:A.id,source:A.source,filter:A.filter??gh,type:"fill",paint:{"fill-color":A.color,"fill-opacity":A.opacity}})}function og(E,A){_h(E,{id:A.id,source:A.source,filter:A.filter??gh,type:"circle",paint:{"circle-radius":A.radius,"circle-color":A.color??Qu,"circle-opacity":A.opacity??Ad,"circle-stroke-color":A.strokeColor??Qu,"circle-stroke-width":A.strokeWidth??0}})}function lg(E,A){_h(E,{id:A.id,source:A.source,filter:A.filter??gh,type:"line",layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":A.color,"line-width":A.width,"line-opacity":A.opacity??Ad}})}function cg(){return{type:"FeatureCollection",features:[]}}function hg(E){return{type:"Feature",properties:{},geometry:{type:"Point",coordinates:ym(E)}}}function ym(E){return[Math.round(E[0]*1e7)/1e7,Math.round(E[1]*1e7)/1e7]}function ug(E,A,D){let N=["case"];for(let[te,ie]of Object.entries(A))N.push(["==",["get",E],te]),N.push(ie);return N.push(D),N}function dg(E){return Ul(E)}const ed=["interventions-polygons","interventions-polygon-outlines","hover-polygons","hover-lines","interventions-lines","interventions-lines-endpoints","hover-points","interventions-points","edit-polygon-fill","edit-polygon-lines","edit-polygon-vertices","draw-split-route","draw-street-view","speed-limits","lane-polygons-layer","intersection-polygons-layer","lane-markings-layer","intersection-markings-layer","route-points","route-lines","route-polygons","road_label","boundary"];export{Im as $,Cm as A,ps as B,Ym as C,eh as D,Xm as E,$f as F,Jm as G,Rf as H,fd as I,Vm as J,md as K,Bm as L,Km as M,dg as N,vd as O,dh as P,wm as Q,Um as R,hh as S,sg as T,ag as U,lg as V,og as W,cg as X,ig as Y,rg as Z,ng as _,Ll as a,Rm as a0,hg as a1,rm as a2,wd as a3,bd as a4,ph as a5,dn as a6,$l as a7,Nl as a8,mn as a9,Sm as aA,Lm as aB,Gm as aC,Zm as aD,Am as aE,Tm as aF,Om as aG,Uf as aa,Hm as ab,Qm as ac,eg as ad,tg as ae,Wm as af,Xr as ag,Ed as ah,ym as ai,km as aj,Nm as ak,$m as al,bm as am,fm as an,ma as ao,Ul as ap,hm as aq,vm as ar,Dm as as,Fl as at,zm as au,Fm as av,Mm as aw,qm as ax,_h as ay,ug as az,Yu as b,rd as c,oh as d,wo as e,sd as f,od as g,Bf as h,ch as i,Vl as j,Eo as k,ud as l,Ku as m,Pf as n,jm as o,lh as p,vf as q,pn as r,sh as s,Io as t,ad as u,zl as v,Tf as w,fa as x,Em as y,Pm as z}; diff --git a/browse_dropdown_filters/assets/nested-19010159.js b/browse_dropdown_filters/assets/nested-19010159.js deleted file mode 100644 index fb26b7626..000000000 --- a/browse_dropdown_filters/assets/nested-19010159.js +++ /dev/null @@ -1,50 +0,0 @@ -var ao=Object.defineProperty;var uo=(r,e,t)=>e in r?ao(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var Y=(r,e,t)=>(uo(r,typeof e!="symbol"?e+"":e,t),t);import{O as fo,P as co,S as Z,i as Q,s as ee,Q as z,R as po,N as di,T as lt,U as Zn,V as Ft,W as _n,X as tt,Y as Qn,Z as er,_ as tr,$ as _e,d as w,x as U,k,a0 as mn,e as $,a1 as Gt,H as F,q as A,r as R,I as P,l as G,t as E,j as C,K as B,v as M,a2 as Pe,a3 as On,a4 as ho,a5 as go,a6 as ht,a7 as nr,a8 as Qe,a9 as gt,aa as _o,ab as rr,ac as mo,ad as bo,ae as yo,af as vo,ag as fr,ah as tn,ai as Yt,aj as Te,B as Ie,p as ie,ak as de,al as he,am as it,L as Nt,an as wo,ao as ko,ap as So,aq as Eo,ar as Rn,w as Oe,z as jt,A as fe,D as le,E as ve,J as we,o as De,y as nn,as as hi,at as bn,au as rn,av as Mo,G as $o,aw as gi,ax as on,ay as Co,az as yn,aA as cr,aB as pr,c as Lo,u as To,g as Ao,f as xo,aC as Oo,aD as Ro}from"./maplibre_helpers-5d84afaa.js";import{M as _i,A as Io,a as Fo}from"./About-563eb94d.js";import{m as Ue,g as ce,s as sn,a as Ye,f as Re,i as Dt,c as Jt,l as In,b as mi,d as Ce,o as ln,C as _t,u as Lt,n as vn,M as Po,r as mt,e as dr,L as Bo,Z as No,h as jo,j as Do,I as Ho,B as Uo,k as qo}from"./ZoomOutMap-96dffba9.js";/** - * @license - * Copyright 2019 Google LLC - * SPDX-License-Identifier: Apache-2.0 - */const bi=Symbol("Comlink.proxy"),Go=Symbol("Comlink.endpoint"),Yo=Symbol("Comlink.releaseProxy"),Sn=Symbol("Comlink.finalizer"),zt=Symbol("Comlink.thrown"),yi=r=>typeof r=="object"&&r!==null||typeof r=="function",Jo={canHandle:r=>yi(r)&&r[bi],serialize(r){const{port1:e,port2:t}=new MessageChannel;return ir(r,e),[t,[t]]},deserialize(r){return r.start(),ki(r)}},zo={canHandle:r=>yi(r)&&zt in r,serialize({value:r}){let e;return r instanceof Error?e={isError:!0,value:{message:r.message,name:r.name,stack:r.stack}}:e={isError:!1,value:r},[e,[]]},deserialize(r){throw r.isError?Object.assign(new Error(r.value.message),r.value):r.value}},vi=new Map([["proxy",Jo],["throw",zo]]);function Xo(r,e){for(const t of r)if(e===t||t==="*"||t instanceof RegExp&&t.test(e))return!0;return!1}function ir(r,e=globalThis,t=["*"]){e.addEventListener("message",function n(i){if(!i||!i.data)return;if(!Xo(t,i.origin)){console.warn(`Invalid origin '${i.origin}' for comlink proxy`);return}const{id:o,type:s,path:a}=Object.assign({path:[]},i.data),l=(i.data.argumentList||[]).map(rt);let u;try{const f=a.slice(0,-1).reduce((d,h)=>d[h],r),c=a.reduce((d,h)=>d[h],r);switch(s){case"GET":u=c;break;case"SET":f[a.slice(-1)[0]]=rt(i.data.value),u=!0;break;case"APPLY":u=c.apply(f,l);break;case"CONSTRUCT":{const d=new c(...l);u=es(d)}break;case"ENDPOINT":{const{port1:d,port2:h}=new MessageChannel;ir(r,h),u=Qo(d,[d])}break;case"RELEASE":u=void 0;break;default:return}}catch(f){u={value:f,[zt]:0}}Promise.resolve(u).catch(f=>({value:f,[zt]:0})).then(f=>{const[c,d]=fn(f);e.postMessage(Object.assign(Object.assign({},c),{id:o}),d),s==="RELEASE"&&(e.removeEventListener("message",n),wi(e),Sn in r&&typeof r[Sn]=="function"&&r[Sn]())}).catch(f=>{const[c,d]=fn({value:new TypeError("Unserializable return value"),[zt]:0});e.postMessage(Object.assign(Object.assign({},c),{id:o}),d)})}),e.start&&e.start()}function Wo(r){return r.constructor.name==="MessagePort"}function wi(r){Wo(r)&&r.close()}function ki(r,e){return Fn(r,[],e)}function Ut(r){if(r)throw new Error("Proxy has been released and is not useable")}function Si(r){return pt(r,{type:"RELEASE"}).then(()=>{wi(r)})}const an=new WeakMap,un="FinalizationRegistry"in globalThis&&new FinalizationRegistry(r=>{const e=(an.get(r)||0)-1;an.set(r,e),e===0&&Si(r)});function Vo(r,e){const t=(an.get(e)||0)+1;an.set(e,t),un&&un.register(r,e,r)}function Ko(r){un&&un.unregister(r)}function Fn(r,e=[],t=function(){}){let n=!1;const i=new Proxy(t,{get(o,s){if(Ut(n),s===Yo)return()=>{Ko(i),Si(r),n=!0};if(s==="then"){if(e.length===0)return{then:()=>i};const a=pt(r,{type:"GET",path:e.map(l=>l.toString())}).then(rt);return a.then.bind(a)}return Fn(r,[...e,s])},set(o,s,a){Ut(n);const[l,u]=fn(a);return pt(r,{type:"SET",path:[...e,s].map(f=>f.toString()),value:l},u).then(rt)},apply(o,s,a){Ut(n);const l=e[e.length-1];if(l===Go)return pt(r,{type:"ENDPOINT"}).then(rt);if(l==="bind")return Fn(r,e.slice(0,-1));const[u,f]=hr(a);return pt(r,{type:"APPLY",path:e.map(c=>c.toString()),argumentList:u},f).then(rt)},construct(o,s){Ut(n);const[a,l]=hr(s);return pt(r,{type:"CONSTRUCT",path:e.map(u=>u.toString()),argumentList:a},l).then(rt)}});return Vo(i,r),i}function Zo(r){return Array.prototype.concat.apply([],r)}function hr(r){const e=r.map(fn);return[e.map(t=>t[0]),Zo(e.map(t=>t[1]))]}const Ei=new WeakMap;function Qo(r,e){return Ei.set(r,e),r}function es(r){return Object.assign(r,{[bi]:!0})}function fn(r){for(const[e,t]of vi)if(t.canHandle(r)){const[n,i]=t.serialize(r);return[{type:"HANDLER",name:e,value:n},i]}return[{type:"RAW",value:r},Ei.get(r)||[]]}function rt(r){switch(r.type){case"HANDLER":return vi.get(r.name).deserialize(r.value);case"RAW":return r.value}}function pt(r,e,t){return new Promise(n=>{const i=ts();r.addEventListener("message",function o(s){!s.data||!s.data.id||s.data.id!==i||(r.removeEventListener("message",o),n(s.data))}),r.start&&r.start(),r.postMessage(Object.assign({id:i},e),t)})}function ts(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}/** - * splaytree v3.1.1 - * Fast Splay tree for Node and browser - * - * @author Alexander Milevski - * @license MIT - * @preserve - *//*! ***************************************************************************** -Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the Apache License, Version 2.0 (the "License"); you may not use -this file except in compliance with the License. You may obtain a copy of the -License at http://www.apache.org/licenses/LICENSE-2.0 - -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. -***************************************************************************** */function ns(r,e){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(f){return l([u,f])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,i=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]e?1:r0){if(e.right===null)break;if(t(r,e.right.key)>0){var a=e.right;if(e.right=a.left,a.left=e,e=a,e.right===null)break}i.right=e,i=e,e=e.right}else break}return i.right=e.left,o.left=e.right,e.left=n.right,e.right=n.left,e}function En(r,e,t,n){var i=new nt(r,e);if(t===null)return i.left=i.right=null,i;t=ze(r,t,n);var o=n(r,t.key);return o<0?(i.left=t.left,i.right=t,t.left=null):o>=0&&(i.right=t.right,i.left=t,t.right=null),i}function gr(r,e,t){var n=null,i=null;if(e){e=ze(r,e,t);var o=t(e.key,r);o===0?(n=e.left,i=e.right):o<0?(i=e.right,e.right=null,n=e):(n=e.left,e.left=null,i=e)}return{left:n,right:i}}function is(r,e,t){return e===null?r:(r===null||(e=ze(r.key,e,t),e.left=r),e)}function Pn(r,e,t,n,i){if(r){n(""+e+(t?"└── ":"├── ")+i(r)+` -`);var o=e+(t?" ":"│ ");r.left&&Pn(r.left,o,!1,n,i),r.right&&Pn(r.right,o,!0,n,i)}}var or=function(){function r(e){e===void 0&&(e=rs),this._root=null,this._size=0,this._comparator=e}return r.prototype.insert=function(e,t){return this._size++,this._root=En(e,t,this._root,this._comparator)},r.prototype.add=function(e,t){var n=new nt(e,t);this._root===null&&(n.left=n.right=null,this._size++,this._root=n);var i=this._comparator,o=ze(e,this._root,i),s=i(e,o.key);return s===0?this._root=o:(s<0?(n.left=o.left,n.right=o,o.left=null):s>0&&(n.right=o.right,n.left=o,o.right=null),this._size++,this._root=n),this._root},r.prototype.remove=function(e){this._root=this._remove(e,this._root,this._comparator)},r.prototype._remove=function(e,t,n){var i;if(t===null)return null;t=ze(e,t,n);var o=n(e,t.key);return o===0?(t.left===null?i=t.right:(i=ze(e,t.left,n),i.right=t.right),this._size--,i):t},r.prototype.pop=function(){var e=this._root;if(e){for(;e.left;)e=e.left;return this._root=ze(e.key,this._root,this._comparator),this._root=this._remove(e.key,this._root,this._comparator),{key:e.key,data:e.data}}return null},r.prototype.findStatic=function(e){for(var t=this._root,n=this._comparator;t;){var i=n(e,t.key);if(i===0)return t;i<0?t=t.left:t=t.right}return null},r.prototype.find=function(e){return this._root&&(this._root=ze(e,this._root,this._comparator),this._comparator(e,this._root.key)!==0)?null:this._root},r.prototype.contains=function(e){for(var t=this._root,n=this._comparator;t;){var i=n(e,t.key);if(i===0)return!0;i<0?t=t.left:t=t.right}return!1},r.prototype.forEach=function(e,t){for(var n=this._root,i=[],o=!1;!o;)n!==null?(i.push(n),n=n.left):i.length!==0?(n=i.pop(),e.call(t,n),n=n.right):o=!0;return this},r.prototype.range=function(e,t,n,i){for(var o=[],s=this._comparator,a=this._root,l;o.length!==0||a;)if(a)o.push(a),a=a.left;else{if(a=o.pop(),l=s(a.key,t),l>0)break;if(s(a.key,e)>=0&&n.call(i,a))return this;a=a.right}return this},r.prototype.keys=function(){var e=[];return this.forEach(function(t){var n=t.key;return e.push(n)}),e},r.prototype.values=function(){var e=[];return this.forEach(function(t){var n=t.data;return e.push(n)}),e},r.prototype.min=function(){return this._root?this.minNode(this._root).key:null},r.prototype.max=function(){return this._root?this.maxNode(this._root).key:null},r.prototype.minNode=function(e){if(e===void 0&&(e=this._root),e)for(;e.left;)e=e.left;return e},r.prototype.maxNode=function(e){if(e===void 0&&(e=this._root),e)for(;e.right;)e=e.right;return e},r.prototype.at=function(e){for(var t=this._root,n=!1,i=0,o=[];!n;)if(t)o.push(t),t=t.left;else if(o.length>0){if(t=o.pop(),i===e)return t;i++,t=t.right}else n=!0;return null},r.prototype.next=function(e){var t=this._root,n=null;if(e.right){for(n=e.right;n.left;)n=n.left;return n}for(var i=this._comparator;t;){var o=i(e.key,t.key);if(o===0)break;o<0?(n=t,t=t.left):t=t.right}return n},r.prototype.prev=function(e){var t=this._root,n=null;if(e.left!==null){for(n=e.left;n.right;)n=n.right;return n}for(var i=this._comparator;t;){var o=i(e.key,t.key);if(o===0)break;o<0?t=t.left:(n=t,t=t.right)}return n},r.prototype.clear=function(){return this._root=null,this._size=0,this},r.prototype.toList=function(){return ss(this._root)},r.prototype.load=function(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!1);var i=e.length,o=this._comparator;if(n&&jn(e,t,0,i-1,o),this._root===null)this._root=Bn(e,t,0,i),this._size=i;else{var s=ls(this.toList(),os(e,t),o);i=this._size+i,this._root=Nn({head:s},0,i)}return this},r.prototype.isEmpty=function(){return this._root===null},Object.defineProperty(r.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"root",{get:function(){return this._root},enumerable:!0,configurable:!0}),r.prototype.toString=function(e){e===void 0&&(e=function(n){return String(n.key)});var t=[];return Pn(this._root,"",!0,function(n){return t.push(n)},e),t.join("")},r.prototype.update=function(e,t,n){var i=this._comparator,o=gr(e,this._root,i),s=o.left,a=o.right;i(e,t)<0?a=En(t,n,a,i):s=En(t,n,s,i),this._root=is(s,a,i)},r.prototype.split=function(e){return gr(e,this._root,this._comparator)},r.prototype[Symbol.iterator]=function(){var e;return ns(this,function(t){switch(t.label){case 0:e=this.minNode(),t.label=1;case 1:return e?[4,e]:[3,3];case 2:return t.sent(),e=this.next(e),[3,1];case 3:return[2]}})},r}();function Bn(r,e,t,n){var i=n-t;if(i>0){var o=t+Math.floor(i/2),s=r[o],a=e[o],l=new nt(s,a);return l.left=Bn(r,e,t,o),l.right=Bn(r,e,o+1,n),l}return null}function os(r,e){for(var t=new nt(null,null),n=t,i=0;i0?(e=o=o.next=t.pop(),e=e.right):n=!0;return o.next=null,i.next}function Nn(r,e,t){var n=t-e;if(n>0){var i=e+Math.floor(n/2),o=Nn(r,e,i),s=r.head;return s.left=o,r.head=r.head.next,s.right=Nn(r,i+1,t),s}return null}function ls(r,e,t){for(var n=new nt(null,null),i=n,o=r,s=e;o!==null&&s!==null;)t(o.key,s.key)<0?(i.next=o,o=o.next):(i.next=s,s=s.next),i=i.next;return o!==null?i.next=o:s!==null&&(i.next=s),n.next}function jn(r,e,t,n,i){if(!(t>=n)){for(var o=r[t+n>>1],s=t-1,a=n+1;;){do s++;while(i(r[s],o)<0);do a--;while(i(r[a],o)>0);if(s>=a)break;var l=r[s];r[s]=r[a],r[a]=l,l=e[s],e[s]=e[a],e[a]=l}jn(r,e,t,a,i),jn(r,e,a+1,n,i)}}function Fe(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function _r(r,e){for(var t=0;tn.x?1:t.yn.y?1:0}}]);function r(e,t){Fe(this,r),e.events===void 0?e.events=[this]:e.events.push(this),this.point=e,this.isLeft=t}return Ae(r,[{key:"link",value:function(t){if(t.point===this.point)throw new Error("Tried to link already linked events");for(var n=t.point.events,i=0,o=n.length;i=0&&d>=0?fh?-1:0:u<0&&d<0?fh?1:0:du?1:0}}}]),r}(),ds=0,pn=function(){Ae(r,null,[{key:"compare",value:function(t,n){var i=t.leftSE.point.x,o=n.leftSE.point.x,s=t.rightSE.point.x,a=n.rightSE.point.x;if(al&&u>f)return-1;var d=t.comparePoint(n.leftSE.point);if(d<0)return 1;if(d>0)return-1;var h=n.comparePoint(t.rightSE.point);return h!==0?h:-1}if(i>o){if(lu&&l>c)return 1;var v=n.comparePoint(t.leftSE.point);if(v!==0)return v;var _=t.comparePoint(n.rightSE.point);return _<0?1:_>0?-1:1}if(lu)return 1;if(sa){var g=t.comparePoint(n.rightSE.point);if(g<0)return 1;if(g>0)return-1}if(s!==a){var p=f-l,m=s-i,y=c-u,S=a-o;if(p>m&&yS)return-1}return s>a?1:sc?1:t.idn.id?1:0}}]);function r(e,t,n,i){Fe(this,r),this.id=++ds,this.leftSE=e,e.segment=this,e.otherSE=t,this.rightSE=t,t.segment=this,t.otherSE=e,this.rings=n,this.windings=i}return Ae(r,[{key:"replaceRightSE",value:function(t){this.rightSE=t,this.rightSE.segment=this,this.rightSE.otherSE=this.leftSE,this.leftSE.otherSE=this.rightSE}},{key:"bbox",value:function(){var t=this.leftSE.point.y,n=this.rightSE.point.y;return{ll:{x:this.leftSE.point.x,y:tn?t:n}}}},{key:"vector",value:function(){return{x:this.rightSE.point.x-this.leftSE.point.x,y:this.rightSE.point.y-this.leftSE.point.y}}},{key:"isAnEndpoint",value:function(t){return t.x===this.leftSE.point.x&&t.y===this.leftSE.point.y||t.x===this.rightSE.point.x&&t.y===this.rightSE.point.y}},{key:"comparePoint",value:function(t){if(this.isAnEndpoint(t))return 0;var n=this.leftSE.point,i=this.rightSE.point,o=this.vector();if(n.x===i.x)return t.x===n.x?0:t.x0&&l.swapEvents(),je.comparePoints(this.leftSE.point,this.rightSE.point)>0&&this.swapEvents(),i&&(o.checkForConsuming(),s.checkForConsuming()),n}},{key:"swapEvents",value:function(){var t=this.rightSE;this.rightSE=this.leftSE,this.leftSE=t,this.leftSE.isLeft=!0,this.rightSE.isLeft=!1;for(var n=0,i=this.windings.length;n0){var s=n;n=i,i=s}if(n.prev===i){var a=n;n=i,i=a}for(var l=0,u=i.rings.length;l0)o=n,s=t,a=-1;else throw new Error("Tried to create degenerate segment at [".concat(t.x,", ").concat(t.y,"]"));var u=new je(o,!0),f=new je(s,!1);return new r(u,f,[i],[a])}}]),r}(),wr=function(){function r(e,t,n){if(Fe(this,r),!Array.isArray(e)||e.length===0)throw new Error("Input geometry is not a valid Polygon or MultiPolygon");if(this.poly=t,this.isExterior=n,this.segments=[],typeof e[0][0]!="number"||typeof e[0][1]!="number")throw new Error("Input geometry is not a valid Polygon or MultiPolygon");var i=Pt.round(e[0][0],e[0][1]);this.bbox={ll:{x:i.x,y:i.y},ur:{x:i.x,y:i.y}};for(var o=i,s=1,a=e.length;sthis.bbox.ur.x&&(this.bbox.ur.x=l.x),l.y>this.bbox.ur.y&&(this.bbox.ur.y=l.y),o=l)}(i.x!==o.x||i.y!==o.y)&&this.segments.push(pn.fromRing(o,i,this))}return Ae(r,[{key:"getSweepEvents",value:function(){for(var t=[],n=0,i=this.segments.length;nthis.bbox.ur.x&&(this.bbox.ur.x=o.bbox.ur.x),o.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=o.bbox.ur.y),this.interiorRings.push(o)}this.multiPoly=t}return Ae(r,[{key:"getSweepEvents",value:function(){for(var t=this.exteriorRing.getSweepEvents(),n=0,i=this.interiorRings.length;nthis.bbox.ur.x&&(this.bbox.ur.x=o.bbox.ur.x),o.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=o.bbox.ur.y),this.polys.push(o)}this.isSubject=t}return Ae(r,[{key:"getSweepEvents",value:function(){for(var t=[],n=0,i=this.polys.length;n0&&(t=o)}for(var s=t.segment.prevInResult(),a=s?s.prevInResult():null;;){if(!s)return null;if(!a)return s.ringOut;if(a.ringOut!==s.ringOut)return a.ringOut.enclosingRing()!==s.ringOut?s.ringOut:s.ringOut.enclosingRing();s=a.prevInResult(),a=s?s.prevInResult():null}}}]),r}(),Sr=function(){function r(e){Fe(this,r),this.exteriorRing=e,e.poly=this,this.interiorRings=[]}return Ae(r,[{key:"addInterior",value:function(t){this.interiorRings.push(t),t.poly=this}},{key:"getGeom",value:function(){var t=[this.exteriorRing.getGeom()];if(t[0]===null)return null;for(var n=0,i=this.interiorRings.length;n1&&arguments[1]!==void 0?arguments[1]:pn.compare;Fe(this,r),this.queue=e,this.tree=new or(t),this.segments=[]}return Ae(r,[{key:"process",value:function(t){var n=t.segment,i=[];if(t.consumedBy)return t.isLeft?this.queue.remove(t.otherSE):this.tree.remove(n),i;var o=t.isLeft?this.tree.insert(n):this.tree.find(n);if(!o)throw new Error("Unable to find segment #".concat(n.id," ")+"[".concat(n.leftSE.point.x,", ").concat(n.leftSE.point.y,"] -> ")+"[".concat(n.rightSE.point.x,", ").concat(n.rightSE.point.y,"] ")+"in SweepLine tree. Please submit a bug report.");for(var s=o,a=o,l=void 0,u=void 0;l===void 0;)s=this.tree.prev(s),s===null?l=null:s.key.consumedBy===void 0&&(l=s.key);for(;u===void 0;)a=this.tree.next(a),a===null?u=null:a.key.consumedBy===void 0&&(u=a.key);if(t.isLeft){var f=null;if(l){var c=l.getIntersection(n);if(c!==null&&(n.isAnEndpoint(c)||(f=c),!l.isAnEndpoint(c)))for(var d=this._splitSafely(l,c),h=0,v=d.length;h0?(this.tree.remove(n),i.push(t)):(this.segments.push(n),n.prev=l)}else{if(l&&u){var I=l.getIntersection(u);if(I!==null){if(!l.isAnEndpoint(I))for(var N=this._splitSafely(l,I),j=0,D=N.length;jEr)throw new Error("Infinite loop when putting segment endpoints in a priority queue (queue size too big). Please file a bug report.");for(var S=new ms(_),L=_.size,O=_.pop();O;){var x=O.key;if(_.size===L){var I=x.segment;throw new Error("Unable to pop() ".concat(x.isLeft?"left":"right"," SweepEvent ")+"[".concat(x.point.x,", ").concat(x.point.y,"] from segment #").concat(I.id," ")+"[".concat(I.leftSE.point.x,", ").concat(I.leftSE.point.y,"] -> ")+"[".concat(I.rightSE.point.x,", ").concat(I.rightSE.point.y,"] from queue. ")+"Please file a bug report.")}if(_.size>Er)throw new Error("Infinite loop when passing sweep line over endpoints (queue size too big). Please file a bug report.");if(S.segments.length>bs)throw new Error("Infinite loop when passing sweep line over endpoints (too many sweep line segments). Please file a bug report.");for(var N=S.process(x),j=0,D=N.length;j1?t-1:0),i=1;i1?t-1:0),i=1;i1?t-1:0),i=1;i1?t-1:0),i=1;it(1,n=s));let{boundaryGeojson:i}=e;return po("setCamera")&&n.fitBounds(di(i),{padding:20,animate:!1}),lt(n,"boundary",Es(i)),Zn(n,{id:"boundary",source:"boundary",color:"black",opacity:.5}),r.$$set=s=>{"boundaryGeojson"in s&&t(0,i=s.boundaryGeojson)},[i]}class Ls extends Z{constructor(e){super(),Q(this,e,Cs,null,ee,{boundaryGeojson:0})}}let at="hover";function Ts(r,e,t){let n,i,o,s,a,l;return z(r,Ue,u=>t(0,n=u)),z(r,ce,u=>t(1,i=u)),z(r,sn,u=>t(2,o=u)),z(r,Ye,u=>t(3,s=u)),z(r,Re,u=>t(4,a=u)),z(r,Dt,u=>t(5,l=u)),lt(n,at,tt()),Ft(n,{id:"hover-polygons",source:at,filter:Qn,color:Jt.hovering,width:.5*In}),Ft(n,{id:"hover-lines",source:at,filter:er,color:Jt.hovering,width:1.5*In}),_n(n,{id:"hover-points",source:at,filter:tr,color:Jt.hovering,radius:1.5*mi}),r.$$.update=()=>{if(r.$$.dirty&41&&(l||(n.getCanvas().style.cursor=s?"pointer":"inherit")),r.$$.dirty&31){let u=a||s||o;u!=null?n.getSource(at).setData(i.features.find(f=>f.id==u)):n.getSource(at).setData(tt())}},[n,i,o,s,a,l]}class As extends Z{constructor(e){super(),Q(this,e,Ts,null,ee,{})}}const xs="/atip/browse_dropdown_filters/assets/edit_attributes-29b396e1.svg",Os="/atip/browse_dropdown_filters/assets/edit_geometry-02dad294.svg",Rs="/atip/browse_dropdown_filters/assets/point-276f4055.svg",Is="/atip/browse_dropdown_filters/assets/polygon_freehand-cf965967.svg",Fs="/atip/browse_dropdown_filters/assets/polygon_snapped-18efbbea.svg",Ps="/atip/browse_dropdown_filters/assets/route-d3c0ebad.svg",Ci="/atip/browse_dropdown_filters/assets/split_route-9e0ea2da.svg",Bs="/atip/browse_dropdown_filters/assets/street_view-48580b6a.svg";function Mr(r){let e;function t(o,s){return o[1]?js:Ns}let n=t(r),i=n(r);return{c(){i.c(),e=_e()},m(o,s){i.m(o,s),w(o,e,s)},p(o,s){n!==(n=t(o))&&(i.d(1),i=n(o),i&&(i.c(),i.m(e.parentNode,e)))},d(o){o&&k(e),i.d(o)}}}function Ns(r){let e;return{c(){e=$("p"),e.textContent="Click an object to fill out its attributes"},m(t,n){w(t,e,n)},d(t){t&&k(e)}}}function js(r){let e;return{c(){e=$("p"),e.textContent="Edit attributes to the left, or click another object"},m(t,n){w(t,e,n)},d(t){t&&k(e)}}}function Ds(r){let e,t=r[0]==Un&&Mr(r);return{c(){t&&t.c(),e=_e()},m(n,i){t&&t.m(n,i),w(n,e,i)},p(n,[i]){n[0]==Un?t?t.p(n,i):(t=Mr(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},i:U,o:U,d(n){n&&k(e),t&&t.d(n)}}}const Un="edit-attribute";function Li(){}function Hs(r,e,t){let n,i,o,s;z(r,Ue,c=>t(6,n=c)),z(r,ce,c=>t(7,i=c)),z(r,Ce,c=>t(0,o=c)),z(r,Re,c=>t(1,s=c));let{changeMode:a}=e,{eventHandler:l}=e;function u(){Re.set(null)}const f=ln.subscribe(c=>{if(c){let d=i.features.find(h=>h.id==c);d.geometry.type=="Point"?n.flyTo({center:d.geometry.coordinates,duration:500}):n.fitBounds(di(d),{padding:200,duration:500}),a(Un)}});return mn(f),l.mapHandlers.mousemove=c=>{var h;let d=n.queryRenderedFeatures(c.point,{layers:["interventions-points","interventions-lines","interventions-polygons"]});Ye.set(((h=d[0])==null?void 0:h.id)||null)},l.mapHandlers.mouseout=()=>{Ye.set(null)},l.mapHandlers.click=c=>{let d=n.queryRenderedFeatures(c.point,{layers:["interventions-points","interventions-lines","interventions-polygons"]});d.length>0?Re.set(d[0].id):Re.set(null)},r.$$set=c=>{"changeMode"in c&&t(3,a=c.changeMode),"eventHandler"in c&&t(2,l=c.eventHandler)},[o,s,l,a,Li,u]}class Us extends Z{constructor(e){super(),Q(this,e,Hs,Ds,ee,{changeMode:3,eventHandler:2,start:4,stop:5})}get start(){return Li}get stop(){return this.$$.ctx[5]}}const $r=["click","dblclick","mousemove","mousedown","mouseup","mouseout","dragstart"],Cr=["keypress","keyup","keydown"];class Je{constructor(){Y(this,"mapHandlers");Y(this,"documentHandlers");this.mapHandlers={click:e=>{},dblclick:e=>{},mousemove:e=>{},mousedown:e=>{},mouseup:e=>{},mouseout:e=>{},dragstart:e=>{}},this.documentHandlers={keypress:e=>{},keyup:e=>{},keydown:e=>{}}}}class qs{constructor(e){Y(this,"map");Y(this,"active");Y(this,"eventListenersSuccess");Y(this,"eventListenersFailure");Y(this,"cursor");Y(this,"onMouseMove",e=>{this.active&&(this.cursor=Gt(e.lngLat.toArray()))});Y(this,"onClick",()=>{if(this.active&&this.cursor){for(let e of this.eventListenersSuccess)e(this.cursor);this.stop()}});Y(this,"onKeyDown",e=>{this.active&&e.key=="Escape"&&(e.preventDefault(),this.cancel())});Y(this,"setHandlers",e=>{e.mapHandlers.mousemove=this.onMouseMove,e.mapHandlers.click=this.onClick,e.documentHandlers.keydown=this.onKeyDown});this.map=e,this.active=!1,this.eventListenersSuccess=[],this.eventListenersFailure=[],this.cursor=null}cancel(){for(let e of this.eventListenersFailure)e();this.stop()}addEventListenerSuccess(e){this.eventListenersSuccess.push(e)}addEventListenerFailure(e){this.eventListenersFailure.push(e)}start(){this.map.getCanvas().style.cursor="crosshair",this.setActivity(!0)}stop(){this.map.getCanvas().style.cursor="inherit",this.cursor=null,this.setActivity(!1)}setActivity(e){this.active=e,Dt.set(e)}}function Gs(r){let e;return{c(){e=$("li"),e.textContent="Click to add a new point"},m(t,n){w(t,e,n)},d(t){t&&k(e)}}}function Ys(r){let e;return{c(){e=$("li"),e.textContent="Click to move the point here"},m(t,n){w(t,e,n)},d(t){t&&k(e)}}}function Js(r){let e,t,n;function i(a,l){return a[1]?Ys:Gs}let o=i(r),s=o(r);return{c(){e=$("ul"),s.c(),t=A(),n=$("li"),n.innerHTML="Press Escape to cancel"},m(a,l){w(a,e,l),s.m(e,null),M(e,t),M(e,n)},p(a,l){o!==(o=i(a))&&(s.d(1),s=o(a),s&&(s.c(),s.m(e,t)))},d(a){a&&k(e),s.d()}}}function zs(r){let e,t,n,i,o,s;return e=new _t({props:{label:"Help",$$slots:{default:[Js]},$$scope:{ctx:r}}}),{c(){F(e.$$.fragment),t=A(),n=$("button"),n.textContent="Cancel",R(n,"type","button")},m(a,l){P(e,a,l),w(a,t,l),w(a,n,l),i=!0,o||(s=G(n,"click",r[2]),o=!0)},p(a,[l]){const u={};l&10&&(u.$$scope={dirty:l,ctx:a}),e.$set(u)},i(a){i||(E(e.$$.fragment,a),i=!0)},o(a){C(e.$$.fragment,a),i=!1},d(a){a&&(k(t),k(n)),B(e,a),o=!1,s()}}}function Xs(r,e,t){let{pointTool:n}=e,{editingExisting:i}=e;const o=()=>n.cancel();return r.$$set=s=>{"pointTool"in s&&t(0,n=s.pointTool),"editingExisting"in s&&t(1,i=s.editingExisting)},[n,i,o]}class Ti extends Z{constructor(e){super(),Q(this,e,Xs,zs,ee,{pointTool:0,editingExisting:1})}}function et(r){if(!r)throw new Error("coord is required");if(!Array.isArray(r)){if(r.type==="Feature"&&r.geometry!==null&&r.geometry.type==="Point")return r.geometry.coordinates;if(r.type==="Point")return r.coordinates}if(Array.isArray(r)&&r.length>=2&&!Array.isArray(r[0])&&!Array.isArray(r[1]))return r;throw new Error("coord must be GeoJSON Point or an Array of numbers")}function He(r){if(Array.isArray(r))return r;if(r.type==="Feature"){if(r.geometry!==null)return r.geometry.coordinates}else if(r.coordinates)return r.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function qn(r,e){return r.type==="FeatureCollection"?"FeatureCollection":r.type==="GeometryCollection"?"GeometryCollection":r.type==="Feature"&&r.geometry!==null?r.geometry.type:r.type}function Ai(r,e,t){if(t===void 0&&(t={}),t.final===!0)return Ws(r,e);var n=et(r),i=et(e),o=Pe(n[0]),s=Pe(i[0]),a=Pe(n[1]),l=Pe(i[1]),u=Math.sin(s-o)*Math.cos(l),f=Math.cos(a)*Math.sin(l)-Math.sin(a)*Math.cos(l)*Math.cos(s-o);return On(Math.atan2(u,f))}function Ws(r,e){var t=Ai(e,r);return t=(t+180)%360,t}function Xe(r,e,t){t===void 0&&(t={});var n=et(r),i=et(e),o=Pe(i[1]-n[1]),s=Pe(i[0]-n[0]),a=Pe(n[1]),l=Pe(i[1]),u=Math.pow(Math.sin(o/2),2)+Math.pow(Math.sin(s/2),2)*Math.cos(a)*Math.cos(l);return ho(2*Math.atan2(Math.sqrt(u),Math.sqrt(1-u)),t.units)}function Lr(r,e,t,n){n===void 0&&(n={});var i=et(r),o=Pe(i[0]),s=Pe(i[1]),a=Pe(t),l=go(e,n.units),u=Math.asin(Math.sin(s)*Math.cos(l)+Math.cos(s)*Math.sin(l)*Math.cos(a)),f=o+Math.atan2(Math.sin(a)*Math.sin(l)*Math.cos(s),Math.cos(l)-Math.sin(s)*Math.sin(u)),c=On(f),d=On(u);return ht([c,d],n.properties)}function Gn(r){if(!r)throw new Error("geojson is required");var e=[];return nr(r,function(t){Vs(t,e)}),Qe(e)}function Vs(r,e){var t=[],n=r.geometry;if(n!==null){switch(n.type){case"Polygon":t=He(n);break;case"LineString":t=[He(n)]}t.forEach(function(i){var o=Ks(i,r.properties);o.forEach(function(s){s.id=e.length,e.push(s)})})}}function Ks(r,e){var t=[];return r.reduce(function(n,i){var o=gt([n,i],e);return o.bbox=Zs(n,i),t.push(o),i}),t}function Zs(r,e){var t=r[0],n=r[1],i=e[0],o=e[1],s=ti?t:i,u=n>o?n:o;return[s,a,l,u]}var sr={exports:{}},xi={exports:{}};(function(r,e){(function(t,n){r.exports=n()})(_o,function(){function t(p,m,y,S,L){(function O(x,I,N,j,D){for(;j>N;){if(j-N>600){var T=j-N+1,H=I-N+1,ae=Math.log(T),ke=.5*Math.exp(2*ae/3),Ee=.5*Math.sqrt(ae*ke*(T-ke)/T)*(H-T/2<0?-1:1),ue=Math.max(N,Math.floor(I-H*ke/T+Ee)),ne=Math.min(j,Math.floor(I+(T-H)*ke/T+Ee));O(x,I,ue,ne,D)}var K=x[I],Le=N,me=j;for(n(x,N,I),D(x[j],K)>0&&n(x,N,j);Le0;)me--}D(x[N],K)===0?n(x,N,me):n(x,++me,j),me<=I&&(N=me+1),I<=me&&(j=me-1)}})(p,m,y||0,S||p.length-1,L||i)}function n(p,m,y){var S=p[m];p[m]=p[y],p[y]=S}function i(p,m){return pm?1:0}var o=function(p){p===void 0&&(p=9),this._maxEntries=Math.max(4,p),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function s(p,m,y){if(!y)return m.indexOf(p);for(var S=0;S=p.minX&&m.maxY>=p.minY}function b(p){return{children:p,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function g(p,m,y,S,L){for(var O=[m,y];O.length;)if(!((y=O.pop())-(m=O.pop())<=S)){var x=m+Math.ceil((y-m)/S/2)*S;t(p,x,m,y,L),O.push(m,x,x,y)}}return o.prototype.all=function(){return this._all(this.data,[])},o.prototype.search=function(p){var m=this.data,y=[];if(!_(p,m))return y;for(var S=this.toBBox,L=[];m;){for(var O=0;O=0&&L[m].children.length>this._maxEntries;)this._split(L,m),m--;this._adjustParentBBoxes(S,L,m)},o.prototype._split=function(p,m){var y=p[m],S=y.children.length,L=this._minEntries;this._chooseSplitAxis(y,L,S);var O=this._chooseSplitIndex(y,L,S),x=b(y.children.splice(O,y.children.length-O));x.height=y.height,x.leaf=y.leaf,a(y,this.toBBox),a(x,this.toBBox),m?p[m-1].children.push(x):this._splitRoot(y,x)},o.prototype._splitRoot=function(p,m){this.data=b([p,m]),this.data.height=p.height+1,this.data.leaf=!1,a(this.data,this.toBBox)},o.prototype._chooseSplitIndex=function(p,m,y){for(var S,L,O,x,I,N,j,D=1/0,T=1/0,H=m;H<=y-m;H++){var ae=l(p,0,H,this.toBBox),ke=l(p,H,y,this.toBBox),Ee=(L=ae,O=ke,x=void 0,I=void 0,N=void 0,j=void 0,x=Math.max(L.minX,O.minX),I=Math.max(L.minY,O.minY),N=Math.min(L.maxX,O.maxX),j=Math.min(L.maxY,O.maxY),Math.max(0,N-x)*Math.max(0,j-I)),ue=d(ae)+d(ke);Ee=m;D--){var T=p.children[D];u(x,p.leaf?L(T):T),I+=h(x)}return I},o.prototype._adjustParentBBoxes=function(p,m,y){for(var S=y;S>=0;S--)u(m[S],p)},o.prototype._condense=function(p){for(var m=p.length-1,y=void 0;m>=0;m--)p[m].children.length===0?m>0?(y=p[m-1].children).splice(y.indexOf(p[m]),1):this.clear():a(p[m],this.toBBox)},o})})(xi);var Qs=xi.exports;const el=rr(mo),tl=rr(bo),nl=rr(yo);var Ne=Qs,Oi=el,Ri=tl,ut=nl.default,rl=Ri.featureEach;Ri.coordEach;Oi.polygon;var Tr=Oi.featureCollection;function Ii(r){var e=new Ne(r);return e.insert=function(t){if(t.type!=="Feature")throw new Error("invalid feature");return t.bbox=t.bbox?t.bbox:ut(t),Ne.prototype.insert.call(this,t)},e.load=function(t){var n=[];return Array.isArray(t)?t.forEach(function(i){if(i.type!=="Feature")throw new Error("invalid features");i.bbox=i.bbox?i.bbox:ut(i),n.push(i)}):rl(t,function(i){if(i.type!=="Feature")throw new Error("invalid features");i.bbox=i.bbox?i.bbox:ut(i),n.push(i)}),Ne.prototype.load.call(this,n)},e.remove=function(t,n){if(t.type!=="Feature")throw new Error("invalid feature");return t.bbox=t.bbox?t.bbox:ut(t),Ne.prototype.remove.call(this,t,n)},e.clear=function(){return Ne.prototype.clear.call(this)},e.search=function(t){var n=Ne.prototype.search.call(this,this.toBBox(t));return Tr(n)},e.collides=function(t){return Ne.prototype.collides.call(this,this.toBBox(t))},e.all=function(){var t=Ne.prototype.all.call(this);return Tr(t)},e.toJSON=function(){return Ne.prototype.toJSON.call(this)},e.fromJSON=function(t){return Ne.prototype.fromJSON.call(this,t)},e.toBBox=function(t){var n;if(t.bbox)n=t.bbox;else if(Array.isArray(t)&&t.length===4)n=t;else if(Array.isArray(t)&&t.length===6)n=[t[0],t[1],t[3],t[4]];else if(t.type==="Feature")n=ut(t);else if(t.type==="FeatureCollection")n=ut(t);else throw new Error("invalid geojson");return{minX:n[0],minY:n[1],maxX:n[2],maxY:n[3]}},e}sr.exports=Ii;sr.exports.default=Ii;var il=sr.exports;const lr=vo(il);function Fi(r,e){var t={},n=[];if(r.type==="LineString"&&(r=fr(r)),e.type==="LineString"&&(e=fr(e)),r.type==="Feature"&&e.type==="Feature"&&r.geometry!==null&&e.geometry!==null&&r.geometry.type==="LineString"&&e.geometry.type==="LineString"&&r.geometry.coordinates.length===2&&e.geometry.coordinates.length===2){var i=Ar(r,e);return i&&n.push(i),Qe(n)}var o=lr();return o.load(Gn(e)),tn(Gn(r),function(s){tn(o.search(s),function(a){var l=Ar(s,a);if(l){var u=He(l).join(",");t[u]||(t[u]=!0,n.push(l))}})}),Qe(n)}function Ar(r,e){var t=He(r),n=He(e);if(t.length!==2)throw new Error(" line1 must only contain 2 coordinates");if(n.length!==2)throw new Error(" line2 must only contain 2 coordinates");var i=t[0][0],o=t[0][1],s=t[1][0],a=t[1][1],l=n[0][0],u=n[0][1],f=n[1][0],c=n[1][1],d=(c-u)*(s-i)-(f-l)*(a-o),h=(f-l)*(o-u)-(c-u)*(i-l),v=(s-i)*(o-u)-(a-o)*(i-l);if(d===0)return null;var _=h/d,b=v/d;if(_>=0&&_<=1&&b>=0&&b<=1){var g=i+_*(s-i),p=o+_*(a-o);return ht([g,p])}return null}function Bt(r,e,t){t===void 0&&(t={});var n=ht([1/0,1/0],{dist:1/0}),i=0;return nr(r,function(o){for(var s=He(o),a=0;a0&&(b=_.features[0],b.properties.dist=Xe(e,b,t),b.properties.location=i+Xe(l,b,t)),l.properties.dist{if(this.active&&!this.dragFrom)this.recalculateHovering(e);else if(this.active&&this.dragFrom){if(this.hover=="polygon"){let t=this.dragFrom[0]-e.lngLat.lng,n=this.dragFrom[1]-e.lngLat.lat;for(let i of this.points)i[0]-=t,i[1]-=n}else this.points[this.hover]=e.lngLat.toArray();this.dragFrom=e.lngLat.toArray(),this.redraw()}});Y(this,"onClick",e=>{if(this.active&&this.cursor){let t=[];if(xr(this.points).forEach((n,i)=>{t.push([i+1,Bt(n,this.cursor).properties.dist])}),t.sort((n,i)=>n[1]-i[1]),t.length>0){let n=t[0][0];this.points.splice(n,0,this.cursor.geometry.coordinates),this.hover=n}else this.points.push(this.cursor.geometry.coordinates),this.hover=this.points.length-1;this.redraw(),this.pointsUpdated()}else this.active&&typeof this.hover=="number"&&(this.points.splice(this.hover,1),this.hover=null,this.redraw(),this.pointsUpdated(),this.recalculateHovering(e))});Y(this,"onDoubleClick",e=>{this.active&&(e.preventDefault(),this.cursor=Gt(e.lngLat.toArray()),this.onClick(e),this.finish())});Y(this,"onMouseDown",e=>{this.active&&!this.dragFrom&&this.hover!=null&&(e.preventDefault(),this.cursor=null,this.dragFrom=e.lngLat.toArray(),this.redraw())});Y(this,"onMouseUp",()=>{this.active&&this.dragFrom&&(this.dragFrom=null,this.redraw(),this.pointsUpdated())});Y(this,"onKeypress",e=>{this.active&&e.key=="Enter"&&(e.preventDefault(),this.finish())});Y(this,"onKeyDown",e=>{this.active&&e.key=="Escape"&&(e.preventDefault(),this.cancel())});Y(this,"setHandlers",e=>{e.mapHandlers.mousemove=this.onMouseMove,e.mapHandlers.click=this.onClick,e.mapHandlers.dblclick=this.onDoubleClick,e.mapHandlers.mousedown=this.onMouseDown,e.mapHandlers.mouseup=this.onMouseUp,e.documentHandlers.keypress=this.onKeypress,e.documentHandlers.keydown=this.onKeyDown});this.map=e,this.active=!1,this.eventListenersSuccess=[],this.eventListenersUpdated=[],this.eventListenersFailure=[],this.points=[],this.cursor=null,this.hover=null,this.dragFrom=null,lt(e,ft,tt()),Zn(e,{id:"edit-polygon-fill",source:ft,filter:Qn,color:"red",opacity:["case",["boolean",["get","hover"],"false"],1,.5]}),Ft(e,{id:"edit-polygon-lines",source:ft,filter:er,color:"black",width:8,opacity:.5}),_n(e,{id:"edit-polygon-vertices",source:ft,filter:tr,color:Jt.hovering,radius:mi,opacity:["case",["boolean",["get","hover"],"false"],1,.5]})}finish(){let e=this.polygonFeature();if(e)for(let t of this.eventListenersSuccess)t(e);else for(let t of this.eventListenersFailure)t();this.stop()}cancel(){for(let e of this.eventListenersFailure)e();this.stop()}addEventListenerSuccess(e){this.eventListenersSuccess.push(e)}addEventListenerUpdated(e){this.eventListenersUpdated.push(e)}addEventListenerFailure(e){this.eventListenersFailure.push(e)}tearDown(){this.map.removeLayer("edit-polygon-vertices"),this.map.removeLayer("edit-polygon-fill"),this.map.removeLayer("edit-polygon-lines"),this.map.removeSource(ft)}startNew(){this.setActivity(!0),this.map.doubleClickZoom.disable()}editExisting(e){this.setActivity(!0),this.map.doubleClickZoom.disable(),this.points=JSON.parse(JSON.stringify(e.geometry.coordinates[0])),this.points.pop(),this.redraw()}setActivity(e){this.active=e,Dt.set(e)}stop(){this.map.getCanvas().style.cursor="inherit",this.map.doubleClickZoom.enable(),this.points=[],this.cursor=null,this.setActivity(!1),this.hover=null,this.dragFrom=null,this.redraw()}redraw(){let e=tt();this.points.forEach((i,o)=>{let s=Gt(i);s.properties.hover=this.hover==o,s.properties.idx=o,e.features.push(s)}),e.features=e.features.concat(xr(this.points));let t=this.polygonFeature();t&&(t.properties.hover=this.hover=="polygon",e.features.push(t)),this.map.getSource(ft).setData(e);let n="crosshair";this.hover!=null&&(n=this.dragFrom?"grabbing":"pointer"),this.map.getCanvas().style.cursor=n}pointsUpdated(){let e=this.polygonFeature();if(e)for(let t of this.eventListenersUpdated)t(e)}recalculateHovering(e){this.cursor=null,this.hover=null;for(let t of this.map.queryRenderedFeatures(e.point,{layers:["edit-polygon-fill","edit-polygon-vertices"]}))if(t.geometry.type=="Polygon"){this.hover="polygon";break}else if(t.geometry.type=="Point"&&Object.hasOwn(t.properties,"idx")){this.hover=t.properties.idx;break}this.hover==null&&(this.cursor=Gt(e.lngLat.toArray())),this.redraw()}polygonFeature(){if(this.points.length<3)return null;let e=this.points.map(Yt),t=[JSON.parse(JSON.stringify(e))];return t[0].push(JSON.parse(JSON.stringify(t[0][0]))),{type:"Feature",geometry:{type:"Polygon",coordinates:t},properties:{}}}}function xr(r){let e=[];for(let t=0;t=3&&e.push({type:"Feature",geometry:{type:"LineString",coordinates:[r[r.length-1],r[0]]},properties:{}}),e}function sl(r){let e;return{c(){e=$("ul"),e.innerHTML="

  • Click the map to add a vertex
  • Click a vertex to delete it
  • Drag a vertex or the polygon to move it
  • Press Enter or double click to finish
  • Press Escape to cancel
  • "},m(t,n){w(t,e,n)},p:U,d(t){t&&k(e)}}}function ll(r){let e,t,n,i,o,s,a,l,u;return e=new _t({props:{label:"Help",$$slots:{default:[sl]},$$scope:{ctx:r}}}),{c(){F(e.$$.fragment),t=A(),n=$("div"),i=$("button"),i.textContent="Finish",o=A(),s=$("button"),s.textContent="Cancel",R(i,"type","button"),R(s,"type","button"),Te(n,"display","flex"),Te(n,"justify-content","space-between")},m(f,c){P(e,f,c),w(f,t,c),w(f,n,c),M(n,i),M(n,o),M(n,s),a=!0,l||(u=[G(i,"click",r[1]),G(s,"click",r[2])],l=!0)},p(f,[c]){const d={};c&8&&(d.$$scope={dirty:c,ctx:f}),e.$set(d)},i(f){a||(E(e.$$.fragment,f),a=!0)},o(f){C(e.$$.fragment,f),a=!1},d(f){f&&(k(t),k(n)),B(e,f),l=!1,Ie(u)}}}function al(r,e,t){let{polygonTool:n}=e;const i=()=>n.finish(),o=()=>n.cancel();return r.$$set=s=>{"polygonTool"in s&&t(0,n=s.polygonTool)},[n,i,o]}class Pi extends Z{constructor(e){super(),Q(this,e,al,ll,ee,{polygonTool:0})}}let W;const qe=new Array(32).fill(void 0);qe.push(void 0,null,!0,!1);function V(r){return qe[r]}let At=qe.length;function ul(r){r<36||(qe[r]=At,At=r)}function Yn(r){const e=V(r);return ul(r),e}const Bi=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});Bi.decode();let Wt=new Uint8Array;function xt(){return Wt.byteLength===0&&(Wt=new Uint8Array(W.memory.buffer)),Wt}function ot(r,e){return Bi.decode(xt().subarray(r,r+e))}function $e(r){At===qe.length&&qe.push(qe.length+1);const e=At;return At=qe[e],qe[e]=r,e}function Mn(r){return r==null}let Vt=new Float64Array;function fl(){return Vt.byteLength===0&&(Vt=new Float64Array(W.memory.buffer)),Vt}let Kt=new Int32Array;function Se(){return Kt.byteLength===0&&(Kt=new Int32Array(W.memory.buffer)),Kt}let Ke=0;const Zt=new TextEncoder("utf-8"),cl=typeof Zt.encodeInto=="function"?function(r,e){return Zt.encodeInto(r,e)}:function(r,e){const t=Zt.encode(r);return e.set(t),{read:r.length,written:t.length}};function qt(r,e,t){if(t===void 0){const a=Zt.encode(r),l=e(a.length);return xt().subarray(l,l+a.length).set(a),Ke=a.length,l}let n=r.length,i=e(n);const o=xt();let s=0;for(;s127)break;o[i+s]=a}if(s!==n){s!==0&&(r=r.slice(s)),i=t(i,n,n=s+r.length*3);const a=xt().subarray(i+s,i+n),l=cl(r,a);s+=l.written}return Ke=s,i}function Jn(r){const e=typeof r;if(e=="number"||e=="boolean"||r==null)return`${r}`;if(e=="string")return`"${r}"`;if(e=="symbol"){const i=r.description;return i==null?"Symbol":`Symbol(${i})`}if(e=="function"){const i=r.name;return typeof i=="string"&&i.length>0?`Function(${i})`:"Function"}if(Array.isArray(r)){const i=r.length;let o="[";i>0&&(o+=Jn(r[0]));for(let s=1;s1)n=t[1];else return toString.call(r);if(n=="Object")try{return"Object("+JSON.stringify(r)+")"}catch{return"Object"}return r instanceof Error?`${r.name}: ${r.message} -${r.stack}`:n}function pl(r,e){const t=e(r.length*1);return xt().set(r,t/1),Ke=r.length,t}function $n(r,e){try{return r.apply(this,e)}catch(t){W.__wbindgen_exn_store($e(t))}}class dn{static __wrap(e){const t=Object.create(dn.prototype);return t.ptr=e,t}__destroy_into_raw(){const e=this.ptr;return this.ptr=0,e}free(){const e=this.__destroy_into_raw();W.__wbg_jsroutesnapper_free(e)}constructor(e){try{const o=W.__wbindgen_add_to_stack_pointer(-16),s=pl(e,W.__wbindgen_malloc),a=Ke;W.jsroutesnapper_new(o,s,a);var t=Se()[o/4+0],n=Se()[o/4+1],i=Se()[o/4+2];if(i)throw Yn(n);return dn.__wrap(t)}finally{W.__wbindgen_add_to_stack_pointer(16)}}setConfig(e){W.jsroutesnapper_setConfig(this.ptr,$e(e))}getConfig(){try{const n=W.__wbindgen_add_to_stack_pointer(-16);W.jsroutesnapper_getConfig(n,this.ptr);var e=Se()[n/4+0],t=Se()[n/4+1];return ot(e,t)}finally{W.__wbindgen_add_to_stack_pointer(16),W.__wbindgen_free(e,t)}}toFinalFeature(){try{const n=W.__wbindgen_add_to_stack_pointer(-16);W.jsroutesnapper_toFinalFeature(n,this.ptr);var e=Se()[n/4+0],t=Se()[n/4+1];let i;return e!==0&&(i=ot(e,t).slice(),W.__wbindgen_free(e,t*1)),i}finally{W.__wbindgen_add_to_stack_pointer(16)}}renderGeojson(){try{const n=W.__wbindgen_add_to_stack_pointer(-16);W.jsroutesnapper_renderGeojson(n,this.ptr);var e=Se()[n/4+0],t=Se()[n/4+1];return ot(e,t)}finally{W.__wbindgen_add_to_stack_pointer(16),W.__wbindgen_free(e,t)}}setSnapMode(e){W.jsroutesnapper_setSnapMode(this.ptr,e)}onMouseMove(e,t,n){return W.jsroutesnapper_onMouseMove(this.ptr,e,t,n)!==0}onClick(){W.jsroutesnapper_onClick(this.ptr)}onDragStart(){return W.jsroutesnapper_onDragStart(this.ptr)!==0}onMouseUp(){return W.jsroutesnapper_onMouseUp(this.ptr)!==0}clearState(){W.jsroutesnapper_clearState(this.ptr)}editExisting(e){try{const i=W.__wbindgen_add_to_stack_pointer(-16);W.jsroutesnapper_editExisting(i,this.ptr,$e(e));var t=Se()[i/4+0],n=Se()[i/4+1];if(n)throw Yn(t)}finally{W.__wbindgen_add_to_stack_pointer(16)}}}async function dl(r,e){if(typeof Response=="function"&&r instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(r,e)}catch(n){if(r.headers.get("Content-Type")!="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",n);else throw n}const t=await r.arrayBuffer();return await WebAssembly.instantiate(t,e)}else{const t=await WebAssembly.instantiate(r,e);return t instanceof WebAssembly.Instance?{instance:t,module:r}:t}}function hl(){const r={};return r.wbg={},r.wbg.__wbindgen_object_drop_ref=function(e){Yn(e)},r.wbg.__wbindgen_boolean_get=function(e){const t=V(e);return typeof t=="boolean"?t?1:0:2},r.wbg.__wbindgen_error_new=function(e,t){const n=new Error(ot(e,t));return $e(n)},r.wbg.__wbindgen_string_new=function(e,t){const n=ot(e,t);return $e(n)},r.wbg.__wbindgen_is_object=function(e){const t=V(e);return typeof t=="object"&&t!==null},r.wbg.__wbindgen_is_undefined=function(e){return V(e)===void 0},r.wbg.__wbindgen_in=function(e,t){return V(e)in V(t)},r.wbg.__wbindgen_number_get=function(e,t){const n=V(t),i=typeof n=="number"?n:void 0;fl()[e/8+1]=Mn(i)?0:i,Se()[e/4+0]=!Mn(i)},r.wbg.__wbindgen_jsval_loose_eq=function(e,t){return V(e)==V(t)},r.wbg.__wbindgen_string_get=function(e,t){const n=V(t),i=typeof n=="string"?n:void 0;var o=Mn(i)?0:qt(i,W.__wbindgen_malloc,W.__wbindgen_realloc),s=Ke;Se()[e/4+1]=s,Se()[e/4+0]=o},r.wbg.__wbg_String_91fba7ded13ba54c=function(e,t){const n=String(V(t)),i=qt(n,W.__wbindgen_malloc,W.__wbindgen_realloc),o=Ke;Se()[e/4+1]=o,Se()[e/4+0]=i},r.wbg.__wbindgen_object_clone_ref=function(e){const t=V(e);return $e(t)},r.wbg.__wbg_getwithrefkey_15c62c2b8546208d=function(e,t){const n=V(e)[V(t)];return $e(n)},r.wbg.__wbg_debug_f15cb542ea509609=function(e){console.debug(V(e))},r.wbg.__wbg_error_ef9a0be47931175f=function(e){console.error(V(e))},r.wbg.__wbg_info_2874fdd5393f35ce=function(e){console.info(V(e))},r.wbg.__wbg_log_4b5638ad60bdc54a=function(e){console.log(V(e))},r.wbg.__wbg_warn_58110c4a199df084=function(e){console.warn(V(e))},r.wbg.__wbg_get_57245cc7d7c7619d=function(e,t){const n=V(e)[t>>>0];return $e(n)},r.wbg.__wbg_length_6e3bbe7c8bd4dbd8=function(e){return V(e).length},r.wbg.__wbindgen_is_function=function(e){return typeof V(e)=="function"},r.wbg.__wbg_next_579e583d33566a86=function(e){const t=V(e).next;return $e(t)},r.wbg.__wbg_next_aaef7c8aa5e212ac=function(){return $n(function(e){const t=V(e).next();return $e(t)},arguments)},r.wbg.__wbg_done_1b73b0672e15f234=function(e){return V(e).done},r.wbg.__wbg_value_1ccc36bc03462d71=function(e){const t=V(e).value;return $e(t)},r.wbg.__wbg_iterator_6f9d4f28845f426c=function(){return $e(Symbol.iterator)},r.wbg.__wbg_get_765201544a2b6869=function(){return $n(function(e,t){const n=Reflect.get(V(e),V(t));return $e(n)},arguments)},r.wbg.__wbg_call_97ae9d8645dc388b=function(){return $n(function(e,t){const n=V(e).call(V(t));return $e(n)},arguments)},r.wbg.__wbg_isArray_27c46c67f498e15d=function(e){return Array.isArray(V(e))},r.wbg.__wbg_instanceof_ArrayBuffer_e5e48f4762c5610b=function(e){let t;try{t=V(e)instanceof ArrayBuffer}catch{t=!1}return t},r.wbg.__wbg_buffer_3f3d764d4747d564=function(e){const t=V(e).buffer;return $e(t)},r.wbg.__wbg_new_8c3f0052272a457a=function(e){const t=new Uint8Array(V(e));return $e(t)},r.wbg.__wbg_set_83db9690f9353e79=function(e,t,n){V(e).set(V(t),n>>>0)},r.wbg.__wbg_length_9e1ae1900cb0fbd5=function(e){return V(e).length},r.wbg.__wbg_instanceof_Uint8Array_971eeda69eb75003=function(e){let t;try{t=V(e)instanceof Uint8Array}catch{t=!1}return t},r.wbg.__wbg_new_abda76e883ba8a5f=function(){const e=new Error;return $e(e)},r.wbg.__wbg_stack_658279fe44541cf6=function(e,t){const n=V(t).stack,i=qt(n,W.__wbindgen_malloc,W.__wbindgen_realloc),o=Ke;Se()[e/4+1]=o,Se()[e/4+0]=i},r.wbg.__wbg_error_f851667af71bcfc6=function(e,t){try{console.error(ot(e,t))}finally{W.__wbindgen_free(e,t)}},r.wbg.__wbindgen_debug_string=function(e,t){const n=Jn(V(t)),i=qt(n,W.__wbindgen_malloc,W.__wbindgen_realloc),o=Ke;Se()[e/4+1]=o,Se()[e/4+0]=i},r.wbg.__wbindgen_throw=function(e,t){throw new Error(ot(e,t))},r.wbg.__wbindgen_memory=function(){const e=W.memory;return $e(e)},r}function gl(r,e){return W=r.exports,Ni.__wbindgen_wasm_module=e,Vt=new Float64Array,Kt=new Int32Array,Wt=new Uint8Array,W}async function Ni(r){typeof r>"u"&&(r="/atip/browse_dropdown_filters/assets/route_snapper_bg.wasm");const e=hl();(typeof r=="string"||typeof Request=="function"&&r instanceof Request||typeof URL=="function"&&r instanceof URL)&&(r=fetch(r));const{instance:t,module:n}=await dl(await r,e);return gl(t,n)}const wt="route-snapper",Or=10,_l=30;class ml{constructor(e,t,n){Y(this,"map");Y(this,"inner");Y(this,"active");Y(this,"eventListenersSuccess");Y(this,"eventListenersUpdated");Y(this,"eventListenersFailure");Y(this,"onMouseMove",e=>{if(!this.active)return;const t=[e.point.x-_l,e.point.y],n=this.map.unproject(e.point).distanceTo(this.map.unproject(t));this.inner.onMouseMove(e.lngLat.lng,e.lngLat.lat,n)&&(this.redraw(),this.dataUpdated())});Y(this,"onClick",()=>{this.active&&(this.inner.onClick(),this.redraw(),this.dataUpdated())});Y(this,"onDoubleClick",e=>{this.active&&(e.preventDefault(),this.inner.onClick(),this.finish())});Y(this,"onDragStart",()=>{this.active&&this.inner.onDragStart()&&this.map.dragPan.disable()});Y(this,"onMouseUp",()=>{this.active&&this.inner.onMouseUp()&&this.map.dragPan.enable()});Y(this,"onKeyPress",e=>{this.active&&e.key=="Enter"&&(e.preventDefault(),this.finish())});Y(this,"onKeyDown",e=>{this.active&&(e.key=="Shift"?(e.preventDefault(),this.inner.setSnapMode(!1),this.redraw()):e.key=="Escape"&&(e.preventDefault(),this.cancel()))});Y(this,"onKeyUp",e=>{this.active&&e.key=="Shift"&&(e.preventDefault(),this.inner.setSnapMode(!0),this.redraw())});Y(this,"setHandlers",e=>{e.mapHandlers.mousemove=this.onMouseMove,e.mapHandlers.click=this.onClick,e.mapHandlers.dblclick=this.onDoubleClick,e.mapHandlers.dragstart=this.onDragStart,e.mapHandlers.mouseup=this.onMouseUp,e.documentHandlers.keypress=this.onKeyPress,e.documentHandlers.keydown=this.onKeyDown,e.documentHandlers.keyup=this.onKeyUp});this.map=e,console.time("Deserialize and setup JsRouteSnapper"),this.inner=new dn(t),console.timeEnd("Deserialize and setup JsRouteSnapper"),this.active=!1,this.eventListenersSuccess=[],this.eventListenersUpdated=[],this.eventListenersFailure=[],lt(e,wt,tt()),_n(e,{id:"route-points",source:wt,filter:tr,color:["match",["get","type"],"hovered","green","important","red","black"],radius:["match",["get","type"],"unimportant",Or/2,Or]}),Ft(e,{id:"route-lines",source:wt,filter:er,color:"black",width:2.5}),Zn(e,{id:"route-polygons",source:wt,filter:Qn,color:"black",opacity:.5}),n()}startRoute(){this.active||(this.setActivity(!0),this.map.boxZoom.disable(),this.map.doubleClickZoom.disable())}startArea(){this.active||(this.inner.setConfig({avoid_doubling_back:!0,area_mode:!0,extend_route:!0}),this.setActivity(!0),this.map.boxZoom.disable(),this.map.doubleClickZoom.disable())}setActivity(e){this.active=e,Dt.set(e)}stop(){this.setActivity(!1),this.inner.clearState(),this.redraw(),this.map.boxZoom.enable(),this.map.doubleClickZoom.enable()}editExistingRoute(e){this.active&&window.alert("Bug: editExistingRoute called when tool is already active"),e.properties.waypoints||(e.properties.waypoints=[{lon:e.geometry.coordinates[0][0],lat:e.geometry.coordinates[0][1],snapped:!0},{lon:e.geometry.coordinates[e.geometry.coordinates.length-1][0],lat:e.geometry.coordinates[e.geometry.coordinates.length-1][1],snapped:!0}]),this.startRoute(),this.inner.editExisting(e.properties.waypoints),this.redraw()}editExistingArea(e){this.active&&window.alert("Bug: editExistingArea called when tool is already active"),e.properties.waypoints||window.alert("Bug: editExistingArea called for a polygon not produced by the route-snapper"),this.startArea(),this.inner.editExisting(e.properties.waypoints),this.redraw()}tearDown(){this.map.removeLayer("route-points"),this.map.removeLayer("route-lines"),this.map.removeLayer("route-polygons"),this.map.removeSource("route-snapper")}addEventListenerSuccess(e){this.eventListenersSuccess.push(e)}addEventListenerUpdated(e){this.eventListenersUpdated.push(e)}addEventListenerFailure(e){this.eventListenersFailure.push(e)}isActive(){return this.active}finish(){let e=this.inner.toFinalFeature();if(e)for(let t of this.eventListenersSuccess)t(JSON.parse(e));else for(let t of this.eventListenersFailure)t();this.stop()}cancel(){this.inner.clearState(),this.finish()}setRouteConfig(e){this.inner.setConfig({...e,area_mode:!1}),this.redraw()}redraw(){this.map.getSource(wt).setData(JSON.parse(this.inner.renderGeojson()))}dataUpdated(){let e=this.inner.toFinalFeature();if(e)for(let t of this.eventListenersUpdated)t(JSON.parse(e))}}function bl(r){let e;return{c(){e=$("ul"),e.innerHTML="
  • Click green points on the transport network to create snapped routes
  • Hold Shift to draw a point anywhere
  • Click and drag any point to move it
  • Click a red waypoint to delete it
  • Press Enter or double click to finish
  • Press Escape to cancel
  • "},m(t,n){w(t,e,n)},p:U,d(t){t&&k(e)}}}function yl(r){let e,t,n,i,o,s,a,l,u,f,c,d,h,v,_,b,g,p,m;return e=new _t({props:{label:"Help",$$slots:{default:[bl]},$$scope:{ctx:r}}}),{c(){F(e.$$.fragment),t=A(),n=$("label"),i=$("input"),o=ie(` - Add points to end`),s=A(),a=$("br"),l=A(),u=$("label"),f=$("input"),c=ie(` - Avoid doubling back`),d=A(),h=$("div"),v=$("button"),v.textContent="Finish",_=A(),b=$("button"),b.textContent="Cancel",R(i,"type","checkbox"),R(n,"title","Keep clicking to add more points to the end of the route"),R(f,"type","checkbox"),R(u,"title","Try to make the route avoid using the same streets with multiple waypoints"),R(v,"type","button"),R(b,"type","button"),Te(h,"display","flex"),Te(h,"justify-content","space-between")},m(y,S){P(e,y,S),w(y,t,S),w(y,n,S),M(n,i),i.checked=r[0],M(n,o),w(y,s,S),w(y,a,S),w(y,l,S),w(y,u,S),M(u,f),f.checked=r[2].avoidDoublingBack,M(u,c),w(y,d,S),w(y,h,S),M(h,v),M(h,_),M(h,b),g=!0,p||(m=[G(i,"change",r[3]),G(f,"change",r[4]),G(v,"click",r[5]),G(b,"click",r[6])],p=!0)},p(y,[S]){const L={};S&128&&(L.$$scope={dirty:S,ctx:y}),e.$set(L),S&1&&(i.checked=y[0]),S&4&&(f.checked=y[2].avoidDoublingBack)},i(y){g||(E(e.$$.fragment,y),g=!0)},o(y){C(e.$$.fragment,y),g=!1},d(y){y&&(k(t),k(n),k(s),k(a),k(l),k(u),k(d),k(h)),B(e,y),p=!1,Ie(m)}}}function vl(r,e,t){let n;z(r,Lt,f=>t(2,n=f));let{routeTool:i}=e,{extendRoute:o}=e;function s(){o=this.checked,t(0,o)}function a(){n.avoidDoublingBack=this.checked,Lt.set(n)}const l=()=>i.finish(),u=()=>i.cancel();return r.$$set=f=>{"routeTool"in f&&t(1,i=f.routeTool),"extendRoute"in f&&t(0,o=f.extendRoute)},r.$$.update=()=>{r.$$.dirty&7&&i.setRouteConfig({avoid_doubling_back:n.avoidDoublingBack,extend_route:o})},[o,i,n,s,a,l,u]}class ji extends Z{constructor(e){super(),Q(this,e,vl,yl,ee,{routeTool:1,extendRoute:0})}}function wl(r){let e;return{c(){e=$("ul"),e.innerHTML="
  • Click green points on the transport network to create snapped routes
  • Click and drag any point to move it
  • Click a red waypoint to delete it
  • Press Enter or double click to finish
  • Press Escape to cancel
  • "},m(t,n){w(t,e,n)},p:U,d(t){t&&k(e)}}}function kl(r){let e,t,n,i,o,s,a,l,u;return e=new _t({props:{label:"Help",$$slots:{default:[wl]},$$scope:{ctx:r}}}),{c(){F(e.$$.fragment),t=A(),n=$("div"),i=$("button"),i.textContent="Finish",o=A(),s=$("button"),s.textContent="Cancel",R(i,"type","button"),R(s,"type","button"),Te(n,"display","flex"),Te(n,"justify-content","space-between")},m(f,c){P(e,f,c),w(f,t,c),w(f,n,c),M(n,i),M(n,o),M(n,s),a=!0,l||(u=[G(i,"click",r[1]),G(s,"click",r[2])],l=!0)},p(f,[c]){const d={};c&8&&(d.$$scope={dirty:c,ctx:f}),e.$set(d)},i(f){a||(E(e.$$.fragment,f),a=!0)},o(f){C(e.$$.fragment,f),a=!1},d(f){f&&(k(t),k(n)),B(e,f),l=!1,Ie(u)}}}function Sl(r,e,t){let{routeTool:n}=e;const i=()=>n.finish(),o=()=>n.cancel();return r.$$set=s=>{"routeTool"in s&&t(0,n=s.routeTool)},[n,i,o]}class Di extends Z{constructor(e){super(),Q(this,e,Sl,kl,ee,{routeTool:0})}}function Rr(r){let e,t,n,i;const o=[Ll,Cl,$l,Ml,El],s=[];function a(l,u){return l[3]=="point"?0:l[3]=="free-polygon"?1:l[3]=="snap-polygon"?2:l[3]=="route"?3:4}return e=a(r),t=s[e]=o[e](r),{c(){t.c(),n=_e()},m(l,u){s[e].m(l,u),w(l,n,u),i=!0},p(l,u){let f=e;e=a(l),e===f?s[e].p(l,u):(de(),C(s[f],1,1,()=>{s[f]=null}),he(),t=s[e],t?t.p(l,u):(t=s[e]=o[e](l),t.c()),E(t,1),t.m(n.parentNode,n))},i(l){i||(E(t),i=!0)},o(l){C(t),i=!1},d(l){l&&k(n),s[e].d(l)}}}function El(r){let e;return{c(){e=$("p"),e.textContent="Click an object to edit its geometry"},m(t,n){w(t,e,n)},p:U,i:U,o:U,d(t){t&&k(e)}}}function Ml(r){let e,t;return e=new ji({props:{routeTool:r[2],extendRoute:!1}}),{c(){F(e.$$.fragment)},m(n,i){P(e,n,i),t=!0},p(n,i){const o={};i&4&&(o.routeTool=n[2]),e.$set(o)},i(n){t||(E(e.$$.fragment,n),t=!0)},o(n){C(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function $l(r){let e,t;return e=new Di({props:{routeTool:r[2]}}),{c(){F(e.$$.fragment)},m(n,i){P(e,n,i),t=!0},p(n,i){const o={};i&4&&(o.routeTool=n[2]),e.$set(o)},i(n){t||(E(e.$$.fragment,n),t=!0)},o(n){C(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Cl(r){let e,t;return e=new Pi({props:{polygonTool:r[1]}}),{c(){F(e.$$.fragment)},m(n,i){P(e,n,i),t=!0},p(n,i){const o={};i&2&&(o.polygonTool=n[1]),e.$set(o)},i(n){t||(E(e.$$.fragment,n),t=!0)},o(n){C(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Ll(r){let e,t;return e=new Ti({props:{pointTool:r[0],editingExisting:!0}}),{c(){F(e.$$.fragment)},m(n,i){P(e,n,i),t=!0},p(n,i){const o={};i&1&&(o.pointTool=n[0]),e.$set(o)},i(n){t||(E(e.$$.fragment,n),t=!0)},o(n){C(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Tl(r){let e,t,n=r[4]==Ot&&Rr(r);return{c(){n&&n.c(),e=_e()},m(i,o){n&&n.m(i,o),w(i,e,o),t=!0},p(i,[o]){i[4]==Ot?n?(n.p(i,o),o&16&&E(n,1)):(n=Rr(i),n.c(),E(n,1),n.m(e.parentNode,e)):n&&(de(),C(n,1,1,()=>{n=null}),he())},i(i){t||(E(n),t=!0)},o(i){C(n),t=!1},d(i){i&&k(e),n&&n.d(i)}}}const Ot="edit-geometry";function Hi(){}function Ir(r,e){r.geometry=e.geometry,e.properties.length_meters&&(r.properties.length_meters=e.properties.length_meters),e.properties.waypoints&&(r.properties.waypoints=e.properties.waypoints)}function Al(r,e,t){let n,i;z(r,Ue,_=>t(10,n=_)),z(r,Ce,_=>t(4,i=_));let{pointTool:o}=e,{polygonTool:s}=e,{routeTool:a}=e,{eventHandler:l}=e,u=null,f=null,c=null;function d(){u&&(o.stop(),s.stop(),a.stop(),ce.update(_=>{let b=_.features.find(g=>g.id==u);return b?(delete b.properties.hide_while_editing,c&&Ir(b,c),_):(window.alert("You loaded another file or cleared everything while editing. Your changes were lost."),_)})),v(),Ye.set(null)}for(let _ of[o,s,a])_.addEventListenerSuccess(b=>{i==Ot&&(ce.update(g=>{let p=g.features.find(m=>m.id==u);return p?(Ir(p,b),delete p.properties.hide_while_editing,g):(window.alert("You loaded another file or cleared everything while editing. Your changes were lost."),g)}),v())});for(let _ of[s,a])_.addEventListenerUpdated(b=>{i==Ot&&(c=b)});for(let _ of[o,s,a])_.addEventListenerFailure(()=>{i==Ot&&(ce.update(b=>{let g=b.features.find(p=>p.id==u);return g?(delete g.properties.hide_while_editing,b):(window.alert("You loaded another file or cleared everything while editing. Your changes were lost."),b)}),v())});l.mapHandlers.mousemove=_=>{var b;if(a.onMouseMove(_),o.onMouseMove(_),s.onMouseMove(_),u==null){let g=n.queryRenderedFeatures(_.point,{layers:["interventions-points","interventions-lines","interventions-polygons"]});Ye.set(((b=g[0])==null?void 0:b.id)||null)}},l.mapHandlers.mouseout=()=>{u==null&&Ye.set(null)},l.mapHandlers.click=_=>{if(a.onClick(),o.onClick(),s.onClick(_),u==null){let b=n.queryRenderedFeatures(_.point,{layers:["interventions-points","interventions-lines","interventions-polygons"]});b.length>0&&h(b[0].id)}},l.mapHandlers.mousedown=_=>{s.onMouseDown(_)},l.mapHandlers.dblclick=_=>{a.onDoubleClick(_),s.onDoubleClick(_)},l.mapHandlers.dragstart=()=>{a.onDragStart()},l.mapHandlers.mouseup=()=>{a.onMouseUp(),s.onMouseUp()},l.documentHandlers.keypress=_=>{a.onKeyPress(_),s.onKeypress(_)},l.documentHandlers.keydown=_=>{o.onKeyDown(_),s.onKeyDown(_),a.onKeyDown(_)},l.documentHandlers.keyup=_=>{a.onKeyUp(_)};function h(_){Ye.set(null);let b=null;ce.update(p=>(b=p.features.find(m=>m.id==_),b.properties.hide_while_editing=!0,p));let g=b;u=_,g.geometry.type=="LineString"?(a.editExistingRoute(g),t(3,f="route")):g.geometry.type=="Polygon"?g.properties.waypoints?(a.editExistingArea(g),t(3,f="snap-polygon")):(s.editExisting(g),t(3,f="free-polygon")):g.geometry.type=="Point"&&(o.start(),t(3,f="point"))}function v(){u=null,t(3,f=null),c=null}return r.$$set=_=>{"pointTool"in _&&t(0,o=_.pointTool),"polygonTool"in _&&t(1,s=_.polygonTool),"routeTool"in _&&t(2,a=_.routeTool),"eventHandler"in _&&t(5,l=_.eventHandler)},[o,s,a,f,i,l,Hi,d]}class xl extends Z{constructor(e){super(),Q(this,e,Al,Tl,ee,{pointTool:0,polygonTool:1,routeTool:2,eventHandler:5,start:6,stop:7})}get start(){return Hi}get stop(){return this.$$.ctx[7]}}function Fr(r){let e,t;return e=new Ti({props:{pointTool:r[0],editingExisting:!1}}),{c(){F(e.$$.fragment)},m(n,i){P(e,n,i),t=!0},p(n,i){const o={};i&1&&(o.pointTool=n[0]),e.$set(o)},i(n){t||(E(e.$$.fragment,n),t=!0)},o(n){C(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Ol(r){let e,t,n=r[1]==hn&&Fr(r);return{c(){n&&n.c(),e=_e()},m(i,o){n&&n.m(i,o),w(i,e,o),t=!0},p(i,[o]){i[1]==hn?n?(n.p(i,o),o&2&&E(n,1)):(n=Fr(i),n.c(),E(n,1),n.m(e.parentNode,e)):n&&(de(),C(n,1,1,()=>{n=null}),he())},i(i){t||(E(n),t=!0)},o(i){C(n),t=!1},d(i){i&&k(e),n&&n.d(i)}}}const hn="point";function Rl(r,e,t){let n;z(r,Ce,u=>t(1,n=u));let{changeMode:i}=e,{pointTool:o}=e,{eventHandler:s}=e;function a(){o.setHandlers(s),o.start()}function l(){o.stop()}return o.addEventListenerSuccess(u=>{n==hn&&(ce.update(f=>(u.id=vn(f),u.properties.intervention_type="other",f.features.push(u),f)),i("edit-attribute"),Re.set(u.id))}),o.addEventListenerFailure(()=>{n==hn&&i("edit-attribute")}),r.$$set=u=>{"changeMode"in u&&t(2,i=u.changeMode),"pointTool"in u&&t(0,o=u.pointTool),"eventHandler"in u&&t(3,s=u.eventHandler)},[o,n,i,s,a,l]}class Il extends Z{constructor(e){super(),Q(this,e,Rl,Ol,ee,{changeMode:2,pointTool:0,eventHandler:3,start:4,stop:5})}get start(){return this.$$.ctx[4]}get stop(){return this.$$.ctx[5]}}function ar(r,e,t,n,i){r.addEventListenerSuccess(o=>{it(Ce)==n&&(ce.update(s=>(o.id=vn(s),o.properties.intervention_type=t,s.features.push(o),s)),e.value=null,i("edit-attribute"),Re.set(o.id))}),r.addEventListenerUpdated(o=>{it(Ce)==n&&(e.value=o)}),r.addEventListenerFailure(()=>{it(Ce)==n&&(e.value=null,i("edit-attribute"))})}function ur(r,e){r.value&&(ce.update(t=>{let n=r.value;return n.id=vn(t),n.properties.intervention_type=e,t.features.push(n),t}),r.value=null)}function Pr(r){let e,t;return e=new Pi({props:{polygonTool:r[0]}}),{c(){F(e.$$.fragment)},m(n,i){P(e,n,i),t=!0},p(n,i){const o={};i&1&&(o.polygonTool=n[0]),e.$set(o)},i(n){t||(E(e.$$.fragment,n),t=!0)},o(n){C(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Fl(r){let e,t,n=r[1]==zn&&Pr(r);return{c(){n&&n.c(),e=_e()},m(i,o){n&&n.m(i,o),w(i,e,o),t=!0},p(i,[o]){i[1]==zn?n?(n.p(i,o),o&2&&E(n,1)):(n=Pr(i),n.c(),E(n,1),n.m(e.parentNode,e)):n&&(de(),C(n,1,1,()=>{n=null}),he())},i(i){t||(E(n),t=!0)},o(i){C(n),t=!1},d(i){i&&k(e),n&&n.d(i)}}}const zn="free-polygon";function Pl(r,e,t){let n;z(r,Ce,f=>t(1,n=f));let{changeMode:i}=e,{polygonTool:o}=e,{eventHandler:s}=e,a={value:null};function l(){o.setHandlers(s),o.startNew()}function u(){o.stop(),ur(a,"area")}return ar(o,a,"area",zn,i),r.$$set=f=>{"changeMode"in f&&t(2,i=f.changeMode),"polygonTool"in f&&t(0,o=f.polygonTool),"eventHandler"in f&&t(3,s=f.eventHandler)},[o,n,i,s,l,u]}class Bl extends Z{constructor(e){super(),Q(this,e,Pl,Fl,ee,{changeMode:2,polygonTool:0,eventHandler:3,start:4,stop:5})}get start(){return this.$$.ctx[4]}get stop(){return this.$$.ctx[5]}}function Nl(r){let e,t;return e=new ji({props:{routeTool:r[0],extendRoute:!0}}),{c(){F(e.$$.fragment)},m(n,i){P(e,n,i),t=!0},p(n,i){const o={};i&1&&(o.routeTool=n[0]),e.$set(o)},i(n){t||(E(e.$$.fragment,n),t=!0)},o(n){C(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function jl(r){let e;return{c(){e=$("p"),e.textContent="Failed to load"},m(t,n){w(t,e,n)},p:U,i:U,o:U,d(t){t&&k(e)}}}function Dl(r){let e,t,n;return{c(){e=$("label"),e.textContent="Route data unpacking",t=A(),n=$("progress"),R(e,"for","route-unpacking"),R(n,"id","route-unpacking"),R(n,"class","svelte-q3473n")},m(i,o){w(i,e,o),w(i,t,o),w(i,n,o)},p:U,i:U,o:U,d(i){i&&(k(e),k(t),k(n))}}}function Hl(r){let e,t,n;return{c(){e=$("label"),e.textContent="Route tool loading",t=A(),n=$("progress"),R(e,"for","route-loading"),R(n,"id","route-loading"),n.value=r[1],R(n,"class","svelte-q3473n")},m(i,o){w(i,e,o),w(i,t,o),w(i,n,o)},p(i,o){o&2&&(n.value=i[1])},i:U,o:U,d(i){i&&(k(e),k(t),k(n))}}}function Ul(r){let e,t,n,i;const o=[Hl,Dl,jl,Nl],s=[];function a(l,u){return!l[2]&&!l[3]&&!l[4]?0:l[4]&&!l[2]&&!l[3]?1:l[3]?2:l[5]==Ui?3:-1}return~(e=a(r))&&(t=s[e]=o[e](r)),{c(){t&&t.c(),n=_e()},m(l,u){~e&&s[e].m(l,u),w(l,n,u),i=!0},p(l,[u]){let f=e;e=a(l),e===f?~e&&s[e].p(l,u):(t&&(de(),C(s[f],1,1,()=>{s[f]=null}),he()),~e?(t=s[e],t?t.p(l,u):(t=s[e]=o[e](l),t.c()),E(t,1),t.m(n.parentNode,n)):t=null)},i(l){i||(E(t),i=!0)},o(l){C(t),i=!1},d(l){l&&k(n),~e&&s[e].d(l)}}}const Ui="route";async function ql(r,e){const t=await fetch(r),n=t.body.getReader(),i=parseInt(t.headers.get("Content-Length"));let o=0,s=[];for(;;){const{done:u,value:f}=await n.read();if(u)break;s.push(f),o+=f.length;const c=100*o/i;e(c)}let a=new Uint8Array(o),l=0;for(let u of s)a.set(u,l),l+=u.length;return a}function Gl(r,e,t){let n,i,o;z(r,Ue,g=>t(11,i=g)),z(r,Ce,g=>t(5,o=g));let{changeMode:s}=e,{url:a}=e,{routeTool:l}=e,{eventHandler:u}=e,f=0,c=!1,d=!1,h={value:null};function v(){l.isActive()||(l.setHandlers(u),l.startRoute())}function _(){l==null||l.stop(),ur(h,"route")}Nt(async()=>{await Ni(),console.log(`Grabbing ${a}`);try{const g=await ql(a,p=>t(1,f=p));t(0,l=new ml(i,g,b))}catch(g){console.log(`Route tool broke: ${g}`),t(3,d=!0);return}ar(l,h,"route",Ui,s)});function b(){t(1,f=100),t(2,c=!0)}return r.$$set=g=>{"changeMode"in g&&t(6,s=g.changeMode),"url"in g&&t(7,a=g.url),"routeTool"in g&&t(0,l=g.routeTool),"eventHandler"in g&&t(8,u=g.eventHandler)},r.$$.update=()=>{r.$$.dirty&2&&t(4,n=f>=100)},[l,f,c,d,n,o,s,a,u,v,_]}class Yl extends Z{constructor(e){super(),Q(this,e,Gl,Ul,ee,{changeMode:6,url:7,routeTool:0,eventHandler:8,start:9,stop:10})}get start(){return this.$$.ctx[9]}get stop(){return this.$$.ctx[10]}}function Qt(r,e){return e===void 0&&(e={}),wo(r,function(t,n){var i=n.geometry.coordinates;return t+Xe(i[0],i[1],e)},0)}function Jl(r,e,t){var n=He(t);if(qn(t)!=="LineString")throw new Error("line must be a LineString");var i=Bt(t,r),o=Bt(t,e),s;i.properties.index<=o.properties.index?s=[i,o]:s=[o,i];for(var a=[s[0].geometry.coordinates],l=s[0].properties.index+1;l=s){var a=(t+i)/2;return[e,a-(n-e)/2,n,a+(n-e)/2]}else{var l=(e+n)/2;return[l-(i-t)/2,t,l+(i-t)/2,i]}}function Xl(r,e){e===void 0&&(e={});var t=e.precision,n=e.coordinates,i=e.mutate;if(t=t==null||isNaN(t)?6:t,n=n==null||isNaN(n)?3:n,!r)throw new Error(" is required");if(typeof t!="number")throw new Error(" must be a number");if(typeof n!="number")throw new Error(" must be a number");(i===!1||i===void 0)&&(r=JSON.parse(JSON.stringify(r)));var o=Math.pow(10,t);return ko(r,function(s){Wl(s,o,n)}),r}function Wl(r,e,t){r.length>t&&r.splice(t,r.length);for(var n=0;n1&&t.push(gt(f)),Qe(t)}function qi(r,e){if(!e.features.length)throw new Error("lines must contain features");if(e.features.length===1)return e.features[0];var t,n=1/0;return tn(e,function(i){var o=Bt(i,r),s=o.properties.dist;sClick on a route to split it
  • Click on the map or press Escape to cancel
  • "},m(t,n){w(t,e,n)},p:U,d(t){t&&k(e)}}}function Zl(r){let e,t,n=r[0]==jr&&Nr(r);return{c(){n&&n.c(),e=_e()},m(i,o){n&&n.m(i,o),w(i,e,o),t=!0},p(i,[o]){i[0]==jr?n?o&1&&E(n,1):(n=Nr(i),n.c(),E(n,1),n.m(e.parentNode,e)):n&&(de(),C(n,1,1,()=>{n=null}),he())},i(i){t||(E(n),t=!0)},o(i){C(n),t=!1},d(i){i&&k(e),n&&n.d(i)}}}const jr="split-route",Ql=10,ea=30;let Ln="split-route";function ta(r,e,t){let n,i,o;z(r,ce,_=>t(8,n=_)),z(r,Ue,_=>t(6,i=_)),z(r,Ce,_=>t(0,o=_));let{changeMode:s}=e,{eventHandler:a}=e;function l(){i.getCanvas().style.cursor=`url(${Ci}), crosshair`}function u(){i.getCanvas().style.cursor="inherit",t(5,f=null),c=null}let f=null,c=null;lt(i,Ln,tt()),_n(i,{id:"draw-split-route",source:Ln,color:"black",radius:Ql}),a.mapHandlers.mousemove=_=>{t(5,f=null),c=null;let b=d(_.lngLat.toArray());const g=[_.point.x-ea,_.point.y],p=i.unproject(_.point).distanceTo(i.unproject(g))/1e3;let m=[];for(let[y,S]of n.features.entries())if(S.geometry.type=="LineString"){let L=Bt(S.geometry,b,{units:"kilometers"});L.properties.dist!=null&&L.properties.dist<=p&&m.push([y,L.geometry.coordinates,L.properties.dist])}m.sort((y,S)=>y[2]-S[2]),m.length>0&&(t(5,f=d(m[0][1])),c=m[0][0])},a.mapHandlers.click=()=>{if(c==null)s("edit-attribute");else{let _=Vl(n.features[c],f);if(_.features.length==2){let b=_.features[0],g=_.features[1];b.geometry.coordinates=b.geometry.coordinates.map(Yt),g.geometry.coordinates=g.geometry.coordinates.map(Yt),ce.update(p=>(b.id=p.features[c].id,g.id=vn(p),b.properties=JSON.parse(JSON.stringify(p.features[c].properties)),g.properties=JSON.parse(JSON.stringify(b.properties)),h(p.features[c],b,g,f),p.features.splice(c,1,b,g),p))}t(5,f=null),c=null}},a.documentHandlers.keydown=_=>{_.key=="Escape"&&(s("edit-attribute"),_.preventDefault())};function d(_){return{type:"Feature",properties:{},geometry:{type:"Point",coordinates:Yt(_)}}}function h(_,b,g,p){b.properties.length_meters=Qt(b,{units:"kilometers"})*1e3,g.properties.length_meters=Qt(g,{units:"kilometers"})*1e3,b.properties.waypoints=[],g.properties.waypoints=[];let m=v(_,p),y=!0,S=0;for(let L of _.properties.waypoints){let O=v(_,ht([L.lon,L.lat]));if(y)if(O{"changeMode"in _&&t(2,s=_.changeMode),"eventHandler"in _&&t(1,a=_.eventHandler)},r.$$.update=()=>{if(r.$$.dirty&96){let _=tt();f&&_.features.push(f),i.getSource(Ln).setData(_)}},[o,a,s,l,u,f,i]}class na extends Z{constructor(e){super(),Q(this,e,ta,Zl,ee,{changeMode:2,eventHandler:1,start:3,stop:4})}get start(){return this.$$.ctx[3]}get stop(){return this.$$.ctx[4]}}function ra(r){let e,t,n,i,o,s,a,l;return{c(){e=$("button"),t=$("img"),i=A(),o=ie(r[1]),Rn(t.src,n=r[2])||R(t,"src",n),R(t,"alt",r[1]),R(t,"class","svelte-1vvpkg9"),R(e,"type","button"),e.disabled=s=r[4]==r[0],R(e,"class","svelte-1vvpkg9")},m(u,f){w(u,e,f),M(e,t),M(e,i),M(e,o),a||(l=G(e,"click",r[5]),a=!0)},p(u,[f]){f&4&&!Rn(t.src,n=u[2])&&R(t,"src",n),f&2&&R(t,"alt",u[1]),f&2&&Oe(o,u[1]),f&17&&s!==(s=u[4]==u[0])&&(e.disabled=s)},i:U,o:U,d(u){u&&k(e),a=!1,l()}}}function ia(r,e,t){let n;z(r,Ce,u=>t(4,n=u));let{thisMode:i}=e,{label:o}=e,{icon:s}=e,{changeMode:a}=e;const l=()=>a(i);return r.$$set=u=>{"thisMode"in u&&t(0,i=u.thisMode),"label"in u&&t(1,o=u.label),"icon"in u&&t(2,s=u.icon),"changeMode"in u&&t(3,a=u.changeMode)},[i,o,s,a,n,l]}class We extends Z{constructor(e){super(),Q(this,e,ia,ra,ee,{thisMode:0,label:1,icon:2,changeMode:3})}}function Dr(r){let e,t;return e=new Di({props:{routeTool:r[0]}}),{c(){F(e.$$.fragment)},m(n,i){P(e,n,i),t=!0},p(n,i){const o={};i&1&&(o.routeTool=n[0]),e.$set(o)},i(n){t||(E(e.$$.fragment,n),t=!0)},o(n){C(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function oa(r){let e,t,n=r[1]==Wn&&Dr(r);return{c(){n&&n.c(),e=_e()},m(i,o){n&&n.m(i,o),w(i,e,o),t=!0},p(i,[o]){i[1]==Wn?n?(n.p(i,o),o&2&&E(n,1)):(n=Dr(i),n.c(),E(n,1),n.m(e.parentNode,e)):n&&(de(),C(n,1,1,()=>{n=null}),he())},i(i){t||(E(n),t=!0)},o(i){C(n),t=!1},d(i){i&&k(e),n&&n.d(i)}}}const Wn="snap-polygon";function sa(r,e,t){let n;z(r,Ce,f=>t(1,n=f));let{changeMode:i}=e,{routeTool:o}=e,{eventHandler:s}=e,a={value:null};function l(){o.setHandlers(s),o.startArea()}function u(){o.stop(),ur(a,"area")}return ar(o,a,"area",Wn,i),r.$$set=f=>{"changeMode"in f&&t(2,i=f.changeMode),"routeTool"in f&&t(0,o=f.routeTool),"eventHandler"in f&&t(3,s=f.eventHandler)},[o,n,i,s,l,u]}class la extends Z{constructor(e){super(),Q(this,e,sa,oa,ee,{changeMode:2,routeTool:0,eventHandler:3,start:4,stop:5})}get start(){return this.$$.ctx[4]}get stop(){return this.$$.ctx[5]}}function Hr(r){let e,t,n,i,o,s,a,l,u,f,c,d,h,v,_;return c=new _t({props:{label:"Help",$$slots:{default:[aa]},$$scope:{ctx:r}}}),h=jt(r[7][0]),{c(){e=$("label"),t=$("input"),n=ie(` - Google Street View`),i=A(),o=$("br"),s=A(),a=$("label"),l=$("input"),u=ie(` - Bing Streetside`),f=A(),F(c.$$.fragment),R(t,"type","radio"),t.__value="google",fe(t,t.__value),R(l,"type","radio"),l.__value="bing",fe(l,l.__value),h.p(t,l)},m(b,g){w(b,e,g),M(e,t),t.checked=t.__value===r[0].streetViewImagery,M(e,n),w(b,i,g),w(b,o,g),w(b,s,g),w(b,a,g),M(a,l),l.checked=l.__value===r[0].streetViewImagery,M(a,u),w(b,f,g),P(c,b,g),d=!0,v||(_=[G(t,"change",r[6]),G(l,"change",r[8])],v=!0)},p(b,g){g&1&&(t.checked=t.__value===b[0].streetViewImagery),g&1&&(l.checked=l.__value===b[0].streetViewImagery);const p={};g&1024&&(p.$$scope={dirty:g,ctx:b}),c.$set(p)},i(b){d||(E(c.$$.fragment,b),d=!0)},o(b){C(c.$$.fragment,b),d=!1},d(b){b&&(k(e),k(i),k(o),k(s),k(a),k(f)),B(c,b),h.r(),v=!1,Ie(_)}}}function aa(r){let e;return{c(){e=$("ul"),e.innerHTML="
  • Click on the map to open a new tab with a 3rd-party imagery provider
  • Press Escape to exit this mode
  • "},m(t,n){w(t,e,n)},p:U,d(t){t&&k(e)}}}function ua(r){let e,t,n=r[1]==Ur&&Hr(r);return{c(){n&&n.c(),e=_e()},m(i,o){n&&n.m(i,o),w(i,e,o),t=!0},p(i,[o]){i[1]==Ur?n?(n.p(i,o),o&2&&E(n,1)):(n=Hr(i),n.c(),E(n,1),n.m(e.parentNode,e)):n&&(de(),C(n,1,1,()=>{n=null}),he())},i(i){t||(E(n),t=!0)},o(i){C(n),t=!1},d(i){i&&k(e),n&&n.d(i)}}}const Ur="street-view";function fa(r,e,t){let n,i,o;z(r,Lt,h=>t(0,n=h)),z(r,Ue,h=>t(9,i=h)),z(r,Ce,h=>t(1,o=h));let{eventHandler:s}=e,{changeMode:a}=e;function l(){i.getCanvas().style.cursor="zoom-in"}function u(){i.getCanvas().style.cursor="inherit"}s.mapHandlers.click=h=>{let v=h.lngLat.lng,_=h.lngLat.lat;n.streetViewImagery=="google"?window.open(`http://maps.google.com/maps?q=&layer=c&cbll=${_},${v}&cbp=11,0,0,0,0`,"_blank"):n.streetViewImagery=="bing"&&window.open(`https://www.bing.com/maps?cp=${_}~${v}&style=x`,"_blank")},s.documentHandlers.keydown=h=>{h.key=="Escape"&&(a("edit-attribute"),h.preventDefault())};const f=[[]];function c(){n.streetViewImagery=this.__value,Lt.set(n)}function d(){n.streetViewImagery=this.__value,Lt.set(n)}return r.$$set=h=>{"eventHandler"in h&&t(2,s=h.eventHandler),"changeMode"in h&&t(3,a=h.changeMode)},[n,o,s,a,l,u,c,f,d]}class ca extends Z{constructor(e){super(),Q(this,e,fa,ua,ee,{eventHandler:2,changeMode:3,start:4,stop:5})}get start(){return this.$$.ctx[4]}get stop(){return this.$$.ctx[5]}}function qr(r){let e,t,n={pointTool:r[11],polygonTool:r[12],routeTool:r[2],eventHandler:r[13]["edit-geometry"]};return e=new xl({props:n}),r[16](e),{c(){F(e.$$.fragment)},m(i,o){P(e,i,o),t=!0},p(i,o){const s={};o&4&&(s.routeTool=i[2]),e.$set(s)},i(i){t||(E(e.$$.fragment,i),t=!0)},o(i){C(e.$$.fragment,i),t=!1},d(i){r[16](null),B(e,i)}}}function Gr(r){let e,t;return e=new We({props:{thisMode:"point",label:"New point",icon:Rs,changeMode:r[14]}}),{c(){F(e.$$.fragment)},m(n,i){P(e,n,i),t=!0},p:U,i(n){t||(E(e.$$.fragment,n),t=!0)},o(n){C(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Yr(r){let e,t,n={changeMode:r[14],routeTool:r[2],eventHandler:r[13]["snap-polygon"]};return e=new la({props:n}),r[19](e),{c(){F(e.$$.fragment)},m(i,o){P(e,i,o),t=!0},p(i,o){const s={};o&4&&(s.routeTool=i[2]),e.$set(s)},i(i){t||(E(e.$$.fragment,i),t=!0)},o(i){C(e.$$.fragment,i),t=!1},d(i){r[19](null),B(e,i)}}}function Jr(r){let e,t;return e=new We({props:{thisMode:"route",label:"New route",icon:Ps,changeMode:r[14]}}),{c(){F(e.$$.fragment)},m(n,i){P(e,n,i),t=!0},p:U,i(n){t||(E(e.$$.fragment,n),t=!0)},o(n){C(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function zr(r){let e,t;return e=new We({props:{thisMode:"split-route",label:"Split route",icon:Ci,changeMode:r[14]}}),{c(){F(e.$$.fragment)},m(n,i){P(e,n,i),t=!0},p:U,i(n){t||(E(e.$$.fragment,n),t=!0)},o(n){C(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function pa(r){let e,t,n,i,o,s,a,l,u,f,c,d,h,v,_,b,g,p,m,y,S,L,O,x,I,N,j,D,T,H,ae,ke,Ee,ue,ne,K,Le;n=new We({props:{thisMode:"edit-attribute",label:"Edit attributes",icon:xs,changeMode:r[14]}});let me={changeMode:r[14],eventHandler:r[13]["edit-attribute"]};o=new Us({props:me}),r[15](o),l=new We({props:{thisMode:"edit-geometry",label:"Edit geometry",icon:Os,changeMode:r[14]}});let ge=r[2]&&qr(r),be=r[1]!="planning"&&Gr(r),yt={changeMode:r[14],pointTool:r[11],eventHandler:r[13].point};h=new Il({props:yt}),r[17](h),b=new We({props:{thisMode:"free-polygon",label:"New polygon (freehand)",icon:Is,changeMode:r[14]}});let Ht={changeMode:r[14],polygonTool:r[12],eventHandler:r[13]["free-polygon"]};p=new Bl({props:Ht}),r[18](p),S=new We({props:{thisMode:"snap-polygon",label:"New polygon (snapped)",icon:Fs,changeMode:r[14]}});let se=r[2]&&Yr(r),re=r[1]!="planning"&&Jr(r);function X(q){r[21](q)}let oe={changeMode:r[14],url:r[0],eventHandler:r[13].route};r[2]!==void 0&&(oe.routeTool=r[2]),N=new Yl({props:oe}),r[20](N),le.push(()=>ve(N,"routeTool",X));let Me=r[1]!="planning"&&zr(r),to={changeMode:r[14],eventHandler:r[13]["split-route"]};ae=new na({props:to}),r[22](ae),ue=new We({props:{thisMode:"street-view",label:"Street View",icon:Bs,changeMode:r[14]}});let no={changeMode:r[14],eventHandler:r[13]["street-view"]};return K=new ca({props:no}),r[23](K),{c(){e=$("div"),t=$("div"),F(n.$$.fragment),i=A(),F(o.$$.fragment),s=A(),a=$("div"),F(l.$$.fragment),u=A(),ge&&ge.c(),f=A(),c=$("div"),be&&be.c(),d=A(),F(h.$$.fragment),v=A(),_=$("div"),F(b.$$.fragment),g=A(),F(p.$$.fragment),m=A(),y=$("div"),F(S.$$.fragment),L=A(),se&&se.c(),O=A(),x=$("div"),re&&re.c(),I=A(),F(N.$$.fragment),D=A(),T=$("div"),Me&&Me.c(),H=A(),F(ae.$$.fragment),ke=A(),Ee=$("div"),F(ue.$$.fragment),ne=A(),F(K.$$.fragment),R(e,"class","toolbox svelte-4s4d3o")},m(q,xe){w(q,e,xe),M(e,t),P(n,t,null),M(t,i),P(o,t,null),M(e,s),M(e,a),P(l,a,null),M(a,u),ge&&ge.m(a,null),M(e,f),M(e,c),be&&be.m(c,null),M(c,d),P(h,c,null),M(e,v),M(e,_),P(b,_,null),M(_,g),P(p,_,null),M(e,m),M(e,y),P(S,y,null),M(y,L),se&&se.m(y,null),M(e,O),M(e,x),re&&re.m(x,null),M(x,I),P(N,x,null),M(e,D),M(e,T),Me&&Me.m(T,null),M(T,H),P(ae,T,null),M(e,ke),M(e,Ee),P(ue,Ee,null),M(Ee,ne),P(K,Ee,null),Le=!0},p(q,[xe]){const ro={};o.$set(ro),q[2]?ge?(ge.p(q,xe),xe&4&&E(ge,1)):(ge=qr(q),ge.c(),E(ge,1),ge.m(a,null)):ge&&(de(),C(ge,1,1,()=>{ge=null}),he()),q[1]!="planning"?be?(be.p(q,xe),xe&2&&E(be,1)):(be=Gr(q),be.c(),E(be,1),be.m(c,d)):be&&(de(),C(be,1,1,()=>{be=null}),he());const io={};h.$set(io);const oo={};p.$set(oo),q[2]?se?(se.p(q,xe),xe&4&&E(se,1)):(se=Yr(q),se.c(),E(se,1),se.m(y,null)):se&&(de(),C(se,1,1,()=>{se=null}),he()),q[1]!="planning"?re?(re.p(q,xe),xe&2&&E(re,1)):(re=Jr(q),re.c(),E(re,1),re.m(x,I)):re&&(de(),C(re,1,1,()=>{re=null}),he());const kn={};xe&1&&(kn.url=q[0]),!j&&xe&4&&(j=!0,kn.routeTool=q[2],we(()=>j=!1)),N.$set(kn),q[1]!="planning"?Me?(Me.p(q,xe),xe&2&&E(Me,1)):(Me=zr(q),Me.c(),E(Me,1),Me.m(T,H)):Me&&(de(),C(Me,1,1,()=>{Me=null}),he());const so={};ae.$set(so);const lo={};K.$set(lo)},i(q){Le||(E(n.$$.fragment,q),E(o.$$.fragment,q),E(l.$$.fragment,q),E(ge),E(be),E(h.$$.fragment,q),E(b.$$.fragment,q),E(p.$$.fragment,q),E(S.$$.fragment,q),E(se),E(re),E(N.$$.fragment,q),E(Me),E(ae.$$.fragment,q),E(ue.$$.fragment,q),E(K.$$.fragment,q),Le=!0)},o(q){C(n.$$.fragment,q),C(o.$$.fragment,q),C(l.$$.fragment,q),C(ge),C(be),C(h.$$.fragment,q),C(b.$$.fragment,q),C(p.$$.fragment,q),C(S.$$.fragment,q),C(se),C(re),C(N.$$.fragment,q),C(Me),C(ae.$$.fragment,q),C(ue.$$.fragment,q),C(K.$$.fragment,q),Le=!1},d(q){q&&k(e),B(n),r[15](null),B(o),B(l),ge&&ge.d(),be&&be.d(),r[17](null),B(h),B(b),r[18](null),B(p),B(S),se&&se.d(),re&&re.d(),r[20](null),B(N),Me&&Me.d(),r[22](null),B(ae),B(ue),r[23](null),B(K)}}}function da(r,e,t){let n,i;z(r,Ue,T=>t(24,n=T)),z(r,Ce,T=>t(25,i=T));let{routeSnapperUrl:o}=e,{schema:s}=e,a,l=new qs(n),u=new ol(n),f,c,d,h,v,_,b,g;const p={"edit-attribute":new Je,"edit-geometry":new Je,route:new Je,point:new Je,"free-polygon":new Je,"snap-polygon":new Je,"split-route":new Je,"street-view":new Je};$r.forEach(T=>{n.on(T,H=>{p[it(Ce)].mapHandlers[T](H)})}),Cr.forEach(T=>{document.addEventListener(T,H=>{p[it(Ce)].documentHandlers[T](H)})});function m(T){let H={"edit-attribute":f,"edit-geometry":c,route:d,point:h,"free-polygon":v,"snap-polygon":_,"split-route":b,"street-view":g};const ae=i;if(ae==T){console.log(`Mode is already ${ae}, not changing`);return}console.log(`Stopping old mode ${ae}`),H[ae].stop(),Ce.set(T),console.log(`Starting new mode ${T}`),H[T].start()}mn(()=>{u==null||u.tearDown(),a==null||a.tearDown(),$r.forEach(T=>{n.off(T,H=>{p[it(Ce)].mapHandlers[T](H)})}),Cr.forEach(T=>{document.removeEventListener(T,H=>{p[it(Ce)].documentHandlers[T](H)})})});function y(T){le[T?"unshift":"push"](()=>{f=T,t(3,f)})}function S(T){le[T?"unshift":"push"](()=>{c=T,t(4,c)})}function L(T){le[T?"unshift":"push"](()=>{h=T,t(6,h)})}function O(T){le[T?"unshift":"push"](()=>{v=T,t(7,v)})}function x(T){le[T?"unshift":"push"](()=>{_=T,t(8,_)})}function I(T){le[T?"unshift":"push"](()=>{d=T,t(5,d)})}function N(T){a=T,t(2,a)}function j(T){le[T?"unshift":"push"](()=>{b=T,t(9,b)})}function D(T){le[T?"unshift":"push"](()=>{g=T,t(10,g)})}return r.$$set=T=>{"routeSnapperUrl"in T&&t(0,o=T.routeSnapperUrl),"schema"in T&&t(1,s=T.schema)},[o,s,a,f,c,d,h,v,_,b,g,l,u,p,m,y,S,L,O,x,I,N,j,D]}class ha extends Z{constructor(e){super(),Q(this,e,da,pa,ee,{routeSnapperUrl:0,schema:1})}}function Xr(r,e,t){const n=r.slice();return n[3]=e[t],n}function Wr(r,e,t){const n=r.slice();return n[6]=e[t],n}function Vr(r){let e;return{c(){e=$("td"),R(e,"class","svelte-11t6rxo"),Te(e,"background-color",r[6])},m(t,n){w(t,e,n)},p(t,n){n&1&&Te(e,"background-color",t[6])},d(t){t&&k(e)}}}function Kr(r){let e,t=r[3]+"",n;return{c(){e=$("td"),n=ie(t),R(e,"class","svelte-11t6rxo"),Te(e,"width",r[2])},m(i,o){w(i,e,o),M(e,n)},p(i,o){o&2&&t!==(t=i[3]+"")&&Oe(n,t)},d(i){i&&k(e)}}}function ga(r){let e,t,n,i,o=De(r[0]),s=[];for(let u=0;u{"colors"in s&&t(0,n=s.colors),"labels"in s&&t(1,i=s.labels)},[n,i,o]}class ma extends Z{constructor(e){super(),Q(this,e,_a,ga,ee,{colors:0,labels:1})}}const ba="/atip/browse_dropdown_filters/assets/help-d011708a.svg";function ya(r){let e,t;return{c(){e=$("img"),Rn(e.src,t=ba)||R(e,"src",t),R(e,"title",r[0]),R(e,"alt",r[0])},m(n,i){w(n,e,i)},p(n,[i]){i&1&&R(e,"title",n[0]),i&1&&R(e,"alt",n[0])},i:U,o:U,d(n){n&&k(e)}}}function va(r,e,t){let{contents:n}=e;return r.$$set=i=>{"contents"in i&&t(0,n=i.contents)},[n]}class Gi extends Z{constructor(e){super(),Q(this,e,va,ya,ee,{contents:0})}}function wa(r){let e,t,n,i,o,s,a;return t=new Gi({props:{contents:"Data comes from OpenStreetMap, and may not always be correct. Unexpected values are treated as unknown. Freehand route segments and off-road paths generally have no speed data."}}),i=new ma({props:{colors:r[0],labels:["< 20","20","30","40",">= 50"]}}),s=new Po({props:{layers:["speed-limits"],contents:Sa}}),{c(){e=ie(`(mph) -`),F(t.$$.fragment),n=A(),F(i.$$.fragment),o=A(),F(s.$$.fragment)},m(l,u){w(l,e,u),P(t,l,u),w(l,n,u),P(i,l,u),w(l,o,u),P(s,l,u),a=!0},p:U,i(l){a||(E(t.$$.fragment,l),E(i.$$.fragment,l),E(s.$$.fragment,l),a=!0)},o(l){C(t.$$.fragment,l),C(i.$$.fragment,l),C(s.$$.fragment,l),a=!1},d(l){l&&(k(e),k(n),k(o)),B(t,l),B(i,l),B(s,l)}}}let ka="white",ct="speed-limits",Tn="speed-limits",kt=.8;function Sa(r){return r.speed_limit?`${Math.round(r.speed_limit)} mph`:"Unknown"}function Ea(r,e,t){let n,i,o;z(r,Ue,f=>t(2,n=f)),z(r,mt,f=>t(3,i=f)),z(r,ce,f=>t(4,o=f));let{id:s}=e,a=["#00AB4D","#8ECA4D","#F7BB00","#BB0000","#470000"];const l=["case",["<",["get","speed_limit"],20],a[0],["==",["get","speed_limit"],20],a[1],["==",["get","speed_limit"],30],a[2],["==",["get","speed_limit"],40],a[3],[">=",["get","speed_limit"],50],a[4],ka],u=["case",["<",["get","speed_limit"],20],kt,["==",["get","speed_limit"],20],kt,["==",["get","speed_limit"],30],kt,["==",["get","speed_limit"],40],kt,[">=",["get","speed_limit"],50],kt,0];return lt(n,ct,tt()),Ft(n,{id:Tn,source:ct,color:l,width:In,opacity:u}),Nt(async()=>{try{if(s){let f=o.features.find(d=>d.id==s),c=JSON.parse(await i.speedLimitForRoute(f.properties.waypoints));n.getSource(ct).setData(c)}else{let f=JSON.parse(await i.allSpeedLimits());n.getSource(ct).setData(f)}}catch(f){window.alert(`Couldn't calculate speed limits for route: ${f}`)}}),mn(()=>{n.getLayer(Tn)&&n.removeLayer(Tn),n.getSource(ct)&&n.removeSource(ct)}),r.$$set=f=>{"id"in f&&t(1,s=f.id)},[a,s]}class Yi extends Z{constructor(e){super(),Q(this,e,Ea,wa,ee,{id:1})}}function Ma(r){let e;return{c(){e=$("p"),e.textContent="Route info loading..."},m(t,n){w(t,e,n)},p:U,i:U,o:U,d(t){t&&k(e)}}}function $a(r){let e,t,n,i,o,s,a,l,u,f,c,d=r[1]=="speed limits"&&Zr();return{c(){e=$("label"),t=ie(`Show layer: - `),n=$("select"),i=$("option"),i.textContent="None",o=$("option"),o.textContent="Speed limits",a=A(),d&&d.c(),l=_e(),i.__value="none",fe(i,i.__value),o.__value="speed limits",fe(o,o.__value),n.disabled=s=r[0]!=null,r[1]===void 0&&bn(()=>r[3].call(n))},m(h,v){w(h,e,v),M(e,t),M(e,n),M(n,i),M(n,o),rn(n,r[1],!0),w(h,a,v),d&&d.m(h,v),w(h,l,v),u=!0,f||(c=G(n,"change",r[3]),f=!0)},p(h,v){(!u||v&1&&s!==(s=h[0]!=null))&&(n.disabled=s),v&2&&rn(n,h[1]),h[1]=="speed limits"?d?(d.p(h,v),v&2&&E(d,1)):(d=Zr(),d.c(),E(d,1),d.m(l.parentNode,l)):d&&(de(),C(d,1,1,()=>{d=null}),he())},i(h){u||(E(d),u=!0)},o(h){C(d),u=!1},d(h){h&&(k(e),k(a),k(l)),d&&d.d(h),f=!1,c()}}}function Zr(r){let e,t;return e=new Yi({props:{id:void 0}}),{c(){F(e.$$.fragment)},m(n,i){P(e,n,i),t=!0},p:U,i(n){t||(E(e.$$.fragment,n),t=!0)},o(n){C(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Ca(r){let e,t,n,i;const o=[$a,Ma],s=[];function a(l,u){return l[2]?0:1}return e=a(r),t=s[e]=o[e](r),{c(){t.c(),n=_e()},m(l,u){s[e].m(l,u),w(l,n,u),i=!0},p(l,[u]){let f=e;e=a(l),e===f?s[e].p(l,u):(de(),C(s[f],1,1,()=>{s[f]=null}),he(),t=s[e],t?t.p(l,u):(t=s[e]=o[e](l),t.c()),E(t,1),t.m(n.parentNode,n))},i(l){i||(E(t),i=!0)},o(l){C(t),i=!1},d(l){l&&k(n),s[e].d(l)}}}function La(r,e,t){let n,i;z(r,Re,a=>t(0,n=a)),z(r,mt,a=>t(2,i=a));let o="none";function s(){o=hi(this),t(1,o),t(0,n)}return r.$$.update=()=>{r.$$.dirty&1&&n&&t(1,o="none")},[n,o,i,s]}class Ta extends Z{constructor(e){super(),Q(this,e,La,Ca,ee,{})}}function Aa(r){let e,t,n,i,o,s,a,l,u,f;return{c(){e=$("p"),t=ie(r[4]),n=A(),i=$("button"),o=ie(r[5]),s=A(),a=$("button"),l=ie(r[6]),R(i,"type","button"),R(a,"type","button")},m(c,d){w(c,e,d),M(e,t),w(c,n,d),w(c,i,d),M(i,o),w(c,s,d),w(c,a,d),M(a,l),u||(f=[G(i,"click",r[7]),G(a,"click",r[8])],u=!0)},p(c,d){d&16&&Oe(t,c[4]),d&32&&Oe(o,c[5]),d&64&&Oe(l,c[6])},d(c){c&&(k(e),k(n),k(i),k(s),k(a)),u=!1,Ie(f)}}}function xa(r){let e,t,n,i,o,s;function a(d){r[9](d)}function l(d){r[10](d)}function u(d){r[11](d)}function f(d){r[12](d)}let c={$$slots:{default:[Aa]},$$scope:{ctx:r}};return r[3]!==void 0&&(c.title=r[3]),r[0]!==void 0&&(c.open=r[0]),r[1]!==void 0&&(c.displayEscapeButton=r[1]),r[2]!==void 0&&(c.canCloseByClickingBackground=r[2]),e=new _i({props:c}),le.push(()=>ve(e,"title",a)),le.push(()=>ve(e,"open",l)),le.push(()=>ve(e,"displayEscapeButton",u)),le.push(()=>ve(e,"canCloseByClickingBackground",f)),{c(){F(e.$$.fragment)},m(d,h){P(e,d,h),s=!0},p(d,[h]){const v={};h&16496&&(v.$$scope={dirty:h,ctx:d}),!t&&h&8&&(t=!0,v.title=d[3],we(()=>t=!1)),!n&&h&1&&(n=!0,v.open=d[0],we(()=>n=!1)),!i&&h&2&&(i=!0,v.displayEscapeButton=d[1],we(()=>i=!1)),!o&&h&4&&(o=!0,v.canCloseByClickingBackground=d[2],we(()=>o=!1)),e.$set(v)},i(d){s||(E(e.$$.fragment,d),s=!0)},o(d){C(e.$$.fragment,d),s=!1},d(d){B(e,d)}}}function Oa(r,e,t){const n=Mo();let{open:i=!1}=e,{displayEscapeButton:o=!1}=e,{canCloseByClickingBackground:s=!1}=e,{title:a}=e,{message:l}=e,{confirmButtonText:u="Confirm"}=e,{cancelButtonText:f="Cancel"}=e;function c(){n("confirmAction")}function d(){n("cancelAction")}function h(g){a=g,t(3,a)}function v(g){i=g,t(0,i)}function _(g){o=g,t(1,o)}function b(g){s=g,t(2,s)}return r.$$set=g=>{"open"in g&&t(0,i=g.open),"displayEscapeButton"in g&&t(1,o=g.displayEscapeButton),"canCloseByClickingBackground"in g&&t(2,s=g.canCloseByClickingBackground),"title"in g&&t(3,a=g.title),"message"in g&&t(4,l=g.message),"confirmButtonText"in g&&t(5,u=g.confirmButtonText),"cancelButtonText"in g&&t(6,f=g.cancelButtonText)},[i,o,s,a,l,u,f,c,d,h,v,_,b]}class Ra extends Z{constructor(e){super(),Q(this,e,Oa,xa,ee,{open:0,displayEscapeButton:1,canCloseByClickingBackground:2,title:3,message:4,confirmButtonText:5,cancelButtonText:6})}}function Qr(r){let e;return{c(){e=$("p"),e.textContent=`Finish drawing on the map and/or select "Edit attributes" to use these - options.`,R(e,"class","reminder")},m(t,n){w(t,e,n)},d(t){t&&k(e)}}}function Ia(r){let e,t,n,i,o,s,a,l,u,f,c,d,h,v,_,b,g,p=r[0].features.length+"",m,y,S,L,O,x,I,N,j,D,T,H,ae;u=new $o({props:{label:"Load from GeoJSON",id:"load-geojson",disabled:r[2],loadFile:r[7]}});function ke(ne){r[13](ne)}let Ee={title:"Would you like to clear your work?",message:"This will delete all your drawn interventions."};r[1]!==void 0&&(Ee.open=r[1]),N=new Ra({props:Ee}),le.push(()=>ve(N,"open",ke)),N.$on("cancelAction",r[4]),N.$on("confirmAction",r[5]);let ue=r[2]&&Qr();return{c(){e=$("div"),t=$("label"),n=ie(`Scheme name: - `),i=$("input"),o=A(),s=$("br"),a=A(),l=$("div"),F(u.$$.fragment),f=A(),c=$("button"),d=ie("Export to GeoJSON"),h=A(),v=$("br"),_=A(),b=$("div"),g=$("span"),m=ie(p),y=ie(" objects"),S=A(),L=$("button"),O=ie("Clear all"),I=A(),F(N.$$.fragment),D=A(),ue&&ue.c(),R(i,"type","text"),R(c,"type","button"),R(c,"class","align-right svelte-wfhzcu"),c.disabled=r[2],R(L,"type","button"),R(L,"class","align-right svelte-wfhzcu"),L.disabled=x=r[0].features.length==0||r[2]},m(ne,K){w(ne,e,K),M(e,t),M(t,n),M(t,i),fe(i,r[0].scheme_name),w(ne,o,K),w(ne,s,K),w(ne,a,K),w(ne,l,K),P(u,l,null),M(l,f),M(l,c),M(c,d),w(ne,h,K),w(ne,v,K),w(ne,_,K),w(ne,b,K),M(b,g),M(g,m),M(g,y),M(b,S),M(b,L),M(L,O),M(b,I),P(N,b,null),M(b,D),ue&&ue.m(b,null),T=!0,H||(ae=[G(i,"input",r[12]),G(c,"click",r[6]),G(L,"click",r[3])],H=!0)},p(ne,[K]){K&1&&i.value!==ne[0].scheme_name&&fe(i,ne[0].scheme_name);const Le={};K&4&&(Le.disabled=ne[2]),u.$set(Le),(!T||K&4)&&(c.disabled=ne[2]),(!T||K&1)&&p!==(p=ne[0].features.length+"")&&Oe(m,p),(!T||K&5&&x!==(x=ne[0].features.length==0||ne[2]))&&(L.disabled=x);const me={};!j&&K&2&&(j=!0,me.open=ne[1],we(()=>j=!1)),N.$set(me),ne[2]?ue||(ue=Qr(),ue.c(),ue.m(b,null)):ue&&(ue.d(1),ue=null)},i(ne){T||(E(u.$$.fragment,ne),E(N.$$.fragment,ne),T=!0)},o(ne){C(u.$$.fragment,ne),C(N.$$.fragment,ne),T=!1},d(ne){ne&&(k(e),k(o),k(s),k(a),k(l),k(h),k(v),k(_),k(b)),B(u),B(N),ue&&ue.d(),H=!1,Ie(ae)}}}function Fa(r,e){var t=document.createElement("a");t.setAttribute("href","data:text/plain;charset=utf-8, "+encodeURIComponent(e)),t.setAttribute("download",r),document.body.appendChild(t),t.click(),document.body.removeChild(t)}function Pa(r,e,t){let n,i;z(r,ce,m=>t(0,n=m)),z(r,Dt,m=>t(2,i=m));let{authorityName:o}=e,{schema:s}=e,a=o;s!="v1"&&(a+=`_${s}`);let l=!1,u=!1;Nt(async()=>{let y=new URLSearchParams(window.location.search).get("geojsonUrl"),S=window.localStorage.getItem(a);if(y){console.log(`Loading GeoJSON from ${y}`);try{let O=await(await fetch(y)).text();ce.set(b(JSON.parse(O)))}catch(L){console.log(`Failed to load from URL: ${L}`)}}else if(S)try{ce.set(b(JSON.parse(S)))}catch(L){console.log(`Failed to load from local storage: ${L}`)}t(11,l=!0)});function f(){t(1,u=!0)}function c(){t(1,u=!1)}function d(){t(1,u=!1),ce.update(m=>(delete m.scheme_name,m.features=[],m)),Re.set(null),Ye.set(null),sn.set(null),ln.set(null)}function h(){const m=JSON.parse(JSON.stringify(n));for(let y of m.features)delete y.properties.hide_while_editing;return m}function v(){let m=h();var y=a;m.authority=o,m.origin="atip-v2",m.scheme_name&&(y+="_"+m.scheme_name),y+=".txt",Fa(y,JSON.stringify(m,null," "))}function _(m){try{ce.set(b(JSON.parse(m)))}catch(y){window.alert(`Couldn't load scheme from a file: ${y}`)}}function b(m){let y=1;for(let S of m.features)S.properties||(S.properties={name:"",description:"",intervention_type:"other"}),S.geometry.type=="LineString"&&!S.properties.length_meters&&(S.properties.length_meters=Qt(S,{units:"kilometers"})*1e3),S.id=y++;return m}function g(){n.scheme_name=this.value,ce.set(n)}function p(m){u=m,t(1,u)}return r.$$set=m=>{"authorityName"in m&&t(8,o=m.authorityName),"schema"in m&&t(9,s=m.schema)},r.$$.update=()=>{r.$$.dirty&3073&&l&&n&&(console.log("GJ changed, saving to local storage"),window.localStorage.setItem(a,JSON.stringify(h())))},[n,u,i,f,c,d,v,_,o,s,a,l,g,p]}class Ba extends Z{constructor(e){super(),Q(this,e,Pa,Ia,ee,{authorityName:8,schema:9})}}function Na(r){let e,t,n,i,o,s,a,l,u,f,c,d,h;return{c(){e=$("h2"),e.textContent="Drawing objects on the map",t=A(),n=$("p"),n.textContent=`Use the tools on right to sketch new objects on the map. Each tool has - instructions that appear when you click on its icon.`,i=A(),o=$("p"),o.innerHTML="Modify existing objects on the map using Edit geometry and clicking something.",s=A(),a=$("h2"),a.textContent="Filling out data",l=A(),u=$("p"),u.innerHTML=`Edit attributes mode allows selecting and adding attributes to objects - that appear on the left.`,f=A(),c=$("h2"),c.textContent="Saving files",d=A(),h=$("p"),h.innerHTML=`ATIP does not send any data over the network or store your data in the - cloud. The current file you're editing will be saved in your browser's local - storage and automatically resume when you return to the page. The Export to GeoJSON - and Load from GeoJSON buttons save and load GeoJSON files (with a - .txt file extension) to your computer. You share these files with others - to collaborate on designs.`},m(v,_){w(v,e,_),w(v,t,_),w(v,n,_),w(v,i,_),w(v,o,_),w(v,s,_),w(v,a,_),w(v,l,_),w(v,u,_),w(v,f,_),w(v,c,_),w(v,d,_),w(v,h,_)},p:U,d(v){v&&(k(e),k(t),k(n),k(i),k(o),k(s),k(a),k(l),k(u),k(f),k(c),k(d),k(h))}}}function ja(r){let e,t,n;function i(s){r[1](s)}let o={title:"Instructions",$$slots:{default:[Na]},$$scope:{ctx:r}};return r[0]!==void 0&&(o.open=r[0]),e=new _i({props:o}),le.push(()=>ve(e,"open",i)),{c(){F(e.$$.fragment)},m(s,a){P(e,s,a),n=!0},p(s,[a]){const l={};a&4&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.open=s[0],we(()=>t=!1)),e.$set(l)},i(s){n||(E(e.$$.fragment,s),n=!0)},o(s){C(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function Da(r,e,t){let{open:n}=e;function i(o){n=o,t(0,n)}return r.$$set=o=>{"open"in o&&t(0,n=o.open)},[n,i]}class Ha extends Z{constructor(e){super(),Q(this,e,Da,ja,ee,{open:0})}}const Ua="ATF4Intervention",qa=[{name:"name",type:"one-liner"},{name:"description",type:"textbox"},{name:"type",oneOf:["New segregated cycling facility","New junction treatment","New permanent footway","New shared use (walking and cycling) facilities","Improvements to make an existing walking/cycle route safer","Area-wide traffic management (including by TROs - both permanent and experimental)","Bus priority measures that also enable active travel (for example, bus gates)","Provision of secure cycle parking facilities","New road crossings","Restriction or reduction of car parking availability","School streets"]},{name:"complexity",oneOf:["high","medium","low"]}],Ga={name:Ua,members:qa};function Ya(r){const e=r-1;return e*e*e+1}function gn(r,{delay:e=0,duration:t=400,easing:n=Ya,axis:i="y"}={}){const o=getComputedStyle(r),s=+o.opacity,a=i==="y"?"height":"width",l=parseFloat(o[a]),u=i==="y"?["top","bottom"]:["left","right"],f=u.map(g=>`${g[0].toUpperCase()}${g.slice(1)}`),c=parseFloat(o[`padding${f[0]}`]),d=parseFloat(o[`padding${f[1]}`]),h=parseFloat(o[`margin${f[0]}`]),v=parseFloat(o[`margin${f[1]}`]),_=parseFloat(o[`border${f[0]}Width`]),b=parseFloat(o[`border${f[1]}Width`]);return{delay:e,duration:t,easing:n,css:g=>`overflow: hidden;opacity: ${Math.min(g*20,1)*s};${a}: ${g*l}px;padding-${u[0]}: ${g*c}px;padding-${u[1]}: ${g*d}px;margin-${u[0]}: ${g*h}px;margin-${u[1]}: ${g*v}px;border-${u[0]}-width: ${g*_}px;border-${u[1]}-width: ${g*b}px;`}}function Ji(r){return"members"in r}function zi(r){return"oneOf"in r}function Xi(r){return typeof r=="string"}function Wi(r){return typeof r=="object"&&"value"in r}function Ja(r){return"type"in r&&r.type=="number"}function Vi(r){return"type"in r&&r.type=="one-liner"}function Ki(r){return"type"in r&&r.type=="textbox"}function Zi(r){return"type"in r&&r.type=="checkbox"}function ei(r,e,t){const n=r.slice();return n[15]=e[t],n[18]=e,n[19]=t,n}function ti(r,e,t){const n=r.slice();return n[15]=e[t],n[16]=e,n[17]=t,n}function ni(r){let e,t=r[1].description+"",n;return{c(){e=$("p"),n=ie(t),R(e,"class","svelte-1b72l00")},m(i,o){w(i,e,o),M(e,n)},p(i,o){o&2&&t!==(t=i[1].description+"")&&Oe(n,t)},d(i){i&&k(e)}}}function za(r){let e,t,n;return{c(){e=$("input"),R(e,"type","checkbox")},m(i,o){w(i,e,o),e.checked=r[0],t||(n=G(e,"change",r[14]),t=!0)},p(i,o){o&1&&(e.checked=i[0])},i:U,o:U,d(i){i&&k(e),t=!1,n()}}}function Xa(r){let e,t,n;return{c(){e=$("textarea"),Te(e,"width","100%"),R(e,"rows","5"),R(e,"class","svelte-1b72l00")},m(i,o){w(i,e,o),fe(e,r[0]),t||(n=G(e,"input",r[13]),t=!0)},p(i,o){o&1&&fe(e,i[0])},i:U,o:U,d(i){i&&k(e),t=!1,n()}}}function Wa(r){let e,t,n;return{c(){e=$("input"),R(e,"type","text"),Te(e,"width","100%")},m(i,o){w(i,e,o),fe(e,r[0]),t||(n=G(e,"input",r[12]),t=!0)},p(i,o){o&1&&e.value!==i[0]&&fe(e,i[0])},i:U,o:U,d(i){i&&k(e),t=!1,n()}}}function Va(r){let e,t,n;return{c(){e=$("input"),R(e,"type","number")},m(i,o){w(i,e,o),fe(e,r[0]),t||(n=G(e,"input",r[11]),t=!0)},p(i,o){o&1&&gi(e.value)!==i[0]&&fe(e,i[0])},i:U,o:U,d(i){i&&k(e),t=!1,n()}}}function Ka(r){let e,t,n=De(r[1].oneOf),i=[];for(let s=0;sC(i[s],1,1,()=>{i[s]=null});return{c(){for(let s=0;sC(i[s],1,1,()=>{i[s]=null});return{c(){for(let s=0;s{_=null}),he())},i(b){c||(E(_),c=!0)},o(b){C(_),c=!1},d(b){b&&(k(e),k(u),k(f)),_&&_.d(b),d.r(),h=!1,Ie(v)}}}function eu(r){let e,t,n,i=!1,o,s=r[15].value+"",a,l,u,f,c,d;function h(b,g){return b[15].description?ru:nu}let v=h(r),_=v(r);return f=jt(r[7][0]),{c(){e=$("label"),t=$("input"),o=A(),a=ie(s),l=A(),_.c(),u=A(),R(t,"type","radio"),t.__value=n=r[15].value,fe(t,t.__value),f.p(t)},m(b,g){w(b,e,g),M(e,t),t.checked=t.__value===r[2],M(e,o),M(e,a),M(e,l),_.m(e,null),M(e,u),c||(d=[G(t,"change",r[8]),G(t,"change",r[3])],c=!0)},p(b,g){g&2&&n!==(n=b[15].value)&&(t.__value=n,fe(t,t.__value),i=!0),(i||g&6)&&(t.checked=t.__value===b[2]),g&2&&s!==(s=b[15].value+"")&&Oe(a,s),v===(v=h(b))&&_?_.p(b,g):(_.d(1),_=v(b),_&&(_.c(),_.m(e,u)))},i:U,o:U,d(b){b&&k(e),_.d(),f.r(),c=!1,Ie(d)}}}function tu(r){let e,t,n,i=!1,o,s=r[15]+"",a,l,u,f,c,d,h;return c=jt(r[7][0]),{c(){e=$("label"),t=$("input"),o=A(),a=ie(s),l=A(),u=$("br"),f=A(),R(t,"type","radio"),t.__value=n=r[15],fe(t,t.__value),c.p(t)},m(v,_){w(v,e,_),M(e,t),t.checked=t.__value===r[2],M(e,o),M(e,a),M(e,l),M(e,u),M(e,f),d||(h=[G(t,"change",r[6]),G(t,"change",r[3])],d=!0)},p(v,_){_&2&&n!==(n=v[15])&&(t.__value=n,fe(t,t.__value),i=!0),(i||_&6)&&(t.checked=t.__value===v[2]),_&2&&s!==(s=v[15]+"")&&Oe(a,s)},i:U,o:U,d(v){v&&k(e),c.r(),d=!1,Ie(h)}}}function ri(r){let e,t,n,i,o,s;function a(u){r[10](u,r[15])}let l={spec:r[15]};return r[0][r[15].name]!==void 0&&(l.value=r[0][r[15].name]),t=new bt({props:l}),le.push(()=>ve(t,"value",a)),{c(){e=$("div"),F(t.$$.fragment),i=A(),R(e,"class","svelte-1b72l00")},m(u,f){w(u,e,f),P(t,e,null),M(e,i),s=!0},p(u,f){r=u;const c={};f&2&&(c.spec=r[15]),!n&&f&3&&(n=!0,c.value=r[0][r[15].name],we(()=>n=!1)),t.$set(c)},i(u){s||(E(t.$$.fragment,u),u&&bn(()=>{s&&(o||(o=on(e,gn,{duration:500},!0)),o.run(1))}),s=!0)},o(u){C(t.$$.fragment,u),u&&(o||(o=on(e,gn,{duration:500},!1)),o.run(0)),s=!1},d(u){u&&k(e),B(t),u&&o&&o.end()}}}function nu(r){let e;return{c(){e=$("br")},m(t,n){w(t,e,n)},p:U,d(t){t&&k(e)}}}function ru(r){let e,t,n=r[15].description+"",i,o;return{c(){e=$("p"),t=ie("("),i=ie(n),o=ie(")"),R(e,"class","svelte-1b72l00")},m(s,a){w(s,e,a),M(e,t),M(e,i),M(e,o)},p(s,a){a&2&&n!==(n=s[15].description+"")&&Oe(i,n)},d(s){s&&k(e)}}}function ii(r){let e,t,n,i,o,s;const a=[tu,eu,Qa],l=[];function u(f,c){return c&2&&(e=null),c&2&&(t=null),e==null&&(e=!!Xi(f[15])),e?0:(t==null&&(t=!!Wi(f[15])),t?1:2)}return n=u(r,-1),i=l[n]=a[n](r),{c(){i.c(),o=_e()},m(f,c){l[n].m(f,c),w(f,o,c),s=!0},p(f,c){let d=n;n=u(f,c),n===d?l[n].p(f,c):(de(),C(l[d],1,1,()=>{l[d]=null}),he(),i=l[n],i?i.p(f,c):(i=l[n]=a[n](f),i.c()),E(i,1),i.m(o.parentNode,o))},i(f){s||(E(i),s=!0)},o(f){C(i),s=!1},d(f){f&&k(o),l[n].d(f)}}}function oi(r){let e,t,n=r[15].name+"",i,o,s,a,l,u;function f(d){r[5](d,r[15])}let c={spec:r[15]};return r[0][r[15].name]!==void 0&&(c.value=r[0][r[15].name]),s=new bt({props:c}),le.push(()=>ve(s,"value",f)),{c(){e=$("div"),t=$("h3"),i=ie(n),o=A(),F(s.$$.fragment),l=A(),R(e,"class","svelte-1b72l00")},m(d,h){w(d,e,h),M(e,t),M(t,i),M(e,o),P(s,e,null),M(e,l),u=!0},p(d,h){r=d,(!u||h&2)&&n!==(n=r[15].name+"")&&Oe(i,n);const v={};h&2&&(v.spec=r[15]),!a&&h&3&&(a=!0,v.value=r[0][r[15].name],we(()=>a=!1)),s.$set(v)},i(d){u||(E(s.$$.fragment,d),u=!0)},o(d){C(s.$$.fragment,d),u=!1},d(d){d&&k(e),B(s)}}}function iu(r){let e,t,n,i,o,s,a,l,u,f,c,d=r[1].description&&ni(r);const h=[Za,Ka,Va,Wa,Xa,za],v=[];function _(b,g){return g&2&&(t=null),g&2&&(n=null),g&2&&(i=null),g&2&&(o=null),g&2&&(s=null),g&2&&(a=null),t==null&&(t=!!Ji(b[1])),t?0:(n==null&&(n=!!zi(b[1])),n?1:(i==null&&(i=!!Ja(b[1])),i?2:(o==null&&(o=!!Vi(b[1])),o?3:(s==null&&(s=!!Ki(b[1])),s?4:(a==null&&(a=!!Zi(b[1])),a?5:-1)))))}return~(l=_(r,-1))&&(u=v[l]=h[l](r)),{c(){d&&d.c(),e=A(),u&&u.c(),f=_e()},m(b,g){d&&d.m(b,g),w(b,e,g),~l&&v[l].m(b,g),w(b,f,g),c=!0},p(b,[g]){b[1].description?d?d.p(b,g):(d=ni(b),d.c(),d.m(e.parentNode,e)):d&&(d.d(1),d=null);let p=l;l=_(b,g),l===p?~l&&v[l].p(b,g):(u&&(de(),C(v[p],1,1,()=>{v[p]=null}),he()),~l?(u=v[l],u?u.p(b,g):(u=v[l]=h[l](b),u.c()),E(u,1),u.m(f.parentNode,f)):u=null)},i(b){c||(E(u),c=!0)},o(b){C(u),c=!1},d(b){b&&(k(e),k(f)),d&&d.d(b),~l&&v[l].d(b)}}}function ou(r,e,t){var p,m,y;let{spec:n}=e,{value:i}=e,o="";if(Ji(n)){i||(i={});for(let S of n.members)Vi(S)||Ki(S)?i[p=S.name]||(i[p]=""):Zi(S)?i[m=S.name]||(i[m]=!1):i[y=S.name]||(i[y]={})}else zi(n)&&(i||(i={}),Xi(i)?o=i:Wi(i)?o=i.value:o=Object.keys(i)[0]||"");function s(){t(0,i=o)}function a(){t(0,i={}),t(0,i[o]={},i)}const l=[[]];function u(S,L){r.$$.not_equal(i[L.name],S)&&(i[L.name]=S,t(0,i))}function f(){o=this.__value,t(2,o)}function c(){o=this.__value,t(2,o)}function d(){o=this.__value,t(2,o)}function h(S,L){r.$$.not_equal(i[L.name],S)&&(i[L.name]=S,t(0,i))}function v(){i=gi(this.value),t(0,i)}function _(){i=this.value,t(0,i)}function b(){i=this.value,t(0,i)}function g(){i=this.checked,t(0,i)}return r.$$set=S=>{"spec"in S&&t(1,n=S.spec),"value"in S&&t(0,i=S.value)},[i,n,o,s,a,u,f,l,c,d,h,v,_,b,g]}class bt extends Z{constructor(e){super(),Q(this,e,ou,iu,ee,{spec:1,value:0})}}function su(r){let e,t,n;function i(s){r[2](s)}let o={spec:r[1]};return r[0].atf4!==void 0&&(o.value=r[0].atf4),e=new bt({props:o}),le.push(()=>ve(e,"value",i)),{c(){F(e.$$.fragment)},m(s,a){P(e,s,a),n=!0},p(s,[a]){const l={};!t&&a&1&&(t=!0,l.value=s[0].atf4,we(()=>t=!1)),e.$set(l)},i(s){n||(E(e.$$.fragment,s),n=!0)},o(s){C(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function lu(r,e,t){let{props:n}=e;n.atf4||(n.atf4={});let i=Ga;function o(s){r.$$.not_equal(n.atf4,s)&&(n.atf4=s,t(0,n))}return r.$$set=s=>{"props"in s&&t(0,n=s.props)},[n,i,o]}class au extends Z{constructor(e){super(),Q(this,e,lu,su,ee,{props:0})}}const uu="CriticalIssue",fu=[{name:"name",type:"one-liner"},{name:"Type",oneOf:[{value:"Conflict with motor traffic at side roads / priority junctions",description:">2500vpd cut across main cycling or walking streams"},{value:"Conflict with motor traffic at signal controlled junctions and roundabouts",description:">2500vpd cut across main cycling or walking streams"},{value:"Collision alongside or from behind",description:"Cyclists are not protected in traffic lanes between 3.25 and 3.9m wide."},{value:"Trip hazard",description:"There are level differences of greater than 20mm with no colour contrast to help identify them."},{value:"Conflict with kerbside activity (parking, loading, risk of 'dooring') ",description:"Cycle facility next to parking/loading with no buffer."},{value:"Kerbside activity or risk of crossing conflict",description:"On busy roads (>8000vpd) formal crossings are more than 400m apart. On quieter roads (<8000vpd), desire lines are blocked by parking and loading."},{value:"Standard of crossing facility",description:"On busy roads (>8000vpd), there are uncontrolled crossings of two or more lanes with no gaps in traffic. At signal junctions there are arms with no green man for pedestrians."},{value:"Speed of traffic (where cyclists are not separated or pedestrians crossing uncontrolled)",description:"85th percentile > 37mph (60kph)"},{value:"Total volume of traffic (where cyclists are not separated or pedestrians cross uncontrolled)",description:">10000 vpd. >5% of traffic is HGVs."},{value:"Required crossing speed (risk of pedestrians coming into conflict with traffic)",description:"Pedestrians must cross at a speed of over 1.2m/s to get across the crossing in time."},{value:"Clear walking spaces free of obstructions and furniture, reducing risk of pedestrians walking in the carriageway.",description:"<1.5m clear footway width. Or, 1.5m-2m clear footway width and pedestrian comfort is poor (PCL of D-E)."},{value:"Effective width next to tram line on a straight run",description:"<2.4m from tramline edge to kerb."},{value:"Crossing angle (between cyclist desire line and tram tracks)",description:"Crossing angle less than 60 degrees."},{value:"Defects: non cycle friendly ironworks, raised/ sunken covers/gullies",description:"Major defects"},{value:"Defects: non flush tables, misleading tactile information, cracked paving, slip-risks present from covers, steep slopes",description:"Major defects"}]},{name:"comment",type:"textbox"},{name:"photographed",type:"checkbox"}],cu={name:uu,members:fu};function pu(r){let e,t,n;function i(s){r[2](s)}let o={spec:r[1]};return r[0].criticals!==void 0&&(o.value=r[0].criticals),e=new bt({props:o}),le.push(()=>ve(e,"value",i)),{c(){F(e.$$.fragment)},m(s,a){P(e,s,a),n=!0},p(s,[a]){const l={};!t&&a&1&&(t=!0,l.value=s[0].criticals,we(()=>t=!1)),e.$set(l)},i(s){n||(E(e.$$.fragment,s),n=!0)},o(s){C(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function du(r,e,t){let{props:n}=e;n.criticals||(n.criticals={});let i=cu;function o(s){r.$$.not_equal(n.criticals,s)&&(n.criticals=s,t(0,n))}return r.$$set=s=>{"props"in s&&t(0,n=s.props)},[n,i,o]}class hu extends Z{constructor(e){super(),Q(this,e,du,pu,ee,{props:0})}}function gu(r,e,t){let n;z(r,Ue,l=>t(3,n=l));let{source:i}=e,{gj:o}=e,{style:s}=e,a=`${i}-layer`;return lt(n,i,o),Co(n,{id:a,source:i,...s}),mn(()=>{n.getLayer(a)&&n.removeLayer(a),n.getSource(i)&&n.removeSource(i)}),r.$$set=l=>{"source"in l&&t(0,i=l.source),"gj"in l&&t(1,o=l.gj),"style"in l&&t(2,s=l.style)},[i,o,s]}class wn extends Z{constructor(e){super(),Q(this,e,gu,null,ee,{source:0,gj:1,style:2})}}function _u(r){let e,t;return e=new wn({props:{source:"intersection-markings",gj:r[0],style:r[1]}}),{c(){F(e.$$.fragment)},m(n,i){P(e,n,i),t=!0},p(n,[i]){const o={};i&1&&(o.gj=n[0]),e.$set(o)},i(n){t||(E(e.$$.fragment,n),t=!0)},o(n){C(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function mu(r,e,t){let{gj:n}=e,i={type:"fill",paint:{"fill-color":yn("type",{"sidewalk corner":"#CCCCCC"},"red"),"fill-opacity":.9}};return r.$$set=o=>{"gj"in o&&t(0,n=o.gj)},[n,i]}class bu extends Z{constructor(e){super(),Q(this,e,mu,_u,ee,{gj:0})}}function yu(r){let e,t;return e=new wn({props:{source:"intersection-polygons",gj:r[0],style:r[1]}}),{c(){F(e.$$.fragment)},m(n,i){P(e,n,i),t=!0},p(n,[i]){const o={};i&1&&(o.gj=n[0]),e.$set(o)},i(n){t||(E(e.$$.fragment,n),t=!0)},o(n){C(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function vu(r,e,t){let{gj:n}=e,i={type:"fill",filter:["==",["get","type"],"intersection"],paint:{"fill-color":yn("intersection_kind",{MapEdge:"#696",Terminus:"black",Connection:"black",Fork:"black",Intersection:"black"},"red"),"fill-opacity":.9}};return r.$$set=o=>{"gj"in o&&t(0,n=o.gj)},[n,i]}class wu extends Z{constructor(e){super(),Q(this,e,vu,yu,ee,{gj:0})}}function ku(r){let e,t;return e=new wn({props:{source:"lane-markings",gj:r[0],style:r[1]}}),{c(){F(e.$$.fragment)},m(n,i){P(e,n,i),t=!0},p(n,[i]){const o={};i&1&&(o.gj=n[0]),e.$set(o)},i(n){t||(E(e.$$.fragment,n),t=!0)},o(n){C(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Su(r,e,t){let{gj:n}=e,i={type:"fill",paint:{"fill-color":yn("type",{"center line":"white","lane separator":"white","lane arrow":"white","buffer edge":"white","buffer stripe":"white","vehicle stop line":"white","bike stop line":"green"},"red"),"fill-opacity":.9}};return r.$$set=o=>{"gj"in o&&t(0,n=o.gj)},[n,i]}class Eu extends Z{constructor(e){super(),Q(this,e,Su,ku,ee,{gj:0})}}function Mu(r){let e,t;return e=new wn({props:{source:"lane-polygons",gj:r[0],style:r[1]}}),{c(){F(e.$$.fragment)},m(n,i){P(e,n,i),t=!0},p(n,[i]){const o={};i&1&&(o.gj=n[0]),e.$set(o)},i(n){t||(E(e.$$.fragment,n),t=!0)},o(n){C(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function $u(r,e,t){let{gj:n}=e,i={type:"fill",paint:{"fill-color":yn("type",{Driving:"black",Parking:"#333333",Sidewalk:"#CCCCCC",Shoulder:"#CCCCCC",Biking:"#0F7D4B",Bus:"#BE4A4C",SharedLeftTurn:"black",Construction:"#FF6D00",LightRail:"#844204",Footway:"#DDDDE8",SharedUse:"#E5E1BB","Buffer(Planters)":"#555555"},"red"),"fill-opacity":.9}};return r.$$set=o=>{"gj"in o&&t(0,n=o.gj)},[n,i]}class Cu extends Z{constructor(e){super(),Q(this,e,$u,Mu,ee,{gj:0})}}function si(r){let e,t,n,i,o,s,a,l;return e=new Cu({props:{gj:r[0]}}),n=new Eu({props:{gj:r[1]}}),o=new wu({props:{gj:r[2]}}),a=new bu({props:{gj:r[3]}}),{c(){F(e.$$.fragment),t=A(),F(n.$$.fragment),i=A(),F(o.$$.fragment),s=A(),F(a.$$.fragment)},m(u,f){P(e,u,f),w(u,t,f),P(n,u,f),w(u,i,f),P(o,u,f),w(u,s,f),P(a,u,f),l=!0},p(u,f){const c={};f&1&&(c.gj=u[0]),e.$set(c);const d={};f&2&&(d.gj=u[1]),n.$set(d);const h={};f&4&&(h.gj=u[2]),o.$set(h);const v={};f&8&&(v.gj=u[3]),a.$set(v)},i(u){l||(E(e.$$.fragment,u),E(n.$$.fragment,u),E(o.$$.fragment,u),E(a.$$.fragment,u),l=!0)},o(u){C(e.$$.fragment,u),C(n.$$.fragment,u),C(o.$$.fragment,u),C(a.$$.fragment,u),l=!1},d(u){u&&(k(t),k(i),k(s)),B(e,u),B(n,u),B(o,u),B(a,u)}}}function Lu(r){let e,t,n,i=r[0]&&si(r);return t=new Gi({props:{contents:"This visualizes lane data according to OpenStreetMap. There may be many errors with incorrect or missing lane data, lane width and intersection geometry, and markings. Use with caution."}}),{c(){i&&i.c(),e=A(),F(t.$$.fragment)},m(o,s){i&&i.m(o,s),w(o,e,s),P(t,o,s),n=!0},p(o,[s]){o[0]?i?(i.p(o,s),s&1&&E(i,1)):(i=si(o),i.c(),E(i,1),i.m(e.parentNode,e)):i&&(de(),C(i,1,1,()=>{i=null}),he())},i(o){n||(E(i),E(t.$$.fragment,o),n=!0)},o(o){C(i),C(t.$$.fragment,o),n=!1},d(o){o&&k(e),i&&i.d(o),B(t,o)}}}function Tu(r,e,t){let n,i;z(r,mt,f=>t(5,n=f)),z(r,ce,f=>t(6,i=f));let{id:o}=e,s,a,l,u;return Nt(async()=>{try{let f=i.features.find(d=>d.id==o),c=await n.renderLaneDetailsForRoute(f.properties.waypoints);t(0,s=JSON.parse(c[0])),t(1,a=JSON.parse(c[1])),t(2,l=JSON.parse(c[2])),t(3,u=JSON.parse(c[3]))}catch(f){window.alert(`Couldn't render lane details: ${f}`)}}),r.$$set=f=>{"id"in f&&t(4,o=f.id)},[s,a,l,u,o]}class Au extends Z{constructor(e){super(),Q(this,e,Tu,Lu,ee,{id:4})}}function xu(r){let e;return{c(){e=$("p"),e.textContent="Route info loading..."},m(t,n){w(t,e,n)},p:U,i:U,o:U,d(t){t&&k(e)}}}function Ou(r){let e,t,n,i,o,s,a,l,u,f,c,d,h;const v=[Iu,Ru],_=[];function b(g,p){return g[1]=="speed limits"?0:g[1]=="lane details"?1:-1}return~(l=b(r))&&(u=_[l]=v[l](r)),{c(){e=$("label"),t=ie(`Show details: - `),n=$("select"),i=$("option"),i.textContent="None",o=$("option"),o.textContent="Speed limits",s=$("option"),s.textContent="Lane details",a=A(),u&&u.c(),f=_e(),i.__value="none",fe(i,i.__value),o.__value="speed limits",fe(o,o.__value),s.__value="lane details",fe(s,s.__value),r[1]===void 0&&bn(()=>r[3].call(n))},m(g,p){w(g,e,p),M(e,t),M(e,n),M(n,i),M(n,o),M(n,s),rn(n,r[1],!0),w(g,a,p),~l&&_[l].m(g,p),w(g,f,p),c=!0,d||(h=G(n,"change",r[3]),d=!0)},p(g,p){p&2&&rn(n,g[1]);let m=l;l=b(g),l===m?~l&&_[l].p(g,p):(u&&(de(),C(_[m],1,1,()=>{_[m]=null}),he()),~l?(u=_[l],u?u.p(g,p):(u=_[l]=v[l](g),u.c()),E(u,1),u.m(f.parentNode,f)):u=null)},i(g){c||(E(u),c=!0)},o(g){C(u),c=!1},d(g){g&&(k(e),k(a),k(f)),~l&&_[l].d(g),d=!1,h()}}}function Ru(r){let e,t;return e=new Au({props:{id:r[0]}}),{c(){F(e.$$.fragment)},m(n,i){P(e,n,i),t=!0},p(n,i){const o={};i&1&&(o.id=n[0]),e.$set(o)},i(n){t||(E(e.$$.fragment,n),t=!0)},o(n){C(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Iu(r){let e,t;return e=new Yi({props:{id:r[0]}}),{c(){F(e.$$.fragment)},m(n,i){P(e,n,i),t=!0},p(n,i){const o={};i&1&&(o.id=n[0]),e.$set(o)},i(n){t||(E(e.$$.fragment,n),t=!0)},o(n){C(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Fu(r){let e,t,n,i;const o=[Ou,xu],s=[];function a(l,u){return l[2]?0:1}return e=a(r),t=s[e]=o[e](r),{c(){t.c(),n=_e()},m(l,u){s[e].m(l,u),w(l,n,u),i=!0},p(l,[u]){let f=e;e=a(l),e===f?s[e].p(l,u):(de(),C(s[f],1,1,()=>{s[f]=null}),he(),t=s[e],t?t.p(l,u):(t=s[e]=o[e](l),t.c()),E(t,1),t.m(n.parentNode,n))},i(l){i||(E(t),i=!0)},o(l){C(t),i=!1},d(l){l&&k(n),s[e].d(l)}}}function Pu(r,e,t){let n;z(r,mt,a=>t(2,n=a));let{id:i}=e,o="none";function s(){o=hi(this),t(1,o)}return r.$$set=a=>{"id"in a&&t(0,i=a.id)},[i,o,n,s]}class Bu extends Z{constructor(e){super(),Q(this,e,Pu,Fu,ee,{id:0})}}function li(r){let e,t,n,i,o;return{c(){e=$("button"),t=ie("Auto-fill"),R(e,"type","button"),e.disabled=n=!r[5]},m(s,a){w(s,e,a),M(e,t),i||(o=G(e,"click",r[7]),i=!0)},p(s,a){a&32&&n!==(n=!s[5])&&(e.disabled=n)},d(s){s&&k(e),i=!1,o()}}}function ai(r){let e,t=ui(r[4])+"",n,i,o,s,a,l;return a=new Bu({props:{id:r[3]}}),{c(){e=ie("Length: "),n=ie(t),i=A(),o=$("br"),s=A(),F(a.$$.fragment)},m(u,f){w(u,e,f),w(u,n,f),w(u,i,f),w(u,o,f),w(u,s,f),P(a,u,f),l=!0},p(u,f){(!l||f&16)&&t!==(t=ui(u[4])+"")&&Oe(n,t);const c={};f&8&&(c.id=u[3]),a.$set(c)},i(u){l||(E(a.$$.fragment,u),l=!0)},o(u){C(a.$$.fragment,u),l=!1},d(u){u&&(k(e),k(n),k(i),k(o),k(s)),B(a,u)}}}function Nu(r){let e,t,n,i,o,s,a,l,u,f,c,d,h,v,_,b,g,p,m,y,S,L,O,x,I,N,j,D,T,H,ae,ke,Ee,ue,ne,K,Le,me,ge,be,yt,Ht,se=r[4]&&li(r),re=r[4]&&ai(r);return be=jt(r[10][0]),{c(){e=$("label"),t=ie(`Name: - - `),se&&se.c(),n=A(),i=$("br"),o=A(),s=$("input"),a=A(),l=$("br"),u=A(),f=$("br"),c=A(),d=$("label"),h=$("input"),v=ie(` - Area`),_=A(),b=$("label"),g=$("input"),p=ie(` - Route`),m=A(),y=$("label"),S=$("input"),L=ie(` - Crossing`),O=A(),x=$("label"),I=$("input"),N=ie(` - Other`),j=A(),D=$("br"),T=A(),H=$("br"),ae=A(),ke=$("label"),Ee=ie("Description:"),ue=$("br"),ne=A(),K=$("textarea"),Le=A(),re&&re.c(),me=_e(),R(s,"type","text"),Te(s,"width","100%"),R(h,"type","radio"),h.__value="area",fe(h,h.__value),R(g,"type","radio"),g.__value="route",fe(g,g.__value),R(S,"type","radio"),S.__value="crossing",fe(S,S.__value),R(I,"type","radio"),I.__value="other",fe(I,I.__value),Te(K,"width","100%"),R(K,"rows","5"),R(K,"class","svelte-15lna0i"),be.p(h,g,S,I)},m(X,oe){w(X,e,oe),M(e,t),se&&se.m(e,null),M(e,n),M(e,i),M(e,o),M(e,s),fe(s,r[0]),w(X,a,oe),w(X,l,oe),w(X,u,oe),w(X,f,oe),w(X,c,oe),w(X,d,oe),M(d,h),h.checked=h.__value===r[1],M(d,v),w(X,_,oe),w(X,b,oe),M(b,g),g.checked=g.__value===r[1],M(b,p),w(X,m,oe),w(X,y,oe),M(y,S),S.checked=S.__value===r[1],M(y,L),w(X,O,oe),w(X,x,oe),M(x,I),I.checked=I.__value===r[1],M(x,N),w(X,j,oe),w(X,D,oe),w(X,T,oe),w(X,H,oe),w(X,ae,oe),w(X,ke,oe),M(ke,Ee),M(ke,ue),M(ke,ne),M(ke,K),fe(K,r[2]),w(X,Le,oe),re&&re.m(X,oe),w(X,me,oe),ge=!0,yt||(Ht=[G(s,"input",r[8]),G(h,"change",r[9]),G(g,"change",r[11]),G(S,"change",r[12]),G(I,"change",r[13]),G(K,"input",r[14])],yt=!0)},p(X,[oe]){X[4]?se?se.p(X,oe):(se=li(X),se.c(),se.m(e,n)):se&&(se.d(1),se=null),oe&1&&s.value!==X[0]&&fe(s,X[0]),oe&2&&(h.checked=h.__value===X[1]),oe&2&&(g.checked=g.__value===X[1]),oe&2&&(S.checked=S.__value===X[1]),oe&2&&(I.checked=I.__value===X[1]),oe&4&&fe(K,X[2]),X[4]?re?(re.p(X,oe),oe&16&&E(re,1)):(re=ai(X),re.c(),E(re,1),re.m(me.parentNode,me)):re&&(de(),C(re,1,1,()=>{re=null}),he())},i(X){ge||(E(re),ge=!0)},o(X){C(re),ge=!1},d(X){X&&(k(e),k(a),k(l),k(u),k(f),k(c),k(d),k(_),k(b),k(m),k(y),k(O),k(x),k(j),k(D),k(T),k(H),k(ae),k(ke),k(Le),k(me)),se&&se.d(),re&&re.d(X),be.r(),yt=!1,Ie(Ht)}}}function ui(r){return r<1e3?Math.round(r)+" m":(r/1e3).toFixed(1)+"km"}function ju(r,e,t){let n,i;z(r,mt,m=>t(5,n=m)),z(r,ce,m=>t(15,i=m));let{id:o}=e,{name:s}=e,{intervention_type:a}=e,{description:l}=e,{length_meters:u}=e;async function f(){let m=i.features.find(y=>y.id==o);try{t(0,s=await n.nameForRoute(m))}catch(y){window.alert(`Couldn't auto-name route: ${y}`)}}const c=[[]],d=()=>f();function h(){s=this.value,t(0,s)}function v(){a=this.__value,t(1,a)}function _(){a=this.__value,t(1,a)}function b(){a=this.__value,t(1,a)}function g(){a=this.__value,t(1,a)}function p(){l=this.value,t(2,l)}return r.$$set=m=>{"id"in m&&t(3,o=m.id),"name"in m&&t(0,s=m.name),"intervention_type"in m&&t(1,a=m.intervention_type),"description"in m&&t(2,l=m.description),"length_meters"in m&&t(4,u=m.length_meters)},[s,a,l,o,u,n,f,d,h,v,c,_,b,g,p]}class Du extends Z{constructor(e){super(),Q(this,e,ju,Nu,ee,{id:3,name:0,intervention_type:1,description:2,length_meters:4})}}const Hu="Intervention",Uu=[{name:"Route",members:[{name:"name",type:"one-liner"},{name:"description",type:"textbox"},{name:"RouteType",oneOf:[{name:"OnRoad",description:"Directly on or parallel to the carriageway",members:[{name:"OnRoadType",oneOf:["FullSeparation",{value:"Stepped",description:"Raised above the road, but below the footway. Only appropriate on roads with speeds under 30 mph."},"PartSeparation","MandatoryLane","AdvisoryLane",{name:"NoSeparation",description:"If there's no physical separation between the road, why not? Justify why separation is unnecessary.",oneOf:["TrafficCalming","ModalFilters","LowSpeed"]}]},{name:"SourceOfSpace",oneOf:["ReallocateEntireLane","RoadDiet","PavementDiet","ReallocateVerge"]}]},{name:"OffRoad",oneOf:["ThroughPark","CanalTowpath"]}]},{name:"Users",oneOf:["Footpath","Cyclepath","SharedUseNoSeparation",{name:"SharedUseWithSeparation",members:[{name:"width_footpath",type:"number"},{name:"width_cyclepath",type:"number"}]}]}]},{name:"Crossing",members:[{name:"name",type:"one-liner"},{name:"description",type:"textbox"},{name:"CrossingType",oneOf:["Zebra",{name:"Signalised",members:[{name:"SignalisedCrossingType",oneOf:["Puffin","Toucan","Pegasus"]},{name:"CrossingActivation",oneOf:["PressButton","InductionLoop","FixedTimer"]},{name:"MaxTimeWaitingForGreen",description:"After activating the signal, what is the maximum time somebody will wait before getting a green light? (seconds)",type:"number"},{name:"GreenDuration",type:"number"}]},"SchoolCrossing","Refuge",{name:"GradeSeparated",members:[{name:"GradeSeparatedType",oneOf:["Bridge","Tunnel"]},{name:"AccessRamp",type:"checkbox"},{name:"Steps",type:"checkbox"}]}]},{name:"MatchesDesireLine",type:"checkbox"},{name:"MotorTrafficFlow",oneOf:["> 8000","3000 - 8000","< 3000"]},{name:"MotorTrafficSpeed",oneOf:["> 30 mph","20 - 30 mph","< 20 mph"]}]}],qu={name:Hu,oneOf:Uu};function Gu(r){let e,t,n;function i(s){r[2](s)}let o={spec:r[1]};return r[0].v2!==void 0&&(o.value=r[0].v2),e=new bt({props:o}),le.push(()=>ve(e,"value",i)),{c(){F(e.$$.fragment)},m(s,a){P(e,s,a),n=!0},p(s,[a]){const l={};!t&&a&1&&(t=!0,l.value=s[0].v2,we(()=>t=!1)),e.$set(l)},i(s){n||(E(e.$$.fragment,s),n=!0)},o(s){C(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function Yu(r,e,t){let{props:n}=e;n.v2||(n.v2={});let i=qu;function o(s){r.$$.not_equal(n.v2,s)&&(n.v2=s,t(0,n))}return r.$$set=s=>{"props"in s&&t(0,n=s.props)},[n,i,o]}class Ju extends Z{constructor(e){super(),Q(this,e,Yu,Gu,ee,{props:0})}}const zu="Planning",Xu=[{name:"name",type:"one-liner"},{name:"notes",type:"textbox"},{name:"reference_type",oneOf:["preapp","outline","reserved matters","local plan"]},{name:"size",type:"number"},{name:"size_units",oneOf:["number of units","floorspace","area"]},{name:"triage",oneOf:["No Comment","Standing Advice","Toolkit Assessment"]},{name:"recommendation",oneOf:["No Comment","No Objection","Standing Advice","Deferral","Approve subject to conditions and/or obligations","Refusal"]}],Wu={name:zu,members:Xu};function Vu(r){let e,t,n;function i(s){r[2](s)}let o={spec:r[1]};return r[0].planning!==void 0&&(o.value=r[0].planning),e=new bt({props:o}),le.push(()=>ve(e,"value",i)),{c(){F(e.$$.fragment)},m(s,a){P(e,s,a),n=!0},p(s,[a]){const l={};!t&&a&1&&(t=!0,l.value=s[0].planning,we(()=>t=!1)),e.$set(l)},i(s){n||(E(e.$$.fragment,s),n=!0)},o(s){C(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function Ku(r,e,t){let{props:n}=e;n.planning||(n.planning={});let i=Wu;function o(s){r.$$.not_equal(n.planning,s)&&(n.planning=s,t(0,n))}return r.$$set=s=>{"props"in s&&t(0,n=s.props)},[n,i,o]}class Zu extends Z{constructor(e){super(),Q(this,e,Ku,Vu,ee,{props:0})}}function fi(r){let e,t,n,i,o;const s=r[10].default,a=Lo(s,r,r[9],null);return{c(){e=$("div"),a&&a.c(),Te(e,"border","solid 1px black"),Te(e,"padding","10px")},m(l,u){w(l,e,u),a&&a.m(e,null),r[13](e),n=!0,i||(o=G(e,"introend",r[14]),i=!0)},p(l,u){a&&a.p&&(!n||u&512)&&To(a,s,l,l[9],n?xo(s,l[9],u,null):Ao(l[9]),null)},i(l){n||(E(a,l),l&&bn(()=>{n&&(t||(t=on(e,gn,{duration:100},!0)),t.run(1))}),n=!0)},o(l){C(a,l),l&&(t||(t=on(e,gn,{duration:100},!1)),t.run(0)),n=!1},d(l){l&&k(e),a&&a.d(l),r[13](null),l&&t&&t.end(),i=!1,o()}}}function Qu(r){let e,t,n,i,o,s,a,l,u,f,c=r[4]&&fi(r);return{c(){e=$("button"),t=cr("svg"),n=cr("path"),i=A(),o=ie(r[1]),s=A(),c&&c.c(),a=_e(),R(n,"d","M9 5l7 7-7 7"),R(t,"style","tran"),R(t,"width","20"),R(t,"height","20"),R(t,"fill","none"),R(t,"stroke-linecap","round"),R(t,"stroke-linejoin","round"),R(t,"stroke-width","2"),R(t,"viewBox","0 0 24 24"),R(t,"stroke","currentColor"),R(t,"class","svelte-t7fpgu"),R(e,"aria-expanded",r[4]),R(e,"class","svelte-t7fpgu"),pr(e,"underlined",r[3])},m(d,h){w(d,e,h),M(e,t),M(t,n),M(e,i),M(e,o),w(d,s,h),c&&c.m(d,h),w(d,a,h),l=!0,u||(f=[G(e,"click",r[5]),G(e,"mouseenter",r[11]),G(e,"mouseleave",r[12])],u=!0)},p(d,[h]){(!l||h&2)&&Oe(o,d[1]),(!l||h&16)&&R(e,"aria-expanded",d[4]),(!l||h&8)&&pr(e,"underlined",d[3]),d[4]?c?(c.p(d,h),h&16&&E(c,1)):(c=fi(d),c.c(),E(c,1),c.m(a.parentNode,a)):c&&(de(),C(c,1,1,()=>{c=null}),he())},i(d){l||(E(c),l=!0)},o(d){C(c),l=!1},d(d){d&&(k(e),k(s),k(a)),c&&c.d(d),u=!1,Ie(f)}}}function ef(r,e,t){let n,i,o,s;z(r,Ye,p=>t(7,o=p)),z(r,Re,p=>t(8,s=p));let{$$slots:a={},$$scope:l}=e,{id:u}=e,{label:f}=e;const c=()=>{Re.update(p=>p==u?null:u),s==u&&(ln.set(null),ln.set(u))};let d;function h(){d==null||d.scrollIntoView({behavior:"smooth"})}const v=()=>sn.set(u),_=()=>sn.set(null);function b(p){le[p?"unshift":"push"](()=>{d=p,t(2,d)})}const g=()=>h();return r.$$set=p=>{"id"in p&&t(0,u=p.id),"label"in p&&t(1,f=p.label),"$$scope"in p&&t(9,l=p.$$scope)},r.$$.update=()=>{r.$$.dirty&257&&t(4,n=s==u),r.$$.dirty&129&&t(3,i=o==u)},[u,f,d,i,n,c,h,o,s,l,a,v,_,b,g]}class tf extends Z{constructor(e){super(),Q(this,e,ef,Qu,ee,{id:0,label:1})}}function ci(r,e,t){const n=r.slice();return n[14]=e[t],n[15]=e,n[16]=t,n}function nf(r){let e,t,n;function i(s){r[10](s,r[14])}let o={};return r[14].properties!==void 0&&(o.props=r[14].properties),e=new au({props:o}),le.push(()=>ve(e,"props",i)),{c(){F(e.$$.fragment)},m(s,a){P(e,s,a),n=!0},p(s,a){r=s;const l={};!t&&a&2&&(t=!0,l.props=r[14].properties,we(()=>t=!1)),e.$set(l)},i(s){n||(E(e.$$.fragment,s),n=!0)},o(s){C(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function rf(r){let e,t,n;function i(s){r[9](s,r[14])}let o={};return r[14].properties!==void 0&&(o.props=r[14].properties),e=new hu({props:o}),le.push(()=>ve(e,"props",i)),{c(){F(e.$$.fragment)},m(s,a){P(e,s,a),n=!0},p(s,a){r=s;const l={};!t&&a&2&&(t=!0,l.props=r[14].properties,we(()=>t=!1)),e.$set(l)},i(s){n||(E(e.$$.fragment,s),n=!0)},o(s){C(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function of(r){let e,t,n;function i(s){r[8](s,r[14])}let o={};return r[14].properties!==void 0&&(o.props=r[14].properties),e=new Zu({props:o}),le.push(()=>ve(e,"props",i)),{c(){F(e.$$.fragment)},m(s,a){P(e,s,a),n=!0},p(s,a){r=s;const l={};!t&&a&2&&(t=!0,l.props=r[14].properties,we(()=>t=!1)),e.$set(l)},i(s){n||(E(e.$$.fragment,s),n=!0)},o(s){C(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function sf(r){let e,t,n;function i(s){r[7](s,r[14])}let o={};return r[14].properties!==void 0&&(o.props=r[14].properties),e=new Ju({props:o}),le.push(()=>ve(e,"props",i)),{c(){F(e.$$.fragment)},m(s,a){P(e,s,a),n=!0},p(s,a){r=s;const l={};!t&&a&2&&(t=!0,l.props=r[14].properties,we(()=>t=!1)),e.$set(l)},i(s){n||(E(e.$$.fragment,s),n=!0)},o(s){C(e.$$.fragment,s),n=!1},d(s){B(e,s)}}}function lf(r){let e,t,n,i,o;function s(f){r[4](f,r[14])}function a(f){r[5](f,r[14])}function l(f){r[6](f,r[14])}let u={id:r[14].id,length_meters:r[14].properties.length_meters};return r[14].properties.name!==void 0&&(u.name=r[14].properties.name),r[14].properties.intervention_type!==void 0&&(u.intervention_type=r[14].properties.intervention_type),r[14].properties.description!==void 0&&(u.description=r[14].properties.description),e=new Du({props:u}),le.push(()=>ve(e,"name",s)),le.push(()=>ve(e,"intervention_type",a)),le.push(()=>ve(e,"description",l)),{c(){F(e.$$.fragment)},m(f,c){P(e,f,c),o=!0},p(f,c){r=f;const d={};c&2&&(d.id=r[14].id),c&2&&(d.length_meters=r[14].properties.length_meters),!t&&c&2&&(t=!0,d.name=r[14].properties.name,we(()=>t=!1)),!n&&c&2&&(n=!0,d.intervention_type=r[14].properties.intervention_type,we(()=>n=!1)),!i&&c&2&&(i=!0,d.description=r[14].properties.description,we(()=>i=!1)),e.$set(d)},i(f){o||(E(e.$$.fragment,f),o=!0)},o(f){C(e.$$.fragment,f),o=!1},d(f){B(e,f)}}}function af(r){let e,t,n,i,o,s,a,l,u,f,c,d,h,v,_;const b=[lf,sf,of,rf,nf],g=[];function p(y,S){return y[0]=="v1"?0:y[0]=="v2"?1:y[0]=="planning"?2:y[0]=="criticals"?3:y[0]=="atf4"?4:-1}~(e=p(r))&&(t=g[e]=b[e](r));function m(){return r[11](r[14])}return{c(){t&&t.c(),n=A(),i=$("br"),o=A(),s=$("br"),a=A(),l=$("div"),u=$("button"),u.textContent="Delete",f=A(),c=$("button"),c.textContent="Save",d=A(),R(u,"type","button"),R(c,"type","button"),Te(l,"display","flex"),Te(l,"justify-content","space-between")},m(y,S){~e&&g[e].m(y,S),w(y,n,S),w(y,i,S),w(y,o,S),w(y,s,S),w(y,a,S),w(y,l,S),M(l,u),M(l,f),M(l,c),w(y,d,S),h=!0,v||(_=[G(u,"click",m),G(c,"click",r[12])],v=!0)},p(y,S){r=y;let L=e;e=p(r),e===L?~e&&g[e].p(r,S):(t&&(de(),C(g[L],1,1,()=>{g[L]=null}),he()),~e?(t=g[e],t?t.p(r,S):(t=g[e]=b[e](r),t.c()),E(t,1),t.m(n.parentNode,n)):t=null)},i(y){h||(E(t),h=!0)},o(y){C(t),h=!1},d(y){y&&(k(n),k(i),k(o),k(s),k(a),k(l),k(d)),~e&&g[e].d(y),v=!1,Ie(_)}}}function pi(r,e){let t,n,i;return n=new tf({props:{id:e[14].id,label:e[16]+1+") "+e[2](e[14]),$$slots:{default:[af]},$$scope:{ctx:e}}}),{key:r,first:null,c(){t=_e(),F(n.$$.fragment),this.first=t},m(o,s){w(o,t,s),P(n,o,s),i=!0},p(o,s){e=o;const a={};s&2&&(a.id=e[14].id),s&2&&(a.label=e[16]+1+") "+e[2](e[14])),s&131075&&(a.$$scope={dirty:s,ctx:e}),n.$set(a)},i(o){i||(E(n.$$.fragment,o),i=!0)},o(o){C(n.$$.fragment,o),i=!1},d(o){o&&k(t),B(n,o)}}}function uf(r){let e=[],t=new Map,n,i,o,s,a=De(r[1].features);const l=u=>u[14].id;for(let u=0;ut(13,n=g)),z(r,ce,g=>t(1,i=g));let{schema:o}=e;function s(g){var m,y,S,L,O,x,I;if(o=="planning")return((m=g.properties.planning)==null?void 0:m.name)||"Untitled polygon";if(o=="v2")return((S=(y=g.properties.v2)==null?void 0:y.Route)==null?void 0:S.name)||((O=(L=g.properties.v2)==null?void 0:L.Crossing)==null?void 0:O.name)||"Untitled intervention";if(o=="criticals")return((x=g.properties.criticals)==null?void 0:x.name)||"Untitled issue";if(o=="atf4")return((I=g.properties.atf4)==null?void 0:I.name)||"Untitled intervention";if(g.properties.name)return g.properties.name;var p=g.properties.intervention_type;return p=="other"&&(g.geometry.type=="Point"?p="point":g.geometry.type=="LineString"?p="line":p="polygon"),`Untitled ${p}`}function a(g){if(g.key=="Delete"){const p=g.target.tagName;if(p=="INPUT"||p=="TEXTAREA")return;g.preventDefault();const m=n;m&&dr(m)}}function l(g,p){r.$$.not_equal(p.properties.name,g)&&(p.properties.name=g,ce.set(i))}function u(g,p){r.$$.not_equal(p.properties.intervention_type,g)&&(p.properties.intervention_type=g,ce.set(i))}function f(g,p){r.$$.not_equal(p.properties.description,g)&&(p.properties.description=g,ce.set(i))}function c(g,p){r.$$.not_equal(p.properties,g)&&(p.properties=g,ce.set(i))}function d(g,p){r.$$.not_equal(p.properties,g)&&(p.properties=g,ce.set(i))}function h(g,p){r.$$.not_equal(p.properties,g)&&(p.properties=g,ce.set(i))}function v(g,p){r.$$.not_equal(p.properties,g)&&(p.properties=g,ce.set(i))}const _=g=>dr(g.id),b=()=>Re.set(null);return r.$$set=g=>{"schema"in g&&t(0,o=g.schema)},[o,i,s,a,l,u,f,c,d,h,v,_,b]}class cf extends Z{constructor(e){super(),Q(this,e,ff,uf,ee,{schema:0})}}let te;const Ge=new Array(128).fill(void 0);Ge.push(void 0,null,!0,!1);function J(r){return Ge[r]}let Rt=Ge.length;function pf(r){r<132||(Ge[r]=Rt,Rt=r)}function dt(r){const e=J(r);return pf(r),e}let st=0,Et=null;function It(){return(Et===null||Et.byteLength===0)&&(Et=new Uint8Array(te.memory.buffer)),Et}const en=typeof TextEncoder<"u"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},df=typeof en.encodeInto=="function"?function(r,e){return en.encodeInto(r,e)}:function(r,e){const t=en.encode(r);return e.set(t),{read:r.length,written:t.length}};function An(r,e,t){if(t===void 0){const a=en.encode(r),l=e(a.length)>>>0;return It().subarray(l,l+a.length).set(a),st=a.length,l}let n=r.length,i=e(n)>>>0;const o=It();let s=0;for(;s127)break;o[i+s]=a}if(s!==n){s!==0&&(r=r.slice(s)),i=t(i,n,n=s+r.length*3)>>>0;const a=It().subarray(i+s,i+n),l=df(r,a);s+=l.written}return st=s,i}function St(r){return r==null}let Mt=null;function pe(){return(Mt===null||Mt.byteLength===0)&&(Mt=new Int32Array(te.memory.buffer)),Mt}const Qi=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};typeof TextDecoder<"u"&&Qi.decode();function Ze(r,e){return r=r>>>0,Qi.decode(It().subarray(r,r+e))}function ye(r){Rt===Ge.length&&Ge.push(Ge.length+1);const e=Rt;return Rt=Ge[e],Ge[e]=r,e}let $t=null;function hf(){return($t===null||$t.byteLength===0)&&($t=new Float64Array(te.memory.buffer)),$t}let Ct=null;function gf(){return(Ct===null||Ct.byteLength===0)&&(Ct=new BigInt64Array(te.memory.buffer)),Ct}function Vn(r){const e=typeof r;if(e=="number"||e=="boolean"||r==null)return`${r}`;if(e=="string")return`"${r}"`;if(e=="symbol"){const i=r.description;return i==null?"Symbol":`Symbol(${i})`}if(e=="function"){const i=r.name;return typeof i=="string"&&i.length>0?`Function(${i})`:"Function"}if(Array.isArray(r)){const i=r.length;let o="[";i>0&&(o+=Vn(r[0]));for(let s=1;s1)n=t[1];else return toString.call(r);if(n=="Object")try{return"Object("+JSON.stringify(r)+")"}catch{return"Object"}return r instanceof Error?`${r.name}: ${r.message} -${r.stack}`:n}function _f(r,e){const t=e(r.length*1)>>>0;return It().set(r,t/1),st=r.length,t}function xn(r,e){try{return r.apply(this,e)}catch(t){te.__wbindgen_exn_store(ye(t))}}let mf=class Kn{static __wrap(e){e=e>>>0;const t=Object.create(Kn.prototype);return t.__wbg_ptr=e,t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,e}free(){const e=this.__destroy_into_raw();te.__wbg_routeinfo_free(e)}constructor(e){try{const o=te.__wbindgen_add_to_stack_pointer(-16),s=_f(e,te.__wbindgen_malloc),a=st;te.routeinfo_new(o,s,a);var t=pe()[o/4+0],n=pe()[o/4+1],i=pe()[o/4+2];if(i)throw dt(n);return Kn.__wrap(t)}finally{te.__wbindgen_add_to_stack_pointer(16)}}nameForRoute(e){let t,n;try{const f=te.__wbindgen_add_to_stack_pointer(-16);te.routeinfo_nameForRoute(f,this.__wbg_ptr,ye(e));var i=pe()[f/4+0],o=pe()[f/4+1],s=pe()[f/4+2],a=pe()[f/4+3],l=i,u=o;if(a)throw l=0,u=0,dt(s);return t=l,n=u,Ze(l,u)}finally{te.__wbindgen_add_to_stack_pointer(16),te.__wbindgen_free(t,n)}}speedLimitForRoute(e){let t,n;try{const f=te.__wbindgen_add_to_stack_pointer(-16);te.routeinfo_speedLimitForRoute(f,this.__wbg_ptr,ye(e));var i=pe()[f/4+0],o=pe()[f/4+1],s=pe()[f/4+2],a=pe()[f/4+3],l=i,u=o;if(a)throw l=0,u=0,dt(s);return t=l,n=u,Ze(l,u)}finally{te.__wbindgen_add_to_stack_pointer(16),te.__wbindgen_free(t,n)}}allSpeedLimits(){let e,t;try{const u=te.__wbindgen_add_to_stack_pointer(-16);te.routeinfo_allSpeedLimits(u,this.__wbg_ptr);var n=pe()[u/4+0],i=pe()[u/4+1],o=pe()[u/4+2],s=pe()[u/4+3],a=n,l=i;if(s)throw a=0,l=0,dt(o);return e=a,t=l,Ze(a,l)}finally{te.__wbindgen_add_to_stack_pointer(16),te.__wbindgen_free(e,t)}}renderLaneDetailsForRoute(e){let t,n;try{const f=te.__wbindgen_add_to_stack_pointer(-16);te.routeinfo_renderLaneDetailsForRoute(f,this.__wbg_ptr,ye(e));var i=pe()[f/4+0],o=pe()[f/4+1],s=pe()[f/4+2],a=pe()[f/4+3],l=i,u=o;if(a)throw l=0,u=0,dt(s);return t=l,n=u,Ze(l,u)}finally{te.__wbindgen_add_to_stack_pointer(16),te.__wbindgen_free(t,n)}}};async function bf(r,e){if(typeof Response=="function"&&r instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(r,e)}catch(n){if(r.headers.get("Content-Type")!="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",n);else throw n}const t=await r.arrayBuffer();return await WebAssembly.instantiate(t,e)}else{const t=await WebAssembly.instantiate(r,e);return t instanceof WebAssembly.Instance?{instance:t,module:r}:t}}function yf(){const r={};return r.wbg={},r.wbg.__wbindgen_object_drop_ref=function(e){dt(e)},r.wbg.__wbindgen_boolean_get=function(e){const t=J(e);return typeof t=="boolean"?t?1:0:2},r.wbg.__wbindgen_string_get=function(e,t){const n=J(t),i=typeof n=="string"?n:void 0;var o=St(i)?0:An(i,te.__wbindgen_malloc,te.__wbindgen_realloc),s=st;pe()[e/4+1]=s,pe()[e/4+0]=o},r.wbg.__wbindgen_error_new=function(e,t){const n=new Error(Ze(e,t));return ye(n)},r.wbg.__wbindgen_is_bigint=function(e){return typeof J(e)=="bigint"},r.wbg.__wbindgen_bigint_from_i64=function(e){return ye(e)},r.wbg.__wbindgen_jsval_eq=function(e,t){return J(e)===J(t)},r.wbg.__wbindgen_number_get=function(e,t){const n=J(t),i=typeof n=="number"?n:void 0;hf()[e/8+1]=St(i)?0:i,pe()[e/4+0]=!St(i)},r.wbg.__wbindgen_is_object=function(e){const t=J(e);return typeof t=="object"&&t!==null},r.wbg.__wbindgen_in=function(e,t){return J(e)in J(t)},r.wbg.__wbindgen_bigint_from_u64=function(e){const t=BigInt.asUintN(64,e);return ye(t)},r.wbg.__wbindgen_is_undefined=function(e){return J(e)===void 0},r.wbg.__wbindgen_string_new=function(e,t){const n=Ze(e,t);return ye(n)},r.wbg.__wbindgen_jsval_loose_eq=function(e,t){return J(e)==J(t)},r.wbg.__wbindgen_object_clone_ref=function(e){const t=J(e);return ye(t)},r.wbg.__wbg_getwithrefkey_5e6d9547403deab8=function(e,t){const n=J(e)[J(t)];return ye(n)},r.wbg.__wbg_new_abda76e883ba8a5f=function(){const e=new Error;return ye(e)},r.wbg.__wbg_stack_658279fe44541cf6=function(e,t){const n=J(t).stack,i=An(n,te.__wbindgen_malloc,te.__wbindgen_realloc),o=st;pe()[e/4+1]=o,pe()[e/4+0]=i},r.wbg.__wbg_error_f851667af71bcfc6=function(e,t){let n,i;try{n=e,i=t,console.error(Ze(e,t))}finally{te.__wbindgen_free(n,i)}},r.wbg.__wbg_debug_917e579618ee56f5=function(e){console.debug(J(e))},r.wbg.__wbg_error_ea7597dedb63d9a4=function(e){console.error(J(e))},r.wbg.__wbg_info_fc2a17f38101c41c=function(e){console.info(J(e))},r.wbg.__wbg_log_003c998d6df63565=function(e){console.log(J(e))},r.wbg.__wbg_warn_ebfcadd0780df93a=function(e){console.warn(J(e))},r.wbg.__wbg_get_e52aaca45f37b337=function(e,t){const n=J(e)[t>>>0];return ye(n)},r.wbg.__wbg_length_070e3265c186df02=function(e){return J(e).length},r.wbg.__wbindgen_is_function=function(e){return typeof J(e)=="function"},r.wbg.__wbg_next_3975dcca26737a22=function(e){const t=J(e).next;return ye(t)},r.wbg.__wbg_next_5a9700550e162aa3=function(){return xn(function(e){const t=J(e).next();return ye(t)},arguments)},r.wbg.__wbg_done_a184612220756243=function(e){return J(e).done},r.wbg.__wbg_value_6cc144c1d9645dd5=function(e){const t=J(e).value;return ye(t)},r.wbg.__wbg_iterator_c1677479667ea090=function(){return ye(Symbol.iterator)},r.wbg.__wbg_get_363c3b466fe4896b=function(){return xn(function(e,t){const n=Reflect.get(J(e),J(t));return ye(n)},arguments)},r.wbg.__wbg_call_f96b398515635514=function(){return xn(function(e,t){const n=J(e).call(J(t));return ye(n)},arguments)},r.wbg.__wbg_isArray_07d89ced8fb14171=function(e){return Array.isArray(J(e))},r.wbg.__wbg_instanceof_ArrayBuffer_de688b806c28ff28=function(e){let t;try{t=J(e)instanceof ArrayBuffer}catch{t=!1}return t},r.wbg.__wbg_isSafeInteger_fcdf4c4f25c86778=function(e){return Number.isSafeInteger(J(e))},r.wbg.__wbg_entries_c3e06bf0354f5d20=function(e){const t=Object.entries(J(e));return ye(t)},r.wbg.__wbg_buffer_fcbfb6d88b2732e9=function(e){const t=J(e).buffer;return ye(t)},r.wbg.__wbg_new_bc5d9aad3f9ac80e=function(e){const t=new Uint8Array(J(e));return ye(t)},r.wbg.__wbg_set_4b3aa8445ac1e91c=function(e,t,n){J(e).set(J(t),n>>>0)},r.wbg.__wbg_length_d9c4ded7e708c6a1=function(e){return J(e).length},r.wbg.__wbg_instanceof_Uint8Array_4733577ba827276b=function(e){let t;try{t=J(e)instanceof Uint8Array}catch{t=!1}return t},r.wbg.__wbindgen_bigint_get_as_i64=function(e,t){const n=J(t),i=typeof n=="bigint"?n:void 0;gf()[e/8+1]=St(i)?BigInt(0):i,pe()[e/4+0]=!St(i)},r.wbg.__wbindgen_debug_string=function(e,t){const n=Vn(J(t)),i=An(n,te.__wbindgen_malloc,te.__wbindgen_realloc),o=st;pe()[e/4+1]=o,pe()[e/4+0]=i},r.wbg.__wbindgen_throw=function(e,t){throw new Error(Ze(e,t))},r.wbg.__wbindgen_memory=function(){const e=te.memory;return ye(e)},r}function vf(r,e){return te=r.exports,eo.__wbindgen_wasm_module=e,Ct=null,$t=null,Mt=null,Et=null,te}async function eo(r){if(te!==void 0)return te;typeof r>"u"&&(r="/atip/browse_dropdown_filters/assets/route_info_bg.wasm");const e=yf();(typeof r=="string"||typeof Request=="function"&&r instanceof Request||typeof URL=="function"&&r instanceof URL)&&(r=fetch(r));const{instance:t,module:n}=await bf(await r,e);return vf(t,n)}class wf{constructor(){Y(this,"inner");this.inner=null}async loadFile(e){await eo(),console.log(`Grabbing A/B Street map model data from ${e}`);let n=await(await fetch(e)).arrayBuffer();this.inner=new mf(new Uint8Array(n)),console.log("RouteInfo is ready!")}nameForRoute(e){if(!this.inner)throw new Error("Still loading route info, please retry after a few seconds");return this.inner.nameForRoute(e)}speedLimitForRoute(e){if(!this.inner)throw new Error("Still loading route info, please retry after a few seconds");return this.inner.speedLimitForRoute(e)}allSpeedLimits(){if(!this.inner)throw new Error("Still loading route info, please retry after a few seconds");return this.inner.allSpeedLimits()}renderLaneDetailsForRoute(e){if(!this.inner)throw new Error("Still loading route info, please retry after a few seconds");return JSON.parse(this.inner.renderLaneDetailsForRoute(e))}}ir(wf);function kf(){return new Worker("/atip/browse_dropdown_filters/assets/worker-9e257977.js")}function Sf(r){let e,t,n,i,o,s,a,l,u,f,c,d,h,v,_,b,g,p,m,y,S,L,O,x,I,N,j;return v=new No({props:{boundaryGeojson:r[2]}}),b=new Ba({props:{authorityName:r[3],schema:r[5]}}),y=new cf({props:{schema:r[5]}}),x=new Ta({}),{c(){e=$("div"),t=$("div"),n=$("button"),n.textContent="Home",i=A(),o=$("button"),o.textContent="About",s=A(),a=$("button"),a.textContent="Instructions",l=A(),u=$("p"),u.textContent=`${jo(r[5])} mode`,f=A(),c=$("h1"),d=ie(r[3]),h=A(),F(v.$$.fragment),_=A(),F(b.$$.fragment),g=A(),p=$("br"),m=A(),F(y.$$.fragment),S=A(),L=$("hr"),O=A(),F(x.$$.fragment),R(n,"type","button"),R(o,"type","button"),R(a,"type","button"),R(e,"slot","sidebar")},m(D,T){w(D,e,T),M(e,t),M(t,n),M(t,i),M(t,o),M(t,s),M(t,a),M(e,l),M(e,u),M(e,f),M(e,c),M(c,d),M(c,h),P(v,c,null),M(e,_),P(b,e,null),M(e,g),M(e,p),M(e,m),P(y,e,null),M(e,S),M(e,L),M(e,O),P(x,e,null),I=!0,N||(j=[G(n,"click",r[9]),G(o,"click",r[7]),G(a,"click",r[8])],N=!0)},p(D,T){const H={};T&4&&(H.boundaryGeojson=D[2]),v.$set(H)},i(D){I||(E(v.$$.fragment,D),E(b.$$.fragment,D),E(y.$$.fragment,D),E(x.$$.fragment,D),I=!0)},o(D){C(v.$$.fragment,D),C(b.$$.fragment,D),C(y.$$.fragment,D),C(x.$$.fragment,D),I=!1},d(D){D&&k(e),B(v),B(b),B(y),B(x),N=!1,Ie(j)}}}function Ef(r){let e,t,n,i,o,s,a,l,u,f,c,d;return e=new Ls({props:{boundaryGeojson:r[2]}}),n=new Ho({props:{schema:r[5]}}),o=new As({}),a=new ha({props:{routeSnapperUrl:r[6],schema:r[5]}}),u=new Uo({props:{style:r[4]}}),c=new qo({props:{schema:r[5]}}),{c(){F(e.$$.fragment),t=A(),F(n.$$.fragment),i=A(),F(o.$$.fragment),s=A(),F(a.$$.fragment),l=A(),F(u.$$.fragment),f=A(),F(c.$$.fragment)},m(h,v){P(e,h,v),w(h,t,v),P(n,h,v),w(h,i,v),P(o,h,v),w(h,s,v),P(a,h,v),w(h,l,v),P(u,h,v),w(h,f,v),P(c,h,v),d=!0},p(h,v){const _={};v&4&&(_.boundaryGeojson=h[2]),e.$set(_)},i(h){d||(E(e.$$.fragment,h),E(n.$$.fragment,h),E(o.$$.fragment,h),E(a.$$.fragment,h),E(u.$$.fragment,h),E(c.$$.fragment,h),d=!0)},o(h){C(e.$$.fragment,h),C(n.$$.fragment,h),C(o.$$.fragment,h),C(a.$$.fragment,h),C(u.$$.fragment,h),C(c.$$.fragment,h),d=!1},d(h){h&&(k(t),k(i),k(s),k(l),k(f)),B(e,h),B(n,h),B(o,h),B(a,h),B(u,h),B(c,h)}}}function Mf(r){let e,t,n;return t=new Do({props:{style:r[4],$$slots:{default:[Ef]},$$scope:{ctx:r}}}),{c(){e=$("div"),F(t.$$.fragment),R(e,"slot","main")},m(i,o){w(i,e,o),P(t,e,null),n=!0},p(i,o){const s={};o&32772&&(s.$$scope={dirty:o,ctx:i}),t.$set(s)},i(i){n||(E(t.$$.fragment,i),n=!0)},o(i){C(t.$$.fragment,i),n=!1},d(i){i&&k(e),B(t)}}}function $f(r){let e,t,n,i,o,s,a,l;e=new Bo({props:{$$slots:{main:[Mf],sidebar:[Sf]},$$scope:{ctx:r}}});function u(h){r[10](h)}let f={};r[0]!==void 0&&(f.open=r[0]),n=new Io({props:f}),le.push(()=>ve(n,"open",u));function c(h){r[11](h)}let d={};return r[1]!==void 0&&(d.open=r[1]),s=new Ha({props:d}),le.push(()=>ve(s,"open",c)),{c(){F(e.$$.fragment),t=A(),F(n.$$.fragment),o=A(),F(s.$$.fragment)},m(h,v){P(e,h,v),w(h,t,v),P(n,h,v),w(h,o,v),P(s,h,v),l=!0},p(h,[v]){const _={};v&32772&&(_.$$scope={dirty:v,ctx:h}),e.$set(_);const b={};!i&&v&1&&(i=!0,b.open=h[0],we(()=>i=!1)),n.$set(b);const g={};!a&&v&2&&(a=!0,g.open=h[1],we(()=>a=!1)),s.$set(g)},i(h){l||(E(e.$$.fragment,h),E(n.$$.fragment,h),E(s.$$.fragment,h),l=!0)},o(h){C(e.$$.fragment,h),C(n.$$.fragment,h),C(s.$$.fragment,h),l=!1},d(h){h&&(k(t),k(o)),B(e,h),B(n,h),B(s,h)}}}function Cf(r,e,t){let n=!1,i=!1;const o=new URLSearchParams(window.location.search);let s=o.get("authority"),a=o.get("style")||"streets",l=o.get("schema")||"v1",u=`https://atip.uk/route-snappers/v2.1/${s}.bin.gz`,f=`https://atip.uk/route-info/v2/${s}.bin.gz`;function c(){t(0,n=!n),t(1,i=!1)}function d(){t(1,i=!i),t(0,n=!1)}let h;Nt(async()=>{t(2,h=await v());const p=ki(new kf);let m=await new p;await m.loadFile(f),mt.set(m)});async function v(){const m=await(await fetch(Fo)).text(),y=JSON.parse(m);return y.features=y.features.filter(S=>{var L;return((L=S.properties)==null?void 0:L.name)==s}),y}const _=()=>window.location.href="index.html";function b(p){n=p,t(0,n)}function g(p){i=p,t(1,i)}return[n,i,h,s,a,l,u,c,d,_,b,g]}class Lf extends Z{constructor(e){super(),Q(this,e,Cf,$f,ee,{})}}new Lf({target:document.getElementById("app")}); diff --git a/browse_dropdown_filters/assets/nested2-91da248a.js b/browse_dropdown_filters/assets/nested2-91da248a.js deleted file mode 100644 index 31294116c..000000000 --- a/browse_dropdown_filters/assets/nested2-91da248a.js +++ /dev/null @@ -1,2 +0,0 @@ -import{S as we,i as ve,s as ke,F as ye,H as F,I as O,t as w,j,K as N,o as ee,e as E,$ as Se,r as q,at as Be,d as h,v as $,au as re,l as Ce,k as b,y as je,as as Le,A as Y,p as C,w as Z,Q as oe,L as Ie,a0 as ze,C as te,G as Je,q as L,aj as ae,ak as Fe,al as Oe,N as fe,D as ie,E as ue,J as ce,x as Me}from"./maplibre_helpers-5d84afaa.js";import{i as Te}from"./all-b6f1cdfd.js";import{L as Ee,Z as Ge,C as Ne,j as Pe,g as x,I as De,B as qe,k as He,M as Ze,m as Ke}from"./ZoomOutMap-96dffba9.js";function me(s,e,t){const n=s.slice();return n[6]=e[t][0],n[7]=e[t][1],n}function _e(s){let e;return{c(){e=E("option"),e.__value="",Y(e,e.__value)},m(t,n){h(t,e,n)},d(t){t&&b(e)}}}function pe(s){let e,t=s[7]+"",n,l;return{c(){e=E("option"),n=C(t),e.__value=l=s[6],Y(e,e.__value)},m(r,u){h(r,e,u),$(e,n)},p(r,u){u&8&&t!==(t=r[7]+"")&&Z(n,t),u&8&&l!==(l=r[6])&&(e.__value=l,Y(e,e.__value))},d(r){r&&b(e)}}}function Qe(s){let e,t,n,l,r=s[4]&&_e(),u=ee(s[3]),o=[];for(let f=0;fs[5].call(e))},m(f,a){h(f,e,a),r&&r.m(e,null),$(e,t);for(let c=0;c{"label"in a&&t(1,n=a.label),"id"in a&&t(2,l=a.id),"choices"in a&&t(3,r=a.choices),"emptyOption"in a&&t(4,u=a.emptyOption),"value"in a&&t(0,o=a.value)},[o,n,l,r,u,f]}class $e extends we{constructor(e){super(),ve(this,e,Ue,Re,ke,{label:1,id:2,choices:3,emptyOption:4,value:0})}}function de(s,e,t){const n=s.slice();return n[23]=e[t],n}function Ve(s){let e;return{c(){e=C("Home")},m(t,n){h(t,e,n)},d(t){t&&b(e)}}}function We(s){let e;return{c(){e=C("Clear")},m(t,n){h(t,e,n)},d(t){t&&b(e)}}}function Xe(s){let e,t,n,l,r,u;return n=new te({props:{$$slots:{default:[We]},$$scope:{ctx:s}}}),n.$on("click",s[17]),{c(){e=E("input"),t=L(),F(n.$$.fragment),q(e,"type","text"),q(e,"class","govuk-input govuk-input--width-10"),q(e,"id","filterText")},m(o,f){h(o,e,f),Y(e,s[1]),h(o,t,f),O(n,o,f),l=!0,r||(u=Ce(e,"input",s[16]),r=!0)},p(o,f){f&2&&e.value!==o[1]&&Y(e,o[1]);const a={};f&67108864&&(a.$$scope={dirty:f,ctx:o}),n.$set(a)},i(o){l||(w(n.$$.fragment,o),l=!0)},o(o){j(n.$$.fragment,o),l=!1},d(o){o&&(b(e),b(t)),N(n,o),r=!1,u()}}}function Ye(s){let e,t,n,l,r,u,o,f;function a(i){s[14](i)}let c={label:"Authority or region",id:"filterAuthority",choices:s[7]};s[4]!==void 0&&(c.value=s[4]),e=new $e({props:c}),ie.push(()=>ue(e,"value",a));function v(i){s[15](i)}let I={label:"Funding programme",id:"filterFundingProgramme",choices:s[8]};return s[5]!==void 0&&(I.value=s[5]),l=new $e({props:I}),ie.push(()=>ue(l,"value",v)),o=new ye({props:{label:"Any field",id:"filterText",$$slots:{default:[Xe]},$$scope:{ctx:s}}}),{c(){F(e.$$.fragment),n=L(),F(l.$$.fragment),u=L(),F(o.$$.fragment)},m(i,d){O(e,i,d),h(i,n,d),O(l,i,d),h(i,u,d),O(o,i,d),f=!0},p(i,d){const J={};d&128&&(J.choices=i[7]),!t&&d&16&&(t=!0,J.value=i[4],ce(()=>t=!1)),e.$set(J);const A={};d&256&&(A.choices=i[8]),!r&&d&32&&(r=!0,A.value=i[5],ce(()=>r=!1)),l.$set(A);const B={};d&67108866&&(B.$$scope={dirty:d,ctx:i}),o.$set(B)},i(i){f||(w(e.$$.fragment,i),w(l.$$.fragment,i),w(o.$$.fragment,i),f=!0)},o(i){j(e.$$.fragment,i),j(l.$$.fragment,i),j(o.$$.fragment,i),f=!1},d(i){i&&(b(n),b(u)),N(e,i),N(l,i),N(o,i)}}}function ge(s){let e,t;return e=new Ne({props:{label:`${s[23].scheme_reference}: ${s[23].num_features} features`,$$slots:{default:[tt]},$$scope:{ctx:s}}}),{c(){F(e.$$.fragment)},m(n,l){O(e,n,l),t=!0},p(n,l){const r={};l&1&&(r.label=`${n[23].scheme_reference}: ${n[23].num_features} features`),l&67108865&&(r.$$scope={dirty:l,ctx:n}),e.$set(r)},i(n){t||(w(e.$$.fragment,n),t=!0)},o(n){j(e.$$.fragment,n),t=!1},d(n){N(e,n)}}}function xe(s){let e;return{c(){e=C("Show on map")},m(t,n){h(t,e,n)},d(t){t&&b(e)}}}function et(s){let e;return{c(){e=C("Edit scheme")},m(t,n){h(t,e,n)},d(t){t&&b(e)}}}function tt(s){let e,t,n=s[23].authority_or_region+"",l,r,u,o,f=s[23].capital_scheme_id+"",a,c,v,I,i=s[23].funding_programme+"",d,J,A,B,P,M,K,T;function Q(){return s[18](s[23])}B=new te({props:{$$slots:{default:[xe]},$$scope:{ctx:s}}}),B.$on("click",Q);function W(){return s[19](s[23])}return M=new te({props:{$$slots:{default:[et]},$$scope:{ctx:s}}}),M.$on("click",W),{c(){e=E("p"),t=C("Authority or region: "),l=C(n),r=L(),u=E("p"),o=C("Capital scheme ID: "),a=C(f),c=L(),v=E("p"),I=C("Funding programme: "),d=C(i),J=L(),A=E("div"),F(B.$$.fragment),P=L(),F(M.$$.fragment),K=L(),q(A,"class","govuk-button-group")},m(g,k){h(g,e,k),$(e,t),$(e,l),h(g,r,k),h(g,u,k),$(u,o),$(u,a),h(g,c,k),h(g,v,k),$(v,I),$(v,d),h(g,J,k),h(g,A,k),O(B,A,null),$(A,P),O(M,A,null),h(g,K,k),T=!0},p(g,k){s=g,(!T||k&1)&&n!==(n=s[23].authority_or_region+"")&&Z(l,n),(!T||k&1)&&f!==(f=s[23].capital_scheme_id+"")&&Z(a,f),(!T||k&1)&&i!==(i=s[23].funding_programme+"")&&Z(d,i);const m={};k&67108864&&(m.$$scope={dirty:k,ctx:s}),B.$set(m);const p={};k&67108864&&(p.$$scope={dirty:k,ctx:s}),M.$set(p)},i(g){T||(w(B.$$.fragment,g),w(M.$$.fragment,g),T=!0)},o(g){j(B.$$.fragment,g),j(M.$$.fragment,g),T=!1},d(g){g&&(b(e),b(r),b(u),b(c),b(v),b(J),b(A),b(K)),N(B),N(M)}}}function he(s){let e=s[2].has(s[23].scheme_reference),t,n,l=e&&ge(s);return{c(){l&&l.c(),t=Se()},m(r,u){l&&l.m(r,u),h(r,t,u),n=!0},p(r,u){u&5&&(e=r[2].has(r[23].scheme_reference)),e?l?(l.p(r,u),u&5&&w(l,1)):(l=ge(r),l.c(),w(l,1),l.m(t.parentNode,t)):l&&(Fe(),j(l,1,1,()=>{l=null}),Oe())},i(r){n||(w(l),n=!0)},o(r){j(l),n=!1},d(r){r&&b(t),l&&l.d(r)}}}function nt(s){let e,t,n,l,r,u,o,f,a,c,v,I,i,d,J=s[2].size+"",A,B,P=s[3].route+"",M,K,T=s[3].area+"",Q,W,g=s[3].crossing+"",k,m,p=s[3].other+"",D,R,G,X,H;t=new te({props:{$$slots:{default:[Ve]},$$scope:{ctx:s}}}),t.$on("click",s[13]),o=new Ge({props:{boundaryGeojson:s[6]}}),a=new Je({props:{label:"Load from GeoJSON",id:"load-geojson",loadFile:s[10]}}),v=new Ne({props:{label:"Filters",$$slots:{default:[Ye]},$$scope:{ctx:s}}});let U=ee(s[0]),y=[];for(let _=0;_j(y[_],1,1,()=>{y[_]=null});return{c(){e=E("div"),F(t.$$.fragment),n=L(),l=E("div"),r=E("h1"),r.textContent="Browse schemes",u=L(),F(o.$$.fragment),f=L(),F(a.$$.fragment),c=L(),F(v.$$.fragment),I=L(),i=E("p"),d=C("Showing "),A=C(J),B=C(" schemes ("),M=C(P),K=C(" routes, "),Q=C(T),W=C(` areas, - `),k=C(g),m=C(" crossings, "),D=C(p),R=C(" other)"),G=L(),X=E("ul");for(let _=0;_${t}${n}`;return e+="",e}function at(s,e,t){let n,l;oe(s,x,m=>t(6,n=m)),oe(s,Ke,m=>t(20,l=m)),Ie(()=>{Te()});let u=new URLSearchParams(window.location.search).get("style")||"streets",o=[],f="",a=new Set,c={area:0,route:0,crossing:0,other:0},v=[],I="",i=[],d="";ze(()=>{x.set(null)});function J(m){try{let p=JSON.parse(m);x.set(p),A(p),l==null||l.fitBounds(fe(p),{padding:20,animate:!1})}catch(p){window.alert(`Couldn't load schemes from a file: ${p}`)}}function A(m){let p={};for(let[G,X]of Object.entries(m.schemes))p[G]={scheme_reference:G,num_features:0,...X};for(let G of m.features)p[G.properties.scheme_reference].num_features++;t(0,o=Object.values(p));let D=new Set,R=new Set;for(let G of o)G.authority_or_region&&D.add(G.authority_or_region),G.funding_programme&&R.add(G.funding_programme);t(7,v=Array.from(D.entries())),v.sort(),t(8,i=Array.from(R.entries())),i.sort()}function B(m){let p={type:"FeatureCollection",features:n.features.filter(D=>D.properties.scheme_reference==m.scheme_reference)};l==null||l.fitBounds(fe(p),{padding:20,animate:!1})}function P(m){let p={type:"FeatureCollection",features:n.features.filter(R=>R.properties.scheme_reference==m.scheme_reference)},D=m.authority_or_region;window.localStorage.setItem(D,JSON.stringify(p)),window.open(`scheme.html?authority=${m.authority_or_region}`,"_blank")}const M=()=>window.open("index.html");function K(m){I=m,t(4,I)}function T(m){d=m,t(5,d)}function Q(){f=this.value,t(1,f)}const W=()=>t(1,f=""),g=m=>B(m),k=m=>P(m);return s.$$.update=()=>{if(s.$$.dirty&127&&n){if(a.clear(),f||I||d){let m=f.toLowerCase();for(let p of n.features)JSON.stringify(p.properties).toLowerCase().includes(m)&&(I&&p.properties.authority_or_region!=I||d&&p.properties.funding_programme!=d||a.add(p.properties.scheme_reference))}else for(let m of o)a.add(m.scheme_reference);x.update(m=>{if(!m)return null;for(let p of m.features)a.has(p.properties.scheme_reference)?delete p.properties.hide_while_editing:p.properties.hide_while_editing=!0;return m}),t(3,c={area:0,route:0,crossing:0,other:0});for(let m of n==null?void 0:n.features)a.has(m.properties.scheme_reference)&&t(3,c[m.properties.intervention_type]++,c);t(2,a),t(6,n),t(1,f),t(4,I),t(5,d),t(0,o),t(3,c)}},[o,f,a,c,I,d,n,v,i,u,J,B,P,M,K,T,Q,W,g,k]}class ft extends we{constructor(e){super(),ve(this,e,at,rt,ke,{})}}document.body.className=document.body.className?document.body.className+" js-enabled":"js-enabled";new ft({target:document.getElementById("app")}); diff --git a/browse_dropdown_filters/assets/point-276f4055.svg b/browse_dropdown_filters/assets/point-276f4055.svg deleted file mode 100644 index 8ba9f03df..000000000 --- a/browse_dropdown_filters/assets/point-276f4055.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/browse_dropdown_filters/assets/polygon_freehand-cf965967.svg b/browse_dropdown_filters/assets/polygon_freehand-cf965967.svg deleted file mode 100644 index 70a781380..000000000 --- a/browse_dropdown_filters/assets/polygon_freehand-cf965967.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/browse_dropdown_filters/assets/polygon_snapped-18efbbea.svg b/browse_dropdown_filters/assets/polygon_snapped-18efbbea.svg deleted file mode 100644 index 945293367..000000000 --- a/browse_dropdown_filters/assets/polygon_snapped-18efbbea.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/browse_dropdown_filters/assets/route-d3c0ebad.svg b/browse_dropdown_filters/assets/route-d3c0ebad.svg deleted file mode 100644 index 5efab0855..000000000 --- a/browse_dropdown_filters/assets/route-d3c0ebad.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/browse_dropdown_filters/assets/route_info_bg.wasm b/browse_dropdown_filters/assets/route_info_bg.wasm deleted file mode 100644 index df9e2572d..000000000 Binary files a/browse_dropdown_filters/assets/route_info_bg.wasm and /dev/null differ diff --git a/browse_dropdown_filters/assets/route_snapper_bg.wasm b/browse_dropdown_filters/assets/route_snapper_bg.wasm deleted file mode 100644 index 6b6ed763e..000000000 Binary files a/browse_dropdown_filters/assets/route_snapper_bg.wasm and /dev/null differ diff --git a/browse_dropdown_filters/assets/scheme-d92ff9cf.css b/browse_dropdown_filters/assets/scheme-d92ff9cf.css deleted file mode 100644 index be688b17d..000000000 --- a/browse_dropdown_filters/assets/scheme-d92ff9cf.css +++ /dev/null @@ -1 +0,0 @@ -progress.svelte-q3473n{width:100%}button.svelte-1vvpkg9.svelte-1vvpkg9{background-color:#4caf50;border:solid 2px #4caf50;color:#fff;padding:15px 32px;text-align:center;text-decoration:none;display:inline-block;font-size:16px;margin:4px 2px;cursor:pointer;width:100%}button.svelte-1vvpkg9.svelte-1vvpkg9:hover:enabled{background-color:#fff;color:#000;transition-duration:.4s;border:solid 2px black}button.svelte-1vvpkg9.svelte-1vvpkg9:disabled{opacity:.6;cursor:auto}img.svelte-1vvpkg9.svelte-1vvpkg9{filter:invert(100%) sepia(0%) saturate(0%) hue-rotate(328deg) brightness(100%) contrast(101%);vertical-align:middle}button.svelte-1vvpkg9:hover:enabled img.svelte-1vvpkg9{filter:none;transition-duration:.4s}.toolbox.svelte-4s4d3o{position:absolute;top:10px;right:10px;padding:10px;background-color:#fff;border:solid 2px black;font-size:1.5em;width:250px}table.svelte-11t6rxo,tr.svelte-11t6rxo{width:100%}td.svelte-11t6rxo{height:30px;text-align:center}.align-right.svelte-wfhzcu{float:right}div.svelte-1b72l00{border:solid 1px black;padding:10px}p.svelte-1b72l00{font-style:italic}textarea.svelte-1b72l00,textarea.svelte-15lna0i{resize:none}button.svelte-t7fpgu.svelte-t7fpgu{border:none;background:none;display:block;font-size:20px;cursor:pointer;margin:0;padding-bottom:.5em;padding-top:.5em;text-align:left}button.svelte-t7fpgu.svelte-t7fpgu:hover,.underlined.svelte-t7fpgu.svelte-t7fpgu{text-decoration:underline}svg.svelte-t7fpgu.svelte-t7fpgu{transition:transform .2s ease-in}[aria-expanded=true].svelte-t7fpgu svg.svelte-t7fpgu{transform:rotate(.25turn)} diff --git a/browse_dropdown_filters/assets/split_route-9e0ea2da.svg b/browse_dropdown_filters/assets/split_route-9e0ea2da.svg deleted file mode 100644 index 561870a27..000000000 --- a/browse_dropdown_filters/assets/split_route-9e0ea2da.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/browse_dropdown_filters/assets/street_view-48580b6a.svg b/browse_dropdown_filters/assets/street_view-48580b6a.svg deleted file mode 100644 index ee8f43d53..000000000 --- a/browse_dropdown_filters/assets/street_view-48580b6a.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/browse_dropdown_filters/assets/worker-9e257977.js b/browse_dropdown_filters/assets/worker-9e257977.js deleted file mode 100644 index a07c23bb8..000000000 --- a/browse_dropdown_filters/assets/worker-9e257977.js +++ /dev/null @@ -1,6 +0,0 @@ -var Ae=Object.defineProperty;var Re=(h,w,E)=>w in h?Ae(h,w,{enumerable:!0,configurable:!0,writable:!0,value:E}):h[w]=E;var te=(h,w,E)=>(Re(h,typeof w!="symbol"?w+"":w,E),E);(function(){"use strict";/** - * @license - * Copyright 2019 Google LLC - * SPDX-License-Identifier: Apache-2.0 - */const h=Symbol("Comlink.proxy"),w=Symbol("Comlink.endpoint"),E=Symbol("Comlink.releaseProxy"),D=Symbol("Comlink.finalizer"),v=Symbol("Comlink.thrown"),G=e=>typeof e=="object"&&e!==null||typeof e=="function",ne={canHandle:e=>G(e)&&e[h],serialize(e){const{port1:t,port2:n}=new MessageChannel;return z(e,t),[n,[n]]},deserialize(e){return e.start(),se(e)}},re={canHandle:e=>G(e)&&v in e,serialize({value:e}){let t;return e instanceof Error?t={isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:t={isError:!1,value:e},[t,[]]},deserialize(e){throw e.isError?Object.assign(new Error(e.value.message),e.value):e.value}},J=new Map([["proxy",ne],["throw",re]]);function oe(e,t){for(const n of e)if(t===n||n==="*"||n instanceof RegExp&&n.test(t))return!0;return!1}function z(e,t=globalThis,n=["*"]){t.addEventListener("message",function r(o){if(!o||!o.data)return;if(!oe(n,o.origin)){console.warn(`Invalid origin '${o.origin}' for comlink proxy`);return}const{id:c,type:s,path:_}=Object.assign({path:[]},o.data),f=(o.data.argumentList||[]).map(S);let u;try{const l=_.slice(0,-1).reduce((d,j)=>d[j],e),m=_.reduce((d,j)=>d[j],e);switch(s){case"GET":u=m;break;case"SET":l[_.slice(-1)[0]]=S(o.data.value),u=!0;break;case"APPLY":u=m.apply(l,f);break;case"CONSTRUCT":{const d=new m(...f);u=ue(d)}break;case"ENDPOINT":{const{port1:d,port2:j}=new MessageChannel;z(e,j),u=fe(d,[d])}break;case"RELEASE":u=void 0;break;default:return}}catch(l){u={value:l,[v]:0}}Promise.resolve(u).catch(l=>({value:l,[v]:0})).then(l=>{const[m,d]=W(l);t.postMessage(Object.assign(Object.assign({},m),{id:c}),d),s==="RELEASE"&&(t.removeEventListener("message",r),Y(t),D in e&&typeof e[D]=="function"&&e[D]())}).catch(l=>{const[m,d]=W({value:new TypeError("Unserializable return value"),[v]:0});t.postMessage(Object.assign(Object.assign({},m),{id:c}),d)})}),t.start&&t.start()}function ie(e){return e.constructor.name==="MessagePort"}function Y(e){ie(e)&&e.close()}function se(e,t){return B(e,[],t)}function P(e){if(e)throw new Error("Proxy has been released and is not useable")}function X(e){return R(e,{type:"RELEASE"}).then(()=>{Y(e)})}const C=new WeakMap,N="FinalizationRegistry"in globalThis&&new FinalizationRegistry(e=>{const t=(C.get(e)||0)-1;C.set(e,t),t===0&&X(e)});function ae(e,t){const n=(C.get(t)||0)+1;C.set(t,n),N&&N.register(e,t,e)}function ce(e){N&&N.unregister(e)}function B(e,t=[],n=function(){}){let r=!1;const o=new Proxy(n,{get(c,s){if(P(r),s===E)return()=>{ce(o),X(e),r=!0};if(s==="then"){if(t.length===0)return{then:()=>o};const _=R(e,{type:"GET",path:t.map(f=>f.toString())}).then(S);return _.then.bind(_)}return B(e,[...t,s])},set(c,s,_){P(r);const[f,u]=W(_);return R(e,{type:"SET",path:[...t,s].map(l=>l.toString()),value:f},u).then(S)},apply(c,s,_){P(r);const f=t[t.length-1];if(f===w)return R(e,{type:"ENDPOINT"}).then(S);if(f==="bind")return B(e,t.slice(0,-1));const[u,l]=K(_);return R(e,{type:"APPLY",path:t.map(m=>m.toString()),argumentList:u},l).then(S)},construct(c,s){P(r);const[_,f]=K(s);return R(e,{type:"CONSTRUCT",path:t.map(u=>u.toString()),argumentList:_},f).then(S)}});return ae(o,e),o}function _e(e){return Array.prototype.concat.apply([],e)}function K(e){const t=e.map(W);return[t.map(n=>n[0]),_e(t.map(n=>n[1]))]}const Q=new WeakMap;function fe(e,t){return Q.set(e,t),e}function ue(e){return Object.assign(e,{[h]:!0})}function W(e){for(const[t,n]of J)if(n.canHandle(e)){const[r,o]=n.serialize(e);return[{type:"HANDLER",name:t,value:r},o]}return[{type:"RAW",value:e},Q.get(e)||[]]}function S(e){switch(e.type){case"HANDLER":return J.get(e.name).deserialize(e.value);case"RAW":return e.value}}function R(e,t,n){return new Promise(r=>{const o=le();e.addEventListener("message",function c(s){!s.data||!s.data.id||s.data.id!==o||(e.removeEventListener("message",c),r(s.data))}),e.start&&e.start(),e.postMessage(Object.assign({id:o},t),n)})}function le(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}let a;const y=new Array(128).fill(void 0);y.push(void 0,null,!0,!1);function i(e){return y[e]}let L=y.length;function ge(e){e<132||(y[e]=L,L=e)}function k(e){const t=i(e);return ge(e),t}let A=0,x=null;function M(){return(x===null||x.byteLength===0)&&(x=new Uint8Array(a.memory.buffer)),x}const U=typeof TextEncoder<"u"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},be=typeof U.encodeInto=="function"?function(e,t){return U.encodeInto(e,t)}:function(e,t){const n=U.encode(e);return t.set(n),{read:e.length,written:n.length}};function $(e,t,n){if(n===void 0){const _=U.encode(e),f=t(_.length)>>>0;return M().subarray(f,f+_.length).set(_),A=_.length,f}let r=e.length,o=t(r)>>>0;const c=M();let s=0;for(;s127)break;c[o+s]=_}if(s!==r){s!==0&&(e=e.slice(s)),o=n(o,r,r=s+e.length*3)>>>0;const _=M().subarray(o+s,o+r),f=be(e,_);s+=f.written}return A=s,o}function O(e){return e==null}let T=null;function g(){return(T===null||T.byteLength===0)&&(T=new Int32Array(a.memory.buffer)),T}const Z=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};typeof TextDecoder<"u"&&Z.decode();function p(e,t){return e=e>>>0,Z.decode(M().subarray(e,e+t))}function b(e){L===y.length&&y.push(y.length+1);const t=L;return L=y[t],y[t]=e,t}let F=null;function de(){return(F===null||F.byteLength===0)&&(F=new Float64Array(a.memory.buffer)),F}let I=null;function we(){return(I===null||I.byteLength===0)&&(I=new BigInt64Array(a.memory.buffer)),I}function H(e){const t=typeof e;if(t=="number"||t=="boolean"||e==null)return`${e}`;if(t=="string")return`"${e}"`;if(t=="symbol"){const o=e.description;return o==null?"Symbol":`Symbol(${o})`}if(t=="function"){const o=e.name;return typeof o=="string"&&o.length>0?`Function(${o})`:"Function"}if(Array.isArray(e)){const o=e.length;let c="[";o>0&&(c+=H(e[0]));for(let s=1;s1)r=n[1];else return toString.call(e);if(r=="Object")try{return"Object("+JSON.stringify(e)+")"}catch{return"Object"}return e instanceof Error?`${e.name}: ${e.message} -${e.stack}`:r}function ye(e,t){const n=t(e.length*1)>>>0;return M().set(e,n/1),A=e.length,n}function V(e,t){try{return e.apply(this,t)}catch(n){a.__wbindgen_exn_store(b(n))}}let me=class q{static __wrap(t){t=t>>>0;const n=Object.create(q.prototype);return n.__wbg_ptr=t,n}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t}free(){const t=this.__destroy_into_raw();a.__wbg_routeinfo_free(t)}constructor(t){try{const c=a.__wbindgen_add_to_stack_pointer(-16),s=ye(t,a.__wbindgen_malloc),_=A;a.routeinfo_new(c,s,_);var n=g()[c/4+0],r=g()[c/4+1],o=g()[c/4+2];if(o)throw k(r);return q.__wrap(n)}finally{a.__wbindgen_add_to_stack_pointer(16)}}nameForRoute(t){let n,r;try{const l=a.__wbindgen_add_to_stack_pointer(-16);a.routeinfo_nameForRoute(l,this.__wbg_ptr,b(t));var o=g()[l/4+0],c=g()[l/4+1],s=g()[l/4+2],_=g()[l/4+3],f=o,u=c;if(_)throw f=0,u=0,k(s);return n=f,r=u,p(f,u)}finally{a.__wbindgen_add_to_stack_pointer(16),a.__wbindgen_free(n,r)}}speedLimitForRoute(t){let n,r;try{const l=a.__wbindgen_add_to_stack_pointer(-16);a.routeinfo_speedLimitForRoute(l,this.__wbg_ptr,b(t));var o=g()[l/4+0],c=g()[l/4+1],s=g()[l/4+2],_=g()[l/4+3],f=o,u=c;if(_)throw f=0,u=0,k(s);return n=f,r=u,p(f,u)}finally{a.__wbindgen_add_to_stack_pointer(16),a.__wbindgen_free(n,r)}}allSpeedLimits(){let t,n;try{const u=a.__wbindgen_add_to_stack_pointer(-16);a.routeinfo_allSpeedLimits(u,this.__wbg_ptr);var r=g()[u/4+0],o=g()[u/4+1],c=g()[u/4+2],s=g()[u/4+3],_=r,f=o;if(s)throw _=0,f=0,k(c);return t=_,n=f,p(_,f)}finally{a.__wbindgen_add_to_stack_pointer(16),a.__wbindgen_free(t,n)}}renderLaneDetailsForRoute(t){let n,r;try{const l=a.__wbindgen_add_to_stack_pointer(-16);a.routeinfo_renderLaneDetailsForRoute(l,this.__wbg_ptr,b(t));var o=g()[l/4+0],c=g()[l/4+1],s=g()[l/4+2],_=g()[l/4+3],f=o,u=c;if(_)throw f=0,u=0,k(s);return n=f,r=u,p(f,u)}finally{a.__wbindgen_add_to_stack_pointer(16),a.__wbindgen_free(n,r)}}};async function he(e,t){if(typeof Response=="function"&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(e,t)}catch(r){if(e.headers.get("Content-Type")!="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",r);else throw r}const n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}else{const n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}function pe(){const e={};return e.wbg={},e.wbg.__wbindgen_object_drop_ref=function(t){k(t)},e.wbg.__wbindgen_boolean_get=function(t){const n=i(t);return typeof n=="boolean"?n?1:0:2},e.wbg.__wbindgen_string_get=function(t,n){const r=i(n),o=typeof r=="string"?r:void 0;var c=O(o)?0:$(o,a.__wbindgen_malloc,a.__wbindgen_realloc),s=A;g()[t/4+1]=s,g()[t/4+0]=c},e.wbg.__wbindgen_error_new=function(t,n){const r=new Error(p(t,n));return b(r)},e.wbg.__wbindgen_is_bigint=function(t){return typeof i(t)=="bigint"},e.wbg.__wbindgen_bigint_from_i64=function(t){return b(t)},e.wbg.__wbindgen_jsval_eq=function(t,n){return i(t)===i(n)},e.wbg.__wbindgen_number_get=function(t,n){const r=i(n),o=typeof r=="number"?r:void 0;de()[t/8+1]=O(o)?0:o,g()[t/4+0]=!O(o)},e.wbg.__wbindgen_is_object=function(t){const n=i(t);return typeof n=="object"&&n!==null},e.wbg.__wbindgen_in=function(t,n){return i(t)in i(n)},e.wbg.__wbindgen_bigint_from_u64=function(t){const n=BigInt.asUintN(64,t);return b(n)},e.wbg.__wbindgen_is_undefined=function(t){return i(t)===void 0},e.wbg.__wbindgen_string_new=function(t,n){const r=p(t,n);return b(r)},e.wbg.__wbindgen_jsval_loose_eq=function(t,n){return i(t)==i(n)},e.wbg.__wbindgen_object_clone_ref=function(t){const n=i(t);return b(n)},e.wbg.__wbg_getwithrefkey_5e6d9547403deab8=function(t,n){const r=i(t)[i(n)];return b(r)},e.wbg.__wbg_new_abda76e883ba8a5f=function(){const t=new Error;return b(t)},e.wbg.__wbg_stack_658279fe44541cf6=function(t,n){const r=i(n).stack,o=$(r,a.__wbindgen_malloc,a.__wbindgen_realloc),c=A;g()[t/4+1]=c,g()[t/4+0]=o},e.wbg.__wbg_error_f851667af71bcfc6=function(t,n){let r,o;try{r=t,o=n,console.error(p(t,n))}finally{a.__wbindgen_free(r,o)}},e.wbg.__wbg_debug_917e579618ee56f5=function(t){console.debug(i(t))},e.wbg.__wbg_error_ea7597dedb63d9a4=function(t){console.error(i(t))},e.wbg.__wbg_info_fc2a17f38101c41c=function(t){console.info(i(t))},e.wbg.__wbg_log_003c998d6df63565=function(t){console.log(i(t))},e.wbg.__wbg_warn_ebfcadd0780df93a=function(t){console.warn(i(t))},e.wbg.__wbg_get_e52aaca45f37b337=function(t,n){const r=i(t)[n>>>0];return b(r)},e.wbg.__wbg_length_070e3265c186df02=function(t){return i(t).length},e.wbg.__wbindgen_is_function=function(t){return typeof i(t)=="function"},e.wbg.__wbg_next_3975dcca26737a22=function(t){const n=i(t).next;return b(n)},e.wbg.__wbg_next_5a9700550e162aa3=function(){return V(function(t){const n=i(t).next();return b(n)},arguments)},e.wbg.__wbg_done_a184612220756243=function(t){return i(t).done},e.wbg.__wbg_value_6cc144c1d9645dd5=function(t){const n=i(t).value;return b(n)},e.wbg.__wbg_iterator_c1677479667ea090=function(){return b(Symbol.iterator)},e.wbg.__wbg_get_363c3b466fe4896b=function(){return V(function(t,n){const r=Reflect.get(i(t),i(n));return b(r)},arguments)},e.wbg.__wbg_call_f96b398515635514=function(){return V(function(t,n){const r=i(t).call(i(n));return b(r)},arguments)},e.wbg.__wbg_isArray_07d89ced8fb14171=function(t){return Array.isArray(i(t))},e.wbg.__wbg_instanceof_ArrayBuffer_de688b806c28ff28=function(t){let n;try{n=i(t)instanceof ArrayBuffer}catch{n=!1}return n},e.wbg.__wbg_isSafeInteger_fcdf4c4f25c86778=function(t){return Number.isSafeInteger(i(t))},e.wbg.__wbg_entries_c3e06bf0354f5d20=function(t){const n=Object.entries(i(t));return b(n)},e.wbg.__wbg_buffer_fcbfb6d88b2732e9=function(t){const n=i(t).buffer;return b(n)},e.wbg.__wbg_new_bc5d9aad3f9ac80e=function(t){const n=new Uint8Array(i(t));return b(n)},e.wbg.__wbg_set_4b3aa8445ac1e91c=function(t,n,r){i(t).set(i(n),r>>>0)},e.wbg.__wbg_length_d9c4ded7e708c6a1=function(t){return i(t).length},e.wbg.__wbg_instanceof_Uint8Array_4733577ba827276b=function(t){let n;try{n=i(t)instanceof Uint8Array}catch{n=!1}return n},e.wbg.__wbindgen_bigint_get_as_i64=function(t,n){const r=i(n),o=typeof r=="bigint"?r:void 0;we()[t/8+1]=O(o)?BigInt(0):o,g()[t/4+0]=!O(o)},e.wbg.__wbindgen_debug_string=function(t,n){const r=H(i(n)),o=$(r,a.__wbindgen_malloc,a.__wbindgen_realloc),c=A;g()[t/4+1]=c,g()[t/4+0]=o},e.wbg.__wbindgen_throw=function(t,n){throw new Error(p(t,n))},e.wbg.__wbindgen_memory=function(){const t=a.memory;return b(t)},e}function Ee(e,t){return a=e.exports,ee.__wbindgen_wasm_module=t,I=null,F=null,T=null,x=null,a}async function ee(e){if(a!==void 0)return a;typeof e>"u"&&(e="/atip/browse_dropdown_filters/assets/route_info_bg.wasm");const t=pe();(typeof e=="string"||typeof Request=="function"&&e instanceof Request||typeof URL=="function"&&e instanceof URL)&&(e=fetch(e));const{instance:n,module:r}=await he(await e,t);return Ee(n,r)}class Se{constructor(){te(this,"inner");this.inner=null}async loadFile(t){await ee(),console.log(`Grabbing A/B Street map model data from ${t}`);let r=await(await fetch(t)).arrayBuffer();this.inner=new me(new Uint8Array(r)),console.log("RouteInfo is ready!")}nameForRoute(t){if(!this.inner)throw new Error("Still loading route info, please retry after a few seconds");return this.inner.nameForRoute(t)}speedLimitForRoute(t){if(!this.inner)throw new Error("Still loading route info, please retry after a few seconds");return this.inner.speedLimitForRoute(t)}allSpeedLimits(){if(!this.inner)throw new Error("Still loading route info, please retry after a few seconds");return this.inner.allSpeedLimits()}renderLaneDetailsForRoute(t){if(!this.inner)throw new Error("Still loading route info, please retry after a few seconds");return JSON.parse(this.inner.renderLaneDetailsForRoute(t))}}z(Se)})(); diff --git a/browse_dropdown_filters/assets/zoom_out_map-b2e1091a.svg b/browse_dropdown_filters/assets/zoom_out_map-b2e1091a.svg deleted file mode 100644 index 018395280..000000000 --- a/browse_dropdown_filters/assets/zoom_out_map-b2e1091a.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/browse_dropdown_filters/browse.html b/browse_dropdown_filters/browse.html deleted file mode 100644 index 598aec0ef..000000000 --- a/browse_dropdown_filters/browse.html +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - ATIP v2 scheme browser - - - - - - - - - -
    - - - diff --git a/browse_dropdown_filters/index.html b/browse_dropdown_filters/index.html deleted file mode 100644 index 84694924f..000000000 --- a/browse_dropdown_filters/index.html +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - Active Travel Infrastructure Platform v2 - - - - - - - - - - -
    - - - diff --git a/browse_dropdown_filters/scheme.html b/browse_dropdown_filters/scheme.html deleted file mode 100644 index 21fc4cb55..000000000 --- a/browse_dropdown_filters/scheme.html +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - ATIP v2 Scheme Entry - - - - - - - - - - -
    - - - diff --git a/capitalize_auto_form/assets/nested-7a2f99b6.js b/capitalize_auto_form/assets/nested-0855c2f5.js similarity index 73% rename from capitalize_auto_form/assets/nested-7a2f99b6.js rename to capitalize_auto_form/assets/nested-0855c2f5.js index 16f529d13..2d5426c75 100644 --- a/capitalize_auto_form/assets/nested-7a2f99b6.js +++ b/capitalize_auto_form/assets/nested-0855c2f5.js @@ -1,8 +1,8 @@ -var po=Object.defineProperty;var ho=(r,e,t)=>e in r?po(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var J=(r,e,t)=>(ho(r,typeof e!="symbol"?e+"":e,t),t);import{R as go,T as _o,S as ee,i as te,s as ne,U as W,V as mo,Q as bi,W as ut,X as er,Y as Nt,Z as mn,_ as nt,$ as tr,a0 as nr,a1 as rr,a2 as be,d as k,x as G,k as S,a3 as bn,e as $,p as U,v as E,w as Le,a4 as Gt,H as F,q as A,r as x,I as P,l as Y,t as M,j as C,L as N,a5 as Pe,a6 as xn,a7 as bo,a8 as yo,a9 as _t,aa as ir,ab as et,ac as mt,ad as vo,ae as or,af as wo,ag as ko,ah as So,ai as Eo,aj as dr,ak as nn,al as Yt,am as Ae,B as Ie,O as pe,J as de,an as st,M as Ht,ao as Mo,ap as $o,aq as Co,ar as Lo,as as In,z as jt,A as fe,D as ae,E as ve,K as we,o as He,y as rn,at as yi,au as yn,av as on,aw as To,G as Ao,N as Oo,ax as vi,ay as sn,az as Ro,aA as vn,aB as hr,aC as gr,c as xo,u as Io,g as Fo,f as Po,aD as No,aE as Bo}from"./maplibre_helpers-09c65b90.js";import{M as wi,A as Do,a as Ho}from"./About-1025697f.js";import{m as Ue,g as ce,s as ln,a as Ge,f as xe,i as Ut,c as Jt,l as Fn,b as ki,d as Ce,o as an,e as bt,C as yt,u as At,n as wn,M as jo,r as vt,h as Pn,j as _r,L as Uo,Z as zo,k as qo,p as Go,I as Yo,B as Jo,q as Xo}from"./ZoomOutMap-58aba399.js";/** +var po=Object.defineProperty;var ho=(r,e,t)=>e in r?po(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var J=(r,e,t)=>(ho(r,typeof e!="symbol"?e+"":e,t),t);import{R as go,T as _o,S as ee,i as te,s as ne,U as W,V as mo,Q as bi,W as ft,X as tr,Y as Bt,Z as bn,_ as nt,$ as nr,a0 as rr,a1 as ir,a2 as be,d as k,x as G,k as S,a3 as yn,e as $,p as U,v as E,w as Le,a4 as Yt,H as F,q as A,r as x,I as P,l as Y,t as M,j as C,L as N,a5 as Pe,a6 as In,a7 as bo,a8 as yo,a9 as mt,aa as or,ab as et,ac as bt,ad as vo,ae as sr,af as wo,ag as ko,ah as So,ai as Eo,aj as hr,ak as rn,al as Jt,am as Ae,B as Ie,O as pe,J as de,an as lt,M as jt,ao as Mo,ap as $o,aq as Co,ar as Lo,as as Fn,z as Ut,A as fe,D as ae,E as ve,K as we,o as He,y as on,at as yi,au as vn,av as sn,aw as To,G as Ao,N as Oo,ax as vi,ay as ln,az as Ro,aA as wn,aB as gr,aC as _r,c as xo,u as Io,g as Fo,f as Po,aD as No,aE as Bo}from"./maplibre_helpers-09c65b90.js";import{M as wi,A as Do,a as Ho}from"./About-1025697f.js";import{m as Ue,g as ce,s as an,a as Ge,f as xe,i as zt,c as Xt,l as Pn,b as ki,d as Ce,o as un,e as yt,C as vt,u as Ot,n as kn,M as jo,r as wt,h as Nn,j as mr,L as Uo,Z as zo,k as qo,p as Go,I as Yo,B as Jo,q as Xo}from"./ZoomOutMap-58aba399.js";/** * @license * Copyright 2019 Google LLC * SPDX-License-Identifier: Apache-2.0 - */const Si=Symbol("Comlink.proxy"),Wo=Symbol("Comlink.endpoint"),Vo=Symbol("Comlink.releaseProxy"),En=Symbol("Comlink.finalizer"),Xt=Symbol("Comlink.thrown"),Ei=r=>typeof r=="object"&&r!==null||typeof r=="function",Ko={canHandle:r=>Ei(r)&&r[Si],serialize(r){const{port1:e,port2:t}=new MessageChannel;return sr(r,e),[t,[t]]},deserialize(r){return r.start(),Ci(r)}},Zo={canHandle:r=>Ei(r)&&Xt in r,serialize({value:r}){let e;return r instanceof Error?e={isError:!0,value:{message:r.message,name:r.name,stack:r.stack}}:e={isError:!1,value:r},[e,[]]},deserialize(r){throw r.isError?Object.assign(new Error(r.value.message),r.value):r.value}},Mi=new Map([["proxy",Ko],["throw",Zo]]);function Qo(r,e){for(const t of r)if(e===t||t==="*"||t instanceof RegExp&&t.test(e))return!0;return!1}function sr(r,e=globalThis,t=["*"]){e.addEventListener("message",function n(i){if(!i||!i.data)return;if(!Qo(t,i.origin)){console.warn(`Invalid origin '${i.origin}' for comlink proxy`);return}const{id:o,type:s,path:a}=Object.assign({path:[]},i.data),l=(i.data.argumentList||[]).map(ot);let u;try{const f=a.slice(0,-1).reduce((p,g)=>p[g],r),c=a.reduce((p,g)=>p[g],r);switch(s){case"GET":u=c;break;case"SET":f[a.slice(-1)[0]]=ot(i.data.value),u=!0;break;case"APPLY":u=c.apply(f,l);break;case"CONSTRUCT":{const p=new c(...l);u=os(p)}break;case"ENDPOINT":{const{port1:p,port2:g}=new MessageChannel;sr(r,g),u=is(p,[p])}break;case"RELEASE":u=void 0;break;default:return}}catch(f){u={value:f,[Xt]:0}}Promise.resolve(u).catch(f=>({value:f,[Xt]:0})).then(f=>{const[c,p]=cn(f);e.postMessage(Object.assign(Object.assign({},c),{id:o}),p),s==="RELEASE"&&(e.removeEventListener("message",n),$i(e),En in r&&typeof r[En]=="function"&&r[En]())}).catch(f=>{const[c,p]=cn({value:new TypeError("Unserializable return value"),[Xt]:0});e.postMessage(Object.assign(Object.assign({},c),{id:o}),p)})}),e.start&&e.start()}function es(r){return r.constructor.name==="MessagePort"}function $i(r){es(r)&&r.close()}function Ci(r,e){return Nn(r,[],e)}function zt(r){if(r)throw new Error("Proxy has been released and is not useable")}function Li(r){return ht(r,{type:"RELEASE"}).then(()=>{$i(r)})}const un=new WeakMap,fn="FinalizationRegistry"in globalThis&&new FinalizationRegistry(r=>{const e=(un.get(r)||0)-1;un.set(r,e),e===0&&Li(r)});function ts(r,e){const t=(un.get(e)||0)+1;un.set(e,t),fn&&fn.register(r,e,r)}function ns(r){fn&&fn.unregister(r)}function Nn(r,e=[],t=function(){}){let n=!1;const i=new Proxy(t,{get(o,s){if(zt(n),s===Vo)return()=>{ns(i),Li(r),n=!0};if(s==="then"){if(e.length===0)return{then:()=>i};const a=ht(r,{type:"GET",path:e.map(l=>l.toString())}).then(ot);return a.then.bind(a)}return Nn(r,[...e,s])},set(o,s,a){zt(n);const[l,u]=cn(a);return ht(r,{type:"SET",path:[...e,s].map(f=>f.toString()),value:l},u).then(ot)},apply(o,s,a){zt(n);const l=e[e.length-1];if(l===Wo)return ht(r,{type:"ENDPOINT"}).then(ot);if(l==="bind")return Nn(r,e.slice(0,-1));const[u,f]=mr(a);return ht(r,{type:"APPLY",path:e.map(c=>c.toString()),argumentList:u},f).then(ot)},construct(o,s){zt(n);const[a,l]=mr(s);return ht(r,{type:"CONSTRUCT",path:e.map(u=>u.toString()),argumentList:a},l).then(ot)}});return ts(i,r),i}function rs(r){return Array.prototype.concat.apply([],r)}function mr(r){const e=r.map(cn);return[e.map(t=>t[0]),rs(e.map(t=>t[1]))]}const Ti=new WeakMap;function is(r,e){return Ti.set(r,e),r}function os(r){return Object.assign(r,{[Si]:!0})}function cn(r){for(const[e,t]of Mi)if(t.canHandle(r)){const[n,i]=t.serialize(r);return[{type:"HANDLER",name:e,value:n},i]}return[{type:"RAW",value:r},Ti.get(r)||[]]}function ot(r){switch(r.type){case"HANDLER":return Mi.get(r.name).deserialize(r.value);case"RAW":return r.value}}function ht(r,e,t){return new Promise(n=>{const i=ss();r.addEventListener("message",function o(s){!s.data||!s.data.id||s.data.id!==i||(r.removeEventListener("message",o),n(s.data))}),r.start&&r.start(),r.postMessage(Object.assign({id:i},e),t)})}function ss(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}/** + */const Si=Symbol("Comlink.proxy"),Wo=Symbol("Comlink.endpoint"),Vo=Symbol("Comlink.releaseProxy"),Mn=Symbol("Comlink.finalizer"),Wt=Symbol("Comlink.thrown"),Ei=r=>typeof r=="object"&&r!==null||typeof r=="function",Ko={canHandle:r=>Ei(r)&&r[Si],serialize(r){const{port1:e,port2:t}=new MessageChannel;return lr(r,e),[t,[t]]},deserialize(r){return r.start(),Ci(r)}},Zo={canHandle:r=>Ei(r)&&Wt in r,serialize({value:r}){let e;return r instanceof Error?e={isError:!0,value:{message:r.message,name:r.name,stack:r.stack}}:e={isError:!1,value:r},[e,[]]},deserialize(r){throw r.isError?Object.assign(new Error(r.value.message),r.value):r.value}},Mi=new Map([["proxy",Ko],["throw",Zo]]);function Qo(r,e){for(const t of r)if(e===t||t==="*"||t instanceof RegExp&&t.test(e))return!0;return!1}function lr(r,e=globalThis,t=["*"]){e.addEventListener("message",function n(i){if(!i||!i.data)return;if(!Qo(t,i.origin)){console.warn(`Invalid origin '${i.origin}' for comlink proxy`);return}const{id:o,type:s,path:a}=Object.assign({path:[]},i.data),l=(i.data.argumentList||[]).map(st);let u;try{const f=a.slice(0,-1).reduce((p,g)=>p[g],r),c=a.reduce((p,g)=>p[g],r);switch(s){case"GET":u=c;break;case"SET":f[a.slice(-1)[0]]=st(i.data.value),u=!0;break;case"APPLY":u=c.apply(f,l);break;case"CONSTRUCT":{const p=new c(...l);u=os(p)}break;case"ENDPOINT":{const{port1:p,port2:g}=new MessageChannel;lr(r,g),u=is(p,[p])}break;case"RELEASE":u=void 0;break;default:return}}catch(f){u={value:f,[Wt]:0}}Promise.resolve(u).catch(f=>({value:f,[Wt]:0})).then(f=>{const[c,p]=pn(f);e.postMessage(Object.assign(Object.assign({},c),{id:o}),p),s==="RELEASE"&&(e.removeEventListener("message",n),$i(e),Mn in r&&typeof r[Mn]=="function"&&r[Mn]())}).catch(f=>{const[c,p]=pn({value:new TypeError("Unserializable return value"),[Wt]:0});e.postMessage(Object.assign(Object.assign({},c),{id:o}),p)})}),e.start&&e.start()}function es(r){return r.constructor.name==="MessagePort"}function $i(r){es(r)&&r.close()}function Ci(r,e){return Bn(r,[],e)}function qt(r){if(r)throw new Error("Proxy has been released and is not useable")}function Li(r){return gt(r,{type:"RELEASE"}).then(()=>{$i(r)})}const fn=new WeakMap,cn="FinalizationRegistry"in globalThis&&new FinalizationRegistry(r=>{const e=(fn.get(r)||0)-1;fn.set(r,e),e===0&&Li(r)});function ts(r,e){const t=(fn.get(e)||0)+1;fn.set(e,t),cn&&cn.register(r,e,r)}function ns(r){cn&&cn.unregister(r)}function Bn(r,e=[],t=function(){}){let n=!1;const i=new Proxy(t,{get(o,s){if(qt(n),s===Vo)return()=>{ns(i),Li(r),n=!0};if(s==="then"){if(e.length===0)return{then:()=>i};const a=gt(r,{type:"GET",path:e.map(l=>l.toString())}).then(st);return a.then.bind(a)}return Bn(r,[...e,s])},set(o,s,a){qt(n);const[l,u]=pn(a);return gt(r,{type:"SET",path:[...e,s].map(f=>f.toString()),value:l},u).then(st)},apply(o,s,a){qt(n);const l=e[e.length-1];if(l===Wo)return gt(r,{type:"ENDPOINT"}).then(st);if(l==="bind")return Bn(r,e.slice(0,-1));const[u,f]=br(a);return gt(r,{type:"APPLY",path:e.map(c=>c.toString()),argumentList:u},f).then(st)},construct(o,s){qt(n);const[a,l]=br(s);return gt(r,{type:"CONSTRUCT",path:e.map(u=>u.toString()),argumentList:a},l).then(st)}});return ts(i,r),i}function rs(r){return Array.prototype.concat.apply([],r)}function br(r){const e=r.map(pn);return[e.map(t=>t[0]),rs(e.map(t=>t[1]))]}const Ti=new WeakMap;function is(r,e){return Ti.set(r,e),r}function os(r){return Object.assign(r,{[Si]:!0})}function pn(r){for(const[e,t]of Mi)if(t.canHandle(r)){const[n,i]=t.serialize(r);return[{type:"HANDLER",name:e,value:n},i]}return[{type:"RAW",value:r},Ti.get(r)||[]]}function st(r){switch(r.type){case"HANDLER":return Mi.get(r.name).deserialize(r.value);case"RAW":return r.value}}function gt(r,e,t){return new Promise(n=>{const i=ss();r.addEventListener("message",function o(s){!s.data||!s.data.id||s.data.id!==i||(r.removeEventListener("message",o),n(s.data))}),r.start&&r.start(),r.postMessage(Object.assign({id:i},e),t)})}function ss(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}/** * splaytree v3.1.1 * Fast Splay tree for Node and browser * @@ -22,29 +22,29 @@ MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. -***************************************************************************** */function ls(r,e){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(f){return l([u,f])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,i=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]e?1:r0){if(e.right===null)break;if(t(r,e.right.key)>0){var a=e.right;if(e.right=a.left,a.left=e,e=a,e.right===null)break}i.right=e,i=e,e=e.right}else break}return i.right=e.left,o.left=e.right,e.left=n.right,e.right=n.left,e}function Mn(r,e,t,n){var i=new rt(r,e);if(t===null)return i.left=i.right=null,i;t=Xe(r,t,n);var o=n(r,t.key);return o<0?(i.left=t.left,i.right=t,t.left=null):o>=0&&(i.right=t.right,i.left=t,t.right=null),i}function br(r,e,t){var n=null,i=null;if(e){e=Xe(r,e,t);var o=t(e.key,r);o===0?(n=e.left,i=e.right):o<0?(i=e.right,e.right=null,n=e):(n=e.left,e.left=null,i=e)}return{left:n,right:i}}function us(r,e,t){return e===null?r:(r===null||(e=Xe(r.key,e,t),e.left=r),e)}function Bn(r,e,t,n,i){if(r){n(""+e+(t?"└── ":"├── ")+i(r)+` -`);var o=e+(t?" ":"│ ");r.left&&Bn(r.left,o,!1,n,i),r.right&&Bn(r.right,o,!0,n,i)}}var lr=function(){function r(e){e===void 0&&(e=as),this._root=null,this._size=0,this._comparator=e}return r.prototype.insert=function(e,t){return this._size++,this._root=Mn(e,t,this._root,this._comparator)},r.prototype.add=function(e,t){var n=new rt(e,t);this._root===null&&(n.left=n.right=null,this._size++,this._root=n);var i=this._comparator,o=Xe(e,this._root,i),s=i(e,o.key);return s===0?this._root=o:(s<0?(n.left=o.left,n.right=o,o.left=null):s>0&&(n.right=o.right,n.left=o,o.right=null),this._size++,this._root=n),this._root},r.prototype.remove=function(e){this._root=this._remove(e,this._root,this._comparator)},r.prototype._remove=function(e,t,n){var i;if(t===null)return null;t=Xe(e,t,n);var o=n(e,t.key);return o===0?(t.left===null?i=t.right:(i=Xe(e,t.left,n),i.right=t.right),this._size--,i):t},r.prototype.pop=function(){var e=this._root;if(e){for(;e.left;)e=e.left;return this._root=Xe(e.key,this._root,this._comparator),this._root=this._remove(e.key,this._root,this._comparator),{key:e.key,data:e.data}}return null},r.prototype.findStatic=function(e){for(var t=this._root,n=this._comparator;t;){var i=n(e,t.key);if(i===0)return t;i<0?t=t.left:t=t.right}return null},r.prototype.find=function(e){return this._root&&(this._root=Xe(e,this._root,this._comparator),this._comparator(e,this._root.key)!==0)?null:this._root},r.prototype.contains=function(e){for(var t=this._root,n=this._comparator;t;){var i=n(e,t.key);if(i===0)return!0;i<0?t=t.left:t=t.right}return!1},r.prototype.forEach=function(e,t){for(var n=this._root,i=[],o=!1;!o;)n!==null?(i.push(n),n=n.left):i.length!==0?(n=i.pop(),e.call(t,n),n=n.right):o=!0;return this},r.prototype.range=function(e,t,n,i){for(var o=[],s=this._comparator,a=this._root,l;o.length!==0||a;)if(a)o.push(a),a=a.left;else{if(a=o.pop(),l=s(a.key,t),l>0)break;if(s(a.key,e)>=0&&n.call(i,a))return this;a=a.right}return this},r.prototype.keys=function(){var e=[];return this.forEach(function(t){var n=t.key;return e.push(n)}),e},r.prototype.values=function(){var e=[];return this.forEach(function(t){var n=t.data;return e.push(n)}),e},r.prototype.min=function(){return this._root?this.minNode(this._root).key:null},r.prototype.max=function(){return this._root?this.maxNode(this._root).key:null},r.prototype.minNode=function(e){if(e===void 0&&(e=this._root),e)for(;e.left;)e=e.left;return e},r.prototype.maxNode=function(e){if(e===void 0&&(e=this._root),e)for(;e.right;)e=e.right;return e},r.prototype.at=function(e){for(var t=this._root,n=!1,i=0,o=[];!n;)if(t)o.push(t),t=t.left;else if(o.length>0){if(t=o.pop(),i===e)return t;i++,t=t.right}else n=!0;return null},r.prototype.next=function(e){var t=this._root,n=null;if(e.right){for(n=e.right;n.left;)n=n.left;return n}for(var i=this._comparator;t;){var o=i(e.key,t.key);if(o===0)break;o<0?(n=t,t=t.left):t=t.right}return n},r.prototype.prev=function(e){var t=this._root,n=null;if(e.left!==null){for(n=e.left;n.right;)n=n.right;return n}for(var i=this._comparator;t;){var o=i(e.key,t.key);if(o===0)break;o<0?t=t.left:(n=t,t=t.right)}return n},r.prototype.clear=function(){return this._root=null,this._size=0,this},r.prototype.toList=function(){return cs(this._root)},r.prototype.load=function(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!1);var i=e.length,o=this._comparator;if(n&&jn(e,t,0,i-1,o),this._root===null)this._root=Dn(e,t,0,i),this._size=i;else{var s=ps(this.toList(),fs(e,t),o);i=this._size+i,this._root=Hn({head:s},0,i)}return this},r.prototype.isEmpty=function(){return this._root===null},Object.defineProperty(r.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"root",{get:function(){return this._root},enumerable:!0,configurable:!0}),r.prototype.toString=function(e){e===void 0&&(e=function(n){return String(n.key)});var t=[];return Bn(this._root,"",!0,function(n){return t.push(n)},e),t.join("")},r.prototype.update=function(e,t,n){var i=this._comparator,o=br(e,this._root,i),s=o.left,a=o.right;i(e,t)<0?a=Mn(t,n,a,i):s=Mn(t,n,s,i),this._root=us(s,a,i)},r.prototype.split=function(e){return br(e,this._root,this._comparator)},r.prototype[Symbol.iterator]=function(){var e;return ls(this,function(t){switch(t.label){case 0:e=this.minNode(),t.label=1;case 1:return e?[4,e]:[3,3];case 2:return t.sent(),e=this.next(e),[3,1];case 3:return[2]}})},r}();function Dn(r,e,t,n){var i=n-t;if(i>0){var o=t+Math.floor(i/2),s=r[o],a=e[o],l=new rt(s,a);return l.left=Dn(r,e,t,o),l.right=Dn(r,e,o+1,n),l}return null}function fs(r,e){for(var t=new rt(null,null),n=t,i=0;i0?(e=o=o.next=t.pop(),e=e.right):n=!0;return o.next=null,i.next}function Hn(r,e,t){var n=t-e;if(n>0){var i=e+Math.floor(n/2),o=Hn(r,e,i),s=r.head;return s.left=o,r.head=r.head.next,s.right=Hn(r,i+1,t),s}return null}function ps(r,e,t){for(var n=new rt(null,null),i=n,o=r,s=e;o!==null&&s!==null;)t(o.key,s.key)<0?(i.next=o,o=o.next):(i.next=s,s=s.next),i=i.next;return o!==null?i.next=o:s!==null&&(i.next=s),n.next}function jn(r,e,t,n,i){if(!(t>=n)){for(var o=r[t+n>>1],s=t-1,a=n+1;;){do s++;while(i(r[s],o)<0);do a--;while(i(r[a],o)>0);if(s>=a)break;var l=r[s];r[s]=r[a],r[a]=l,l=e[s],e[s]=e[a],e[a]=l}jn(r,e,t,a,i),jn(r,e,a+1,n,i)}}function Fe(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function yr(r,e){for(var t=0;tn.x?1:t.yn.y?1:0}}]);function r(e,t){Fe(this,r),e.events===void 0?e.events=[this]:e.events.push(this),this.point=e,this.isLeft=t}return Re(r,[{key:"link",value:function(t){if(t.point===this.point)throw new Error("Tried to link already linked events");for(var n=t.point.events,i=0,o=n.length;i=0&&p>=0?fg?-1:0:u<0&&p<0?fg?1:0:pu?1:0}}}]),r}(),bs=0,dn=function(){Re(r,null,[{key:"compare",value:function(t,n){var i=t.leftSE.point.x,o=n.leftSE.point.x,s=t.rightSE.point.x,a=n.rightSE.point.x;if(al&&u>f)return-1;var p=t.comparePoint(n.leftSE.point);if(p<0)return 1;if(p>0)return-1;var g=n.comparePoint(t.rightSE.point);return g!==0?g:-1}if(i>o){if(lu&&l>c)return 1;var v=n.comparePoint(t.leftSE.point);if(v!==0)return v;var y=t.comparePoint(n.rightSE.point);return y<0?1:y>0?-1:1}if(lu)return 1;if(sa){var h=t.comparePoint(n.rightSE.point);if(h<0)return 1;if(h>0)return-1}if(s!==a){var d=f-l,b=s-i,m=c-u,w=a-o;if(d>b&&mw)return-1}return s>a?1:sc?1:t.idn.id?1:0}}]);function r(e,t,n,i){Fe(this,r),this.id=++bs,this.leftSE=e,e.segment=this,e.otherSE=t,this.rightSE=t,t.segment=this,t.otherSE=e,this.rings=n,this.windings=i}return Re(r,[{key:"replaceRightSE",value:function(t){this.rightSE=t,this.rightSE.segment=this,this.rightSE.otherSE=this.leftSE,this.leftSE.otherSE=this.rightSE}},{key:"bbox",value:function(){var t=this.leftSE.point.y,n=this.rightSE.point.y;return{ll:{x:this.leftSE.point.x,y:tn?t:n}}}},{key:"vector",value:function(){return{x:this.rightSE.point.x-this.leftSE.point.x,y:this.rightSE.point.y-this.leftSE.point.y}}},{key:"isAnEndpoint",value:function(t){return t.x===this.leftSE.point.x&&t.y===this.leftSE.point.y||t.x===this.rightSE.point.x&&t.y===this.rightSE.point.y}},{key:"comparePoint",value:function(t){if(this.isAnEndpoint(t))return 0;var n=this.leftSE.point,i=this.rightSE.point,o=this.vector();if(n.x===i.x)return t.x===n.x?0:t.x0&&l.swapEvents(),De.comparePoints(this.leftSE.point,this.rightSE.point)>0&&this.swapEvents(),i&&(o.checkForConsuming(),s.checkForConsuming()),n}},{key:"swapEvents",value:function(){var t=this.rightSE;this.rightSE=this.leftSE,this.leftSE=t,this.leftSE.isLeft=!0,this.rightSE.isLeft=!1;for(var n=0,i=this.windings.length;n0){var s=n;n=i,i=s}if(n.prev===i){var a=n;n=i,i=a}for(var l=0,u=i.rings.length;l0)o=n,s=t,a=-1;else throw new Error("Tried to create degenerate segment at [".concat(t.x,", ").concat(t.y,"]"));var u=new De(o,!0),f=new De(s,!1);return new r(u,f,[i],[a])}}]),r}(),Er=function(){function r(e,t,n){if(Fe(this,r),!Array.isArray(e)||e.length===0)throw new Error("Input geometry is not a valid Polygon or MultiPolygon");if(this.poly=t,this.isExterior=n,this.segments=[],typeof e[0][0]!="number"||typeof e[0][1]!="number")throw new Error("Input geometry is not a valid Polygon or MultiPolygon");var i=Bt.round(e[0][0],e[0][1]);this.bbox={ll:{x:i.x,y:i.y},ur:{x:i.x,y:i.y}};for(var o=i,s=1,a=e.length;sthis.bbox.ur.x&&(this.bbox.ur.x=l.x),l.y>this.bbox.ur.y&&(this.bbox.ur.y=l.y),o=l)}(i.x!==o.x||i.y!==o.y)&&this.segments.push(dn.fromRing(o,i,this))}return Re(r,[{key:"getSweepEvents",value:function(){for(var t=[],n=0,i=this.segments.length;nthis.bbox.ur.x&&(this.bbox.ur.x=o.bbox.ur.x),o.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=o.bbox.ur.y),this.interiorRings.push(o)}this.multiPoly=t}return Re(r,[{key:"getSweepEvents",value:function(){for(var t=this.exteriorRing.getSweepEvents(),n=0,i=this.interiorRings.length;nthis.bbox.ur.x&&(this.bbox.ur.x=o.bbox.ur.x),o.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=o.bbox.ur.y),this.polys.push(o)}this.isSubject=t}return Re(r,[{key:"getSweepEvents",value:function(){for(var t=[],n=0,i=this.polys.length;n0&&(t=o)}for(var s=t.segment.prevInResult(),a=s?s.prevInResult():null;;){if(!s)return null;if(!a)return s.ringOut;if(a.ringOut!==s.ringOut)return a.ringOut.enclosingRing()!==s.ringOut?s.ringOut:s.ringOut.enclosingRing();s=a.prevInResult(),a=s?s.prevInResult():null}}}]),r}(),$r=function(){function r(e){Fe(this,r),this.exteriorRing=e,e.poly=this,this.interiorRings=[]}return Re(r,[{key:"addInterior",value:function(t){this.interiorRings.push(t),t.poly=this}},{key:"getGeom",value:function(){var t=[this.exteriorRing.getGeom()];if(t[0]===null)return null;for(var n=0,i=this.interiorRings.length;n1&&arguments[1]!==void 0?arguments[1]:dn.compare;Fe(this,r),this.queue=e,this.tree=new lr(t),this.segments=[]}return Re(r,[{key:"process",value:function(t){var n=t.segment,i=[];if(t.consumedBy)return t.isLeft?this.queue.remove(t.otherSE):this.tree.remove(n),i;var o=t.isLeft?this.tree.insert(n):this.tree.find(n);if(!o)throw new Error("Unable to find segment #".concat(n.id," ")+"[".concat(n.leftSE.point.x,", ").concat(n.leftSE.point.y,"] -> ")+"[".concat(n.rightSE.point.x,", ").concat(n.rightSE.point.y,"] ")+"in SweepLine tree. Please submit a bug report.");for(var s=o,a=o,l=void 0,u=void 0;l===void 0;)s=this.tree.prev(s),s===null?l=null:s.key.consumedBy===void 0&&(l=s.key);for(;u===void 0;)a=this.tree.next(a),a===null?u=null:a.key.consumedBy===void 0&&(u=a.key);if(t.isLeft){var f=null;if(l){var c=l.getIntersection(n);if(c!==null&&(n.isAnEndpoint(c)||(f=c),!l.isAnEndpoint(c)))for(var p=this._splitSafely(l,c),g=0,v=p.length;g0?(this.tree.remove(n),i.push(t)):(this.segments.push(n),n.prev=l)}else{if(l&&u){var I=l.getIntersection(u);if(I!==null){if(!l.isAnEndpoint(I))for(var B=this._splitSafely(l,I),D=0,j=B.length;DCr)throw new Error("Infinite loop when putting segment endpoints in a priority queue (queue size too big). Please file a bug report.");for(var w=new ks(y),L=y.size,O=y.pop();O;){var R=O.key;if(y.size===L){var I=R.segment;throw new Error("Unable to pop() ".concat(R.isLeft?"left":"right"," SweepEvent ")+"[".concat(R.point.x,", ").concat(R.point.y,"] from segment #").concat(I.id," ")+"[".concat(I.leftSE.point.x,", ").concat(I.leftSE.point.y,"] -> ")+"[".concat(I.rightSE.point.x,", ").concat(I.rightSE.point.y,"] from queue. ")+"Please file a bug report.")}if(y.size>Cr)throw new Error("Infinite loop when passing sweep line over endpoints (queue size too big). Please file a bug report.");if(w.segments.length>Ss)throw new Error("Infinite loop when passing sweep line over endpoints (too many sweep line segments). Please file a bug report.");for(var B=w.process(R),D=0,j=B.length;D1?t-1:0),i=1;i1?t-1:0),i=1;i1?t-1:0),i=1;i1?t-1:0),i=1;it(1,n=s));let{boundaryGeojson:i}=e;return mo("setCamera")&&n.fitBounds(bi(i),{padding:20,animate:!1}),ut(n,"boundary",Ts(i)),er(n,{id:"boundary",source:"boundary",color:"black",opacity:.5}),r.$$set=s=>{"boundaryGeojson"in s&&t(0,i=s.boundaryGeojson)},[i]}class xs extends ee{constructor(e){super(),te(this,e,Rs,null,ne,{boundaryGeojson:0})}}let ft="hover";function Is(r,e,t){let n,i,o,s,a,l;return W(r,Ue,u=>t(0,n=u)),W(r,ce,u=>t(1,i=u)),W(r,ln,u=>t(2,o=u)),W(r,Ge,u=>t(3,s=u)),W(r,xe,u=>t(4,a=u)),W(r,Ut,u=>t(5,l=u)),ut(n,ft,nt()),Nt(n,{id:"hover-polygons",source:ft,filter:tr,color:Jt.hovering,width:.5*Fn}),Nt(n,{id:"hover-lines",source:ft,filter:nr,color:Jt.hovering,width:1.5*Fn}),mn(n,{id:"hover-points",source:ft,filter:rr,color:Jt.hovering,radius:1.5*ki}),r.$$.update=()=>{if(r.$$.dirty&41&&(l||(n.getCanvas().style.cursor=s?"pointer":"inherit")),r.$$.dirty&31){let u=a||s||o;u!=null?n.getSource(ft).setData(i.features.find(f=>f.id==u)):n.getSource(ft).setData(nt())}},[n,i,o,s,a,l]}class Fs extends ee{constructor(e){super(),te(this,e,Is,null,ne,{})}}const Ps="/atip/capitalize_auto_form/assets/edit_attributes-29b396e1.svg",Ns="/atip/capitalize_auto_form/assets/edit_geometry-02dad294.svg",Bs="/atip/capitalize_auto_form/assets/point-276f4055.svg",Ds="/atip/capitalize_auto_form/assets/polygon_freehand-cf965967.svg",Hs="/atip/capitalize_auto_form/assets/polygon_snapped-18efbbea.svg",js="/atip/capitalize_auto_form/assets/route-d3c0ebad.svg",Ri="/atip/capitalize_auto_form/assets/split_route-9e0ea2da.svg",Us="/atip/capitalize_auto_form/assets/street_view-48580b6a.svg";function Lr(r){let e;function t(o,s){return o[2]?qs:zs}let n=t(r),i=n(r);return{c(){i.c(),e=be()},m(o,s){i.m(o,s),k(o,e,s)},p(o,s){n===(n=t(o))&&i?i.p(o,s):(i.d(1),i=n(o),i&&(i.c(),i.m(e.parentNode,e)))},d(o){o&&S(e),i.d(o)}}}function zs(r){let e,t,n=bt(r[0])+"",i,o;return{c(){e=$("p"),t=U("Click "),i=U(n),o=U(" to fill out its attributes")},m(s,a){k(s,e,a),E(e,t),E(e,i),E(e,o)},p(s,a){a&1&&n!==(n=bt(s[0])+"")&&Le(i,n)},d(s){s&&S(e)}}}function qs(r){let e,t,n=bt(r[0])+"",i;return{c(){e=$("p"),t=U("Edit attributes to the left, or click "),i=U(n)},m(o,s){k(o,e,s),E(e,t),E(e,i)},p(o,s){s&1&&n!==(n=bt(o[0])+"")&&Le(i,n)},d(o){o&&S(e)}}}function Gs(r){let e,t=r[1]==qn&&Lr(r);return{c(){t&&t.c(),e=be()},m(n,i){t&&t.m(n,i),k(n,e,i)},p(n,[i]){n[1]==qn?t?t.p(n,i):(t=Lr(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},i:G,o:G,d(n){n&&S(e),t&&t.d(n)}}}const qn="edit-attribute";function xi(){}function Ys(r,e,t){let n,i,o,s;W(r,Ue,p=>t(7,n=p)),W(r,ce,p=>t(8,i=p)),W(r,Ce,p=>t(1,o=p)),W(r,xe,p=>t(2,s=p));let{schema:a}=e,{changeMode:l}=e,{eventHandler:u}=e;function f(){xe.set(null)}const c=an.subscribe(p=>{if(p){let g=i.features.find(v=>v.id==p);g.geometry.type=="Point"?n.flyTo({center:g.geometry.coordinates,duration:500}):n.fitBounds(bi(g),{padding:200,duration:500}),l(qn)}});return bn(c),u.mapHandlers.mousemove=p=>{var v;let g=n.queryRenderedFeatures(p.point,{layers:["interventions-points","interventions-lines","interventions-polygons"]});Ge.set(((v=g[0])==null?void 0:v.id)||null)},u.mapHandlers.mouseout=()=>{Ge.set(null)},u.mapHandlers.click=p=>{let g=n.queryRenderedFeatures(p.point,{layers:["interventions-points","interventions-lines","interventions-polygons"]});g.length>0?xe.set(g[0].id):xe.set(null)},r.$$set=p=>{"schema"in p&&t(0,a=p.schema),"changeMode"in p&&t(4,l=p.changeMode),"eventHandler"in p&&t(3,u=p.eventHandler)},[a,o,s,u,l,xi,f]}class Js extends ee{constructor(e){super(),te(this,e,Ys,Gs,ne,{schema:0,changeMode:4,eventHandler:3,start:5,stop:6})}get start(){return xi}get stop(){return this.$$.ctx[6]}}const Tr=["click","dblclick","mousemove","mousedown","mouseup","mouseout","dragstart"],Ar=["keypress","keyup","keydown"];class Je{constructor(){J(this,"mapHandlers");J(this,"documentHandlers");this.mapHandlers={click:e=>{},dblclick:e=>{},mousemove:e=>{},mousedown:e=>{},mouseup:e=>{},mouseout:e=>{},dragstart:e=>{}},this.documentHandlers={keypress:e=>{},keyup:e=>{},keydown:e=>{}}}}class Xs{constructor(e){J(this,"map");J(this,"active");J(this,"eventListenersSuccess");J(this,"eventListenersFailure");J(this,"cursor");J(this,"onMouseMove",e=>{this.active&&(this.cursor=Gt(e.lngLat.toArray()))});J(this,"onClick",()=>{if(this.active&&this.cursor){for(let e of this.eventListenersSuccess)e(this.cursor);this.stop()}});J(this,"onKeyDown",e=>{this.active&&e.key=="Escape"&&(e.preventDefault(),this.cancel())});J(this,"setHandlers",e=>{e.mapHandlers.mousemove=this.onMouseMove,e.mapHandlers.click=this.onClick,e.documentHandlers.keydown=this.onKeyDown});this.map=e,this.active=!1,this.eventListenersSuccess=[],this.eventListenersFailure=[],this.cursor=null}cancel(){for(let e of this.eventListenersFailure)e();this.stop()}addEventListenerSuccess(e){this.eventListenersSuccess.push(e)}addEventListenerFailure(e){this.eventListenersFailure.push(e)}start(){this.map.getCanvas().style.cursor="crosshair",this.setActivity(!0)}stop(){this.map.getCanvas().style.cursor="inherit",this.cursor=null,this.setActivity(!1)}setActivity(e){this.active=e,Ut.set(e)}}function Ws(r){let e;return{c(){e=$("li"),e.textContent="Click to add a new point"},m(t,n){k(t,e,n)},d(t){t&&S(e)}}}function Vs(r){let e;return{c(){e=$("li"),e.textContent="Click to move the point here"},m(t,n){k(t,e,n)},d(t){t&&S(e)}}}function Ks(r){let e,t,n;function i(a,l){return a[1]?Vs:Ws}let o=i(r),s=o(r);return{c(){e=$("ul"),s.c(),t=A(),n=$("li"),n.innerHTML="Press Escape to cancel"},m(a,l){k(a,e,l),s.m(e,null),E(e,t),E(e,n)},p(a,l){o!==(o=i(a))&&(s.d(1),s=o(a),s&&(s.c(),s.m(e,t)))},d(a){a&&S(e),s.d()}}}function Zs(r){let e,t,n,i,o,s;return e=new yt({props:{label:"Help",$$slots:{default:[Ks]},$$scope:{ctx:r}}}),{c(){F(e.$$.fragment),t=A(),n=$("button"),n.textContent="Cancel",x(n,"type","button")},m(a,l){P(e,a,l),k(a,t,l),k(a,n,l),i=!0,o||(s=Y(n,"click",r[2]),o=!0)},p(a,[l]){const u={};l&10&&(u.$$scope={dirty:l,ctx:a}),e.$set(u)},i(a){i||(M(e.$$.fragment,a),i=!0)},o(a){C(e.$$.fragment,a),i=!1},d(a){a&&(S(t),S(n)),N(e,a),o=!1,s()}}}function Qs(r,e,t){let{pointTool:n}=e,{editingExisting:i}=e;const o=()=>n.cancel();return r.$$set=s=>{"pointTool"in s&&t(0,n=s.pointTool),"editingExisting"in s&&t(1,i=s.editingExisting)},[n,i,o]}class Ii extends ee{constructor(e){super(),te(this,e,Qs,Zs,ne,{pointTool:0,editingExisting:1})}}function tt(r){if(!r)throw new Error("coord is required");if(!Array.isArray(r)){if(r.type==="Feature"&&r.geometry!==null&&r.geometry.type==="Point")return r.geometry.coordinates;if(r.type==="Point")return r.coordinates}if(Array.isArray(r)&&r.length>=2&&!Array.isArray(r[0])&&!Array.isArray(r[1]))return r;throw new Error("coord must be GeoJSON Point or an Array of numbers")}function je(r){if(Array.isArray(r))return r;if(r.type==="Feature"){if(r.geometry!==null)return r.geometry.coordinates}else if(r.coordinates)return r.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function Gn(r,e){return r.type==="FeatureCollection"?"FeatureCollection":r.type==="GeometryCollection"?"GeometryCollection":r.type==="Feature"&&r.geometry!==null?r.geometry.type:r.type}function Fi(r,e,t){if(t===void 0&&(t={}),t.final===!0)return el(r,e);var n=tt(r),i=tt(e),o=Pe(n[0]),s=Pe(i[0]),a=Pe(n[1]),l=Pe(i[1]),u=Math.sin(s-o)*Math.cos(l),f=Math.cos(a)*Math.sin(l)-Math.sin(a)*Math.cos(l)*Math.cos(s-o);return xn(Math.atan2(u,f))}function el(r,e){var t=Fi(e,r);return t=(t+180)%360,t}function We(r,e,t){t===void 0&&(t={});var n=tt(r),i=tt(e),o=Pe(i[1]-n[1]),s=Pe(i[0]-n[0]),a=Pe(n[1]),l=Pe(i[1]),u=Math.pow(Math.sin(o/2),2)+Math.pow(Math.sin(s/2),2)*Math.cos(a)*Math.cos(l);return bo(2*Math.atan2(Math.sqrt(u),Math.sqrt(1-u)),t.units)}function Or(r,e,t,n){n===void 0&&(n={});var i=tt(r),o=Pe(i[0]),s=Pe(i[1]),a=Pe(t),l=yo(e,n.units),u=Math.asin(Math.sin(s)*Math.cos(l)+Math.cos(s)*Math.sin(l)*Math.cos(a)),f=o+Math.atan2(Math.sin(a)*Math.sin(l)*Math.cos(s),Math.cos(l)-Math.sin(s)*Math.sin(u)),c=xn(f),p=xn(u);return _t([c,p],n.properties)}function Yn(r){if(!r)throw new Error("geojson is required");var e=[];return ir(r,function(t){tl(t,e)}),et(e)}function tl(r,e){var t=[],n=r.geometry;if(n!==null){switch(n.type){case"Polygon":t=je(n);break;case"LineString":t=[je(n)]}t.forEach(function(i){var o=nl(i,r.properties);o.forEach(function(s){s.id=e.length,e.push(s)})})}}function nl(r,e){var t=[];return r.reduce(function(n,i){var o=mt([n,i],e);return o.bbox=rl(n,i),t.push(o),i}),t}function rl(r,e){var t=r[0],n=r[1],i=e[0],o=e[1],s=ti?t:i,u=n>o?n:o;return[s,a,l,u]}var ar={exports:{}},Pi={exports:{}};(function(r,e){(function(t,n){r.exports=n()})(vo,function(){function t(d,b,m,w,L){(function O(R,I,B,D,j){for(;D>B;){if(D-B>600){var T=D-B+1,z=I-B+1,ue=Math.log(T),he=.5*Math.exp(2*ue/3),Se=.5*Math.sqrt(ue*he*(T-he)/T)*(z-T/2<0?-1:1),Ee=Math.max(B,Math.floor(I-z*he/T+Se)),_e=Math.min(D,Math.floor(I+(T-z)*he/T+Se));O(R,I,Ee,_e,j)}var me=R[I],Te=B,se=D;for(n(R,B,I),j(R[D],me)>0&&n(R,B,D);Te0;)se--}j(R[B],me)===0?n(R,B,se):n(R,++se,D),se<=I&&(B=se+1),I<=se&&(D=se-1)}})(d,b,m||0,w||d.length-1,L||i)}function n(d,b,m){var w=d[b];d[b]=d[m],d[m]=w}function i(d,b){return db?1:0}var o=function(d){d===void 0&&(d=9),this._maxEntries=Math.max(4,d),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function s(d,b,m){if(!m)return b.indexOf(d);for(var w=0;w=d.minX&&b.maxY>=d.minY}function _(d){return{children:d,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function h(d,b,m,w,L){for(var O=[b,m];O.length;)if(!((m=O.pop())-(b=O.pop())<=w)){var R=b+Math.ceil((m-b)/w/2)*w;t(d,R,b,m,L),O.push(b,R,R,m)}}return o.prototype.all=function(){return this._all(this.data,[])},o.prototype.search=function(d){var b=this.data,m=[];if(!y(d,b))return m;for(var w=this.toBBox,L=[];b;){for(var O=0;O=0&&L[b].children.length>this._maxEntries;)this._split(L,b),b--;this._adjustParentBBoxes(w,L,b)},o.prototype._split=function(d,b){var m=d[b],w=m.children.length,L=this._minEntries;this._chooseSplitAxis(m,L,w);var O=this._chooseSplitIndex(m,L,w),R=_(m.children.splice(O,m.children.length-O));R.height=m.height,R.leaf=m.leaf,a(m,this.toBBox),a(R,this.toBBox),b?d[b-1].children.push(R):this._splitRoot(m,R)},o.prototype._splitRoot=function(d,b){this.data=_([d,b]),this.data.height=d.height+1,this.data.leaf=!1,a(this.data,this.toBBox)},o.prototype._chooseSplitIndex=function(d,b,m){for(var w,L,O,R,I,B,D,j=1/0,T=1/0,z=b;z<=m-b;z++){var ue=l(d,0,z,this.toBBox),he=l(d,z,m,this.toBBox),Se=(L=ue,O=he,R=void 0,I=void 0,B=void 0,D=void 0,R=Math.max(L.minX,O.minX),I=Math.max(L.minY,O.minY),B=Math.min(L.maxX,O.maxX),D=Math.min(L.maxY,O.maxY),Math.max(0,B-R)*Math.max(0,D-I)),Ee=p(ue)+p(he);Se=b;j--){var T=d.children[j];u(R,d.leaf?L(T):T),I+=g(R)}return I},o.prototype._adjustParentBBoxes=function(d,b,m){for(var w=m;w>=0;w--)u(b[w],d)},o.prototype._condense=function(d){for(var b=d.length-1,m=void 0;b>=0;b--)d[b].children.length===0?b>0?(m=d[b-1].children).splice(m.indexOf(d[b]),1):this.clear():a(d[b],this.toBBox)},o})})(Pi);var il=Pi.exports;const ol=or(wo),sl=or(ko),ll=or(So);var Be=il,Ni=ol,Bi=sl,ct=ll.default,al=Bi.featureEach;Bi.coordEach;Ni.polygon;var Rr=Ni.featureCollection;function Di(r){var e=new Be(r);return e.insert=function(t){if(t.type!=="Feature")throw new Error("invalid feature");return t.bbox=t.bbox?t.bbox:ct(t),Be.prototype.insert.call(this,t)},e.load=function(t){var n=[];return Array.isArray(t)?t.forEach(function(i){if(i.type!=="Feature")throw new Error("invalid features");i.bbox=i.bbox?i.bbox:ct(i),n.push(i)}):al(t,function(i){if(i.type!=="Feature")throw new Error("invalid features");i.bbox=i.bbox?i.bbox:ct(i),n.push(i)}),Be.prototype.load.call(this,n)},e.remove=function(t,n){if(t.type!=="Feature")throw new Error("invalid feature");return t.bbox=t.bbox?t.bbox:ct(t),Be.prototype.remove.call(this,t,n)},e.clear=function(){return Be.prototype.clear.call(this)},e.search=function(t){var n=Be.prototype.search.call(this,this.toBBox(t));return Rr(n)},e.collides=function(t){return Be.prototype.collides.call(this,this.toBBox(t))},e.all=function(){var t=Be.prototype.all.call(this);return Rr(t)},e.toJSON=function(){return Be.prototype.toJSON.call(this)},e.fromJSON=function(t){return Be.prototype.fromJSON.call(this,t)},e.toBBox=function(t){var n;if(t.bbox)n=t.bbox;else if(Array.isArray(t)&&t.length===4)n=t;else if(Array.isArray(t)&&t.length===6)n=[t[0],t[1],t[3],t[4]];else if(t.type==="Feature")n=ct(t);else if(t.type==="FeatureCollection")n=ct(t);else throw new Error("invalid geojson");return{minX:n[0],minY:n[1],maxX:n[2],maxY:n[3]}},e}ar.exports=Di;ar.exports.default=Di;var ul=ar.exports;const ur=Eo(ul);function Hi(r,e){var t={},n=[];if(r.type==="LineString"&&(r=dr(r)),e.type==="LineString"&&(e=dr(e)),r.type==="Feature"&&e.type==="Feature"&&r.geometry!==null&&e.geometry!==null&&r.geometry.type==="LineString"&&e.geometry.type==="LineString"&&r.geometry.coordinates.length===2&&e.geometry.coordinates.length===2){var i=xr(r,e);return i&&n.push(i),et(n)}var o=ur();return o.load(Yn(e)),nn(Yn(r),function(s){nn(o.search(s),function(a){var l=xr(s,a);if(l){var u=je(l).join(",");t[u]||(t[u]=!0,n.push(l))}})}),et(n)}function xr(r,e){var t=je(r),n=je(e);if(t.length!==2)throw new Error(" line1 must only contain 2 coordinates");if(n.length!==2)throw new Error(" line2 must only contain 2 coordinates");var i=t[0][0],o=t[0][1],s=t[1][0],a=t[1][1],l=n[0][0],u=n[0][1],f=n[1][0],c=n[1][1],p=(c-u)*(s-i)-(f-l)*(a-o),g=(f-l)*(o-u)-(c-u)*(i-l),v=(s-i)*(o-u)-(a-o)*(i-l);if(p===0)return null;var y=g/p,_=v/p;if(y>=0&&y<=1&&_>=0&&_<=1){var h=i+y*(s-i),d=o+y*(a-o);return _t([h,d])}return null}function Dt(r,e,t){t===void 0&&(t={});var n=_t([1/0,1/0],{dist:1/0}),i=0;return ir(r,function(o){for(var s=je(o),a=0;a0&&(_=y.features[0],_.properties.dist=We(e,_,t),_.properties.location=i+We(l,_,t)),l.properties.dist{if(this.active&&!this.dragFrom)this.recalculateHovering(e);else if(this.active&&this.dragFrom){if(this.hover=="polygon"){let t=this.dragFrom[0]-e.lngLat.lng,n=this.dragFrom[1]-e.lngLat.lat;for(let i of this.points)i[0]-=t,i[1]-=n}else this.points[this.hover]=e.lngLat.toArray();this.dragFrom=e.lngLat.toArray(),this.redraw()}});J(this,"onClick",e=>{if(this.active&&this.cursor){let t=[];if(Ir(this.points).forEach((n,i)=>{t.push([i+1,Dt(n,this.cursor).properties.dist])}),t.sort((n,i)=>n[1]-i[1]),t.length>0){let n=t[0][0];this.points.splice(n,0,this.cursor.geometry.coordinates),this.hover=n}else this.points.push(this.cursor.geometry.coordinates),this.hover=this.points.length-1;this.redraw(),this.pointsUpdated()}else this.active&&typeof this.hover=="number"&&(this.points.splice(this.hover,1),this.hover=null,this.redraw(),this.pointsUpdated(),this.recalculateHovering(e))});J(this,"onDoubleClick",e=>{this.active&&(e.preventDefault(),this.cursor=Gt(e.lngLat.toArray()),this.onClick(e),this.finish())});J(this,"onMouseDown",e=>{this.active&&!this.dragFrom&&this.hover!=null&&(e.preventDefault(),this.cursor=null,this.dragFrom=e.lngLat.toArray(),this.redraw())});J(this,"onMouseUp",()=>{this.active&&this.dragFrom&&(this.dragFrom=null,this.redraw(),this.pointsUpdated())});J(this,"onKeypress",e=>{this.active&&e.key=="Enter"&&(e.preventDefault(),this.finish())});J(this,"onKeyDown",e=>{this.active&&e.key=="Escape"&&(e.preventDefault(),this.cancel())});J(this,"setHandlers",e=>{e.mapHandlers.mousemove=this.onMouseMove,e.mapHandlers.click=this.onClick,e.mapHandlers.dblclick=this.onDoubleClick,e.mapHandlers.mousedown=this.onMouseDown,e.mapHandlers.mouseup=this.onMouseUp,e.documentHandlers.keypress=this.onKeypress,e.documentHandlers.keydown=this.onKeyDown});this.map=e,this.active=!1,this.eventListenersSuccess=[],this.eventListenersUpdated=[],this.eventListenersFailure=[],this.points=[],this.cursor=null,this.hover=null,this.dragFrom=null,ut(e,pt,nt()),er(e,{id:"edit-polygon-fill",source:pt,filter:tr,color:"red",opacity:["case",["boolean",["get","hover"],"false"],1,.5]}),Nt(e,{id:"edit-polygon-lines",source:pt,filter:nr,color:"black",width:8,opacity:.5}),mn(e,{id:"edit-polygon-vertices",source:pt,filter:rr,color:Jt.hovering,radius:ki,opacity:["case",["boolean",["get","hover"],"false"],1,.5]})}finish(){let e=this.polygonFeature();if(e)for(let t of this.eventListenersSuccess)t(e);else for(let t of this.eventListenersFailure)t();this.stop()}cancel(){for(let e of this.eventListenersFailure)e();this.stop()}addEventListenerSuccess(e){this.eventListenersSuccess.push(e)}addEventListenerUpdated(e){this.eventListenersUpdated.push(e)}addEventListenerFailure(e){this.eventListenersFailure.push(e)}tearDown(){this.map.removeLayer("edit-polygon-vertices"),this.map.removeLayer("edit-polygon-fill"),this.map.removeLayer("edit-polygon-lines"),this.map.removeSource(pt)}startNew(){this.setActivity(!0),this.map.doubleClickZoom.disable()}editExisting(e){this.setActivity(!0),this.map.doubleClickZoom.disable(),this.points=JSON.parse(JSON.stringify(e.geometry.coordinates[0])),this.points.pop(),this.redraw()}setActivity(e){this.active=e,Ut.set(e)}stop(){this.map.getCanvas().style.cursor="inherit",this.map.doubleClickZoom.enable(),this.points=[],this.cursor=null,this.setActivity(!1),this.hover=null,this.dragFrom=null,this.redraw()}redraw(){let e=nt();this.points.forEach((i,o)=>{let s=Gt(i);s.properties.hover=this.hover==o,s.properties.idx=o,e.features.push(s)}),e.features=e.features.concat(Ir(this.points));let t=this.polygonFeature();t&&(t.properties.hover=this.hover=="polygon",e.features.push(t)),this.map.getSource(pt).setData(e);let n="crosshair";this.hover!=null&&(n=this.dragFrom?"grabbing":"pointer"),this.map.getCanvas().style.cursor=n}pointsUpdated(){let e=this.polygonFeature();if(e)for(let t of this.eventListenersUpdated)t(e)}recalculateHovering(e){this.cursor=null,this.hover=null;for(let t of this.map.queryRenderedFeatures(e.point,{layers:["edit-polygon-fill","edit-polygon-vertices"]}))if(t.geometry.type=="Polygon"){this.hover="polygon";break}else if(t.geometry.type=="Point"&&Object.hasOwn(t.properties,"idx")){this.hover=t.properties.idx;break}this.hover==null&&(this.cursor=Gt(e.lngLat.toArray())),this.redraw()}polygonFeature(){if(this.points.length<3)return null;let e=this.points.map(Yt),t=[JSON.parse(JSON.stringify(e))];return t[0].push(JSON.parse(JSON.stringify(t[0][0]))),{type:"Feature",geometry:{type:"Polygon",coordinates:t},properties:{}}}}function Ir(r){let e=[];for(let t=0;t=3&&e.push({type:"Feature",geometry:{type:"LineString",coordinates:[r[r.length-1],r[0]]},properties:{}}),e}function cl(r){let e;return{c(){e=$("ul"),e.innerHTML="
  • Click the map to add a vertex
  • Click a vertex to delete it
  • Drag a vertex or the polygon to move it
  • Press Enter or double click to finish
  • Press Escape to cancel
  • "},m(t,n){k(t,e,n)},p:G,d(t){t&&S(e)}}}function pl(r){let e,t,n,i,o,s,a,l,u;return e=new yt({props:{label:"Help",$$slots:{default:[cl]},$$scope:{ctx:r}}}),{c(){F(e.$$.fragment),t=A(),n=$("div"),i=$("button"),i.textContent="Finish",o=A(),s=$("button"),s.textContent="Cancel",x(i,"type","button"),x(s,"type","button"),Ae(n,"display","flex"),Ae(n,"justify-content","space-between")},m(f,c){P(e,f,c),k(f,t,c),k(f,n,c),E(n,i),E(n,o),E(n,s),a=!0,l||(u=[Y(i,"click",r[1]),Y(s,"click",r[2])],l=!0)},p(f,[c]){const p={};c&8&&(p.$$scope={dirty:c,ctx:f}),e.$set(p)},i(f){a||(M(e.$$.fragment,f),a=!0)},o(f){C(e.$$.fragment,f),a=!1},d(f){f&&(S(t),S(n)),N(e,f),l=!1,Ie(u)}}}function dl(r,e,t){let{polygonTool:n}=e;const i=()=>n.finish(),o=()=>n.cancel();return r.$$set=s=>{"polygonTool"in s&&t(0,n=s.polygonTool)},[n,i,o]}class ji extends ee{constructor(e){super(),te(this,e,dl,pl,ne,{polygonTool:0})}}let K;const ze=new Array(32).fill(void 0);ze.push(void 0,null,!0,!1);function Q(r){return ze[r]}let Rt=ze.length;function hl(r){r<36||(ze[r]=Rt,Rt=r)}function Jn(r){const e=Q(r);return hl(r),e}const Ui=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});Ui.decode();let Vt=new Uint8Array;function xt(){return Vt.byteLength===0&&(Vt=new Uint8Array(K.memory.buffer)),Vt}function lt(r,e){return Ui.decode(xt().subarray(r,r+e))}function $e(r){Rt===ze.length&&ze.push(ze.length+1);const e=Rt;return Rt=ze[e],ze[e]=r,e}function $n(r){return r==null}let Kt=new Float64Array;function gl(){return Kt.byteLength===0&&(Kt=new Float64Array(K.memory.buffer)),Kt}let Zt=new Int32Array;function ke(){return Zt.byteLength===0&&(Zt=new Int32Array(K.memory.buffer)),Zt}let Ze=0;const Qt=new TextEncoder("utf-8"),_l=typeof Qt.encodeInto=="function"?function(r,e){return Qt.encodeInto(r,e)}:function(r,e){const t=Qt.encode(r);return e.set(t),{read:r.length,written:t.length}};function qt(r,e,t){if(t===void 0){const a=Qt.encode(r),l=e(a.length);return xt().subarray(l,l+a.length).set(a),Ze=a.length,l}let n=r.length,i=e(n);const o=xt();let s=0;for(;s127)break;o[i+s]=a}if(s!==n){s!==0&&(r=r.slice(s)),i=t(i,n,n=s+r.length*3);const a=xt().subarray(i+s,i+n),l=_l(r,a);s+=l.written}return Ze=s,i}function Xn(r){const e=typeof r;if(e=="number"||e=="boolean"||r==null)return`${r}`;if(e=="string")return`"${r}"`;if(e=="symbol"){const i=r.description;return i==null?"Symbol":`Symbol(${i})`}if(e=="function"){const i=r.name;return typeof i=="string"&&i.length>0?`Function(${i})`:"Function"}if(Array.isArray(r)){const i=r.length;let o="[";i>0&&(o+=Xn(r[0]));for(let s=1;s1)n=t[1];else return toString.call(r);if(n=="Object")try{return"Object("+JSON.stringify(r)+")"}catch{return"Object"}return r instanceof Error?`${r.name}: ${r.message} -${r.stack}`:n}function ml(r,e){const t=e(r.length*1);return xt().set(r,t/1),Ze=r.length,t}function Cn(r,e){try{return r.apply(this,e)}catch(t){K.__wbindgen_exn_store($e(t))}}class hn{static __wrap(e){const t=Object.create(hn.prototype);return t.ptr=e,t}__destroy_into_raw(){const e=this.ptr;return this.ptr=0,e}free(){const e=this.__destroy_into_raw();K.__wbg_jsroutesnapper_free(e)}constructor(e){try{const o=K.__wbindgen_add_to_stack_pointer(-16),s=ml(e,K.__wbindgen_malloc),a=Ze;K.jsroutesnapper_new(o,s,a);var t=ke()[o/4+0],n=ke()[o/4+1],i=ke()[o/4+2];if(i)throw Jn(n);return hn.__wrap(t)}finally{K.__wbindgen_add_to_stack_pointer(16)}}setConfig(e){K.jsroutesnapper_setConfig(this.ptr,$e(e))}getConfig(){try{const n=K.__wbindgen_add_to_stack_pointer(-16);K.jsroutesnapper_getConfig(n,this.ptr);var e=ke()[n/4+0],t=ke()[n/4+1];return lt(e,t)}finally{K.__wbindgen_add_to_stack_pointer(16),K.__wbindgen_free(e,t)}}toFinalFeature(){try{const n=K.__wbindgen_add_to_stack_pointer(-16);K.jsroutesnapper_toFinalFeature(n,this.ptr);var e=ke()[n/4+0],t=ke()[n/4+1];let i;return e!==0&&(i=lt(e,t).slice(),K.__wbindgen_free(e,t*1)),i}finally{K.__wbindgen_add_to_stack_pointer(16)}}renderGeojson(){try{const n=K.__wbindgen_add_to_stack_pointer(-16);K.jsroutesnapper_renderGeojson(n,this.ptr);var e=ke()[n/4+0],t=ke()[n/4+1];return lt(e,t)}finally{K.__wbindgen_add_to_stack_pointer(16),K.__wbindgen_free(e,t)}}setSnapMode(e){K.jsroutesnapper_setSnapMode(this.ptr,e)}onMouseMove(e,t,n){return K.jsroutesnapper_onMouseMove(this.ptr,e,t,n)!==0}onClick(){K.jsroutesnapper_onClick(this.ptr)}onDragStart(){return K.jsroutesnapper_onDragStart(this.ptr)!==0}onMouseUp(){return K.jsroutesnapper_onMouseUp(this.ptr)!==0}clearState(){K.jsroutesnapper_clearState(this.ptr)}editExisting(e){try{const i=K.__wbindgen_add_to_stack_pointer(-16);K.jsroutesnapper_editExisting(i,this.ptr,$e(e));var t=ke()[i/4+0],n=ke()[i/4+1];if(n)throw Jn(t)}finally{K.__wbindgen_add_to_stack_pointer(16)}}}async function bl(r,e){if(typeof Response=="function"&&r instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(r,e)}catch(n){if(r.headers.get("Content-Type")!="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",n);else throw n}const t=await r.arrayBuffer();return await WebAssembly.instantiate(t,e)}else{const t=await WebAssembly.instantiate(r,e);return t instanceof WebAssembly.Instance?{instance:t,module:r}:t}}function yl(){const r={};return r.wbg={},r.wbg.__wbindgen_object_drop_ref=function(e){Jn(e)},r.wbg.__wbindgen_boolean_get=function(e){const t=Q(e);return typeof t=="boolean"?t?1:0:2},r.wbg.__wbindgen_error_new=function(e,t){const n=new Error(lt(e,t));return $e(n)},r.wbg.__wbindgen_string_new=function(e,t){const n=lt(e,t);return $e(n)},r.wbg.__wbindgen_is_object=function(e){const t=Q(e);return typeof t=="object"&&t!==null},r.wbg.__wbindgen_is_undefined=function(e){return Q(e)===void 0},r.wbg.__wbindgen_in=function(e,t){return Q(e)in Q(t)},r.wbg.__wbindgen_number_get=function(e,t){const n=Q(t),i=typeof n=="number"?n:void 0;gl()[e/8+1]=$n(i)?0:i,ke()[e/4+0]=!$n(i)},r.wbg.__wbindgen_jsval_loose_eq=function(e,t){return Q(e)==Q(t)},r.wbg.__wbindgen_string_get=function(e,t){const n=Q(t),i=typeof n=="string"?n:void 0;var o=$n(i)?0:qt(i,K.__wbindgen_malloc,K.__wbindgen_realloc),s=Ze;ke()[e/4+1]=s,ke()[e/4+0]=o},r.wbg.__wbg_String_91fba7ded13ba54c=function(e,t){const n=String(Q(t)),i=qt(n,K.__wbindgen_malloc,K.__wbindgen_realloc),o=Ze;ke()[e/4+1]=o,ke()[e/4+0]=i},r.wbg.__wbindgen_object_clone_ref=function(e){const t=Q(e);return $e(t)},r.wbg.__wbg_getwithrefkey_15c62c2b8546208d=function(e,t){const n=Q(e)[Q(t)];return $e(n)},r.wbg.__wbg_debug_f15cb542ea509609=function(e){console.debug(Q(e))},r.wbg.__wbg_error_ef9a0be47931175f=function(e){console.error(Q(e))},r.wbg.__wbg_info_2874fdd5393f35ce=function(e){console.info(Q(e))},r.wbg.__wbg_log_4b5638ad60bdc54a=function(e){console.log(Q(e))},r.wbg.__wbg_warn_58110c4a199df084=function(e){console.warn(Q(e))},r.wbg.__wbg_get_57245cc7d7c7619d=function(e,t){const n=Q(e)[t>>>0];return $e(n)},r.wbg.__wbg_length_6e3bbe7c8bd4dbd8=function(e){return Q(e).length},r.wbg.__wbindgen_is_function=function(e){return typeof Q(e)=="function"},r.wbg.__wbg_next_579e583d33566a86=function(e){const t=Q(e).next;return $e(t)},r.wbg.__wbg_next_aaef7c8aa5e212ac=function(){return Cn(function(e){const t=Q(e).next();return $e(t)},arguments)},r.wbg.__wbg_done_1b73b0672e15f234=function(e){return Q(e).done},r.wbg.__wbg_value_1ccc36bc03462d71=function(e){const t=Q(e).value;return $e(t)},r.wbg.__wbg_iterator_6f9d4f28845f426c=function(){return $e(Symbol.iterator)},r.wbg.__wbg_get_765201544a2b6869=function(){return Cn(function(e,t){const n=Reflect.get(Q(e),Q(t));return $e(n)},arguments)},r.wbg.__wbg_call_97ae9d8645dc388b=function(){return Cn(function(e,t){const n=Q(e).call(Q(t));return $e(n)},arguments)},r.wbg.__wbg_isArray_27c46c67f498e15d=function(e){return Array.isArray(Q(e))},r.wbg.__wbg_instanceof_ArrayBuffer_e5e48f4762c5610b=function(e){let t;try{t=Q(e)instanceof ArrayBuffer}catch{t=!1}return t},r.wbg.__wbg_buffer_3f3d764d4747d564=function(e){const t=Q(e).buffer;return $e(t)},r.wbg.__wbg_new_8c3f0052272a457a=function(e){const t=new Uint8Array(Q(e));return $e(t)},r.wbg.__wbg_set_83db9690f9353e79=function(e,t,n){Q(e).set(Q(t),n>>>0)},r.wbg.__wbg_length_9e1ae1900cb0fbd5=function(e){return Q(e).length},r.wbg.__wbg_instanceof_Uint8Array_971eeda69eb75003=function(e){let t;try{t=Q(e)instanceof Uint8Array}catch{t=!1}return t},r.wbg.__wbg_new_abda76e883ba8a5f=function(){const e=new Error;return $e(e)},r.wbg.__wbg_stack_658279fe44541cf6=function(e,t){const n=Q(t).stack,i=qt(n,K.__wbindgen_malloc,K.__wbindgen_realloc),o=Ze;ke()[e/4+1]=o,ke()[e/4+0]=i},r.wbg.__wbg_error_f851667af71bcfc6=function(e,t){try{console.error(lt(e,t))}finally{K.__wbindgen_free(e,t)}},r.wbg.__wbindgen_debug_string=function(e,t){const n=Xn(Q(t)),i=qt(n,K.__wbindgen_malloc,K.__wbindgen_realloc),o=Ze;ke()[e/4+1]=o,ke()[e/4+0]=i},r.wbg.__wbindgen_throw=function(e,t){throw new Error(lt(e,t))},r.wbg.__wbindgen_memory=function(){const e=K.memory;return $e(e)},r}function vl(r,e){return K=r.exports,zi.__wbindgen_wasm_module=e,Kt=new Float64Array,Zt=new Int32Array,Vt=new Uint8Array,K}async function zi(r){typeof r>"u"&&(r="/atip/capitalize_auto_form/assets/route_snapper_bg.wasm");const e=yl();(typeof r=="string"||typeof Request=="function"&&r instanceof Request||typeof URL=="function"&&r instanceof URL)&&(r=fetch(r));const{instance:t,module:n}=await bl(await r,e);return vl(t,n)}const St="route-snapper",Fr=10,wl=30;class kl{constructor(e,t,n){J(this,"map");J(this,"inner");J(this,"active");J(this,"eventListenersSuccess");J(this,"eventListenersUpdated");J(this,"eventListenersFailure");J(this,"onMouseMove",e=>{if(!this.active)return;const t=[e.point.x-wl,e.point.y],n=this.map.unproject(e.point).distanceTo(this.map.unproject(t));this.inner.onMouseMove(e.lngLat.lng,e.lngLat.lat,n)&&(this.redraw(),this.dataUpdated())});J(this,"onClick",()=>{this.active&&(this.inner.onClick(),this.redraw(),this.dataUpdated())});J(this,"onDoubleClick",e=>{this.active&&(e.preventDefault(),this.inner.onClick(),this.finish())});J(this,"onDragStart",()=>{this.active&&this.inner.onDragStart()&&this.map.dragPan.disable()});J(this,"onMouseUp",()=>{this.active&&this.inner.onMouseUp()&&this.map.dragPan.enable()});J(this,"onKeyPress",e=>{this.active&&e.key=="Enter"&&(e.preventDefault(),this.finish())});J(this,"onKeyDown",e=>{this.active&&(e.key=="Shift"?(e.preventDefault(),this.inner.setSnapMode(!1),this.redraw()):e.key=="Escape"&&(e.preventDefault(),this.cancel()))});J(this,"onKeyUp",e=>{this.active&&e.key=="Shift"&&(e.preventDefault(),this.inner.setSnapMode(!0),this.redraw())});J(this,"setHandlers",e=>{e.mapHandlers.mousemove=this.onMouseMove,e.mapHandlers.click=this.onClick,e.mapHandlers.dblclick=this.onDoubleClick,e.mapHandlers.dragstart=this.onDragStart,e.mapHandlers.mouseup=this.onMouseUp,e.documentHandlers.keypress=this.onKeyPress,e.documentHandlers.keydown=this.onKeyDown,e.documentHandlers.keyup=this.onKeyUp});this.map=e,console.time("Deserialize and setup JsRouteSnapper"),this.inner=new hn(t),console.timeEnd("Deserialize and setup JsRouteSnapper"),this.active=!1,this.eventListenersSuccess=[],this.eventListenersUpdated=[],this.eventListenersFailure=[],ut(e,St,nt()),mn(e,{id:"route-points",source:St,filter:rr,color:["match",["get","type"],"hovered","green","important","red","black"],radius:["match",["get","type"],"unimportant",Fr/2,Fr]}),Nt(e,{id:"route-lines",source:St,filter:nr,color:"black",width:2.5}),er(e,{id:"route-polygons",source:St,filter:tr,color:"black",opacity:.5}),n()}startRoute(){this.active||(this.setActivity(!0),this.map.boxZoom.disable(),this.map.doubleClickZoom.disable())}startArea(){this.active||(this.inner.setConfig({avoid_doubling_back:!0,area_mode:!0,extend_route:!0}),this.setActivity(!0),this.map.boxZoom.disable(),this.map.doubleClickZoom.disable())}setActivity(e){this.active=e,Ut.set(e)}stop(){this.setActivity(!1),this.inner.clearState(),this.redraw(),this.map.boxZoom.enable(),this.map.doubleClickZoom.enable()}editExistingRoute(e){this.active&&window.alert("Bug: editExistingRoute called when tool is already active"),e.properties.waypoints||(e.properties.waypoints=[{lon:e.geometry.coordinates[0][0],lat:e.geometry.coordinates[0][1],snapped:!0},{lon:e.geometry.coordinates[e.geometry.coordinates.length-1][0],lat:e.geometry.coordinates[e.geometry.coordinates.length-1][1],snapped:!0}]),this.startRoute(),this.inner.editExisting(e.properties.waypoints),this.redraw()}editExistingArea(e){this.active&&window.alert("Bug: editExistingArea called when tool is already active"),e.properties.waypoints||window.alert("Bug: editExistingArea called for a polygon not produced by the route-snapper"),this.startArea(),this.inner.editExisting(e.properties.waypoints),this.redraw()}tearDown(){this.map.removeLayer("route-points"),this.map.removeLayer("route-lines"),this.map.removeLayer("route-polygons"),this.map.removeSource("route-snapper")}addEventListenerSuccess(e){this.eventListenersSuccess.push(e)}addEventListenerUpdated(e){this.eventListenersUpdated.push(e)}addEventListenerFailure(e){this.eventListenersFailure.push(e)}isActive(){return this.active}finish(){let e=this.inner.toFinalFeature();if(e)for(let t of this.eventListenersSuccess)t(JSON.parse(e));else for(let t of this.eventListenersFailure)t();this.stop()}cancel(){this.inner.clearState(),this.finish()}setRouteConfig(e){this.inner.setConfig({...e,area_mode:!1}),this.redraw()}redraw(){this.map.getSource(St).setData(JSON.parse(this.inner.renderGeojson()))}dataUpdated(){let e=this.inner.toFinalFeature();if(e)for(let t of this.eventListenersUpdated)t(JSON.parse(e))}}function Sl(r){let e;return{c(){e=$("ul"),e.innerHTML="
  • Click green points on the transport network to create snapped routes
  • Hold Shift to draw a point anywhere
  • Click and drag any point to move it
  • Click a red waypoint to delete it
  • Press Enter or double click to finish
  • Press Escape to cancel
  • "},m(t,n){k(t,e,n)},p:G,d(t){t&&S(e)}}}function El(r){let e,t,n,i,o,s,a,l,u,f,c,p,g,v,y,_,h,d,b;return e=new yt({props:{label:"Help",$$slots:{default:[Sl]},$$scope:{ctx:r}}}),{c(){F(e.$$.fragment),t=A(),n=$("label"),i=$("input"),o=U(` +***************************************************************************** */function ls(r,e){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(f){return l([u,f])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,i=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]e?1:r0){if(e.right===null)break;if(t(r,e.right.key)>0){var a=e.right;if(e.right=a.left,a.left=e,e=a,e.right===null)break}i.right=e,i=e,e=e.right}else break}return i.right=e.left,o.left=e.right,e.left=n.right,e.right=n.left,e}function $n(r,e,t,n){var i=new rt(r,e);if(t===null)return i.left=i.right=null,i;t=Xe(r,t,n);var o=n(r,t.key);return o<0?(i.left=t.left,i.right=t,t.left=null):o>=0&&(i.right=t.right,i.left=t,t.right=null),i}function yr(r,e,t){var n=null,i=null;if(e){e=Xe(r,e,t);var o=t(e.key,r);o===0?(n=e.left,i=e.right):o<0?(i=e.right,e.right=null,n=e):(n=e.left,e.left=null,i=e)}return{left:n,right:i}}function us(r,e,t){return e===null?r:(r===null||(e=Xe(r.key,e,t),e.left=r),e)}function Dn(r,e,t,n,i){if(r){n(""+e+(t?"└── ":"├── ")+i(r)+` +`);var o=e+(t?" ":"│ ");r.left&&Dn(r.left,o,!1,n,i),r.right&&Dn(r.right,o,!0,n,i)}}var ar=function(){function r(e){e===void 0&&(e=as),this._root=null,this._size=0,this._comparator=e}return r.prototype.insert=function(e,t){return this._size++,this._root=$n(e,t,this._root,this._comparator)},r.prototype.add=function(e,t){var n=new rt(e,t);this._root===null&&(n.left=n.right=null,this._size++,this._root=n);var i=this._comparator,o=Xe(e,this._root,i),s=i(e,o.key);return s===0?this._root=o:(s<0?(n.left=o.left,n.right=o,o.left=null):s>0&&(n.right=o.right,n.left=o,o.right=null),this._size++,this._root=n),this._root},r.prototype.remove=function(e){this._root=this._remove(e,this._root,this._comparator)},r.prototype._remove=function(e,t,n){var i;if(t===null)return null;t=Xe(e,t,n);var o=n(e,t.key);return o===0?(t.left===null?i=t.right:(i=Xe(e,t.left,n),i.right=t.right),this._size--,i):t},r.prototype.pop=function(){var e=this._root;if(e){for(;e.left;)e=e.left;return this._root=Xe(e.key,this._root,this._comparator),this._root=this._remove(e.key,this._root,this._comparator),{key:e.key,data:e.data}}return null},r.prototype.findStatic=function(e){for(var t=this._root,n=this._comparator;t;){var i=n(e,t.key);if(i===0)return t;i<0?t=t.left:t=t.right}return null},r.prototype.find=function(e){return this._root&&(this._root=Xe(e,this._root,this._comparator),this._comparator(e,this._root.key)!==0)?null:this._root},r.prototype.contains=function(e){for(var t=this._root,n=this._comparator;t;){var i=n(e,t.key);if(i===0)return!0;i<0?t=t.left:t=t.right}return!1},r.prototype.forEach=function(e,t){for(var n=this._root,i=[],o=!1;!o;)n!==null?(i.push(n),n=n.left):i.length!==0?(n=i.pop(),e.call(t,n),n=n.right):o=!0;return this},r.prototype.range=function(e,t,n,i){for(var o=[],s=this._comparator,a=this._root,l;o.length!==0||a;)if(a)o.push(a),a=a.left;else{if(a=o.pop(),l=s(a.key,t),l>0)break;if(s(a.key,e)>=0&&n.call(i,a))return this;a=a.right}return this},r.prototype.keys=function(){var e=[];return this.forEach(function(t){var n=t.key;return e.push(n)}),e},r.prototype.values=function(){var e=[];return this.forEach(function(t){var n=t.data;return e.push(n)}),e},r.prototype.min=function(){return this._root?this.minNode(this._root).key:null},r.prototype.max=function(){return this._root?this.maxNode(this._root).key:null},r.prototype.minNode=function(e){if(e===void 0&&(e=this._root),e)for(;e.left;)e=e.left;return e},r.prototype.maxNode=function(e){if(e===void 0&&(e=this._root),e)for(;e.right;)e=e.right;return e},r.prototype.at=function(e){for(var t=this._root,n=!1,i=0,o=[];!n;)if(t)o.push(t),t=t.left;else if(o.length>0){if(t=o.pop(),i===e)return t;i++,t=t.right}else n=!0;return null},r.prototype.next=function(e){var t=this._root,n=null;if(e.right){for(n=e.right;n.left;)n=n.left;return n}for(var i=this._comparator;t;){var o=i(e.key,t.key);if(o===0)break;o<0?(n=t,t=t.left):t=t.right}return n},r.prototype.prev=function(e){var t=this._root,n=null;if(e.left!==null){for(n=e.left;n.right;)n=n.right;return n}for(var i=this._comparator;t;){var o=i(e.key,t.key);if(o===0)break;o<0?t=t.left:(n=t,t=t.right)}return n},r.prototype.clear=function(){return this._root=null,this._size=0,this},r.prototype.toList=function(){return cs(this._root)},r.prototype.load=function(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!1);var i=e.length,o=this._comparator;if(n&&Un(e,t,0,i-1,o),this._root===null)this._root=Hn(e,t,0,i),this._size=i;else{var s=ps(this.toList(),fs(e,t),o);i=this._size+i,this._root=jn({head:s},0,i)}return this},r.prototype.isEmpty=function(){return this._root===null},Object.defineProperty(r.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"root",{get:function(){return this._root},enumerable:!0,configurable:!0}),r.prototype.toString=function(e){e===void 0&&(e=function(n){return String(n.key)});var t=[];return Dn(this._root,"",!0,function(n){return t.push(n)},e),t.join("")},r.prototype.update=function(e,t,n){var i=this._comparator,o=yr(e,this._root,i),s=o.left,a=o.right;i(e,t)<0?a=$n(t,n,a,i):s=$n(t,n,s,i),this._root=us(s,a,i)},r.prototype.split=function(e){return yr(e,this._root,this._comparator)},r.prototype[Symbol.iterator]=function(){var e;return ls(this,function(t){switch(t.label){case 0:e=this.minNode(),t.label=1;case 1:return e?[4,e]:[3,3];case 2:return t.sent(),e=this.next(e),[3,1];case 3:return[2]}})},r}();function Hn(r,e,t,n){var i=n-t;if(i>0){var o=t+Math.floor(i/2),s=r[o],a=e[o],l=new rt(s,a);return l.left=Hn(r,e,t,o),l.right=Hn(r,e,o+1,n),l}return null}function fs(r,e){for(var t=new rt(null,null),n=t,i=0;i0?(e=o=o.next=t.pop(),e=e.right):n=!0;return o.next=null,i.next}function jn(r,e,t){var n=t-e;if(n>0){var i=e+Math.floor(n/2),o=jn(r,e,i),s=r.head;return s.left=o,r.head=r.head.next,s.right=jn(r,i+1,t),s}return null}function ps(r,e,t){for(var n=new rt(null,null),i=n,o=r,s=e;o!==null&&s!==null;)t(o.key,s.key)<0?(i.next=o,o=o.next):(i.next=s,s=s.next),i=i.next;return o!==null?i.next=o:s!==null&&(i.next=s),n.next}function Un(r,e,t,n,i){if(!(t>=n)){for(var o=r[t+n>>1],s=t-1,a=n+1;;){do s++;while(i(r[s],o)<0);do a--;while(i(r[a],o)>0);if(s>=a)break;var l=r[s];r[s]=r[a],r[a]=l,l=e[s],e[s]=e[a],e[a]=l}Un(r,e,t,a,i),Un(r,e,a+1,n,i)}}function Fe(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function vr(r,e){for(var t=0;tn.x?1:t.yn.y?1:0}}]);function r(e,t){Fe(this,r),e.events===void 0?e.events=[this]:e.events.push(this),this.point=e,this.isLeft=t}return Re(r,[{key:"link",value:function(t){if(t.point===this.point)throw new Error("Tried to link already linked events");for(var n=t.point.events,i=0,o=n.length;i=0&&p>=0?fg?-1:0:u<0&&p<0?fg?1:0:pu?1:0}}}]),r}(),bs=0,hn=function(){Re(r,null,[{key:"compare",value:function(t,n){var i=t.leftSE.point.x,o=n.leftSE.point.x,s=t.rightSE.point.x,a=n.rightSE.point.x;if(al&&u>f)return-1;var p=t.comparePoint(n.leftSE.point);if(p<0)return 1;if(p>0)return-1;var g=n.comparePoint(t.rightSE.point);return g!==0?g:-1}if(i>o){if(lu&&l>c)return 1;var v=n.comparePoint(t.leftSE.point);if(v!==0)return v;var y=t.comparePoint(n.rightSE.point);return y<0?1:y>0?-1:1}if(lu)return 1;if(sa){var h=t.comparePoint(n.rightSE.point);if(h<0)return 1;if(h>0)return-1}if(s!==a){var d=f-l,b=s-i,m=c-u,w=a-o;if(d>b&&mw)return-1}return s>a?1:sc?1:t.idn.id?1:0}}]);function r(e,t,n,i){Fe(this,r),this.id=++bs,this.leftSE=e,e.segment=this,e.otherSE=t,this.rightSE=t,t.segment=this,t.otherSE=e,this.rings=n,this.windings=i}return Re(r,[{key:"replaceRightSE",value:function(t){this.rightSE=t,this.rightSE.segment=this,this.rightSE.otherSE=this.leftSE,this.leftSE.otherSE=this.rightSE}},{key:"bbox",value:function(){var t=this.leftSE.point.y,n=this.rightSE.point.y;return{ll:{x:this.leftSE.point.x,y:tn?t:n}}}},{key:"vector",value:function(){return{x:this.rightSE.point.x-this.leftSE.point.x,y:this.rightSE.point.y-this.leftSE.point.y}}},{key:"isAnEndpoint",value:function(t){return t.x===this.leftSE.point.x&&t.y===this.leftSE.point.y||t.x===this.rightSE.point.x&&t.y===this.rightSE.point.y}},{key:"comparePoint",value:function(t){if(this.isAnEndpoint(t))return 0;var n=this.leftSE.point,i=this.rightSE.point,o=this.vector();if(n.x===i.x)return t.x===n.x?0:t.x0&&l.swapEvents(),De.comparePoints(this.leftSE.point,this.rightSE.point)>0&&this.swapEvents(),i&&(o.checkForConsuming(),s.checkForConsuming()),n}},{key:"swapEvents",value:function(){var t=this.rightSE;this.rightSE=this.leftSE,this.leftSE=t,this.leftSE.isLeft=!0,this.rightSE.isLeft=!1;for(var n=0,i=this.windings.length;n0){var s=n;n=i,i=s}if(n.prev===i){var a=n;n=i,i=a}for(var l=0,u=i.rings.length;l0)o=n,s=t,a=-1;else throw new Error("Tried to create degenerate segment at [".concat(t.x,", ").concat(t.y,"]"));var u=new De(o,!0),f=new De(s,!1);return new r(u,f,[i],[a])}}]),r}(),Mr=function(){function r(e,t,n){if(Fe(this,r),!Array.isArray(e)||e.length===0)throw new Error("Input geometry is not a valid Polygon or MultiPolygon");if(this.poly=t,this.isExterior=n,this.segments=[],typeof e[0][0]!="number"||typeof e[0][1]!="number")throw new Error("Input geometry is not a valid Polygon or MultiPolygon");var i=Dt.round(e[0][0],e[0][1]);this.bbox={ll:{x:i.x,y:i.y},ur:{x:i.x,y:i.y}};for(var o=i,s=1,a=e.length;sthis.bbox.ur.x&&(this.bbox.ur.x=l.x),l.y>this.bbox.ur.y&&(this.bbox.ur.y=l.y),o=l)}(i.x!==o.x||i.y!==o.y)&&this.segments.push(hn.fromRing(o,i,this))}return Re(r,[{key:"getSweepEvents",value:function(){for(var t=[],n=0,i=this.segments.length;nthis.bbox.ur.x&&(this.bbox.ur.x=o.bbox.ur.x),o.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=o.bbox.ur.y),this.interiorRings.push(o)}this.multiPoly=t}return Re(r,[{key:"getSweepEvents",value:function(){for(var t=this.exteriorRing.getSweepEvents(),n=0,i=this.interiorRings.length;nthis.bbox.ur.x&&(this.bbox.ur.x=o.bbox.ur.x),o.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=o.bbox.ur.y),this.polys.push(o)}this.isSubject=t}return Re(r,[{key:"getSweepEvents",value:function(){for(var t=[],n=0,i=this.polys.length;n0&&(t=o)}for(var s=t.segment.prevInResult(),a=s?s.prevInResult():null;;){if(!s)return null;if(!a)return s.ringOut;if(a.ringOut!==s.ringOut)return a.ringOut.enclosingRing()!==s.ringOut?s.ringOut:s.ringOut.enclosingRing();s=a.prevInResult(),a=s?s.prevInResult():null}}}]),r}(),Cr=function(){function r(e){Fe(this,r),this.exteriorRing=e,e.poly=this,this.interiorRings=[]}return Re(r,[{key:"addInterior",value:function(t){this.interiorRings.push(t),t.poly=this}},{key:"getGeom",value:function(){var t=[this.exteriorRing.getGeom()];if(t[0]===null)return null;for(var n=0,i=this.interiorRings.length;n1&&arguments[1]!==void 0?arguments[1]:hn.compare;Fe(this,r),this.queue=e,this.tree=new ar(t),this.segments=[]}return Re(r,[{key:"process",value:function(t){var n=t.segment,i=[];if(t.consumedBy)return t.isLeft?this.queue.remove(t.otherSE):this.tree.remove(n),i;var o=t.isLeft?this.tree.insert(n):this.tree.find(n);if(!o)throw new Error("Unable to find segment #".concat(n.id," ")+"[".concat(n.leftSE.point.x,", ").concat(n.leftSE.point.y,"] -> ")+"[".concat(n.rightSE.point.x,", ").concat(n.rightSE.point.y,"] ")+"in SweepLine tree. Please submit a bug report.");for(var s=o,a=o,l=void 0,u=void 0;l===void 0;)s=this.tree.prev(s),s===null?l=null:s.key.consumedBy===void 0&&(l=s.key);for(;u===void 0;)a=this.tree.next(a),a===null?u=null:a.key.consumedBy===void 0&&(u=a.key);if(t.isLeft){var f=null;if(l){var c=l.getIntersection(n);if(c!==null&&(n.isAnEndpoint(c)||(f=c),!l.isAnEndpoint(c)))for(var p=this._splitSafely(l,c),g=0,v=p.length;g0?(this.tree.remove(n),i.push(t)):(this.segments.push(n),n.prev=l)}else{if(l&&u){var I=l.getIntersection(u);if(I!==null){if(!l.isAnEndpoint(I))for(var B=this._splitSafely(l,I),D=0,j=B.length;DLr)throw new Error("Infinite loop when putting segment endpoints in a priority queue (queue size too big). Please file a bug report.");for(var w=new ks(y),L=y.size,O=y.pop();O;){var R=O.key;if(y.size===L){var I=R.segment;throw new Error("Unable to pop() ".concat(R.isLeft?"left":"right"," SweepEvent ")+"[".concat(R.point.x,", ").concat(R.point.y,"] from segment #").concat(I.id," ")+"[".concat(I.leftSE.point.x,", ").concat(I.leftSE.point.y,"] -> ")+"[".concat(I.rightSE.point.x,", ").concat(I.rightSE.point.y,"] from queue. ")+"Please file a bug report.")}if(y.size>Lr)throw new Error("Infinite loop when passing sweep line over endpoints (queue size too big). Please file a bug report.");if(w.segments.length>Ss)throw new Error("Infinite loop when passing sweep line over endpoints (too many sweep line segments). Please file a bug report.");for(var B=w.process(R),D=0,j=B.length;D1?t-1:0),i=1;i1?t-1:0),i=1;i1?t-1:0),i=1;i1?t-1:0),i=1;it(1,n=s));let{boundaryGeojson:i}=e;return mo("setCamera")&&n.fitBounds(bi(i),{padding:20,animate:!1}),ft(n,"boundary",Ts(i)),tr(n,{id:"boundary",source:"boundary",color:"black",opacity:.5}),r.$$set=s=>{"boundaryGeojson"in s&&t(0,i=s.boundaryGeojson)},[i]}class xs extends ee{constructor(e){super(),te(this,e,Rs,null,ne,{boundaryGeojson:0})}}let ct="hover";function Is(r,e,t){let n,i,o,s,a,l;return W(r,Ue,u=>t(0,n=u)),W(r,ce,u=>t(1,i=u)),W(r,an,u=>t(2,o=u)),W(r,Ge,u=>t(3,s=u)),W(r,xe,u=>t(4,a=u)),W(r,zt,u=>t(5,l=u)),ft(n,ct,nt()),Bt(n,{id:"hover-polygons",source:ct,filter:nr,color:Xt.hovering,width:.5*Pn}),Bt(n,{id:"hover-lines",source:ct,filter:rr,color:Xt.hovering,width:1.5*Pn}),bn(n,{id:"hover-points",source:ct,filter:ir,color:Xt.hovering,radius:1.5*ki}),r.$$.update=()=>{if(r.$$.dirty&41&&(l||(n.getCanvas().style.cursor=s?"pointer":"inherit")),r.$$.dirty&31){let u=a||s||o;u!=null?n.getSource(ct).setData(i.features.find(f=>f.id==u)):n.getSource(ct).setData(nt())}},[n,i,o,s,a,l]}class Fs extends ee{constructor(e){super(),te(this,e,Is,null,ne,{})}}const Ps="/atip/capitalize_auto_form/assets/edit_attributes-29b396e1.svg",Ns="/atip/capitalize_auto_form/assets/edit_geometry-02dad294.svg",Bs="/atip/capitalize_auto_form/assets/point-276f4055.svg",Ds="/atip/capitalize_auto_form/assets/polygon_freehand-cf965967.svg",Hs="/atip/capitalize_auto_form/assets/polygon_snapped-18efbbea.svg",js="/atip/capitalize_auto_form/assets/route-d3c0ebad.svg",Ri="/atip/capitalize_auto_form/assets/split_route-9e0ea2da.svg",Us="/atip/capitalize_auto_form/assets/street_view-48580b6a.svg";function Tr(r){let e;function t(o,s){return o[2]?qs:zs}let n=t(r),i=n(r);return{c(){i.c(),e=be()},m(o,s){i.m(o,s),k(o,e,s)},p(o,s){n===(n=t(o))&&i?i.p(o,s):(i.d(1),i=n(o),i&&(i.c(),i.m(e.parentNode,e)))},d(o){o&&S(e),i.d(o)}}}function zs(r){let e,t,n=yt(r[0])+"",i,o;return{c(){e=$("p"),t=U("Click "),i=U(n),o=U(" to fill out its attributes")},m(s,a){k(s,e,a),E(e,t),E(e,i),E(e,o)},p(s,a){a&1&&n!==(n=yt(s[0])+"")&&Le(i,n)},d(s){s&&S(e)}}}function qs(r){let e,t,n=yt(r[0])+"",i;return{c(){e=$("p"),t=U("Edit attributes to the left, or click "),i=U(n)},m(o,s){k(o,e,s),E(e,t),E(e,i)},p(o,s){s&1&&n!==(n=yt(o[0])+"")&&Le(i,n)},d(o){o&&S(e)}}}function Gs(r){let e,t=r[1]==Gn&&Tr(r);return{c(){t&&t.c(),e=be()},m(n,i){t&&t.m(n,i),k(n,e,i)},p(n,[i]){n[1]==Gn?t?t.p(n,i):(t=Tr(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},i:G,o:G,d(n){n&&S(e),t&&t.d(n)}}}const Gn="edit-attribute";function xi(){}function Ys(r,e,t){let n,i,o,s;W(r,Ue,p=>t(7,n=p)),W(r,ce,p=>t(8,i=p)),W(r,Ce,p=>t(1,o=p)),W(r,xe,p=>t(2,s=p));let{schema:a}=e,{changeMode:l}=e,{eventHandler:u}=e;function f(){xe.set(null)}const c=un.subscribe(p=>{if(p){let g=i.features.find(v=>v.id==p);g.geometry.type=="Point"?n.flyTo({center:g.geometry.coordinates,duration:500}):n.fitBounds(bi(g),{padding:200,duration:500}),l(Gn)}});return yn(c),u.mapHandlers.mousemove=p=>{var v;let g=n.queryRenderedFeatures(p.point,{layers:["interventions-points","interventions-lines","interventions-polygons"]});Ge.set(((v=g[0])==null?void 0:v.id)||null)},u.mapHandlers.mouseout=()=>{Ge.set(null)},u.mapHandlers.click=p=>{let g=n.queryRenderedFeatures(p.point,{layers:["interventions-points","interventions-lines","interventions-polygons"]});g.length>0?xe.set(g[0].id):xe.set(null)},r.$$set=p=>{"schema"in p&&t(0,a=p.schema),"changeMode"in p&&t(4,l=p.changeMode),"eventHandler"in p&&t(3,u=p.eventHandler)},[a,o,s,u,l,xi,f]}class Js extends ee{constructor(e){super(),te(this,e,Ys,Gs,ne,{schema:0,changeMode:4,eventHandler:3,start:5,stop:6})}get start(){return xi}get stop(){return this.$$.ctx[6]}}const Ar=["click","dblclick","mousemove","mousedown","mouseup","mouseout","dragstart"],Or=["keypress","keyup","keydown"];class Je{constructor(){J(this,"mapHandlers");J(this,"documentHandlers");this.mapHandlers={click:e=>{},dblclick:e=>{},mousemove:e=>{},mousedown:e=>{},mouseup:e=>{},mouseout:e=>{},dragstart:e=>{}},this.documentHandlers={keypress:e=>{},keyup:e=>{},keydown:e=>{}}}}class Xs{constructor(e){J(this,"map");J(this,"active");J(this,"eventListenersSuccess");J(this,"eventListenersFailure");J(this,"cursor");J(this,"onMouseMove",e=>{this.active&&(this.cursor=Yt(e.lngLat.toArray()))});J(this,"onClick",()=>{if(this.active&&this.cursor){for(let e of this.eventListenersSuccess)e(this.cursor);this.stop()}});J(this,"onKeyDown",e=>{this.active&&e.key=="Escape"&&(e.preventDefault(),this.cancel())});J(this,"setHandlers",e=>{e.mapHandlers.mousemove=this.onMouseMove,e.mapHandlers.click=this.onClick,e.documentHandlers.keydown=this.onKeyDown});this.map=e,this.active=!1,this.eventListenersSuccess=[],this.eventListenersFailure=[],this.cursor=null}cancel(){for(let e of this.eventListenersFailure)e();this.stop()}addEventListenerSuccess(e){this.eventListenersSuccess.push(e)}addEventListenerFailure(e){this.eventListenersFailure.push(e)}start(){this.map.getCanvas().style.cursor="crosshair",this.setActivity(!0)}stop(){this.map.getCanvas().style.cursor="inherit",this.cursor=null,this.setActivity(!1)}setActivity(e){this.active=e,zt.set(e)}}function Ws(r){let e;return{c(){e=$("li"),e.textContent="Click to add a new point"},m(t,n){k(t,e,n)},d(t){t&&S(e)}}}function Vs(r){let e;return{c(){e=$("li"),e.textContent="Click to move the point here"},m(t,n){k(t,e,n)},d(t){t&&S(e)}}}function Ks(r){let e,t,n;function i(a,l){return a[1]?Vs:Ws}let o=i(r),s=o(r);return{c(){e=$("ul"),s.c(),t=A(),n=$("li"),n.innerHTML="Press Escape to cancel"},m(a,l){k(a,e,l),s.m(e,null),E(e,t),E(e,n)},p(a,l){o!==(o=i(a))&&(s.d(1),s=o(a),s&&(s.c(),s.m(e,t)))},d(a){a&&S(e),s.d()}}}function Zs(r){let e,t,n,i,o,s;return e=new vt({props:{label:"Help",$$slots:{default:[Ks]},$$scope:{ctx:r}}}),{c(){F(e.$$.fragment),t=A(),n=$("button"),n.textContent="Cancel",x(n,"type","button")},m(a,l){P(e,a,l),k(a,t,l),k(a,n,l),i=!0,o||(s=Y(n,"click",r[2]),o=!0)},p(a,[l]){const u={};l&10&&(u.$$scope={dirty:l,ctx:a}),e.$set(u)},i(a){i||(M(e.$$.fragment,a),i=!0)},o(a){C(e.$$.fragment,a),i=!1},d(a){a&&(S(t),S(n)),N(e,a),o=!1,s()}}}function Qs(r,e,t){let{pointTool:n}=e,{editingExisting:i}=e;const o=()=>n.cancel();return r.$$set=s=>{"pointTool"in s&&t(0,n=s.pointTool),"editingExisting"in s&&t(1,i=s.editingExisting)},[n,i,o]}class Ii extends ee{constructor(e){super(),te(this,e,Qs,Zs,ne,{pointTool:0,editingExisting:1})}}function tt(r){if(!r)throw new Error("coord is required");if(!Array.isArray(r)){if(r.type==="Feature"&&r.geometry!==null&&r.geometry.type==="Point")return r.geometry.coordinates;if(r.type==="Point")return r.coordinates}if(Array.isArray(r)&&r.length>=2&&!Array.isArray(r[0])&&!Array.isArray(r[1]))return r;throw new Error("coord must be GeoJSON Point or an Array of numbers")}function je(r){if(Array.isArray(r))return r;if(r.type==="Feature"){if(r.geometry!==null)return r.geometry.coordinates}else if(r.coordinates)return r.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function Yn(r,e){return r.type==="FeatureCollection"?"FeatureCollection":r.type==="GeometryCollection"?"GeometryCollection":r.type==="Feature"&&r.geometry!==null?r.geometry.type:r.type}function Fi(r,e,t){if(t===void 0&&(t={}),t.final===!0)return el(r,e);var n=tt(r),i=tt(e),o=Pe(n[0]),s=Pe(i[0]),a=Pe(n[1]),l=Pe(i[1]),u=Math.sin(s-o)*Math.cos(l),f=Math.cos(a)*Math.sin(l)-Math.sin(a)*Math.cos(l)*Math.cos(s-o);return In(Math.atan2(u,f))}function el(r,e){var t=Fi(e,r);return t=(t+180)%360,t}function We(r,e,t){t===void 0&&(t={});var n=tt(r),i=tt(e),o=Pe(i[1]-n[1]),s=Pe(i[0]-n[0]),a=Pe(n[1]),l=Pe(i[1]),u=Math.pow(Math.sin(o/2),2)+Math.pow(Math.sin(s/2),2)*Math.cos(a)*Math.cos(l);return bo(2*Math.atan2(Math.sqrt(u),Math.sqrt(1-u)),t.units)}function Rr(r,e,t,n){n===void 0&&(n={});var i=tt(r),o=Pe(i[0]),s=Pe(i[1]),a=Pe(t),l=yo(e,n.units),u=Math.asin(Math.sin(s)*Math.cos(l)+Math.cos(s)*Math.sin(l)*Math.cos(a)),f=o+Math.atan2(Math.sin(a)*Math.sin(l)*Math.cos(s),Math.cos(l)-Math.sin(s)*Math.sin(u)),c=In(f),p=In(u);return mt([c,p],n.properties)}function Jn(r){if(!r)throw new Error("geojson is required");var e=[];return or(r,function(t){tl(t,e)}),et(e)}function tl(r,e){var t=[],n=r.geometry;if(n!==null){switch(n.type){case"Polygon":t=je(n);break;case"LineString":t=[je(n)]}t.forEach(function(i){var o=nl(i,r.properties);o.forEach(function(s){s.id=e.length,e.push(s)})})}}function nl(r,e){var t=[];return r.reduce(function(n,i){var o=bt([n,i],e);return o.bbox=rl(n,i),t.push(o),i}),t}function rl(r,e){var t=r[0],n=r[1],i=e[0],o=e[1],s=ti?t:i,u=n>o?n:o;return[s,a,l,u]}var ur={exports:{}},Pi={exports:{}};(function(r,e){(function(t,n){r.exports=n()})(vo,function(){function t(d,b,m,w,L){(function O(R,I,B,D,j){for(;D>B;){if(D-B>600){var T=D-B+1,z=I-B+1,ue=Math.log(T),he=.5*Math.exp(2*ue/3),Se=.5*Math.sqrt(ue*he*(T-he)/T)*(z-T/2<0?-1:1),Ee=Math.max(B,Math.floor(I-z*he/T+Se)),_e=Math.min(D,Math.floor(I+(T-z)*he/T+Se));O(R,I,Ee,_e,j)}var me=R[I],Te=B,se=D;for(n(R,B,I),j(R[D],me)>0&&n(R,B,D);Te0;)se--}j(R[B],me)===0?n(R,B,se):n(R,++se,D),se<=I&&(B=se+1),I<=se&&(D=se-1)}})(d,b,m||0,w||d.length-1,L||i)}function n(d,b,m){var w=d[b];d[b]=d[m],d[m]=w}function i(d,b){return db?1:0}var o=function(d){d===void 0&&(d=9),this._maxEntries=Math.max(4,d),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function s(d,b,m){if(!m)return b.indexOf(d);for(var w=0;w=d.minX&&b.maxY>=d.minY}function _(d){return{children:d,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function h(d,b,m,w,L){for(var O=[b,m];O.length;)if(!((m=O.pop())-(b=O.pop())<=w)){var R=b+Math.ceil((m-b)/w/2)*w;t(d,R,b,m,L),O.push(b,R,R,m)}}return o.prototype.all=function(){return this._all(this.data,[])},o.prototype.search=function(d){var b=this.data,m=[];if(!y(d,b))return m;for(var w=this.toBBox,L=[];b;){for(var O=0;O=0&&L[b].children.length>this._maxEntries;)this._split(L,b),b--;this._adjustParentBBoxes(w,L,b)},o.prototype._split=function(d,b){var m=d[b],w=m.children.length,L=this._minEntries;this._chooseSplitAxis(m,L,w);var O=this._chooseSplitIndex(m,L,w),R=_(m.children.splice(O,m.children.length-O));R.height=m.height,R.leaf=m.leaf,a(m,this.toBBox),a(R,this.toBBox),b?d[b-1].children.push(R):this._splitRoot(m,R)},o.prototype._splitRoot=function(d,b){this.data=_([d,b]),this.data.height=d.height+1,this.data.leaf=!1,a(this.data,this.toBBox)},o.prototype._chooseSplitIndex=function(d,b,m){for(var w,L,O,R,I,B,D,j=1/0,T=1/0,z=b;z<=m-b;z++){var ue=l(d,0,z,this.toBBox),he=l(d,z,m,this.toBBox),Se=(L=ue,O=he,R=void 0,I=void 0,B=void 0,D=void 0,R=Math.max(L.minX,O.minX),I=Math.max(L.minY,O.minY),B=Math.min(L.maxX,O.maxX),D=Math.min(L.maxY,O.maxY),Math.max(0,B-R)*Math.max(0,D-I)),Ee=p(ue)+p(he);Se=b;j--){var T=d.children[j];u(R,d.leaf?L(T):T),I+=g(R)}return I},o.prototype._adjustParentBBoxes=function(d,b,m){for(var w=m;w>=0;w--)u(b[w],d)},o.prototype._condense=function(d){for(var b=d.length-1,m=void 0;b>=0;b--)d[b].children.length===0?b>0?(m=d[b-1].children).splice(m.indexOf(d[b]),1):this.clear():a(d[b],this.toBBox)},o})})(Pi);var il=Pi.exports;const ol=sr(wo),sl=sr(ko),ll=sr(So);var Be=il,Ni=ol,Bi=sl,pt=ll.default,al=Bi.featureEach;Bi.coordEach;Ni.polygon;var xr=Ni.featureCollection;function Di(r){var e=new Be(r);return e.insert=function(t){if(t.type!=="Feature")throw new Error("invalid feature");return t.bbox=t.bbox?t.bbox:pt(t),Be.prototype.insert.call(this,t)},e.load=function(t){var n=[];return Array.isArray(t)?t.forEach(function(i){if(i.type!=="Feature")throw new Error("invalid features");i.bbox=i.bbox?i.bbox:pt(i),n.push(i)}):al(t,function(i){if(i.type!=="Feature")throw new Error("invalid features");i.bbox=i.bbox?i.bbox:pt(i),n.push(i)}),Be.prototype.load.call(this,n)},e.remove=function(t,n){if(t.type!=="Feature")throw new Error("invalid feature");return t.bbox=t.bbox?t.bbox:pt(t),Be.prototype.remove.call(this,t,n)},e.clear=function(){return Be.prototype.clear.call(this)},e.search=function(t){var n=Be.prototype.search.call(this,this.toBBox(t));return xr(n)},e.collides=function(t){return Be.prototype.collides.call(this,this.toBBox(t))},e.all=function(){var t=Be.prototype.all.call(this);return xr(t)},e.toJSON=function(){return Be.prototype.toJSON.call(this)},e.fromJSON=function(t){return Be.prototype.fromJSON.call(this,t)},e.toBBox=function(t){var n;if(t.bbox)n=t.bbox;else if(Array.isArray(t)&&t.length===4)n=t;else if(Array.isArray(t)&&t.length===6)n=[t[0],t[1],t[3],t[4]];else if(t.type==="Feature")n=pt(t);else if(t.type==="FeatureCollection")n=pt(t);else throw new Error("invalid geojson");return{minX:n[0],minY:n[1],maxX:n[2],maxY:n[3]}},e}ur.exports=Di;ur.exports.default=Di;var ul=ur.exports;const fr=Eo(ul);function Hi(r,e){var t={},n=[];if(r.type==="LineString"&&(r=hr(r)),e.type==="LineString"&&(e=hr(e)),r.type==="Feature"&&e.type==="Feature"&&r.geometry!==null&&e.geometry!==null&&r.geometry.type==="LineString"&&e.geometry.type==="LineString"&&r.geometry.coordinates.length===2&&e.geometry.coordinates.length===2){var i=Ir(r,e);return i&&n.push(i),et(n)}var o=fr();return o.load(Jn(e)),rn(Jn(r),function(s){rn(o.search(s),function(a){var l=Ir(s,a);if(l){var u=je(l).join(",");t[u]||(t[u]=!0,n.push(l))}})}),et(n)}function Ir(r,e){var t=je(r),n=je(e);if(t.length!==2)throw new Error(" line1 must only contain 2 coordinates");if(n.length!==2)throw new Error(" line2 must only contain 2 coordinates");var i=t[0][0],o=t[0][1],s=t[1][0],a=t[1][1],l=n[0][0],u=n[0][1],f=n[1][0],c=n[1][1],p=(c-u)*(s-i)-(f-l)*(a-o),g=(f-l)*(o-u)-(c-u)*(i-l),v=(s-i)*(o-u)-(a-o)*(i-l);if(p===0)return null;var y=g/p,_=v/p;if(y>=0&&y<=1&&_>=0&&_<=1){var h=i+y*(s-i),d=o+y*(a-o);return mt([h,d])}return null}function Ht(r,e,t){t===void 0&&(t={});var n=mt([1/0,1/0],{dist:1/0}),i=0;return or(r,function(o){for(var s=je(o),a=0;a0&&(_=y.features[0],_.properties.dist=We(e,_,t),_.properties.location=i+We(l,_,t)),l.properties.dist{if(this.active&&!this.dragFrom)this.recalculateHovering(e);else if(this.active&&this.dragFrom){if(this.hover=="polygon"){let t=this.dragFrom[0]-e.lngLat.lng,n=this.dragFrom[1]-e.lngLat.lat;for(let i of this.points)i[0]-=t,i[1]-=n}else this.points[this.hover]=e.lngLat.toArray();this.dragFrom=e.lngLat.toArray(),this.redraw()}});J(this,"onClick",e=>{if(this.active&&this.cursor){let t=[];if(Fr(this.points).forEach((n,i)=>{t.push([i+1,Ht(n,this.cursor).properties.dist])}),t.sort((n,i)=>n[1]-i[1]),t.length>0){let n=t[0][0];this.points.splice(n,0,this.cursor.geometry.coordinates),this.hover=n}else this.points.push(this.cursor.geometry.coordinates),this.hover=this.points.length-1;this.redraw(),this.pointsUpdated()}else this.active&&typeof this.hover=="number"&&(this.points.splice(this.hover,1),this.hover=null,this.redraw(),this.pointsUpdated(),this.recalculateHovering(e))});J(this,"onDoubleClick",e=>{this.active&&(e.preventDefault(),this.cursor=Yt(e.lngLat.toArray()),this.onClick(e),this.finish())});J(this,"onMouseDown",e=>{this.active&&!this.dragFrom&&this.hover!=null&&(e.preventDefault(),this.cursor=null,this.dragFrom=e.lngLat.toArray(),this.redraw())});J(this,"onMouseUp",()=>{this.active&&this.dragFrom&&(this.dragFrom=null,this.redraw(),this.pointsUpdated())});J(this,"onKeypress",e=>{this.active&&e.key=="Enter"&&(e.preventDefault(),this.finish())});J(this,"onKeyDown",e=>{this.active&&e.key=="Escape"&&(e.preventDefault(),this.cancel())});J(this,"setHandlers",e=>{e.mapHandlers.mousemove=this.onMouseMove,e.mapHandlers.click=this.onClick,e.mapHandlers.dblclick=this.onDoubleClick,e.mapHandlers.mousedown=this.onMouseDown,e.mapHandlers.mouseup=this.onMouseUp,e.documentHandlers.keypress=this.onKeypress,e.documentHandlers.keydown=this.onKeyDown});this.map=e,this.active=!1,this.eventListenersSuccess=[],this.eventListenersUpdated=[],this.eventListenersFailure=[],this.points=[],this.cursor=null,this.hover=null,this.dragFrom=null,ft(e,dt,nt()),tr(e,{id:"edit-polygon-fill",source:dt,filter:nr,color:"red",opacity:["case",["boolean",["get","hover"],"false"],1,.5]}),Bt(e,{id:"edit-polygon-lines",source:dt,filter:rr,color:"black",width:8,opacity:.5}),bn(e,{id:"edit-polygon-vertices",source:dt,filter:ir,color:Xt.hovering,radius:ki,opacity:["case",["boolean",["get","hover"],"false"],1,.5]})}finish(){let e=this.polygonFeature();if(e)for(let t of this.eventListenersSuccess)t(e);else for(let t of this.eventListenersFailure)t();this.stop()}cancel(){for(let e of this.eventListenersFailure)e();this.stop()}addEventListenerSuccess(e){this.eventListenersSuccess.push(e)}addEventListenerUpdated(e){this.eventListenersUpdated.push(e)}addEventListenerFailure(e){this.eventListenersFailure.push(e)}tearDown(){this.map.removeLayer("edit-polygon-vertices"),this.map.removeLayer("edit-polygon-fill"),this.map.removeLayer("edit-polygon-lines"),this.map.removeSource(dt)}startNew(){this.setActivity(!0),this.map.doubleClickZoom.disable()}editExisting(e){this.setActivity(!0),this.map.doubleClickZoom.disable(),this.points=JSON.parse(JSON.stringify(e.geometry.coordinates[0])),this.points.pop(),this.redraw()}setActivity(e){this.active=e,zt.set(e)}stop(){this.map.getCanvas().style.cursor="inherit",this.map.doubleClickZoom.enable(),this.points=[],this.cursor=null,this.setActivity(!1),this.hover=null,this.dragFrom=null,this.redraw()}redraw(){let e=nt();this.points.forEach((i,o)=>{let s=Yt(i);s.properties.hover=this.hover==o,s.properties.idx=o,e.features.push(s)}),e.features=e.features.concat(Fr(this.points));let t=this.polygonFeature();t&&(t.properties.hover=this.hover=="polygon",e.features.push(t)),this.map.getSource(dt).setData(e);let n="crosshair";this.hover!=null&&(n=this.dragFrom?"grabbing":"pointer"),this.map.getCanvas().style.cursor=n}pointsUpdated(){let e=this.polygonFeature();if(e)for(let t of this.eventListenersUpdated)t(e)}recalculateHovering(e){this.cursor=null,this.hover=null;for(let t of this.map.queryRenderedFeatures(e.point,{layers:["edit-polygon-fill","edit-polygon-vertices"]}))if(t.geometry.type=="Polygon"){this.hover="polygon";break}else if(t.geometry.type=="Point"&&Object.hasOwn(t.properties,"idx")){this.hover=t.properties.idx;break}this.hover==null&&(this.cursor=Yt(e.lngLat.toArray())),this.redraw()}polygonFeature(){if(this.points.length<3)return null;let e=this.points.map(Jt),t=[JSON.parse(JSON.stringify(e))];return t[0].push(JSON.parse(JSON.stringify(t[0][0]))),{type:"Feature",geometry:{type:"Polygon",coordinates:t},properties:{}}}}function Fr(r){let e=[];for(let t=0;t=3&&e.push({type:"Feature",geometry:{type:"LineString",coordinates:[r[r.length-1],r[0]]},properties:{}}),e}function cl(r){let e;return{c(){e=$("ul"),e.innerHTML="
  • Click the map to add a vertex
  • Click a vertex to delete it
  • Drag a vertex or the polygon to move it
  • Press Enter or double click to finish
  • Press Escape to cancel
  • "},m(t,n){k(t,e,n)},p:G,d(t){t&&S(e)}}}function pl(r){let e,t,n,i,o,s,a,l,u;return e=new vt({props:{label:"Help",$$slots:{default:[cl]},$$scope:{ctx:r}}}),{c(){F(e.$$.fragment),t=A(),n=$("div"),i=$("button"),i.textContent="Finish",o=A(),s=$("button"),s.textContent="Cancel",x(i,"type","button"),x(s,"type","button"),Ae(n,"display","flex"),Ae(n,"justify-content","space-between")},m(f,c){P(e,f,c),k(f,t,c),k(f,n,c),E(n,i),E(n,o),E(n,s),a=!0,l||(u=[Y(i,"click",r[1]),Y(s,"click",r[2])],l=!0)},p(f,[c]){const p={};c&8&&(p.$$scope={dirty:c,ctx:f}),e.$set(p)},i(f){a||(M(e.$$.fragment,f),a=!0)},o(f){C(e.$$.fragment,f),a=!1},d(f){f&&(S(t),S(n)),N(e,f),l=!1,Ie(u)}}}function dl(r,e,t){let{polygonTool:n}=e;const i=()=>n.finish(),o=()=>n.cancel();return r.$$set=s=>{"polygonTool"in s&&t(0,n=s.polygonTool)},[n,i,o]}class ji extends ee{constructor(e){super(),te(this,e,dl,pl,ne,{polygonTool:0})}}let K;const ze=new Array(32).fill(void 0);ze.push(void 0,null,!0,!1);function Q(r){return ze[r]}let xt=ze.length;function hl(r){r<36||(ze[r]=xt,xt=r)}function Xn(r){const e=Q(r);return hl(r),e}const Ui=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});Ui.decode();let Kt=new Uint8Array;function It(){return Kt.byteLength===0&&(Kt=new Uint8Array(K.memory.buffer)),Kt}function at(r,e){return Ui.decode(It().subarray(r,r+e))}function $e(r){xt===ze.length&&ze.push(ze.length+1);const e=xt;return xt=ze[e],ze[e]=r,e}function Cn(r){return r==null}let Zt=new Float64Array;function gl(){return Zt.byteLength===0&&(Zt=new Float64Array(K.memory.buffer)),Zt}let Qt=new Int32Array;function ke(){return Qt.byteLength===0&&(Qt=new Int32Array(K.memory.buffer)),Qt}let Ze=0;const en=new TextEncoder("utf-8"),_l=typeof en.encodeInto=="function"?function(r,e){return en.encodeInto(r,e)}:function(r,e){const t=en.encode(r);return e.set(t),{read:r.length,written:t.length}};function Gt(r,e,t){if(t===void 0){const a=en.encode(r),l=e(a.length);return It().subarray(l,l+a.length).set(a),Ze=a.length,l}let n=r.length,i=e(n);const o=It();let s=0;for(;s127)break;o[i+s]=a}if(s!==n){s!==0&&(r=r.slice(s)),i=t(i,n,n=s+r.length*3);const a=It().subarray(i+s,i+n),l=_l(r,a);s+=l.written}return Ze=s,i}function Wn(r){const e=typeof r;if(e=="number"||e=="boolean"||r==null)return`${r}`;if(e=="string")return`"${r}"`;if(e=="symbol"){const i=r.description;return i==null?"Symbol":`Symbol(${i})`}if(e=="function"){const i=r.name;return typeof i=="string"&&i.length>0?`Function(${i})`:"Function"}if(Array.isArray(r)){const i=r.length;let o="[";i>0&&(o+=Wn(r[0]));for(let s=1;s1)n=t[1];else return toString.call(r);if(n=="Object")try{return"Object("+JSON.stringify(r)+")"}catch{return"Object"}return r instanceof Error?`${r.name}: ${r.message} +${r.stack}`:n}function ml(r,e){const t=e(r.length*1);return It().set(r,t/1),Ze=r.length,t}function Ln(r,e){try{return r.apply(this,e)}catch(t){K.__wbindgen_exn_store($e(t))}}class gn{static __wrap(e){const t=Object.create(gn.prototype);return t.ptr=e,t}__destroy_into_raw(){const e=this.ptr;return this.ptr=0,e}free(){const e=this.__destroy_into_raw();K.__wbg_jsroutesnapper_free(e)}constructor(e){try{const o=K.__wbindgen_add_to_stack_pointer(-16),s=ml(e,K.__wbindgen_malloc),a=Ze;K.jsroutesnapper_new(o,s,a);var t=ke()[o/4+0],n=ke()[o/4+1],i=ke()[o/4+2];if(i)throw Xn(n);return gn.__wrap(t)}finally{K.__wbindgen_add_to_stack_pointer(16)}}setConfig(e){K.jsroutesnapper_setConfig(this.ptr,$e(e))}getConfig(){try{const n=K.__wbindgen_add_to_stack_pointer(-16);K.jsroutesnapper_getConfig(n,this.ptr);var e=ke()[n/4+0],t=ke()[n/4+1];return at(e,t)}finally{K.__wbindgen_add_to_stack_pointer(16),K.__wbindgen_free(e,t)}}toFinalFeature(){try{const n=K.__wbindgen_add_to_stack_pointer(-16);K.jsroutesnapper_toFinalFeature(n,this.ptr);var e=ke()[n/4+0],t=ke()[n/4+1];let i;return e!==0&&(i=at(e,t).slice(),K.__wbindgen_free(e,t*1)),i}finally{K.__wbindgen_add_to_stack_pointer(16)}}renderGeojson(){try{const n=K.__wbindgen_add_to_stack_pointer(-16);K.jsroutesnapper_renderGeojson(n,this.ptr);var e=ke()[n/4+0],t=ke()[n/4+1];return at(e,t)}finally{K.__wbindgen_add_to_stack_pointer(16),K.__wbindgen_free(e,t)}}setSnapMode(e){K.jsroutesnapper_setSnapMode(this.ptr,e)}onMouseMove(e,t,n){return K.jsroutesnapper_onMouseMove(this.ptr,e,t,n)!==0}onClick(){K.jsroutesnapper_onClick(this.ptr)}onDragStart(){return K.jsroutesnapper_onDragStart(this.ptr)!==0}onMouseUp(){return K.jsroutesnapper_onMouseUp(this.ptr)!==0}clearState(){K.jsroutesnapper_clearState(this.ptr)}editExisting(e){try{const i=K.__wbindgen_add_to_stack_pointer(-16);K.jsroutesnapper_editExisting(i,this.ptr,$e(e));var t=ke()[i/4+0],n=ke()[i/4+1];if(n)throw Xn(t)}finally{K.__wbindgen_add_to_stack_pointer(16)}}}async function bl(r,e){if(typeof Response=="function"&&r instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(r,e)}catch(n){if(r.headers.get("Content-Type")!="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",n);else throw n}const t=await r.arrayBuffer();return await WebAssembly.instantiate(t,e)}else{const t=await WebAssembly.instantiate(r,e);return t instanceof WebAssembly.Instance?{instance:t,module:r}:t}}function yl(){const r={};return r.wbg={},r.wbg.__wbindgen_object_drop_ref=function(e){Xn(e)},r.wbg.__wbindgen_boolean_get=function(e){const t=Q(e);return typeof t=="boolean"?t?1:0:2},r.wbg.__wbindgen_error_new=function(e,t){const n=new Error(at(e,t));return $e(n)},r.wbg.__wbindgen_string_new=function(e,t){const n=at(e,t);return $e(n)},r.wbg.__wbindgen_is_object=function(e){const t=Q(e);return typeof t=="object"&&t!==null},r.wbg.__wbindgen_is_undefined=function(e){return Q(e)===void 0},r.wbg.__wbindgen_in=function(e,t){return Q(e)in Q(t)},r.wbg.__wbindgen_number_get=function(e,t){const n=Q(t),i=typeof n=="number"?n:void 0;gl()[e/8+1]=Cn(i)?0:i,ke()[e/4+0]=!Cn(i)},r.wbg.__wbindgen_jsval_loose_eq=function(e,t){return Q(e)==Q(t)},r.wbg.__wbindgen_string_get=function(e,t){const n=Q(t),i=typeof n=="string"?n:void 0;var o=Cn(i)?0:Gt(i,K.__wbindgen_malloc,K.__wbindgen_realloc),s=Ze;ke()[e/4+1]=s,ke()[e/4+0]=o},r.wbg.__wbg_String_91fba7ded13ba54c=function(e,t){const n=String(Q(t)),i=Gt(n,K.__wbindgen_malloc,K.__wbindgen_realloc),o=Ze;ke()[e/4+1]=o,ke()[e/4+0]=i},r.wbg.__wbindgen_object_clone_ref=function(e){const t=Q(e);return $e(t)},r.wbg.__wbg_getwithrefkey_15c62c2b8546208d=function(e,t){const n=Q(e)[Q(t)];return $e(n)},r.wbg.__wbg_debug_f15cb542ea509609=function(e){console.debug(Q(e))},r.wbg.__wbg_error_ef9a0be47931175f=function(e){console.error(Q(e))},r.wbg.__wbg_info_2874fdd5393f35ce=function(e){console.info(Q(e))},r.wbg.__wbg_log_4b5638ad60bdc54a=function(e){console.log(Q(e))},r.wbg.__wbg_warn_58110c4a199df084=function(e){console.warn(Q(e))},r.wbg.__wbg_get_57245cc7d7c7619d=function(e,t){const n=Q(e)[t>>>0];return $e(n)},r.wbg.__wbg_length_6e3bbe7c8bd4dbd8=function(e){return Q(e).length},r.wbg.__wbindgen_is_function=function(e){return typeof Q(e)=="function"},r.wbg.__wbg_next_579e583d33566a86=function(e){const t=Q(e).next;return $e(t)},r.wbg.__wbg_next_aaef7c8aa5e212ac=function(){return Ln(function(e){const t=Q(e).next();return $e(t)},arguments)},r.wbg.__wbg_done_1b73b0672e15f234=function(e){return Q(e).done},r.wbg.__wbg_value_1ccc36bc03462d71=function(e){const t=Q(e).value;return $e(t)},r.wbg.__wbg_iterator_6f9d4f28845f426c=function(){return $e(Symbol.iterator)},r.wbg.__wbg_get_765201544a2b6869=function(){return Ln(function(e,t){const n=Reflect.get(Q(e),Q(t));return $e(n)},arguments)},r.wbg.__wbg_call_97ae9d8645dc388b=function(){return Ln(function(e,t){const n=Q(e).call(Q(t));return $e(n)},arguments)},r.wbg.__wbg_isArray_27c46c67f498e15d=function(e){return Array.isArray(Q(e))},r.wbg.__wbg_instanceof_ArrayBuffer_e5e48f4762c5610b=function(e){let t;try{t=Q(e)instanceof ArrayBuffer}catch{t=!1}return t},r.wbg.__wbg_buffer_3f3d764d4747d564=function(e){const t=Q(e).buffer;return $e(t)},r.wbg.__wbg_new_8c3f0052272a457a=function(e){const t=new Uint8Array(Q(e));return $e(t)},r.wbg.__wbg_set_83db9690f9353e79=function(e,t,n){Q(e).set(Q(t),n>>>0)},r.wbg.__wbg_length_9e1ae1900cb0fbd5=function(e){return Q(e).length},r.wbg.__wbg_instanceof_Uint8Array_971eeda69eb75003=function(e){let t;try{t=Q(e)instanceof Uint8Array}catch{t=!1}return t},r.wbg.__wbg_new_abda76e883ba8a5f=function(){const e=new Error;return $e(e)},r.wbg.__wbg_stack_658279fe44541cf6=function(e,t){const n=Q(t).stack,i=Gt(n,K.__wbindgen_malloc,K.__wbindgen_realloc),o=Ze;ke()[e/4+1]=o,ke()[e/4+0]=i},r.wbg.__wbg_error_f851667af71bcfc6=function(e,t){try{console.error(at(e,t))}finally{K.__wbindgen_free(e,t)}},r.wbg.__wbindgen_debug_string=function(e,t){const n=Wn(Q(t)),i=Gt(n,K.__wbindgen_malloc,K.__wbindgen_realloc),o=Ze;ke()[e/4+1]=o,ke()[e/4+0]=i},r.wbg.__wbindgen_throw=function(e,t){throw new Error(at(e,t))},r.wbg.__wbindgen_memory=function(){const e=K.memory;return $e(e)},r}function vl(r,e){return K=r.exports,zi.__wbindgen_wasm_module=e,Zt=new Float64Array,Qt=new Int32Array,Kt=new Uint8Array,K}async function zi(r){typeof r>"u"&&(r="/atip/capitalize_auto_form/assets/route_snapper_bg.wasm");const e=yl();(typeof r=="string"||typeof Request=="function"&&r instanceof Request||typeof URL=="function"&&r instanceof URL)&&(r=fetch(r));const{instance:t,module:n}=await bl(await r,e);return vl(t,n)}const Et="route-snapper",Pr=10,wl=30;class kl{constructor(e,t,n){J(this,"map");J(this,"inner");J(this,"active");J(this,"eventListenersSuccess");J(this,"eventListenersUpdated");J(this,"eventListenersFailure");J(this,"onMouseMove",e=>{if(!this.active)return;const t=[e.point.x-wl,e.point.y],n=this.map.unproject(e.point).distanceTo(this.map.unproject(t));this.inner.onMouseMove(e.lngLat.lng,e.lngLat.lat,n)&&(this.redraw(),this.dataUpdated())});J(this,"onClick",()=>{this.active&&(this.inner.onClick(),this.redraw(),this.dataUpdated())});J(this,"onDoubleClick",e=>{this.active&&(e.preventDefault(),this.inner.onClick(),this.finish())});J(this,"onDragStart",()=>{this.active&&this.inner.onDragStart()&&this.map.dragPan.disable()});J(this,"onMouseUp",()=>{this.active&&this.inner.onMouseUp()&&this.map.dragPan.enable()});J(this,"onKeyPress",e=>{this.active&&e.key=="Enter"&&(e.preventDefault(),this.finish())});J(this,"onKeyDown",e=>{this.active&&(e.key=="Shift"?(e.preventDefault(),this.inner.setSnapMode(!1),this.redraw()):e.key=="Escape"&&(e.preventDefault(),this.cancel()))});J(this,"onKeyUp",e=>{this.active&&e.key=="Shift"&&(e.preventDefault(),this.inner.setSnapMode(!0),this.redraw())});J(this,"setHandlers",e=>{e.mapHandlers.mousemove=this.onMouseMove,e.mapHandlers.click=this.onClick,e.mapHandlers.dblclick=this.onDoubleClick,e.mapHandlers.dragstart=this.onDragStart,e.mapHandlers.mouseup=this.onMouseUp,e.documentHandlers.keypress=this.onKeyPress,e.documentHandlers.keydown=this.onKeyDown,e.documentHandlers.keyup=this.onKeyUp});this.map=e,console.time("Deserialize and setup JsRouteSnapper"),this.inner=new gn(t),console.timeEnd("Deserialize and setup JsRouteSnapper"),this.active=!1,this.eventListenersSuccess=[],this.eventListenersUpdated=[],this.eventListenersFailure=[],ft(e,Et,nt()),bn(e,{id:"route-points",source:Et,filter:ir,color:["match",["get","type"],"hovered","green","important","red","black"],radius:["match",["get","type"],"unimportant",Pr/2,Pr]}),Bt(e,{id:"route-lines",source:Et,filter:rr,color:"black",width:2.5}),tr(e,{id:"route-polygons",source:Et,filter:nr,color:"black",opacity:.5}),n()}startRoute(){this.active||(this.setActivity(!0),this.map.boxZoom.disable(),this.map.doubleClickZoom.disable())}startArea(){this.active||(this.inner.setConfig({avoid_doubling_back:!0,area_mode:!0,extend_route:!0}),this.setActivity(!0),this.map.boxZoom.disable(),this.map.doubleClickZoom.disable())}setActivity(e){this.active=e,zt.set(e)}stop(){this.setActivity(!1),this.inner.clearState(),this.redraw(),this.map.boxZoom.enable(),this.map.doubleClickZoom.enable()}editExistingRoute(e){this.active&&window.alert("Bug: editExistingRoute called when tool is already active"),e.properties.waypoints||(e.properties.waypoints=[{lon:e.geometry.coordinates[0][0],lat:e.geometry.coordinates[0][1],snapped:!0},{lon:e.geometry.coordinates[e.geometry.coordinates.length-1][0],lat:e.geometry.coordinates[e.geometry.coordinates.length-1][1],snapped:!0}]),this.startRoute(),this.inner.editExisting(e.properties.waypoints),this.redraw()}editExistingArea(e){this.active&&window.alert("Bug: editExistingArea called when tool is already active"),e.properties.waypoints||window.alert("Bug: editExistingArea called for a polygon not produced by the route-snapper"),this.startArea(),this.inner.editExisting(e.properties.waypoints),this.redraw()}tearDown(){this.map.removeLayer("route-points"),this.map.removeLayer("route-lines"),this.map.removeLayer("route-polygons"),this.map.removeSource("route-snapper")}addEventListenerSuccess(e){this.eventListenersSuccess.push(e)}addEventListenerUpdated(e){this.eventListenersUpdated.push(e)}addEventListenerFailure(e){this.eventListenersFailure.push(e)}isActive(){return this.active}finish(){let e=this.inner.toFinalFeature();if(e)for(let t of this.eventListenersSuccess)t(JSON.parse(e));else for(let t of this.eventListenersFailure)t();this.stop()}cancel(){this.inner.clearState(),this.finish()}setRouteConfig(e){this.inner.setConfig({...e,area_mode:!1}),this.redraw()}redraw(){this.map.getSource(Et).setData(JSON.parse(this.inner.renderGeojson()))}dataUpdated(){let e=this.inner.toFinalFeature();if(e)for(let t of this.eventListenersUpdated)t(JSON.parse(e))}}function Sl(r){let e;return{c(){e=$("ul"),e.innerHTML="
  • Click green points on the transport network to create snapped routes
  • Hold Shift to draw a point anywhere
  • Click and drag any point to move it
  • Click a red waypoint to delete it
  • Press Enter or double click to finish
  • Press Escape to cancel
  • "},m(t,n){k(t,e,n)},p:G,d(t){t&&S(e)}}}function El(r){let e,t,n,i,o,s,a,l,u,f,c,p,g,v,y,_,h,d,b;return e=new vt({props:{label:"Help",$$slots:{default:[Sl]},$$scope:{ctx:r}}}),{c(){F(e.$$.fragment),t=A(),n=$("label"),i=$("input"),o=U(` Add points to end`),s=A(),a=$("br"),l=A(),u=$("label"),f=$("input"),c=U(` - Avoid doubling back`),p=A(),g=$("div"),v=$("button"),v.textContent="Finish",y=A(),_=$("button"),_.textContent="Cancel",x(i,"type","checkbox"),x(n,"title","Keep clicking to add more points to the end of the route"),x(f,"type","checkbox"),x(u,"title","Try to make the route avoid using the same streets with multiple waypoints"),x(v,"type","button"),x(_,"type","button"),Ae(g,"display","flex"),Ae(g,"justify-content","space-between")},m(m,w){P(e,m,w),k(m,t,w),k(m,n,w),E(n,i),i.checked=r[0],E(n,o),k(m,s,w),k(m,a,w),k(m,l,w),k(m,u,w),E(u,f),f.checked=r[2].avoidDoublingBack,E(u,c),k(m,p,w),k(m,g,w),E(g,v),E(g,y),E(g,_),h=!0,d||(b=[Y(i,"change",r[3]),Y(f,"change",r[4]),Y(v,"click",r[5]),Y(_,"click",r[6])],d=!0)},p(m,[w]){const L={};w&128&&(L.$$scope={dirty:w,ctx:m}),e.$set(L),w&1&&(i.checked=m[0]),w&4&&(f.checked=m[2].avoidDoublingBack)},i(m){h||(M(e.$$.fragment,m),h=!0)},o(m){C(e.$$.fragment,m),h=!1},d(m){m&&(S(t),S(n),S(s),S(a),S(l),S(u),S(p),S(g)),N(e,m),d=!1,Ie(b)}}}function Ml(r,e,t){let n;W(r,At,f=>t(2,n=f));let{routeTool:i}=e,{extendRoute:o}=e;function s(){o=this.checked,t(0,o)}function a(){n.avoidDoublingBack=this.checked,At.set(n)}const l=()=>i.finish(),u=()=>i.cancel();return r.$$set=f=>{"routeTool"in f&&t(1,i=f.routeTool),"extendRoute"in f&&t(0,o=f.extendRoute)},r.$$.update=()=>{r.$$.dirty&7&&i.setRouteConfig({avoid_doubling_back:n.avoidDoublingBack,extend_route:o})},[o,i,n,s,a,l,u]}class qi extends ee{constructor(e){super(),te(this,e,Ml,El,ne,{routeTool:1,extendRoute:0})}}function $l(r){let e;return{c(){e=$("ul"),e.innerHTML="
  • Click green points on the transport network to create snapped routes
  • Click and drag any point to move it
  • Click a red waypoint to delete it
  • Press Enter or double click to finish
  • Press Escape to cancel
  • "},m(t,n){k(t,e,n)},p:G,d(t){t&&S(e)}}}function Cl(r){let e,t,n,i,o,s,a,l,u;return e=new yt({props:{label:"Help",$$slots:{default:[$l]},$$scope:{ctx:r}}}),{c(){F(e.$$.fragment),t=A(),n=$("div"),i=$("button"),i.textContent="Finish",o=A(),s=$("button"),s.textContent="Cancel",x(i,"type","button"),x(s,"type","button"),Ae(n,"display","flex"),Ae(n,"justify-content","space-between")},m(f,c){P(e,f,c),k(f,t,c),k(f,n,c),E(n,i),E(n,o),E(n,s),a=!0,l||(u=[Y(i,"click",r[1]),Y(s,"click",r[2])],l=!0)},p(f,[c]){const p={};c&8&&(p.$$scope={dirty:c,ctx:f}),e.$set(p)},i(f){a||(M(e.$$.fragment,f),a=!0)},o(f){C(e.$$.fragment,f),a=!1},d(f){f&&(S(t),S(n)),N(e,f),l=!1,Ie(u)}}}function Ll(r,e,t){let{routeTool:n}=e;const i=()=>n.finish(),o=()=>n.cancel();return r.$$set=s=>{"routeTool"in s&&t(0,n=s.routeTool)},[n,i,o]}class Gi extends ee{constructor(e){super(),te(this,e,Ll,Cl,ne,{routeTool:0})}}function Pr(r){let e,t,n,i;const o=[xl,Rl,Ol,Al,Tl],s=[];function a(l,u){return l[4]=="point"?0:l[4]=="free-polygon"?1:l[4]=="snap-polygon"?2:l[4]=="route"?3:4}return e=a(r),t=s[e]=o[e](r),{c(){t.c(),n=be()},m(l,u){s[e].m(l,u),k(l,n,u),i=!0},p(l,u){let f=e;e=a(l),e===f?s[e].p(l,u):(pe(),C(s[f],1,1,()=>{s[f]=null}),de(),t=s[e],t?t.p(l,u):(t=s[e]=o[e](l),t.c()),M(t,1),t.m(n.parentNode,n))},i(l){i||(M(t),i=!0)},o(l){C(t),i=!1},d(l){l&&S(n),s[e].d(l)}}}function Tl(r){let e,t,n=bt(r[0])+"",i,o;return{c(){e=$("p"),t=U("Click "),i=U(n),o=U(" to edit its geometry")},m(s,a){k(s,e,a),E(e,t),E(e,i),E(e,o)},p(s,a){a&1&&n!==(n=bt(s[0])+"")&&Le(i,n)},i:G,o:G,d(s){s&&S(e)}}}function Al(r){let e,t;return e=new qi({props:{routeTool:r[3],extendRoute:!1}}),{c(){F(e.$$.fragment)},m(n,i){P(e,n,i),t=!0},p(n,i){const o={};i&8&&(o.routeTool=n[3]),e.$set(o)},i(n){t||(M(e.$$.fragment,n),t=!0)},o(n){C(e.$$.fragment,n),t=!1},d(n){N(e,n)}}}function Ol(r){let e,t;return e=new Gi({props:{routeTool:r[3]}}),{c(){F(e.$$.fragment)},m(n,i){P(e,n,i),t=!0},p(n,i){const o={};i&8&&(o.routeTool=n[3]),e.$set(o)},i(n){t||(M(e.$$.fragment,n),t=!0)},o(n){C(e.$$.fragment,n),t=!1},d(n){N(e,n)}}}function Rl(r){let e,t;return e=new ji({props:{polygonTool:r[2]}}),{c(){F(e.$$.fragment)},m(n,i){P(e,n,i),t=!0},p(n,i){const o={};i&4&&(o.polygonTool=n[2]),e.$set(o)},i(n){t||(M(e.$$.fragment,n),t=!0)},o(n){C(e.$$.fragment,n),t=!1},d(n){N(e,n)}}}function xl(r){let e,t;return e=new Ii({props:{pointTool:r[1],editingExisting:!0}}),{c(){F(e.$$.fragment)},m(n,i){P(e,n,i),t=!0},p(n,i){const o={};i&2&&(o.pointTool=n[1]),e.$set(o)},i(n){t||(M(e.$$.fragment,n),t=!0)},o(n){C(e.$$.fragment,n),t=!1},d(n){N(e,n)}}}function Il(r){let e,t,n=r[5]==It&&Pr(r);return{c(){n&&n.c(),e=be()},m(i,o){n&&n.m(i,o),k(i,e,o),t=!0},p(i,[o]){i[5]==It?n?(n.p(i,o),o&32&&M(n,1)):(n=Pr(i),n.c(),M(n,1),n.m(e.parentNode,e)):n&&(pe(),C(n,1,1,()=>{n=null}),de())},i(i){t||(M(n),t=!0)},o(i){C(n),t=!1},d(i){i&&S(e),n&&n.d(i)}}}const It="edit-geometry";function Yi(){}function Nr(r,e){r.geometry=e.geometry,e.properties.length_meters&&(r.properties.length_meters=e.properties.length_meters),e.properties.waypoints&&(r.properties.waypoints=e.properties.waypoints)}function Fl(r,e,t){let n,i;W(r,Ue,_=>t(11,n=_)),W(r,Ce,_=>t(5,i=_));let{schema:o}=e,{pointTool:s}=e,{polygonTool:a}=e,{routeTool:l}=e,{eventHandler:u}=e,f=null,c=null,p=null;function g(){f&&(s.stop(),a.stop(),l.stop(),ce.update(_=>{let h=_.features.find(d=>d.id==f);return h?(delete h.properties.hide_while_editing,p&&Nr(h,p),_):(window.alert("You loaded another file or cleared everything while editing. Your changes were lost."),_)})),y(),Ge.set(null)}for(let _ of[s,a,l])_.addEventListenerSuccess(h=>{i==It&&(ce.update(d=>{let b=d.features.find(m=>m.id==f);return b?(Nr(b,h),delete b.properties.hide_while_editing,d):(window.alert("You loaded another file or cleared everything while editing. Your changes were lost."),d)}),y())});for(let _ of[a,l])_.addEventListenerUpdated(h=>{i==It&&(p=h)});for(let _ of[s,a,l])_.addEventListenerFailure(()=>{i==It&&(ce.update(h=>{let d=h.features.find(b=>b.id==f);return d?(delete d.properties.hide_while_editing,h):(window.alert("You loaded another file or cleared everything while editing. Your changes were lost."),h)}),y())});u.mapHandlers.mousemove=_=>{var h;if(l.onMouseMove(_),s.onMouseMove(_),a.onMouseMove(_),f==null){let d=n.queryRenderedFeatures(_.point,{layers:["interventions-points","interventions-lines","interventions-polygons"]});Ge.set(((h=d[0])==null?void 0:h.id)||null)}},u.mapHandlers.mouseout=()=>{f==null&&Ge.set(null)},u.mapHandlers.click=_=>{if(l.onClick(),s.onClick(),a.onClick(_),f==null){let h=n.queryRenderedFeatures(_.point,{layers:["interventions-points","interventions-lines","interventions-polygons"]});h.length>0&&v(h[0].id)}},u.mapHandlers.mousedown=_=>{a.onMouseDown(_)},u.mapHandlers.dblclick=_=>{l.onDoubleClick(_),a.onDoubleClick(_)},u.mapHandlers.dragstart=()=>{l.onDragStart()},u.mapHandlers.mouseup=()=>{l.onMouseUp(),a.onMouseUp()},u.documentHandlers.keypress=_=>{l.onKeyPress(_),a.onKeypress(_)},u.documentHandlers.keydown=_=>{s.onKeyDown(_),a.onKeyDown(_),l.onKeyDown(_)},u.documentHandlers.keyup=_=>{l.onKeyUp(_)};function v(_){Ge.set(null);let h=null;ce.update(b=>(h=b.features.find(m=>m.id==_),h.properties.hide_while_editing=!0,b));let d=h;f=_,d.geometry.type=="LineString"?(l.editExistingRoute(d),t(4,c="route")):d.geometry.type=="Polygon"?d.properties.waypoints?(l.editExistingArea(d),t(4,c="snap-polygon")):(a.editExisting(d),t(4,c="free-polygon")):d.geometry.type=="Point"&&(s.start(),t(4,c="point"))}function y(){f=null,t(4,c=null),p=null}return r.$$set=_=>{"schema"in _&&t(0,o=_.schema),"pointTool"in _&&t(1,s=_.pointTool),"polygonTool"in _&&t(2,a=_.polygonTool),"routeTool"in _&&t(3,l=_.routeTool),"eventHandler"in _&&t(6,u=_.eventHandler)},[o,s,a,l,c,i,u,Yi,g]}class Pl extends ee{constructor(e){super(),te(this,e,Fl,Il,ne,{schema:0,pointTool:1,polygonTool:2,routeTool:3,eventHandler:6,start:7,stop:8})}get start(){return Yi}get stop(){return this.$$.ctx[8]}}function Br(r){let e,t;return e=new Ii({props:{pointTool:r[0],editingExisting:!1}}),{c(){F(e.$$.fragment)},m(n,i){P(e,n,i),t=!0},p(n,i){const o={};i&1&&(o.pointTool=n[0]),e.$set(o)},i(n){t||(M(e.$$.fragment,n),t=!0)},o(n){C(e.$$.fragment,n),t=!1},d(n){N(e,n)}}}function Nl(r){let e,t,n=r[1]==gn&&Br(r);return{c(){n&&n.c(),e=be()},m(i,o){n&&n.m(i,o),k(i,e,o),t=!0},p(i,[o]){i[1]==gn?n?(n.p(i,o),o&2&&M(n,1)):(n=Br(i),n.c(),M(n,1),n.m(e.parentNode,e)):n&&(pe(),C(n,1,1,()=>{n=null}),de())},i(i){t||(M(n),t=!0)},o(i){C(n),t=!1},d(i){i&&S(e),n&&n.d(i)}}}const gn="point";function Bl(r,e,t){let n;W(r,Ce,u=>t(1,n=u));let{changeMode:i}=e,{pointTool:o}=e,{eventHandler:s}=e;function a(){o.setHandlers(s),o.start()}function l(){o.stop()}return o.addEventListenerSuccess(u=>{n==gn&&(ce.update(f=>(u.id=wn(f),u.properties.intervention_type="other",f.features.push(u),f)),i("edit-attribute"),xe.set(u.id))}),o.addEventListenerFailure(()=>{n==gn&&i("edit-attribute")}),r.$$set=u=>{"changeMode"in u&&t(2,i=u.changeMode),"pointTool"in u&&t(0,o=u.pointTool),"eventHandler"in u&&t(3,s=u.eventHandler)},[o,n,i,s,a,l]}class Dl extends ee{constructor(e){super(),te(this,e,Bl,Nl,ne,{changeMode:2,pointTool:0,eventHandler:3,start:4,stop:5})}get start(){return this.$$.ctx[4]}get stop(){return this.$$.ctx[5]}}function fr(r,e,t,n,i){r.addEventListenerSuccess(o=>{st(Ce)==n&&(ce.update(s=>(o.id=wn(s),o.properties.intervention_type=t,s.features.push(o),s)),e.value=null,i("edit-attribute"),xe.set(o.id))}),r.addEventListenerUpdated(o=>{st(Ce)==n&&(e.value=o)}),r.addEventListenerFailure(()=>{st(Ce)==n&&(e.value=null,i("edit-attribute"))})}function cr(r,e){r.value&&(ce.update(t=>{let n=r.value;return n.id=wn(t),n.properties.intervention_type=e,t.features.push(n),t}),r.value=null)}function Dr(r){let e,t;return e=new ji({props:{polygonTool:r[0]}}),{c(){F(e.$$.fragment)},m(n,i){P(e,n,i),t=!0},p(n,i){const o={};i&1&&(o.polygonTool=n[0]),e.$set(o)},i(n){t||(M(e.$$.fragment,n),t=!0)},o(n){C(e.$$.fragment,n),t=!1},d(n){N(e,n)}}}function Hl(r){let e,t,n=r[1]==Wn&&Dr(r);return{c(){n&&n.c(),e=be()},m(i,o){n&&n.m(i,o),k(i,e,o),t=!0},p(i,[o]){i[1]==Wn?n?(n.p(i,o),o&2&&M(n,1)):(n=Dr(i),n.c(),M(n,1),n.m(e.parentNode,e)):n&&(pe(),C(n,1,1,()=>{n=null}),de())},i(i){t||(M(n),t=!0)},o(i){C(n),t=!1},d(i){i&&S(e),n&&n.d(i)}}}const Wn="free-polygon";function jl(r,e,t){let n;W(r,Ce,f=>t(1,n=f));let{changeMode:i}=e,{polygonTool:o}=e,{eventHandler:s}=e,a={value:null};function l(){o.setHandlers(s),o.startNew()}function u(){o.stop(),cr(a,"area")}return fr(o,a,"area",Wn,i),r.$$set=f=>{"changeMode"in f&&t(2,i=f.changeMode),"polygonTool"in f&&t(0,o=f.polygonTool),"eventHandler"in f&&t(3,s=f.eventHandler)},[o,n,i,s,l,u]}class Ul extends ee{constructor(e){super(),te(this,e,jl,Hl,ne,{changeMode:2,polygonTool:0,eventHandler:3,start:4,stop:5})}get start(){return this.$$.ctx[4]}get stop(){return this.$$.ctx[5]}}function zl(r){let e,t;return e=new qi({props:{routeTool:r[0],extendRoute:!0}}),{c(){F(e.$$.fragment)},m(n,i){P(e,n,i),t=!0},p(n,i){const o={};i&1&&(o.routeTool=n[0]),e.$set(o)},i(n){t||(M(e.$$.fragment,n),t=!0)},o(n){C(e.$$.fragment,n),t=!1},d(n){N(e,n)}}}function ql(r){let e;return{c(){e=$("p"),e.textContent="Failed to load"},m(t,n){k(t,e,n)},p:G,i:G,o:G,d(t){t&&S(e)}}}function Gl(r){let e,t,n;return{c(){e=$("label"),e.textContent="Route data unpacking",t=A(),n=$("progress"),x(e,"for","route-unpacking"),x(n,"id","route-unpacking"),x(n,"class","svelte-q3473n")},m(i,o){k(i,e,o),k(i,t,o),k(i,n,o)},p:G,i:G,o:G,d(i){i&&(S(e),S(t),S(n))}}}function Yl(r){let e,t,n;return{c(){e=$("label"),e.textContent="Route tool loading",t=A(),n=$("progress"),x(e,"for","route-loading"),x(n,"id","route-loading"),n.value=r[1],x(n,"class","svelte-q3473n")},m(i,o){k(i,e,o),k(i,t,o),k(i,n,o)},p(i,o){o&2&&(n.value=i[1])},i:G,o:G,d(i){i&&(S(e),S(t),S(n))}}}function Jl(r){let e,t,n,i;const o=[Yl,Gl,ql,zl],s=[];function a(l,u){return!l[2]&&!l[3]&&!l[4]?0:l[4]&&!l[2]&&!l[3]?1:l[3]?2:l[5]==Ji?3:-1}return~(e=a(r))&&(t=s[e]=o[e](r)),{c(){t&&t.c(),n=be()},m(l,u){~e&&s[e].m(l,u),k(l,n,u),i=!0},p(l,[u]){let f=e;e=a(l),e===f?~e&&s[e].p(l,u):(t&&(pe(),C(s[f],1,1,()=>{s[f]=null}),de()),~e?(t=s[e],t?t.p(l,u):(t=s[e]=o[e](l),t.c()),M(t,1),t.m(n.parentNode,n)):t=null)},i(l){i||(M(t),i=!0)},o(l){C(t),i=!1},d(l){l&&S(n),~e&&s[e].d(l)}}}const Ji="route";async function Xl(r,e){const t=await fetch(r),n=t.body.getReader(),i=parseInt(t.headers.get("Content-Length"));let o=0,s=[];for(;;){const{done:u,value:f}=await n.read();if(u)break;s.push(f),o+=f.length;const c=100*o/i;e(c)}let a=new Uint8Array(o),l=0;for(let u of s)a.set(u,l),l+=u.length;return a}function Wl(r,e,t){let n,i,o;W(r,Ue,h=>t(11,i=h)),W(r,Ce,h=>t(5,o=h));let{changeMode:s}=e,{url:a}=e,{routeTool:l}=e,{eventHandler:u}=e,f=0,c=!1,p=!1,g={value:null};function v(){l.isActive()||(l.setHandlers(u),l.startRoute())}function y(){l==null||l.stop(),cr(g,"route")}Ht(async()=>{await zi(),console.log(`Grabbing ${a}`);try{const h=await Xl(a,d=>t(1,f=d));t(0,l=new kl(i,h,_))}catch(h){console.log(`Route tool broke: ${h}`),t(3,p=!0);return}fr(l,g,"route",Ji,s)});function _(){t(1,f=100),t(2,c=!0)}return r.$$set=h=>{"changeMode"in h&&t(6,s=h.changeMode),"url"in h&&t(7,a=h.url),"routeTool"in h&&t(0,l=h.routeTool),"eventHandler"in h&&t(8,u=h.eventHandler)},r.$$.update=()=>{r.$$.dirty&2&&t(4,n=f>=100)},[l,f,c,p,n,o,s,a,u,v,y]}class Vl extends ee{constructor(e){super(),te(this,e,Wl,Jl,ne,{changeMode:6,url:7,routeTool:0,eventHandler:8,start:9,stop:10})}get start(){return this.$$.ctx[9]}get stop(){return this.$$.ctx[10]}}function en(r,e){return e===void 0&&(e={}),Mo(r,function(t,n){var i=n.geometry.coordinates;return t+We(i[0],i[1],e)},0)}function Kl(r,e,t){var n=je(t);if(Gn(t)!=="LineString")throw new Error("line must be a LineString");var i=Dt(t,r),o=Dt(t,e),s;i.properties.index<=o.properties.index?s=[i,o]:s=[o,i];for(var a=[s[0].geometry.coordinates],l=s[0].properties.index+1;l=s){var a=(t+i)/2;return[e,a-(n-e)/2,n,a+(n-e)/2]}else{var l=(e+n)/2;return[l-(i-t)/2,t,l+(i-t)/2,i]}}function Ql(r,e){e===void 0&&(e={});var t=e.precision,n=e.coordinates,i=e.mutate;if(t=t==null||isNaN(t)?6:t,n=n==null||isNaN(n)?3:n,!r)throw new Error(" is required");if(typeof t!="number")throw new Error(" must be a number");if(typeof n!="number")throw new Error(" must be a number");(i===!1||i===void 0)&&(r=JSON.parse(JSON.stringify(r)));var o=Math.pow(10,t);return $o(r,function(s){ea(s,o,n)}),r}function ea(r,e,t){r.length>t&&r.splice(t,r.length);for(var n=0;n1&&t.push(mt(f)),et(t)}function Xi(r,e){if(!e.features.length)throw new Error("lines must contain features");if(e.features.length===1)return e.features[0];var t,n=1/0;return nn(e,function(i){var o=Dt(i,r),s=o.properties.dist;sClick on a route to split it
  • Click on the map or press Escape to cancel
  • "},m(t,n){k(t,e,n)},p:G,d(t){t&&S(e)}}}function ra(r){let e,t,n=r[0]==Ur&&jr(r);return{c(){n&&n.c(),e=be()},m(i,o){n&&n.m(i,o),k(i,e,o),t=!0},p(i,[o]){i[0]==Ur?n?o&1&&M(n,1):(n=jr(i),n.c(),M(n,1),n.m(e.parentNode,e)):n&&(pe(),C(n,1,1,()=>{n=null}),de())},i(i){t||(M(n),t=!0)},o(i){C(n),t=!1},d(i){i&&S(e),n&&n.d(i)}}}const Ur="split-route",ia=10,oa=30;let Tn="split-route";function sa(r,e,t){let n,i,o;W(r,ce,y=>t(8,n=y)),W(r,Ue,y=>t(6,i=y)),W(r,Ce,y=>t(0,o=y));let{changeMode:s}=e,{eventHandler:a}=e;function l(){i.getCanvas().style.cursor=`url(${Ri}), crosshair`}function u(){i.getCanvas().style.cursor="inherit",t(5,f=null),c=null}let f=null,c=null;ut(i,Tn,nt()),mn(i,{id:"draw-split-route",source:Tn,color:"black",radius:ia}),a.mapHandlers.mousemove=y=>{t(5,f=null),c=null;let _=p(y.lngLat.toArray());const h=[y.point.x-oa,y.point.y],d=i.unproject(y.point).distanceTo(i.unproject(h))/1e3;let b=[];for(let[m,w]of n.features.entries())if(w.geometry.type=="LineString"){let L=Dt(w.geometry,_,{units:"kilometers"});L.properties.dist!=null&&L.properties.dist<=d&&b.push([m,L.geometry.coordinates,L.properties.dist])}b.sort((m,w)=>m[2]-w[2]),b.length>0&&(t(5,f=p(b[0][1])),c=b[0][0])},a.mapHandlers.click=()=>{if(c==null)s("edit-attribute");else{let y=ta(n.features[c],f);if(y.features.length==2){let _=y.features[0],h=y.features[1];_.geometry.coordinates=_.geometry.coordinates.map(Yt),h.geometry.coordinates=h.geometry.coordinates.map(Yt),ce.update(d=>(_.id=d.features[c].id,h.id=wn(d),_.properties=JSON.parse(JSON.stringify(d.features[c].properties)),h.properties=JSON.parse(JSON.stringify(_.properties)),g(d.features[c],_,h,f),d.features.splice(c,1,_,h),d))}t(5,f=null),c=null}},a.documentHandlers.keydown=y=>{y.key=="Escape"&&(s("edit-attribute"),y.preventDefault())};function p(y){return{type:"Feature",properties:{},geometry:{type:"Point",coordinates:Yt(y)}}}function g(y,_,h,d){_.properties.length_meters=en(_,{units:"kilometers"})*1e3,h.properties.length_meters=en(h,{units:"kilometers"})*1e3,_.properties.waypoints=[],h.properties.waypoints=[];let b=v(y,d),m=!0,w=0;for(let L of y.properties.waypoints){let O=v(y,_t([L.lon,L.lat]));if(m)if(O{"changeMode"in y&&t(2,s=y.changeMode),"eventHandler"in y&&t(1,a=y.eventHandler)},r.$$.update=()=>{if(r.$$.dirty&96){let y=nt();f&&y.features.push(f),i.getSource(Tn).setData(y)}},[o,a,s,l,u,f,i]}class la extends ee{constructor(e){super(),te(this,e,sa,ra,ne,{changeMode:2,eventHandler:1,start:3,stop:4})}get start(){return this.$$.ctx[3]}get stop(){return this.$$.ctx[4]}}function aa(r){let e,t,n,i,o,s,a,l;return{c(){e=$("button"),t=$("img"),i=A(),o=U(r[1]),In(t.src,n=r[2])||x(t,"src",n),x(t,"alt",r[1]),x(t,"class","svelte-1vvpkg9"),x(e,"type","button"),e.disabled=s=r[4]==r[0],x(e,"class","svelte-1vvpkg9")},m(u,f){k(u,e,f),E(e,t),E(e,i),E(e,o),a||(l=Y(e,"click",r[5]),a=!0)},p(u,[f]){f&4&&!In(t.src,n=u[2])&&x(t,"src",n),f&2&&x(t,"alt",u[1]),f&2&&Le(o,u[1]),f&17&&s!==(s=u[4]==u[0])&&(e.disabled=s)},i:G,o:G,d(u){u&&S(e),a=!1,l()}}}function ua(r,e,t){let n;W(r,Ce,u=>t(4,n=u));let{thisMode:i}=e,{label:o}=e,{icon:s}=e,{changeMode:a}=e;const l=()=>a(i);return r.$$set=u=>{"thisMode"in u&&t(0,i=u.thisMode),"label"in u&&t(1,o=u.label),"icon"in u&&t(2,s=u.icon),"changeMode"in u&&t(3,a=u.changeMode)},[i,o,s,a,n,l]}class Ve extends ee{constructor(e){super(),te(this,e,ua,aa,ne,{thisMode:0,label:1,icon:2,changeMode:3})}}function zr(r){let e,t;return e=new Gi({props:{routeTool:r[0]}}),{c(){F(e.$$.fragment)},m(n,i){P(e,n,i),t=!0},p(n,i){const o={};i&1&&(o.routeTool=n[0]),e.$set(o)},i(n){t||(M(e.$$.fragment,n),t=!0)},o(n){C(e.$$.fragment,n),t=!1},d(n){N(e,n)}}}function fa(r){let e,t,n=r[1]==Kn&&zr(r);return{c(){n&&n.c(),e=be()},m(i,o){n&&n.m(i,o),k(i,e,o),t=!0},p(i,[o]){i[1]==Kn?n?(n.p(i,o),o&2&&M(n,1)):(n=zr(i),n.c(),M(n,1),n.m(e.parentNode,e)):n&&(pe(),C(n,1,1,()=>{n=null}),de())},i(i){t||(M(n),t=!0)},o(i){C(n),t=!1},d(i){i&&S(e),n&&n.d(i)}}}const Kn="snap-polygon";function ca(r,e,t){let n;W(r,Ce,f=>t(1,n=f));let{changeMode:i}=e,{routeTool:o}=e,{eventHandler:s}=e,a={value:null};function l(){o.setHandlers(s),o.startArea()}function u(){o.stop(),cr(a,"area")}return fr(o,a,"area",Kn,i),r.$$set=f=>{"changeMode"in f&&t(2,i=f.changeMode),"routeTool"in f&&t(0,o=f.routeTool),"eventHandler"in f&&t(3,s=f.eventHandler)},[o,n,i,s,l,u]}class pa extends ee{constructor(e){super(),te(this,e,ca,fa,ne,{changeMode:2,routeTool:0,eventHandler:3,start:4,stop:5})}get start(){return this.$$.ctx[4]}get stop(){return this.$$.ctx[5]}}function qr(r){let e,t,n,i,o,s,a,l,u,f,c,p,g,v,y;return c=new yt({props:{label:"Help",$$slots:{default:[da]},$$scope:{ctx:r}}}),g=jt(r[7][0]),{c(){e=$("label"),t=$("input"),n=U(` + Avoid doubling back`),p=A(),g=$("div"),v=$("button"),v.textContent="Finish",y=A(),_=$("button"),_.textContent="Cancel",x(i,"type","checkbox"),x(n,"title","Keep clicking to add more points to the end of the route"),x(f,"type","checkbox"),x(u,"title","Try to make the route avoid using the same streets with multiple waypoints"),x(v,"type","button"),x(_,"type","button"),Ae(g,"display","flex"),Ae(g,"justify-content","space-between")},m(m,w){P(e,m,w),k(m,t,w),k(m,n,w),E(n,i),i.checked=r[0],E(n,o),k(m,s,w),k(m,a,w),k(m,l,w),k(m,u,w),E(u,f),f.checked=r[2].avoidDoublingBack,E(u,c),k(m,p,w),k(m,g,w),E(g,v),E(g,y),E(g,_),h=!0,d||(b=[Y(i,"change",r[3]),Y(f,"change",r[4]),Y(v,"click",r[5]),Y(_,"click",r[6])],d=!0)},p(m,[w]){const L={};w&128&&(L.$$scope={dirty:w,ctx:m}),e.$set(L),w&1&&(i.checked=m[0]),w&4&&(f.checked=m[2].avoidDoublingBack)},i(m){h||(M(e.$$.fragment,m),h=!0)},o(m){C(e.$$.fragment,m),h=!1},d(m){m&&(S(t),S(n),S(s),S(a),S(l),S(u),S(p),S(g)),N(e,m),d=!1,Ie(b)}}}function Ml(r,e,t){let n;W(r,Ot,f=>t(2,n=f));let{routeTool:i}=e,{extendRoute:o}=e;function s(){o=this.checked,t(0,o)}function a(){n.avoidDoublingBack=this.checked,Ot.set(n)}const l=()=>i.finish(),u=()=>i.cancel();return r.$$set=f=>{"routeTool"in f&&t(1,i=f.routeTool),"extendRoute"in f&&t(0,o=f.extendRoute)},r.$$.update=()=>{r.$$.dirty&7&&i.setRouteConfig({avoid_doubling_back:n.avoidDoublingBack,extend_route:o})},[o,i,n,s,a,l,u]}class qi extends ee{constructor(e){super(),te(this,e,Ml,El,ne,{routeTool:1,extendRoute:0})}}function $l(r){let e;return{c(){e=$("ul"),e.innerHTML="
  • Click green points on the transport network to create snapped routes
  • Click and drag any point to move it
  • Click a red waypoint to delete it
  • Press Enter or double click to finish
  • Press Escape to cancel
  • "},m(t,n){k(t,e,n)},p:G,d(t){t&&S(e)}}}function Cl(r){let e,t,n,i,o,s,a,l,u;return e=new vt({props:{label:"Help",$$slots:{default:[$l]},$$scope:{ctx:r}}}),{c(){F(e.$$.fragment),t=A(),n=$("div"),i=$("button"),i.textContent="Finish",o=A(),s=$("button"),s.textContent="Cancel",x(i,"type","button"),x(s,"type","button"),Ae(n,"display","flex"),Ae(n,"justify-content","space-between")},m(f,c){P(e,f,c),k(f,t,c),k(f,n,c),E(n,i),E(n,o),E(n,s),a=!0,l||(u=[Y(i,"click",r[1]),Y(s,"click",r[2])],l=!0)},p(f,[c]){const p={};c&8&&(p.$$scope={dirty:c,ctx:f}),e.$set(p)},i(f){a||(M(e.$$.fragment,f),a=!0)},o(f){C(e.$$.fragment,f),a=!1},d(f){f&&(S(t),S(n)),N(e,f),l=!1,Ie(u)}}}function Ll(r,e,t){let{routeTool:n}=e;const i=()=>n.finish(),o=()=>n.cancel();return r.$$set=s=>{"routeTool"in s&&t(0,n=s.routeTool)},[n,i,o]}class Gi extends ee{constructor(e){super(),te(this,e,Ll,Cl,ne,{routeTool:0})}}function Nr(r){let e,t,n,i;const o=[xl,Rl,Ol,Al,Tl],s=[];function a(l,u){return l[4]=="point"?0:l[4]=="free-polygon"?1:l[4]=="snap-polygon"?2:l[4]=="route"?3:4}return e=a(r),t=s[e]=o[e](r),{c(){t.c(),n=be()},m(l,u){s[e].m(l,u),k(l,n,u),i=!0},p(l,u){let f=e;e=a(l),e===f?s[e].p(l,u):(pe(),C(s[f],1,1,()=>{s[f]=null}),de(),t=s[e],t?t.p(l,u):(t=s[e]=o[e](l),t.c()),M(t,1),t.m(n.parentNode,n))},i(l){i||(M(t),i=!0)},o(l){C(t),i=!1},d(l){l&&S(n),s[e].d(l)}}}function Tl(r){let e,t,n=yt(r[0])+"",i,o;return{c(){e=$("p"),t=U("Click "),i=U(n),o=U(" to edit its geometry")},m(s,a){k(s,e,a),E(e,t),E(e,i),E(e,o)},p(s,a){a&1&&n!==(n=yt(s[0])+"")&&Le(i,n)},i:G,o:G,d(s){s&&S(e)}}}function Al(r){let e,t;return e=new qi({props:{routeTool:r[3],extendRoute:!1}}),{c(){F(e.$$.fragment)},m(n,i){P(e,n,i),t=!0},p(n,i){const o={};i&8&&(o.routeTool=n[3]),e.$set(o)},i(n){t||(M(e.$$.fragment,n),t=!0)},o(n){C(e.$$.fragment,n),t=!1},d(n){N(e,n)}}}function Ol(r){let e,t;return e=new Gi({props:{routeTool:r[3]}}),{c(){F(e.$$.fragment)},m(n,i){P(e,n,i),t=!0},p(n,i){const o={};i&8&&(o.routeTool=n[3]),e.$set(o)},i(n){t||(M(e.$$.fragment,n),t=!0)},o(n){C(e.$$.fragment,n),t=!1},d(n){N(e,n)}}}function Rl(r){let e,t;return e=new ji({props:{polygonTool:r[2]}}),{c(){F(e.$$.fragment)},m(n,i){P(e,n,i),t=!0},p(n,i){const o={};i&4&&(o.polygonTool=n[2]),e.$set(o)},i(n){t||(M(e.$$.fragment,n),t=!0)},o(n){C(e.$$.fragment,n),t=!1},d(n){N(e,n)}}}function xl(r){let e,t;return e=new Ii({props:{pointTool:r[1],editingExisting:!0}}),{c(){F(e.$$.fragment)},m(n,i){P(e,n,i),t=!0},p(n,i){const o={};i&2&&(o.pointTool=n[1]),e.$set(o)},i(n){t||(M(e.$$.fragment,n),t=!0)},o(n){C(e.$$.fragment,n),t=!1},d(n){N(e,n)}}}function Il(r){let e,t,n=r[5]==Ft&&Nr(r);return{c(){n&&n.c(),e=be()},m(i,o){n&&n.m(i,o),k(i,e,o),t=!0},p(i,[o]){i[5]==Ft?n?(n.p(i,o),o&32&&M(n,1)):(n=Nr(i),n.c(),M(n,1),n.m(e.parentNode,e)):n&&(pe(),C(n,1,1,()=>{n=null}),de())},i(i){t||(M(n),t=!0)},o(i){C(n),t=!1},d(i){i&&S(e),n&&n.d(i)}}}const Ft="edit-geometry";function Yi(){}function Br(r,e){r.geometry=e.geometry,e.properties.length_meters&&(r.properties.length_meters=e.properties.length_meters),e.properties.waypoints&&(r.properties.waypoints=e.properties.waypoints)}function Fl(r,e,t){let n,i;W(r,Ue,_=>t(11,n=_)),W(r,Ce,_=>t(5,i=_));let{schema:o}=e,{pointTool:s}=e,{polygonTool:a}=e,{routeTool:l}=e,{eventHandler:u}=e,f=null,c=null,p=null;function g(){f&&(s.stop(),a.stop(),l.stop(),ce.update(_=>{let h=_.features.find(d=>d.id==f);return h?(delete h.properties.hide_while_editing,p&&Br(h,p),_):(window.alert("You loaded another file or cleared everything while editing. Your changes were lost."),_)})),y(),Ge.set(null)}for(let _ of[s,a,l])_.addEventListenerSuccess(h=>{i==Ft&&(ce.update(d=>{let b=d.features.find(m=>m.id==f);return b?(Br(b,h),delete b.properties.hide_while_editing,d):(window.alert("You loaded another file or cleared everything while editing. Your changes were lost."),d)}),y())});for(let _ of[a,l])_.addEventListenerUpdated(h=>{i==Ft&&(p=h)});for(let _ of[s,a,l])_.addEventListenerFailure(()=>{i==Ft&&(ce.update(h=>{let d=h.features.find(b=>b.id==f);return d?(delete d.properties.hide_while_editing,h):(window.alert("You loaded another file or cleared everything while editing. Your changes were lost."),h)}),y())});u.mapHandlers.mousemove=_=>{var h;if(l.onMouseMove(_),s.onMouseMove(_),a.onMouseMove(_),f==null){let d=n.queryRenderedFeatures(_.point,{layers:["interventions-points","interventions-lines","interventions-polygons"]});Ge.set(((h=d[0])==null?void 0:h.id)||null)}},u.mapHandlers.mouseout=()=>{f==null&&Ge.set(null)},u.mapHandlers.click=_=>{if(l.onClick(),s.onClick(),a.onClick(_),f==null){let h=n.queryRenderedFeatures(_.point,{layers:["interventions-points","interventions-lines","interventions-polygons"]});h.length>0&&v(h[0].id)}},u.mapHandlers.mousedown=_=>{a.onMouseDown(_)},u.mapHandlers.dblclick=_=>{l.onDoubleClick(_),a.onDoubleClick(_)},u.mapHandlers.dragstart=()=>{l.onDragStart()},u.mapHandlers.mouseup=()=>{l.onMouseUp(),a.onMouseUp()},u.documentHandlers.keypress=_=>{l.onKeyPress(_),a.onKeypress(_)},u.documentHandlers.keydown=_=>{s.onKeyDown(_),a.onKeyDown(_),l.onKeyDown(_)},u.documentHandlers.keyup=_=>{l.onKeyUp(_)};function v(_){Ge.set(null);let h=null;ce.update(b=>(h=b.features.find(m=>m.id==_),h.properties.hide_while_editing=!0,b));let d=h;f=_,d.geometry.type=="LineString"?(l.editExistingRoute(d),t(4,c="route")):d.geometry.type=="Polygon"?d.properties.waypoints?(l.editExistingArea(d),t(4,c="snap-polygon")):(a.editExisting(d),t(4,c="free-polygon")):d.geometry.type=="Point"&&(s.start(),t(4,c="point"))}function y(){f=null,t(4,c=null),p=null}return r.$$set=_=>{"schema"in _&&t(0,o=_.schema),"pointTool"in _&&t(1,s=_.pointTool),"polygonTool"in _&&t(2,a=_.polygonTool),"routeTool"in _&&t(3,l=_.routeTool),"eventHandler"in _&&t(6,u=_.eventHandler)},[o,s,a,l,c,i,u,Yi,g]}class Pl extends ee{constructor(e){super(),te(this,e,Fl,Il,ne,{schema:0,pointTool:1,polygonTool:2,routeTool:3,eventHandler:6,start:7,stop:8})}get start(){return Yi}get stop(){return this.$$.ctx[8]}}function Dr(r){let e,t;return e=new Ii({props:{pointTool:r[0],editingExisting:!1}}),{c(){F(e.$$.fragment)},m(n,i){P(e,n,i),t=!0},p(n,i){const o={};i&1&&(o.pointTool=n[0]),e.$set(o)},i(n){t||(M(e.$$.fragment,n),t=!0)},o(n){C(e.$$.fragment,n),t=!1},d(n){N(e,n)}}}function Nl(r){let e,t,n=r[1]==_n&&Dr(r);return{c(){n&&n.c(),e=be()},m(i,o){n&&n.m(i,o),k(i,e,o),t=!0},p(i,[o]){i[1]==_n?n?(n.p(i,o),o&2&&M(n,1)):(n=Dr(i),n.c(),M(n,1),n.m(e.parentNode,e)):n&&(pe(),C(n,1,1,()=>{n=null}),de())},i(i){t||(M(n),t=!0)},o(i){C(n),t=!1},d(i){i&&S(e),n&&n.d(i)}}}const _n="point";function Bl(r,e,t){let n;W(r,Ce,u=>t(1,n=u));let{changeMode:i}=e,{pointTool:o}=e,{eventHandler:s}=e;function a(){o.setHandlers(s),o.start()}function l(){o.stop()}return o.addEventListenerSuccess(u=>{n==_n&&(ce.update(f=>(u.id=kn(f),u.properties.intervention_type="other",f.features.push(u),f)),i("edit-attribute"),xe.set(u.id))}),o.addEventListenerFailure(()=>{n==_n&&i("edit-attribute")}),r.$$set=u=>{"changeMode"in u&&t(2,i=u.changeMode),"pointTool"in u&&t(0,o=u.pointTool),"eventHandler"in u&&t(3,s=u.eventHandler)},[o,n,i,s,a,l]}class Dl extends ee{constructor(e){super(),te(this,e,Bl,Nl,ne,{changeMode:2,pointTool:0,eventHandler:3,start:4,stop:5})}get start(){return this.$$.ctx[4]}get stop(){return this.$$.ctx[5]}}function cr(r,e,t,n,i){r.addEventListenerSuccess(o=>{lt(Ce)==n&&(ce.update(s=>(o.id=kn(s),o.properties.intervention_type=t,s.features.push(o),s)),e.value=null,i("edit-attribute"),xe.set(o.id))}),r.addEventListenerUpdated(o=>{lt(Ce)==n&&(e.value=o)}),r.addEventListenerFailure(()=>{lt(Ce)==n&&(e.value=null,i("edit-attribute"))})}function pr(r,e){r.value&&(ce.update(t=>{let n=r.value;return n.id=kn(t),n.properties.intervention_type=e,t.features.push(n),t}),r.value=null)}function Hr(r){let e,t;return e=new ji({props:{polygonTool:r[0]}}),{c(){F(e.$$.fragment)},m(n,i){P(e,n,i),t=!0},p(n,i){const o={};i&1&&(o.polygonTool=n[0]),e.$set(o)},i(n){t||(M(e.$$.fragment,n),t=!0)},o(n){C(e.$$.fragment,n),t=!1},d(n){N(e,n)}}}function Hl(r){let e,t,n=r[1]==Vn&&Hr(r);return{c(){n&&n.c(),e=be()},m(i,o){n&&n.m(i,o),k(i,e,o),t=!0},p(i,[o]){i[1]==Vn?n?(n.p(i,o),o&2&&M(n,1)):(n=Hr(i),n.c(),M(n,1),n.m(e.parentNode,e)):n&&(pe(),C(n,1,1,()=>{n=null}),de())},i(i){t||(M(n),t=!0)},o(i){C(n),t=!1},d(i){i&&S(e),n&&n.d(i)}}}const Vn="free-polygon";function jl(r,e,t){let n;W(r,Ce,f=>t(1,n=f));let{changeMode:i}=e,{polygonTool:o}=e,{eventHandler:s}=e,a={value:null};function l(){o.setHandlers(s),o.startNew()}function u(){o.stop(),pr(a,"area")}return cr(o,a,"area",Vn,i),r.$$set=f=>{"changeMode"in f&&t(2,i=f.changeMode),"polygonTool"in f&&t(0,o=f.polygonTool),"eventHandler"in f&&t(3,s=f.eventHandler)},[o,n,i,s,l,u]}class Ul extends ee{constructor(e){super(),te(this,e,jl,Hl,ne,{changeMode:2,polygonTool:0,eventHandler:3,start:4,stop:5})}get start(){return this.$$.ctx[4]}get stop(){return this.$$.ctx[5]}}function zl(r){let e,t;return e=new qi({props:{routeTool:r[0],extendRoute:!0}}),{c(){F(e.$$.fragment)},m(n,i){P(e,n,i),t=!0},p(n,i){const o={};i&1&&(o.routeTool=n[0]),e.$set(o)},i(n){t||(M(e.$$.fragment,n),t=!0)},o(n){C(e.$$.fragment,n),t=!1},d(n){N(e,n)}}}function ql(r){let e;return{c(){e=$("p"),e.textContent="Failed to load"},m(t,n){k(t,e,n)},p:G,i:G,o:G,d(t){t&&S(e)}}}function Gl(r){let e,t,n;return{c(){e=$("label"),e.textContent="Route data unpacking",t=A(),n=$("progress"),x(e,"for","route-unpacking"),x(n,"id","route-unpacking"),x(n,"class","svelte-q3473n")},m(i,o){k(i,e,o),k(i,t,o),k(i,n,o)},p:G,i:G,o:G,d(i){i&&(S(e),S(t),S(n))}}}function Yl(r){let e,t,n;return{c(){e=$("label"),e.textContent="Route tool loading",t=A(),n=$("progress"),x(e,"for","route-loading"),x(n,"id","route-loading"),n.value=r[1],x(n,"class","svelte-q3473n")},m(i,o){k(i,e,o),k(i,t,o),k(i,n,o)},p(i,o){o&2&&(n.value=i[1])},i:G,o:G,d(i){i&&(S(e),S(t),S(n))}}}function Jl(r){let e,t,n,i;const o=[Yl,Gl,ql,zl],s=[];function a(l,u){return!l[2]&&!l[3]&&!l[4]?0:l[4]&&!l[2]&&!l[3]?1:l[3]?2:l[5]==Ji?3:-1}return~(e=a(r))&&(t=s[e]=o[e](r)),{c(){t&&t.c(),n=be()},m(l,u){~e&&s[e].m(l,u),k(l,n,u),i=!0},p(l,[u]){let f=e;e=a(l),e===f?~e&&s[e].p(l,u):(t&&(pe(),C(s[f],1,1,()=>{s[f]=null}),de()),~e?(t=s[e],t?t.p(l,u):(t=s[e]=o[e](l),t.c()),M(t,1),t.m(n.parentNode,n)):t=null)},i(l){i||(M(t),i=!0)},o(l){C(t),i=!1},d(l){l&&S(n),~e&&s[e].d(l)}}}const Ji="route";async function Xl(r,e){const t=await fetch(r),n=t.body.getReader(),i=parseInt(t.headers.get("Content-Length"));let o=0,s=[];for(;;){const{done:u,value:f}=await n.read();if(u)break;s.push(f),o+=f.length;const c=100*o/i;e(c)}let a=new Uint8Array(o),l=0;for(let u of s)a.set(u,l),l+=u.length;return a}function Wl(r,e,t){let n,i,o;W(r,Ue,h=>t(11,i=h)),W(r,Ce,h=>t(5,o=h));let{changeMode:s}=e,{url:a}=e,{routeTool:l}=e,{eventHandler:u}=e,f=0,c=!1,p=!1,g={value:null};function v(){l.isActive()||(l.setHandlers(u),l.startRoute())}function y(){l==null||l.stop(),pr(g,"route")}jt(async()=>{await zi(),console.log(`Grabbing ${a}`);try{const h=await Xl(a,d=>t(1,f=d));t(0,l=new kl(i,h,_))}catch(h){console.log(`Route tool broke: ${h}`),t(3,p=!0);return}cr(l,g,"route",Ji,s)});function _(){t(1,f=100),t(2,c=!0)}return r.$$set=h=>{"changeMode"in h&&t(6,s=h.changeMode),"url"in h&&t(7,a=h.url),"routeTool"in h&&t(0,l=h.routeTool),"eventHandler"in h&&t(8,u=h.eventHandler)},r.$$.update=()=>{r.$$.dirty&2&&t(4,n=f>=100)},[l,f,c,p,n,o,s,a,u,v,y]}class Vl extends ee{constructor(e){super(),te(this,e,Wl,Jl,ne,{changeMode:6,url:7,routeTool:0,eventHandler:8,start:9,stop:10})}get start(){return this.$$.ctx[9]}get stop(){return this.$$.ctx[10]}}function tn(r,e){return e===void 0&&(e={}),Mo(r,function(t,n){var i=n.geometry.coordinates;return t+We(i[0],i[1],e)},0)}function Kl(r,e,t){var n=je(t);if(Yn(t)!=="LineString")throw new Error("line must be a LineString");var i=Ht(t,r),o=Ht(t,e),s;i.properties.index<=o.properties.index?s=[i,o]:s=[o,i];for(var a=[s[0].geometry.coordinates],l=s[0].properties.index+1;l=s){var a=(t+i)/2;return[e,a-(n-e)/2,n,a+(n-e)/2]}else{var l=(e+n)/2;return[l-(i-t)/2,t,l+(i-t)/2,i]}}function Ql(r,e){e===void 0&&(e={});var t=e.precision,n=e.coordinates,i=e.mutate;if(t=t==null||isNaN(t)?6:t,n=n==null||isNaN(n)?3:n,!r)throw new Error(" is required");if(typeof t!="number")throw new Error(" must be a number");if(typeof n!="number")throw new Error(" must be a number");(i===!1||i===void 0)&&(r=JSON.parse(JSON.stringify(r)));var o=Math.pow(10,t);return $o(r,function(s){ea(s,o,n)}),r}function ea(r,e,t){r.length>t&&r.splice(t,r.length);for(var n=0;n1&&t.push(bt(f)),et(t)}function Xi(r,e){if(!e.features.length)throw new Error("lines must contain features");if(e.features.length===1)return e.features[0];var t,n=1/0;return rn(e,function(i){var o=Ht(i,r),s=o.properties.dist;sClick on a route to split it
  • Click on the map or press Escape to cancel
  • "},m(t,n){k(t,e,n)},p:G,d(t){t&&S(e)}}}function ra(r){let e,t,n=r[0]==zr&&Ur(r);return{c(){n&&n.c(),e=be()},m(i,o){n&&n.m(i,o),k(i,e,o),t=!0},p(i,[o]){i[0]==zr?n?o&1&&M(n,1):(n=Ur(i),n.c(),M(n,1),n.m(e.parentNode,e)):n&&(pe(),C(n,1,1,()=>{n=null}),de())},i(i){t||(M(n),t=!0)},o(i){C(n),t=!1},d(i){i&&S(e),n&&n.d(i)}}}const zr="split-route",ia=10,oa=30;let An="split-route";function sa(r,e,t){let n,i,o;W(r,ce,y=>t(8,n=y)),W(r,Ue,y=>t(6,i=y)),W(r,Ce,y=>t(0,o=y));let{changeMode:s}=e,{eventHandler:a}=e;function l(){i.getCanvas().style.cursor=`url(${Ri}), crosshair`}function u(){i.getCanvas().style.cursor="inherit",t(5,f=null),c=null}let f=null,c=null;ft(i,An,nt()),bn(i,{id:"draw-split-route",source:An,color:"black",radius:ia}),a.mapHandlers.mousemove=y=>{t(5,f=null),c=null;let _=p(y.lngLat.toArray());const h=[y.point.x-oa,y.point.y],d=i.unproject(y.point).distanceTo(i.unproject(h))/1e3;let b=[];for(let[m,w]of n.features.entries())if(w.geometry.type=="LineString"){let L=Ht(w.geometry,_,{units:"kilometers"});L.properties.dist!=null&&L.properties.dist<=d&&b.push([m,L.geometry.coordinates,L.properties.dist])}b.sort((m,w)=>m[2]-w[2]),b.length>0&&(t(5,f=p(b[0][1])),c=b[0][0])},a.mapHandlers.click=()=>{if(c==null)s("edit-attribute");else{let y=ta(n.features[c],f);if(y.features.length==2){let _=y.features[0],h=y.features[1];_.geometry.coordinates=_.geometry.coordinates.map(Jt),h.geometry.coordinates=h.geometry.coordinates.map(Jt),ce.update(d=>(_.id=d.features[c].id,h.id=kn(d),_.properties=JSON.parse(JSON.stringify(d.features[c].properties)),h.properties=JSON.parse(JSON.stringify(_.properties)),g(d.features[c],_,h,f),d.features.splice(c,1,_,h),d))}t(5,f=null),c=null}},a.documentHandlers.keydown=y=>{y.key=="Escape"&&(s("edit-attribute"),y.preventDefault())};function p(y){return{type:"Feature",properties:{},geometry:{type:"Point",coordinates:Jt(y)}}}function g(y,_,h,d){_.properties.length_meters=tn(_,{units:"kilometers"})*1e3,h.properties.length_meters=tn(h,{units:"kilometers"})*1e3,_.properties.waypoints=[],h.properties.waypoints=[];let b=v(y,d),m=!0,w=0;for(let L of y.properties.waypoints){let O=v(y,mt([L.lon,L.lat]));if(m)if(O{"changeMode"in y&&t(2,s=y.changeMode),"eventHandler"in y&&t(1,a=y.eventHandler)},r.$$.update=()=>{if(r.$$.dirty&96){let y=nt();f&&y.features.push(f),i.getSource(An).setData(y)}},[o,a,s,l,u,f,i]}class la extends ee{constructor(e){super(),te(this,e,sa,ra,ne,{changeMode:2,eventHandler:1,start:3,stop:4})}get start(){return this.$$.ctx[3]}get stop(){return this.$$.ctx[4]}}function aa(r){let e,t,n,i,o,s,a,l;return{c(){e=$("button"),t=$("img"),i=A(),o=U(r[1]),Fn(t.src,n=r[2])||x(t,"src",n),x(t,"alt",r[1]),x(t,"class","svelte-1vvpkg9"),x(e,"type","button"),e.disabled=s=r[4]==r[0],x(e,"class","svelte-1vvpkg9")},m(u,f){k(u,e,f),E(e,t),E(e,i),E(e,o),a||(l=Y(e,"click",r[5]),a=!0)},p(u,[f]){f&4&&!Fn(t.src,n=u[2])&&x(t,"src",n),f&2&&x(t,"alt",u[1]),f&2&&Le(o,u[1]),f&17&&s!==(s=u[4]==u[0])&&(e.disabled=s)},i:G,o:G,d(u){u&&S(e),a=!1,l()}}}function ua(r,e,t){let n;W(r,Ce,u=>t(4,n=u));let{thisMode:i}=e,{label:o}=e,{icon:s}=e,{changeMode:a}=e;const l=()=>a(i);return r.$$set=u=>{"thisMode"in u&&t(0,i=u.thisMode),"label"in u&&t(1,o=u.label),"icon"in u&&t(2,s=u.icon),"changeMode"in u&&t(3,a=u.changeMode)},[i,o,s,a,n,l]}class Ve extends ee{constructor(e){super(),te(this,e,ua,aa,ne,{thisMode:0,label:1,icon:2,changeMode:3})}}function qr(r){let e,t;return e=new Gi({props:{routeTool:r[0]}}),{c(){F(e.$$.fragment)},m(n,i){P(e,n,i),t=!0},p(n,i){const o={};i&1&&(o.routeTool=n[0]),e.$set(o)},i(n){t||(M(e.$$.fragment,n),t=!0)},o(n){C(e.$$.fragment,n),t=!1},d(n){N(e,n)}}}function fa(r){let e,t,n=r[1]==Zn&&qr(r);return{c(){n&&n.c(),e=be()},m(i,o){n&&n.m(i,o),k(i,e,o),t=!0},p(i,[o]){i[1]==Zn?n?(n.p(i,o),o&2&&M(n,1)):(n=qr(i),n.c(),M(n,1),n.m(e.parentNode,e)):n&&(pe(),C(n,1,1,()=>{n=null}),de())},i(i){t||(M(n),t=!0)},o(i){C(n),t=!1},d(i){i&&S(e),n&&n.d(i)}}}const Zn="snap-polygon";function ca(r,e,t){let n;W(r,Ce,f=>t(1,n=f));let{changeMode:i}=e,{routeTool:o}=e,{eventHandler:s}=e,a={value:null};function l(){o.setHandlers(s),o.startArea()}function u(){o.stop(),pr(a,"area")}return cr(o,a,"area",Zn,i),r.$$set=f=>{"changeMode"in f&&t(2,i=f.changeMode),"routeTool"in f&&t(0,o=f.routeTool),"eventHandler"in f&&t(3,s=f.eventHandler)},[o,n,i,s,l,u]}class pa extends ee{constructor(e){super(),te(this,e,ca,fa,ne,{changeMode:2,routeTool:0,eventHandler:3,start:4,stop:5})}get start(){return this.$$.ctx[4]}get stop(){return this.$$.ctx[5]}}function Gr(r){let e,t,n,i,o,s,a,l,u,f,c,p,g,v,y;return c=new vt({props:{label:"Help",$$slots:{default:[da]},$$scope:{ctx:r}}}),g=Ut(r[7][0]),{c(){e=$("label"),t=$("input"),n=U(` Google Street View`),i=A(),o=$("br"),s=A(),a=$("label"),l=$("input"),u=U(` - Bing Streetside`),f=A(),F(c.$$.fragment),x(t,"type","radio"),t.__value="google",fe(t,t.__value),x(l,"type","radio"),l.__value="bing",fe(l,l.__value),g.p(t,l)},m(_,h){k(_,e,h),E(e,t),t.checked=t.__value===r[0].streetViewImagery,E(e,n),k(_,i,h),k(_,o,h),k(_,s,h),k(_,a,h),E(a,l),l.checked=l.__value===r[0].streetViewImagery,E(a,u),k(_,f,h),P(c,_,h),p=!0,v||(y=[Y(t,"change",r[6]),Y(l,"change",r[8])],v=!0)},p(_,h){h&1&&(t.checked=t.__value===_[0].streetViewImagery),h&1&&(l.checked=l.__value===_[0].streetViewImagery);const d={};h&1024&&(d.$$scope={dirty:h,ctx:_}),c.$set(d)},i(_){p||(M(c.$$.fragment,_),p=!0)},o(_){C(c.$$.fragment,_),p=!1},d(_){_&&(S(e),S(i),S(o),S(s),S(a),S(f)),N(c,_),g.r(),v=!1,Ie(y)}}}function da(r){let e;return{c(){e=$("ul"),e.innerHTML="
  • Click on the map to open a new tab with a 3rd-party imagery provider
  • Press Escape to exit this mode
  • "},m(t,n){k(t,e,n)},p:G,d(t){t&&S(e)}}}function ha(r){let e,t,n=r[1]==Gr&&qr(r);return{c(){n&&n.c(),e=be()},m(i,o){n&&n.m(i,o),k(i,e,o),t=!0},p(i,[o]){i[1]==Gr?n?(n.p(i,o),o&2&&M(n,1)):(n=qr(i),n.c(),M(n,1),n.m(e.parentNode,e)):n&&(pe(),C(n,1,1,()=>{n=null}),de())},i(i){t||(M(n),t=!0)},o(i){C(n),t=!1},d(i){i&&S(e),n&&n.d(i)}}}const Gr="street-view";function ga(r,e,t){let n,i,o;W(r,At,g=>t(0,n=g)),W(r,Ue,g=>t(9,i=g)),W(r,Ce,g=>t(1,o=g));let{eventHandler:s}=e,{changeMode:a}=e;function l(){i.getCanvas().style.cursor="zoom-in"}function u(){i.getCanvas().style.cursor="inherit"}s.mapHandlers.click=g=>{let v=g.lngLat.lng,y=g.lngLat.lat;n.streetViewImagery=="google"?window.open(`http://maps.google.com/maps?q=&layer=c&cbll=${y},${v}&cbp=11,0,0,0,0`,"_blank"):n.streetViewImagery=="bing"&&window.open(`https://www.bing.com/maps?cp=${y}~${v}&style=x`,"_blank")},s.documentHandlers.keydown=g=>{g.key=="Escape"&&(a("edit-attribute"),g.preventDefault())};const f=[[]];function c(){n.streetViewImagery=this.__value,At.set(n)}function p(){n.streetViewImagery=this.__value,At.set(n)}return r.$$set=g=>{"eventHandler"in g&&t(2,s=g.eventHandler),"changeMode"in g&&t(3,a=g.changeMode)},[n,o,s,a,l,u,c,f,p]}class _a extends ee{constructor(e){super(),te(this,e,ga,ha,ne,{eventHandler:2,changeMode:3,start:4,stop:5})}get start(){return this.$$.ctx[4]}get stop(){return this.$$.ctx[5]}}function Yr(r){let e,t,n={schema:r[1],pointTool:r[11],polygonTool:r[12],routeTool:r[2],eventHandler:r[13]["edit-geometry"]};return e=new Pl({props:n}),r[16](e),{c(){F(e.$$.fragment)},m(i,o){P(e,i,o),t=!0},p(i,o){const s={};o&2&&(s.schema=i[1]),o&4&&(s.routeTool=i[2]),e.$set(s)},i(i){t||(M(e.$$.fragment,i),t=!0)},o(i){C(e.$$.fragment,i),t=!1},d(i){r[16](null),N(e,i)}}}function Jr(r){let e,t;return e=new Ve({props:{thisMode:"point",label:"New point",icon:Bs,changeMode:r[14]}}),{c(){F(e.$$.fragment)},m(n,i){P(e,n,i),t=!0},p:G,i(n){t||(M(e.$$.fragment,n),t=!0)},o(n){C(e.$$.fragment,n),t=!1},d(n){N(e,n)}}}function Xr(r){let e,t,n={changeMode:r[14],routeTool:r[2],eventHandler:r[13]["snap-polygon"]};return e=new pa({props:n}),r[19](e),{c(){F(e.$$.fragment)},m(i,o){P(e,i,o),t=!0},p(i,o){const s={};o&4&&(s.routeTool=i[2]),e.$set(s)},i(i){t||(M(e.$$.fragment,i),t=!0)},o(i){C(e.$$.fragment,i),t=!1},d(i){r[19](null),N(e,i)}}}function Wr(r){let e,t;return e=new Ve({props:{thisMode:"route",label:"New route",icon:js,changeMode:r[14]}}),{c(){F(e.$$.fragment)},m(n,i){P(e,n,i),t=!0},p:G,i(n){t||(M(e.$$.fragment,n),t=!0)},o(n){C(e.$$.fragment,n),t=!1},d(n){N(e,n)}}}function Vr(r){let e,t;return e=new Ve({props:{thisMode:"split-route",label:"Split route",icon:Ri,changeMode:r[14]}}),{c(){F(e.$$.fragment)},m(n,i){P(e,n,i),t=!0},p:G,i(n){t||(M(e.$$.fragment,n),t=!0)},o(n){C(e.$$.fragment,n),t=!1},d(n){N(e,n)}}}function ma(r){let e,t,n,i,o,s,a,l,u,f,c,p,g,v,y,_,h,d,b,m,w,L,O,R,I,B,D,j,T,z,ue,he,Se,Ee,_e,me,Te;n=new Ve({props:{thisMode:"edit-attribute",label:"Edit attributes",icon:Ps,changeMode:r[14]}});let se={schema:r[1],changeMode:r[14],eventHandler:r[13]["edit-attribute"]};o=new Js({props:se}),r[15](o),l=new Ve({props:{thisMode:"edit-geometry",label:"Edit geometry",icon:Ns,changeMode:r[14]}});let H=r[2]&&Yr(r),Z=r[1]!="planning"&&Jr(r),Ye={changeMode:r[14],pointTool:r[11],eventHandler:r[13].point};g=new Dl({props:Ye}),r[17](g),_=new Ve({props:{thisMode:"free-polygon",label:"New polygon (freehand)",icon:Ds,changeMode:r[14]}});let it={changeMode:r[14],polygonTool:r[12],eventHandler:r[13]["free-polygon"]};d=new Ul({props:it}),r[18](d),w=new Ve({props:{thisMode:"snap-polygon",label:"New polygon (snapped)",icon:Hs,changeMode:r[14]}});let le=r[2]&&Xr(r),ie=r[1]!="planning"&&Wr(r);function V(q){r[21](q)}let oe={changeMode:r[14],url:r[0],eventHandler:r[13].route};r[2]!==void 0&&(oe.routeTool=r[2]),B=new Vl({props:oe}),r[20](B),ae.push(()=>ve(B,"routeTool",V));let Me=r[1]!="planning"&&Vr(r),so={changeMode:r[14],eventHandler:r[13]["split-route"]};ue=new la({props:so}),r[22](ue),Ee=new Ve({props:{thisMode:"street-view",label:"Street View",icon:Us,changeMode:r[14]}});let lo={changeMode:r[14],eventHandler:r[13]["street-view"]};return me=new _a({props:lo}),r[23](me),{c(){e=$("div"),t=$("div"),F(n.$$.fragment),i=A(),F(o.$$.fragment),s=A(),a=$("div"),F(l.$$.fragment),u=A(),H&&H.c(),f=A(),c=$("div"),Z&&Z.c(),p=A(),F(g.$$.fragment),v=A(),y=$("div"),F(_.$$.fragment),h=A(),F(d.$$.fragment),b=A(),m=$("div"),F(w.$$.fragment),L=A(),le&&le.c(),O=A(),R=$("div"),ie&&ie.c(),I=A(),F(B.$$.fragment),j=A(),T=$("div"),Me&&Me.c(),z=A(),F(ue.$$.fragment),he=A(),Se=$("div"),F(Ee.$$.fragment),_e=A(),F(me.$$.fragment),x(e,"class","toolbox svelte-4s4d3o")},m(q,Oe){k(q,e,Oe),E(e,t),P(n,t,null),E(t,i),P(o,t,null),E(e,s),E(e,a),P(l,a,null),E(a,u),H&&H.m(a,null),E(e,f),E(e,c),Z&&Z.m(c,null),E(c,p),P(g,c,null),E(e,v),E(e,y),P(_,y,null),E(y,h),P(d,y,null),E(e,b),E(e,m),P(w,m,null),E(m,L),le&&le.m(m,null),E(e,O),E(e,R),ie&&ie.m(R,null),E(R,I),P(B,R,null),E(e,j),E(e,T),Me&&Me.m(T,null),E(T,z),P(ue,T,null),E(e,he),E(e,Se),P(Ee,Se,null),E(Se,_e),P(me,Se,null),Te=!0},p(q,[Oe]){const pr={};Oe&2&&(pr.schema=q[1]),o.$set(pr),q[2]?H?(H.p(q,Oe),Oe&4&&M(H,1)):(H=Yr(q),H.c(),M(H,1),H.m(a,null)):H&&(pe(),C(H,1,1,()=>{H=null}),de()),q[1]!="planning"?Z?(Z.p(q,Oe),Oe&2&&M(Z,1)):(Z=Jr(q),Z.c(),M(Z,1),Z.m(c,p)):Z&&(pe(),C(Z,1,1,()=>{Z=null}),de());const ao={};g.$set(ao);const uo={};d.$set(uo),q[2]?le?(le.p(q,Oe),Oe&4&&M(le,1)):(le=Xr(q),le.c(),M(le,1),le.m(m,null)):le&&(pe(),C(le,1,1,()=>{le=null}),de()),q[1]!="planning"?ie?(ie.p(q,Oe),Oe&2&&M(ie,1)):(ie=Wr(q),ie.c(),M(ie,1),ie.m(R,I)):ie&&(pe(),C(ie,1,1,()=>{ie=null}),de());const Sn={};Oe&1&&(Sn.url=q[0]),!D&&Oe&4&&(D=!0,Sn.routeTool=q[2],we(()=>D=!1)),B.$set(Sn),q[1]!="planning"?Me?(Me.p(q,Oe),Oe&2&&M(Me,1)):(Me=Vr(q),Me.c(),M(Me,1),Me.m(T,z)):Me&&(pe(),C(Me,1,1,()=>{Me=null}),de());const fo={};ue.$set(fo);const co={};me.$set(co)},i(q){Te||(M(n.$$.fragment,q),M(o.$$.fragment,q),M(l.$$.fragment,q),M(H),M(Z),M(g.$$.fragment,q),M(_.$$.fragment,q),M(d.$$.fragment,q),M(w.$$.fragment,q),M(le),M(ie),M(B.$$.fragment,q),M(Me),M(ue.$$.fragment,q),M(Ee.$$.fragment,q),M(me.$$.fragment,q),Te=!0)},o(q){C(n.$$.fragment,q),C(o.$$.fragment,q),C(l.$$.fragment,q),C(H),C(Z),C(g.$$.fragment,q),C(_.$$.fragment,q),C(d.$$.fragment,q),C(w.$$.fragment,q),C(le),C(ie),C(B.$$.fragment,q),C(Me),C(ue.$$.fragment,q),C(Ee.$$.fragment,q),C(me.$$.fragment,q),Te=!1},d(q){q&&S(e),N(n),r[15](null),N(o),N(l),H&&H.d(),Z&&Z.d(),r[17](null),N(g),N(_),r[18](null),N(d),N(w),le&&le.d(),ie&&ie.d(),r[20](null),N(B),Me&&Me.d(),r[22](null),N(ue),N(Ee),r[23](null),N(me)}}}function ba(r,e,t){let n,i;W(r,Ue,T=>t(24,n=T)),W(r,Ce,T=>t(25,i=T));let{routeSnapperUrl:o}=e,{schema:s}=e,a,l=new Xs(n),u=new fl(n),f,c,p,g,v,y,_,h;const d={"edit-attribute":new Je,"edit-geometry":new Je,route:new Je,point:new Je,"free-polygon":new Je,"snap-polygon":new Je,"split-route":new Je,"street-view":new Je};Tr.forEach(T=>{n.on(T,z=>{d[st(Ce)].mapHandlers[T](z)})}),Ar.forEach(T=>{document.addEventListener(T,z=>{d[st(Ce)].documentHandlers[T](z)})});function b(T){let z={"edit-attribute":f,"edit-geometry":c,route:p,point:g,"free-polygon":v,"snap-polygon":y,"split-route":_,"street-view":h};const ue=i;if(ue==T){console.log(`Mode is already ${ue}, not changing`);return}console.log(`Stopping old mode ${ue}`),z[ue].stop(),Ce.set(T),console.log(`Starting new mode ${T}`),z[T].start()}bn(()=>{u==null||u.tearDown(),a==null||a.tearDown(),Tr.forEach(T=>{n.off(T,z=>{d[st(Ce)].mapHandlers[T](z)})}),Ar.forEach(T=>{document.removeEventListener(T,z=>{d[st(Ce)].documentHandlers[T](z)})})});function m(T){ae[T?"unshift":"push"](()=>{f=T,t(3,f)})}function w(T){ae[T?"unshift":"push"](()=>{c=T,t(4,c)})}function L(T){ae[T?"unshift":"push"](()=>{g=T,t(6,g)})}function O(T){ae[T?"unshift":"push"](()=>{v=T,t(7,v)})}function R(T){ae[T?"unshift":"push"](()=>{y=T,t(8,y)})}function I(T){ae[T?"unshift":"push"](()=>{p=T,t(5,p)})}function B(T){a=T,t(2,a)}function D(T){ae[T?"unshift":"push"](()=>{_=T,t(9,_)})}function j(T){ae[T?"unshift":"push"](()=>{h=T,t(10,h)})}return r.$$set=T=>{"routeSnapperUrl"in T&&t(0,o=T.routeSnapperUrl),"schema"in T&&t(1,s=T.schema)},[o,s,a,f,c,p,g,v,y,_,h,l,u,d,b,m,w,L,O,R,I,B,D,j]}class ya extends ee{constructor(e){super(),te(this,e,ba,ma,ne,{routeSnapperUrl:0,schema:1})}}function Kr(r,e,t){const n=r.slice();return n[3]=e[t],n}function Zr(r,e,t){const n=r.slice();return n[6]=e[t],n}function Qr(r){let e;return{c(){e=$("td"),x(e,"class","svelte-11t6rxo"),Ae(e,"background-color",r[6])},m(t,n){k(t,e,n)},p(t,n){n&1&&Ae(e,"background-color",t[6])},d(t){t&&S(e)}}}function ei(r){let e,t=r[3]+"",n;return{c(){e=$("td"),n=U(t),x(e,"class","svelte-11t6rxo"),Ae(e,"width",r[2])},m(i,o){k(i,e,o),E(e,n)},p(i,o){o&2&&t!==(t=i[3]+"")&&Le(n,t)},d(i){i&&S(e)}}}function va(r){let e,t,n,i,o=He(r[0]),s=[];for(let u=0;u{"colors"in s&&t(0,n=s.colors),"labels"in s&&t(1,i=s.labels)},[n,i,o]}class ka extends ee{constructor(e){super(),te(this,e,wa,va,ne,{colors:0,labels:1})}}const Sa="/atip/capitalize_auto_form/assets/help-d011708a.svg";function Ea(r){let e,t;return{c(){e=$("img"),In(e.src,t=Sa)||x(e,"src",t),x(e,"title",r[0]),x(e,"alt",r[0])},m(n,i){k(n,e,i)},p(n,[i]){i&1&&x(e,"title",n[0]),i&1&&x(e,"alt",n[0])},i:G,o:G,d(n){n&&S(e)}}}function Ma(r,e,t){let{contents:n}=e;return r.$$set=i=>{"contents"in i&&t(0,n=i.contents)},[n]}class Wi extends ee{constructor(e){super(),te(this,e,Ma,Ea,ne,{contents:0})}}function $a(r){let e,t,n,i,o,s,a;return t=new Wi({props:{contents:"Data comes from OpenStreetMap, and may not always be correct. Unexpected values are treated as unknown. Freehand route segments and off-road paths generally have no speed data."}}),i=new ka({props:{colors:r[0],labels:["< 20","20","30","40",">= 50"]}}),s=new jo({props:{layers:["speed-limits"],contents:La}}),{c(){e=U(`(mph) -`),F(t.$$.fragment),n=A(),F(i.$$.fragment),o=A(),F(s.$$.fragment)},m(l,u){k(l,e,u),P(t,l,u),k(l,n,u),P(i,l,u),k(l,o,u),P(s,l,u),a=!0},p:G,i(l){a||(M(t.$$.fragment,l),M(i.$$.fragment,l),M(s.$$.fragment,l),a=!0)},o(l){C(t.$$.fragment,l),C(i.$$.fragment,l),C(s.$$.fragment,l),a=!1},d(l){l&&(S(e),S(n),S(o)),N(t,l),N(i,l),N(s,l)}}}let Ca="white",dt="speed-limits",An="speed-limits",Et=.8;function La(r){return r.speed_limit?`${Math.round(r.speed_limit)} mph`:"Unknown"}function Ta(r,e,t){let n,i,o;W(r,Ue,f=>t(2,n=f)),W(r,vt,f=>t(3,i=f)),W(r,ce,f=>t(4,o=f));let{id:s}=e,a=["#00AB4D","#8ECA4D","#F7BB00","#BB0000","#470000"];const l=["case",["<",["get","speed_limit"],20],a[0],["==",["get","speed_limit"],20],a[1],["==",["get","speed_limit"],30],a[2],["==",["get","speed_limit"],40],a[3],[">=",["get","speed_limit"],50],a[4],Ca],u=["case",["<",["get","speed_limit"],20],Et,["==",["get","speed_limit"],20],Et,["==",["get","speed_limit"],30],Et,["==",["get","speed_limit"],40],Et,[">=",["get","speed_limit"],50],Et,0];return ut(n,dt,nt()),Nt(n,{id:An,source:dt,color:l,width:Fn,opacity:u}),Ht(async()=>{try{if(s){let f=o.features.find(p=>p.id==s),c=JSON.parse(await i.speedLimitForRoute(f.properties.waypoints));n.getSource(dt).setData(c)}else{let f=JSON.parse(await i.allSpeedLimits());n.getSource(dt).setData(f)}}catch(f){window.alert(`Couldn't calculate speed limits for route: ${f}`)}}),bn(()=>{n.getLayer(An)&&n.removeLayer(An),n.getSource(dt)&&n.removeSource(dt)}),r.$$set=f=>{"id"in f&&t(1,s=f.id)},[a,s]}class Vi extends ee{constructor(e){super(),te(this,e,Ta,$a,ne,{id:1})}}function Aa(r){let e;return{c(){e=$("p"),e.textContent="Route info loading..."},m(t,n){k(t,e,n)},p:G,i:G,o:G,d(t){t&&S(e)}}}function Oa(r){let e,t,n,i,o,s,a,l,u,f,c,p=r[1]=="speed limits"&&ti();return{c(){e=$("label"),t=U(`Show layer: - `),n=$("select"),i=$("option"),i.textContent="None",o=$("option"),o.textContent="Speed limits",a=A(),p&&p.c(),l=be(),i.__value="none",fe(i,i.__value),o.__value="speed limits",fe(o,o.__value),n.disabled=s=r[0]!=null,r[1]===void 0&&yn(()=>r[3].call(n))},m(g,v){k(g,e,v),E(e,t),E(e,n),E(n,i),E(n,o),on(n,r[1],!0),k(g,a,v),p&&p.m(g,v),k(g,l,v),u=!0,f||(c=Y(n,"change",r[3]),f=!0)},p(g,v){(!u||v&1&&s!==(s=g[0]!=null))&&(n.disabled=s),v&2&&on(n,g[1]),g[1]=="speed limits"?p?(p.p(g,v),v&2&&M(p,1)):(p=ti(),p.c(),M(p,1),p.m(l.parentNode,l)):p&&(pe(),C(p,1,1,()=>{p=null}),de())},i(g){u||(M(p),u=!0)},o(g){C(p),u=!1},d(g){g&&(S(e),S(a),S(l)),p&&p.d(g),f=!1,c()}}}function ti(r){let e,t;return e=new Vi({props:{id:void 0}}),{c(){F(e.$$.fragment)},m(n,i){P(e,n,i),t=!0},p:G,i(n){t||(M(e.$$.fragment,n),t=!0)},o(n){C(e.$$.fragment,n),t=!1},d(n){N(e,n)}}}function Ra(r){let e,t,n,i;const o=[Oa,Aa],s=[];function a(l,u){return l[2]?0:1}return e=a(r),t=s[e]=o[e](r),{c(){t.c(),n=be()},m(l,u){s[e].m(l,u),k(l,n,u),i=!0},p(l,[u]){let f=e;e=a(l),e===f?s[e].p(l,u):(pe(),C(s[f],1,1,()=>{s[f]=null}),de(),t=s[e],t?t.p(l,u):(t=s[e]=o[e](l),t.c()),M(t,1),t.m(n.parentNode,n))},i(l){i||(M(t),i=!0)},o(l){C(t),i=!1},d(l){l&&S(n),s[e].d(l)}}}function xa(r,e,t){let n,i;W(r,xe,a=>t(0,n=a)),W(r,vt,a=>t(2,i=a));let o="none";function s(){o=yi(this),t(1,o),t(0,n)}return r.$$.update=()=>{r.$$.dirty&1&&n&&t(1,o="none")},[n,o,i,s]}class Ia extends ee{constructor(e){super(),te(this,e,xa,Ra,ne,{})}}function Fa(r){let e,t,n,i,o,s,a,l,u,f;return{c(){e=$("p"),t=U(r[4]),n=A(),i=$("button"),o=U(r[5]),s=A(),a=$("button"),l=U(r[6]),x(i,"type","button"),x(a,"type","button")},m(c,p){k(c,e,p),E(e,t),k(c,n,p),k(c,i,p),E(i,o),k(c,s,p),k(c,a,p),E(a,l),u||(f=[Y(i,"click",r[7]),Y(a,"click",r[8])],u=!0)},p(c,p){p&16&&Le(t,c[4]),p&32&&Le(o,c[5]),p&64&&Le(l,c[6])},d(c){c&&(S(e),S(n),S(i),S(s),S(a)),u=!1,Ie(f)}}}function Pa(r){let e,t,n,i,o,s;function a(p){r[9](p)}function l(p){r[10](p)}function u(p){r[11](p)}function f(p){r[12](p)}let c={$$slots:{default:[Fa]},$$scope:{ctx:r}};return r[3]!==void 0&&(c.title=r[3]),r[0]!==void 0&&(c.open=r[0]),r[1]!==void 0&&(c.displayEscapeButton=r[1]),r[2]!==void 0&&(c.canCloseByClickingBackground=r[2]),e=new wi({props:c}),ae.push(()=>ve(e,"title",a)),ae.push(()=>ve(e,"open",l)),ae.push(()=>ve(e,"displayEscapeButton",u)),ae.push(()=>ve(e,"canCloseByClickingBackground",f)),{c(){F(e.$$.fragment)},m(p,g){P(e,p,g),s=!0},p(p,[g]){const v={};g&16496&&(v.$$scope={dirty:g,ctx:p}),!t&&g&8&&(t=!0,v.title=p[3],we(()=>t=!1)),!n&&g&1&&(n=!0,v.open=p[0],we(()=>n=!1)),!i&&g&2&&(i=!0,v.displayEscapeButton=p[1],we(()=>i=!1)),!o&&g&4&&(o=!0,v.canCloseByClickingBackground=p[2],we(()=>o=!1)),e.$set(v)},i(p){s||(M(e.$$.fragment,p),s=!0)},o(p){C(e.$$.fragment,p),s=!1},d(p){N(e,p)}}}function Na(r,e,t){const n=To();let{open:i=!1}=e,{displayEscapeButton:o=!1}=e,{canCloseByClickingBackground:s=!1}=e,{title:a}=e,{message:l}=e,{confirmButtonText:u="Confirm"}=e,{cancelButtonText:f="Cancel"}=e;function c(){n("confirmAction")}function p(){n("cancelAction")}function g(h){a=h,t(3,a)}function v(h){i=h,t(0,i)}function y(h){o=h,t(1,o)}function _(h){s=h,t(2,s)}return r.$$set=h=>{"open"in h&&t(0,i=h.open),"displayEscapeButton"in h&&t(1,o=h.displayEscapeButton),"canCloseByClickingBackground"in h&&t(2,s=h.canCloseByClickingBackground),"title"in h&&t(3,a=h.title),"message"in h&&t(4,l=h.message),"confirmButtonText"in h&&t(5,u=h.confirmButtonText),"cancelButtonText"in h&&t(6,f=h.cancelButtonText)},[i,o,s,a,l,u,f,c,p,g,v,y,_]}class Ba extends ee{constructor(e){super(),te(this,e,Na,Pa,ne,{open:0,displayEscapeButton:1,canCloseByClickingBackground:2,title:3,message:4,confirmButtonText:5,cancelButtonText:6})}}function ni(r){let e,t;return e=new Oo({props:{errorMessage:r[2]}}),{c(){F(e.$$.fragment)},m(n,i){P(e,n,i),t=!0},p(n,i){const o={};i&4&&(o.errorMessage=n[2]),e.$set(o)},i(n){t||(M(e.$$.fragment,n),t=!0)},o(n){C(e.$$.fragment,n),t=!1},d(n){N(e,n)}}}function ri(r){let e;return{c(){e=$("p"),e.textContent=`Finish drawing on the map and/or select "Edit attributes" to use these - options.`,x(e,"class","reminder")},m(t,n){k(t,e,n)},d(t){t&&S(e)}}}function Da(r){let e,t,n,i,o,s,a,l,u,f,c,p,g,v,y,_,h,d,b=r[1].features.length+"",m,w,L=Pn(r[0])+"",O,R,I,B,D,j,T,z,ue,he,Se,Ee,_e=r[2]&&ni(r);f=new Ao({props:{label:"Load from GeoJSON",id:"load-geojson",disabled:r[4],loadFile:r[9]}});function me(H){r[14](H)}let Te={title:"Would you like to clear your work?",message:"This will delete all your drawn interventions."};r[3]!==void 0&&(Te.open=r[3]),T=new Ba({props:Te}),ae.push(()=>ve(T,"open",me)),T.$on("cancelAction",r[6]),T.$on("confirmAction",r[7]);let se=r[4]&&ri();return{c(){e=$("div"),t=$("label"),n=U(`Scheme name: - `),i=$("input"),o=A(),s=$("br"),a=A(),l=$("div"),_e&&_e.c(),u=A(),F(f.$$.fragment),c=A(),p=$("button"),g=U("Export to GeoJSON"),v=A(),y=$("br"),_=A(),h=$("div"),d=$("span"),m=U(b),w=A(),O=U(L),R=A(),I=$("button"),B=U("Clear all"),j=A(),F(T.$$.fragment),ue=A(),se&&se.c(),x(i,"type","text"),x(p,"type","button"),x(p,"class","align-right svelte-wfhzcu"),p.disabled=r[4],x(I,"type","button"),x(I,"class","align-right svelte-wfhzcu"),I.disabled=D=r[1].features.length==0||r[4]},m(H,Z){k(H,e,Z),E(e,t),E(t,n),E(t,i),fe(i,r[1].scheme_name),k(H,o,Z),k(H,s,Z),k(H,a,Z),k(H,l,Z),_e&&_e.m(l,null),E(l,u),P(f,l,null),E(l,c),E(l,p),E(p,g),k(H,v,Z),k(H,y,Z),k(H,_,Z),k(H,h,Z),E(h,d),E(d,m),E(d,w),E(d,O),E(h,R),E(h,I),E(I,B),E(h,j),P(T,h,null),E(h,ue),se&&se.m(h,null),he=!0,Se||(Ee=[Y(i,"input",r[13]),Y(p,"click",r[8]),Y(I,"click",r[5])],Se=!0)},p(H,[Z]){Z&2&&i.value!==H[1].scheme_name&&fe(i,H[1].scheme_name),H[2]?_e?(_e.p(H,Z),Z&4&&M(_e,1)):(_e=ni(H),_e.c(),M(_e,1),_e.m(l,u)):_e&&(pe(),C(_e,1,1,()=>{_e=null}),de());const Ye={};Z&16&&(Ye.disabled=H[4]),f.$set(Ye),(!he||Z&16)&&(p.disabled=H[4]),(!he||Z&2)&&b!==(b=H[1].features.length+"")&&Le(m,b),(!he||Z&1)&&L!==(L=Pn(H[0])+"")&&Le(O,L),(!he||Z&18&&D!==(D=H[1].features.length==0||H[4]))&&(I.disabled=D);const it={};!z&&Z&8&&(z=!0,it.open=H[3],we(()=>z=!1)),T.$set(it),H[4]?se||(se=ri(),se.c(),se.m(h,null)):se&&(se.d(1),se=null)},i(H){he||(M(_e),M(f.$$.fragment,H),M(T.$$.fragment,H),he=!0)},o(H){C(_e),C(f.$$.fragment,H),C(T.$$.fragment,H),he=!1},d(H){H&&(S(e),S(o),S(s),S(a),S(l),S(v),S(y),S(_),S(h)),_e&&_e.d(),N(f),N(T),se&&se.d(),Se=!1,Ie(Ee)}}}function Ha(r,e){var t=document.createElement("a");t.setAttribute("href","data:text/plain;charset=utf-8, "+encodeURIComponent(e)),t.setAttribute("download",r),document.body.appendChild(t),t.click(),document.body.removeChild(t)}function ja(r,e,t){let n,i;W(r,ce,m=>t(1,n=m)),W(r,Ut,m=>t(4,i=m));let{authorityName:o}=e,{schema:s}=e,a="",l=o;s!="v1"&&(l+=`_${s}`);let u=!1,f=!1;Ht(async()=>{let w=new URLSearchParams(window.location.search).get("geojsonUrl"),L=window.localStorage.getItem(l);if(w){console.log(`Loading GeoJSON from ${w}`);try{let R=await(await fetch(w)).text();ce.set(h(JSON.parse(R)))}catch(O){console.log(`Failed to load from URL: ${O}`)}}else if(L)try{ce.set(h(JSON.parse(L)))}catch(O){console.log(`Failed to load from local storage: ${O}`)}t(12,u=!0)});function c(){t(3,f=!0)}function p(){t(3,f=!1)}function g(){t(3,f=!1),ce.update(m=>(delete m.scheme_name,m.features=[],m)),xe.set(null),Ge.set(null),ln.set(null),an.set(null)}function v(){const m=JSON.parse(JSON.stringify(n));for(let w of m.features)delete w.properties.hide_while_editing;return m}function y(){let m=v();var w=l;m.authority=o,m.origin="atip-v2",m.scheme_name&&(w+="_"+m.scheme_name),w+=".txt",Ha(w,JSON.stringify(m,null," "))}function _(m){try{ce.set(h(JSON.parse(m)))}catch(w){t(2,a=`Couldn't load scheme from a file: ${w}`)}}function h(m){let w=1;for(let L of m.features)L.properties||(L.properties={name:"",description:"",intervention_type:"other"}),L.geometry.type=="LineString"&&!L.properties.length_meters&&(L.properties.length_meters=en(L,{units:"kilometers"})*1e3),L.id=w++;return m}function d(){n.scheme_name=this.value,ce.set(n)}function b(m){f=m,t(3,f)}return r.$$set=m=>{"authorityName"in m&&t(10,o=m.authorityName),"schema"in m&&t(0,s=m.schema)},r.$$.update=()=>{r.$$.dirty&6146&&u&&n&&(console.log("GJ changed, saving to local storage"),window.localStorage.setItem(l,JSON.stringify(v())))},[s,n,a,f,i,c,p,g,y,_,o,l,u,d,b]}class Ua extends ee{constructor(e){super(),te(this,e,ja,Da,ne,{authorityName:10,schema:0})}}function za(r){let e,t,n,i,o,s,a,l,u,f,c,p,g,v,y,_,h,d,b,m,w,L;return{c(){e=$("h2"),e.textContent=`Drawing ${r[1]} on the map`,t=A(),n=$("p"),n.textContent=`Use the tools on right to sketch new ${r[1]} on the map. Each tool has instructions + Bing Streetside`),f=A(),F(c.$$.fragment),x(t,"type","radio"),t.__value="google",fe(t,t.__value),x(l,"type","radio"),l.__value="bing",fe(l,l.__value),g.p(t,l)},m(_,h){k(_,e,h),E(e,t),t.checked=t.__value===r[0].streetViewImagery,E(e,n),k(_,i,h),k(_,o,h),k(_,s,h),k(_,a,h),E(a,l),l.checked=l.__value===r[0].streetViewImagery,E(a,u),k(_,f,h),P(c,_,h),p=!0,v||(y=[Y(t,"change",r[6]),Y(l,"change",r[8])],v=!0)},p(_,h){h&1&&(t.checked=t.__value===_[0].streetViewImagery),h&1&&(l.checked=l.__value===_[0].streetViewImagery);const d={};h&1024&&(d.$$scope={dirty:h,ctx:_}),c.$set(d)},i(_){p||(M(c.$$.fragment,_),p=!0)},o(_){C(c.$$.fragment,_),p=!1},d(_){_&&(S(e),S(i),S(o),S(s),S(a),S(f)),N(c,_),g.r(),v=!1,Ie(y)}}}function da(r){let e;return{c(){e=$("ul"),e.innerHTML="
  • Click on the map to open a new tab with a 3rd-party imagery provider
  • Press Escape to exit this mode
  • "},m(t,n){k(t,e,n)},p:G,d(t){t&&S(e)}}}function ha(r){let e,t,n=r[1]==Yr&&Gr(r);return{c(){n&&n.c(),e=be()},m(i,o){n&&n.m(i,o),k(i,e,o),t=!0},p(i,[o]){i[1]==Yr?n?(n.p(i,o),o&2&&M(n,1)):(n=Gr(i),n.c(),M(n,1),n.m(e.parentNode,e)):n&&(pe(),C(n,1,1,()=>{n=null}),de())},i(i){t||(M(n),t=!0)},o(i){C(n),t=!1},d(i){i&&S(e),n&&n.d(i)}}}const Yr="street-view";function ga(r,e,t){let n,i,o;W(r,Ot,g=>t(0,n=g)),W(r,Ue,g=>t(9,i=g)),W(r,Ce,g=>t(1,o=g));let{eventHandler:s}=e,{changeMode:a}=e;function l(){i.getCanvas().style.cursor="zoom-in"}function u(){i.getCanvas().style.cursor="inherit"}s.mapHandlers.click=g=>{let v=g.lngLat.lng,y=g.lngLat.lat;n.streetViewImagery=="google"?window.open(`http://maps.google.com/maps?q=&layer=c&cbll=${y},${v}&cbp=11,0,0,0,0`,"_blank"):n.streetViewImagery=="bing"&&window.open(`https://www.bing.com/maps?cp=${y}~${v}&style=x`,"_blank")},s.documentHandlers.keydown=g=>{g.key=="Escape"&&(a("edit-attribute"),g.preventDefault())};const f=[[]];function c(){n.streetViewImagery=this.__value,Ot.set(n)}function p(){n.streetViewImagery=this.__value,Ot.set(n)}return r.$$set=g=>{"eventHandler"in g&&t(2,s=g.eventHandler),"changeMode"in g&&t(3,a=g.changeMode)},[n,o,s,a,l,u,c,f,p]}class _a extends ee{constructor(e){super(),te(this,e,ga,ha,ne,{eventHandler:2,changeMode:3,start:4,stop:5})}get start(){return this.$$.ctx[4]}get stop(){return this.$$.ctx[5]}}function Jr(r){let e,t,n={schema:r[1],pointTool:r[11],polygonTool:r[12],routeTool:r[2],eventHandler:r[13]["edit-geometry"]};return e=new Pl({props:n}),r[16](e),{c(){F(e.$$.fragment)},m(i,o){P(e,i,o),t=!0},p(i,o){const s={};o&2&&(s.schema=i[1]),o&4&&(s.routeTool=i[2]),e.$set(s)},i(i){t||(M(e.$$.fragment,i),t=!0)},o(i){C(e.$$.fragment,i),t=!1},d(i){r[16](null),N(e,i)}}}function Xr(r){let e,t;return e=new Ve({props:{thisMode:"point",label:"New point",icon:Bs,changeMode:r[14]}}),{c(){F(e.$$.fragment)},m(n,i){P(e,n,i),t=!0},p:G,i(n){t||(M(e.$$.fragment,n),t=!0)},o(n){C(e.$$.fragment,n),t=!1},d(n){N(e,n)}}}function Wr(r){let e,t,n={changeMode:r[14],routeTool:r[2],eventHandler:r[13]["snap-polygon"]};return e=new pa({props:n}),r[19](e),{c(){F(e.$$.fragment)},m(i,o){P(e,i,o),t=!0},p(i,o){const s={};o&4&&(s.routeTool=i[2]),e.$set(s)},i(i){t||(M(e.$$.fragment,i),t=!0)},o(i){C(e.$$.fragment,i),t=!1},d(i){r[19](null),N(e,i)}}}function Vr(r){let e,t;return e=new Ve({props:{thisMode:"route",label:"New route",icon:js,changeMode:r[14]}}),{c(){F(e.$$.fragment)},m(n,i){P(e,n,i),t=!0},p:G,i(n){t||(M(e.$$.fragment,n),t=!0)},o(n){C(e.$$.fragment,n),t=!1},d(n){N(e,n)}}}function Kr(r){let e,t;return e=new Ve({props:{thisMode:"split-route",label:"Split route",icon:Ri,changeMode:r[14]}}),{c(){F(e.$$.fragment)},m(n,i){P(e,n,i),t=!0},p:G,i(n){t||(M(e.$$.fragment,n),t=!0)},o(n){C(e.$$.fragment,n),t=!1},d(n){N(e,n)}}}function ma(r){let e,t,n,i,o,s,a,l,u,f,c,p,g,v,y,_,h,d,b,m,w,L,O,R,I,B,D,j,T,z,ue,he,Se,Ee,_e,me,Te;n=new Ve({props:{thisMode:"edit-attribute",label:"Edit attributes",icon:Ps,changeMode:r[14]}});let se={schema:r[1],changeMode:r[14],eventHandler:r[13]["edit-attribute"]};o=new Js({props:se}),r[15](o),l=new Ve({props:{thisMode:"edit-geometry",label:"Edit geometry",icon:Ns,changeMode:r[14]}});let H=r[2]&&Jr(r),Z=r[1]!="planning"&&Xr(r),Ye={changeMode:r[14],pointTool:r[11],eventHandler:r[13].point};g=new Dl({props:Ye}),r[17](g),_=new Ve({props:{thisMode:"free-polygon",label:"New polygon (freehand)",icon:Ds,changeMode:r[14]}});let ot={changeMode:r[14],polygonTool:r[12],eventHandler:r[13]["free-polygon"]};d=new Ul({props:ot}),r[18](d),w=new Ve({props:{thisMode:"snap-polygon",label:"New polygon (snapped)",icon:Hs,changeMode:r[14]}});let le=r[2]&&Wr(r),ie=r[1]!="planning"&&Vr(r);function V(q){r[21](q)}let oe={changeMode:r[14],url:r[0],eventHandler:r[13].route};r[2]!==void 0&&(oe.routeTool=r[2]),B=new Vl({props:oe}),r[20](B),ae.push(()=>ve(B,"routeTool",V));let Me=r[1]!="planning"&&Kr(r),so={changeMode:r[14],eventHandler:r[13]["split-route"]};ue=new la({props:so}),r[22](ue),Ee=new Ve({props:{thisMode:"street-view",label:"Street View",icon:Us,changeMode:r[14]}});let lo={changeMode:r[14],eventHandler:r[13]["street-view"]};return me=new _a({props:lo}),r[23](me),{c(){e=$("div"),t=$("div"),F(n.$$.fragment),i=A(),F(o.$$.fragment),s=A(),a=$("div"),F(l.$$.fragment),u=A(),H&&H.c(),f=A(),c=$("div"),Z&&Z.c(),p=A(),F(g.$$.fragment),v=A(),y=$("div"),F(_.$$.fragment),h=A(),F(d.$$.fragment),b=A(),m=$("div"),F(w.$$.fragment),L=A(),le&&le.c(),O=A(),R=$("div"),ie&&ie.c(),I=A(),F(B.$$.fragment),j=A(),T=$("div"),Me&&Me.c(),z=A(),F(ue.$$.fragment),he=A(),Se=$("div"),F(Ee.$$.fragment),_e=A(),F(me.$$.fragment),x(e,"class","toolbox svelte-4s4d3o")},m(q,Oe){k(q,e,Oe),E(e,t),P(n,t,null),E(t,i),P(o,t,null),E(e,s),E(e,a),P(l,a,null),E(a,u),H&&H.m(a,null),E(e,f),E(e,c),Z&&Z.m(c,null),E(c,p),P(g,c,null),E(e,v),E(e,y),P(_,y,null),E(y,h),P(d,y,null),E(e,b),E(e,m),P(w,m,null),E(m,L),le&&le.m(m,null),E(e,O),E(e,R),ie&&ie.m(R,null),E(R,I),P(B,R,null),E(e,j),E(e,T),Me&&Me.m(T,null),E(T,z),P(ue,T,null),E(e,he),E(e,Se),P(Ee,Se,null),E(Se,_e),P(me,Se,null),Te=!0},p(q,[Oe]){const dr={};Oe&2&&(dr.schema=q[1]),o.$set(dr),q[2]?H?(H.p(q,Oe),Oe&4&&M(H,1)):(H=Jr(q),H.c(),M(H,1),H.m(a,null)):H&&(pe(),C(H,1,1,()=>{H=null}),de()),q[1]!="planning"?Z?(Z.p(q,Oe),Oe&2&&M(Z,1)):(Z=Xr(q),Z.c(),M(Z,1),Z.m(c,p)):Z&&(pe(),C(Z,1,1,()=>{Z=null}),de());const ao={};g.$set(ao);const uo={};d.$set(uo),q[2]?le?(le.p(q,Oe),Oe&4&&M(le,1)):(le=Wr(q),le.c(),M(le,1),le.m(m,null)):le&&(pe(),C(le,1,1,()=>{le=null}),de()),q[1]!="planning"?ie?(ie.p(q,Oe),Oe&2&&M(ie,1)):(ie=Vr(q),ie.c(),M(ie,1),ie.m(R,I)):ie&&(pe(),C(ie,1,1,()=>{ie=null}),de());const En={};Oe&1&&(En.url=q[0]),!D&&Oe&4&&(D=!0,En.routeTool=q[2],we(()=>D=!1)),B.$set(En),q[1]!="planning"?Me?(Me.p(q,Oe),Oe&2&&M(Me,1)):(Me=Kr(q),Me.c(),M(Me,1),Me.m(T,z)):Me&&(pe(),C(Me,1,1,()=>{Me=null}),de());const fo={};ue.$set(fo);const co={};me.$set(co)},i(q){Te||(M(n.$$.fragment,q),M(o.$$.fragment,q),M(l.$$.fragment,q),M(H),M(Z),M(g.$$.fragment,q),M(_.$$.fragment,q),M(d.$$.fragment,q),M(w.$$.fragment,q),M(le),M(ie),M(B.$$.fragment,q),M(Me),M(ue.$$.fragment,q),M(Ee.$$.fragment,q),M(me.$$.fragment,q),Te=!0)},o(q){C(n.$$.fragment,q),C(o.$$.fragment,q),C(l.$$.fragment,q),C(H),C(Z),C(g.$$.fragment,q),C(_.$$.fragment,q),C(d.$$.fragment,q),C(w.$$.fragment,q),C(le),C(ie),C(B.$$.fragment,q),C(Me),C(ue.$$.fragment,q),C(Ee.$$.fragment,q),C(me.$$.fragment,q),Te=!1},d(q){q&&S(e),N(n),r[15](null),N(o),N(l),H&&H.d(),Z&&Z.d(),r[17](null),N(g),N(_),r[18](null),N(d),N(w),le&&le.d(),ie&&ie.d(),r[20](null),N(B),Me&&Me.d(),r[22](null),N(ue),N(Ee),r[23](null),N(me)}}}function ba(r,e,t){let n,i;W(r,Ue,T=>t(24,n=T)),W(r,Ce,T=>t(25,i=T));let{routeSnapperUrl:o}=e,{schema:s}=e,a,l=new Xs(n),u=new fl(n),f,c,p,g,v,y,_,h;const d={"edit-attribute":new Je,"edit-geometry":new Je,route:new Je,point:new Je,"free-polygon":new Je,"snap-polygon":new Je,"split-route":new Je,"street-view":new Je};Ar.forEach(T=>{n.on(T,z=>{d[lt(Ce)].mapHandlers[T](z)})}),Or.forEach(T=>{document.addEventListener(T,z=>{d[lt(Ce)].documentHandlers[T](z)})});function b(T){let z={"edit-attribute":f,"edit-geometry":c,route:p,point:g,"free-polygon":v,"snap-polygon":y,"split-route":_,"street-view":h};const ue=i;if(ue==T){console.log(`Mode is already ${ue}, not changing`);return}console.log(`Stopping old mode ${ue}`),z[ue].stop(),Ce.set(T),console.log(`Starting new mode ${T}`),z[T].start()}yn(()=>{u==null||u.tearDown(),a==null||a.tearDown(),Ar.forEach(T=>{n.off(T,z=>{d[lt(Ce)].mapHandlers[T](z)})}),Or.forEach(T=>{document.removeEventListener(T,z=>{d[lt(Ce)].documentHandlers[T](z)})})});function m(T){ae[T?"unshift":"push"](()=>{f=T,t(3,f)})}function w(T){ae[T?"unshift":"push"](()=>{c=T,t(4,c)})}function L(T){ae[T?"unshift":"push"](()=>{g=T,t(6,g)})}function O(T){ae[T?"unshift":"push"](()=>{v=T,t(7,v)})}function R(T){ae[T?"unshift":"push"](()=>{y=T,t(8,y)})}function I(T){ae[T?"unshift":"push"](()=>{p=T,t(5,p)})}function B(T){a=T,t(2,a)}function D(T){ae[T?"unshift":"push"](()=>{_=T,t(9,_)})}function j(T){ae[T?"unshift":"push"](()=>{h=T,t(10,h)})}return r.$$set=T=>{"routeSnapperUrl"in T&&t(0,o=T.routeSnapperUrl),"schema"in T&&t(1,s=T.schema)},[o,s,a,f,c,p,g,v,y,_,h,l,u,d,b,m,w,L,O,R,I,B,D,j]}class ya extends ee{constructor(e){super(),te(this,e,ba,ma,ne,{routeSnapperUrl:0,schema:1})}}function Zr(r,e,t){const n=r.slice();return n[3]=e[t],n}function Qr(r,e,t){const n=r.slice();return n[6]=e[t],n}function ei(r){let e;return{c(){e=$("td"),x(e,"class","svelte-11t6rxo"),Ae(e,"background-color",r[6])},m(t,n){k(t,e,n)},p(t,n){n&1&&Ae(e,"background-color",t[6])},d(t){t&&S(e)}}}function ti(r){let e,t=r[3]+"",n;return{c(){e=$("td"),n=U(t),x(e,"class","svelte-11t6rxo"),Ae(e,"width",r[2])},m(i,o){k(i,e,o),E(e,n)},p(i,o){o&2&&t!==(t=i[3]+"")&&Le(n,t)},d(i){i&&S(e)}}}function va(r){let e,t,n,i,o=He(r[0]),s=[];for(let u=0;u{"colors"in s&&t(0,n=s.colors),"labels"in s&&t(1,i=s.labels)},[n,i,o]}class ka extends ee{constructor(e){super(),te(this,e,wa,va,ne,{colors:0,labels:1})}}const Sa="/atip/capitalize_auto_form/assets/help-d011708a.svg";function Ea(r){let e,t;return{c(){e=$("img"),Fn(e.src,t=Sa)||x(e,"src",t),x(e,"title",r[0]),x(e,"alt",r[0])},m(n,i){k(n,e,i)},p(n,[i]){i&1&&x(e,"title",n[0]),i&1&&x(e,"alt",n[0])},i:G,o:G,d(n){n&&S(e)}}}function Ma(r,e,t){let{contents:n}=e;return r.$$set=i=>{"contents"in i&&t(0,n=i.contents)},[n]}class Wi extends ee{constructor(e){super(),te(this,e,Ma,Ea,ne,{contents:0})}}function $a(r){let e,t,n,i,o,s,a;return t=new Wi({props:{contents:"Data comes from OpenStreetMap, and may not always be correct. Unexpected values are treated as unknown. Freehand route segments and off-road paths generally have no speed data."}}),i=new ka({props:{colors:r[0],labels:["< 20","20","30","40",">= 50"]}}),s=new jo({props:{layers:["speed-limits"],contents:La}}),{c(){e=U(`(mph) +`),F(t.$$.fragment),n=A(),F(i.$$.fragment),o=A(),F(s.$$.fragment)},m(l,u){k(l,e,u),P(t,l,u),k(l,n,u),P(i,l,u),k(l,o,u),P(s,l,u),a=!0},p:G,i(l){a||(M(t.$$.fragment,l),M(i.$$.fragment,l),M(s.$$.fragment,l),a=!0)},o(l){C(t.$$.fragment,l),C(i.$$.fragment,l),C(s.$$.fragment,l),a=!1},d(l){l&&(S(e),S(n),S(o)),N(t,l),N(i,l),N(s,l)}}}let Ca="white",ht="speed-limits",On="speed-limits",Mt=.8;function La(r){return r.speed_limit?`${Math.round(r.speed_limit)} mph`:"Unknown"}function Ta(r,e,t){let n,i,o;W(r,Ue,f=>t(2,n=f)),W(r,wt,f=>t(3,i=f)),W(r,ce,f=>t(4,o=f));let{id:s}=e,a=["#00AB4D","#8ECA4D","#F7BB00","#BB0000","#470000"];const l=["case",["<",["get","speed_limit"],20],a[0],["==",["get","speed_limit"],20],a[1],["==",["get","speed_limit"],30],a[2],["==",["get","speed_limit"],40],a[3],[">=",["get","speed_limit"],50],a[4],Ca],u=["case",["<",["get","speed_limit"],20],Mt,["==",["get","speed_limit"],20],Mt,["==",["get","speed_limit"],30],Mt,["==",["get","speed_limit"],40],Mt,[">=",["get","speed_limit"],50],Mt,0];return ft(n,ht,nt()),Bt(n,{id:On,source:ht,color:l,width:Pn,opacity:u}),jt(async()=>{try{if(s){let f=o.features.find(p=>p.id==s),c=JSON.parse(await i.speedLimitForRoute(f.properties.waypoints));n.getSource(ht).setData(c)}else{let f=JSON.parse(await i.allSpeedLimits());n.getSource(ht).setData(f)}}catch(f){window.alert(`Couldn't calculate speed limits for route: ${f}`)}}),yn(()=>{n.getLayer(On)&&n.removeLayer(On),n.getSource(ht)&&n.removeSource(ht)}),r.$$set=f=>{"id"in f&&t(1,s=f.id)},[a,s]}class Vi extends ee{constructor(e){super(),te(this,e,Ta,$a,ne,{id:1})}}function Aa(r){let e;return{c(){e=$("p"),e.textContent="Route info loading..."},m(t,n){k(t,e,n)},p:G,i:G,o:G,d(t){t&&S(e)}}}function Oa(r){let e,t,n,i,o,s,a,l,u,f,c,p=r[1]=="speed limits"&&ni();return{c(){e=$("label"),t=U(`Show layer: + `),n=$("select"),i=$("option"),i.textContent="None",o=$("option"),o.textContent="Speed limits",a=A(),p&&p.c(),l=be(),i.__value="none",fe(i,i.__value),o.__value="speed limits",fe(o,o.__value),n.disabled=s=r[0]!=null,r[1]===void 0&&vn(()=>r[3].call(n))},m(g,v){k(g,e,v),E(e,t),E(e,n),E(n,i),E(n,o),sn(n,r[1],!0),k(g,a,v),p&&p.m(g,v),k(g,l,v),u=!0,f||(c=Y(n,"change",r[3]),f=!0)},p(g,v){(!u||v&1&&s!==(s=g[0]!=null))&&(n.disabled=s),v&2&&sn(n,g[1]),g[1]=="speed limits"?p?(p.p(g,v),v&2&&M(p,1)):(p=ni(),p.c(),M(p,1),p.m(l.parentNode,l)):p&&(pe(),C(p,1,1,()=>{p=null}),de())},i(g){u||(M(p),u=!0)},o(g){C(p),u=!1},d(g){g&&(S(e),S(a),S(l)),p&&p.d(g),f=!1,c()}}}function ni(r){let e,t;return e=new Vi({props:{id:void 0}}),{c(){F(e.$$.fragment)},m(n,i){P(e,n,i),t=!0},p:G,i(n){t||(M(e.$$.fragment,n),t=!0)},o(n){C(e.$$.fragment,n),t=!1},d(n){N(e,n)}}}function Ra(r){let e,t,n,i;const o=[Oa,Aa],s=[];function a(l,u){return l[2]?0:1}return e=a(r),t=s[e]=o[e](r),{c(){t.c(),n=be()},m(l,u){s[e].m(l,u),k(l,n,u),i=!0},p(l,[u]){let f=e;e=a(l),e===f?s[e].p(l,u):(pe(),C(s[f],1,1,()=>{s[f]=null}),de(),t=s[e],t?t.p(l,u):(t=s[e]=o[e](l),t.c()),M(t,1),t.m(n.parentNode,n))},i(l){i||(M(t),i=!0)},o(l){C(t),i=!1},d(l){l&&S(n),s[e].d(l)}}}function xa(r,e,t){let n,i;W(r,xe,a=>t(0,n=a)),W(r,wt,a=>t(2,i=a));let o="none";function s(){o=yi(this),t(1,o),t(0,n)}return r.$$.update=()=>{r.$$.dirty&1&&n&&t(1,o="none")},[n,o,i,s]}class Ia extends ee{constructor(e){super(),te(this,e,xa,Ra,ne,{})}}function Fa(r){let e,t,n,i,o,s,a,l,u,f;return{c(){e=$("p"),t=U(r[4]),n=A(),i=$("button"),o=U(r[5]),s=A(),a=$("button"),l=U(r[6]),x(i,"type","button"),x(a,"type","button")},m(c,p){k(c,e,p),E(e,t),k(c,n,p),k(c,i,p),E(i,o),k(c,s,p),k(c,a,p),E(a,l),u||(f=[Y(i,"click",r[7]),Y(a,"click",r[8])],u=!0)},p(c,p){p&16&&Le(t,c[4]),p&32&&Le(o,c[5]),p&64&&Le(l,c[6])},d(c){c&&(S(e),S(n),S(i),S(s),S(a)),u=!1,Ie(f)}}}function Pa(r){let e,t,n,i,o,s;function a(p){r[9](p)}function l(p){r[10](p)}function u(p){r[11](p)}function f(p){r[12](p)}let c={$$slots:{default:[Fa]},$$scope:{ctx:r}};return r[3]!==void 0&&(c.title=r[3]),r[0]!==void 0&&(c.open=r[0]),r[1]!==void 0&&(c.displayEscapeButton=r[1]),r[2]!==void 0&&(c.canCloseByClickingBackground=r[2]),e=new wi({props:c}),ae.push(()=>ve(e,"title",a)),ae.push(()=>ve(e,"open",l)),ae.push(()=>ve(e,"displayEscapeButton",u)),ae.push(()=>ve(e,"canCloseByClickingBackground",f)),{c(){F(e.$$.fragment)},m(p,g){P(e,p,g),s=!0},p(p,[g]){const v={};g&16496&&(v.$$scope={dirty:g,ctx:p}),!t&&g&8&&(t=!0,v.title=p[3],we(()=>t=!1)),!n&&g&1&&(n=!0,v.open=p[0],we(()=>n=!1)),!i&&g&2&&(i=!0,v.displayEscapeButton=p[1],we(()=>i=!1)),!o&&g&4&&(o=!0,v.canCloseByClickingBackground=p[2],we(()=>o=!1)),e.$set(v)},i(p){s||(M(e.$$.fragment,p),s=!0)},o(p){C(e.$$.fragment,p),s=!1},d(p){N(e,p)}}}function Na(r,e,t){const n=To();let{open:i=!1}=e,{displayEscapeButton:o=!1}=e,{canCloseByClickingBackground:s=!1}=e,{title:a}=e,{message:l}=e,{confirmButtonText:u="Confirm"}=e,{cancelButtonText:f="Cancel"}=e;function c(){n("confirmAction")}function p(){n("cancelAction")}function g(h){a=h,t(3,a)}function v(h){i=h,t(0,i)}function y(h){o=h,t(1,o)}function _(h){s=h,t(2,s)}return r.$$set=h=>{"open"in h&&t(0,i=h.open),"displayEscapeButton"in h&&t(1,o=h.displayEscapeButton),"canCloseByClickingBackground"in h&&t(2,s=h.canCloseByClickingBackground),"title"in h&&t(3,a=h.title),"message"in h&&t(4,l=h.message),"confirmButtonText"in h&&t(5,u=h.confirmButtonText),"cancelButtonText"in h&&t(6,f=h.cancelButtonText)},[i,o,s,a,l,u,f,c,p,g,v,y,_]}class Ba extends ee{constructor(e){super(),te(this,e,Na,Pa,ne,{open:0,displayEscapeButton:1,canCloseByClickingBackground:2,title:3,message:4,confirmButtonText:5,cancelButtonText:6})}}function ri(r){let e,t;return e=new Oo({props:{errorMessage:r[2]}}),{c(){F(e.$$.fragment)},m(n,i){P(e,n,i),t=!0},p(n,i){const o={};i&4&&(o.errorMessage=n[2]),e.$set(o)},i(n){t||(M(e.$$.fragment,n),t=!0)},o(n){C(e.$$.fragment,n),t=!1},d(n){N(e,n)}}}function ii(r){let e;return{c(){e=$("p"),e.textContent=`Finish drawing on the map and/or select "Edit attributes" to use these + options.`,x(e,"class","reminder")},m(t,n){k(t,e,n)},d(t){t&&S(e)}}}function Da(r){let e,t,n,i,o,s,a,l,u,f,c,p,g,v,y,_,h,d,b=r[1].features.length+"",m,w,L=Nn(r[0])+"",O,R,I,B,D,j,T,z,ue,he,Se,Ee,_e=r[2]&&ri(r);f=new Ao({props:{label:"Load from GeoJSON",id:"load-geojson",disabled:r[4],loadFile:r[9]}});function me(H){r[14](H)}let Te={title:"Would you like to clear your work?",message:"This will delete all your drawn interventions."};r[3]!==void 0&&(Te.open=r[3]),T=new Ba({props:Te}),ae.push(()=>ve(T,"open",me)),T.$on("cancelAction",r[6]),T.$on("confirmAction",r[7]);let se=r[4]&&ii();return{c(){e=$("div"),t=$("label"),n=U(`Scheme name: + `),i=$("input"),o=A(),s=$("br"),a=A(),l=$("div"),_e&&_e.c(),u=A(),F(f.$$.fragment),c=A(),p=$("button"),g=U("Export to GeoJSON"),v=A(),y=$("br"),_=A(),h=$("div"),d=$("span"),m=U(b),w=A(),O=U(L),R=A(),I=$("button"),B=U("Clear all"),j=A(),F(T.$$.fragment),ue=A(),se&&se.c(),x(i,"type","text"),x(p,"type","button"),x(p,"class","align-right svelte-wfhzcu"),p.disabled=r[4],x(I,"type","button"),x(I,"class","align-right svelte-wfhzcu"),I.disabled=D=r[1].features.length==0||r[4]},m(H,Z){k(H,e,Z),E(e,t),E(t,n),E(t,i),fe(i,r[1].scheme_name),k(H,o,Z),k(H,s,Z),k(H,a,Z),k(H,l,Z),_e&&_e.m(l,null),E(l,u),P(f,l,null),E(l,c),E(l,p),E(p,g),k(H,v,Z),k(H,y,Z),k(H,_,Z),k(H,h,Z),E(h,d),E(d,m),E(d,w),E(d,O),E(h,R),E(h,I),E(I,B),E(h,j),P(T,h,null),E(h,ue),se&&se.m(h,null),he=!0,Se||(Ee=[Y(i,"input",r[13]),Y(p,"click",r[8]),Y(I,"click",r[5])],Se=!0)},p(H,[Z]){Z&2&&i.value!==H[1].scheme_name&&fe(i,H[1].scheme_name),H[2]?_e?(_e.p(H,Z),Z&4&&M(_e,1)):(_e=ri(H),_e.c(),M(_e,1),_e.m(l,u)):_e&&(pe(),C(_e,1,1,()=>{_e=null}),de());const Ye={};Z&16&&(Ye.disabled=H[4]),f.$set(Ye),(!he||Z&16)&&(p.disabled=H[4]),(!he||Z&2)&&b!==(b=H[1].features.length+"")&&Le(m,b),(!he||Z&1)&&L!==(L=Nn(H[0])+"")&&Le(O,L),(!he||Z&18&&D!==(D=H[1].features.length==0||H[4]))&&(I.disabled=D);const ot={};!z&&Z&8&&(z=!0,ot.open=H[3],we(()=>z=!1)),T.$set(ot),H[4]?se||(se=ii(),se.c(),se.m(h,null)):se&&(se.d(1),se=null)},i(H){he||(M(_e),M(f.$$.fragment,H),M(T.$$.fragment,H),he=!0)},o(H){C(_e),C(f.$$.fragment,H),C(T.$$.fragment,H),he=!1},d(H){H&&(S(e),S(o),S(s),S(a),S(l),S(v),S(y),S(_),S(h)),_e&&_e.d(),N(f),N(T),se&&se.d(),Se=!1,Ie(Ee)}}}function Ha(r,e){var t=document.createElement("a");t.setAttribute("href","data:text/plain;charset=utf-8, "+encodeURIComponent(e)),t.setAttribute("download",r),document.body.appendChild(t),t.click(),document.body.removeChild(t)}function ja(r,e,t){let n,i;W(r,ce,m=>t(1,n=m)),W(r,zt,m=>t(4,i=m));let{authorityName:o}=e,{schema:s}=e,a="",l=o;s!="v1"&&(l+=`_${s}`);let u=!1,f=!1;jt(async()=>{let w=new URLSearchParams(window.location.search).get("geojsonUrl"),L=window.localStorage.getItem(l);if(w){console.log(`Loading GeoJSON from ${w}`);try{let R=await(await fetch(w)).text();ce.set(h(JSON.parse(R)))}catch(O){console.log(`Failed to load from URL: ${O}`)}}else if(L)try{ce.set(h(JSON.parse(L)))}catch(O){console.log(`Failed to load from local storage: ${O}`)}t(12,u=!0)});function c(){t(3,f=!0)}function p(){t(3,f=!1)}function g(){t(3,f=!1),ce.update(m=>(delete m.scheme_name,m.features=[],m)),xe.set(null),Ge.set(null),an.set(null),un.set(null)}function v(){const m=JSON.parse(JSON.stringify(n));for(let w of m.features)delete w.properties.hide_while_editing;return m}function y(){let m=v();var w=l;m.authority=o,m.origin="atip-v2",m.scheme_name&&(w+="_"+m.scheme_name),w+=".txt",Ha(w,JSON.stringify(m,null," "))}function _(m){try{ce.set(h(JSON.parse(m)))}catch(w){t(2,a=`Couldn't load scheme from a file: ${w}`)}}function h(m){let w=1;for(let L of m.features)L.properties||(L.properties={name:"",description:"",intervention_type:"other"}),L.geometry.type=="LineString"&&!L.properties.length_meters&&(L.properties.length_meters=tn(L,{units:"kilometers"})*1e3),L.id=w++;return m}function d(){n.scheme_name=this.value,ce.set(n)}function b(m){f=m,t(3,f)}return r.$$set=m=>{"authorityName"in m&&t(10,o=m.authorityName),"schema"in m&&t(0,s=m.schema)},r.$$.update=()=>{r.$$.dirty&6146&&u&&n&&(console.log("GJ changed, saving to local storage"),window.localStorage.setItem(l,JSON.stringify(v())))},[s,n,a,f,i,c,p,g,y,_,o,l,u,d,b]}class Ua extends ee{constructor(e){super(),te(this,e,ja,Da,ne,{authorityName:10,schema:0})}}function za(r){let e,t,n,i,o,s,a,l,u,f,c,p,g,v,y,_,h,d,b,m,w,L;return{c(){e=$("h2"),e.textContent=`Drawing ${r[1]} on the map`,t=A(),n=$("p"),n.textContent=`Use the tools on right to sketch new ${r[1]} on the map. Each tool has instructions that appear when you click on its icon.`,i=A(),o=$("p"),s=U("Modify existing "),a=U(r[1]),l=U(" on the map using "),u=$("b"),u.textContent="Edit geometry",f=U(" and clicking something."),c=A(),p=$("h2"),p.textContent="Filling out data",g=A(),v=$("p"),y=$("b"),y.textContent="Edit attributes",_=U(" mode allows selecting and adding attributes to "),h=U(r[1]),d=U(` that appear on the left.`),b=A(),m=$("h2"),m.textContent="Saving files",w=A(),L=$("p"),L.innerHTML=`ATIP does not send any data over the network or store your data in the cloud. The current file you're editing will be saved in your browser's local storage and automatically resume when you return to the page. The Export to GeoJSON and Load from GeoJSON buttons save and load GeoJSON files (with a .txt file extension) to your computer. You share these files with others - to collaborate on designs.`},m(O,R){k(O,e,R),k(O,t,R),k(O,n,R),k(O,i,R),k(O,o,R),E(o,s),E(o,a),E(o,l),E(o,u),E(o,f),k(O,c,R),k(O,p,R),k(O,g,R),k(O,v,R),E(v,y),E(v,_),E(v,h),E(v,d),k(O,b,R),k(O,m,R),k(O,w,R),k(O,L,R)},p:G,d(O){O&&(S(e),S(t),S(n),S(i),S(o),S(c),S(p),S(g),S(v),S(b),S(m),S(w),S(L))}}}function qa(r){let e,t,n;function i(s){r[3](s)}let o={title:"Instructions",$$slots:{default:[za]},$$scope:{ctx:r}};return r[0]!==void 0&&(o.open=r[0]),e=new wi({props:o}),ae.push(()=>ve(e,"open",i)),{c(){F(e.$$.fragment)},m(s,a){P(e,s,a),n=!0},p(s,[a]){const l={};a&16&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.open=s[0],we(()=>t=!1)),e.$set(l)},i(s){n||(M(e.$$.fragment,s),n=!0)},o(s){C(e.$$.fragment,s),n=!1},d(s){N(e,s)}}}function Ga(r,e,t){let{open:n}=e,{schema:i}=e,o=Pn(i);function s(a){n=a,t(0,n)}return r.$$set=a=>{"open"in a&&t(0,n=a.open),"schema"in a&&t(2,i=a.schema)},[n,o,i,s]}class Ya extends ee{constructor(e){super(),te(this,e,Ga,qa,ne,{open:0,schema:2})}}const Ja="ATF4Intervention",Xa=[{name:"name",type:"one-liner"},{name:"description",type:"textbox"},{name:"type",oneOf:["New segregated cycling facility","New junction treatment","New permanent footway","New shared use (walking and cycling) facilities","Improvements to make an existing walking/cycle route safer","Area-wide traffic management (including by TROs - both permanent and experimental)","Bus priority measures that also enable active travel (for example, bus gates)","Provision of secure cycle parking facilities","New road crossings","Restriction or reduction of car parking availability","School streets"]},{name:"complexity",oneOf:["high","medium","low"]}],Wa={name:Ja,members:Xa},Va=(r,e)=>(r=r.replace(new RegExp("((?t.toLowerCase()),r.replace(/(\p{Uppercase_Letter}+)(\p{Uppercase_Letter}\p{Lowercase_Letter}+)/gu,(t,n,i)=>n+e+i.toLowerCase()));function Ka(r,{separator:e="_",preserveConsecutiveUppercase:t=!1}={}){if(!(typeof r=="string"&&typeof e=="string"))throw new TypeError("The `text` and `separator` arguments should be of type `string`");if(r.length<2)return t?r:r.toLowerCase();const n=`$1${e}$2`,i=r.replace(/([\p{Lowercase_Letter}\d])(\p{Uppercase_Letter})/gu,n);return t?Va(i,e):i.replace(/(\p{Uppercase_Letter})(\p{Uppercase_Letter}\p{Lowercase_Letter}+)/gu,n).toLowerCase()}function ii(r){if(typeof r!="string")throw new TypeError("Expected a string");return r=Ka(r),r=r.toLowerCase().replace(/[_-]+/g," ").replace(/\s{2,}/g," ").trim(),r=r.charAt(0).toUpperCase()+r.slice(1),r}function Za(r){const e=r-1;return e*e*e+1}function _n(r,{delay:e=0,duration:t=400,easing:n=Za,axis:i="y"}={}){const o=getComputedStyle(r),s=+o.opacity,a=i==="y"?"height":"width",l=parseFloat(o[a]),u=i==="y"?["top","bottom"]:["left","right"],f=u.map(h=>`${h[0].toUpperCase()}${h.slice(1)}`),c=parseFloat(o[`padding${f[0]}`]),p=parseFloat(o[`padding${f[1]}`]),g=parseFloat(o[`margin${f[0]}`]),v=parseFloat(o[`margin${f[1]}`]),y=parseFloat(o[`border${f[0]}Width`]),_=parseFloat(o[`border${f[1]}Width`]);return{delay:e,duration:t,easing:n,css:h=>`overflow: hidden;opacity: ${Math.min(h*20,1)*s};${a}: ${h*l}px;padding-${u[0]}: ${h*c}px;padding-${u[1]}: ${h*p}px;margin-${u[0]}: ${h*g}px;margin-${u[1]}: ${h*v}px;border-${u[0]}-width: ${h*y}px;border-${u[1]}-width: ${h*_}px;`}}function Ki(r){return"members"in r}function Zi(r){return"oneOf"in r}function Qi(r){return typeof r=="string"}function eo(r){return typeof r=="object"&&"value"in r}function Qa(r){return"type"in r&&r.type=="number"}function to(r){return"type"in r&&r.type=="one-liner"}function no(r){return"type"in r&&r.type=="textbox"}function ro(r){return"type"in r&&r.type=="checkbox"}function oi(r,e,t){const n=r.slice();return n[15]=e[t],n[18]=e,n[19]=t,n}function si(r,e,t){const n=r.slice();return n[15]=e[t],n[16]=e,n[17]=t,n}function li(r){let e,t=r[1].description+"",n;return{c(){e=$("p"),n=U(t),x(e,"class","svelte-1b72l00")},m(i,o){k(i,e,o),E(e,n)},p(i,o){o&2&&t!==(t=i[1].description+"")&&Le(n,t)},d(i){i&&S(e)}}}function eu(r){let e,t,n;return{c(){e=$("input"),x(e,"type","checkbox")},m(i,o){k(i,e,o),e.checked=r[0],t||(n=Y(e,"change",r[14]),t=!0)},p(i,o){o&1&&(e.checked=i[0])},i:G,o:G,d(i){i&&S(e),t=!1,n()}}}function tu(r){let e,t,n;return{c(){e=$("textarea"),Ae(e,"width","100%"),x(e,"rows","5"),x(e,"class","svelte-1b72l00")},m(i,o){k(i,e,o),fe(e,r[0]),t||(n=Y(e,"input",r[13]),t=!0)},p(i,o){o&1&&fe(e,i[0])},i:G,o:G,d(i){i&&S(e),t=!1,n()}}}function nu(r){let e,t,n;return{c(){e=$("input"),x(e,"type","text"),Ae(e,"width","100%")},m(i,o){k(i,e,o),fe(e,r[0]),t||(n=Y(e,"input",r[12]),t=!0)},p(i,o){o&1&&e.value!==i[0]&&fe(e,i[0])},i:G,o:G,d(i){i&&S(e),t=!1,n()}}}function ru(r){let e,t,n;return{c(){e=$("input"),x(e,"type","number")},m(i,o){k(i,e,o),fe(e,r[0]),t||(n=Y(e,"input",r[11]),t=!0)},p(i,o){o&1&&vi(e.value)!==i[0]&&fe(e,i[0])},i:G,o:G,d(i){i&&S(e),t=!1,n()}}}function iu(r){let e,t,n=He(r[1].oneOf),i=[];for(let s=0;sC(i[s],1,1,()=>{i[s]=null});return{c(){for(let s=0;sC(i[s],1,1,()=>{i[s]=null});return{c(){for(let s=0;s{y=null}),de())},i(_){c||(M(y),c=!0)},o(_){C(y),c=!1},d(_){_&&(S(e),S(u),S(f)),y&&y.d(_),p.r(),g=!1,Ie(v)}}}function lu(r){let e,t,n,i=!1,o,s=r[15].value+"",a,l,u,f,c,p;function g(_,h){return _[15].description?fu:uu}let v=g(r),y=v(r);return f=jt(r[7][0]),{c(){e=$("label"),t=$("input"),o=A(),a=U(s),l=A(),y.c(),u=A(),x(t,"type","radio"),t.__value=n=r[15].value,fe(t,t.__value),f.p(t)},m(_,h){k(_,e,h),E(e,t),t.checked=t.__value===r[2],E(e,o),E(e,a),E(e,l),y.m(e,null),E(e,u),c||(p=[Y(t,"change",r[8]),Y(t,"change",r[3])],c=!0)},p(_,h){h&2&&n!==(n=_[15].value)&&(t.__value=n,fe(t,t.__value),i=!0),(i||h&6)&&(t.checked=t.__value===_[2]),h&2&&s!==(s=_[15].value+"")&&Le(a,s),v===(v=g(_))&&y?y.p(_,h):(y.d(1),y=v(_),y&&(y.c(),y.m(e,u)))},i:G,o:G,d(_){_&&S(e),y.d(),f.r(),c=!1,Ie(p)}}}function au(r){let e,t,n,i=!1,o,s=r[15]+"",a,l,u,f,c,p,g;return c=jt(r[7][0]),{c(){e=$("label"),t=$("input"),o=A(),a=U(s),l=A(),u=$("br"),f=A(),x(t,"type","radio"),t.__value=n=r[15],fe(t,t.__value),c.p(t)},m(v,y){k(v,e,y),E(e,t),t.checked=t.__value===r[2],E(e,o),E(e,a),E(e,l),E(e,u),E(e,f),p||(g=[Y(t,"change",r[6]),Y(t,"change",r[3])],p=!0)},p(v,y){y&2&&n!==(n=v[15])&&(t.__value=n,fe(t,t.__value),i=!0),(i||y&6)&&(t.checked=t.__value===v[2]),y&2&&s!==(s=v[15]+"")&&Le(a,s)},i:G,o:G,d(v){v&&S(e),c.r(),p=!1,Ie(g)}}}function ai(r){let e,t,n,i,o,s;function a(u){r[10](u,r[15])}let l={spec:r[15]};return r[0][r[15].name]!==void 0&&(l.value=r[0][r[15].name]),t=new wt({props:l}),ae.push(()=>ve(t,"value",a)),{c(){e=$("div"),F(t.$$.fragment),i=A(),x(e,"class","svelte-1b72l00")},m(u,f){k(u,e,f),P(t,e,null),E(e,i),s=!0},p(u,f){r=u;const c={};f&2&&(c.spec=r[15]),!n&&f&3&&(n=!0,c.value=r[0][r[15].name],we(()=>n=!1)),t.$set(c)},i(u){s||(M(t.$$.fragment,u),u&&yn(()=>{s&&(o||(o=sn(e,_n,{duration:500},!0)),o.run(1))}),s=!0)},o(u){C(t.$$.fragment,u),u&&(o||(o=sn(e,_n,{duration:500},!1)),o.run(0)),s=!1},d(u){u&&S(e),N(t),u&&o&&o.end()}}}function uu(r){let e;return{c(){e=$("br")},m(t,n){k(t,e,n)},p:G,d(t){t&&S(e)}}}function fu(r){let e,t,n=r[15].description+"",i,o;return{c(){e=$("p"),t=U("("),i=U(n),o=U(")"),x(e,"class","svelte-1b72l00")},m(s,a){k(s,e,a),E(e,t),E(e,i),E(e,o)},p(s,a){a&2&&n!==(n=s[15].description+"")&&Le(i,n)},d(s){s&&S(e)}}}function ui(r){let e,t,n,i,o,s;const a=[au,lu,su],l=[];function u(f,c){return c&2&&(e=null),c&2&&(t=null),e==null&&(e=!!Qi(f[15])),e?0:(t==null&&(t=!!eo(f[15])),t?1:2)}return n=u(r,-1),i=l[n]=a[n](r),{c(){i.c(),o=be()},m(f,c){l[n].m(f,c),k(f,o,c),s=!0},p(f,c){let p=n;n=u(f,c),n===p?l[n].p(f,c):(pe(),C(l[p],1,1,()=>{l[p]=null}),de(),i=l[n],i?i.p(f,c):(i=l[n]=a[n](f),i.c()),M(i,1),i.m(o.parentNode,o))},i(f){s||(M(i),s=!0)},o(f){C(i),s=!1},d(f){f&&S(o),l[n].d(f)}}}function fi(r){let e,t,n=ii(r[15].name)+"",i,o,s,a,l,u;function f(p){r[5](p,r[15])}let c={spec:r[15]};return r[0][r[15].name]!==void 0&&(c.value=r[0][r[15].name]),s=new wt({props:c}),ae.push(()=>ve(s,"value",f)),{c(){e=$("div"),t=$("h3"),i=U(n),o=A(),F(s.$$.fragment),l=A(),x(e,"class","svelte-1b72l00")},m(p,g){k(p,e,g),E(e,t),E(t,i),E(e,o),P(s,e,null),E(e,l),u=!0},p(p,g){r=p,(!u||g&2)&&n!==(n=ii(r[15].name)+"")&&Le(i,n);const v={};g&2&&(v.spec=r[15]),!a&&g&3&&(a=!0,v.value=r[0][r[15].name],we(()=>a=!1)),s.$set(v)},i(p){u||(M(s.$$.fragment,p),u=!0)},o(p){C(s.$$.fragment,p),u=!1},d(p){p&&S(e),N(s)}}}function cu(r){let e,t,n,i,o,s,a,l,u,f,c,p=r[1].description&&li(r);const g=[ou,iu,ru,nu,tu,eu],v=[];function y(_,h){return h&2&&(t=null),h&2&&(n=null),h&2&&(i=null),h&2&&(o=null),h&2&&(s=null),h&2&&(a=null),t==null&&(t=!!Ki(_[1])),t?0:(n==null&&(n=!!Zi(_[1])),n?1:(i==null&&(i=!!Qa(_[1])),i?2:(o==null&&(o=!!to(_[1])),o?3:(s==null&&(s=!!no(_[1])),s?4:(a==null&&(a=!!ro(_[1])),a?5:-1)))))}return~(l=y(r,-1))&&(u=v[l]=g[l](r)),{c(){p&&p.c(),e=A(),u&&u.c(),f=be()},m(_,h){p&&p.m(_,h),k(_,e,h),~l&&v[l].m(_,h),k(_,f,h),c=!0},p(_,[h]){_[1].description?p?p.p(_,h):(p=li(_),p.c(),p.m(e.parentNode,e)):p&&(p.d(1),p=null);let d=l;l=y(_,h),l===d?~l&&v[l].p(_,h):(u&&(pe(),C(v[d],1,1,()=>{v[d]=null}),de()),~l?(u=v[l],u?u.p(_,h):(u=v[l]=g[l](_),u.c()),M(u,1),u.m(f.parentNode,f)):u=null)},i(_){c||(M(u),c=!0)},o(_){C(u),c=!1},d(_){_&&(S(e),S(f)),p&&p.d(_),~l&&v[l].d(_)}}}function pu(r,e,t){var d,b,m;let{spec:n}=e,{value:i}=e,o="";if(Ki(n)){i||(i={});for(let w of n.members)to(w)||no(w)?i[d=w.name]||(i[d]=""):ro(w)?i[b=w.name]||(i[b]=!1):i[m=w.name]||(i[m]={})}else Zi(n)&&(i||(i={}),Qi(i)?o=i:eo(i)?o=i.value:o=Object.keys(i)[0]||"");function s(){t(0,i=o)}function a(){t(0,i={}),t(0,i[o]={},i)}const l=[[]];function u(w,L){r.$$.not_equal(i[L.name],w)&&(i[L.name]=w,t(0,i))}function f(){o=this.__value,t(2,o)}function c(){o=this.__value,t(2,o)}function p(){o=this.__value,t(2,o)}function g(w,L){r.$$.not_equal(i[L.name],w)&&(i[L.name]=w,t(0,i))}function v(){i=vi(this.value),t(0,i)}function y(){i=this.value,t(0,i)}function _(){i=this.value,t(0,i)}function h(){i=this.checked,t(0,i)}return r.$$set=w=>{"spec"in w&&t(1,n=w.spec),"value"in w&&t(0,i=w.value)},[i,n,o,s,a,u,f,l,c,p,g,v,y,_,h]}class wt extends ee{constructor(e){super(),te(this,e,pu,cu,ne,{spec:1,value:0})}}function du(r){let e,t,n;function i(s){r[2](s)}let o={spec:r[1]};return r[0].atf4!==void 0&&(o.value=r[0].atf4),e=new wt({props:o}),ae.push(()=>ve(e,"value",i)),{c(){F(e.$$.fragment)},m(s,a){P(e,s,a),n=!0},p(s,[a]){const l={};!t&&a&1&&(t=!0,l.value=s[0].atf4,we(()=>t=!1)),e.$set(l)},i(s){n||(M(e.$$.fragment,s),n=!0)},o(s){C(e.$$.fragment,s),n=!1},d(s){N(e,s)}}}function hu(r,e,t){let{props:n}=e;n.atf4||(n.atf4={});let i=Wa;function o(s){r.$$.not_equal(n.atf4,s)&&(n.atf4=s,t(0,n))}return r.$$set=s=>{"props"in s&&t(0,n=s.props)},[n,i,o]}class gu extends ee{constructor(e){super(),te(this,e,hu,du,ne,{props:0})}}const _u="CriticalIssue",mu=[{name:"name",type:"one-liner"},{name:"Type",oneOf:[{value:"Conflict with motor traffic at side roads / priority junctions",description:">2500vpd cut across main cycling or walking streams"},{value:"Conflict with motor traffic at signal controlled junctions and roundabouts",description:">2500vpd cut across main cycling or walking streams"},{value:"Collision alongside or from behind",description:"Cyclists are not protected in traffic lanes between 3.25 and 3.9m wide."},{value:"Trip hazard",description:"There are level differences of greater than 20mm with no colour contrast to help identify them."},{value:"Conflict with kerbside activity (parking, loading, risk of 'dooring') ",description:"Cycle facility next to parking/loading with no buffer."},{value:"Kerbside activity or risk of crossing conflict",description:"On busy roads (>8000vpd) formal crossings are more than 400m apart. On quieter roads (<8000vpd), desire lines are blocked by parking and loading."},{value:"Standard of crossing facility",description:"On busy roads (>8000vpd), there are uncontrolled crossings of two or more lanes with no gaps in traffic. At signal junctions there are arms with no green man for pedestrians."},{value:"Speed of traffic (where cyclists are not separated or pedestrians crossing uncontrolled)",description:"85th percentile > 37mph (60kph)"},{value:"Total volume of traffic (where cyclists are not separated or pedestrians cross uncontrolled)",description:">10000 vpd. >5% of traffic is HGVs."},{value:"Required crossing speed (risk of pedestrians coming into conflict with traffic)",description:"Pedestrians must cross at a speed of over 1.2m/s to get across the crossing in time."},{value:"Clear walking spaces free of obstructions and furniture, reducing risk of pedestrians walking in the carriageway.",description:"<1.5m clear footway width. Or, 1.5m-2m clear footway width and pedestrian comfort is poor (PCL of D-E)."},{value:"Effective width next to tram line on a straight run",description:"<2.4m from tramline edge to kerb."},{value:"Crossing angle (between cyclist desire line and tram tracks)",description:"Crossing angle less than 60 degrees."},{value:"Defects: non cycle friendly ironworks, raised/ sunken covers/gullies",description:"Major defects"},{value:"Defects: non flush tables, misleading tactile information, cracked paving, slip-risks present from covers, steep slopes",description:"Major defects"}]},{name:"comment",type:"textbox"},{name:"photographed",type:"checkbox"}],bu={name:_u,members:mu};function yu(r){let e,t,n;function i(s){r[2](s)}let o={spec:r[1]};return r[0].criticals!==void 0&&(o.value=r[0].criticals),e=new wt({props:o}),ae.push(()=>ve(e,"value",i)),{c(){F(e.$$.fragment)},m(s,a){P(e,s,a),n=!0},p(s,[a]){const l={};!t&&a&1&&(t=!0,l.value=s[0].criticals,we(()=>t=!1)),e.$set(l)},i(s){n||(M(e.$$.fragment,s),n=!0)},o(s){C(e.$$.fragment,s),n=!1},d(s){N(e,s)}}}function vu(r,e,t){let{props:n}=e;n.criticals||(n.criticals={});let i=bu;function o(s){r.$$.not_equal(n.criticals,s)&&(n.criticals=s,t(0,n))}return r.$$set=s=>{"props"in s&&t(0,n=s.props)},[n,i,o]}class wu extends ee{constructor(e){super(),te(this,e,vu,yu,ne,{props:0})}}function ku(r,e,t){let n;W(r,Ue,l=>t(3,n=l));let{source:i}=e,{gj:o}=e,{style:s}=e,a=`${i}-layer`;return ut(n,i,o),Ro(n,{id:a,source:i,...s}),bn(()=>{n.getLayer(a)&&n.removeLayer(a),n.getSource(i)&&n.removeSource(i)}),r.$$set=l=>{"source"in l&&t(0,i=l.source),"gj"in l&&t(1,o=l.gj),"style"in l&&t(2,s=l.style)},[i,o,s]}class kn extends ee{constructor(e){super(),te(this,e,ku,null,ne,{source:0,gj:1,style:2})}}function Su(r){let e,t;return e=new kn({props:{source:"intersection-markings",gj:r[0],style:r[1]}}),{c(){F(e.$$.fragment)},m(n,i){P(e,n,i),t=!0},p(n,[i]){const o={};i&1&&(o.gj=n[0]),e.$set(o)},i(n){t||(M(e.$$.fragment,n),t=!0)},o(n){C(e.$$.fragment,n),t=!1},d(n){N(e,n)}}}function Eu(r,e,t){let{gj:n}=e,i={type:"fill",paint:{"fill-color":vn("type",{"sidewalk corner":"#CCCCCC"},"red"),"fill-opacity":.9}};return r.$$set=o=>{"gj"in o&&t(0,n=o.gj)},[n,i]}class Mu extends ee{constructor(e){super(),te(this,e,Eu,Su,ne,{gj:0})}}function $u(r){let e,t;return e=new kn({props:{source:"intersection-polygons",gj:r[0],style:r[1]}}),{c(){F(e.$$.fragment)},m(n,i){P(e,n,i),t=!0},p(n,[i]){const o={};i&1&&(o.gj=n[0]),e.$set(o)},i(n){t||(M(e.$$.fragment,n),t=!0)},o(n){C(e.$$.fragment,n),t=!1},d(n){N(e,n)}}}function Cu(r,e,t){let{gj:n}=e,i={type:"fill",filter:["==",["get","type"],"intersection"],paint:{"fill-color":vn("intersection_kind",{MapEdge:"#696",Terminus:"black",Connection:"black",Fork:"black",Intersection:"black"},"red"),"fill-opacity":.9}};return r.$$set=o=>{"gj"in o&&t(0,n=o.gj)},[n,i]}class Lu extends ee{constructor(e){super(),te(this,e,Cu,$u,ne,{gj:0})}}function Tu(r){let e,t;return e=new kn({props:{source:"lane-markings",gj:r[0],style:r[1]}}),{c(){F(e.$$.fragment)},m(n,i){P(e,n,i),t=!0},p(n,[i]){const o={};i&1&&(o.gj=n[0]),e.$set(o)},i(n){t||(M(e.$$.fragment,n),t=!0)},o(n){C(e.$$.fragment,n),t=!1},d(n){N(e,n)}}}function Au(r,e,t){let{gj:n}=e,i={type:"fill",paint:{"fill-color":vn("type",{"center line":"white","lane separator":"white","lane arrow":"white","buffer edge":"white","buffer stripe":"white","vehicle stop line":"white","bike stop line":"green"},"red"),"fill-opacity":.9}};return r.$$set=o=>{"gj"in o&&t(0,n=o.gj)},[n,i]}class Ou extends ee{constructor(e){super(),te(this,e,Au,Tu,ne,{gj:0})}}function Ru(r){let e,t;return e=new kn({props:{source:"lane-polygons",gj:r[0],style:r[1]}}),{c(){F(e.$$.fragment)},m(n,i){P(e,n,i),t=!0},p(n,[i]){const o={};i&1&&(o.gj=n[0]),e.$set(o)},i(n){t||(M(e.$$.fragment,n),t=!0)},o(n){C(e.$$.fragment,n),t=!1},d(n){N(e,n)}}}function xu(r,e,t){let{gj:n}=e,i={type:"fill",paint:{"fill-color":vn("type",{Driving:"black",Parking:"#333333",Sidewalk:"#CCCCCC",Shoulder:"#CCCCCC",Biking:"#0F7D4B",Bus:"#BE4A4C",SharedLeftTurn:"black",Construction:"#FF6D00",LightRail:"#844204",Footway:"#DDDDE8",SharedUse:"#E5E1BB","Buffer(Planters)":"#555555"},"red"),"fill-opacity":.9}};return r.$$set=o=>{"gj"in o&&t(0,n=o.gj)},[n,i]}class Iu extends ee{constructor(e){super(),te(this,e,xu,Ru,ne,{gj:0})}}function ci(r){let e,t,n,i,o,s,a,l;return e=new Iu({props:{gj:r[0]}}),n=new Ou({props:{gj:r[1]}}),o=new Lu({props:{gj:r[2]}}),a=new Mu({props:{gj:r[3]}}),{c(){F(e.$$.fragment),t=A(),F(n.$$.fragment),i=A(),F(o.$$.fragment),s=A(),F(a.$$.fragment)},m(u,f){P(e,u,f),k(u,t,f),P(n,u,f),k(u,i,f),P(o,u,f),k(u,s,f),P(a,u,f),l=!0},p(u,f){const c={};f&1&&(c.gj=u[0]),e.$set(c);const p={};f&2&&(p.gj=u[1]),n.$set(p);const g={};f&4&&(g.gj=u[2]),o.$set(g);const v={};f&8&&(v.gj=u[3]),a.$set(v)},i(u){l||(M(e.$$.fragment,u),M(n.$$.fragment,u),M(o.$$.fragment,u),M(a.$$.fragment,u),l=!0)},o(u){C(e.$$.fragment,u),C(n.$$.fragment,u),C(o.$$.fragment,u),C(a.$$.fragment,u),l=!1},d(u){u&&(S(t),S(i),S(s)),N(e,u),N(n,u),N(o,u),N(a,u)}}}function Fu(r){let e,t,n,i=r[0]&&ci(r);return t=new Wi({props:{contents:"This visualizes lane data according to OpenStreetMap. There may be many errors with incorrect or missing lane data, lane width and intersection geometry, and markings. Use with caution."}}),{c(){i&&i.c(),e=A(),F(t.$$.fragment)},m(o,s){i&&i.m(o,s),k(o,e,s),P(t,o,s),n=!0},p(o,[s]){o[0]?i?(i.p(o,s),s&1&&M(i,1)):(i=ci(o),i.c(),M(i,1),i.m(e.parentNode,e)):i&&(pe(),C(i,1,1,()=>{i=null}),de())},i(o){n||(M(i),M(t.$$.fragment,o),n=!0)},o(o){C(i),C(t.$$.fragment,o),n=!1},d(o){o&&S(e),i&&i.d(o),N(t,o)}}}function Pu(r,e,t){let n,i;W(r,vt,f=>t(5,n=f)),W(r,ce,f=>t(6,i=f));let{id:o}=e,s,a,l,u;return Ht(async()=>{try{let f=i.features.find(p=>p.id==o),c=await n.renderLaneDetailsForRoute(f.properties.waypoints);t(0,s=JSON.parse(c[0])),t(1,a=JSON.parse(c[1])),t(2,l=JSON.parse(c[2])),t(3,u=JSON.parse(c[3]))}catch(f){window.alert(`Couldn't render lane details: ${f}`)}}),r.$$set=f=>{"id"in f&&t(4,o=f.id)},[s,a,l,u,o]}class Nu extends ee{constructor(e){super(),te(this,e,Pu,Fu,ne,{id:4})}}function Bu(r){let e;return{c(){e=$("p"),e.textContent="Route info loading..."},m(t,n){k(t,e,n)},p:G,i:G,o:G,d(t){t&&S(e)}}}function Du(r){let e,t,n,i,o,s,a,l,u,f,c,p,g;const v=[ju,Hu],y=[];function _(h,d){return h[1]=="speed limits"?0:h[1]=="lane details"?1:-1}return~(l=_(r))&&(u=y[l]=v[l](r)),{c(){e=$("label"),t=U(`Show details: - `),n=$("select"),i=$("option"),i.textContent="None",o=$("option"),o.textContent="Speed limits",s=$("option"),s.textContent="Lane details",a=A(),u&&u.c(),f=be(),i.__value="none",fe(i,i.__value),o.__value="speed limits",fe(o,o.__value),s.__value="lane details",fe(s,s.__value),r[1]===void 0&&yn(()=>r[3].call(n))},m(h,d){k(h,e,d),E(e,t),E(e,n),E(n,i),E(n,o),E(n,s),on(n,r[1],!0),k(h,a,d),~l&&y[l].m(h,d),k(h,f,d),c=!0,p||(g=Y(n,"change",r[3]),p=!0)},p(h,d){d&2&&on(n,h[1]);let b=l;l=_(h),l===b?~l&&y[l].p(h,d):(u&&(pe(),C(y[b],1,1,()=>{y[b]=null}),de()),~l?(u=y[l],u?u.p(h,d):(u=y[l]=v[l](h),u.c()),M(u,1),u.m(f.parentNode,f)):u=null)},i(h){c||(M(u),c=!0)},o(h){C(u),c=!1},d(h){h&&(S(e),S(a),S(f)),~l&&y[l].d(h),p=!1,g()}}}function Hu(r){let e,t;return e=new Nu({props:{id:r[0]}}),{c(){F(e.$$.fragment)},m(n,i){P(e,n,i),t=!0},p(n,i){const o={};i&1&&(o.id=n[0]),e.$set(o)},i(n){t||(M(e.$$.fragment,n),t=!0)},o(n){C(e.$$.fragment,n),t=!1},d(n){N(e,n)}}}function ju(r){let e,t;return e=new Vi({props:{id:r[0]}}),{c(){F(e.$$.fragment)},m(n,i){P(e,n,i),t=!0},p(n,i){const o={};i&1&&(o.id=n[0]),e.$set(o)},i(n){t||(M(e.$$.fragment,n),t=!0)},o(n){C(e.$$.fragment,n),t=!1},d(n){N(e,n)}}}function Uu(r){let e,t,n,i;const o=[Du,Bu],s=[];function a(l,u){return l[2]?0:1}return e=a(r),t=s[e]=o[e](r),{c(){t.c(),n=be()},m(l,u){s[e].m(l,u),k(l,n,u),i=!0},p(l,[u]){let f=e;e=a(l),e===f?s[e].p(l,u):(pe(),C(s[f],1,1,()=>{s[f]=null}),de(),t=s[e],t?t.p(l,u):(t=s[e]=o[e](l),t.c()),M(t,1),t.m(n.parentNode,n))},i(l){i||(M(t),i=!0)},o(l){C(t),i=!1},d(l){l&&S(n),s[e].d(l)}}}function zu(r,e,t){let n;W(r,vt,a=>t(2,n=a));let{id:i}=e,o="none";function s(){o=yi(this),t(1,o)}return r.$$set=a=>{"id"in a&&t(0,i=a.id)},[i,o,n,s]}class qu extends ee{constructor(e){super(),te(this,e,zu,Uu,ne,{id:0})}}function pi(r){let e,t,n,i,o;return{c(){e=$("button"),t=U("Auto-fill"),x(e,"type","button"),e.disabled=n=!r[5]},m(s,a){k(s,e,a),E(e,t),i||(o=Y(e,"click",r[7]),i=!0)},p(s,a){a&32&&n!==(n=!s[5])&&(e.disabled=n)},d(s){s&&S(e),i=!1,o()}}}function di(r){let e,t=hi(r[4])+"",n,i,o,s,a,l;return a=new qu({props:{id:r[3]}}),{c(){e=U("Length: "),n=U(t),i=A(),o=$("br"),s=A(),F(a.$$.fragment)},m(u,f){k(u,e,f),k(u,n,f),k(u,i,f),k(u,o,f),k(u,s,f),P(a,u,f),l=!0},p(u,f){(!l||f&16)&&t!==(t=hi(u[4])+"")&&Le(n,t);const c={};f&8&&(c.id=u[3]),a.$set(c)},i(u){l||(M(a.$$.fragment,u),l=!0)},o(u){C(a.$$.fragment,u),l=!1},d(u){u&&(S(e),S(n),S(i),S(o),S(s)),N(a,u)}}}function Gu(r){let e,t,n,i,o,s,a,l,u,f,c,p,g,v,y,_,h,d,b,m,w,L,O,R,I,B,D,j,T,z,ue,he,Se,Ee,_e,me,Te,se,H,Z,Ye,it,le=r[4]&&pi(r),ie=r[4]&&di(r);return Z=jt(r[10][0]),{c(){e=$("label"),t=U(`Name: + to collaborate on designs.`},m(O,R){k(O,e,R),k(O,t,R),k(O,n,R),k(O,i,R),k(O,o,R),E(o,s),E(o,a),E(o,l),E(o,u),E(o,f),k(O,c,R),k(O,p,R),k(O,g,R),k(O,v,R),E(v,y),E(v,_),E(v,h),E(v,d),k(O,b,R),k(O,m,R),k(O,w,R),k(O,L,R)},p:G,d(O){O&&(S(e),S(t),S(n),S(i),S(o),S(c),S(p),S(g),S(v),S(b),S(m),S(w),S(L))}}}function qa(r){let e,t,n;function i(s){r[3](s)}let o={title:"Instructions",$$slots:{default:[za]},$$scope:{ctx:r}};return r[0]!==void 0&&(o.open=r[0]),e=new wi({props:o}),ae.push(()=>ve(e,"open",i)),{c(){F(e.$$.fragment)},m(s,a){P(e,s,a),n=!0},p(s,[a]){const l={};a&16&&(l.$$scope={dirty:a,ctx:s}),!t&&a&1&&(t=!0,l.open=s[0],we(()=>t=!1)),e.$set(l)},i(s){n||(M(e.$$.fragment,s),n=!0)},o(s){C(e.$$.fragment,s),n=!1},d(s){N(e,s)}}}function Ga(r,e,t){let{open:n}=e,{schema:i}=e,o=Nn(i);function s(a){n=a,t(0,n)}return r.$$set=a=>{"open"in a&&t(0,n=a.open),"schema"in a&&t(2,i=a.schema)},[n,o,i,s]}class Ya extends ee{constructor(e){super(),te(this,e,Ga,qa,ne,{open:0,schema:2})}}const Ja="ATF4Intervention",Xa=[{name:"name",type:"one-liner"},{name:"description",type:"textbox"},{name:"type",oneOf:["New segregated cycling facility","New junction treatment","New permanent footway","New shared use (walking and cycling) facilities","Improvements to make an existing walking/cycle route safer","Area-wide traffic management (including by TROs - both permanent and experimental)","Bus priority measures that also enable active travel (for example, bus gates)","Provision of secure cycle parking facilities","New road crossings","Restriction or reduction of car parking availability","School streets"]},{name:"complexity",oneOf:["high","medium","low"]}],Wa={name:Ja,members:Xa},Va=(r,e)=>(r=r.replace(new RegExp("((?t.toLowerCase()),r.replace(/(\p{Uppercase_Letter}+)(\p{Uppercase_Letter}\p{Lowercase_Letter}+)/gu,(t,n,i)=>n+e+i.toLowerCase()));function Ka(r,{separator:e="_",preserveConsecutiveUppercase:t=!1}={}){if(!(typeof r=="string"&&typeof e=="string"))throw new TypeError("The `text` and `separator` arguments should be of type `string`");if(r.length<2)return t?r:r.toLowerCase();const n=`$1${e}$2`,i=r.replace(/([\p{Lowercase_Letter}\d])(\p{Uppercase_Letter})/gu,n);return t?Va(i,e):i.replace(/(\p{Uppercase_Letter})(\p{Uppercase_Letter}\p{Lowercase_Letter}+)/gu,n).toLowerCase()}function it(r){if(typeof r!="string")throw new TypeError("Expected a string");return r=Ka(r),r=r.toLowerCase().replace(/[_-]+/g," ").replace(/\s{2,}/g," ").trim(),r=r.charAt(0).toUpperCase()+r.slice(1),r}function Za(r){const e=r-1;return e*e*e+1}function mn(r,{delay:e=0,duration:t=400,easing:n=Za,axis:i="y"}={}){const o=getComputedStyle(r),s=+o.opacity,a=i==="y"?"height":"width",l=parseFloat(o[a]),u=i==="y"?["top","bottom"]:["left","right"],f=u.map(h=>`${h[0].toUpperCase()}${h.slice(1)}`),c=parseFloat(o[`padding${f[0]}`]),p=parseFloat(o[`padding${f[1]}`]),g=parseFloat(o[`margin${f[0]}`]),v=parseFloat(o[`margin${f[1]}`]),y=parseFloat(o[`border${f[0]}Width`]),_=parseFloat(o[`border${f[1]}Width`]);return{delay:e,duration:t,easing:n,css:h=>`overflow: hidden;opacity: ${Math.min(h*20,1)*s};${a}: ${h*l}px;padding-${u[0]}: ${h*c}px;padding-${u[1]}: ${h*p}px;margin-${u[0]}: ${h*g}px;margin-${u[1]}: ${h*v}px;border-${u[0]}-width: ${h*y}px;border-${u[1]}-width: ${h*_}px;`}}function Ki(r){return"members"in r}function Zi(r){return"oneOf"in r}function Qi(r){return typeof r=="string"}function eo(r){return typeof r=="object"&&"value"in r}function Qa(r){return"type"in r&&r.type=="number"}function to(r){return"type"in r&&r.type=="one-liner"}function no(r){return"type"in r&&r.type=="textbox"}function ro(r){return"type"in r&&r.type=="checkbox"}function oi(r,e,t){const n=r.slice();return n[15]=e[t],n[18]=e,n[19]=t,n}function si(r,e,t){const n=r.slice();return n[15]=e[t],n[16]=e,n[17]=t,n}function li(r){let e,t=r[1].description+"",n;return{c(){e=$("p"),n=U(t),x(e,"class","svelte-1b72l00")},m(i,o){k(i,e,o),E(e,n)},p(i,o){o&2&&t!==(t=i[1].description+"")&&Le(n,t)},d(i){i&&S(e)}}}function eu(r){let e,t,n;return{c(){e=$("input"),x(e,"type","checkbox")},m(i,o){k(i,e,o),e.checked=r[0],t||(n=Y(e,"change",r[14]),t=!0)},p(i,o){o&1&&(e.checked=i[0])},i:G,o:G,d(i){i&&S(e),t=!1,n()}}}function tu(r){let e,t,n;return{c(){e=$("textarea"),Ae(e,"width","100%"),x(e,"rows","5"),x(e,"class","svelte-1b72l00")},m(i,o){k(i,e,o),fe(e,r[0]),t||(n=Y(e,"input",r[13]),t=!0)},p(i,o){o&1&&fe(e,i[0])},i:G,o:G,d(i){i&&S(e),t=!1,n()}}}function nu(r){let e,t,n;return{c(){e=$("input"),x(e,"type","text"),Ae(e,"width","100%")},m(i,o){k(i,e,o),fe(e,r[0]),t||(n=Y(e,"input",r[12]),t=!0)},p(i,o){o&1&&e.value!==i[0]&&fe(e,i[0])},i:G,o:G,d(i){i&&S(e),t=!1,n()}}}function ru(r){let e,t,n;return{c(){e=$("input"),x(e,"type","number")},m(i,o){k(i,e,o),fe(e,r[0]),t||(n=Y(e,"input",r[11]),t=!0)},p(i,o){o&1&&vi(e.value)!==i[0]&&fe(e,i[0])},i:G,o:G,d(i){i&&S(e),t=!1,n()}}}function iu(r){let e,t,n=He(r[1].oneOf),i=[];for(let s=0;sC(i[s],1,1,()=>{i[s]=null});return{c(){for(let s=0;sC(i[s],1,1,()=>{i[s]=null});return{c(){for(let s=0;s{y=null}),de())},i(_){c||(M(y),c=!0)},o(_){C(y),c=!1},d(_){_&&(S(e),S(u),S(f)),y&&y.d(_),p.r(),g=!1,Ie(v)}}}function lu(r){let e,t,n,i=!1,o,s=it(r[15].value)+"",a,l,u,f,c,p;function g(_,h){return _[15].description?fu:uu}let v=g(r),y=v(r);return f=Ut(r[7][0]),{c(){e=$("label"),t=$("input"),o=A(),a=U(s),l=A(),y.c(),u=A(),x(t,"type","radio"),t.__value=n=r[15].value,fe(t,t.__value),f.p(t)},m(_,h){k(_,e,h),E(e,t),t.checked=t.__value===r[2],E(e,o),E(e,a),E(e,l),y.m(e,null),E(e,u),c||(p=[Y(t,"change",r[8]),Y(t,"change",r[3])],c=!0)},p(_,h){h&2&&n!==(n=_[15].value)&&(t.__value=n,fe(t,t.__value),i=!0),(i||h&6)&&(t.checked=t.__value===_[2]),h&2&&s!==(s=it(_[15].value)+"")&&Le(a,s),v===(v=g(_))&&y?y.p(_,h):(y.d(1),y=v(_),y&&(y.c(),y.m(e,u)))},i:G,o:G,d(_){_&&S(e),y.d(),f.r(),c=!1,Ie(p)}}}function au(r){let e,t,n,i=!1,o,s=it(r[15])+"",a,l,u,f,c,p,g;return c=Ut(r[7][0]),{c(){e=$("label"),t=$("input"),o=A(),a=U(s),l=A(),u=$("br"),f=A(),x(t,"type","radio"),t.__value=n=r[15],fe(t,t.__value),c.p(t)},m(v,y){k(v,e,y),E(e,t),t.checked=t.__value===r[2],E(e,o),E(e,a),E(e,l),E(e,u),E(e,f),p||(g=[Y(t,"change",r[6]),Y(t,"change",r[3])],p=!0)},p(v,y){y&2&&n!==(n=v[15])&&(t.__value=n,fe(t,t.__value),i=!0),(i||y&6)&&(t.checked=t.__value===v[2]),y&2&&s!==(s=it(v[15])+"")&&Le(a,s)},i:G,o:G,d(v){v&&S(e),c.r(),p=!1,Ie(g)}}}function ai(r){let e,t,n,i,o,s;function a(u){r[10](u,r[15])}let l={spec:r[15]};return r[0][r[15].name]!==void 0&&(l.value=r[0][r[15].name]),t=new kt({props:l}),ae.push(()=>ve(t,"value",a)),{c(){e=$("div"),F(t.$$.fragment),i=A(),x(e,"class","svelte-1b72l00")},m(u,f){k(u,e,f),P(t,e,null),E(e,i),s=!0},p(u,f){r=u;const c={};f&2&&(c.spec=r[15]),!n&&f&3&&(n=!0,c.value=r[0][r[15].name],we(()=>n=!1)),t.$set(c)},i(u){s||(M(t.$$.fragment,u),u&&vn(()=>{s&&(o||(o=ln(e,mn,{duration:500},!0)),o.run(1))}),s=!0)},o(u){C(t.$$.fragment,u),u&&(o||(o=ln(e,mn,{duration:500},!1)),o.run(0)),s=!1},d(u){u&&S(e),N(t),u&&o&&o.end()}}}function uu(r){let e;return{c(){e=$("br")},m(t,n){k(t,e,n)},p:G,d(t){t&&S(e)}}}function fu(r){let e,t,n=r[15].description+"",i,o;return{c(){e=$("p"),t=U("("),i=U(n),o=U(")"),x(e,"class","svelte-1b72l00")},m(s,a){k(s,e,a),E(e,t),E(e,i),E(e,o)},p(s,a){a&2&&n!==(n=s[15].description+"")&&Le(i,n)},d(s){s&&S(e)}}}function ui(r){let e,t,n,i,o,s;const a=[au,lu,su],l=[];function u(f,c){return c&2&&(e=null),c&2&&(t=null),e==null&&(e=!!Qi(f[15])),e?0:(t==null&&(t=!!eo(f[15])),t?1:2)}return n=u(r,-1),i=l[n]=a[n](r),{c(){i.c(),o=be()},m(f,c){l[n].m(f,c),k(f,o,c),s=!0},p(f,c){let p=n;n=u(f,c),n===p?l[n].p(f,c):(pe(),C(l[p],1,1,()=>{l[p]=null}),de(),i=l[n],i?i.p(f,c):(i=l[n]=a[n](f),i.c()),M(i,1),i.m(o.parentNode,o))},i(f){s||(M(i),s=!0)},o(f){C(i),s=!1},d(f){f&&S(o),l[n].d(f)}}}function fi(r){let e,t,n=it(r[15].name)+"",i,o,s,a,l,u;function f(p){r[5](p,r[15])}let c={spec:r[15]};return r[0][r[15].name]!==void 0&&(c.value=r[0][r[15].name]),s=new kt({props:c}),ae.push(()=>ve(s,"value",f)),{c(){e=$("div"),t=$("h3"),i=U(n),o=A(),F(s.$$.fragment),l=A(),x(e,"class","svelte-1b72l00")},m(p,g){k(p,e,g),E(e,t),E(t,i),E(e,o),P(s,e,null),E(e,l),u=!0},p(p,g){r=p,(!u||g&2)&&n!==(n=it(r[15].name)+"")&&Le(i,n);const v={};g&2&&(v.spec=r[15]),!a&&g&3&&(a=!0,v.value=r[0][r[15].name],we(()=>a=!1)),s.$set(v)},i(p){u||(M(s.$$.fragment,p),u=!0)},o(p){C(s.$$.fragment,p),u=!1},d(p){p&&S(e),N(s)}}}function cu(r){let e,t,n,i,o,s,a,l,u,f,c,p=r[1].description&&li(r);const g=[ou,iu,ru,nu,tu,eu],v=[];function y(_,h){return h&2&&(t=null),h&2&&(n=null),h&2&&(i=null),h&2&&(o=null),h&2&&(s=null),h&2&&(a=null),t==null&&(t=!!Ki(_[1])),t?0:(n==null&&(n=!!Zi(_[1])),n?1:(i==null&&(i=!!Qa(_[1])),i?2:(o==null&&(o=!!to(_[1])),o?3:(s==null&&(s=!!no(_[1])),s?4:(a==null&&(a=!!ro(_[1])),a?5:-1)))))}return~(l=y(r,-1))&&(u=v[l]=g[l](r)),{c(){p&&p.c(),e=A(),u&&u.c(),f=be()},m(_,h){p&&p.m(_,h),k(_,e,h),~l&&v[l].m(_,h),k(_,f,h),c=!0},p(_,[h]){_[1].description?p?p.p(_,h):(p=li(_),p.c(),p.m(e.parentNode,e)):p&&(p.d(1),p=null);let d=l;l=y(_,h),l===d?~l&&v[l].p(_,h):(u&&(pe(),C(v[d],1,1,()=>{v[d]=null}),de()),~l?(u=v[l],u?u.p(_,h):(u=v[l]=g[l](_),u.c()),M(u,1),u.m(f.parentNode,f)):u=null)},i(_){c||(M(u),c=!0)},o(_){C(u),c=!1},d(_){_&&(S(e),S(f)),p&&p.d(_),~l&&v[l].d(_)}}}function pu(r,e,t){var d,b,m;let{spec:n}=e,{value:i}=e,o="";if(Ki(n)){i||(i={});for(let w of n.members)to(w)||no(w)?i[d=w.name]||(i[d]=""):ro(w)?i[b=w.name]||(i[b]=!1):i[m=w.name]||(i[m]={})}else Zi(n)&&(i||(i={}),Qi(i)?o=i:eo(i)?o=i.value:o=Object.keys(i)[0]||"");function s(){t(0,i=o)}function a(){t(0,i={}),t(0,i[o]={},i)}const l=[[]];function u(w,L){r.$$.not_equal(i[L.name],w)&&(i[L.name]=w,t(0,i))}function f(){o=this.__value,t(2,o)}function c(){o=this.__value,t(2,o)}function p(){o=this.__value,t(2,o)}function g(w,L){r.$$.not_equal(i[L.name],w)&&(i[L.name]=w,t(0,i))}function v(){i=vi(this.value),t(0,i)}function y(){i=this.value,t(0,i)}function _(){i=this.value,t(0,i)}function h(){i=this.checked,t(0,i)}return r.$$set=w=>{"spec"in w&&t(1,n=w.spec),"value"in w&&t(0,i=w.value)},[i,n,o,s,a,u,f,l,c,p,g,v,y,_,h]}class kt extends ee{constructor(e){super(),te(this,e,pu,cu,ne,{spec:1,value:0})}}function du(r){let e,t,n;function i(s){r[2](s)}let o={spec:r[1]};return r[0].atf4!==void 0&&(o.value=r[0].atf4),e=new kt({props:o}),ae.push(()=>ve(e,"value",i)),{c(){F(e.$$.fragment)},m(s,a){P(e,s,a),n=!0},p(s,[a]){const l={};!t&&a&1&&(t=!0,l.value=s[0].atf4,we(()=>t=!1)),e.$set(l)},i(s){n||(M(e.$$.fragment,s),n=!0)},o(s){C(e.$$.fragment,s),n=!1},d(s){N(e,s)}}}function hu(r,e,t){let{props:n}=e;n.atf4||(n.atf4={});let i=Wa;function o(s){r.$$.not_equal(n.atf4,s)&&(n.atf4=s,t(0,n))}return r.$$set=s=>{"props"in s&&t(0,n=s.props)},[n,i,o]}class gu extends ee{constructor(e){super(),te(this,e,hu,du,ne,{props:0})}}const _u="CriticalIssue",mu=[{name:"name",type:"one-liner"},{name:"Type",oneOf:[{value:"Conflict with motor traffic at side roads / priority junctions",description:">2500vpd cut across main cycling or walking streams"},{value:"Conflict with motor traffic at signal controlled junctions and roundabouts",description:">2500vpd cut across main cycling or walking streams"},{value:"Collision alongside or from behind",description:"Cyclists are not protected in traffic lanes between 3.25 and 3.9m wide."},{value:"Trip hazard",description:"There are level differences of greater than 20mm with no colour contrast to help identify them."},{value:"Conflict with kerbside activity (parking, loading, risk of 'dooring') ",description:"Cycle facility next to parking/loading with no buffer."},{value:"Kerbside activity or risk of crossing conflict",description:"On busy roads (>8000vpd) formal crossings are more than 400m apart. On quieter roads (<8000vpd), desire lines are blocked by parking and loading."},{value:"Standard of crossing facility",description:"On busy roads (>8000vpd), there are uncontrolled crossings of two or more lanes with no gaps in traffic. At signal junctions there are arms with no green man for pedestrians."},{value:"Speed of traffic (where cyclists are not separated or pedestrians crossing uncontrolled)",description:"85th percentile > 37mph (60kph)"},{value:"Total volume of traffic (where cyclists are not separated or pedestrians cross uncontrolled)",description:">10000 vpd. >5% of traffic is HGVs."},{value:"Required crossing speed (risk of pedestrians coming into conflict with traffic)",description:"Pedestrians must cross at a speed of over 1.2m/s to get across the crossing in time."},{value:"Clear walking spaces free of obstructions and furniture, reducing risk of pedestrians walking in the carriageway.",description:"<1.5m clear footway width. Or, 1.5m-2m clear footway width and pedestrian comfort is poor (PCL of D-E)."},{value:"Effective width next to tram line on a straight run",description:"<2.4m from tramline edge to kerb."},{value:"Crossing angle (between cyclist desire line and tram tracks)",description:"Crossing angle less than 60 degrees."},{value:"Defects: non cycle friendly ironworks, raised/ sunken covers/gullies",description:"Major defects"},{value:"Defects: non flush tables, misleading tactile information, cracked paving, slip-risks present from covers, steep slopes",description:"Major defects"}]},{name:"comment",type:"textbox"},{name:"photographed",type:"checkbox"}],bu={name:_u,members:mu};function yu(r){let e,t,n;function i(s){r[2](s)}let o={spec:r[1]};return r[0].criticals!==void 0&&(o.value=r[0].criticals),e=new kt({props:o}),ae.push(()=>ve(e,"value",i)),{c(){F(e.$$.fragment)},m(s,a){P(e,s,a),n=!0},p(s,[a]){const l={};!t&&a&1&&(t=!0,l.value=s[0].criticals,we(()=>t=!1)),e.$set(l)},i(s){n||(M(e.$$.fragment,s),n=!0)},o(s){C(e.$$.fragment,s),n=!1},d(s){N(e,s)}}}function vu(r,e,t){let{props:n}=e;n.criticals||(n.criticals={});let i=bu;function o(s){r.$$.not_equal(n.criticals,s)&&(n.criticals=s,t(0,n))}return r.$$set=s=>{"props"in s&&t(0,n=s.props)},[n,i,o]}class wu extends ee{constructor(e){super(),te(this,e,vu,yu,ne,{props:0})}}function ku(r,e,t){let n;W(r,Ue,l=>t(3,n=l));let{source:i}=e,{gj:o}=e,{style:s}=e,a=`${i}-layer`;return ft(n,i,o),Ro(n,{id:a,source:i,...s}),yn(()=>{n.getLayer(a)&&n.removeLayer(a),n.getSource(i)&&n.removeSource(i)}),r.$$set=l=>{"source"in l&&t(0,i=l.source),"gj"in l&&t(1,o=l.gj),"style"in l&&t(2,s=l.style)},[i,o,s]}class Sn extends ee{constructor(e){super(),te(this,e,ku,null,ne,{source:0,gj:1,style:2})}}function Su(r){let e,t;return e=new Sn({props:{source:"intersection-markings",gj:r[0],style:r[1]}}),{c(){F(e.$$.fragment)},m(n,i){P(e,n,i),t=!0},p(n,[i]){const o={};i&1&&(o.gj=n[0]),e.$set(o)},i(n){t||(M(e.$$.fragment,n),t=!0)},o(n){C(e.$$.fragment,n),t=!1},d(n){N(e,n)}}}function Eu(r,e,t){let{gj:n}=e,i={type:"fill",paint:{"fill-color":wn("type",{"sidewalk corner":"#CCCCCC"},"red"),"fill-opacity":.9}};return r.$$set=o=>{"gj"in o&&t(0,n=o.gj)},[n,i]}class Mu extends ee{constructor(e){super(),te(this,e,Eu,Su,ne,{gj:0})}}function $u(r){let e,t;return e=new Sn({props:{source:"intersection-polygons",gj:r[0],style:r[1]}}),{c(){F(e.$$.fragment)},m(n,i){P(e,n,i),t=!0},p(n,[i]){const o={};i&1&&(o.gj=n[0]),e.$set(o)},i(n){t||(M(e.$$.fragment,n),t=!0)},o(n){C(e.$$.fragment,n),t=!1},d(n){N(e,n)}}}function Cu(r,e,t){let{gj:n}=e,i={type:"fill",filter:["==",["get","type"],"intersection"],paint:{"fill-color":wn("intersection_kind",{MapEdge:"#696",Terminus:"black",Connection:"black",Fork:"black",Intersection:"black"},"red"),"fill-opacity":.9}};return r.$$set=o=>{"gj"in o&&t(0,n=o.gj)},[n,i]}class Lu extends ee{constructor(e){super(),te(this,e,Cu,$u,ne,{gj:0})}}function Tu(r){let e,t;return e=new Sn({props:{source:"lane-markings",gj:r[0],style:r[1]}}),{c(){F(e.$$.fragment)},m(n,i){P(e,n,i),t=!0},p(n,[i]){const o={};i&1&&(o.gj=n[0]),e.$set(o)},i(n){t||(M(e.$$.fragment,n),t=!0)},o(n){C(e.$$.fragment,n),t=!1},d(n){N(e,n)}}}function Au(r,e,t){let{gj:n}=e,i={type:"fill",paint:{"fill-color":wn("type",{"center line":"white","lane separator":"white","lane arrow":"white","buffer edge":"white","buffer stripe":"white","vehicle stop line":"white","bike stop line":"green"},"red"),"fill-opacity":.9}};return r.$$set=o=>{"gj"in o&&t(0,n=o.gj)},[n,i]}class Ou extends ee{constructor(e){super(),te(this,e,Au,Tu,ne,{gj:0})}}function Ru(r){let e,t;return e=new Sn({props:{source:"lane-polygons",gj:r[0],style:r[1]}}),{c(){F(e.$$.fragment)},m(n,i){P(e,n,i),t=!0},p(n,[i]){const o={};i&1&&(o.gj=n[0]),e.$set(o)},i(n){t||(M(e.$$.fragment,n),t=!0)},o(n){C(e.$$.fragment,n),t=!1},d(n){N(e,n)}}}function xu(r,e,t){let{gj:n}=e,i={type:"fill",paint:{"fill-color":wn("type",{Driving:"black",Parking:"#333333",Sidewalk:"#CCCCCC",Shoulder:"#CCCCCC",Biking:"#0F7D4B",Bus:"#BE4A4C",SharedLeftTurn:"black",Construction:"#FF6D00",LightRail:"#844204",Footway:"#DDDDE8",SharedUse:"#E5E1BB","Buffer(Planters)":"#555555"},"red"),"fill-opacity":.9}};return r.$$set=o=>{"gj"in o&&t(0,n=o.gj)},[n,i]}class Iu extends ee{constructor(e){super(),te(this,e,xu,Ru,ne,{gj:0})}}function ci(r){let e,t,n,i,o,s,a,l;return e=new Iu({props:{gj:r[0]}}),n=new Ou({props:{gj:r[1]}}),o=new Lu({props:{gj:r[2]}}),a=new Mu({props:{gj:r[3]}}),{c(){F(e.$$.fragment),t=A(),F(n.$$.fragment),i=A(),F(o.$$.fragment),s=A(),F(a.$$.fragment)},m(u,f){P(e,u,f),k(u,t,f),P(n,u,f),k(u,i,f),P(o,u,f),k(u,s,f),P(a,u,f),l=!0},p(u,f){const c={};f&1&&(c.gj=u[0]),e.$set(c);const p={};f&2&&(p.gj=u[1]),n.$set(p);const g={};f&4&&(g.gj=u[2]),o.$set(g);const v={};f&8&&(v.gj=u[3]),a.$set(v)},i(u){l||(M(e.$$.fragment,u),M(n.$$.fragment,u),M(o.$$.fragment,u),M(a.$$.fragment,u),l=!0)},o(u){C(e.$$.fragment,u),C(n.$$.fragment,u),C(o.$$.fragment,u),C(a.$$.fragment,u),l=!1},d(u){u&&(S(t),S(i),S(s)),N(e,u),N(n,u),N(o,u),N(a,u)}}}function Fu(r){let e,t,n,i=r[0]&&ci(r);return t=new Wi({props:{contents:"This visualizes lane data according to OpenStreetMap. There may be many errors with incorrect or missing lane data, lane width and intersection geometry, and markings. Use with caution."}}),{c(){i&&i.c(),e=A(),F(t.$$.fragment)},m(o,s){i&&i.m(o,s),k(o,e,s),P(t,o,s),n=!0},p(o,[s]){o[0]?i?(i.p(o,s),s&1&&M(i,1)):(i=ci(o),i.c(),M(i,1),i.m(e.parentNode,e)):i&&(pe(),C(i,1,1,()=>{i=null}),de())},i(o){n||(M(i),M(t.$$.fragment,o),n=!0)},o(o){C(i),C(t.$$.fragment,o),n=!1},d(o){o&&S(e),i&&i.d(o),N(t,o)}}}function Pu(r,e,t){let n,i;W(r,wt,f=>t(5,n=f)),W(r,ce,f=>t(6,i=f));let{id:o}=e,s,a,l,u;return jt(async()=>{try{let f=i.features.find(p=>p.id==o),c=await n.renderLaneDetailsForRoute(f.properties.waypoints);t(0,s=JSON.parse(c[0])),t(1,a=JSON.parse(c[1])),t(2,l=JSON.parse(c[2])),t(3,u=JSON.parse(c[3]))}catch(f){window.alert(`Couldn't render lane details: ${f}`)}}),r.$$set=f=>{"id"in f&&t(4,o=f.id)},[s,a,l,u,o]}class Nu extends ee{constructor(e){super(),te(this,e,Pu,Fu,ne,{id:4})}}function Bu(r){let e;return{c(){e=$("p"),e.textContent="Route info loading..."},m(t,n){k(t,e,n)},p:G,i:G,o:G,d(t){t&&S(e)}}}function Du(r){let e,t,n,i,o,s,a,l,u,f,c,p,g;const v=[ju,Hu],y=[];function _(h,d){return h[1]=="speed limits"?0:h[1]=="lane details"?1:-1}return~(l=_(r))&&(u=y[l]=v[l](r)),{c(){e=$("label"),t=U(`Show details: + `),n=$("select"),i=$("option"),i.textContent="None",o=$("option"),o.textContent="Speed limits",s=$("option"),s.textContent="Lane details",a=A(),u&&u.c(),f=be(),i.__value="none",fe(i,i.__value),o.__value="speed limits",fe(o,o.__value),s.__value="lane details",fe(s,s.__value),r[1]===void 0&&vn(()=>r[3].call(n))},m(h,d){k(h,e,d),E(e,t),E(e,n),E(n,i),E(n,o),E(n,s),sn(n,r[1],!0),k(h,a,d),~l&&y[l].m(h,d),k(h,f,d),c=!0,p||(g=Y(n,"change",r[3]),p=!0)},p(h,d){d&2&&sn(n,h[1]);let b=l;l=_(h),l===b?~l&&y[l].p(h,d):(u&&(pe(),C(y[b],1,1,()=>{y[b]=null}),de()),~l?(u=y[l],u?u.p(h,d):(u=y[l]=v[l](h),u.c()),M(u,1),u.m(f.parentNode,f)):u=null)},i(h){c||(M(u),c=!0)},o(h){C(u),c=!1},d(h){h&&(S(e),S(a),S(f)),~l&&y[l].d(h),p=!1,g()}}}function Hu(r){let e,t;return e=new Nu({props:{id:r[0]}}),{c(){F(e.$$.fragment)},m(n,i){P(e,n,i),t=!0},p(n,i){const o={};i&1&&(o.id=n[0]),e.$set(o)},i(n){t||(M(e.$$.fragment,n),t=!0)},o(n){C(e.$$.fragment,n),t=!1},d(n){N(e,n)}}}function ju(r){let e,t;return e=new Vi({props:{id:r[0]}}),{c(){F(e.$$.fragment)},m(n,i){P(e,n,i),t=!0},p(n,i){const o={};i&1&&(o.id=n[0]),e.$set(o)},i(n){t||(M(e.$$.fragment,n),t=!0)},o(n){C(e.$$.fragment,n),t=!1},d(n){N(e,n)}}}function Uu(r){let e,t,n,i;const o=[Du,Bu],s=[];function a(l,u){return l[2]?0:1}return e=a(r),t=s[e]=o[e](r),{c(){t.c(),n=be()},m(l,u){s[e].m(l,u),k(l,n,u),i=!0},p(l,[u]){let f=e;e=a(l),e===f?s[e].p(l,u):(pe(),C(s[f],1,1,()=>{s[f]=null}),de(),t=s[e],t?t.p(l,u):(t=s[e]=o[e](l),t.c()),M(t,1),t.m(n.parentNode,n))},i(l){i||(M(t),i=!0)},o(l){C(t),i=!1},d(l){l&&S(n),s[e].d(l)}}}function zu(r,e,t){let n;W(r,wt,a=>t(2,n=a));let{id:i}=e,o="none";function s(){o=yi(this),t(1,o)}return r.$$set=a=>{"id"in a&&t(0,i=a.id)},[i,o,n,s]}class qu extends ee{constructor(e){super(),te(this,e,zu,Uu,ne,{id:0})}}function pi(r){let e,t,n,i,o;return{c(){e=$("button"),t=U("Auto-fill"),x(e,"type","button"),e.disabled=n=!r[5]},m(s,a){k(s,e,a),E(e,t),i||(o=Y(e,"click",r[7]),i=!0)},p(s,a){a&32&&n!==(n=!s[5])&&(e.disabled=n)},d(s){s&&S(e),i=!1,o()}}}function di(r){let e,t=hi(r[4])+"",n,i,o,s,a,l;return a=new qu({props:{id:r[3]}}),{c(){e=U("Length: "),n=U(t),i=A(),o=$("br"),s=A(),F(a.$$.fragment)},m(u,f){k(u,e,f),k(u,n,f),k(u,i,f),k(u,o,f),k(u,s,f),P(a,u,f),l=!0},p(u,f){(!l||f&16)&&t!==(t=hi(u[4])+"")&&Le(n,t);const c={};f&8&&(c.id=u[3]),a.$set(c)},i(u){l||(M(a.$$.fragment,u),l=!0)},o(u){C(a.$$.fragment,u),l=!1},d(u){u&&(S(e),S(n),S(i),S(o),S(s)),N(a,u)}}}function Gu(r){let e,t,n,i,o,s,a,l,u,f,c,p,g,v,y,_,h,d,b,m,w,L,O,R,I,B,D,j,T,z,ue,he,Se,Ee,_e,me,Te,se,H,Z,Ye,ot,le=r[4]&&pi(r),ie=r[4]&&di(r);return Z=Ut(r[10][0]),{c(){e=$("label"),t=U(`Name: `),le&&le.c(),n=A(),i=$("br"),o=A(),s=$("input"),a=A(),l=$("br"),u=A(),f=$("br"),c=A(),p=$("label"),g=$("input"),v=U(` Area`),y=A(),_=$("label"),h=$("input"),d=U(` Route`),b=A(),m=$("label"),w=$("input"),L=U(` Crossing`),O=A(),R=$("label"),I=$("input"),B=U(` - Other`),D=A(),j=$("br"),T=A(),z=$("br"),ue=A(),he=$("label"),Se=U("Description:"),Ee=$("br"),_e=A(),me=$("textarea"),Te=A(),ie&&ie.c(),se=be(),x(s,"type","text"),Ae(s,"width","100%"),x(g,"type","radio"),g.__value="area",fe(g,g.__value),x(h,"type","radio"),h.__value="route",fe(h,h.__value),x(w,"type","radio"),w.__value="crossing",fe(w,w.__value),x(I,"type","radio"),I.__value="other",fe(I,I.__value),Ae(me,"width","100%"),x(me,"rows","5"),x(me,"class","svelte-15lna0i"),Z.p(g,h,w,I)},m(V,oe){k(V,e,oe),E(e,t),le&&le.m(e,null),E(e,n),E(e,i),E(e,o),E(e,s),fe(s,r[0]),k(V,a,oe),k(V,l,oe),k(V,u,oe),k(V,f,oe),k(V,c,oe),k(V,p,oe),E(p,g),g.checked=g.__value===r[1],E(p,v),k(V,y,oe),k(V,_,oe),E(_,h),h.checked=h.__value===r[1],E(_,d),k(V,b,oe),k(V,m,oe),E(m,w),w.checked=w.__value===r[1],E(m,L),k(V,O,oe),k(V,R,oe),E(R,I),I.checked=I.__value===r[1],E(R,B),k(V,D,oe),k(V,j,oe),k(V,T,oe),k(V,z,oe),k(V,ue,oe),k(V,he,oe),E(he,Se),E(he,Ee),E(he,_e),E(he,me),fe(me,r[2]),k(V,Te,oe),ie&&ie.m(V,oe),k(V,se,oe),H=!0,Ye||(it=[Y(s,"input",r[8]),Y(g,"change",r[9]),Y(h,"change",r[11]),Y(w,"change",r[12]),Y(I,"change",r[13]),Y(me,"input",r[14])],Ye=!0)},p(V,[oe]){V[4]?le?le.p(V,oe):(le=pi(V),le.c(),le.m(e,n)):le&&(le.d(1),le=null),oe&1&&s.value!==V[0]&&fe(s,V[0]),oe&2&&(g.checked=g.__value===V[1]),oe&2&&(h.checked=h.__value===V[1]),oe&2&&(w.checked=w.__value===V[1]),oe&2&&(I.checked=I.__value===V[1]),oe&4&&fe(me,V[2]),V[4]?ie?(ie.p(V,oe),oe&16&&M(ie,1)):(ie=di(V),ie.c(),M(ie,1),ie.m(se.parentNode,se)):ie&&(pe(),C(ie,1,1,()=>{ie=null}),de())},i(V){H||(M(ie),H=!0)},o(V){C(ie),H=!1},d(V){V&&(S(e),S(a),S(l),S(u),S(f),S(c),S(p),S(y),S(_),S(b),S(m),S(O),S(R),S(D),S(j),S(T),S(z),S(ue),S(he),S(Te),S(se)),le&&le.d(),ie&&ie.d(V),Z.r(),Ye=!1,Ie(it)}}}function hi(r){return r<1e3?Math.round(r)+" m":(r/1e3).toFixed(1)+"km"}function Yu(r,e,t){let n,i;W(r,vt,b=>t(5,n=b)),W(r,ce,b=>t(15,i=b));let{id:o}=e,{name:s}=e,{intervention_type:a}=e,{description:l}=e,{length_meters:u}=e;async function f(){let b=i.features.find(m=>m.id==o);try{t(0,s=await n.nameForRoute(b))}catch(m){window.alert(`Couldn't auto-name route: ${m}`)}}const c=[[]],p=()=>f();function g(){s=this.value,t(0,s)}function v(){a=this.__value,t(1,a)}function y(){a=this.__value,t(1,a)}function _(){a=this.__value,t(1,a)}function h(){a=this.__value,t(1,a)}function d(){l=this.value,t(2,l)}return r.$$set=b=>{"id"in b&&t(3,o=b.id),"name"in b&&t(0,s=b.name),"intervention_type"in b&&t(1,a=b.intervention_type),"description"in b&&t(2,l=b.description),"length_meters"in b&&t(4,u=b.length_meters)},[s,a,l,o,u,n,f,p,g,v,c,y,_,h,d]}class Ju extends ee{constructor(e){super(),te(this,e,Yu,Gu,ne,{id:3,name:0,intervention_type:1,description:2,length_meters:4})}}const Xu="Intervention",Wu=[{name:"Route",members:[{name:"name",type:"one-liner"},{name:"description",type:"textbox"},{name:"RouteType",oneOf:[{name:"OnRoad",description:"Directly on or parallel to the carriageway",members:[{name:"OnRoadType",oneOf:["FullSeparation",{value:"Stepped",description:"Raised above the road, but below the footway. Only appropriate on roads with speeds under 30 mph."},"PartSeparation","MandatoryLane","AdvisoryLane",{name:"NoSeparation",description:"If there's no physical separation between the road, why not? Justify why separation is unnecessary.",oneOf:["TrafficCalming","ModalFilters","LowSpeed"]}]},{name:"SourceOfSpace",oneOf:["ReallocateEntireLane","RoadDiet","PavementDiet","ReallocateVerge"]}]},{name:"OffRoad",oneOf:["ThroughPark","CanalTowpath"]}]},{name:"Users",oneOf:["Footpath","Cyclepath","SharedUseNoSeparation",{name:"SharedUseWithSeparation",members:[{name:"width_footpath",type:"number"},{name:"width_cyclepath",type:"number"}]}]}]},{name:"Crossing",members:[{name:"name",type:"one-liner"},{name:"description",type:"textbox"},{name:"CrossingType",oneOf:["Zebra",{name:"Signalised",members:[{name:"SignalisedCrossingType",oneOf:["Puffin","Toucan","Pegasus"]},{name:"CrossingActivation",oneOf:["PressButton","InductionLoop","FixedTimer"]},{name:"MaxTimeWaitingForGreen",description:"After activating the signal, what is the maximum time somebody will wait before getting a green light? (seconds)",type:"number"},{name:"GreenDuration",type:"number"}]},"SchoolCrossing","Refuge",{name:"GradeSeparated",members:[{name:"GradeSeparatedType",oneOf:["Bridge","Tunnel"]},{name:"AccessRamp",type:"checkbox"},{name:"Steps",type:"checkbox"}]}]},{name:"MatchesDesireLine",type:"checkbox"},{name:"MotorTrafficFlow",oneOf:["> 8000","3000 - 8000","< 3000"]},{name:"MotorTrafficSpeed",oneOf:["> 30 mph","20 - 30 mph","< 20 mph"]}]}],Vu={name:Xu,oneOf:Wu};function Ku(r){let e,t,n;function i(s){r[2](s)}let o={spec:r[1]};return r[0].v2!==void 0&&(o.value=r[0].v2),e=new wt({props:o}),ae.push(()=>ve(e,"value",i)),{c(){F(e.$$.fragment)},m(s,a){P(e,s,a),n=!0},p(s,[a]){const l={};!t&&a&1&&(t=!0,l.value=s[0].v2,we(()=>t=!1)),e.$set(l)},i(s){n||(M(e.$$.fragment,s),n=!0)},o(s){C(e.$$.fragment,s),n=!1},d(s){N(e,s)}}}function Zu(r,e,t){let{props:n}=e;n.v2||(n.v2={});let i=Vu;function o(s){r.$$.not_equal(n.v2,s)&&(n.v2=s,t(0,n))}return r.$$set=s=>{"props"in s&&t(0,n=s.props)},[n,i,o]}class Qu extends ee{constructor(e){super(),te(this,e,Zu,Ku,ne,{props:0})}}const ef="Planning",tf=[{name:"name",type:"one-liner"},{name:"notes",type:"textbox"},{name:"reference_type",oneOf:["preapp","outline","reserved matters","local plan"]},{name:"size",type:"number"},{name:"size_units",oneOf:["number of units","floorspace","area"]},{name:"triage",oneOf:["No Comment","Standing Advice","Toolkit Assessment"]},{name:"recommendation",oneOf:["No Comment","No Objection","Standing Advice","Deferral","Approve subject to conditions and/or obligations","Refusal"]}],nf={name:ef,members:tf};function rf(r){let e,t,n;function i(s){r[2](s)}let o={spec:r[1]};return r[0].planning!==void 0&&(o.value=r[0].planning),e=new wt({props:o}),ae.push(()=>ve(e,"value",i)),{c(){F(e.$$.fragment)},m(s,a){P(e,s,a),n=!0},p(s,[a]){const l={};!t&&a&1&&(t=!0,l.value=s[0].planning,we(()=>t=!1)),e.$set(l)},i(s){n||(M(e.$$.fragment,s),n=!0)},o(s){C(e.$$.fragment,s),n=!1},d(s){N(e,s)}}}function of(r,e,t){let{props:n}=e;n.planning||(n.planning={});let i=nf;function o(s){r.$$.not_equal(n.planning,s)&&(n.planning=s,t(0,n))}return r.$$set=s=>{"props"in s&&t(0,n=s.props)},[n,i,o]}class sf extends ee{constructor(e){super(),te(this,e,of,rf,ne,{props:0})}}function gi(r){let e,t,n,i,o;const s=r[10].default,a=xo(s,r,r[9],null);return{c(){e=$("div"),a&&a.c(),Ae(e,"border","solid 1px black"),Ae(e,"padding","10px")},m(l,u){k(l,e,u),a&&a.m(e,null),r[13](e),n=!0,i||(o=Y(e,"introend",r[14]),i=!0)},p(l,u){a&&a.p&&(!n||u&512)&&Io(a,s,l,l[9],n?Po(s,l[9],u,null):Fo(l[9]),null)},i(l){n||(M(a,l),l&&yn(()=>{n&&(t||(t=sn(e,_n,{duration:100},!0)),t.run(1))}),n=!0)},o(l){C(a,l),l&&(t||(t=sn(e,_n,{duration:100},!1)),t.run(0)),n=!1},d(l){l&&S(e),a&&a.d(l),r[13](null),l&&t&&t.end(),i=!1,o()}}}function lf(r){let e,t,n,i,o,s,a,l,u,f,c=r[4]&&gi(r);return{c(){e=$("button"),t=hr("svg"),n=hr("path"),i=A(),o=U(r[1]),s=A(),c&&c.c(),a=be(),x(n,"d","M9 5l7 7-7 7"),x(t,"style","tran"),x(t,"width","20"),x(t,"height","20"),x(t,"fill","none"),x(t,"stroke-linecap","round"),x(t,"stroke-linejoin","round"),x(t,"stroke-width","2"),x(t,"viewBox","0 0 24 24"),x(t,"stroke","currentColor"),x(t,"class","svelte-t7fpgu"),x(e,"aria-expanded",r[4]),x(e,"class","svelte-t7fpgu"),gr(e,"underlined",r[3])},m(p,g){k(p,e,g),E(e,t),E(t,n),E(e,i),E(e,o),k(p,s,g),c&&c.m(p,g),k(p,a,g),l=!0,u||(f=[Y(e,"click",r[5]),Y(e,"mouseenter",r[11]),Y(e,"mouseleave",r[12])],u=!0)},p(p,[g]){(!l||g&2)&&Le(o,p[1]),(!l||g&16)&&x(e,"aria-expanded",p[4]),(!l||g&8)&&gr(e,"underlined",p[3]),p[4]?c?(c.p(p,g),g&16&&M(c,1)):(c=gi(p),c.c(),M(c,1),c.m(a.parentNode,a)):c&&(pe(),C(c,1,1,()=>{c=null}),de())},i(p){l||(M(c),l=!0)},o(p){C(c),l=!1},d(p){p&&(S(e),S(s),S(a)),c&&c.d(p),u=!1,Ie(f)}}}function af(r,e,t){let n,i,o,s;W(r,Ge,d=>t(7,o=d)),W(r,xe,d=>t(8,s=d));let{$$slots:a={},$$scope:l}=e,{id:u}=e,{label:f}=e;const c=()=>{xe.update(d=>d==u?null:u),s==u&&(an.set(null),an.set(u))};let p;function g(){p==null||p.scrollIntoView({behavior:"smooth"})}const v=()=>ln.set(u),y=()=>ln.set(null);function _(d){ae[d?"unshift":"push"](()=>{p=d,t(2,p)})}const h=()=>g();return r.$$set=d=>{"id"in d&&t(0,u=d.id),"label"in d&&t(1,f=d.label),"$$scope"in d&&t(9,l=d.$$scope)},r.$$.update=()=>{r.$$.dirty&257&&t(4,n=s==u),r.$$.dirty&129&&t(3,i=o==u)},[u,f,p,i,n,c,g,o,s,l,a,v,y,_,h]}class uf extends ee{constructor(e){super(),te(this,e,af,lf,ne,{id:0,label:1})}}function _i(r,e,t){const n=r.slice();return n[14]=e[t],n[15]=e,n[16]=t,n}function ff(r){let e,t,n;function i(s){r[10](s,r[14])}let o={};return r[14].properties!==void 0&&(o.props=r[14].properties),e=new gu({props:o}),ae.push(()=>ve(e,"props",i)),{c(){F(e.$$.fragment)},m(s,a){P(e,s,a),n=!0},p(s,a){r=s;const l={};!t&&a&2&&(t=!0,l.props=r[14].properties,we(()=>t=!1)),e.$set(l)},i(s){n||(M(e.$$.fragment,s),n=!0)},o(s){C(e.$$.fragment,s),n=!1},d(s){N(e,s)}}}function cf(r){let e,t,n;function i(s){r[9](s,r[14])}let o={};return r[14].properties!==void 0&&(o.props=r[14].properties),e=new wu({props:o}),ae.push(()=>ve(e,"props",i)),{c(){F(e.$$.fragment)},m(s,a){P(e,s,a),n=!0},p(s,a){r=s;const l={};!t&&a&2&&(t=!0,l.props=r[14].properties,we(()=>t=!1)),e.$set(l)},i(s){n||(M(e.$$.fragment,s),n=!0)},o(s){C(e.$$.fragment,s),n=!1},d(s){N(e,s)}}}function pf(r){let e,t,n;function i(s){r[8](s,r[14])}let o={};return r[14].properties!==void 0&&(o.props=r[14].properties),e=new sf({props:o}),ae.push(()=>ve(e,"props",i)),{c(){F(e.$$.fragment)},m(s,a){P(e,s,a),n=!0},p(s,a){r=s;const l={};!t&&a&2&&(t=!0,l.props=r[14].properties,we(()=>t=!1)),e.$set(l)},i(s){n||(M(e.$$.fragment,s),n=!0)},o(s){C(e.$$.fragment,s),n=!1},d(s){N(e,s)}}}function df(r){let e,t,n;function i(s){r[7](s,r[14])}let o={};return r[14].properties!==void 0&&(o.props=r[14].properties),e=new Qu({props:o}),ae.push(()=>ve(e,"props",i)),{c(){F(e.$$.fragment)},m(s,a){P(e,s,a),n=!0},p(s,a){r=s;const l={};!t&&a&2&&(t=!0,l.props=r[14].properties,we(()=>t=!1)),e.$set(l)},i(s){n||(M(e.$$.fragment,s),n=!0)},o(s){C(e.$$.fragment,s),n=!1},d(s){N(e,s)}}}function hf(r){let e,t,n,i,o;function s(f){r[4](f,r[14])}function a(f){r[5](f,r[14])}function l(f){r[6](f,r[14])}let u={id:r[14].id,length_meters:r[14].properties.length_meters};return r[14].properties.name!==void 0&&(u.name=r[14].properties.name),r[14].properties.intervention_type!==void 0&&(u.intervention_type=r[14].properties.intervention_type),r[14].properties.description!==void 0&&(u.description=r[14].properties.description),e=new Ju({props:u}),ae.push(()=>ve(e,"name",s)),ae.push(()=>ve(e,"intervention_type",a)),ae.push(()=>ve(e,"description",l)),{c(){F(e.$$.fragment)},m(f,c){P(e,f,c),o=!0},p(f,c){r=f;const p={};c&2&&(p.id=r[14].id),c&2&&(p.length_meters=r[14].properties.length_meters),!t&&c&2&&(t=!0,p.name=r[14].properties.name,we(()=>t=!1)),!n&&c&2&&(n=!0,p.intervention_type=r[14].properties.intervention_type,we(()=>n=!1)),!i&&c&2&&(i=!0,p.description=r[14].properties.description,we(()=>i=!1)),e.$set(p)},i(f){o||(M(e.$$.fragment,f),o=!0)},o(f){C(e.$$.fragment,f),o=!1},d(f){N(e,f)}}}function gf(r){let e,t,n,i,o,s,a,l,u,f,c,p,g,v,y;const _=[hf,df,pf,cf,ff],h=[];function d(m,w){return m[0]=="v1"?0:m[0]=="v2"?1:m[0]=="planning"?2:m[0]=="criticals"?3:m[0]=="atf4"?4:-1}~(e=d(r))&&(t=h[e]=_[e](r));function b(){return r[11](r[14])}return{c(){t&&t.c(),n=A(),i=$("br"),o=A(),s=$("br"),a=A(),l=$("div"),u=$("button"),u.textContent="Delete",f=A(),c=$("button"),c.textContent="Save",p=A(),x(u,"type","button"),x(c,"type","button"),Ae(l,"display","flex"),Ae(l,"justify-content","space-between")},m(m,w){~e&&h[e].m(m,w),k(m,n,w),k(m,i,w),k(m,o,w),k(m,s,w),k(m,a,w),k(m,l,w),E(l,u),E(l,f),E(l,c),k(m,p,w),g=!0,v||(y=[Y(u,"click",b),Y(c,"click",r[12])],v=!0)},p(m,w){r=m;let L=e;e=d(r),e===L?~e&&h[e].p(r,w):(t&&(pe(),C(h[L],1,1,()=>{h[L]=null}),de()),~e?(t=h[e],t?t.p(r,w):(t=h[e]=_[e](r),t.c()),M(t,1),t.m(n.parentNode,n)):t=null)},i(m){g||(M(t),g=!0)},o(m){C(t),g=!1},d(m){m&&(S(n),S(i),S(o),S(s),S(a),S(l),S(p)),~e&&h[e].d(m),v=!1,Ie(y)}}}function mi(r,e){let t,n,i;return n=new uf({props:{id:e[14].id,label:e[16]+1+") "+e[2](e[14]),$$slots:{default:[gf]},$$scope:{ctx:e}}}),{key:r,first:null,c(){t=be(),F(n.$$.fragment),this.first=t},m(o,s){k(o,t,s),P(n,o,s),i=!0},p(o,s){e=o;const a={};s&2&&(a.id=e[14].id),s&2&&(a.label=e[16]+1+") "+e[2](e[14])),s&131075&&(a.$$scope={dirty:s,ctx:e}),n.$set(a)},i(o){i||(M(n.$$.fragment,o),i=!0)},o(o){C(n.$$.fragment,o),i=!1},d(o){o&&S(t),N(n,o)}}}function _f(r){let e=[],t=new Map,n,i,o,s,a=He(r[1].features);const l=u=>u[14].id;for(let u=0;ut(13,n=h)),W(r,ce,h=>t(1,i=h));let{schema:o}=e;function s(h){var b,m,w,L,O,R,I;if(o=="planning")return((b=h.properties.planning)==null?void 0:b.name)||"Untitled polygon";if(o=="v2")return((w=(m=h.properties.v2)==null?void 0:m.Route)==null?void 0:w.name)||((O=(L=h.properties.v2)==null?void 0:L.Crossing)==null?void 0:O.name)||"Untitled intervention";if(o=="criticals")return((R=h.properties.criticals)==null?void 0:R.name)||"Untitled issue";if(o=="atf4")return((I=h.properties.atf4)==null?void 0:I.name)||"Untitled intervention";if(h.properties.name)return h.properties.name;var d=h.properties.intervention_type;return d=="other"&&(h.geometry.type=="Point"?d="point":h.geometry.type=="LineString"?d="line":d="polygon"),`Untitled ${d}`}function a(h){if(h.key=="Delete"){const d=h.target.tagName;if(d=="INPUT"||d=="TEXTAREA")return;h.preventDefault();const b=n;b&&_r(b)}}function l(h,d){r.$$.not_equal(d.properties.name,h)&&(d.properties.name=h,ce.set(i))}function u(h,d){r.$$.not_equal(d.properties.intervention_type,h)&&(d.properties.intervention_type=h,ce.set(i))}function f(h,d){r.$$.not_equal(d.properties.description,h)&&(d.properties.description=h,ce.set(i))}function c(h,d){r.$$.not_equal(d.properties,h)&&(d.properties=h,ce.set(i))}function p(h,d){r.$$.not_equal(d.properties,h)&&(d.properties=h,ce.set(i))}function g(h,d){r.$$.not_equal(d.properties,h)&&(d.properties=h,ce.set(i))}function v(h,d){r.$$.not_equal(d.properties,h)&&(d.properties=h,ce.set(i))}const y=h=>_r(h.id),_=()=>xe.set(null);return r.$$set=h=>{"schema"in h&&t(0,o=h.schema)},[o,i,s,a,l,u,f,c,p,g,v,y,_]}class bf extends ee{constructor(e){super(),te(this,e,mf,_f,ne,{schema:0})}}let re;const qe=new Array(128).fill(void 0);qe.push(void 0,null,!0,!1);function X(r){return qe[r]}let Ft=qe.length;function yf(r){r<132||(qe[r]=Ft,Ft=r)}function gt(r){const e=X(r);return yf(r),e}let at=0,$t=null;function Pt(){return($t===null||$t.byteLength===0)&&($t=new Uint8Array(re.memory.buffer)),$t}const tn=typeof TextEncoder<"u"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},vf=typeof tn.encodeInto=="function"?function(r,e){return tn.encodeInto(r,e)}:function(r,e){const t=tn.encode(r);return e.set(t),{read:r.length,written:t.length}};function On(r,e,t){if(t===void 0){const a=tn.encode(r),l=e(a.length)>>>0;return Pt().subarray(l,l+a.length).set(a),at=a.length,l}let n=r.length,i=e(n)>>>0;const o=Pt();let s=0;for(;s127)break;o[i+s]=a}if(s!==n){s!==0&&(r=r.slice(s)),i=t(i,n,n=s+r.length*3)>>>0;const a=Pt().subarray(i+s,i+n),l=vf(r,a);s+=l.written}return at=s,i}function Mt(r){return r==null}let Ct=null;function ge(){return(Ct===null||Ct.byteLength===0)&&(Ct=new Int32Array(re.memory.buffer)),Ct}const io=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};typeof TextDecoder<"u"&&io.decode();function Qe(r,e){return r=r>>>0,io.decode(Pt().subarray(r,r+e))}function ye(r){Ft===qe.length&&qe.push(qe.length+1);const e=Ft;return Ft=qe[e],qe[e]=r,e}let Lt=null;function wf(){return(Lt===null||Lt.byteLength===0)&&(Lt=new Float64Array(re.memory.buffer)),Lt}let Tt=null;function kf(){return(Tt===null||Tt.byteLength===0)&&(Tt=new BigInt64Array(re.memory.buffer)),Tt}function Zn(r){const e=typeof r;if(e=="number"||e=="boolean"||r==null)return`${r}`;if(e=="string")return`"${r}"`;if(e=="symbol"){const i=r.description;return i==null?"Symbol":`Symbol(${i})`}if(e=="function"){const i=r.name;return typeof i=="string"&&i.length>0?`Function(${i})`:"Function"}if(Array.isArray(r)){const i=r.length;let o="[";i>0&&(o+=Zn(r[0]));for(let s=1;s1)n=t[1];else return toString.call(r);if(n=="Object")try{return"Object("+JSON.stringify(r)+")"}catch{return"Object"}return r instanceof Error?`${r.name}: ${r.message} -${r.stack}`:n}function Sf(r,e){const t=e(r.length*1)>>>0;return Pt().set(r,t/1),at=r.length,t}function Rn(r,e){try{return r.apply(this,e)}catch(t){re.__wbindgen_exn_store(ye(t))}}let Ef=class Qn{static __wrap(e){e=e>>>0;const t=Object.create(Qn.prototype);return t.__wbg_ptr=e,t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,e}free(){const e=this.__destroy_into_raw();re.__wbg_routeinfo_free(e)}constructor(e){try{const o=re.__wbindgen_add_to_stack_pointer(-16),s=Sf(e,re.__wbindgen_malloc),a=at;re.routeinfo_new(o,s,a);var t=ge()[o/4+0],n=ge()[o/4+1],i=ge()[o/4+2];if(i)throw gt(n);return Qn.__wrap(t)}finally{re.__wbindgen_add_to_stack_pointer(16)}}nameForRoute(e){let t,n;try{const f=re.__wbindgen_add_to_stack_pointer(-16);re.routeinfo_nameForRoute(f,this.__wbg_ptr,ye(e));var i=ge()[f/4+0],o=ge()[f/4+1],s=ge()[f/4+2],a=ge()[f/4+3],l=i,u=o;if(a)throw l=0,u=0,gt(s);return t=l,n=u,Qe(l,u)}finally{re.__wbindgen_add_to_stack_pointer(16),re.__wbindgen_free(t,n)}}speedLimitForRoute(e){let t,n;try{const f=re.__wbindgen_add_to_stack_pointer(-16);re.routeinfo_speedLimitForRoute(f,this.__wbg_ptr,ye(e));var i=ge()[f/4+0],o=ge()[f/4+1],s=ge()[f/4+2],a=ge()[f/4+3],l=i,u=o;if(a)throw l=0,u=0,gt(s);return t=l,n=u,Qe(l,u)}finally{re.__wbindgen_add_to_stack_pointer(16),re.__wbindgen_free(t,n)}}allSpeedLimits(){let e,t;try{const u=re.__wbindgen_add_to_stack_pointer(-16);re.routeinfo_allSpeedLimits(u,this.__wbg_ptr);var n=ge()[u/4+0],i=ge()[u/4+1],o=ge()[u/4+2],s=ge()[u/4+3],a=n,l=i;if(s)throw a=0,l=0,gt(o);return e=a,t=l,Qe(a,l)}finally{re.__wbindgen_add_to_stack_pointer(16),re.__wbindgen_free(e,t)}}renderLaneDetailsForRoute(e){let t,n;try{const f=re.__wbindgen_add_to_stack_pointer(-16);re.routeinfo_renderLaneDetailsForRoute(f,this.__wbg_ptr,ye(e));var i=ge()[f/4+0],o=ge()[f/4+1],s=ge()[f/4+2],a=ge()[f/4+3],l=i,u=o;if(a)throw l=0,u=0,gt(s);return t=l,n=u,Qe(l,u)}finally{re.__wbindgen_add_to_stack_pointer(16),re.__wbindgen_free(t,n)}}};async function Mf(r,e){if(typeof Response=="function"&&r instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(r,e)}catch(n){if(r.headers.get("Content-Type")!="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",n);else throw n}const t=await r.arrayBuffer();return await WebAssembly.instantiate(t,e)}else{const t=await WebAssembly.instantiate(r,e);return t instanceof WebAssembly.Instance?{instance:t,module:r}:t}}function $f(){const r={};return r.wbg={},r.wbg.__wbindgen_object_drop_ref=function(e){gt(e)},r.wbg.__wbindgen_boolean_get=function(e){const t=X(e);return typeof t=="boolean"?t?1:0:2},r.wbg.__wbindgen_string_get=function(e,t){const n=X(t),i=typeof n=="string"?n:void 0;var o=Mt(i)?0:On(i,re.__wbindgen_malloc,re.__wbindgen_realloc),s=at;ge()[e/4+1]=s,ge()[e/4+0]=o},r.wbg.__wbindgen_error_new=function(e,t){const n=new Error(Qe(e,t));return ye(n)},r.wbg.__wbindgen_is_bigint=function(e){return typeof X(e)=="bigint"},r.wbg.__wbindgen_bigint_from_i64=function(e){return ye(e)},r.wbg.__wbindgen_jsval_eq=function(e,t){return X(e)===X(t)},r.wbg.__wbindgen_number_get=function(e,t){const n=X(t),i=typeof n=="number"?n:void 0;wf()[e/8+1]=Mt(i)?0:i,ge()[e/4+0]=!Mt(i)},r.wbg.__wbindgen_is_object=function(e){const t=X(e);return typeof t=="object"&&t!==null},r.wbg.__wbindgen_in=function(e,t){return X(e)in X(t)},r.wbg.__wbindgen_bigint_from_u64=function(e){const t=BigInt.asUintN(64,e);return ye(t)},r.wbg.__wbindgen_is_undefined=function(e){return X(e)===void 0},r.wbg.__wbindgen_string_new=function(e,t){const n=Qe(e,t);return ye(n)},r.wbg.__wbindgen_jsval_loose_eq=function(e,t){return X(e)==X(t)},r.wbg.__wbindgen_object_clone_ref=function(e){const t=X(e);return ye(t)},r.wbg.__wbg_getwithrefkey_5e6d9547403deab8=function(e,t){const n=X(e)[X(t)];return ye(n)},r.wbg.__wbg_new_abda76e883ba8a5f=function(){const e=new Error;return ye(e)},r.wbg.__wbg_stack_658279fe44541cf6=function(e,t){const n=X(t).stack,i=On(n,re.__wbindgen_malloc,re.__wbindgen_realloc),o=at;ge()[e/4+1]=o,ge()[e/4+0]=i},r.wbg.__wbg_error_f851667af71bcfc6=function(e,t){let n,i;try{n=e,i=t,console.error(Qe(e,t))}finally{re.__wbindgen_free(n,i)}},r.wbg.__wbg_debug_917e579618ee56f5=function(e){console.debug(X(e))},r.wbg.__wbg_error_ea7597dedb63d9a4=function(e){console.error(X(e))},r.wbg.__wbg_info_fc2a17f38101c41c=function(e){console.info(X(e))},r.wbg.__wbg_log_003c998d6df63565=function(e){console.log(X(e))},r.wbg.__wbg_warn_ebfcadd0780df93a=function(e){console.warn(X(e))},r.wbg.__wbg_get_e52aaca45f37b337=function(e,t){const n=X(e)[t>>>0];return ye(n)},r.wbg.__wbg_length_070e3265c186df02=function(e){return X(e).length},r.wbg.__wbindgen_is_function=function(e){return typeof X(e)=="function"},r.wbg.__wbg_next_3975dcca26737a22=function(e){const t=X(e).next;return ye(t)},r.wbg.__wbg_next_5a9700550e162aa3=function(){return Rn(function(e){const t=X(e).next();return ye(t)},arguments)},r.wbg.__wbg_done_a184612220756243=function(e){return X(e).done},r.wbg.__wbg_value_6cc144c1d9645dd5=function(e){const t=X(e).value;return ye(t)},r.wbg.__wbg_iterator_c1677479667ea090=function(){return ye(Symbol.iterator)},r.wbg.__wbg_get_363c3b466fe4896b=function(){return Rn(function(e,t){const n=Reflect.get(X(e),X(t));return ye(n)},arguments)},r.wbg.__wbg_call_f96b398515635514=function(){return Rn(function(e,t){const n=X(e).call(X(t));return ye(n)},arguments)},r.wbg.__wbg_isArray_07d89ced8fb14171=function(e){return Array.isArray(X(e))},r.wbg.__wbg_instanceof_ArrayBuffer_de688b806c28ff28=function(e){let t;try{t=X(e)instanceof ArrayBuffer}catch{t=!1}return t},r.wbg.__wbg_isSafeInteger_fcdf4c4f25c86778=function(e){return Number.isSafeInteger(X(e))},r.wbg.__wbg_entries_c3e06bf0354f5d20=function(e){const t=Object.entries(X(e));return ye(t)},r.wbg.__wbg_buffer_fcbfb6d88b2732e9=function(e){const t=X(e).buffer;return ye(t)},r.wbg.__wbg_new_bc5d9aad3f9ac80e=function(e){const t=new Uint8Array(X(e));return ye(t)},r.wbg.__wbg_set_4b3aa8445ac1e91c=function(e,t,n){X(e).set(X(t),n>>>0)},r.wbg.__wbg_length_d9c4ded7e708c6a1=function(e){return X(e).length},r.wbg.__wbg_instanceof_Uint8Array_4733577ba827276b=function(e){let t;try{t=X(e)instanceof Uint8Array}catch{t=!1}return t},r.wbg.__wbindgen_bigint_get_as_i64=function(e,t){const n=X(t),i=typeof n=="bigint"?n:void 0;kf()[e/8+1]=Mt(i)?BigInt(0):i,ge()[e/4+0]=!Mt(i)},r.wbg.__wbindgen_debug_string=function(e,t){const n=Zn(X(t)),i=On(n,re.__wbindgen_malloc,re.__wbindgen_realloc),o=at;ge()[e/4+1]=o,ge()[e/4+0]=i},r.wbg.__wbindgen_throw=function(e,t){throw new Error(Qe(e,t))},r.wbg.__wbindgen_memory=function(){const e=re.memory;return ye(e)},r}function Cf(r,e){return re=r.exports,oo.__wbindgen_wasm_module=e,Tt=null,Lt=null,Ct=null,$t=null,re}async function oo(r){if(re!==void 0)return re;typeof r>"u"&&(r="/atip/capitalize_auto_form/assets/route_info_bg.wasm");const e=$f();(typeof r=="string"||typeof Request=="function"&&r instanceof Request||typeof URL=="function"&&r instanceof URL)&&(r=fetch(r));const{instance:t,module:n}=await Mf(await r,e);return Cf(t,n)}class Lf{constructor(){J(this,"inner");this.inner=null}async loadFile(e){await oo(),console.log(`Grabbing A/B Street map model data from ${e}`);let n=await(await fetch(e)).arrayBuffer();this.inner=new Ef(new Uint8Array(n)),console.log("RouteInfo is ready!")}nameForRoute(e){if(!this.inner)throw new Error("Still loading route info, please retry after a few seconds");return this.inner.nameForRoute(e)}speedLimitForRoute(e){if(!this.inner)throw new Error("Still loading route info, please retry after a few seconds");return this.inner.speedLimitForRoute(e)}allSpeedLimits(){if(!this.inner)throw new Error("Still loading route info, please retry after a few seconds");return this.inner.allSpeedLimits()}renderLaneDetailsForRoute(e){if(!this.inner)throw new Error("Still loading route info, please retry after a few seconds");return JSON.parse(this.inner.renderLaneDetailsForRoute(e))}}sr(Lf);function Tf(){return new Worker("/atip/capitalize_auto_form/assets/worker-90ea6d15.js")}function Af(r){let e,t,n,i,o,s,a,l,u,f,c,p,g,v,y,_,h,d,b,m,w,L,O,R,I,B,D;return v=new zo({props:{boundaryGeojson:r[2]}}),_=new Ua({props:{authorityName:r[3],schema:r[5]}}),m=new bf({props:{schema:r[5]}}),R=new Ia({}),{c(){e=$("div"),t=$("div"),n=$("button"),n.textContent="Home",i=A(),o=$("button"),o.textContent="About",s=A(),a=$("button"),a.textContent="Instructions",l=A(),u=$("p"),u.textContent=`${qo(r[5])} mode`,f=A(),c=$("h1"),p=U(r[3]),g=A(),F(v.$$.fragment),y=A(),F(_.$$.fragment),h=A(),d=$("br"),b=A(),F(m.$$.fragment),w=A(),L=$("hr"),O=A(),F(R.$$.fragment),x(n,"type","button"),x(o,"type","button"),x(a,"type","button"),x(e,"slot","sidebar")},m(j,T){k(j,e,T),E(e,t),E(t,n),E(t,i),E(t,o),E(t,s),E(t,a),E(e,l),E(e,u),E(e,f),E(e,c),E(c,p),E(c,g),P(v,c,null),E(e,y),P(_,e,null),E(e,h),E(e,d),E(e,b),P(m,e,null),E(e,w),E(e,L),E(e,O),P(R,e,null),I=!0,B||(D=[Y(n,"click",r[9]),Y(o,"click",r[7]),Y(a,"click",r[8])],B=!0)},p(j,T){const z={};T&4&&(z.boundaryGeojson=j[2]),v.$set(z)},i(j){I||(M(v.$$.fragment,j),M(_.$$.fragment,j),M(m.$$.fragment,j),M(R.$$.fragment,j),I=!0)},o(j){C(v.$$.fragment,j),C(_.$$.fragment,j),C(m.$$.fragment,j),C(R.$$.fragment,j),I=!1},d(j){j&&S(e),N(v),N(_),N(m),N(R),B=!1,Ie(D)}}}function Of(r){let e,t,n,i,o,s,a,l,u,f,c,p;return e=new xs({props:{boundaryGeojson:r[2]}}),n=new Yo({props:{schema:r[5]}}),o=new Fs({}),a=new ya({props:{routeSnapperUrl:r[6],schema:r[5]}}),u=new Jo({props:{style:r[4]}}),c=new Xo({props:{schema:r[5]}}),{c(){F(e.$$.fragment),t=A(),F(n.$$.fragment),i=A(),F(o.$$.fragment),s=A(),F(a.$$.fragment),l=A(),F(u.$$.fragment),f=A(),F(c.$$.fragment)},m(g,v){P(e,g,v),k(g,t,v),P(n,g,v),k(g,i,v),P(o,g,v),k(g,s,v),P(a,g,v),k(g,l,v),P(u,g,v),k(g,f,v),P(c,g,v),p=!0},p(g,v){const y={};v&4&&(y.boundaryGeojson=g[2]),e.$set(y)},i(g){p||(M(e.$$.fragment,g),M(n.$$.fragment,g),M(o.$$.fragment,g),M(a.$$.fragment,g),M(u.$$.fragment,g),M(c.$$.fragment,g),p=!0)},o(g){C(e.$$.fragment,g),C(n.$$.fragment,g),C(o.$$.fragment,g),C(a.$$.fragment,g),C(u.$$.fragment,g),C(c.$$.fragment,g),p=!1},d(g){g&&(S(t),S(i),S(s),S(l),S(f)),N(e,g),N(n,g),N(o,g),N(a,g),N(u,g),N(c,g)}}}function Rf(r){let e,t,n;return t=new Go({props:{style:r[4],$$slots:{default:[Of]},$$scope:{ctx:r}}}),{c(){e=$("div"),F(t.$$.fragment),x(e,"slot","main")},m(i,o){k(i,e,o),P(t,e,null),n=!0},p(i,o){const s={};o&32772&&(s.$$scope={dirty:o,ctx:i}),t.$set(s)},i(i){n||(M(t.$$.fragment,i),n=!0)},o(i){C(t.$$.fragment,i),n=!1},d(i){i&&S(e),N(t)}}}function xf(r){let e,t,n,i,o,s,a,l;e=new Uo({props:{$$slots:{main:[Rf],sidebar:[Af]},$$scope:{ctx:r}}});function u(g){r[10](g)}let f={};r[0]!==void 0&&(f.open=r[0]),n=new Do({props:f}),ae.push(()=>ve(n,"open",u));function c(g){r[11](g)}let p={schema:r[5]};return r[1]!==void 0&&(p.open=r[1]),s=new Ya({props:p}),ae.push(()=>ve(s,"open",c)),{c(){F(e.$$.fragment),t=A(),F(n.$$.fragment),o=A(),F(s.$$.fragment)},m(g,v){P(e,g,v),k(g,t,v),P(n,g,v),k(g,o,v),P(s,g,v),l=!0},p(g,[v]){const y={};v&32772&&(y.$$scope={dirty:v,ctx:g}),e.$set(y);const _={};!i&&v&1&&(i=!0,_.open=g[0],we(()=>i=!1)),n.$set(_);const h={};!a&&v&2&&(a=!0,h.open=g[1],we(()=>a=!1)),s.$set(h)},i(g){l||(M(e.$$.fragment,g),M(n.$$.fragment,g),M(s.$$.fragment,g),l=!0)},o(g){C(e.$$.fragment,g),C(n.$$.fragment,g),C(s.$$.fragment,g),l=!1},d(g){g&&(S(t),S(o)),N(e,g),N(n,g),N(s,g)}}}function If(r,e,t){let n=!1,i=!1;const o=new URLSearchParams(window.location.search);let s=o.get("authority"),a=o.get("style")||"streets",l=o.get("schema")||"v1",u=`https://atip.uk/route-snappers/v2.1/${s}.bin.gz`,f=`https://atip.uk/route-info/v2/${s}.bin.gz`;function c(){t(0,n=!n),t(1,i=!1)}function p(){t(1,i=!i),t(0,n=!1)}let g;Ht(async()=>{t(2,g=await v());const d=Ci(new Tf);let b=await new d;await b.loadFile(f),vt.set(b)});async function v(){const b=await(await fetch(Ho)).text(),m=JSON.parse(b);return m.features=m.features.filter(w=>{var L;return((L=w.properties)==null?void 0:L.name)==s}),m.features.length===0&&(window.location.href=`/?error=Authority name not found: ${s}`),m}const y=()=>window.location.href="index.html";function _(d){n=d,t(0,n)}function h(d){i=d,t(1,i)}return[n,i,g,s,a,l,u,c,p,y,_,h]}class Ff extends ee{constructor(e){super(),te(this,e,If,xf,ne,{})}}new Ff({target:document.getElementById("app")}); + Other`),D=A(),j=$("br"),T=A(),z=$("br"),ue=A(),he=$("label"),Se=U("Description:"),Ee=$("br"),_e=A(),me=$("textarea"),Te=A(),ie&&ie.c(),se=be(),x(s,"type","text"),Ae(s,"width","100%"),x(g,"type","radio"),g.__value="area",fe(g,g.__value),x(h,"type","radio"),h.__value="route",fe(h,h.__value),x(w,"type","radio"),w.__value="crossing",fe(w,w.__value),x(I,"type","radio"),I.__value="other",fe(I,I.__value),Ae(me,"width","100%"),x(me,"rows","5"),x(me,"class","svelte-15lna0i"),Z.p(g,h,w,I)},m(V,oe){k(V,e,oe),E(e,t),le&&le.m(e,null),E(e,n),E(e,i),E(e,o),E(e,s),fe(s,r[0]),k(V,a,oe),k(V,l,oe),k(V,u,oe),k(V,f,oe),k(V,c,oe),k(V,p,oe),E(p,g),g.checked=g.__value===r[1],E(p,v),k(V,y,oe),k(V,_,oe),E(_,h),h.checked=h.__value===r[1],E(_,d),k(V,b,oe),k(V,m,oe),E(m,w),w.checked=w.__value===r[1],E(m,L),k(V,O,oe),k(V,R,oe),E(R,I),I.checked=I.__value===r[1],E(R,B),k(V,D,oe),k(V,j,oe),k(V,T,oe),k(V,z,oe),k(V,ue,oe),k(V,he,oe),E(he,Se),E(he,Ee),E(he,_e),E(he,me),fe(me,r[2]),k(V,Te,oe),ie&&ie.m(V,oe),k(V,se,oe),H=!0,Ye||(ot=[Y(s,"input",r[8]),Y(g,"change",r[9]),Y(h,"change",r[11]),Y(w,"change",r[12]),Y(I,"change",r[13]),Y(me,"input",r[14])],Ye=!0)},p(V,[oe]){V[4]?le?le.p(V,oe):(le=pi(V),le.c(),le.m(e,n)):le&&(le.d(1),le=null),oe&1&&s.value!==V[0]&&fe(s,V[0]),oe&2&&(g.checked=g.__value===V[1]),oe&2&&(h.checked=h.__value===V[1]),oe&2&&(w.checked=w.__value===V[1]),oe&2&&(I.checked=I.__value===V[1]),oe&4&&fe(me,V[2]),V[4]?ie?(ie.p(V,oe),oe&16&&M(ie,1)):(ie=di(V),ie.c(),M(ie,1),ie.m(se.parentNode,se)):ie&&(pe(),C(ie,1,1,()=>{ie=null}),de())},i(V){H||(M(ie),H=!0)},o(V){C(ie),H=!1},d(V){V&&(S(e),S(a),S(l),S(u),S(f),S(c),S(p),S(y),S(_),S(b),S(m),S(O),S(R),S(D),S(j),S(T),S(z),S(ue),S(he),S(Te),S(se)),le&&le.d(),ie&&ie.d(V),Z.r(),Ye=!1,Ie(ot)}}}function hi(r){return r<1e3?Math.round(r)+" m":(r/1e3).toFixed(1)+"km"}function Yu(r,e,t){let n,i;W(r,wt,b=>t(5,n=b)),W(r,ce,b=>t(15,i=b));let{id:o}=e,{name:s}=e,{intervention_type:a}=e,{description:l}=e,{length_meters:u}=e;async function f(){let b=i.features.find(m=>m.id==o);try{t(0,s=await n.nameForRoute(b))}catch(m){window.alert(`Couldn't auto-name route: ${m}`)}}const c=[[]],p=()=>f();function g(){s=this.value,t(0,s)}function v(){a=this.__value,t(1,a)}function y(){a=this.__value,t(1,a)}function _(){a=this.__value,t(1,a)}function h(){a=this.__value,t(1,a)}function d(){l=this.value,t(2,l)}return r.$$set=b=>{"id"in b&&t(3,o=b.id),"name"in b&&t(0,s=b.name),"intervention_type"in b&&t(1,a=b.intervention_type),"description"in b&&t(2,l=b.description),"length_meters"in b&&t(4,u=b.length_meters)},[s,a,l,o,u,n,f,p,g,v,c,y,_,h,d]}class Ju extends ee{constructor(e){super(),te(this,e,Yu,Gu,ne,{id:3,name:0,intervention_type:1,description:2,length_meters:4})}}const Xu="Intervention",Wu=[{name:"Route",members:[{name:"name",type:"one-liner"},{name:"description",type:"textbox"},{name:"RouteType",oneOf:[{name:"OnRoad",description:"Directly on or parallel to the carriageway",members:[{name:"OnRoadType",oneOf:["FullSeparation",{value:"Stepped",description:"Raised above the road, but below the footway. Only appropriate on roads with speeds under 30 mph."},"PartSeparation","MandatoryLane","AdvisoryLane",{name:"NoSeparation",description:"If there's no physical separation between the road, why not? Justify why separation is unnecessary.",oneOf:["TrafficCalming","ModalFilters","LowSpeed"]}]},{name:"SourceOfSpace",oneOf:["ReallocateEntireLane","RoadDiet","PavementDiet","ReallocateVerge"]}]},{name:"OffRoad",oneOf:["ThroughPark","CanalTowpath"]}]},{name:"Users",oneOf:["Footpath","Cyclepath","SharedUseNoSeparation",{name:"SharedUseWithSeparation",members:[{name:"width_footpath",type:"number"},{name:"width_cyclepath",type:"number"}]}]}]},{name:"Crossing",members:[{name:"name",type:"one-liner"},{name:"description",type:"textbox"},{name:"CrossingType",oneOf:["Zebra",{name:"Signalised",members:[{name:"SignalisedCrossingType",oneOf:["Puffin","Toucan","Pegasus"]},{name:"CrossingActivation",oneOf:["PressButton","InductionLoop","FixedTimer"]},{name:"MaxTimeWaitingForGreen",description:"After activating the signal, what is the maximum time somebody will wait before getting a green light? (seconds)",type:"number"},{name:"GreenDuration",type:"number"}]},"SchoolCrossing","Refuge",{name:"GradeSeparated",members:[{name:"GradeSeparatedType",oneOf:["Bridge","Tunnel"]},{name:"AccessRamp",type:"checkbox"},{name:"Steps",type:"checkbox"}]}]},{name:"MatchesDesireLine",type:"checkbox"},{name:"MotorTrafficFlow",oneOf:["> 8000","3000 - 8000","< 3000"]},{name:"MotorTrafficSpeed",oneOf:["> 30 mph","20 - 30 mph","< 20 mph"]}]}],Vu={name:Xu,oneOf:Wu};function Ku(r){let e,t,n;function i(s){r[2](s)}let o={spec:r[1]};return r[0].v2!==void 0&&(o.value=r[0].v2),e=new kt({props:o}),ae.push(()=>ve(e,"value",i)),{c(){F(e.$$.fragment)},m(s,a){P(e,s,a),n=!0},p(s,[a]){const l={};!t&&a&1&&(t=!0,l.value=s[0].v2,we(()=>t=!1)),e.$set(l)},i(s){n||(M(e.$$.fragment,s),n=!0)},o(s){C(e.$$.fragment,s),n=!1},d(s){N(e,s)}}}function Zu(r,e,t){let{props:n}=e;n.v2||(n.v2={});let i=Vu;function o(s){r.$$.not_equal(n.v2,s)&&(n.v2=s,t(0,n))}return r.$$set=s=>{"props"in s&&t(0,n=s.props)},[n,i,o]}class Qu extends ee{constructor(e){super(),te(this,e,Zu,Ku,ne,{props:0})}}const ef="Planning",tf=[{name:"name",type:"one-liner"},{name:"notes",type:"textbox"},{name:"reference_type",oneOf:["preapp","outline","reserved matters","local plan"]},{name:"size",type:"number"},{name:"size_units",oneOf:["number of units","floorspace","area"]},{name:"triage",oneOf:["No Comment","Standing Advice","Toolkit Assessment"]},{name:"recommendation",oneOf:["No Comment","No Objection","Standing Advice","Deferral","Approve subject to conditions and/or obligations","Refusal"]}],nf={name:ef,members:tf};function rf(r){let e,t,n;function i(s){r[2](s)}let o={spec:r[1]};return r[0].planning!==void 0&&(o.value=r[0].planning),e=new kt({props:o}),ae.push(()=>ve(e,"value",i)),{c(){F(e.$$.fragment)},m(s,a){P(e,s,a),n=!0},p(s,[a]){const l={};!t&&a&1&&(t=!0,l.value=s[0].planning,we(()=>t=!1)),e.$set(l)},i(s){n||(M(e.$$.fragment,s),n=!0)},o(s){C(e.$$.fragment,s),n=!1},d(s){N(e,s)}}}function of(r,e,t){let{props:n}=e;n.planning||(n.planning={});let i=nf;function o(s){r.$$.not_equal(n.planning,s)&&(n.planning=s,t(0,n))}return r.$$set=s=>{"props"in s&&t(0,n=s.props)},[n,i,o]}class sf extends ee{constructor(e){super(),te(this,e,of,rf,ne,{props:0})}}function gi(r){let e,t,n,i,o;const s=r[10].default,a=xo(s,r,r[9],null);return{c(){e=$("div"),a&&a.c(),Ae(e,"border","solid 1px black"),Ae(e,"padding","10px")},m(l,u){k(l,e,u),a&&a.m(e,null),r[13](e),n=!0,i||(o=Y(e,"introend",r[14]),i=!0)},p(l,u){a&&a.p&&(!n||u&512)&&Io(a,s,l,l[9],n?Po(s,l[9],u,null):Fo(l[9]),null)},i(l){n||(M(a,l),l&&vn(()=>{n&&(t||(t=ln(e,mn,{duration:100},!0)),t.run(1))}),n=!0)},o(l){C(a,l),l&&(t||(t=ln(e,mn,{duration:100},!1)),t.run(0)),n=!1},d(l){l&&S(e),a&&a.d(l),r[13](null),l&&t&&t.end(),i=!1,o()}}}function lf(r){let e,t,n,i,o,s,a,l,u,f,c=r[4]&&gi(r);return{c(){e=$("button"),t=gr("svg"),n=gr("path"),i=A(),o=U(r[1]),s=A(),c&&c.c(),a=be(),x(n,"d","M9 5l7 7-7 7"),x(t,"style","tran"),x(t,"width","20"),x(t,"height","20"),x(t,"fill","none"),x(t,"stroke-linecap","round"),x(t,"stroke-linejoin","round"),x(t,"stroke-width","2"),x(t,"viewBox","0 0 24 24"),x(t,"stroke","currentColor"),x(t,"class","svelte-t7fpgu"),x(e,"aria-expanded",r[4]),x(e,"class","svelte-t7fpgu"),_r(e,"underlined",r[3])},m(p,g){k(p,e,g),E(e,t),E(t,n),E(e,i),E(e,o),k(p,s,g),c&&c.m(p,g),k(p,a,g),l=!0,u||(f=[Y(e,"click",r[5]),Y(e,"mouseenter",r[11]),Y(e,"mouseleave",r[12])],u=!0)},p(p,[g]){(!l||g&2)&&Le(o,p[1]),(!l||g&16)&&x(e,"aria-expanded",p[4]),(!l||g&8)&&_r(e,"underlined",p[3]),p[4]?c?(c.p(p,g),g&16&&M(c,1)):(c=gi(p),c.c(),M(c,1),c.m(a.parentNode,a)):c&&(pe(),C(c,1,1,()=>{c=null}),de())},i(p){l||(M(c),l=!0)},o(p){C(c),l=!1},d(p){p&&(S(e),S(s),S(a)),c&&c.d(p),u=!1,Ie(f)}}}function af(r,e,t){let n,i,o,s;W(r,Ge,d=>t(7,o=d)),W(r,xe,d=>t(8,s=d));let{$$slots:a={},$$scope:l}=e,{id:u}=e,{label:f}=e;const c=()=>{xe.update(d=>d==u?null:u),s==u&&(un.set(null),un.set(u))};let p;function g(){p==null||p.scrollIntoView({behavior:"smooth"})}const v=()=>an.set(u),y=()=>an.set(null);function _(d){ae[d?"unshift":"push"](()=>{p=d,t(2,p)})}const h=()=>g();return r.$$set=d=>{"id"in d&&t(0,u=d.id),"label"in d&&t(1,f=d.label),"$$scope"in d&&t(9,l=d.$$scope)},r.$$.update=()=>{r.$$.dirty&257&&t(4,n=s==u),r.$$.dirty&129&&t(3,i=o==u)},[u,f,p,i,n,c,g,o,s,l,a,v,y,_,h]}class uf extends ee{constructor(e){super(),te(this,e,af,lf,ne,{id:0,label:1})}}function _i(r,e,t){const n=r.slice();return n[14]=e[t],n[15]=e,n[16]=t,n}function ff(r){let e,t,n;function i(s){r[10](s,r[14])}let o={};return r[14].properties!==void 0&&(o.props=r[14].properties),e=new gu({props:o}),ae.push(()=>ve(e,"props",i)),{c(){F(e.$$.fragment)},m(s,a){P(e,s,a),n=!0},p(s,a){r=s;const l={};!t&&a&2&&(t=!0,l.props=r[14].properties,we(()=>t=!1)),e.$set(l)},i(s){n||(M(e.$$.fragment,s),n=!0)},o(s){C(e.$$.fragment,s),n=!1},d(s){N(e,s)}}}function cf(r){let e,t,n;function i(s){r[9](s,r[14])}let o={};return r[14].properties!==void 0&&(o.props=r[14].properties),e=new wu({props:o}),ae.push(()=>ve(e,"props",i)),{c(){F(e.$$.fragment)},m(s,a){P(e,s,a),n=!0},p(s,a){r=s;const l={};!t&&a&2&&(t=!0,l.props=r[14].properties,we(()=>t=!1)),e.$set(l)},i(s){n||(M(e.$$.fragment,s),n=!0)},o(s){C(e.$$.fragment,s),n=!1},d(s){N(e,s)}}}function pf(r){let e,t,n;function i(s){r[8](s,r[14])}let o={};return r[14].properties!==void 0&&(o.props=r[14].properties),e=new sf({props:o}),ae.push(()=>ve(e,"props",i)),{c(){F(e.$$.fragment)},m(s,a){P(e,s,a),n=!0},p(s,a){r=s;const l={};!t&&a&2&&(t=!0,l.props=r[14].properties,we(()=>t=!1)),e.$set(l)},i(s){n||(M(e.$$.fragment,s),n=!0)},o(s){C(e.$$.fragment,s),n=!1},d(s){N(e,s)}}}function df(r){let e,t,n;function i(s){r[7](s,r[14])}let o={};return r[14].properties!==void 0&&(o.props=r[14].properties),e=new Qu({props:o}),ae.push(()=>ve(e,"props",i)),{c(){F(e.$$.fragment)},m(s,a){P(e,s,a),n=!0},p(s,a){r=s;const l={};!t&&a&2&&(t=!0,l.props=r[14].properties,we(()=>t=!1)),e.$set(l)},i(s){n||(M(e.$$.fragment,s),n=!0)},o(s){C(e.$$.fragment,s),n=!1},d(s){N(e,s)}}}function hf(r){let e,t,n,i,o;function s(f){r[4](f,r[14])}function a(f){r[5](f,r[14])}function l(f){r[6](f,r[14])}let u={id:r[14].id,length_meters:r[14].properties.length_meters};return r[14].properties.name!==void 0&&(u.name=r[14].properties.name),r[14].properties.intervention_type!==void 0&&(u.intervention_type=r[14].properties.intervention_type),r[14].properties.description!==void 0&&(u.description=r[14].properties.description),e=new Ju({props:u}),ae.push(()=>ve(e,"name",s)),ae.push(()=>ve(e,"intervention_type",a)),ae.push(()=>ve(e,"description",l)),{c(){F(e.$$.fragment)},m(f,c){P(e,f,c),o=!0},p(f,c){r=f;const p={};c&2&&(p.id=r[14].id),c&2&&(p.length_meters=r[14].properties.length_meters),!t&&c&2&&(t=!0,p.name=r[14].properties.name,we(()=>t=!1)),!n&&c&2&&(n=!0,p.intervention_type=r[14].properties.intervention_type,we(()=>n=!1)),!i&&c&2&&(i=!0,p.description=r[14].properties.description,we(()=>i=!1)),e.$set(p)},i(f){o||(M(e.$$.fragment,f),o=!0)},o(f){C(e.$$.fragment,f),o=!1},d(f){N(e,f)}}}function gf(r){let e,t,n,i,o,s,a,l,u,f,c,p,g,v,y;const _=[hf,df,pf,cf,ff],h=[];function d(m,w){return m[0]=="v1"?0:m[0]=="v2"?1:m[0]=="planning"?2:m[0]=="criticals"?3:m[0]=="atf4"?4:-1}~(e=d(r))&&(t=h[e]=_[e](r));function b(){return r[11](r[14])}return{c(){t&&t.c(),n=A(),i=$("br"),o=A(),s=$("br"),a=A(),l=$("div"),u=$("button"),u.textContent="Delete",f=A(),c=$("button"),c.textContent="Save",p=A(),x(u,"type","button"),x(c,"type","button"),Ae(l,"display","flex"),Ae(l,"justify-content","space-between")},m(m,w){~e&&h[e].m(m,w),k(m,n,w),k(m,i,w),k(m,o,w),k(m,s,w),k(m,a,w),k(m,l,w),E(l,u),E(l,f),E(l,c),k(m,p,w),g=!0,v||(y=[Y(u,"click",b),Y(c,"click",r[12])],v=!0)},p(m,w){r=m;let L=e;e=d(r),e===L?~e&&h[e].p(r,w):(t&&(pe(),C(h[L],1,1,()=>{h[L]=null}),de()),~e?(t=h[e],t?t.p(r,w):(t=h[e]=_[e](r),t.c()),M(t,1),t.m(n.parentNode,n)):t=null)},i(m){g||(M(t),g=!0)},o(m){C(t),g=!1},d(m){m&&(S(n),S(i),S(o),S(s),S(a),S(l),S(p)),~e&&h[e].d(m),v=!1,Ie(y)}}}function mi(r,e){let t,n,i;return n=new uf({props:{id:e[14].id,label:e[16]+1+") "+e[2](e[14]),$$slots:{default:[gf]},$$scope:{ctx:e}}}),{key:r,first:null,c(){t=be(),F(n.$$.fragment),this.first=t},m(o,s){k(o,t,s),P(n,o,s),i=!0},p(o,s){e=o;const a={};s&2&&(a.id=e[14].id),s&2&&(a.label=e[16]+1+") "+e[2](e[14])),s&131075&&(a.$$scope={dirty:s,ctx:e}),n.$set(a)},i(o){i||(M(n.$$.fragment,o),i=!0)},o(o){C(n.$$.fragment,o),i=!1},d(o){o&&S(t),N(n,o)}}}function _f(r){let e=[],t=new Map,n,i,o,s,a=He(r[1].features);const l=u=>u[14].id;for(let u=0;ut(13,n=h)),W(r,ce,h=>t(1,i=h));let{schema:o}=e;function s(h){var b,m,w,L,O,R,I;if(o=="planning")return((b=h.properties.planning)==null?void 0:b.name)||"Untitled polygon";if(o=="v2")return((w=(m=h.properties.v2)==null?void 0:m.Route)==null?void 0:w.name)||((O=(L=h.properties.v2)==null?void 0:L.Crossing)==null?void 0:O.name)||"Untitled intervention";if(o=="criticals")return((R=h.properties.criticals)==null?void 0:R.name)||"Untitled issue";if(o=="atf4")return((I=h.properties.atf4)==null?void 0:I.name)||"Untitled intervention";if(h.properties.name)return h.properties.name;var d=h.properties.intervention_type;return d=="other"&&(h.geometry.type=="Point"?d="point":h.geometry.type=="LineString"?d="line":d="polygon"),`Untitled ${d}`}function a(h){if(h.key=="Delete"){const d=h.target.tagName;if(d=="INPUT"||d=="TEXTAREA")return;h.preventDefault();const b=n;b&&mr(b)}}function l(h,d){r.$$.not_equal(d.properties.name,h)&&(d.properties.name=h,ce.set(i))}function u(h,d){r.$$.not_equal(d.properties.intervention_type,h)&&(d.properties.intervention_type=h,ce.set(i))}function f(h,d){r.$$.not_equal(d.properties.description,h)&&(d.properties.description=h,ce.set(i))}function c(h,d){r.$$.not_equal(d.properties,h)&&(d.properties=h,ce.set(i))}function p(h,d){r.$$.not_equal(d.properties,h)&&(d.properties=h,ce.set(i))}function g(h,d){r.$$.not_equal(d.properties,h)&&(d.properties=h,ce.set(i))}function v(h,d){r.$$.not_equal(d.properties,h)&&(d.properties=h,ce.set(i))}const y=h=>mr(h.id),_=()=>xe.set(null);return r.$$set=h=>{"schema"in h&&t(0,o=h.schema)},[o,i,s,a,l,u,f,c,p,g,v,y,_]}class bf extends ee{constructor(e){super(),te(this,e,mf,_f,ne,{schema:0})}}let re;const qe=new Array(128).fill(void 0);qe.push(void 0,null,!0,!1);function X(r){return qe[r]}let Pt=qe.length;function yf(r){r<132||(qe[r]=Pt,Pt=r)}function _t(r){const e=X(r);return yf(r),e}let ut=0,Ct=null;function Nt(){return(Ct===null||Ct.byteLength===0)&&(Ct=new Uint8Array(re.memory.buffer)),Ct}const nn=typeof TextEncoder<"u"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},vf=typeof nn.encodeInto=="function"?function(r,e){return nn.encodeInto(r,e)}:function(r,e){const t=nn.encode(r);return e.set(t),{read:r.length,written:t.length}};function Rn(r,e,t){if(t===void 0){const a=nn.encode(r),l=e(a.length)>>>0;return Nt().subarray(l,l+a.length).set(a),ut=a.length,l}let n=r.length,i=e(n)>>>0;const o=Nt();let s=0;for(;s127)break;o[i+s]=a}if(s!==n){s!==0&&(r=r.slice(s)),i=t(i,n,n=s+r.length*3)>>>0;const a=Nt().subarray(i+s,i+n),l=vf(r,a);s+=l.written}return ut=s,i}function $t(r){return r==null}let Lt=null;function ge(){return(Lt===null||Lt.byteLength===0)&&(Lt=new Int32Array(re.memory.buffer)),Lt}const io=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};typeof TextDecoder<"u"&&io.decode();function Qe(r,e){return r=r>>>0,io.decode(Nt().subarray(r,r+e))}function ye(r){Pt===qe.length&&qe.push(qe.length+1);const e=Pt;return Pt=qe[e],qe[e]=r,e}let Tt=null;function wf(){return(Tt===null||Tt.byteLength===0)&&(Tt=new Float64Array(re.memory.buffer)),Tt}let At=null;function kf(){return(At===null||At.byteLength===0)&&(At=new BigInt64Array(re.memory.buffer)),At}function Qn(r){const e=typeof r;if(e=="number"||e=="boolean"||r==null)return`${r}`;if(e=="string")return`"${r}"`;if(e=="symbol"){const i=r.description;return i==null?"Symbol":`Symbol(${i})`}if(e=="function"){const i=r.name;return typeof i=="string"&&i.length>0?`Function(${i})`:"Function"}if(Array.isArray(r)){const i=r.length;let o="[";i>0&&(o+=Qn(r[0]));for(let s=1;s1)n=t[1];else return toString.call(r);if(n=="Object")try{return"Object("+JSON.stringify(r)+")"}catch{return"Object"}return r instanceof Error?`${r.name}: ${r.message} +${r.stack}`:n}function Sf(r,e){const t=e(r.length*1)>>>0;return Nt().set(r,t/1),ut=r.length,t}function xn(r,e){try{return r.apply(this,e)}catch(t){re.__wbindgen_exn_store(ye(t))}}let Ef=class er{static __wrap(e){e=e>>>0;const t=Object.create(er.prototype);return t.__wbg_ptr=e,t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,e}free(){const e=this.__destroy_into_raw();re.__wbg_routeinfo_free(e)}constructor(e){try{const o=re.__wbindgen_add_to_stack_pointer(-16),s=Sf(e,re.__wbindgen_malloc),a=ut;re.routeinfo_new(o,s,a);var t=ge()[o/4+0],n=ge()[o/4+1],i=ge()[o/4+2];if(i)throw _t(n);return er.__wrap(t)}finally{re.__wbindgen_add_to_stack_pointer(16)}}nameForRoute(e){let t,n;try{const f=re.__wbindgen_add_to_stack_pointer(-16);re.routeinfo_nameForRoute(f,this.__wbg_ptr,ye(e));var i=ge()[f/4+0],o=ge()[f/4+1],s=ge()[f/4+2],a=ge()[f/4+3],l=i,u=o;if(a)throw l=0,u=0,_t(s);return t=l,n=u,Qe(l,u)}finally{re.__wbindgen_add_to_stack_pointer(16),re.__wbindgen_free(t,n)}}speedLimitForRoute(e){let t,n;try{const f=re.__wbindgen_add_to_stack_pointer(-16);re.routeinfo_speedLimitForRoute(f,this.__wbg_ptr,ye(e));var i=ge()[f/4+0],o=ge()[f/4+1],s=ge()[f/4+2],a=ge()[f/4+3],l=i,u=o;if(a)throw l=0,u=0,_t(s);return t=l,n=u,Qe(l,u)}finally{re.__wbindgen_add_to_stack_pointer(16),re.__wbindgen_free(t,n)}}allSpeedLimits(){let e,t;try{const u=re.__wbindgen_add_to_stack_pointer(-16);re.routeinfo_allSpeedLimits(u,this.__wbg_ptr);var n=ge()[u/4+0],i=ge()[u/4+1],o=ge()[u/4+2],s=ge()[u/4+3],a=n,l=i;if(s)throw a=0,l=0,_t(o);return e=a,t=l,Qe(a,l)}finally{re.__wbindgen_add_to_stack_pointer(16),re.__wbindgen_free(e,t)}}renderLaneDetailsForRoute(e){let t,n;try{const f=re.__wbindgen_add_to_stack_pointer(-16);re.routeinfo_renderLaneDetailsForRoute(f,this.__wbg_ptr,ye(e));var i=ge()[f/4+0],o=ge()[f/4+1],s=ge()[f/4+2],a=ge()[f/4+3],l=i,u=o;if(a)throw l=0,u=0,_t(s);return t=l,n=u,Qe(l,u)}finally{re.__wbindgen_add_to_stack_pointer(16),re.__wbindgen_free(t,n)}}};async function Mf(r,e){if(typeof Response=="function"&&r instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(r,e)}catch(n){if(r.headers.get("Content-Type")!="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",n);else throw n}const t=await r.arrayBuffer();return await WebAssembly.instantiate(t,e)}else{const t=await WebAssembly.instantiate(r,e);return t instanceof WebAssembly.Instance?{instance:t,module:r}:t}}function $f(){const r={};return r.wbg={},r.wbg.__wbindgen_object_drop_ref=function(e){_t(e)},r.wbg.__wbindgen_boolean_get=function(e){const t=X(e);return typeof t=="boolean"?t?1:0:2},r.wbg.__wbindgen_string_get=function(e,t){const n=X(t),i=typeof n=="string"?n:void 0;var o=$t(i)?0:Rn(i,re.__wbindgen_malloc,re.__wbindgen_realloc),s=ut;ge()[e/4+1]=s,ge()[e/4+0]=o},r.wbg.__wbindgen_error_new=function(e,t){const n=new Error(Qe(e,t));return ye(n)},r.wbg.__wbindgen_is_bigint=function(e){return typeof X(e)=="bigint"},r.wbg.__wbindgen_bigint_from_i64=function(e){return ye(e)},r.wbg.__wbindgen_jsval_eq=function(e,t){return X(e)===X(t)},r.wbg.__wbindgen_number_get=function(e,t){const n=X(t),i=typeof n=="number"?n:void 0;wf()[e/8+1]=$t(i)?0:i,ge()[e/4+0]=!$t(i)},r.wbg.__wbindgen_is_object=function(e){const t=X(e);return typeof t=="object"&&t!==null},r.wbg.__wbindgen_in=function(e,t){return X(e)in X(t)},r.wbg.__wbindgen_bigint_from_u64=function(e){const t=BigInt.asUintN(64,e);return ye(t)},r.wbg.__wbindgen_is_undefined=function(e){return X(e)===void 0},r.wbg.__wbindgen_string_new=function(e,t){const n=Qe(e,t);return ye(n)},r.wbg.__wbindgen_jsval_loose_eq=function(e,t){return X(e)==X(t)},r.wbg.__wbindgen_object_clone_ref=function(e){const t=X(e);return ye(t)},r.wbg.__wbg_getwithrefkey_5e6d9547403deab8=function(e,t){const n=X(e)[X(t)];return ye(n)},r.wbg.__wbg_new_abda76e883ba8a5f=function(){const e=new Error;return ye(e)},r.wbg.__wbg_stack_658279fe44541cf6=function(e,t){const n=X(t).stack,i=Rn(n,re.__wbindgen_malloc,re.__wbindgen_realloc),o=ut;ge()[e/4+1]=o,ge()[e/4+0]=i},r.wbg.__wbg_error_f851667af71bcfc6=function(e,t){let n,i;try{n=e,i=t,console.error(Qe(e,t))}finally{re.__wbindgen_free(n,i)}},r.wbg.__wbg_debug_917e579618ee56f5=function(e){console.debug(X(e))},r.wbg.__wbg_error_ea7597dedb63d9a4=function(e){console.error(X(e))},r.wbg.__wbg_info_fc2a17f38101c41c=function(e){console.info(X(e))},r.wbg.__wbg_log_003c998d6df63565=function(e){console.log(X(e))},r.wbg.__wbg_warn_ebfcadd0780df93a=function(e){console.warn(X(e))},r.wbg.__wbg_get_e52aaca45f37b337=function(e,t){const n=X(e)[t>>>0];return ye(n)},r.wbg.__wbg_length_070e3265c186df02=function(e){return X(e).length},r.wbg.__wbindgen_is_function=function(e){return typeof X(e)=="function"},r.wbg.__wbg_next_3975dcca26737a22=function(e){const t=X(e).next;return ye(t)},r.wbg.__wbg_next_5a9700550e162aa3=function(){return xn(function(e){const t=X(e).next();return ye(t)},arguments)},r.wbg.__wbg_done_a184612220756243=function(e){return X(e).done},r.wbg.__wbg_value_6cc144c1d9645dd5=function(e){const t=X(e).value;return ye(t)},r.wbg.__wbg_iterator_c1677479667ea090=function(){return ye(Symbol.iterator)},r.wbg.__wbg_get_363c3b466fe4896b=function(){return xn(function(e,t){const n=Reflect.get(X(e),X(t));return ye(n)},arguments)},r.wbg.__wbg_call_f96b398515635514=function(){return xn(function(e,t){const n=X(e).call(X(t));return ye(n)},arguments)},r.wbg.__wbg_isArray_07d89ced8fb14171=function(e){return Array.isArray(X(e))},r.wbg.__wbg_instanceof_ArrayBuffer_de688b806c28ff28=function(e){let t;try{t=X(e)instanceof ArrayBuffer}catch{t=!1}return t},r.wbg.__wbg_isSafeInteger_fcdf4c4f25c86778=function(e){return Number.isSafeInteger(X(e))},r.wbg.__wbg_entries_c3e06bf0354f5d20=function(e){const t=Object.entries(X(e));return ye(t)},r.wbg.__wbg_buffer_fcbfb6d88b2732e9=function(e){const t=X(e).buffer;return ye(t)},r.wbg.__wbg_new_bc5d9aad3f9ac80e=function(e){const t=new Uint8Array(X(e));return ye(t)},r.wbg.__wbg_set_4b3aa8445ac1e91c=function(e,t,n){X(e).set(X(t),n>>>0)},r.wbg.__wbg_length_d9c4ded7e708c6a1=function(e){return X(e).length},r.wbg.__wbg_instanceof_Uint8Array_4733577ba827276b=function(e){let t;try{t=X(e)instanceof Uint8Array}catch{t=!1}return t},r.wbg.__wbindgen_bigint_get_as_i64=function(e,t){const n=X(t),i=typeof n=="bigint"?n:void 0;kf()[e/8+1]=$t(i)?BigInt(0):i,ge()[e/4+0]=!$t(i)},r.wbg.__wbindgen_debug_string=function(e,t){const n=Qn(X(t)),i=Rn(n,re.__wbindgen_malloc,re.__wbindgen_realloc),o=ut;ge()[e/4+1]=o,ge()[e/4+0]=i},r.wbg.__wbindgen_throw=function(e,t){throw new Error(Qe(e,t))},r.wbg.__wbindgen_memory=function(){const e=re.memory;return ye(e)},r}function Cf(r,e){return re=r.exports,oo.__wbindgen_wasm_module=e,At=null,Tt=null,Lt=null,Ct=null,re}async function oo(r){if(re!==void 0)return re;typeof r>"u"&&(r="/atip/capitalize_auto_form/assets/route_info_bg.wasm");const e=$f();(typeof r=="string"||typeof Request=="function"&&r instanceof Request||typeof URL=="function"&&r instanceof URL)&&(r=fetch(r));const{instance:t,module:n}=await Mf(await r,e);return Cf(t,n)}class Lf{constructor(){J(this,"inner");this.inner=null}async loadFile(e){await oo(),console.log(`Grabbing A/B Street map model data from ${e}`);let n=await(await fetch(e)).arrayBuffer();this.inner=new Ef(new Uint8Array(n)),console.log("RouteInfo is ready!")}nameForRoute(e){if(!this.inner)throw new Error("Still loading route info, please retry after a few seconds");return this.inner.nameForRoute(e)}speedLimitForRoute(e){if(!this.inner)throw new Error("Still loading route info, please retry after a few seconds");return this.inner.speedLimitForRoute(e)}allSpeedLimits(){if(!this.inner)throw new Error("Still loading route info, please retry after a few seconds");return this.inner.allSpeedLimits()}renderLaneDetailsForRoute(e){if(!this.inner)throw new Error("Still loading route info, please retry after a few seconds");return JSON.parse(this.inner.renderLaneDetailsForRoute(e))}}lr(Lf);function Tf(){return new Worker("/atip/capitalize_auto_form/assets/worker-90ea6d15.js")}function Af(r){let e,t,n,i,o,s,a,l,u,f,c,p,g,v,y,_,h,d,b,m,w,L,O,R,I,B,D;return v=new zo({props:{boundaryGeojson:r[2]}}),_=new Ua({props:{authorityName:r[3],schema:r[5]}}),m=new bf({props:{schema:r[5]}}),R=new Ia({}),{c(){e=$("div"),t=$("div"),n=$("button"),n.textContent="Home",i=A(),o=$("button"),o.textContent="About",s=A(),a=$("button"),a.textContent="Instructions",l=A(),u=$("p"),u.textContent=`${qo(r[5])} mode`,f=A(),c=$("h1"),p=U(r[3]),g=A(),F(v.$$.fragment),y=A(),F(_.$$.fragment),h=A(),d=$("br"),b=A(),F(m.$$.fragment),w=A(),L=$("hr"),O=A(),F(R.$$.fragment),x(n,"type","button"),x(o,"type","button"),x(a,"type","button"),x(e,"slot","sidebar")},m(j,T){k(j,e,T),E(e,t),E(t,n),E(t,i),E(t,o),E(t,s),E(t,a),E(e,l),E(e,u),E(e,f),E(e,c),E(c,p),E(c,g),P(v,c,null),E(e,y),P(_,e,null),E(e,h),E(e,d),E(e,b),P(m,e,null),E(e,w),E(e,L),E(e,O),P(R,e,null),I=!0,B||(D=[Y(n,"click",r[9]),Y(o,"click",r[7]),Y(a,"click",r[8])],B=!0)},p(j,T){const z={};T&4&&(z.boundaryGeojson=j[2]),v.$set(z)},i(j){I||(M(v.$$.fragment,j),M(_.$$.fragment,j),M(m.$$.fragment,j),M(R.$$.fragment,j),I=!0)},o(j){C(v.$$.fragment,j),C(_.$$.fragment,j),C(m.$$.fragment,j),C(R.$$.fragment,j),I=!1},d(j){j&&S(e),N(v),N(_),N(m),N(R),B=!1,Ie(D)}}}function Of(r){let e,t,n,i,o,s,a,l,u,f,c,p;return e=new xs({props:{boundaryGeojson:r[2]}}),n=new Yo({props:{schema:r[5]}}),o=new Fs({}),a=new ya({props:{routeSnapperUrl:r[6],schema:r[5]}}),u=new Jo({props:{style:r[4]}}),c=new Xo({props:{schema:r[5]}}),{c(){F(e.$$.fragment),t=A(),F(n.$$.fragment),i=A(),F(o.$$.fragment),s=A(),F(a.$$.fragment),l=A(),F(u.$$.fragment),f=A(),F(c.$$.fragment)},m(g,v){P(e,g,v),k(g,t,v),P(n,g,v),k(g,i,v),P(o,g,v),k(g,s,v),P(a,g,v),k(g,l,v),P(u,g,v),k(g,f,v),P(c,g,v),p=!0},p(g,v){const y={};v&4&&(y.boundaryGeojson=g[2]),e.$set(y)},i(g){p||(M(e.$$.fragment,g),M(n.$$.fragment,g),M(o.$$.fragment,g),M(a.$$.fragment,g),M(u.$$.fragment,g),M(c.$$.fragment,g),p=!0)},o(g){C(e.$$.fragment,g),C(n.$$.fragment,g),C(o.$$.fragment,g),C(a.$$.fragment,g),C(u.$$.fragment,g),C(c.$$.fragment,g),p=!1},d(g){g&&(S(t),S(i),S(s),S(l),S(f)),N(e,g),N(n,g),N(o,g),N(a,g),N(u,g),N(c,g)}}}function Rf(r){let e,t,n;return t=new Go({props:{style:r[4],$$slots:{default:[Of]},$$scope:{ctx:r}}}),{c(){e=$("div"),F(t.$$.fragment),x(e,"slot","main")},m(i,o){k(i,e,o),P(t,e,null),n=!0},p(i,o){const s={};o&32772&&(s.$$scope={dirty:o,ctx:i}),t.$set(s)},i(i){n||(M(t.$$.fragment,i),n=!0)},o(i){C(t.$$.fragment,i),n=!1},d(i){i&&S(e),N(t)}}}function xf(r){let e,t,n,i,o,s,a,l;e=new Uo({props:{$$slots:{main:[Rf],sidebar:[Af]},$$scope:{ctx:r}}});function u(g){r[10](g)}let f={};r[0]!==void 0&&(f.open=r[0]),n=new Do({props:f}),ae.push(()=>ve(n,"open",u));function c(g){r[11](g)}let p={schema:r[5]};return r[1]!==void 0&&(p.open=r[1]),s=new Ya({props:p}),ae.push(()=>ve(s,"open",c)),{c(){F(e.$$.fragment),t=A(),F(n.$$.fragment),o=A(),F(s.$$.fragment)},m(g,v){P(e,g,v),k(g,t,v),P(n,g,v),k(g,o,v),P(s,g,v),l=!0},p(g,[v]){const y={};v&32772&&(y.$$scope={dirty:v,ctx:g}),e.$set(y);const _={};!i&&v&1&&(i=!0,_.open=g[0],we(()=>i=!1)),n.$set(_);const h={};!a&&v&2&&(a=!0,h.open=g[1],we(()=>a=!1)),s.$set(h)},i(g){l||(M(e.$$.fragment,g),M(n.$$.fragment,g),M(s.$$.fragment,g),l=!0)},o(g){C(e.$$.fragment,g),C(n.$$.fragment,g),C(s.$$.fragment,g),l=!1},d(g){g&&(S(t),S(o)),N(e,g),N(n,g),N(s,g)}}}function If(r,e,t){let n=!1,i=!1;const o=new URLSearchParams(window.location.search);let s=o.get("authority"),a=o.get("style")||"streets",l=o.get("schema")||"v1",u=`https://atip.uk/route-snappers/v2.1/${s}.bin.gz`,f=`https://atip.uk/route-info/v2/${s}.bin.gz`;function c(){t(0,n=!n),t(1,i=!1)}function p(){t(1,i=!i),t(0,n=!1)}let g;jt(async()=>{t(2,g=await v());const d=Ci(new Tf);let b=await new d;await b.loadFile(f),wt.set(b)});async function v(){const b=await(await fetch(Ho)).text(),m=JSON.parse(b);return m.features=m.features.filter(w=>{var L;return((L=w.properties)==null?void 0:L.name)==s}),m.features.length===0&&(window.location.href=`/?error=Authority name not found: ${s}`),m}const y=()=>window.location.href="index.html";function _(d){n=d,t(0,n)}function h(d){i=d,t(1,i)}return[n,i,g,s,a,l,u,c,p,y,_,h]}class Ff extends ee{constructor(e){super(),te(this,e,If,xf,ne,{})}}new Ff({target:document.getElementById("app")}); diff --git a/capitalize_auto_form/assets/route_info_bg.wasm b/capitalize_auto_form/assets/route_info_bg.wasm index df9e2572d..57453e0e9 100644 Binary files a/capitalize_auto_form/assets/route_info_bg.wasm and b/capitalize_auto_form/assets/route_info_bg.wasm differ diff --git a/capitalize_auto_form/scheme.html b/capitalize_auto_form/scheme.html index 4fb4b4e19..ba1f232af 100644 --- a/capitalize_auto_form/scheme.html +++ b/capitalize_auto_form/scheme.html @@ -7,7 +7,7 @@ content="initial-scale=1,maximum-scale=1,user-scalable=no" /> ATIP v2 Scheme Entry - + diff --git a/cmd_pattern_v2/assets/route_info_bg.wasm b/cmd_pattern_v2/assets/route_info_bg.wasm index df9e2572d..57453e0e9 100644 Binary files a/cmd_pattern_v2/assets/route_info_bg.wasm and b/cmd_pattern_v2/assets/route_info_bg.wasm differ diff --git a/govuk_step3/assets/route_info_bg.wasm b/govuk_step3/assets/route_info_bg.wasm index df9e2572d..57453e0e9 100644 Binary files a/govuk_step3/assets/route_info_bg.wasm and b/govuk_step3/assets/route_info_bg.wasm differ diff --git a/merge_edit/assets/route_info_bg.wasm b/merge_edit/assets/route_info_bg.wasm index df9e2572d..57453e0e9 100644 Binary files a/merge_edit/assets/route_info_bg.wasm and b/merge_edit/assets/route_info_bg.wasm differ diff --git a/ts_forms/assets/route_info_bg.wasm b/ts_forms/assets/route_info_bg.wasm index df9e2572d..57453e0e9 100644 Binary files a/ts_forms/assets/route_info_bg.wasm and b/ts_forms/assets/route_info_bg.wasm differ