"use strict";(self["webpackChunknewfront"]=self["webpackChunknewfront"]||[]).push([[8824],{13807:function(e,t,r){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(51208)),i=o(r(31013)),u=o(r(93737)),a=o(r(73663)),s=r(31540),f=r(84102),l=r(10611);function d(e,t,r){void 0===r&&(r={});var o=f.point([1/0,1/0],{dist:1/0}),d=0;return s.flattenEach(e,(function(e){for(var s=l.getCoords(e),c=0;c<s.length-1;c++){var p=f.point(s[c]);p.properties.dist=i.default(t,p,r);var h=f.point(s[c+1]);h.properties.dist=i.default(t,h,r);var g=i.default(p,h,r),v=Math.max(p.properties.dist,h.properties.dist),y=n.default(p,h),m=u.default(t,v,y+90,r),w=u.default(t,v,y-90,r),P=a.default(f.lineString([m.geometry.coordinates,w.geometry.coordinates]),f.lineString([p.geometry.coordinates,h.geometry.coordinates])),_=null;P.features.length>0&&(_=P.features[0],_.properties.dist=i.default(t,_,r),_.properties.location=d+i.default(p,_,r)),p.properties.dist<o.properties.dist&&(o=p,o.properties.index=c,o.properties.location=d),h.properties.dist<o.properties.dist&&(o=h,o.properties.index=c+1,o.properties.location=d+g),_&&_.properties.dist<o.properties.dist&&(o=_,o.properties.index=c),d+=g}})),o}t["default"]=d},82059:function(e,t,r){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var n=r(10611),i=r(31540),u=o(r(63892)),a=o(r(27418));function s(e,t,r){void 0===r&&(r={});var o=r.units,s=r.properties||{},l=f(e);if(!l.features.length)throw new Error("points must contain features");if(!t)throw new Error("line is required");if("LineString"!==n.getType(t))throw new Error("line must be a LineString");var d=1/0,c=null;return i.featureEach(l,(function(e){var r=u.default(e,t,{units:o});r<d&&(d=r,c=e)})),c&&(c.properties=a.default({dist:d},c.properties,s)),c}function f(e){var t=[],r=e.geometry?e.geometry.type:e.type;switch(r){case"GeometryCollection":return i.geomEach(e,(function(e){"Point"===e.type&&t.push({type:"Feature",properties:{},geometry:e})})),{type:"FeatureCollection",features:t};case"FeatureCollection":return e.features=e.features.filter((function(e){return"Point"===e.geometry.type})),e;default:throw new Error("points must be a Point Collection")}}t["default"]=s},66379:function(e,t,r){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(76565)),i=o(r(31013)),u=r(31540);function a(e,t){if(!e)throw new Error("targetPoint is required");if(!t)throw new Error("points is required");var r,o=1/0,a=0;return u.featureEach(t,(function(t,r){var n=i.default(e,t);n<o&&(a=r,o=n)})),r=n.default(t.features[a]),r.properties.featureIndex=a,r.properties.distanceToPoint=o,r}t["default"]=a},63377:(e,t,r)=>{var o=r(10611);function n(e,t){var r=o.getCoord(e),n=o.getGeom(t),i=n.coordinates,u=i[0];if(u.length<4)throw new Error("OuterRing of a Polygon must have 4 or more Positions.");var a=t.properties||{},s=a.a,f=a.b,l=a.c,d=r[0],c=r[1],p=u[0][0],h=u[0][1],g=void 0!==s?s:u[0][2],v=u[1][0],y=u[1][1],m=void 0!==f?f:u[1][2],w=u[2][0],P=u[2][1],_=void 0!==l?l:u[2][2],E=(_*(d-p)*(c-y)+g*(d-v)*(c-P)+m*(d-w)*(c-h)-m*(d-p)*(c-P)-_*(d-v)*(c-h)-g*(d-w)*(c-y))/((d-p)*(c-y)+(d-v)*(c-P)+(d-w)*(c-h)-(d-p)*(c-P)-(d-v)*(c-h)-(d-w)*(c-y));return E}e.exports=n,e.exports["default"]=n},36813:function(e,t,r){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(45184)),i=o(r(31013)),u=r(84102);function a(e,t,r){void 0===r&&(r={}),r.mask&&!r.units&&(r.units="kilometers");var o=[],a=e[0],s=e[1],f=e[2],l=e[3],d=t/i.default([a,s],[f,s],r),c=d*(f-a),p=t/i.default([a,s],[a,l],r),h=p*(l-s),g=f-a,v=l-s,y=Math.floor(g/c),m=Math.floor(v/h),w=(g-y*c)/2,P=(v-m*h)/2,_=a+w;while(_<=f){var E=s+P;while(E<=l){var M=u.point([_,E],r.properties);r.mask?n.default(M,r.mask)&&o.push(M):o.push(M),E+=h}_+=c}return u.featureCollection(o)}t["default"]=a},55771:(e,t,r)=>{var o=r(63922),n=r(78230),i=r(66379),u=r(88147),a=r(84102);function s(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}var f=s(o),l=s(n),d=s(i),c=s(u);function p(e){var t=h(e),r=l["default"](t),o=!1,n=0;while(!o&&n<t.features.length){var i,u,s,p,v,y,m,w=t.features[n].geometry,P=!1;if("Point"===w.type)r.geometry.coordinates[0]===w.coordinates[0]&&r.geometry.coordinates[1]===w.coordinates[1]&&(o=!0);else if("MultiPoint"===w.type){var _=!1;m=0;while(!_&&m<w.coordinates.length)r.geometry.coordinates[0]===w.coordinates[m][0]&&r.geometry.coordinates[1]===w.coordinates[m][1]&&(o=!0,_=!0),m++}else if("LineString"===w.type){m=0;while(!P&&m<w.coordinates.length-1)i=r.geometry.coordinates[0],u=r.geometry.coordinates[1],s=w.coordinates[m][0],p=w.coordinates[m][1],v=w.coordinates[m+1][0],y=w.coordinates[m+1][1],g(i,u,s,p,v,y)&&(P=!0,o=!0),m++}else if("MultiLineString"===w.type){var E=0;while(E<w.coordinates.length){P=!1,m=0;var M=w.coordinates[E];while(!P&&m<M.length-1)i=r.geometry.coordinates[0],u=r.geometry.coordinates[1],s=M[m][0],p=M[m][1],v=M[m+1][0],y=M[m+1][1],g(i,u,s,p,v,y)&&(P=!0,o=!0),m++;E++}}else"Polygon"!==w.type&&"MultiPolygon"!==w.type||c["default"](r,w)&&(o=!0);n++}if(o)return r;var b=a.featureCollection([]);for(n=0;n<t.features.length;n++)b.features=b.features.concat(f["default"](t.features[n]).features);return a.point(d["default"](r,b).geometry.coordinates)}function h(e){return"FeatureCollection"!==e.type?"Feature"!==e.type?a.featureCollection([a.feature(e)]):a.featureCollection([e]):e}function g(e,t,r,o,n,i){var u=Math.sqrt((n-r)*(n-r)+(i-o)*(i-o)),a=Math.sqrt((e-r)*(e-r)+(t-o)*(t-o)),s=Math.sqrt((n-e)*(n-e)+(i-t)*(i-t));return u===a+s}e.exports=p,e.exports["default"]=p},63892:function(e,t,r){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(31013)),i=r(84102),u=r(10611),a=r(31540),s=o(r(6213));function f(e,t,r){if(void 0===r&&(r={}),r.method||(r.method="geodesic"),r.units||(r.units="kilometers"),!e)throw new Error("pt is required");if(Array.isArray(e)?e=i.point(e):"Point"===e.type?e=i.feature(e):u.featureOf(e,"Point","point"),!t)throw new Error("line is required");Array.isArray(t)?t=i.lineString(t):"LineString"===t.type?t=i.feature(t):u.featureOf(t,"LineString","line");var o=1/0,n=e.geometry.coordinates;return a.segmentEach(t,(function(e){var t=e.geometry.coordinates[0],i=e.geometry.coordinates[1],u=l(n,t,i,r);u<o&&(o=u)})),i.convertLength(o,"degrees",r.units)}function l(e,t,r,o){var n=[r[0]-t[0],r[1]-t[1]],i=[e[0]-t[0],e[1]-t[1]],u=d(i,n);if(u<=0)return c(e,t,{method:o.method,units:"degrees"});var a=d(n,n);if(a<=u)return c(e,r,{method:o.method,units:"degrees"});var s=u/a,f=[t[0]+s*n[0],t[1]+s*n[1]];return c(e,f,{method:o.method,units:"degrees"})}function d(e,t){return e[0]*t[0]+e[1]*t[1]}function c(e,t,r){return"planar"===r.method?s.default(e,t,r):n.default(e,t,r)}t["default"]=f},187:(e,t,r)=>{var o=r(88147),n=r(84102),i=r(31540);function u(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}var a=u(o);function s(e,t){var r=[];return i.featureEach(e,(function(e){var o=!1;if("Point"===e.geometry.type)i.geomEach(t,(function(t){a["default"](e,t)&&(o=!0)})),o&&r.push(e);else{if("MultiPoint"!==e.geometry.type)throw new Error("Input geometry must be a Point or MultiPoint");var u=[];i.geomEach(t,(function(t){i.coordEach(e,(function(e){a["default"](e,t)&&(o=!0,u.push(e))}))})),o&&r.push(n.multiPoint(u))}})),n.featureCollection(r)}e.exports=s,e.exports["default"]=s},84978:(e,t,r)=>{var o=r(31540),n=r(84102);function i(e,t){var r=[],i=t.iterations||1;if(!e)throw new Error("inputPolys is required");return o.geomEach(e,(function(e,t,o){var s,f,l;switch(e.type){case"Polygon":s=[[]];for(var d=0;d<i;d++)l=[[]],f=e,d>0&&(f=n.polygon(s).geometry),u(f,l),s=l.slice(0);r.push(n.polygon(s,o));break;case"MultiPolygon":s=[[[]]];for(var c=0;c<i;c++)l=[[[]]],f=e,c>0&&(f=n.multiPolygon(s).geometry),a(f,l),s=l.slice(0);r.push(n.multiPolygon(s,o));break;default:throw new Error("geometry is invalid, must be Polygon or MultiPolygon")}})),n.featureCollection(r)}function u(e,t){var r=0,n=0;o.coordEach(e,(function(o,i,u,a,s){s>r&&(r=s,n=i,t.push([]));var f=i-n,l=e.coordinates[s][f+1],d=o[0],c=o[1],p=l[0],h=l[1];t[s].push([.75*d+.25*p,.75*c+.25*h]),t[s].push([.25*d+.75*p,.25*c+.75*h])}),!0),t.forEach((function(e){e.push(e[0])}))}function a(e,t){var r=0,n=0,i=0;o.coordEach(e,(function(o,u,a,s,f){s>i&&(i=s,n=u,t.push([[]])),f>r&&(r=f,n=u,t[s].push([]));var l=u-n,d=e.coordinates[s][f][l+1],c=o[0],p=o[1],h=d[0],g=d[1];t[s][f].push([.75*c+.25*h,.75*p+.25*g]),t[s][f].push([.25*c+.75*h,.25*p+.75*g])}),!0),t.forEach((function(e){e.forEach((function(e){e.push(e[0])}))}))}e.exports=i,e.exports["default"]=i},5215:(e,t,r)=>{var o=r(10611),n=r(84102),i=r(9705),u=r(63922),a=r(66379);function s(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}var f=s(i),l=s(u),d=s(a);function c(e,t){var r,i,u,a,s=o.getCoords(e),c=o.getCoords(t),h=f["default"](t),g=0,y=null;s[0]>h[0]&&s[0]<h[2]&&s[1]>h[1]&&s[1]<h[3]&&(y=d["default"](e,l["default"](t)),g=y.properties.featureIndex);var m=o.getType(t);switch(m){case"Polygon":r=c[0][g],i=c[0][0],null!==y&&y.geometry.coordinates[1]<s[1]&&(i=c[0][g]),a=v(c[0][0],c[0][c[0].length-1],s);var w=p(c[0],s,a,u,r,i);r=w[0],i=w[1];break;case"MultiPolygon":for(var P=0,_=0,E=0,M=0;M<c[0].length;M++){P=M;for(var b=!1,C=0;C<c[0][M].length;C++){if(_=C,E===g){b=!0;break}E++}if(b)break}r=c[0][P][_],i=c[0][P][_],a=v(c[0][0][0],c[0][0][c[0][0].length-1],s),c.forEach((function(e){var t=p(e[0],s,a,u,r,i);r=t[0],i=t[1]}));break}return n.featureCollection([n.point(r),n.point(i)])}function p(e,t,r,o,n,i){for(var u=0;u<e.length;u++){var a=e[u],s=e[u+1];u===e.length-1&&(s=e[0]),o=v(a,s,t),r<=0&&o>0?g(t,a,n)||(n=a):r>0&&o<=0&&(h(t,a,i)||(i=a)),r=o}return[n,i]}function h(e,t,r){return v(e,t,r)>0}function g(e,t,r){return v(e,t,r)<0}function v(e,t,r){return(t[0]-e[0])*(r[1]-e[1])-(r[0]-e[0])*(t[1]-e[1])}e.exports=c,e.exports["default"]=c},97383:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0});var o=r(84102),n=r(10611);function i(e,t){void 0===t&&(t={});var r=n.getGeom(e);switch(t.properties||"Feature"!==e.type||(t.properties=e.properties),r.type){case"Polygon":return u(r,t);case"MultiPolygon":return a(r,t);default:throw new Error("invalid poly")}}function u(e,t){void 0===t&&(t={});var r=n.getGeom(e),o=r.coordinates,i=t.properties?t.properties:"Feature"===e.type?e.properties:{};return s(o,i)}function a(e,t){void 0===t&&(t={});var r=n.getGeom(e),i=r.coordinates,u=t.properties?t.properties:"Feature"===e.type?e.properties:{},a=[];return i.forEach((function(e){a.push(s(e,u))})),o.featureCollection(a)}function s(e,t){return e.length>1?o.multiLineString(e,t):o.lineString(e[0],t)}t["default"]=i,t.polygonToLine=u,t.multiPolygonToLine=a,t.coordsToLine=s}}]);