if (self.CavalryLogger) { CavalryLogger.start_js(["6u6yi"]); }

__d("BaseLeafletLayerContext",["React"],(function(a,b,c,d,e,f){"use strict";a=b("React");c=a.createContext();e.exports=c}),null);
__d("BaseLeafletLayerContextProvider.react",["BaseLeafletLayerContext","React"],(function(a,b,c,d,e,f){"use strict";e.exports=a;var g=b("React");function a(a){var c=a.children;a=a.layer;return g.jsx(b("BaseLeafletLayerContext").Provider,{value:{layer:a},children:c})}}),null);
__d("BaseLeafletMapContext",["React"],(function(a,b,c,d,e,f){"use strict";a=b("React");c=a.createContext();e.exports=c}),null);
__d("BaseLeafletMapContextProvider.react",["BaseLeafletMapContext","React"],(function(a,b,c,d,e,f){"use strict";e.exports=a;var g=b("React");function a(a){var c=a.children;a=a.map;return g.jsx(b("BaseLeafletMapContext").Provider,{value:a,children:c})}}),null);
__d("forEachDifference",["forEachObject"],(function(a,b,c,d,e,f){"use strict";e.exports=a;function a(a,c,d){b("forEachObject")(a,function(a,b){Object.prototype.hasOwnProperty.call(c,b)?d.onBoth&&d.onBoth(a,c[b],b):d.onLeft&&d.onLeft(a,b)}),b("forEachObject")(c,function(b,c){!Object.prototype.hasOwnProperty.call(a,c)&&d.onRight&&d.onRight(b,c)})}}),null);
__d("CometLeafletEventedUtils",["forEachDifference"],(function(a,b,c,d,e,f){"use strict";f.mutateEventHandlers=a;function a(a,c,d){b("forEachDifference")(c,d,{onBoth:function(b,c,d){b!==c&&(a.off(d,c),a.on(d,b))},onLeft:function(b,c){return void a.on(c,b)},onRight:function(b,c){return void a.off(c,b)}})}}),null);
__d("mod",[],(function(a,b,c,d,e,f){e.exports=a;function a(a,b){a=a%b;a*b<0&&(a+=b);return a}}),null);
__d("CometLeafletUtils",["distance","leaflet-v1_5","mod"],(function(a,b,c,d,e,f){"use strict";var g=(a=b("leaflet-v1_5")).CRS.EPSG3857,h=360,i=h/2,j=Math.PI/180,k=180/Math.PI,l=a.Projection.SphericalMercator.R;c=new a.LatLngBounds(new a.LatLng(-h/4,-h/2),new a.LatLng(h/4,h/2));var m={DEFAULT_CRS:g,WHOLE_WORLD_BOUNDS:c,distanceFromLatLng:function(a,c,d){c=c/l;d=d*j;var e=a.lat*j;a=a.lng*j;var f=Math.sin(e);e=Math.cos(e);var g=Math.sin(c);c=Math.cos(c);var h=Math.sin(d);d=Math.cos(d);d=f*c+e*g*d;var i=Math.asin(d);h=h*g*e;g=c-f*d;e=a+Math.atan2(h,g);return new(b("leaflet-v1_5").LatLng)(i*k,m.wrapLongitude(e*k))},circleBounds:function(a,c,d){d===void 0&&(d=g.projection);var e=a.lat;a=a.lng;c=c/l*k;var f=d.project(b("leaflet-v1_5").latLng(e+c,a)),h=d.project(b("leaflet-v1_5").latLng(e-c,a));d=d.unproject(f.add(h).divideBy(2)).lat;f=e*j;h=d*j;e=Math.acos((Math.cos(c*j)-Math.sin(f)*Math.sin(h))/(Math.cos(f)*Math.cos(h)))*k;return b("leaflet-v1_5").latLngBounds(b("leaflet-v1_5").latLng(d-c,a-e),b("leaflet-v1_5").latLng(d+c,a+e))},fitBounds:function(a,b,c){var d;d=(d=c.crs)!=null?d:g;c=c.zoomRange;b=m.getBoundsZoom(a,b,{crs:d,zoomRange:c});b==null&&(b=c[0]);c=d.latLngToPoint(a.getSouthWest(),b);a=d.latLngToPoint(a.getNorthEast(),b);d=m.fromLatLng(d.pointToLatLng(c.add(a).divideBy(2),b));return{center:d,zoom:b}},fromGeoCoordinates:function(a){return new(b("leaflet-v1_5").LatLng)(a.latitude,a.longitude)},fromLatLng:function(a){return{latitude:a.lat,longitude:a.lng}},getBoundsZoom:function(a,c,d){var e;e=(e=d.crs)!=null?e:g;d=d.zoomRange;c=b("leaflet-v1_5").point(c.width,c.height);var f=a.getNorthWest();a=a.getSouthEast();var h=d[0]-1;for(;h<=d[1];++h){var i=e.latLngToPoint(a,h+1),j=e.latLngToPoint(f,h+1);i=i.subtract(j).floor();if(!c.contains(i))break}if(h<d[0])return null;return h<=d[1]?h:h-1},getLatLngBounds:function(a,c){return new(b("leaflet-v1_5").LatLngBounds)(a,c)},getRadius:function(a){var c=a.getSouthEast();a=a.getNorthEast();a=b("distance").haversine(a.lat,a.lng,c.lat,c.lng);return a/2},getViewBounds:function(a,c,d){d=d||g;var e=c.width/2;c=c.height/2;var f=m.toLatLng(a.center);f=d.latLngToPoint(f,a.zoom);var h=d.pointToLatLng(b("leaflet-v1_5").point(f.x-e,f.y+c),a.zoom);d=d.pointToLatLng(b("leaflet-v1_5").point(f.x+e,f.y-c),a.zoom);return m.normalizedBounds(h,d)},multiPolygonPropsToPolygonCoordinates:function(a){return a.map(function(a){return m.polygonPropsToPolygonCoordinates(a)})},normalizedBounds:function(a,c){var d=m.wrapLongitude(a.lng);c=b("leaflet-v1_5").latLng(c.lat,c.lng+d-a.lng);a=b("leaflet-v1_5").latLng(a.lat,d);return b("leaflet-v1_5").latLngBounds(a,c)},polygonPropsToPolygonCoordinates:function(a){var b=a.coordinateList;a=a.holeCoordinateLists;a=a===void 0?[]:a;return[b.map(function(a){return m.toLatLng(a)})].concat(a.map(function(a){return a.map(function(a){return m.toLatLng(a)})}))},projectCircle:function(a,c,d){d===void 0&&(d=g);var e=m.toLatLng(a.center);e=m.circleBounds(e,a.radius,d.projection);a=d.latLngToPoint(e.getCenter(),c);var f=d.latLngToPoint(e.getSouthWest(),c);d=d.latLngToPoint(e.getNorthEast(),c);e=b("leaflet-v1_5").point(Math.round((d.x-f.x)/2),Math.round((f.y-d.y)/2));return{center:a,radius:e}},toLatLng:function(a){return new(b("leaflet-v1_5").LatLng)(a.latitude,a.longitude)},wrapLongitude:function(a){return b("mod")(a+i,h)-i}};d=m;e.exports=d}),null);
__d("nearlyEqualNumbers",[],(function(a,b,c,d,e,f){e.exports=a;function a(a,b){if(a===b)return!0;var c=Math.abs(a-b);if(c<Number.EPSILON)return!0;a=Math.abs(a);b=Math.abs(b);return c/(a+b)<Number.EPSILON}}),null);
__d("BaseLeafletMap.react",["BaseLeafletLayerContextProvider.react","BaseLeafletMapContextProvider.react","CometLeafletEventedUtils","CometLeafletUtils","React","leaflet-v1_5","mergeRefs","nearlyEqualNumbers","usePrevious","useResizeObserver"],(function(a,b,c,d,e,f){"use strict";e.exports=a;var g=b("React");function h(a,c){var d=a.getCenter();a=a.getZoom();return!b("nearlyEqualNumbers")(d.lat,c.center.latitude)||!b("nearlyEqualNumbers")(d.lng,c.center.longitude)||c.zoom!==a}function a(a){var c=a.eventHandlers,d=c===void 0?{}:c;c=a.options;var e=c===void 0?{}:c;c=a.children;var f=a.className,i=a.height,j=a.onViewChange,k=a.view;a=a.width;var l=g.useState(null),m=l[0],n=l[1];l=g.useState(null);var o=l[0],p=l[1],q=b("usePrevious")(e),r=b("usePrevious")(d);l=b("useResizeObserver")(function(){m!=null&&m.invalidateSize({})});g.useEffect(function(){if(m!=null){var a=function(a){m!=null&&(h(m,k)&&(j&&j({center:b("CometLeafletUtils").fromLatLng(m.getCenter()),zoom:m.getZoom()})))};m.on("moveend",a);return function(){m.off("moveend",a)}}},[m,j,k,k.center.latitude,k.center.longitude,k.zoom]);g.useEffect(function(){if(m!=null&&h(m,k)){var a=k.center,b=a.latitude;a=a.longitude;m.setView([b,a],k.zoom,{animate:!0})}},[m,k]);g.useEffect(function(){r!=null&&r!==d&&m!=null&&b("CometLeafletEventedUtils").mutateEventHandlers(m,d,r)},[r,d,m]);g.useEffect(function(){q!==e&&m!=null&&(e.boxZoom!==(q==null?void 0:q.boxZoom)&&(e.boxZoom===!0?m.boxZoom.enable():m.boxZoom.disable()),e.doubleClickZoom!==(q==null?void 0:q.doubleClickZoom)&&(e.doubleClickZoom===!0?m.doubleClickZoom.enable():m.doubleClickZoom.disable()),e.dragging!==(q==null?void 0:q.dragging)&&(e.dragging===!0?m.dragging.enable():m.dragging.disable()),e.keyboard!==(q==null?void 0:q.keyboard)&&(e.keyboard===!0?m.keyboard.enable():m.keyboard.disable()),e.scrollWheelZoom!==(q==null?void 0:q.scrollWheelZoom)&&(e.scrollWheelZoom===!0||typeof e.scrollWheelZoom==="string"?m.scrollWheelZoom.enable():m.scrollWheelZoom.disable()),e.tap!==(q==null?void 0:q.tap)&&(e.tap===!0?m.tap.enable():m.tap.disable()),e.touchZoom!==(q==null?void 0:q.touchZoom)&&(e.touchZoom===!0||typeof e.touchZoom==="string"?m.touchZoom.enable():m.touchZoom.disable()))},[q,e,m]);g.useEffect(function(){if(o){var a=b("leaflet-v1_5").map(o,babelHelpers["extends"]({},e,{attributionControl:!1,center:[k.center.latitude,k.center.longitude],trackResize:!1,zoom:k.zoom}));n(a);b("CometLeafletEventedUtils").mutateEventHandlers(a,d,{});return function(){a.remove()}}},[o]);return g.jsx(b("BaseLeafletMapContextProvider.react"),{map:m,children:g.jsx(b("BaseLeafletLayerContextProvider.react"),{layer:m,children:g.jsx("div",{className:f,ref:b("mergeRefs")(function(a){return p(a)},l),style:{height:i,width:a},children:m&&c})})})}}),null);
__d("BaseLeafletMarkerClusterContext",["React"],(function(a,b,c,d,e,f){"use strict";a=b("React");c=a.createContext();e.exports=c}),null);
__d("useLeafletMapContext",["BaseLeafletMapContext","React","unrecoverableViolation"],(function(a,b,c,d,e,f){"use strict";e.exports=a;var g=b("React");function a(){var a=g.useContext(b("BaseLeafletMapContext"));if(!a)throw b("unrecoverableViolation")("Leaflet Context must be set for Leaflet Layers","maps");return a}}),null);
__d("BaseLeafletMarker.react",["BaseLeafletLayerContextProvider.react","BaseLeafletMarkerClusterContext","CometLeafletEventedUtils","CometLeafletUtils","React","leaflet-v1_5","useLeafletMapContext","usePrevious"],(function(a,b,c,d,e,f){"use strict";e.exports=a;var g=b("React");function a(a){var c=a.children,d=a.coordinates,e=a.eventHandlers,f=e===void 0?{}:e;e=a.options;var h=e===void 0?{}:e,i=b("usePrevious")(f),j=b("usePrevious")(h),k=b("useLeafletMapContext")(),l=g.useContext(b("BaseLeafletMarkerClusterContext")),m=g.useMemo(function(){return b("leaflet-v1_5").marker(b("CometLeafletUtils").toLatLng(d),h)},[d,h]);g.useEffect(function(){if(l){l.addLayer(m);return function(){l.removeLayer(m)}}else{k.addLayer(m);return function(){k.removeLayer(m)}}},[k,m,l]);g.useEffect(function(){if(j!=null&&m!=null){var a=h.icon,b=h.opacity,c=h.zIndexOffset;a!=null&&a!==j.icon&&m.setIcon(a);b!=null&&b!==j.opacity&&m.setOpacity(b);c!=null&&c!==j.zIndexOffset&&m.setZIndexOffset(c)}},[m,j,h]);g.useEffect(function(){if(i!==f){var a;b("CometLeafletEventedUtils").mutateEventHandlers(m,f,(a=i)!=null?a:{})}},[i,f,m]);return c?g.jsx(b("BaseLeafletLayerContextProvider.react"),{layer:m,children:c}):null}}),null);
__d("useLeafletLayerEffect",["React","useLeafletMapContext"],(function(a,b,c,d,e,f){"use strict";e.exports=a;var g=b("React");function a(a){var c=b("useLeafletMapContext")(),d=g.useRef(null);g.useEffect(function(){d.current=a;c.addLayer(a);return function(){c.removeLayer(a)}},[]);return d}}),null);
__d("BaseLeafletTileLayer.react",["React","leaflet-v1_5","useLeafletLayerEffect","usePrevious"],(function(a,b,c,d,e,f){"use strict";c=b("React");var g=c.useEffect;function a(a){var c=a.options,d=c===void 0?{}:c,e=a.urlTemplate,f=b("usePrevious")(d),h=b("useLeafletLayerEffect")(b("leaflet-v1_5").tileLayer(e,d));g(function(){var a=h.current;a!=null&&a.setUrl(e)},[h,e]);g(function(){var a=h.current;if(a!=null){var b=d.opacity,c=d.zIndex;b!=null&&b!==(f==null?void 0:f.opacity)&&a.setOpacity(b);c!=null&&c!==(f==null?void 0:f.zIndex)&&a.setZIndex(c)}},[f,d,h]);return null}e.exports=a}),null);
__d("CometMapControls.react",["CometCard.react","React","TetraButton.react","stylex"],(function(a,b,c,d,e,f){"use strict";e.exports=a;var g=b("React");function a(a){a=a.buttonConfigs;return g.jsx(b("CometCard.react"),{background:"white",border:"solid",dropShadow:1,children:g.jsx("div",{className:"cbu4d94t j83agx80",children:a.map(function(a,c){return g.jsx(b("TetraButton.react"),{disabled:a.disabled,icon:a.icon,label:a.label,labelIsHidden:!0,onPress:a.onPress,reduceEmphasis:!0,size:"medium",type:"secondary"},c)})})})}}),null);
__d("CometMap.react",["ix","fbt","BaseLeafletMap.react","BaseLeafletTileLayer.react","CometErrorBoundary.react","CometLeafletUtils","CometMapControls.react","CometPlaceholder.react","React","TilesMapConfig","deferredLoadComponent","fbicon","requireDeferred","stylex"],(function(a,b,c,d,e,f,g,h){"use strict";e.exports=a;var i,j=b("React"),k=b("deferredLoadComponent")(b("requireDeferred")("CometMapInfoButton.react")),l={maxBounds:b("CometLeafletUtils").WHOLE_WORLD_BOUNDS,maxZoom:b("TilesMapConfig").ZOOM_RANGE.MAX,minZoom:b("TilesMapConfig").ZOOM_RANGE.MIN};function a(a){var c=a.children,d=a.customizedControlButtons;d=d===void 0?[]:d;var e=a.height,f=a.mapOptions,m=a.onClick,n=a.onDragEnd,o=a.onDragStart,p=a.onMoveEnd,q=a.onMoveStart,r=a.onViewChange,s=a.onZoomEnd,t=a.onZoomStart,u=a.reportButtonPosition;u=u===void 0?"bottomright":u;var v=a.showZoom;v=v===void 0?"always":v;var w=a.view,x=a.width;a=a.zoomPosition;a=a===void 0?"topleft":a;var y=j.useState(w),z=y[0],A=y[1];j.useEffect(function(){A(w)},[w]);y={};m&&(y.click=m);n&&(y.dragend=n);o&&(y.dragstart=o);p&&(y.moveend=p);q&&(y.movestart=q);s&&(y.zoomend=s);t&&(y.zoomstart=t);m=v==="always"?[{disabled:z.zoom>=l.maxZoom,icon:b("fbicon")._(g("483768"),16),label:h._("Ingrandisci"),onPress:function(){A(function(a){a=babelHelpers["extends"]({},a,{zoom:a.zoom+1});r&&r(a);return a})}},{disabled:z.zoom<=l.minZoom,icon:b("fbicon")._(g("531490"),16),label:h._("Riduci"),onPress:function(){A(function(a){a=babelHelpers["extends"]({},a,{zoom:a.zoom-1});r&&r(a);return a})}}].concat(d):d;return j.jsx(b("CometErrorBoundary.react"),{children:j.jsxs("div",{className:"du4w35lb k4urcfbm l9j0dhe7",style:{height:e,width:x},children:[j.jsxs(b("BaseLeafletMap.react"),{eventHandlers:y,height:e,onViewChange:function(a){A(a),r&&r(a)},options:babelHelpers["extends"]({},l,f,{zoomControl:!1}),view:z,width:x,children:[j.jsx(b("BaseLeafletTileLayer.react"),{options:l,urlTemplate:b("TilesMapConfig").TILE_URL_TEMPLATE}),c]}),j.jsx("div",{className:(i||(i=b("stylex"))).dedupe({"position-1":"pmk7jnqg","z-index-1":"k3xo03ra"},u==="bottomleft"?{"bottom-1":"i09qtzwb","start-1":"j9ispegn"}:null,u==="bottomright"?{"bottom-1":"i09qtzwb","end-1":"n7fi1qx3"}:null,u==="topright"?{"end-1":"n7fi1qx3","top-1":"kr520xx4"}:null),children:j.jsx(b("CometPlaceholder.react"),{fallback:null,children:j.jsx(k,{infoButtonPosition:u})})}),m.length>0&&j.jsx("div",{className:(i||(i=b("stylex"))).dedupe(a==="topleft"?{"position-1":"pmk7jnqg","start-1":"hnlv2pgd","top-1":"plgsh5y4","z-index-1":"k3xo03ra"}:{},a==="topright"?{"end-1":"b5fwa0m2","position-1":"pmk7jnqg","top-1":"plgsh5y4","z-index-1":"k3xo03ra"}:null),children:j.jsx(b("CometMapControls.react"),{buttonConfigs:m})})]})})}}),null);
__d("CometMapPinMarker.react",["BaseLeafletMarker.react","React","leaflet-v1_5"],(function(a,b,c,d,e,f){"use strict";e.exports=a;var g=b("React");c={iconAnchor:[12,28],iconSize:[25,28]};d={iconAnchor:[12,28],iconSize:[18,24]};var h={BLUE:babelHelpers["extends"]({},c,{iconUrl:"/images/map_pushpin_blue.png"}),RED:babelHelpers["extends"]({},c,{iconUrl:"/images/map_pushpin.png"}),RED_PIN:babelHelpers["extends"]({},d,{iconUrl:"/images/places/map/red-pin.png"})};function a(a){var c=a.children,d=a.coordinates,e=a.onChange,f=a.use,i=e!=null?function(a){a=a.target.getLatLng();var b=a.lat;a=a.lng;e({latitude:b,longitude:a})}:void 0;a=g.useMemo(function(){return{draggable:i!=null,icon:b("leaflet-v1_5").icon(babelHelpers["extends"]({},h[f])),riseOnHover:!0}},[i,f]);return g.jsx(b("BaseLeafletMarker.react"),{coordinates:d,eventHandlers:{dragend:i},options:a,children:c})}}),null);
__d("SearchCometInfoBoxEntityMap.react",["CometMap.react","CometMapPinMarker.react","React","stylex"],(function(a,b,c,d,e,f){"use strict";e.exports=a;var g=b("React");function a(a){var c=a.area,d=a.latitude;a=a.longitude;c=parseFloat(c);d=parseFloat(d);a=parseFloat(a);return Number.isNaN(a)||Number.isNaN(d)?null:g.jsx("div",{className:"k4urcfbm stjgntxs ni8dbmo4 sjgh65i0 lybp2mrg l82x9zwi uo3d90p7 pw54ja7n ue3kfks5",children:g.jsx(b("CometMap.react"),{height:200,showZoom:"always",view:{center:{latitude:d,longitude:a},zoom:h(c)},width:"auto",children:g.jsx(b("CometMapPinMarker.react"),{coordinates:{latitude:d,longitude:a},use:"RED"})})})}function h(a){if(a==null)return 3;if(a<200)return 10;if(a<500)return 9;if(a<700)return 8;if(a<6e3)return 7;if(a<15e3)return 6;if(a<15e4)return 5;return a<4e5?4:3}}),null);
__d("CometGeoCircleRadius",[],(function(a,b,c,d,e,f){"use strict";f.toQueryData=a;function g(a){switch(a){case"kilometer":case"kilometers":return"k";case"meter":case"meters":return"m";case"mile":case"miles":return"mi";case"foot":case"feet":return"ft"}return""}function a(a){var b=a.unit;a=a.value;return a+g(b)}}),null);
__d("CometGeoCircle",["CometGeoCircleRadius"],(function(a,b,c,d,e,f){"use strict";f.toQueryData=a;function a(a){var c=a.color,d=a.fillColor,e=a.position,f=a.radius;a=a.weight;var g=e.latitude;e=e.longitude;a=["weight:"+a,"color:"+c,"fillcolor:"+d,g+","+e,b("CometGeoCircleRadius").toQueryData(f)];return a.join("|")}}),null);
__d("useMapImageURI",["CometGeoCircle","CurrentLocale","React","TilesMapConfig","URI","WebPixelRatio"],(function(a,b,c,d,e,f){"use strict";e.exports=a;var g,h=b("React"),i=1.5,j=1,k=2;function l(a){var c=a.boundingBox,d=a.center,e=a.circle,f=a.markers,h=a.paths,l=a.size;a=a.zoom;var m=l.height;l=l.width;if(l===0||m===0)return null;l=new(g||(g=b("URI")))(b("TilesMapConfig").STATIC_MAP_URL_TEMPLATE).addQueryData("size",l+"x"+m).addQueryData("language",b("CurrentLocale").get());m=(m=b("WebPixelRatio").get())!=null?m:b("TilesMapConfig").DEVICE_PIXEL_RATIO;m=m<i?j:k;l.addQueryData("scale",m);a!=null&&l.addQueryData("zoom",a);if(c!=null){m=c.east;a=c.north;var n=c.south;c=c.west;l.addQueryData("visible",a+","+c+"|"+n+","+m)}else if(d!=null){a=d.latitude;c=d.longitude;l.addQueryData("center",a+","+c)}f!=null&&f.length>0&&l.addQueryData("marker_list",f.map(function(a){var b=a.icon,c=a.label;a=a.position;return(b==null?"":"icon:"+b.iconPath+"|anchor:"+b.anchorU+","+b.anchorV+"|")+(c==null?"":"label:"+c+"|")+(a.latitude+","+a.longitude)}));h!=null&&h.length>0&&l.addQueryData("paths",h.map(function(a){var b=a.color,c=a.dashed,d=a.fillColor,e=a.points,f=a.route;a=a.weight;var g=[];b!=null&&g.push("color:"+b);c!=null&&c.length>0&&g.push("dashed:"+c.join(","));d!=null&&g.push("fillcolor:"+d);a!=null&&g.push("weight:"+a);f!=null&&g.push("route:"+f);for(var b=0;b<e.length;b++){c=e[b];d=c.latitude;a=c.longitude;g.push(d+","+a)}return g.join("|")}));e!=null&&l.addQueryData("circle",b("CometGeoCircle").toQueryData(e));return l}function a(a){var b=a.boundingBox,c=a.center,d=a.circle,e=a.height,f=a.markers,g=a.paths,i=a.width,j=a.zoom;return h.useMemo(function(){return l({boundingBox:b,center:c,circle:d,markers:f,paths:g,size:{height:e,width:i},zoom:j})},[b,c,d,e,f,g,i,j])}}),null);
__d("BaseStaticMap.react",["React","useMapImageURI"],(function(a,b,c,d,e,f){"use strict";e.exports=a;var g=b("React");function a(a){var c=a.className,d=a.expand;d=d===void 0?!1:d;a=babelHelpers.objectWithoutPropertiesLoose(a,["className","expand"]);var e=b("useMapImageURI")(a);e={backgroundImage:e==null?"none":"url("+e.toString()+")",backgroundRepeat:"no-repeat",backgroundSize:"100% 100%",height:d?"100%":a.height,width:d?"100%":a.width};return g.jsx("div",{className:c,style:e})}}),null);
__d("CometMapInfoButton.react",["ix","fbt","CometLazyPopoverTrigger.react","JSResourceForInteraction","React","TetraIcon.react","fbicon","stylex"],(function(a,b,c,d,e,f,g,h){"use strict";e.exports=a;var i,j=b("JSResourceForInteraction")("CometMapInfoMenu.react").__setRef("CometMapInfoButton.react"),k=b("React");function a(a){a=a.infoButtonPosition;a=a===void 0?"bottomright":a;return k.jsx("div",{className:(i||(i=b("stylex"))).dedupe({"pointer-events-1":"oqq733wu","position-1":"pmk7jnqg"},a==="bottomleft"?{"bottom-1":"fpi38s0q","start-1":"ilmj46im"}:null,a==="bottomright"?{"bottom-1":"fpi38s0q","end-1":"o0s42vec"}:null,a==="topright"?{"end-1":"o0s42vec","top-1":"iscu2v8x"}:null),children:k.jsx(b("CometLazyPopoverTrigger.react"),{align:a.includes("left")?"start":"end",autoAlign:!0,popoverProps:{},popoverResource:j,position:a.includes("bottom")?"above":"below",children:function(a,c){return k.jsx(b("TetraIcon.react"),{"aria-label":h._("Visualizza le informazioni sulla mappa"),color:"tertiary",icon:b("fbicon")._(g("479176"),16),onPress:c,ref:a})}})})}}),null);
__d("CometMapConfig",[],(function(a,b,c,d,e,f){"use strict";a="#4D6AA4";b="#DC3847";var g=2,h=200/255,i=3,j={blue:a,red:b};function k(a){return(a*255).toString(16).substr(0,2)}function l(a,b,c){a===void 0&&(a="blue");b===void 0&&(b=!1);c===void 0&&(c=.5);b=b?56/255:28/255;a=j[a];return{color:a,colorOpacity:c,fillColor:a,fillColorOpacity:b}}c={getLeafletCircleColorConfig:function(a,b){b===void 0&&(b=!1);a=l(a);b=b===!0?2:1;return{color:a.color,fillColor:a.fillColor,fillOpacity:a.fillColorOpacity*b,opacity:a.colorOpacity,weight:g}},getLeafletCircleMarkerColorConfig:function(a){return{color:"#FFFFFF",fillColor:l(a).fillColor,fillOpacity:1,opacity:1,radius:4,weight:2}},getStaticCircleColorConfig:function(a,b,c){a=l(a,b,c);b=a.color;c=a.colorOpacity;var d=a.fillColor;a=a.fillColorOpacity;return{color:"0x"+b.substr(1)+k(c),fillColor:"0x"+d.substr(1)+k(a),weight:g}},getStaticPathColorConfig:function(){var a=l("blue");a=a.color;return{color:"0x"+a.substr(1)+k(h),weight:i}}};e.exports=c}),null);
__d("CometStaticMap.react",["BaseStaticMap.react","CometMapConfig","requireDeferredForDisplay","CometPlaceholder.react","React","deferredLoadComponent","stylex"],(function(a,b,c,d,e,f){"use strict";e.exports=a;var g=b("CometMapConfig").getStaticCircleColorConfig,h=b("CometMapConfig").getStaticPathColorConfig,i=b("React"),j=b("deferredLoadComponent")(b("requireDeferredForDisplay")("CometMapInfoButton.react"));function a(a){var c=a.circle,d=a.expand;d=d===void 0?!1:d;var e=a.fillColor;e=e===void 0?"blue":e;var f=a.fillColorOpacity;f=f===void 0?.5:f;var k=a.infoButtonPosition,l=a.isHighlighted;l=l===void 0?!1:l;var m=a.paths,n=a.polygons;a=babelHelpers.objectWithoutPropertiesLoose(a,["circle","expand","fillColor","fillColorOpacity","infoButtonPosition","isHighlighted","paths","polygons"]);var o=[],p=h(),q=g(e,l,f);m!=null&&m.forEach(function(a){o.push(babelHelpers["extends"]({},p,a))});n!=null&&n.forEach(function(a){o.push(babelHelpers["extends"]({},a,q))});e=d?{paddingTop:"calc("+a.height+" / "+a.width+" * 100%)"}:{height:a.height,width:a.width};return i.jsxs("div",{className:"l9j0dhe7"+(d?" stjgntxs ni8dbmo4 do00u71z":""),"data-testid":void 0,style:e,children:[i.jsx(b("BaseStaticMap.react"),babelHelpers["extends"]({},a,{circle:c!=null?babelHelpers["extends"]({},c,q):void 0,className:d?"kr520xx4 j9ispegn pmk7jnqg":"",expand:d,paths:o})),i.jsx(b("CometPlaceholder.react"),{fallback:null,children:i.jsx(j,{infoButtonPosition:k})})]})}}),null);
__d("MarketplaceStaticMap.hybrid",["MarketplacePDPContext.hybrid","MarketplacePDPPreviewDisabledWrapper.hybrid","MarketplacePDPPreviewFocusBorder.hybrid","React","RelayFlight.hybrid","marketplaceComposerDispatchers.hybrid","stylex","CometStaticMap.react","CometTransientDialogProvider.react"],(function(a,b,c,d,e,f){"use strict";e.exports=a;var g,h=b("React"),i=b("RelayFlight.hybrid").ClientJSResource("m#CometStaticMap.react",function(){return b("CometStaticMap.react")}),j=b("RelayFlight.hybrid").ClientJSResource("m#CometTransientDialogProvider.react",function(){return b("CometTransientDialogProvider.react")}),k={mapPreview:{borderTopStartRadius:"ue3kfks5",borderTopEndRadius:"pw54ja7n",borderBottomEndRadius:"uo3d90p7",borderBottomStartRadius:"l82x9zwi"},root:{borderTopStartRadius:"ue3kfks5",borderTopEndRadius:"pw54ja7n",borderBottomEndRadius:"uo3d90p7",borderBottomStartRadius:"l82x9zwi",overflowX:"ni8dbmo4",overflowY:"stjgntxs",position:"l9j0dhe7"},rootPreview:{pointerEvents:"hzruof5a"}};function a(a){var c=a.height,d=a.latitude,e=a.longitude,f=a.radiusKm,l=a.showCenterCircle;l=l===void 0?!0:l;var m=a.showCenterMarker;m=m===void 0?!1:m;a=a.width;e={latitude:d,longitude:e};var n=function(a){a=156543.03392*Math.cos(d*Math.PI/180)/Math.pow(2,a);return f*1e3/a*2},o=function(){var a=12,b=n(a);while(a>4&&b>c*.9)a-=1,b=n(a);return a};a={height:c,width:a};m=m?[{position:e}]:[];l=l?{position:e,radius:{unit:"kilometers",value:Math.round(f)}}:void 0;var p=b("MarketplacePDPContext.hybrid").usePDPContext();p=p.isPreview;p=p===void 0?!1:p;var q=b("marketplaceComposerDispatchers.hybrid").useMarketplaceComposerCommonViewState();q=q.location;q=b("marketplaceComposerDispatchers.hybrid").usePDPPreviewConfig(q);var r=q.isGrayedOut;q=q.isHovered;return h.jsx(j,{children:h.jsxs("div",{className:(g||(g=b("stylex")))(k.root,p?k.rootPreview:null),children:[h.jsx(b("MarketplacePDPPreviewDisabledWrapper.hybrid"),{shouldGrayOut:r,children:h.jsx(i,babelHelpers["extends"]({center:e,circle:l,markers:m,zoom:o()},a))}),q&&h.jsx(b("MarketplacePDPPreviewFocusBorder.hybrid"),{xstyle:k.mapPreview})]})})}}),null);
__d("CometMediaViewerFilmstrip.react",["ix","fbt","CometBackgroundImage.react","CometImage.react","CometPressable.react","CometThrottle","Locale","React","TetraIcon.react","fbicon","stylex"],(function(a,b,c,d,e,f,g,h){"use strict";e.exports=a;var i,j=b("React");c=36;d=6;var k=c+d*2,l={imageInner:{height:"datstx6m",objectFit:"r0294ipz",overflowX:"ni8dbmo4",overflowY:"stjgntxs",width:"k4urcfbm"},root:{alignItems:"bp9cbjyn",display:"j83agx80",height:"tv7at329",paddingTop:"cxgpxx05",paddingBottom:"sj5x9vvc",transitionDuration:"pc15xi3s",transitionProperty:"flx89l3n",transitionTimingFunction:"eloblzlw",whiteSpace:"g0qnabr5"},thumbnail:{cursor:"nhd2j8a9",height:"tv7at329",width:"thwo4zme"},thumbnailContainer:{borderTopStartRadius:"beltcj47",borderTopEndRadius:"p86d2i9g",borderBottomEndRadius:"aot14ch1",borderBottomStartRadius:"kzx2olss",display:"q9uorilb",flexShrink:"pfnyh3mw",height:"tv7at329",marginEnd:"fv0vnmcu",marginStart:"ggphbty4",overflowX:"ni8dbmo4",overflowY:"stjgntxs",width:"thwo4zme"},thumbnailNonActive:{opacity:"ggwglk7f",":hover":{opacity:"oecfc0l4"}},videoIcon:{alignItems:"bp9cbjyn",display:"j83agx80",height:"bipmatt0",justifyContent:"taijpn5t",position:"pmk7jnqg",width:"iyyx5f41"}};function m(a){var c=a.image.mediaType!=="video"&&Boolean(a.image.isUseImageResizing)?{backgroundColor:a.image.backgroundColor}:{},d=a.image.mediaType!=="video"?a.image.uri:a.image.thumbnailUri;return j.jsx("div",{className:(i||(i=b("stylex")))(l.thumbnailContainer),children:j.jsx(b("CometPressable.react"),{display:"inline",label:h._("Immagine di anteprima {index}",[h._param("index",a.index)]),onPress:a.onClick,overlayDisabled:!0,children:j.jsxs("div",{className:i(l.thumbnail,a.active!==!0?l.thumbnailNonActive:null),style:c,children:[a.image.mediaType==="video"?j.jsx("div",{className:(i||(i=b("stylex")))(l.videoIcon),children:j.jsx(b("TetraIcon.react"),{color:"white",icon:b("fbicon")._(g("507224"),12)})}):null,a.image.mediaType!=="video"&&Boolean(a.image.isUseImageResizing)?j.jsx(b("CometImage.react"),{src:d,xstyle:l.imageInner}):j.jsx(b("CometBackgroundImage.react"),{src:d})]})})})}function a(a){var c=j.useState(0),d=c[0],e=c[1],f=j.useRef(null),g=j.useRef(null),h=j.useRef(null);j.useEffect(function(){function c(){if(f.current!=null){var b=f.current,c=b.offsetWidth;b=b.scrollWidth;var g=h.current;if(b===c)return;b=-d/k;var i=Math.floor((c+-d)/k),j=b+Math.floor((i-b)/2);if(g!=null){if(a.activeIndex>g&&(a.activeIndex<j||i===a.images.length)){h.current=a.activeIndex;return}if(a.activeIndex<g&&(a.activeIndex>j||b===0)){h.current=a.activeIndex;return}}j=d-(a.activeIndex-((i=g)!=null?i:0))*k;j=Math.min(0,j);j=Math.max(Math.floor(c-a.images.length*k),j);h.current=a.activeIndex;e(j)}}c();g.current!=null&&window.removeEventListener("resize",g.current);c=b("CometThrottle")(c,100);g.current=c;window.addEventListener("resize",c);return function(){g.current!=null&&window.removeEventListener("resize",g.current)}},[a.images,a.activeIndex,d]);return a.images.length<2?null:j.jsx("div",{className:(i||(i=b("stylex")))(l.root),ref:f,style:{transform:"translate3d("+(b("Locale").isRTL()?-d:d)+"px, 0, 0)"},children:a.images.map(function(b,c){return j.jsx(m,{active:a.activeIndex===c,image:b,index:c,onClick:function(b){a.onSetImage(c)}},"thumbnail_"+c)})})}}),null);
__d("DistanceConstants",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({KILOMETERS_PER_MILE:1.609344,MILES_PER_KILOMETER:.621371,FEET_PER_MILE:5280,METERS_PER_MILE_APPROXIMATE:1609,METERS_PER_MILE:1609.344,METERS_PER_KILOMETER:1e3,KILOMETERS_PER_METER:.001,SQUARED_METERS_PER_SQUARED_KILOMETER:1e6,FEET_PER_DECIMETER:.328084,FEET_PER_METER:3.28084,METERS_PER_FOOT:.3048,MILES_PER_METER:621371e-9,EARTH_EQUATOR_LAT_DEGREE_TO_METERS:111132,EARTH_EQUATOR_LONG_DEGREE_TO_METERS:78847,EARTH_RADIUS_KM:6371.01,EARTH_SEMI_CIRCUMFERENCE_KM:20015.11})}),null);
__d("distance",["DistanceConstants"],(function(a,b,c,d,e,f){"use strict";f.haversine=a;var g=b("DistanceConstants").EARTH_RADIUS_KM,h=b("DistanceConstants").METERS_PER_KILOMETER;function a(a,b,c,d){var e=c*Math.PI/180-a*Math.PI/180;d=d*Math.PI/180-b*Math.PI/180;b=Math.sin(e/2)*Math.sin(e/2)+Math.cos(a*Math.PI/180)*Math.cos(c*Math.PI/180)*Math.sin(d/2)*Math.sin(d/2);e=2*Math.atan2(Math.sqrt(b),Math.sqrt(1-b));a=g*e;return a*h}}),null);
__d("CometMenuWithPagination.react",["fbt","CometInfiniteScrollTrigger.react","CometMenuBaseWithPopover.react","CometMenuItemBase.react","CometProgressIndicator.react","React","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h=b("React");function a(a,c){var d=a.children,e=a.hasMore,f=a.isLoading,i=a.loadMore,j=a.truncate;a=babelHelpers.objectWithoutPropertiesLoose(a,["children","hasMore","isLoading","loadMore","truncate"]);return h.jsxs(b("CometMenuBaseWithPopover.react"),babelHelpers["extends"]({},a,{ref:c,truncate:j,children:[d,h.jsx(b("CometInfiniteScrollTrigger.react"),{hasMore:e,isLoading:f,onLoadMore:i,children:h.jsx("div",{className:"scb9dxdr sj5x9vvc dflh9lhu cxgpxx05 bp9cbjyn du4w35lb l9j0dhe7 hpfvmrgz tgvbjcpo kvgmc6g5 hcukyx3x cxmmr5t8 oygrvhab i1fnvgqd g5gj957u buofh1pr cbu4d94t j83agx80 rq0escxv auili1gw ow4ym5g4",children:h.jsx(b("CometProgressIndicator.react"),{})})},"CometInfiniteScrollTrigger"),!f&&e?h.jsx(b("CometMenuItemBase.react"),{onClick:i,primaryText:g._("Carica altro")}):null]}))}c=h.forwardRef(a);e.exports=c}),null);
__d("LWICometTooltip.react",["fbt","CometLink.react","CometPopover.react","React","TetraText.react","TetraTextPairing.react","stylex"],(function(a,b,c,d,e,f,g){"use strict";e.exports=a;var h=b("React");function a(a){var c=a.body,d=a.headline;a=a.learnMoreURL;return h.jsx(b("CometPopover.react"),{withArrow:!0,children:h.jsxs("div",{className:"k4urcfbm tw6a2znq f10w8fjw d1544ag0 pybr56ya lyse4a7x",children:[h.jsx(b("TetraTextPairing.react"),{body:c,headline:d,level:4}),a!=null&&h.jsx("div",{className:"n1l5q3vz",children:h.jsx(b("CometLink.react"),{href:a,target:"_blank",children:h.jsx(b("TetraText.react"),{color:"blueLink",type:"bodyLink4",children:g._("Scopri di pi\u00f9")})})})]})})}}),null);
__d("LWICometCTAWhatsAppVerifiedNumber.react",["fbt","CometRow.react","CometRowItem.react","React","TetraButton.react","TetraTextPairing.react"],(function(a,b,c,d,e,f,g){"use strict";var h=b("React");function a(a){var c=a.disabledEdit,d=a.hideHeader,e=a.onEdit;a=a.verifiedNumber;return h.jsxs(h.Fragment,{children:[d!==!0?h.jsx(b("TetraTextPairing.react"),{headline:g._("Numero di WhatsApp"),level:3}):null,h.jsxs(b("CometRow.react"),{paddingHorizontal:0,paddingTop:d!==!0?16:0,children:[h.jsx(b("CometRowItem.react"),{expanding:!0,children:h.jsx(b("TetraTextPairing.react"),{body:g._("Ora puoi ricevere messaggi!"),headline:a.startsWith("+")?a:"+".concat(a),level:3,reduceEmphasis:!0})}),h.jsx(b("CometRowItem.react"),{children:c===!0?null:h.jsx(b("TetraButton.react"),{label:g._("Modifica"),onPress:e,type:"secondary"})})]})]})}c=h.memo(a);e.exports=c}),null);
__d("LWICometWhatsAppAdvertisingPolicyNotice.react",["fbt","LWICometNoticeCard.react","React"],(function(a,b,c,d,e,f,g){"use strict";e.exports=a;var h=b("React"),i="https://www.facebook.com/policies/ads/",j="https://www.whatsapp.com/legal/commerce-policy/",k=g._("Normative per le inserzioni che aprono WhatsApp"),l=g._("Le informazioni di WhatsApp, inclusi nomi e numeri di telefono, sono soggette alle limitazioni relative all'utilizzo dei dati riportate nelle Normative pubblicitarie di Facebook. La tua azienda e le inserzioni devono rispettare anche la Normativa sulle vendite di WhatsApp."),m=g._("Normative pubblicitarie"),n=g._("Normative sulle vendite");function a(){return h.jsx(b("LWICometNoticeCard.react"),{body:l,category:"POLICY_UPDATE",ctaButton:{primaryButton:{label:m,linkProps:{target:"_blank",url:i},type:"secondary"},secondaryButton:{label:n,linkProps:{target:"_blank",url:j}}},header:k})}}),null);
__d("LWICometPagePickerPopoverResource.react",["BaseScrollableArea.react","CometMenuItemSelectable.react","CometMenuWithPagination.react","CometRouteParams","LWICometEntryPointUtils","React","XCometLWIProductPickerControllerRouteBuilder","recoverableViolation"],(function(a,b,c,d,e,f){"use strict";e.exports=a;var g=b("React"),h=10;function a(a){var c=b("CometRouteParams").useRouteParams(),d=b("LWICometEntryPointUtils").convertEntryPointParamToJSEnumWithFallback(c.entry_point,"unknown");if(a.pages.length<1){b("recoverableViolation")("Popover for page picker has < 1 page","pages_lwi");return null}c=function(){a.loadNext(h)};return g.jsx(b("BaseScrollableArea.react"),{horizontal:!0,vertical:!0,children:g.jsx(b("CometMenuWithPagination.react"),{hasMore:a.hasNext,isLoading:a.isLoadingNext,loadMore:c,truncate:!0,withArrow:!0,children:a.pages.map(function(c){var e=c.id,f=c.name;c=c.profilePictureURI;return e==null||f==null?null:g.jsx(b("CometMenuItemSelectable.react"),{href:a.setSelectedPageID==null?b("XCometLWIProductPickerControllerRouteBuilder").buildURL({entry_point:d,page_id:e}):void 0,icon:{src:(c=c)!=null?c:"",style:"circle"},iconStyle:"contained",isSelected:e===a.selectedID,onClick:function(){a.setSelectedPageID!=null&&a.setSelectedPageID(e)},primaryText:f,role:"menuitemradio"},e)})})})}}),null);
__d("useCometTokenizerDataSource",["React","cometSearchTypeaheadBaseFetchPayloadDecorate","cometSearchTypeaheadPayloadDecoratorAddLimit","cometSearchTypeaheadPayloadDecoratorRemoveDuplicates","useCometTypeaheadGraphQLDataSource"],(function(a,b,c,d,e,f){"use strict";e.exports=a;var g=b("React");function a(a){var c=a.decorators;c=c===void 0?{}:c;var d=c.duplicateDecorator,e=d===void 0?b("cometSearchTypeaheadPayloadDecoratorRemoveDuplicates"):d,f=c.filterDecorator,h=a.limit;d=a.tokens;c=d===void 0?[]:d;d=babelHelpers.objectWithoutPropertiesLoose(a,["decorators","limit","tokens"]);var i=g.useRef(c),j=b("useCometTypeaheadGraphQLDataSource")(babelHelpers["extends"]({},d,{limit:h+i.current.length})),k=g.useMemo(function(){return function(a){return b("cometSearchTypeaheadBaseFetchPayloadDecorate")(a,[e(i.current),f,b("cometSearchTypeaheadPayloadDecoratorAddLimit")(h)].filter(Boolean))}},[e,f,h]);return g.useMemo(function(){return{fetchCache:function(a){return k(j.fetchCache(a))},fetchNetwork:function(a){return j.fetchNetwork(a).then(function(a){return k(a)})},setTokens:function(a){i.current=a}}},[j,k])}}),null);