PageSourceSearch

https://www.animeclick.it/assets/frontend.96e2575c.js

js animeclick.it collected 2026-10-02 05:42:24 UTC 246,982 bytes, 12 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([["frontend"],{"+Lgc":function(t,e,i){(function(t){window,document,L.ACFumetteriaMarker=L.Marker.extend({options:{icon:L.icon({iconUrl:"/bundles/accommon/images/fumetterie/marker-fumetteria.png",iconRetinaUrl:"/bundles/accommon/images/fumetterie/marker-fumetteria.png",shadowUrl:"/bundles/accommon/images/fumetterie/marker-fumetteria-shadow.png",iconSize:[64,64],iconAnchor:[12,32],popupAnchor:[21,-22],tooltipAnchor:[16,-28],shadowSize:[64,64]})},onAdd:function(t){var e=this;this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this.bindPopup("<h4>Loading...</h4>",{maxWidth:400,minWidth:180,className:"popup-fumetteria"}),this.on("click",(function(t){var i=t.target.getPopup();i.setContent(e.options.popupContent),i.update(),t.target.openPopup()})),this._initIcon(),this.update()}}),L.acFumetteriaMarker=function(t,e){return new L.ACFumetteriaMarker(t,e)},ACMaps.Handler.Fumetterie=ACMaps.Handler.extend({bounds:null,group:null,initMap:function(){var t=L.latLng(36,6),e=L.latLng(47,19),i=L.latLngBounds(t,e);this.bounds=i,this.map=L.map(this.options.mapId,{center:i.getCenter(),minZoom:6,zoom:6,maxBounds:i,maxBoundsViscosity:1,scrollWheelZoom:!1}),L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{maxZoom:18}).addTo(this.map)},initController:function(){var e=this,i=this.options.routeCities,n=this.options.listSelector,o=this.options.listPlaceholder;t(n).select2({placeholder:o,minimumInputLength:1,formatInputTooShort:function(){return"Inserisci almeno 1 carattere"},ajax:{url:i,dataType:"json",quietMillis:250,data:function(t,e){return{query:t}},results:function(t,e){return{results:t.items}}},formatSelection:function(t){return t.name},formatResult:function(t){return t.name}}),t(n).on("change",(function(i){var n=t(this),o=t(e.options.listContainer),a=n.val(),r=e.options.routeFumetterie;t.ajax({url:r,data:{city:a},type:"json",method:"get",success:function(i){if(e.resetMap(),i.length>0){var n,a,r=[];t.each(i,(function(t,e){null!=e.lat&&null!=e.lng&&(a=new L.ACFumetteriaMarker([e.lat,e.lng],{popupContent:e.view}),r.push(a)),n='<div class="col-md-12 col-lg-6 col-xl-4 fumetteria-item">'+e.view+"</div>",o.append(n)})),e.group=L.featureGroup(r).addTo(e.map),e.map.flyToBounds(e.group.getBounds())}}})}))},resetMap:function(){t(this.options.listContainer).html(""),null!=this.group&&this.group.remove()}}),ACMaps.handler.fumetterie=function(t){return new ACMaps.Handler.Fumetterie(t)}}).call(this,i("EVdn"))},"+eoe":function(t,e,i){(function(t){function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(e,n,o){Object.defineProperty(Array.prototype,"chunk",{value:function(t){for(var e=[],i=0;i<this.length;i+=t)e.push(this.slice(i,i+t));return e}});var a,r={};"object"===i(t)&&"object"===i(t.exports)&&(t.exports=r),void 0!==e&&(a=e.ACMaps,L.noConflict=function(){return e.ACMaps=a,this},e.ACMaps=r),r.extend=L.Util.extend,r.Class=function(){},r.Class.extend=function(t){var e=function(){this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},i=e.__super__=this.prototype,n=L.Util.create(i);for(var o in n.constructor=e,e.prototype=n,this)this.hasOwnProperty(o)&&"prototype"!==o&&(e[o]=this[o]);return t.statics&&(L.extend(e,t.statics),delete t.statics),t.includes&&(L.Util.extend.apply(null,[n].concat(t.includes)),delete t.includes),n.options&&(t.options=L.Util.extend(L.Util.create(n.options),t.options)),L.extend(n,t),n._initHooks=[],n.callInitHooks=function(){if(!this._initHooksCalled){i.callInitHooks&&i.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,e=n._initHooks.length;t<e;t++)n._initHooks[t].call(this)}},e};e.createBaseBag=function(){var t=new Object;this.add=function(e,i){t[""+e]=i},this.remove=function(e){delete t[e]},this.get=function(e){return t[""+e]},this.has=function(e){return e in t},this.list=t},r.Handler=r.Class.extend({map:null,initialize:function(t){L.setOptions(this,t),this.initMap(),this.initController()},initMap:function(){},initController:function(){}}),r.handler=function(t){return new r.Handler(t)}}(window,document),e.ACMaps=ACMaps}).call(this,i("YuTi")(t))}
1,"/2jn":function(t,e,i){(function(e){i("EVdn");t.exports=function(t){var n=i("rCjL"),o=i("fwdO");t.fn.imagesLoaded=o;var a=i("HTCS"),r=i("DuH2");t.fn.selectRange=function(t,e){return void 0===e&&(e=t),this.each((function(){if("selectionStart"in this)this.selectionStart=t,this.selectionEnd=e;else if(this.setSelectionRange)this.setSelectionRange(t,e);else if(this.createTextRange){var i=this.createTextRange();i.collapse(!0),i.moveEnd("character",e),i.moveStart("character",t),i.select()}}))},t.fn.bbcodeEditor=function(){var i=this.selector,n=t("#"+t(this).data("target"));if(void 0!==n){var o="";t(document).on("select",n,(function(t){t.preventDefault(),o=AC.Utils.getSelectedText()})),t(i).on("click"," .btn[data-commento-preview]",(function(i){i.preventDefault();var o=t(this),r=o.data("commento-preview"),s=n.val();return""!=s&&(AC.setLoading(o,!0),a.hideAll(),t.post(r,{testo:s},(function(t){var i=e.parseJSON(t);i.ok&&""!=i.data&&a.alert(i.data)})).always((function(){AC.setLoading(o,!1)}))),!1})),t(i).on("click"," .btn.bbcode",(function(e){e.preventDefault();var i=t(this).data("code"),a="",r="",s="",l=0;switch(i){case"b":r="[b]",s="[/b]";break;case"i":r="[i]",s="[/i]";break;case"u":r="[u]",s="[/u]";break;case"p":r="[p]",s="[/p]";break;case"q":r="[quote]",s="[/quote]";break;case"img":r="[img]",s="[/img]";break;case"url":r="[url]",s="[/url]";break;case"youtube":r="[youtube]",s="[/youtube]";break;case"vimeo":r="[vimeo]",s="[/vimeo]";break;case"spoiler":r="[spoiler]",s="[/spoiler]";break;case"nsfw":r="[nsfw]",s="[/nsfw]";break;default:a=""}n.val((function(t,e){return l=n[0].selectionStart,void 0!==o&&""!==o?(a=r+""+o+s,e=e.slice(0,l)+a+e.slice(n[0].selectionEnd),l+=a.length):(e=e.slice(0,l)+r+s+e.slice(l),l+=r.length),e})),n.selectRange(l),n.focus()}))}},t.fn.ajaxFormRicerca=function(e){var i=t.extend({targetDIV:"#elenco",pagination:".paginate-me",setFirstPage:!1,extraParams:void 0},e),n=this.selector;t(document).on("submit",n,(function(e){var o=t(this),a=o.find(":submit");AC.setLoading(a,!0);var r=o.attr("action"),s=t(i.targetDIV);s.fadeTo("slow",.33);var l;return l=o.serialize(),r+="?page=1",void 0!==i.extraParams&&(r="function"==typeof i.extraParams?r+"&"+t.param(i.extraParams()):r+"&"+t.param(i.extraParams)),t.post(r,l,(function(e){var n=t.parseJSON(e);if(n.ok){s.empty(),t(n.data.html).appendTo(s);var o=t(i.pagination);o.length>0&&o.paginateMe("refresh",n.data.totalePagine,i.setFirstPage),s.fadeTo("slow",1)}else alert("Si è verificato un errore");AC.setLoading(a,!1)})).error((function(){alert("Errore interno del server. Contattare il webmaster :("),s.fadeTo("slow",1),AC.setLoading(a,!1)})).done((function(){t(n).trigger(t.Event("paginateMe"))})),!1}))},t.fn.ajaxCRUDDialog=function(e){var i=t.extend({titolo:"Modifica",label:"Salva",size:null,template:void 0,callback:void 0,onShow:void 0},e),o=this.selector;return t(document).on("click",o,(function(e){e.preventDefault();var o=t(this);try{var s=o.attr("href");t.getJSON(s,(function(e){if(e.ok){var l=t("<div>").html(e.data);a.hideAll();var c=a.dialog({message:l,title:i.titolo,size:i.size,buttons:{success:{label:i.label,className:"btn-outline-secondary editBtn",callback:function(){var e=t(".editBtn").parents(".modal-content:first").find("form:first"),a=new FormData(e[0]);return t.ajax({url:s,data:a,processData:!1,contentType:!1,type:"POST",success:function(a){n.clear(e,!0);var s=t.parseJSON(a);s.ok?(r.nascondiModale(t(".editBtn").parents(".bootbox:first")),null!=i.template&&t(o).closest("tr").replaceWith(Mustache.render(i.template,s.data))):(console.log(s),n.showAll(s.message,e)),i.callback&&"function"==typeof i.callback&&i.callback(s,o)}}),!1}}}});i.onShow&&"function"==typeof i.onShow&&c[0].addEventListener("shown.bs.modal",(function(){i.onShow(o,c)}))}else alert(e.message)}))}catch(e){console.log(e)}})),this},t.fn.autoHeight=function(){function i(t){return e(t).css({height:"auto","overflow-y":"hidden"}).height(t.scrollHeight)}return this.each((function(){i(this).on("input",(function(){i(this),t(this).trigger(t.Event("resize"))}))}))},t.fn.select2Tags=function(e){var i=this.selector;t(i).select2({tags:!0,tokenSeparators:[","," "],minimumInputLength:1,ajax:{url:e.action,dataType:"json",data:function(t,e){return{q:t,page_limit:10}},results:function(t,e){return{results:t,text:"descrizione"}}},formatNoMatches:"Nessun risultato trovato",formatSearching:"Ricerca in corso...",formatInputTooShort:function(t,e){return"Inserire almeno "+e+" caratteri."},initSelection:function(i,n){t.getJSON(e.action+"?cmd=associati&ids="+t(i).val(),(function(e){t(function(e,i){var n,o,a;if(null===e||e.length<1)return[];for(o=0,a=(n=e.split(i)).length;o<a;
1o+=1)n[o]=t.trim(n[o]);return n}(i.val(),",")).each((function(){e.push({id:this,text:this})})),n(e)}))}})},t.fn.paginateMe=function(e){var i=this.selector,n=this,o=n.data("totale-pagine"),a=n.data("pagina-corrente"),r={refresh:function(e,i,r){try{t(n).twbsPagination("destroy")}catch(t){}o=e,"boolean"==typeof i&&!0===i&&(a=1),"boolean"==typeof r&&!0===r&&(a=e)}};r[e]&&r[e].apply(this,Array.prototype.slice.call(arguments,1));var s=t("#"+n.data("form"));if(void 0!==a&&""!==a||(a=1),o>0){var l=n.data("action"),c=n.data("target"),u=n.data("visible-pages");void 0===u&&(u=7),n.twbsPagination({totalPages:o,visiblePages:u,startPage:a,first:"<<",prev:"<",next:">",last:">>",onPageClick:function(e,o){var a=t("#"+c);a.fadeTo("slow",.33);var r={};return s.length>0&&(r=s.serialize()),t.post(l+"?page="+o,r,(function(e){var i=t.parseJSON(e);i.ok?(n.data("pagina-corrente",o),a.empty(),t(i.data.html).appendTo(a),a.fadeTo("slow",1),t("html, body").animate({scrollTop:a.offset().top-60},600)):alert(i.message)})).done((function(){t(i).trigger(t.Event("paginateMe"))})),!1}})}return this}}}).call(this,i("EVdn"))},"/7od":function(t,e,i){var n=i("EVdn"),o=i("DuH2");t.exports=function(){var t=window.location.pathname+"_calendario_filtri",e=n("#calendario-pagination-div");function i(){var e={inLista:!1},i=[];n(".top-filter a.event-filter.active").each((function(t,o){var a=n(o).data("sezione");void 0!==a&&i.push(a);var r=n(o).data("in-lista-opera");void 0!==r&&(e.inLista=r)})),e.tipo=i;var o=[];return n(".top-filter a.event-filter-nazione.active").each((function(t,e){var i=n(e).data("nazione");void 0!==i&&o.push(i)})),e.nazioni=o,"undefined"!=typeof Storage&&localStorage.setItem(t,JSON.stringify(e)),e}function a(){var t={};return t.month=e.data("current-month"),t.year=e.data("current-year"),t.day=e.data("current-day"),t}function r(t,e,i){n.extend(e,a()),n.getJSON(t,e,(function(t){t.ok&&(i.empty(),n(t.data.html).hide().appendTo(i).fadeIn("normal",(function(){n("img.lazy").lazyload({effect:"fadeIn"})})))}))}n((function(){var e=n(".top-filter a:first"),i=e.data("action");if(0!==e.length&&i&&"undefined"!=typeof Storage){var o=localStorage.getItem(t),a=n("#"+e.data("target"));if(o){var s=JSON.parse(o);s.tipo&&n.each(s.tipo,(function(t,e){n(".top-filter a[data-sezione='"+e+"']").addClass("active")})),s.inLista&&n(".top-filter a[data-in-lista-opera='true']").addClass("active"),r(i,s,a)}else r(i,{},a)}})),n(document).on("click",".pagination-calendar",(function(t){t.preventDefault();var o=n(this),r=(e.data("current-month"),o.data("action")),s=n("#"+o.data("target"));AC.setLoading(o,!0);var l=i();n.extend(l,a()),n.getJSON(r,l,(function(t){t.ok&&(e.data("current-month",t.data.month),e.data("current-year",t.data.year),e.data("current-day",t.data.day),s.empty(),n(t.data.html).appendTo(s),n("img.lazy").lazyload({effect:"fadeIn"})),AC.setLoading(o,!1)}))})),n(document).on("click",".top-filter a",(function(t){t.preventDefault();var e=n(this),o=n("#"+e.data("target")),a=e.data("action");0===e.data("sezione")?(n(".top-filter a").removeClass("active"),e.toggleClass("active")):(n(".top-filter a[data-sezione='0']").removeClass("active"),e.toggleClass("active")),r(a,i(),o)})),n(document).on("click",".add-edizione-calendario",(function(t){t.preventDefault();var e=n(this),i=n(this).data("action"),a={};a.cat=n(this).data("cat"),a.id=n(this).data("id"),AC.setLoading(e,!0),n.post(i,a,(function(t){var i=n.parseJSON(t);if(i.ok){console.log(i),n.growl.notice({title:"Operazione eseguita con successo!",message:"<div class='text-center'> <i class='fa fa-smile-o fa-3x' /></div>"});var a=n("#wishlist-action-"+e.data("evento-id"));o.chiudiTooltip(a),a.html("<span class='ac-label ac-label-success'>Inserito nella tua lista </span>")}else alert(i.message);AC.setLoading(e,!1)}))})),n(document).on("click",".btn-add-lista-calendario",(function(t){t.preventDefault(),$btn=n(this),AC.setLoading($btn,!0);try{var e=$btn.data("action"),i={};
1i.opera=$btn.data("opera-id"),i.episodio=$btn.data("episodio-id"),i.segui=!0,n.post(e,i,(function(t){var e=n.parseJSON(t);if(e.ok){n.growl.notice({title:"Aggiunto alla tua lista opera!",message:"<div class='text-center'> <i class='fa  fa-check-square-o fa-3x' /></div>"});e.data;n(".lista-opera-action-"+i.episodio).each((function(){o.collapse(this).toggle()}))}else n.growl.error({title:e.message});AC.setLoading($btn,!1)}))}catch(t){return console.log(t),!1}return!1}))}},"/PGQ":function(t,e,i){(function(e){var n=i("HTCS");t.exports=function(t){try{var i=e(t).attr("href");if(void 0===i)return;e.ajax({url:i,dataType:"html",success:function(t){var i=e("<div id='popup-ee'>").html(t);return n.hideAll(),n.dialog({message:i,title:"Dettaglio",size:"large",className:" modal-ee",backdrop:!0,onEscape:function(){},buttons:{close:{label:"Chiudi",className:"btn-outline-secondary"}}}),!1},error:function(t){return console.log(t.responseText),alert("Si è verificato un errore!"),!1}})}catch(t){console.log(t)}return!1}}).call(this,i("EVdn"))},"1XQt":function(t,e,i){var n=i("EVdn");ACSocial={init:function(){n(document).ready((function(){ACSocial.initAmici()}))},initAmici:i("uf2T"),initCalendario:i("/7od"),initCommenti:i("jhcm"),initMessaggiPrivati:i("E+1r"),initPostBacheca:i("XdPH"),initMicroCommenti:i("kfUY"),loadBlog:function(t){var e=n.extend({target:"#blog-row",template:"#tpl-blog-thumb"},t);n.getJSON(e.url,(function(t){t.ok&&n(e.target).empty()}))},initBlog:function(){n(document).on("change paste",".lnk-img-blog",(function(){var t=this;setTimeout((function(){var e=n(t).val();n("#cover-blog").attr("src",e)}),100)})),n("#btn-new-blog").ajaxCRUDDialog({titolo:"Crea Blog",size:"large",callback:function(t){t.ok&&(window.location.href=t.data.link)}})},doPollNumeroCommenti:function(){var t=n("#commenti-get-new");if(t.length>0){var e=t.data("action-is-new");n.post(e,(function(e){var i=n.parseJSON(e);i.ok?(n(t).text(i.data.messaggi_nuovi+" nuovi"),i.data.messaggi_nuovi>0&&n(t).attr("href",i.data.href)):alert(i.message),setTimeout(AC.Social.doPollNumeroCommenti,6e4)}))}}},t.exports=ACSocial},28:function(t,e,i){i("Ke0w"),i("IhPa"),i("Ojp+"),i("Oub4"),i("UP0u"),i("lMQE"),i("fHhL"),i("TGM/"),t.exports=i("TT7O")},"8c8q":function(t,e,i){(function(e){var n=i("EVdn");function o(t,e){"function"==typeof window.gtag&&window.gtag("event",t,n.extend({event_category:"engagement",event_label:t},e||{}))}function a(t){n(t).find(".ac-engagement-episodio-form").each((function(){var t=n(this);if(!t.data("engagement-init")){t.data("engagement-init",!0);var e=t.data("engagement-auth")||"autenticato";if(t.one("focus","textarea",(function(){o("ac_episodio_commento_focus",{event_label:"episodio:"+e,contesto:"episodio",stato_auth:e})})),"function"==typeof window.IntersectionObserver){var i=new window.IntersectionObserver((function(t){t.forEach((function(t){t.isIntersecting&&(o("ac_episodio_voto_visibile",{event_label:"episodio:"+e,contesto:"episodio",stato_auth:e}),i.disconnect())}))}),{threshold:.1});i.observe(t.get(0))}}}))}n((function(){a(document),document.addEventListener("shown.bs.modal",(function(t){a(t.target)}))}));t.exports=function(t,i,a){var r=n("#commento-text-"+a),s=r.data("url"),l=r.data("user-id"),c={};return c.Testo=r.val(),c.Voto=i,o("ac_episodio_voto_submit",{event_label:"episodio:autenticato",contesto:"episodio",stato_auth:"autenticato"}),n.ajax({type:"POST",url:s,data:c,success:function(t){var i=e.parseJSON(t);o("ac_episodio_voto_esito",{event_label:"episodio:autenticato:"+(i.ok?"ok":"errore"),contesto:"episodio",stato_auth:"autenticato",risultato:i.ok?"ok":"errore"}),i.ok&&(n("#commento-"+l).fadeOut(),n("#commento-form-div-"+a).replaceWith(i.data.template),n("#tot-promosso,#tot-promosso-"+i.data.id).html('<i class="fa fa-thumbs-o-up"></i>&nbsp;'+i.data.promosso),n("#tot-rimandato,#tot-rimandato-"+i.data.id).html('<i class="fa fa-hand-o-right"></i>&nbsp;'+i.data.rimandato),n("#tot-bocciato,#tot-bocciato-"+i.data.id).html('<i class="fa fa-thumbs-o-down"></i>&nbsp;'+i.data.bocciato))},beforeSend:function(){AC.setLoading(t,!0),n("#commento-form-div-"+a).fadeTo("slow",.33)}
1,complete:function(){AC.setLoading(t,!1),n("#commento-form-div-"+a).fadeTo("slow",1)},error:function(e,i,r){o("ac_episodio_voto_esito",{event_label:"episodio:autenticato:errore",contesto:"episodio",stato_auth:"autenticato",risultato:"errore"}),alert("Si è verificato un errore! Riprovare più tardi."),console.log(r),AC.setLoading(t,!1),n("#commento-form-div-"+a).fadeTo("slow",1)}}),!1}}).call(this,i("EVdn"))},BPfZ:function(t,e,i){var n=i("EVdn"),o=i("HTCS"),a=i("DuH2");ACUser={init:function(){var t=this;t.initNotifiche(),n(document).on("submit","#myloginform",(function(e){e.preventDefault(),t.ajaxLogin()})),n(document).on("click",".login_trigger",(function(e){e.preventDefault();var i=n(this).data("url");t.ajaxLoginModal(i)}))},ajaxLogin:function(){var t=n('form[name="login_form"]'),e=t.attr("action"),i=t.serialize();n.ajax({type:"POST",dataType:"json",cache:!1,url:e,data:i,success:function(t){if(t.success){if(o.hideAll(),"undefined"==typeof targ_path)var e=t.return_url;else e=targ_path;n(location).attr("href",e)}else n("#login_error_desc").html('<div class="alert alert-danger alert-dismissible" role="alert"><button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Chiudi"></button><strong>Attenzione!</strong> '+t.message+"</div>"),n("#login_error_desc").show(),n("#login_error_desc").fadeOut(4800)}})},ajaxLoginModal:function(t){var e=this;n.ajax({url:t,type:"POST",dataType:"json",cache:!1,success:function(t){o.hideAll(),o.dialog({message:t,title:"AnimeClick Login",buttons:{danger:{label:"Chiudi",className:"btn-outline-secondary backBtn",callback:function(){return a.nascondiModale(n(".backBtn").parents(".bootbox:first")),!1}},success:{label:"Login",className:"btn-primary loginBtn",callback:function(){return e.ajaxLogin(),!1}}}})}})},initNotifiche:function(){var t=null;n(document).on("click",".notifica-link",(function(e){if(!(e.which&&1!==e.which||e.ctrlKey||e.metaKey||e.shiftKey||e.altKey)){var i=n(this).attr("data-notifica-target");t="string"==typeof i&&/#commento_\d+$/.test(i)?i:null}})),n(window).on("hashchange",(function(){if(null!==t){var e=t.substring(t.indexOf("#"));if(t=null,window.location.hash===e){var i=n(e);0!==i.length?i.addClass("bg-warning"):window.location.reload()}}})),n(".dropdown-notifiche-li").each((function(){this.addEventListener("shown.bs.dropdown",(function(){var t=n(this),e=t.data("letto-action"),i=t.data("tipo"),o={};o.tipo=i,n.getJSON(e,o,(function(e){if(e.ok){t.data("numero-nuove-notifiche",0);var i=t.find(".notification-text");i.text(0),i.closest("a").attr("title","Nessuna notifica da leggere")}}))}))})),function t(){setTimeout((function(){var e=n.Deferred(),i=e.promise();n(".dropdown-notifiche-li").each((function(){var t=n(this),e={},o=t.data("refresh-action");e.tipo=t.data("tipo"),e.numero=0,i=i.then(n.getJSON(o,e,(function(e){if(e.ok){t.find(".loop").remove(),t.find(".dropdown-notifiche").prepend(e.data.html),t.data("numero-nuove-notifiche",e.data.numero);var i=t.find(".notification-text");i.text(e.data.numero);var n=i.closest("a");n.attr("title","Ci sono "+e.data.numero+" notifiche da leggere."),n.addClass("new"),n.find("i").addClass("animated")}else(n=t.find(".notification-text").closest("a")).removeClass("new"),n.find("i").removeClass("animated")})))})),i=i.then((function(){t()})),e.resolve()}),6e4)}()}},t.exports=ACUser,n(document).ready((function(){}))},BbjU:function(t,e,i){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o="Verdana, Geneva, sans-serif",a=["#398439","#d99b00","#c9302c","#337ab7","#7a4e9d","#8b4513"],r=["#66bb6a","#ffb74d","#ef6c6c","#64b5f6","#9575cd","#4dd0e1","#f06292","#aed581","#ffd54f","#4db6ac","#7986cb","#ff8a65","#90a4ae","#ba68c8","#81d4fa","#dce775","#a1887f","#ffcc80"],s=["#5bb85c","#f0ad4e","#d9534f","#d63384","#8b4513"];function l(t,e){var i=Number(t);return Number.isFinite(i)?i:void 0===e?0:e}function c(t){return Math.max(0,l(t,0))}function u(t){return null==t?"":String(t)}
1function h(t){return l(t,0).toLocaleString("it-IT",{maximumFractionDigits:2})}function d(t){return{animation:!1,color:(t=t||{}).colors||a,textStyle:{fontFamily:o,color:"#333"},title:{text:u(t.title),subtext:u(t.subtitle),left:"center",top:8,textStyle:{fontFamily:o,fontSize:17,fontWeight:600},subtextStyle:{fontFamily:o,fontSize:12,color:"#666"}},aria:{enabled:!0,label:{enabled:!0,description:u(t.description||t.title)}}}}function f(t,e){if(e=e||{},!Array.isArray(t))throw new TypeError("Le serie del grafico devono essere un array.");return t.map((function(t,i){var o={name:u((t=t||{}).name||"Serie "+(i+1)),type:e.type||"line",data:Array.isArray(t.data)?t.data.map((function(t){return Array.isArray(t)?[u(t[0]),l(t[1],0)]:t&&"object"===n(t)&&Object.prototype.hasOwnProperty.call(t,"value")?Object.assign({},t,{value:l(t.value,0)}):l(t,0)})):[],emphasis:{focus:"series"}};return e.area&&(o.areaStyle={opacity:.28}),e.stack&&(o.stack=e.stack),(t.dashStyle||t.lineStyle&&"dashed"===t.lineStyle.type)&&(o.lineStyle={type:"dashed",width:2}),o.symbol=["circle","rect","triangle","diamond","pin"][i%5],o.symbolSize=6,o}))}function p(t){if(!Array.isArray(t))throw new TypeError("I dati del grafico devono essere un array.");return t.map((function(t){if(Array.isArray(t))return{name:u(t[0]),value:c(t[1])};if(t&&"object"===n(t))return{name:u(t.name),value:c(t.value)};throw new TypeError("Ogni dato del grafico deve contenere nome e valore.")}))}function m(t,e,i){var n=t.reduce((function(t,e){return t+e.value}),0),o=t.map((function(t,e){return{index:e,value:t.value}})).filter((function(t){return n>0&&t.value/n*100>=e})).sort((function(t,e){return e.value-t.value})).slice(0,i).map((function(t){return t.index}));return t.map((function(t,e){var i=-1!==o.indexOf(e);return Object.assign({},t,{label:{show:i},labelLine:{show:i}})}))}function _(t){return t<11?"#4d004d":t<60?"#c9302c":t<75?"#d99b00":t<100?"#009900":"#004d00"}t.exports={PALETTE:a,bar:function(t){t=t||{};var e=(Array.isArray(t.series)?t.series:[])[0]||{name:"Valori",data:[]},i=Array.isArray(e.data)?e.data:[],n=i.map((function(t,e){return Array.isArray(t)?u(t[0]):u(e+1)})),o=i.map((function(t){return c(Array.isArray(t)?t[1]:t)})),a=d(t);return a.tooltip={trigger:"axis",confine:!0,valueFormatter:h},a.grid={left:55,right:22,top:t.subtitle?88:68,bottom:55,containLabel:!0},a.xAxis={type:"category",data:n,axisLabel:{hideOverlap:!0}},a.yAxis={type:"value",min:0,name:u(t.yTitle)},a.series=[{name:u(e.name||"Valori"),type:"bar",data:o,itemStyle:{borderRadius:[3,3,0,0]},emphasis:{focus:"series"}}],a.media=[{query:{maxWidth:575},option:{grid:{left:42,right:12,top:t.subtitle?88:68,bottom:72,containLabel:!0},xAxis:{axisLabel:{rotate:45,hideOverlap:!0}}}}],a},finiteNumber:l,gauge:function(t){t=t||{};var e=Math.min(100,Math.max(0,l(t.value,0))),i=_(e),n=d({description:t.description||"Voto redazionale: "+h(e)+" su 100"});return n.title={show:!1},n.series=[{name:"Voto",type:"gauge",min:0,max:100,startAngle:90,endAngle:-270,radius:"83%",pointer:{show:!1},progress:{show:!0,overlap:!1,roundCap:!0,width:24,itemStyle:{color:i}},axisLine:{roundCap:!0,lineStyle:{width:24,color:[[1,i+"4d"]]}},axisTick:{show:!1},splitLine:{show:!1},axisLabel:{show:!1},anchor:{show:!1},title:{show:!1},detail:{valueAnimation:!1,offsetCenter:[0,0],color:i,fontFamily:o,fontSize:56,fontWeight:700,formatter:function(t){return h(t)}},data:[{value:e,name:"Voto"}]}],n},gaugeColor:_,hasValues:function(t){return Array.isArray(t)&&t.some((function(t){return c(Array.isArray(t)?t[1]:t&&"object"===n(t)?t.value:t)>0}))},line:function(t){var e=d(t=t||{}),i=Array.isArray(t.categories)?t.categories.map(u):[];return e.tooltip={trigger:"axis",confine:!0,valueFormatter:h},e.legend={type:"scroll",orient:"vertical",right:8,top:70,bottom:35},e.grid={left:55,right:150,top:t.subtitle?82:65,bottom:52,containLabel:!0},e.xAxis={type:"category",boundaryGap:!1,data:i,axisLabel:{hideOverlap:!0}},e.yAxis={type:"value",min:void 0===t.yMin?null:l(t.yMin,0),name:u(t.yTitle),nameLocation:"middle",nameGap:t.yTitle?42:0},e.series=f(t.series||[],{type:"line",area:Boolean(t.area),stack:t.stack||null}),e.media=[{query:{maxWidth:575},option:{legend:{orient:"horizontal",left:8,right:8,top:"auto",bottom:0},grid:{left:42,right:16,top:t.subtitle?88:70,bottom:82,containLabel:!0},xAxis:{axisLabel:{rotate:i.length>8?45:0,hideOverlap:!0}}}}],e},nonNegativeNumber:c,normalisePieData:p,normaliseSeries:f,pie:function(t){t=t||{};var e=d(Object.assign({},t,{colors:t.colors||r})),i=p(t.data||[]),n=m(i,5,10),o=m(i,8,6);return e.tooltip={trigger:"item",confine:!0,formatter:"{b}: {c} ({d}%)"},e.legend={type:"scroll",left:12,right:12,bottom:6}
1,e.series=[{name:u(t.seriesName||"Totale"),type:"pie",radius:"58%",center:["50%","51%"],avoidLabelOverlap:!0,minShowLabelAngle:1,label:{show:!0,formatter:"{b}",lineHeight:14},labelLine:{show:!0,length:12,length2:8},data:n,emphasis:{focus:"self",scale:!0}}],e.media=[{query:{maxWidth:575},option:{series:[{radius:"47%",center:["50%","48%"],label:{show:!0,fontSize:10,lineHeight:12},labelLine:{show:!0,length:8,length2:5},data:o}],legend:{left:4,right:4,bottom:0}}}],e},semicircle:function(t){var e=d({title:(t=t||{}).title||"Valutazioni",description:t.description||"Distribuzione delle valutazioni",colors:s}),i=p(t.data||[]);return e.aria.decal={show:!1},e.tooltip={trigger:"item",confine:!0,formatter:"{b}: {c} ({d}%)"},e.legend={type:"scroll",left:4,right:4,bottom:0},e.series=[{name:"Totale valutazioni",type:"pie",startAngle:180,endAngle:360,radius:["45%","76%"],center:["50%","68%"],label:{show:!1},data:i,emphasis:{focus:"self",scale:!0}}],e}}},DuH2:function(t,e){function i(t){return t?1===t.nodeType?t:"string"==typeof t?document.querySelector(t):t[0]||null:null}t.exports={elemento:i,ns:function(){return window.bootstrap},collapse:function(t){var e=i(t);return e?window.bootstrap.Collapse.getOrCreateInstance(e,{toggle:!1}):null},nascondiModale:function(t){var e=i(t),n=e?window.bootstrap.Modal.getInstance(e):null;n&&n.hide()},chiudiTooltip:function(t){var e=i(t);e&&e.querySelectorAll('[data-bs-toggle="tooltip"], [data-bs-original-title]').forEach((function(t){var e=window.bootstrap.Tooltip.getInstance(t);e&&e.dispose()}))}}},"E+1r":function(t,e,i){var n=i("EVdn");t.exports=function(){function t(t){var i=n("#btn-refresh-conversazione > i");i.addClass("fa-spin"),n.getJSON(t,(function(t){t.ok&&(n("#conversazione-body-core #append-div").html(t.data.html),e())})).always((function(){i.removeClass("fa-spin"),bindDeleteMessage()}))}function e(){var t=n("#conversazione-body-core.scroll");n(".conversazione-txt-div");t.length>0&&t.height((function(t,e){var i=window.innerHeight-n(this).offset().top;return i<=300&&(i=window.innerHeight),i})).scrollTop(t[0].scrollHeight)}n(".resizable-textarea").autoHeight(),n(document).on("click","#carica-vecchi-messaggi",(function(t){t.preventDefault();var e=n(this),i=e.data("page"),o=e.attr("href"),a=e.data("totale"),r={};r.page=i+1,console.log(r.page+" - "+a),r.page<=a?(AC.setLoading(e,!0),n.getJSON(o,r,(function(t){t.ok&&(n("#append-div .conversazione-messaggio-div:first").before(t.data.html),e.data("page",r.page),e.data("totale",t.data.totalePagineMessaggi))})).always((function(t){AC.setLoading(e,!1),bindDeleteMessage()}))):e.text("Non ci sono altri messaggi.")}));var i=n(window).width(),o=n(window).height();e(),n(window).resize((function(){n(window).width()!=i&&n(window).height()!=o&&e()})),n(".invia-messaggio").ajaxCRUDDialog({titolo:"Invia un messaggio",callback:function(t){t.ok?n.growl.notice({title:"I'll send an SOS to the world",message:"<div class='text-center'> <i class='fa fa-paper-plane-o fa-3x' /></div>"}):n.growl.error({title:t.message,message:""})}});n(document).on("click","#show-msg-privati",(function(t){t.preventDefault(),n("#conversazione-main-div").addClass("d-none d-lg-block"),n("#elenco-messaggi-div").removeClass("d-none d-lg-block")})),n(document).on("click",".apri-conversazione",(function(t){t.preventDefault();var i=n(this);n(".apri-conversazione.active").removeClass("active"),i.addClass("active");var o=n(this).attr("href");n("#conversazione-main-div").removeClass("d-none d-lg-block"),n("#elenco-messaggi-div").addClass("d-none d-lg-block"),n("#conversazione-div").html("<i class='fa fa-refresh fa-spin fa-3x conversazione-load-icon'></i>"),n.getJSON(o,(function(t){t.ok?(window.history.pushState("","",o),n("#conversazione-div").html(t.data),i.find(".nuovo-messaggio").removeClass("nuovo-messaggio"),e(),n(".resizable-textarea").autoHeight(),n(window).scrollTop(n(".conversazione-txt-div")[0].scrollHeight+20)):alert(t.message)})).always((function(){bindDeleteMessage()}))})),n(document).on("submit","#invia-messaggio-form",(function(e){var i=n(this),o=i.attr("action"),a=i.serialize(),r=i.find(":submit");
1AC.setLoading(r,!0),n.post(o,a,(function(e){var o=n.parseJSON(e);o.ok?(i[0].reset(),t(n("#btn-refresh-conversazione").attr("href"))):n.growl.error({title:o.message,message:""})})).always((function(){AC.setLoading(r,!1)})),e.preventDefault()})),n(document).on("click","#btn-refresh-conversazione",(function(e){e.preventDefault(),t(n(this).attr("href"))})),n(document).on("click","#btn-delete-conversazione",(function(t){t.preventDefault();var e=n(this).attr("href");n.getJSON(e,(function(t){t.ok?(n.growl.notice({title:"Conversazione eliminata con successo!",message:"<div class='text-center'> <i class='fa fa-trash-o fa-3x' /></div>"}),n("#conversazione-div").html(""),n("#conversazione-menu-"+t.data.id).fadeOut(300,(function(){n(this).remove();var t=n("#tot-conversazionie"),e=t.data("tot");e-=1,t.text(e),t.data("tot",e)}))):alert(t.message)}))}))}},HIFC:function(t,e,i){var n=i("EVdn"),o=function(t,e){var i;return function(){var n=this,o=arguments;clearTimeout(i),i=setTimeout((function(){return t.apply(n,o)}),e)}};ACFrontend={init:function(){this.initGlobalSearch(),this.tornaSU(),this.HomeAnalytics.init()},initGlobalSearch:function(){var t=this,e=n("#searchBar"),i=n("#topSearchResultList"),a=function(t){var o=n(t.target);o.closest(i).length||o.is(i)||o.closest(e).length||o.is(e)||n(i).is(":visible")&&(n(i).fadeOut(),n(document).off("click",a))};function r(){var o=e.attr("action");e.find("#globalSearch").val().length<3||n.getJSON(o,e.serialize(),(function(e){var o=t.formatResult(e);i.html(o).show(0,(function(){n(document).on("click",a)}))}))}e.on("focus","#globalSearch:visible",(function(t){i.children().length>0&&i.show()})).on("input paste","#globalSearch:visible",o((function(t){r()}),500));var s=o((function(){r()}),500);this.SearchScope.init((function(t){e.length>0&&n.contains(e[0],t)&&e.find("#globalSearch").is(":visible")&&s()})),i.on("mouseenter",".list",(function(){n(".off",this).removeClass("off").addClass("on")})).on("mouseleave",".list",(function(){n(".on",this).removeClass("on").addClass("off")})),n("div.list").hover((function(){n(".Off",this).addClass("On")}),(function(){n(".On",this).removeClass("On")}))},tornaSU:function(){n(window).scroll((function(){n(this).scrollTop()>100?n(".scrollup").fadeIn():n(".scrollup").fadeOut()})),n(".scrollup").click((function(){return n("html, body").animate({scrollTop:0},600),!1}))},formatResult:function(t){var e=this;if(void 0===t||void 0===t.categories||0==t.categories.length)return"<div><p>Nessun risutato trovato.</p></div>";var i="";return n.each(t.categories,(function(t,o){i+='<div class="list separator"><div class="separator"><span>'+o.type+"</span></div></div>",n.each(o.items,(function(t,n){i+='<div class="list '+n.type+'"><a class="clearfix" href="'+n.url+'"><div class="off"><span class="image" style="background-image: url(&quot;'+n.image_url+'&quot;);"></span> <div class="info '+n.type+'">  <div class="name">'+n.name+'</div> <div class="media-type">'+e.formatPayload(n.payload)+"</div></div></div></a></div>"}))})),i},formatPayload:function(t){if(void 0===t)return"";var e="(";return n.each(t,(function(t,i){e+=i+", "})),(e=e.slice(0,-2))+")"},HomeAnalytics:i("Ile8"),SearchScope:i("XK32")},t.exports=ACFrontend},HTCS:function(t,e,i){var n,o,a;function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}
2/*! @preserve
3 * bootbox.js
4 * version: 6.0.4
5 * author: Nick Payne <[email protected]>
6 * license: MIT
7 * http://bootboxjs.com/
8 */!function(s,l){"use strict";o=[i("EVdn")],void 0===(a="function"==typeof(n=function t(e,i){var n={};function o(){return window.bootstrap===i?i:window.bootstrap.Modal}n.VERSION="6.0.4";var a={en:{OK:"OK",CANCEL:"Cancel",CONFIRM:"OK"}},s={dialog:'<div class="bootbox modal" tabindex="-1" role="dialog" aria-hidden="true"><div class="modal-dialog"><div class="modal-content"><div class="modal-body"><div class="bootbox-body"></div></div></div></div></div>',header:'<div class="modal-header"><h5 class="modal-title"></h5></div>
8',footer:'<div class="modal-footer"></div>',closeButton:'<button type="button" class="bootbox-close-button close btn-close" aria-hidden="true" aria-label="Close"></button>',form:'<form class="bootbox-form"></form>',button:'<button type="button" class="btn"></button>',option:'<option value=""></option>',promptMessage:'<div class="bootbox-prompt-message"></div>',inputs:{text:'<input class="bootbox-input bootbox-input-text form-control" autocomplete="off" type="text" />',textarea:'<textarea class="bootbox-input bootbox-input-textarea form-control"></textarea>',email:'<input class="bootbox-input bootbox-input-email form-control" autocomplete="off" type="email" />',select:'<select class="bootbox-input bootbox-input-select form-select"></select>',checkbox:'<div class="form-check checkbox"><label class="form-check-label"><input class="form-check-input bootbox-input bootbox-input-checkbox" type="checkbox" /></label></div>',radio:'<div class="form-check radio"><label class="form-check-label"><input class="form-check-input bootbox-input bootbox-input-radio" type="radio" name="bootbox-radio" /></label></div>',date:'<input class="bootbox-input bootbox-input-date form-control" autocomplete="off" type="date" />',time:'<input class="bootbox-input bootbox-input-time form-control" autocomplete="off" type="time" />',number:'<input class="bootbox-input bootbox-input-number form-control" autocomplete="off" type="number" />',password:'<input class="bootbox-input bootbox-input-password form-control" autocomplete="off" type="password" />',range:'<input class="bootbox-input bootbox-input-range form-control-range" autocomplete="off" type="range" />'}},l={locale:"en",backdrop:"static",animate:!0,className:null,closeButton:!0,show:!0,container:"body",value:"",inputType:"text",errorMessage:null,swapButtonOrder:!1,centerVertical:!1,multiple:!1,scrollable:!1,reusable:!1,relatedTarget:null,size:null,id:null};function c(t,i,n){return e.extend(!0,{},t,function(t,e){var i=t.length,n={};if(i<1||i>2)throw new Error("Invalid argument length");return 2===i||"string"==typeof t[0]?(n[e[0]]=t[0],n[e[1]]=t[1]):n=t[0],n}(i,n))}function u(t,e,n,o){var a;o&&o[0]&&(a=o[0].locale||l.locale,(o[0].swapButtonOrder||l.swapButtonOrder)&&(e=e.reverse()));var r,s,u,d={className:"bootbox-"+t,buttons:h(e,a)};return r=c(d,o,n),u={},p(s=e,(function(t,e){u[e]=!0})),p(r.buttons,(function(t){if(u[t]===i)throw new Error('button key "'+t+'" is not allowed (options are '+s.join(" ")+")")})),r}function h(t,e){for(var i={},n=0,o=t.length;n<o;n++){var a=t[n],r=a.toLowerCase(),s=a.toUpperCase();i[r]={label:d(s,e)}}return i}function d(t,e){var i=a[e];return i?i[t]:a.en[t]}function f(t){return Object.keys(t).length}function p(t,i){var n=0;e.each(t,(function(t,e){i(t,e,n++)}))}function m(t,e,i){if(t.stopPropagation(),t.preventDefault(),!("function"==typeof i&&!1===i.call(e,t))){var n=o().getInstance(e[0]);n&&n.hide()}}function _(t,e,n){var o=!1,a=!0,r=!0;if("date"===t)e===i||(a=g(e))?n===i||(r=g(n))||console.warn('Browsers which natively support the "date" input type expect date values to be of the form "YYYY-MM-DD" (see ISO-8601 https://www.iso.org/iso-8601-date-and-time-format.html). Bootbox does not enforce this rule, but your max value may not be enforced by this browser.'):console.warn('Browsers which natively support the "date" input type expect date values to be of the form "YYYY-MM-DD" (see ISO-8601 https://www.iso.org/iso-8601-date-and-time-format.html). Bootbox does not enforce this rule, but your min value may not be enforced by this browser.');else if("time"===t){if(e!==i&&!(a=v(e)))throw new Error('"min" is not a valid time. See https://www.w3.org/TR/2012/WD-html-markup-20120315/datatypes.html#form.data.time for more information.');if(n!==i&&!(r=v(n)))throw new Error('"max" is not a valid time. See https://www.w3.org/TR/2012/WD-html-markup-20120315/datatypes.html#form.data.time for more information.')}else{if(e!==i&&isNaN(e))throw a=!1,new Error('"min" must be a valid number. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-min for more information.');if(n!==i&&isNaN(n))throw r=!1,new Error('"max" must be a valid number. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-max for more information.')}if(a&&r){if(n<e)throw new Error('"max" must be greater than or equal to "min". See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-max for more information.');o=!0}return o}function v(t){return/([01][0-9]|2[0-3]):[0-5][0-9]?:[0-5][0-9]/.test(t)}function g(t){return/(\d{4})-(\d{2})-(\d{2})/.test(t)}return n.locales=function(t){return t?a[t]:a}
8,n.addLocale=function(t,i){return e.each(["OK","CANCEL","CONFIRM"],(function(t,e){if(!i[e])throw new Error('Please supply a translation for "'+e+'"')})),a[t]={OK:i.OK,CANCEL:i.CANCEL,CONFIRM:i.CONFIRM},n},n.removeLocale=function(t){if("en"===t)throw new Error('"en" is used as the default and fallback locale and cannot be removed.');return delete a[t],n},n.setLocale=function(t){return n.setDefaults("locale",t)},n.setDefaults=function(){var t={};return 2===arguments.length?t[arguments[0]]=arguments[1]:t=arguments[0],e.extend(l,t),n},n.hideAll=function(){return Array.prototype.forEach.call(document.querySelectorAll(".bootbox"),(function(t){var e=o().getInstance(t);if(e){var i=!1,n=function(){i=!0};t.addEventListener("hide.bs.modal",n,{once:!0}),e.hide(),t.removeEventListener("hide.bs.modal",n),i||t.addEventListener("shown.bs.modal",(function(){var e=o().getInstance(t);e&&e.hide()}),{once:!0})}})),n},n.init=function(i){return t(i||e)},n.dialog=function(t){if(o()===i)throw new Error('"bootstrap.Modal" non e\' definito: controlla di aver incluso il JavaScript di Bootstrap 5. Vedi https://getbootstrap.com/docs/5.3/getting-started/introduction/');if(t=function(t){var i,n;if("object"!==r(t))throw new Error("Please supply an object of options");if(!t.message)throw new Error('"message" option must not be null or an empty string.');(t=e.extend({},l,t)).backdrop?t.backdrop="string"!=typeof t.backdrop||"static"!==t.backdrop.toLowerCase()||"static":t.backdrop=!1!==t.backdrop&&0!==t.backdrop&&"static";t.buttons||(t.buttons={});return i=t.buttons,n=f(i),p(i,(function(e,o,a){if("function"==typeof o&&(o=i[e]={callback:o}),"object"!==r(o))throw new Error('button with key "'+e+'" must be an object');if(o.label||(o.label=e),!o.className){var s=!1;s=t.swapButtonOrder?0===a:a===n-1,o.className=n<=2&&s?"btn-primary":"btn-secondary btn-default"}})),t}(t),o().VERSION){t.fullBootstrapVersion=o().VERSION;var n=t.fullBootstrapVersion.indexOf(".");t.bootstrap=t.fullBootstrapVersion.substring(0,n)}else t.bootstrap="2",t.fullBootstrapVersion="2.3.2",console.warn("Bootbox will *mostly* work with Bootstrap 2, but we do not officially support it. Please upgrade, if possible.");var a=e(s.dialog),c=a.find(".modal-dialog"),u=a.find(".modal-body"),h=e(s.header),d=e(s.footer),_=t.buttons,v={onEscape:t.onEscape};if(u.find(".bootbox-body").html(t.message),f(t.buttons)>0&&(p(_,(function(t,i){var n=e(s.button);switch(n.data("bb-handler",t),n.addClass(i.className),t){case"ok":case"confirm":n.addClass("bootbox-accept");break;case"cancel":n.addClass("bootbox-cancel")}n.html(i.label),i.id&&n.attr({id:i.id}),!0===i.disabled&&n.prop({disabled:!0}),d.append(n),v[t]=i.callback})),u.after(d)),!0===t.animate&&a.addClass("fade"),t.className&&a.addClass(t.className),t.id&&a.attr({id:t.id}),t.size)switch(t.fullBootstrapVersion.substring(0,3)<"3.1"&&console.warn('"size" requires Bootstrap 3.1.0 or higher. You appear to be using '+t.fullBootstrapVersion+". Please upgrade to use this option."),t.size){case"small":case"sm":c.addClass("modal-sm");break;case"large":case"lg":c.addClass("modal-lg");break;case"extra-large":case"xl":c.addClass("modal-xl"),t.fullBootstrapVersion.substring(0,3)<"4.2"&&console.warn('Using size "xl"/"extra-large" requires Bootstrap 4.2.0 or higher. You appear to be using '+t.fullBootstrapVersion+". Please upgrade to use this option.")}if(t.scrollable&&(c.addClass("modal-dialog-scrollable"),t.fullBootstrapVersion.substring(0,3)<"4.3"&&console.warn('Using "scrollable" requires Bootstrap 4.3.0 or higher. You appear to be using '+t.fullBootstrapVersion+". Please upgrade to use this option.")),t.title||t.closeButton){if(t.title?h.find(".modal-title").html(t.title):h.addClass("border-0"),t.closeButton){var g=e(s.closeButton);t.bootstrap<5&&g.html("&times;"),t.bootstrap<4?h.prepend(g):h.append(g)}u.before(h)}if(t.centerVertical&&(c.addClass("modal-dialog-centered"),t.fullBootstrapVersion<"4.0.0"&&console.warn('"centerVertical" requires Bootstrap 4.0.0-beta.3 or higher. You appear to be using '+t.fullBootstrapVersion+". Please upgrade to use this option.")),t.reusable||(a[0].addEventListener("hide.bs.modal",(function(t){!function(t,e){t.target===e[0]&&(e.off("escape.close.bb"),e.off("click"))}(t,a)}),{once:!0}),a[0].addEventListener("hidden.bs.modal",(function(t){!function(t,e){t.target===e[0]&&e.remove()}(t,a)}),{once:!0})),t.onHide){if("function"!=typeof t.onHide)throw new Error('Argument supplied to "onHide" must be a function');a[0].addEventListener("hide.bs.modal",t.onHide)}
8if(t.onHidden){if("function"!=typeof t.onHidden)throw new Error('Argument supplied to "onHidden" must be a function');a[0].addEventListener("hidden.bs.modal",t.onHidden)}if(t.onShow){if("function"!=typeof t.onShow)throw new Error('Argument supplied to "onShow" must be a function');a[0].addEventListener("show.bs.modal",t.onShow)}if(a[0].bootboxFocusPrimary=function(){!function(t){t.find(".bootbox-accept").first().trigger("focus")}(a)},a[0].addEventListener("shown.bs.modal",a[0].bootboxFocusPrimary,{once:!0}),t.onShown){if("function"!=typeof t.onShown)throw new Error('Argument supplied to "onShown" must be a function');a[0].addEventListener("shown.bs.modal",t.onShown)}if(!0===t.backdrop){var y=!1;a.on("mousedown",".modal-content",(function(t){t.stopPropagation(),y=!0})),a.on("click.dismiss.bs.modal",(function(t){y||t.target!==t.currentTarget||a.trigger("escape.close.bb")}))}return a.on("escape.close.bb",(function(t){v.onEscape&&m(t,a,v.onEscape)})),a.on("click",".modal-footer button:not(.disabled)",(function(t){var n=e(this).data("bb-handler");n!==i&&m(t,a,v[n])})),a.on("click",".bootbox-close-button",(function(t){m(t,a,v.onEscape)})),a.on("keyup",(function(t){27===t.which&&a.trigger("escape.close.bb")})),e(t.container).append(a),o().getOrCreateInstance(a[0],{backdrop:t.backdrop,keyboard:!1,focus:!1}),t.show&&o().getOrCreateInstance(a[0]).show(t.relatedTarget),a},n.alert=function(){var t;if((t=u("alert",["ok"],["message","callback"],arguments)).callback&&"function"!=typeof t.callback)throw new Error('alert requires the "callback" property to be a function when provided');return t.buttons.ok.callback=t.onEscape=function(){return"function"!=typeof t.callback||t.callback.call(this)},n.dialog(t)},n.confirm=function(){var t;if("function"!=typeof(t=u("confirm",["cancel","confirm"],["message","callback"],arguments)).callback)throw new Error("confirm requires a callback");return t.buttons.cancel.callback=t.onEscape=function(){return t.callback.call(this,!1)},t.buttons.confirm.callback=function(){return t.callback.call(this,!0)},n.dialog(t)},n.prompt=function(){var t,a,r,c,h,d;if(r=e(s.form),(t=u("prompt",["cancel","confirm"],["title","callback"],arguments)).value||(t.value=l.value),t.inputType||(t.inputType=l.inputType),h=t.show===i?l.show:t.show,t.show=!1,t.buttons.cancel.callback=t.onEscape=function(){return t.callback.call(this,null)},t.buttons.confirm.callback=function(){var i;if("checkbox"===t.inputType){if(0===(i=c.find("input:checked").map((function(){return e(this).val()})).get()).length&&!0===t.required)return!1}else if("radio"===t.inputType)i=c.find("input:checked").val();else{var n=c[0];if(n.checkValidity&&!n.checkValidity())return t.errorMessage&&n.setCustomValidity(t.errorMessage),n.reportValidity&&n.reportValidity(),!1;i="select"===t.inputType&&!0===t.multiple?c.find("option:selected").map((function(){return e(this).val()})).get():c.val()}return t.callback.call(this,i)},!t.title)throw new Error("prompt requires a title");if("function"!=typeof t.callback)throw new Error("prompt requires a callback");if(!s.inputs[t.inputType])throw new Error("Invalid prompt type");switch(c=e(s.inputs[t.inputType]),t.inputType){case"text":case"textarea":case"email":case"password":c.val(t.value),t.placeholder&&c.attr("placeholder",t.placeholder),t.pattern&&c.attr("pattern",t.pattern),t.maxlength&&c.attr("maxlength",t.maxlength),t.required&&c.prop({required:!0}),t.rows&&!isNaN(parseInt(t.rows))&&"textarea"===t.inputType&&c.attr({rows:t.rows});break;case"date":case"time":case"number":case"range":if(c.val(t.value),t.placeholder&&c.attr("placeholder",t.placeholder),t.pattern?c.attr("pattern",t.pattern):"date"===t.inputType?c.attr("pattern","d{4}-d{2}-d{2}"):"time"===t.inputType&&c.attr("pattern","d{2}:d{2}"),t.required&&c.prop({required:!0}),t.step){if(!("any"===t.step||!isNaN(t.step)&&parseFloat(t.step)>0))throw new Error('"step" must be a valid positive number or the value "any". See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-step for more information.');c.attr("step",t.step)}_(t.inputType,t.min,t.max)&&(t.min!==i&&c.attr("min",t.min),t.max!==i&&c.attr("max",t.max));break;case"select":var f={};
8if(d=t.inputOptions||[],!Array.isArray(d))throw new Error("Please pass an array of input options");if(!d.length)throw new Error('prompt with "inputType" set to "select" requires at least one option');t.required&&c.prop({required:!0}),t.multiple&&c.prop({multiple:!0}),p(d,(function(t,n){var o=c;if(n.value===i||n.text===i)throw new Error('each option needs a "value" property and a "text" property');n.group&&(f[n.group]||(f[n.group]=e("<optgroup />").attr("label",n.group)),o=f[n.group]);var a=e(s.option);a.attr("value",n.value).text(n.text),o.append(a)})),p(f,(function(t,e){c.append(e)})),c.val(t.value),t.bootstrap<5&&c.removeClass("form-select").addClass("form-control");break;case"checkbox":var m=Array.isArray(t.value)?t.value:[t.value];if(!(d=t.inputOptions||[]).length)throw new Error('prompt with "inputType" set to "checkbox" requires at least one option');c=e('<div class="bootbox-checkbox-list"></div>'),p(d,(function(n,o){if(o.value===i||o.text===i)throw new Error('each option needs a "value" property and a "text" property');var a=e(s.inputs[t.inputType]);a.find("input").attr("value",o.value),a.find("label").append("\n"+o.text),p(m,(function(t,e){e===o.value&&a.find("input").prop("checked",!0)})),c.append(a)}));break;case"radio":if(t.value!==i&&Array.isArray(t.value))throw new Error('prompt with "inputType" set to "radio" requires a single, non-array value for "value"');if(!(d=t.inputOptions||[]).length)throw new Error('prompt with "inputType" set to "radio" requires at least one option');c=e('<div class="bootbox-radiobutton-list"></div>');var v=!0;p(d,(function(n,o){if(o.value===i||o.text===i)throw new Error('each option needs a "value" property and a "text" property');var a=e(s.inputs[t.inputType]);a.find("input").attr("value",o.value),a.find("label").append("\n"+o.text),t.value!==i&&o.value===t.value&&(a.find("input").prop("checked",!0),v=!1),c.append(a)})),v&&c.find('input[type="radio"]').first().prop("checked",!0)}if(r.append(c),r.on("submit",(function(t){t.preventDefault(),t.stopPropagation(),a.find(".bootbox-accept").trigger("click")})),t.message&&""!==t.message.trim()){var g=e(s.promptMessage).html(t.message);r.prepend(g),t.message=r}else t.message=r;return(a=n.dialog(t))[0].removeEventListener("shown.bs.modal",a[0].bootboxFocusPrimary),a[0].addEventListener("shown.bs.modal",(function(){c.focus()})),!0===h&&o().getOrCreateInstance(a[0]).show(),a},n})?n.apply(e,o):n)||(t.exports=a)}()},IETS:function(t,e,i){var n=i("EVdn"),o=i("DuH2"),a=i("R+s1").default;ACNews={init:function(){this.Auction.init();var t,e=document.getElementById("vetrina-carousel");e&&o.ns().Carousel.getOrCreateInstance(e,{interval:5e3}),n(".carousel-indicators li").mouseenter((function(){var i=n(this).data("bs-slide-to"),a=n(this).attr("data-home-item-position");t=setTimeout((function(){var t=n("#vetrina-carousel");a&&t.trigger("ac:home-carousel-manual-request",[a]),e&&void 0!==i&&o.ns().Carousel.getOrCreateInstance(e).to(i)}),500)})).mouseleave((function(){clearTimeout(t)})),n("#news-filter-div a").click((function(t){t.preventDefault();var e=n(this),i=e.data("url");0===e.data("sezione")?(n("#news-filter-div a").removeClass("active"),e.toggleClass("active")):(n("#news-filter-div a[data-sezione='0']").removeClass("active"),e.toggleClass("active"));var o,a=[];n("#news-filter-div a.sezione-filter.active").each((function(t,e){var i=n(e).data("sezione");void 0!==i&&a.push(i)})),n("#news-filter-div a.ordinamento.active").each((function(t,e){var i=n(e).data("value");void 0!==i&&(o=i)}));var r={idSezione:a,ordine:o},s=a.length>0&&-1===n.inArray(0,a),l="hot"===o,c="default";s&&l?c="news_filtered_hot":s?c="news_filtered":l&&(c="news_hot"),n.getJSON(i,r,(function(t){if(t.ok){var e=n("#news-row");e.empty(),n(t.data.html).hide().appendTo(e).fadeIn(),n(document).trigger("ac:home-news-filter-success",[{variant:c}])}}))}))},Auction:i("VEYf"),initVotoPregiDifetti:function(t){var e=document.getElementById("voto-news-chart");if(!e)return Promise.resolve(null);var i=Number(e.getAttribute("data-voto")),n=Number.isFinite(i)?i:Number(t);return Number.isFinite(n)?(n=Math.min(100,Math.max(0,n)),a.renderGauge(e,{value:n,description:"Voto redazionale: "+n.toLocaleStr
8ing("it-IT")+" su 100"})):(a.showError(e),Promise.resolve(null))}},t.exports=ACNews},IhPa:function(t,e){AC.Common.init(),AC.VerificaUmana.inizializza(),AC.Social.init(),AC.News.init(),AC.Frontend.init(),AC.User.init(),AC.Opera.init()},Ile8:function(t,e,i){var n=i("EVdn"),o={hero_news:!0,latest_news:!0,editorial_highlights:!0,random_works:!0,rubriche:!0,calendar:!0,streaming:!0,youtube:!0,ranking:!0,blog_pinned:!0,blog_hot:!0,blog_latest:!0,community_feed:!0},a={internal_click:!0,external_click:!0,filter:!0,pagination:!0,carousel_manual:!0,play:!0,other:!0},r={news:!0,opera:!0,blog:!0,user:!0,episode:!0,provider:!0,channel:!0,archive:!0,other:!0},s={default:!0,news_filtered:!0,news_hot:!0,news_filtered_hot:!0,social_authenticated:!0,social_anonymous:!0},l={na:!0,hero_1:!0,hero_2:!0,hero_3:!0,hero_4:!0,hero_5:!0,hero_6:!0,hero_7:!0,hero_8:!0,news_1_3:!0,news_4_6:!0,news_7_9:!0,news_10_12:!0,news_13_15:!0,news_16_18:!0,video_1:!0,video_2:!0,video_3:!0};function c(t,e,i){return e&&t[e]?e:i}function u(t,e,i){if("function"==typeof window.gtag){var n=c(o,e.home_section,null);if(n){var u={event_category:"homepage",event_label:n+":"+i,home_section:n,home_item_type:c(r,e.home_item_type,"other"),home_item_position:c(l,e.home_item_position,"na"),home_variant:c(s,e.home_variant,"default")};e.home_action&&(u.home_action=c(a,e.home_action,"other")),window.gtag("event",t,u)}}}function h(t){if(!t||!document.documentElement.contains(t))return!1;var e=window.getComputedStyle?window.getComputedStyle(t):null;if(e&&("none"===e.display||"hidden"===e.visibility))return!1;var i=t.getBoundingClientRect();return i.width>0&&i.height>0}function d(t,e,i){if("function"!=typeof window.IntersectionObserver||!t.length)return null;var n,o=[];function a(t){t.timer&&(window.clearTimeout(t.timer),t.timer=null)}function r(t){t.completed||t.timer||!t.intersecting||"hidden"===document.visibilityState||(t.timer=window.setTimeout((function(){t.timer=null,t.intersecting&&"hidden"!==document.visibilityState&&h(t.element)&&(t.completed=!0,e(t.element),n.unobserve(t.element))}),1e3))}function s(){o.forEach((function(t){"hidden"===document.visibilityState?a(t):r(t)}))}return n=new window.IntersectionObserver((function(t){t.forEach((function(t){var e=function(t){for(var e=0;e<o.length;e++)if(o[e].element===t)return o[e];return null}(t.target);e&&(e.intersecting=t.isIntersecting,e.intersecting?r(e):a(e))}))}),i||{threshold:0,rootMargin:"0px 0px -20% 0px"}),t.forEach((function(t){o.push({element:t,timer:null,intersecting:!1,completed:!1}),n.observe(t)})),document.addEventListener("visibilitychange",s),{disconnect:function(){o.forEach(a),n.disconnect(),document.removeEventListener("visibilitychange",s)}}}function f(t){return{home_section:t.getAttribute("data-home-section"),home_item_type:t.getAttribute("data-home-item-type")||"other",home_item_position:"na",home_variant:t.getAttribute("data-home-variant")||"default"}}function p(t,e,i){var n=t.closest("["+i+"]");return n.length&&n.closest("[data-home-section]").get(0)===e.get(0)?n.attr(i):null}function m(t){t.on("click.acHomeAnalytics",(function(e){var i=n(e.target),o=i.closest("[data-home-section]");if(o.length&&o.closest("[data-home-analytics-root]").get(0)===t.get(0)&&!i.closest("[data-home-action-after-success], [data-home-carousel-indicator]").length&&!i.closest('[data-home-analytics-ignore], .remove-post, .post-segnala, .spollicia-post, .timeline-panel-comment, [data-bs-toggle="dropdown"]').length){var s=i.closest('a[href], button, [role="button"], [data-home-action]');if(s.length&&s.closest("[data-home-section]").get(0)===o.get(0)){var l=function(t){var e=t.attr("data-home-action");if(e)return c(a,e,"other");if(!t.is("a[href]"))return"other";var i=(t.attr("href")||"").trim();if(!i||"#"===i||0===i.indexOf("javascript:"))return null;var n=document.createElement("a");return n.href=i,window.location.hostname.replace(/^www\./,"")===n.hostname.replace(/^www\./,"")?"internal_click":"external_click"}(s);if(l){var h=f(o.get(0));h.home_action=l,h.home_item_type=function(t,e){return t.closest(".ac-streaming-opera").length?"opera":t.closest(".ac-streaming-provider").length?"provider":t.closest(".autore").length||t.closest(".timeline-panel-heading .ac-media-left a, .timeline-panel-heading .ac-media-heading a, .timeline-panel-heading-top .float-end a").length?"user":c(r,p(t,e,"data-home-item-type")||e.attr("data-home-item-type"),"other")}(i,o),h.home_item_position=p(i,o,"data-home-item-position")||"na",u("ac_home_section_action",h,l)}}}}))}t.exports={init:function(){var t=n("[data-home-analytics-root]").first();if(t.length&&!t.data("home-analytics-init")){t.data("home-analytics-init",!0);var e={},i={},a=null;d(t.find("[data-home-section]").toArray(),(function(t){var i=f(t);o[i.home_section]&&!e[i.home_section]&&(e[i.home_section]=!0,u("ac_home_section_view",i,"view"))})),r(),m(t),function(t){var e=t.find("#vetrina-carousel");if(e.length){var i=e.closest('[data-home-section="hero_news"]'),o={},a=null,r=!1,s=null,d=null;if(e.on("mousedown.acHomeAnalytics keydown.acHomeAnalytics","[data-home-carou
8sel-indicator]",(function(t){"keydown"===t.type&&"Enter"!==t.key&&" "!==t.key||v(n(this).attr("data-home-item-position"))})),e.on("ac:home-carousel-manual-request.acHomeAnalytics",(function(t,e){v(e)})),e.get(0).addEventListener("slide.bs.carousel",(function(t){m();var e=n(t.relatedTarget).attr("data-home-item-position");d&&d===e&&(u("ac_home_section_action",{home_section:"hero_news",home_action:"carousel_manual",home_item_type:"news",home_item_position:e,home_variant:p()},"carousel_manual"),d=null,s&&(window.clearTimeout(s),s=null))})),e.get(0).addEventListener("slid.bs.carousel",_),document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState?m():_()})),"function"==typeof window.IntersectionObserver)new window.IntersectionObserver((function(t){t.forEach((function(t){(r=t.isIntersecting)?_():m()}))}),{threshold:.1}).observe(e.get(0))}function f(){return e.find(".carousel-item.active").attr("data-home-item-position")}function p(){return i.attr("data-home-variant")||"default"}function m(){a&&(window.clearTimeout(a),a=null)}function _(){m();var t=c(l,f(),null);t&&!o[t]&&r&&"hidden"!==document.visibilityState&&(a=window.setTimeout((function(){a=null,r&&"hidden"!==document.visibilityState&&f()===t&&h(e.get(0))&&(o[t]=!0,u("ac_home_hero_slide_view",{home_section:"hero_news",home_item_type:"news",home_item_position:t,home_variant:p()},"slide_view"))}),1e3))}function v(t){(t=c(l,t,null))&&0===t.indexOf("hero_")&&(d=t,s&&window.clearTimeout(s),s=window.setTimeout((function(){d=null}),1200))}}(t),n(document).on("ac:home-news-filter-success.acHomeAnalytics",(function(e,i){var n=t.find('[data-home-section="latest_news"]'),o=c(s,i&&i.variant,"default");n.attr("data-home-variant",o),r(),u("ac_home_section_action",{home_section:"latest_news",home_action:"filter",home_item_type:"other",home_item_position:"na",home_variant:o},"filter")}))}function r(){a&&a.disconnect(),a=d(t.find("[data-home-news-depth]").toArray(),(function(t){var e=t.getAttribute("data-home-news-depth");l[e]&&!i[e]&&(i[e]=!0,u("ac_home_news_depth",{home_section:"latest_news",home_item_type:"news",home_item_position:e,home_variant:n(t).closest('[data-home-section="latest_news"]').attr("data-home-variant")||"default"},"depth"))}))}}}},Ke0w:function(t,e,i){(function(t){var e=i("EVdn"),n=i("nbsC"),o=i("HTCS");t.$=t.jQuery=e,t.Mustache=n,t.bootbox=o,i("/2jn")(e);var a={DataTables:window.AC&&window.AC.DataTables};a.Utils=i("eYpX"),a.setLoading=i("lSZc"),a.popoverDestroy=i("Q5yd"),a.nascondiDialogo=i("DuH2").nascondiModale,a.Common=i("ws0i"),a.VerificaUmana=i("vuXX"),a.Frontend=i("HIFC"),a.Social=i("1XQt"),a.News=i("IETS"),a.Fumetterie=i("b4KD"),a.Opera=i("uf4A"),a.OperaDettaglio=i("r4kf"),a.User=i("BPfZ"),t.AC=a}).call(this,i("yLpj"))},"Ojp+":function(t,e,i){},Oub4:function(t,e,i){},Q5yd:function(t,e,i){var n=i("DuH2");t.exports=function(t){if(t){var e=n.ns().Popover,i=1===t.nodeType?[t]:t;Array.prototype.forEach.call(i,(function(t){var i=e.getInstance(t);i&&i.dispose()}))}}},"R+s1":function(t,e,i){"use strict";i.r(e);var n=i("IrRn"),o=i("G+eS"),a=i("TLXH"),r=i("m+hc"),s=i("NiBb"),l=i("Sbuk"),c=i("R+e4"),u=i("Syqx"),h=i("/zI/"),d=i("k5Tp"),f=i("LadE"),p=i("l6yY"),m=i("BbjU");n.a([a.a,r.a,s.a,l.a,c.a,u.a,h.a,d.a,f.a,p.a]);var _=new WeakMap,v=new Set,g=null,y=!1;function b(t){return"string"==typeof t?document.querySelector(t):t||null}function w(t,e,i){"function"==typeof CustomEvent&&t.dispatchEvent(new CustomEvent(e,{detail:i||{}}))}function x(t,e,i){if(t=b(t)){C(t),t.replaceChildren(),t.classList.add("ac-chart","ac-chart--state"),t.dataset.acChartState=e,t.setAttribute("role","error"===e?"alert":"status"),t.setAttribute("aria-live","polite"),"loading"===e&&t.setAttribute("aria-busy","true");var n=t.dataset.acChartTitle||"",o=t.dataset.acChartSubtitle||"";if(n){var a=document.createElement("p");if(a.className="ac-chart-state__title",a.textContent=n,o){var r=document.createElement("span");r.className="ac-chart-state__subtitle",r.textContent=o,a.appendChild(document.createElement("br")),a.appendChild(r)}t.appendChild(a)}t.setAttribute("aria-label",n?n+": "+i:i);var s=document.createElement("span");s.className="ac-chart-state__message",s.textContent=i,t.appendChild(s),w(t,"ac:chart-state",{state:e})}}function L(t,e){var i=_.get(t)||{};i.resizeObserver&&i.resizeObserver.disconnect(),"function"==typeof ResizeObserver&&(i.resizeObserver=new ResizeObserver((function(i){i.forEac
8h((function(i){i.target===t&&t.isConnected&&i.contentRect.width>0&&i.contentRect.height>0&&e.resize()}))})),i.resizeObserver.observe(t)),i.chart=e,_.set(t,i),v.add(t),!g&&"function"==typeof MutationObserver&&document.body&&(g=new MutationObserver((function(){v.forEach((function(t){t.isConnected||C(t)}))}))).observe(document.body,{childList:!0,subtree:!0}),y||"function"==typeof ResizeObserver||(window.addEventListener("resize",(function(){P()})),y=!0)}function T(t,e,i){if(!(t=b(t)))return Promise.reject(new Error("Contenitore del grafico non trovato."));t.classList.add("ac-chart"),function(t){t.querySelectorAll(".ac-chart-state__title, .ac-chart-state__message").forEach((function(t){t.remove()})),t.classList.remove("ac-chart--state"),t.removeAttribute("aria-busy"),t.removeAttribute("aria-live")}(t),t.dataset.acChartState="rendering",t.setAttribute("role","img"),t.setAttribute("aria-label",i||"Grafico AnimeClick"),t.setAttribute("aria-busy","true");var n=o.b(t);n?n.clear():n=o.c(t,null,{renderer:"svg"}),L(t,n);var a=function(t,e){var i=_.get(t)||{};return i.finished=new Promise((function(i){var n,o=!1,a=function(){o||(o=!0,e.off("rendered",n),t.dataset.acChartState="rendered",t.removeAttribute("aria-busy"),w(t,"ac:chart-rendered",{chart:e}),i(e))};n=a,e.on("rendered",n),Promise.resolve().then(a)})),_.set(t,i),i.finished}(t,n);return n.setOption(e,{notMerge:!0,lazyUpdate:!1}),a}function C(t){if(t=b(t)){var e=_.get(t);e&&e.resizeObserver&&e.resizeObserver.disconnect();var i=o.b(t);i&&i.dispose(),_.delete(t),v.delete(t)}}function P(t){if(t){var e=b(t),i=e&&o.b(e);i&&i.resize()}else v.forEach((function(t){var e=o.b(t);e&&t.isConnected&&e.resize()}))}function k(t){return(t=b(t))?o.b(t):null}function S(t,e){var i=t.getAttribute(e);if(!i)return[];var n=JSON.parse(i);if(!Array.isArray(n))throw new TypeError(e+" deve contenere un array JSON.");return n}function z(t,e){return e=e||{},T(t,m.line(e),e.description||e.title)}function E(t,e){return e=e||{},T(t,m.pie(e),e.description||e.title)}function A(t,e){return t=b(t),e=e||{},x(t,"loading","Caricamento del grafico…"),fetch(e.url,{credentials:"same-origin",headers:{Accept:"application/json","X-Requested-With":"XMLHttpRequest"}}).then((function(t){if(!t.ok)throw new Error("Risposta HTTP "+t.status);return t.json()})).then((function(i){var n=m.normalisePieData(i);return m.hasValues(n)?E(t,Object.assign({},e,{data:n})):(x(t,"empty","Dati non disponibili"),null)})).catch((function(e){return x(t,"error","Impossibile caricare il grafico"),w(t,"ac:chart-error",{error:e}),null}))}var M={dispose:C,getInstance:k,initDeclarative:function(t){(t=t||document).querySelectorAll('[data-ac-chart-type="line"]').forEach((function(t){try{z(t,{title:t.getAttribute("data-ac-chart-title")||"",subtitle:t.getAttribute("data-ac-chart-subtitle")||"",description:t.getAttribute("data-ac-chart-description")||"",categories:S(t,"data-ac-chart-categories"),series:S(t,"data-ac-chart-series"),yMin:t.hasAttribute("data-ac-chart-y-min")?t.getAttribute("data-ac-chart-y-min"):void 0,yTitle:t.getAttribute("data-ac-chart-y-title")||""})}catch(e){x(t,"error","Dati del grafico non validi"),w(t,"ac:chart-error",{error:e})}})),t.querySelectorAll('[data-ac-chart-type="profile-pie"]').forEach((function(t){A(t,{url:t.getAttribute("data-ac-chart-url"),title:t.getAttribute("data-ac-chart-title")||"",subtitle:t.getAttribute("data-ac-chart-subtitle")||"",description:t.getAttribute("data-ac-chart-description")||"",seriesName:t.getAttribute("data-ac-chart-series-name")||"Totale"})}))},loadPie:A,options:m,render:T,renderBar:function(t,e){return e=e||{},T(t,m.bar(e),e.description||e.title)},renderGauge:function(t,e){return e=e||{},T(t,m.gauge(e),e.description||"Voto redazionale")},renderLine:z,renderPie:E,renderSemicircle:function(t,e){return e=e||{},T(t,m.semicircle(e),e.description||e.title)},resize:P,showEmpty:function(t){x(t,"empty","Dati non disponibili")},showError:function(t){x(t,"error","Impossibile visualizzare il grafico")},showLoading:function(t){x(t,"loading","Caricamento del grafico…")},whenRendered:function(t){var e=(t=b(t))&&_.get(t);return e&&e.finished?e.finished:Promise.resolve(k(t))}};e.default=M}
8,"TGM/":function(t,e,i){},TT7O:function(t,e,i){},UP0u:function(t,e,i){},VEYf:function(t,e,i){var n=i("EVdn"),o=i("HTCS"),a={$container:n("#auction-container"),lastTimestamp:0,currentTimestamp:0,diffTimestamp:0,countdown:null,init:function(){var t=this;0!==t.$container.length&&(console.log("AC init auction"),t.initCountdown(),t.updateCountdown(),n('[data-auction="addBid"]').on("click",(function(e){e.preventDefault(),t.addBid(n('input[data-auction="amount"]').val())})),n('[data-auction="refresh"]').on("click",(function(e){e.preventDefault();var i=t.$container.data("refresh-url");n.ajax({url:i,method:"get",type:"json",success:function(e){0==e.success?o.alert(e.message):(n("#auction-expires-date").html(timeConverter(e.expiryTimestamp)),n("#auction-current-bid").html(e.currentBid),n("#auction-container__history").html(e.historyContent),t.lastTimestamp=e.expiryTimestamp,t.currentTimestamp=e.currentTimestamp,t.diffTimestamp=t.currentTimestamp-(new Date).getTime()/1e3,t.updateCountdown())},error:function(t){o.alert("Impossibile completare l'operazione")}})})))},addBid:function(t){var e=this,i=e.$container.data("addbid-url");n.ajax({url:i,method:"post",type:"json",data:{amount:t},success:function(t){0==t.success?o.alert(t.message):(n("#auction-current-bid").html(t.currentBid),n("#auction-container__history").html(t.historyContent),n("#auction-expires-date").html(timeConverter(t.expiryTimestamp)),e.lastTimestamp=t.expiryTimestamp,e.currentTimestamp=t.currentTimestamp,e.diffTimestamp=e.currentTimestamp-(new Date).getTime()/1e3,e.updateCountdown())},error:function(t){o.alert("Impossibile completare l'operazione")}})},initCountdown:function(){this.lastTimestamp=n("#auction-expires-date").data("timestamp"),this.currentTimestamp=n("#auction-expires-date").data("stimestamp"),this.diffTimestamp=this.currentTimestamp-(new Date).getTime()/1e3},updateCountdown:function(){var t=this;0!=n("#auction-countdown").length&&(null!==t.countdown&&clearInterval(t.countdown),t.countdown=setInterval((function(){var e=n("#auction-countdown"),i=(new Date).getTime()/1e3+t.diffTimestamp,o=t.lastTimestamp-i,a=Math.floor(o/86400),r=Math.floor(o%86400/3600),s=Math.floor(o%3600/60),l=Math.floor(o%60);e.html(a+"d "+r+"h "+s+"m "+l+"s "),o<0&&(clearInterval(t.countdown),e.html("SCADUTA"))}),1e3))}};t.exports=a},WB5z:function(t,e,i){var n,o,a;function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}
9/* @preserve
10 * Leaflet 1.2.0+Detached: 1ac320ba232cb85b73ac81f3d82780c9d07f0d4e.1ac320b, a JS library for interactive maps. http://leafletjs.com
11 * (c) 2010-2017 Vladimir Agafonkin, (c) 2010-2011 CloudMade
12 */!function(i,s){"object"==r(e)&&void 0!==t?s(e):(o=[e],void 0===(a="function"==typeof(n=s)?n.apply(e,o):n)||(t.exports=a))}(0,(function(t){"use strict";function e(t){var e,i,n,o;for(i=1,n=arguments.length;i<n;i++)for(e in o=arguments[i])t[e]=o[e];return t}function i(t,e){var i=Array.prototype.slice;if(t.bind)return t.bind.apply(t,i.call(arguments,1));var n=i.call(arguments,2);return function(){return t.apply(e,n.length?n.concat(i.call(arguments)):arguments)}}function n(t){return t._leaflet_id=t._leaflet_id||++qt,t._leaflet_id}function o(t,e,i){var n,o,a,r;return r=function(){n=!1,o&&(a.apply(i,o),o=!1)},a=function(){n?o=arguments:(t.apply(i,arguments),setTimeout(r,e),n=!0)}}function a(t,e,i){var n=e[1],o=e[0],a=n-o;return t===n&&i?t:((t-o)%a+a)%a+o}function s(){return!1}function l(t,e){var i=Math.pow(10,e||5);return Math.round(t*i)/i}function c(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function u(t){return c(t).split(/\s+/)}function h(t,e){for(var i in t.hasOwnProperty("options")||(t.options=t.options?Ut(t.options):{}),e)t.options[i]=e[i];return t.options}function d(t,e,i){var n=[];for(var o in t)n.push(encodeURIComponent(i?o.toUpperCase():o)+"="+encodeURIComponent(t[o]));return(e&&-1!==e.indexOf("?")?"&":"?")+n.join("&")}function f(t,e){return t.replace(Jt,(function(t,i){var n=e[i];if(void 0===n)throw new Error("No value provided for variable "+t);return"function"==typeof n&&(n=n(e)),n}))}function p(t,e){for(var i=0;i<t.length;i++)if(t[i]===e)return i;return-1}function m(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}function _(t){var e=+new Date,i=Math.max(0,16-(e-Yt));return Yt=e+i,window.setTimeout(t,i)}function v(t,e,n){if(!n||Xt!==_)return Xt.call(window,i(t,e));t.call(e)}function g(t){t&&$t.call(window,t)}function y(){}function b(t,e,i){this.x=i?Math.round(t):t,this.y=i?Math.round(e):e}function w(t,e,i){return t instanceof b?t:Gt(t)?new b(t[0],t[1]):null==t?t:"object"==r(t)&&"x"in t&&"y"in t?new b(t.x,t.y):new b(t,e,i)}function x(t,e){if(t)for(var i=e?[t,e]:t,n=0,o=i.length;n<o;n++)this.extend(i[n])}function T(t,e){return!t||t instanceof x?t:new x(t,e)}function C(t,e){if(t)for(var i=e?[t,e]:t,n=0,o=i.length;n<o;n++)this.extend(i[n])}function P(t,e){return t instanceof C?t:new C(t,e)}function k(t,e,i){if(isNaN(t)||isNaN(e))throw new Error("Invalid LatLng object: ("+t+", "+e+")");this.lat=+t,this.lng=+e,void 0!==i&&(this.alt=+i)}function S(t,e,i){return t instanceof k?t:Gt(t)&&"object"!=r(t[0])?3===t.length?new k(t[0],t[1],t[2]):2===t.length?new k(t[0],t[1]):null:null==t?t:"object"==r(t)&&"lat"in t?new k(t.lat,"lng"in t?t.lng:t.lon,t.alt):void 0===e?null:new k(t,e,i)}function z(t,e,i,n){if(Gt(t))return this._a=t[0],this._b=t[1],this._c=t[2],void(this._d=t[3]);this._a=t,this._b=e,this._c=i,this._d=n}function E(t,e,i,n){return new z(t,e,i,n)}function A(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function M(t,e){var i,n,o,a,r,s,l="";for(i=0,o=t.length;i<o;i++){for(n=0,a=(r=t[i]).length;n<a;n++)l+=(n?"L":"M")+(s=r[n]).x+" "+s.y;l+=e?Re?"z":"x":""}return l||"M0 0"}function O(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}function I(t,e,i,n){return"touchstart"===e?B(t,i,n):"touchmove"===e?function(t,e,
12i){var n=function(t){(t.pointerType!==t.MSPOINTER_TYPE_MOUSE&&"mouse"!==t.pointerType||0!==t.buttons)&&R(t,e)};t["_leaflet_touchmove"+i]=n,t.addEventListener(We,n,!1)}(t,i,n):"touchend"===e&&function(t,e,i){var n=function(t){R(t,e)};t["_leaflet_touchend"+i]=n,t.addEventListener(Fe,n,!1),t.addEventListener(Ue,n,!1)}(t,i,n),this}function B(t,e,n){var o=i((function(t){if("mouse"!==t.pointerType&&t.pointerType!==t.MSPOINTER_TYPE_MOUSE&&t.pointerType!==t.MSPOINTER_TYPE_MOUSE){if(!(qe.indexOf(t.target.tagName)<0))return;K(t)}R(t,e)}));t["_leaflet_touchstart"+n]=o,t.addEventListener(Ve,o,!1),Ge||(document.documentElement.addEventListener(Ve,Z,!0),document.documentElement.addEventListener(We,N,!0),document.documentElement.addEventListener(Fe,D,!0),document.documentElement.addEventListener(Ue,D,!0),Ge=!0)}function Z(t){Je[t.pointerId]=t,Ke++}function N(t){Je[t.pointerId]&&(Je[t.pointerId]=t)}function D(t){delete Je[t.pointerId],Ke--}function R(t,e){for(var i in t.touches=[],Je)t.touches.push(Je[i]);t.changedTouches=[t],e(t)}function j(t,e,i){function n(t){var e;if(Oe){if(!pe||"mouse"===t.pointerType)return;e=Ke}else e=t.touches.length;if(!(e>1)){var i=Date.now(),n=i-(a||i);r=t.touches?t.touches[0]:t,s=n>0&&n<=l,a=i}}function o(t){if(s&&!r.cancelBubble){if(Oe){if(!pe||"mouse"===t.pointerType)return;var i,n,o={};for(n in r)i=r[n],o[n]=i&&i.bind?i.bind(r):i;r=o}r.type="dblclick",e(r),a=null}}var a,r,s=!1,l=250;return t[$e+Ye+i]=n,t[$e+Xe+i]=o,t[$e+"dblclick"+i]=e,t.addEventListener(Ye,n,!1),t.addEventListener(Xe,o,!1),t.addEventListener("dblclick",e,!1),this}function H(t,e){var i=t[$e+Ye+e],n=t[$e+Xe+e],o=t[$e+"dblclick"+e];return t.removeEventListener(Ye,i,!1),t.removeEventListener(Xe,n,!1),pe||t.removeEventListener("dblclick",o,!1),this}function V(t,e,i,n){if("object"==r(e))for(var o in e)F(t,o,e[o],i);else for(var a=0,s=(e=u(e)).length;a<s;a++)F(t,e[a],i,n);return this}function W(t,e,i,n){if("object"==r(e))for(var o in e)U(t,o,e[o],i);else if(e)for(var a=0,s=(e=u(e)).length;a<s;a++)U(t,e[a],i,n);else{for(var l in t[Qe])U(t,l,t[Qe][l]);delete t[Qe]}return this}function F(t,e,i,o){var a=e+n(i)+(o?"_"+n(o):"");if(t[Qe]&&t[Qe][a])return this;var r=function(e){return i.call(o||t,e||window.event)},s=r;Oe&&0===e.indexOf("touch")?I(t,e,r,a):!Ie||"dblclick"!==e||!j||Oe&&ye?"addEventListener"in t?"mousewheel"===e?t.addEventListener("onwheel"in t?"wheel":"mousewheel",r,!1):"mouseenter"===e||"mouseleave"===e?(r=function(e){e=e||window.event,et(t,e)&&s(e)},t.addEventListener("mouseenter"===e?"mouseover":"mouseout",r,!1)):("click"===e&&_e&&(r=function(t){!function(t,e){var i=t.timeStamp||t.originalEvent&&t.originalEvent.timeStamp,n=ae&&i-ae;n&&n>100&&n<500||t.target._simulatedClick&&!t._simulated?Y(t):(ae=i,e(t))}(t,s)}),t.addEventListener(e,r,!1)):"attachEvent"in t&&t.attachEvent("on"+e,r):j(t,r,a),t[Qe]=t[Qe]||{},t[Qe][a]=r}function U(t,e,i,o){var a=e+n(i)+(o?"_"+n(o):""),r=t[Qe]&&t[Qe][a];if(!r)return this;Oe&&0===e.indexOf("touch")?function(t,e,i){var n=t["_leaflet_"+e+i];"touchstart"===e?t.removeEventListener(Ve,n,!1):"touchmove"===e?t.removeEventListener(We,n,!1):"touchend"===e&&(t.removeEventListener(Fe,n,!1),t.removeEventListener(Ue,n,!1))}(t,e,a):Ie&&"dblclick"===e&&H?H(t,a):"removeEventListener"in t?"mousewheel"===e?t.removeEventListener("onwheel"in t?"wheel":"mousewheel",r,!1):t.removeEventListener("mouseenter"===e?"mouseover":"mouseleave"===e?"mouseout":e,r,!1):"detachEvent"in t&&t.detachEvent("on"+e,r),t[Qe][a]=null}function q(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,tt(t),this}function J(t){return F(t,"mousewheel",q),this}function G(t){return V(t,"mousedown touchstart dblclick",q),F(t,"click",Q),this}function K(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function Y(t){return K(t),q(t),this}function X(t,e){if(!e)return new b(t.clientX,t.clientY);var i=e.getBoundingClientRect();return new b(t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop)}function $(t){return pe?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/ti:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail
vendor: 5,301 bytes, line 12
12:t.detail?t.detail/-32765*60:0}function Q(t){ei[t.type]=!0}function tt(t){var e=ei[t.type];return ei[t.type]=!1,e}function et(t,e){var i=e.relatedTarget;if(!i)return!0;try{for(;i&&i!==t;)i=i.parentNode}catch(t){return!1}return i!==t}function it(t){return"string"==typeof t?document.getElementById(t):t}function nt(t,e){var i=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!i||"auto"===i)&&document.defaultView){var n=document.defaultView.getComputedStyle(t,null);i=n?n[e]:null}return"auto"===i?null:i}function ot(t,e,i){var n=document.createElement(t);return n.className=e||"",i&&i.appendChild(n),n}function at(t){var e=t.parentNode;e&&e.removeChild(t)}function rt(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function st(t){var e=t.parentNode;e.lastChild!==t&&e.appendChild(t)}function lt(t){var e=t.parentNode;e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function ct(t,e){if(void 0!==t.classList)return t.classList.contains(e);var i=ft(t);return i.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(i)}function ut(t,e){if(void 0!==t.classList)for(var i=u(e),n=0,o=i.length;n<o;n++)t.classList.add(i[n]);else if(!ct(t,e)){var a=ft(t);dt(t,(a?a+" ":"")+e)}}function ht(t,e){void 0!==t.classList?t.classList.remove(e):dt(t,c((" "+ft(t)+" ").replace(" "+e+" "," ")))}function dt(t,e){void 0===t.className.baseVal?t.className=e:t.className.baseVal=e}function ft(t){return void 0===t.className.baseVal?t.className:t.className.baseVal}function pt(t,e){"opacity"in t.style?t.style.opacity=e:"filter"in t.style&&function(t,e){var i=!1,n="DXImageTransform.Microsoft.Alpha";try{i=t.filters.item(n)}catch(t){if(1===e)return}e=Math.round(100*e),i?(i.Enabled=100!==e,i.Opacity=e):t.style.filter+=" progid:"+n+"(opacity="+e+")"}(t,e)}function mt(t){for(var e=document.documentElement.style,i=0;i<t.length;i++)if(t[i]in e)return t[i];return!1}function _t(t,e,i){var n=e||new b(0,0);t.style[ni]=(Ce?"translate("+n.x+"px,"+n.y+"px)":"translate3d("+n.x+"px,"+n.y+"px,0)")+(i?" scale("+i+")":"")}function vt(t,e){t._leaflet_pos=e,Se?_t(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")}function gt(t){return t._leaflet_pos||new b(0,0)}function yt(){V(window,"dragstart",K)}function bt(){W(window,"dragstart",K)}function wt(t){for(;-1===t.tabIndex;)t=t.parentNode;t.style&&(xt(),si=t,li=t.style.outline,t.style.outline="none",V(window,"keydown",xt))}function xt(){si&&(si.style.outline=li,si=void 0,li=void 0,W(window,"keydown",xt))}function Lt(t,e){if(!e||!t.length)return t.slice();var i=e*e;return function(t,e){var i=t.length,n=new(("undefined"==typeof Uint8Array?"undefined":r(Uint8Array))!=void 0+""?Uint8Array:Array)(i);n[0]=n[i-1]=1,function t(e,i,n,o,a){var r,s,l,c=0;for(s=o+1;s<=a-1;s++)(l=zt(e[s],e[o],e[a],!0))>c&&(r=s,c=l);c>n&&(i[r]=1,t(e,i,n,o,r),t(e,i,n,r,a))}(t,n,e,0,i-1);var o,a=[];for(o=0;o<i;o++)n[o]&&a.push(t[o]);return a}(t=function(t,e){for(var i=[t[0]],n=1,o=0,a=t.length;n<a;n++)St(t[n],t[o])>e&&(i.push(t[n]),o=n);return o<a-1&&i.push(t[a-1]),i}(t,i),i)}function Tt(t,e,i){return Math.sqrt(zt(t,e,i,!0))}function Ct(t,e,i,n,o){var a,r,s,l=n?gi:kt(t,i),c=kt(e,i);for(gi=c;;){if(!(l|c))return[t,e];if(l&c)return!1;s=kt(r=Pt(t,e,a=l||c,i,o),i),a===l?(t=r,l=s):(e=r,c=s)}}function Pt(t,e,i,n,o){var a,r,s=e.x-t.x,l=e.y-t.y,c=n.min,u=n.max;return 8&i?(a=t.x+s*(u.y-t.y)/l,r=u.y):4&i?(a=t.x+s*(c.y-t.y)/l,r=c.y):2&i?(a=u.x,r=t.y+l*(u.x-t.x)/s):1&i&&(a=c.x,r=t.y+l*(c.x-t.x)/s),new b(a,r,o)}function kt(t,e){var i=0;return t.x<e.min.x?i|=1:t.x>e.max.x&&(i|=2),t.y<e.min.y?i|=4:t.y>e.max.y&&(i|=8),i}function St(t,e){var i=e.x-t.x,n=e.y-t.y;return i*i+n*n}function zt(t,e,i,n){var o,a=e.x,r=e.y,s=i.x-a,l=i.y-r,c=s*s+l*l;return c>0&&((o=((t.x-a)*s+(t.y-r)*l)/c)>1?(a=i.x,r=i.y):o>0&&(a+=s*o,r+=l*o)),s=t.x-a,l=t.y-r,n?s*s+l*l:new b(a,r)}function Et(t){return!Gt(t[0])||"object"!=r(t[0][0])&&void 0!==t[0][0]}function At(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Et(t)}function Mt(t,e,i){var n,o,a,r,s,l,c,u,h,d=[1,4,2,8];for(o=0,c=t.length;o<c;o++)t[o]._code=kt(t[o],e);for(r=0;r<4;r++){for(u=d[r],n=[],o=0,a=(c=t.length)-1;o<c;a=o++)s=t[o],l=t[a],s._code&u?l._code&u||((h=Pt(l,s,u,e,i))._code=kt(h,e),n.push(h)):(l._code&u&&((h=Pt(l,s,u,e,i))._code=kt(h,e),n.push(h)),n.push(s));t=n}return t}function Ot(t,e){var i,n,o,a,r="Feature"===t.type?t.geometry:t,s=r?r.coordinates:null,l=[],c=e&&e.pointToLayer,u=e&&e.coordsToLatLng||It;if(!s&&!r)return null;switch(r.type){case"Point":return i=u(s),c?c(t,i):new Ri(i);case"MultiPoint":for(o=0,a=s.length;o<a;o++)i=u(s[o]),l.push(c?c(t,i):new Ri(i));return new Bi(l);case"LineString":case"MultiLineString":return n=Bt(s,"LineString"===r.type?0:1,u),new Wi(n,e);case"Polygon":case"MultiPolygon":return n=Bt(s,"Polygon"===r.type?1:2,u),new Fi(n,e);case"GeometryCollection":for(o=0,a=r.geometries.length;o<a;o++){var h=Ot({geometry:r.geometries[o],type:"Feature",properties:t.properties},e);h&&l.push(h)}return new Bi(l);default:throw new Error("Invalid GeoJSON object.")}}function It(t){return new k(t[1],t[0],t[2])}function Bt(t,e,i){for(var n,o=[],a=0,r=t.length;a<r;a++)n=e?Bt(t[a],e-1,i):(i||It)(t[a]),o.push(n);return o}function Zt(t,e){return e="number"==typeof e?e:6,void 0!==t.alt?[l(t.lng,e),l(t.lat,e),l(t.alt,e)]:[l(t.lng,e),l(t.lat,e)]}function Nt(t,e,i,n){for(var o=[],a=0,r=t.length;a<r;
12a++)o.push(e?Nt(t[a],e-1,i,n):Zt(t[a],n));return!e&&i&&o.push(o[0]),o}function Dt(t,i){return t.feature?e({},t.feature,{geometry:i}):Rt(i)}function Rt(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}function jt(t,e){return new Ui(t,e)}function Ht(t,e){return new en(t,e)}function Vt(t){return De?new an(t):null}function Wt(t){return Re||je?new cn(t):null}var Ft=Object.freeze;Object.freeze=function(t){return t};var Ut=Object.create||function(){function t(){}return function(e){return t.prototype=e,new t}}(),qt=0,Jt=/\{ *([\w_\-]+) *\}/g,Gt=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},Kt="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=",Yt=0,Xt=window.requestAnimationFrame||m("RequestAnimationFrame")||_,$t=window.cancelAnimationFrame||m("CancelAnimationFrame")||m("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)},Qt=(Object.freeze||Object)({freeze:Ft,extend:e,create:Ut,bind:i,lastId:qt,stamp:n,throttle:o,wrapNum:a,falseFn:s,formatNum:l,trim:c,splitWords:u,setOptions:h,getParamString:d,template:f,isArray:Gt,indexOf:p,emptyImageUrl:Kt,requestFn:Xt,cancelFn:$t,requestAnimFrame:v,cancelAnimFrame:g});y.extend=function(t){var i=function(){this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},n=i.__super__=this.prototype,o=Ut(n);for(var a in o.constructor=i,i.prototype=o,this)this.hasOwnProperty(a)&&"prototype"!==a&&"__super__"!==a&&(i[a]=this[a]);return t.statics&&(e(i,t.statics),delete t.statics),t.includes&&(function(t){if(L&&L.Mixin){t=Gt(t)?t:[t];for(var e=0;e<t.length;
vendor: 6,381 bytes, line 12
12e++)t[e]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",(new Error).stack)}}(t.includes),e.apply(null,[o].concat(t.includes)),delete t.includes),o.options&&(t.options=e(Ut(o.options),t.options)),e(o,t),o._initHooks=[],o.callInitHooks=function(){if(!this._initHooksCalled){n.callInitHooks&&n.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,e=o._initHooks.length;t<e;t++)o._initHooks[t].call(this)}},i},y.include=function(t){return e(this.prototype,t),this},y.mergeOptions=function(t){return e(this.prototype.options,t),this},y.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1),i="function"==typeof t?t:function(){this[t].apply(this,e)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(i),this};var te={on:function(t,e,i){if("object"==r(t))for(var n in t)this._on(n,t[n],e);else for(var o=0,a=(t=u(t)).length;o<a;o++)this._on(t[o],e,i);return this},off:function(t,e,i){if(t)if("object"==r(t))for(var n in t)this._off(n,t[n],e);else for(var o=0,a=(t=u(t)).length;o<a;o++)this._off(t[o],e,i);else delete this._events;return this},_on:function(t,e,i){this._events=this._events||{};var n=this._events[t];n||(n=[],this._events[t]=n),i===this&&(i=void 0);for(var o={fn:e,ctx:i},a=n,r=0,s=a.length;r<s;r++)if(a[r].fn===e&&a[r].ctx===i)return;a.push(o)},_off:function(t,e,i){var n,o,a;if(this._events&&(n=this._events[t]))if(e){if(i===this&&(i=void 0),n)for(o=0,a=n.length;o<a;o++){var r=n[o];if(r.ctx===i&&r.fn===e)return r.fn=s,this._firingCount&&(this._events[t]=n=n.slice()),void n.splice(o,1)}}else{for(o=0,a=n.length;o<a;o++)n[o].fn=s;delete this._events[t]}},fire:function(t,i,n){if(!this.listens(t,n))return this;var o=e({},i,{type:t,target:this});if(this._events){var a=this._events[t];if(a){this._firingCount=this._firingCount+1||1;for(var r=0,s=a.length;r<s;r++){var l=a[r];l.fn.call(l.ctx||this,o)}this._firingCount--}}return n&&this._propagateEvent(o),this},listens:function(t,e){var i=this._events&&this._events[t];if(i&&i.length)return!0;if(e)for(var n in this._eventParents)if(this._eventParents[n].listens(t,e))return!0;return!1},once:function(t,e,n){if("object"==r(t)){for(var o in t)this.once(o,t[o],e);return this}var a=i((function(){this.off(t,e,n).off(t,a,n)}),this);return this.on(t,e,n).on(t,a,n)},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[n(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[n(t)],this},_propagateEvent:function(t){for(var i in this._eventParents)this._eventParents[i].fire(t.type,e({layer:t.target},t),!0)}};te.addEventListener=te.on,te.removeEventListener=te.clearAllEventListeners=te.off,te.addOneTimeEventListener=te.once,te.fireEvent=te.fire,te.hasEventListeners=te.listens;var ee=y.extend(te);b.prototype={clone:function(){return new b(this.x,this.y)},add:function(t){return this.clone()._add(w(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(w(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new b(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new b(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},distanceTo:function(t){var e=(t=w(t)).x-this.x,i=t.y-this.y;return Math.sqrt(e*e+i*i)},equals:function(t){return(t=w(t)).x===this.x&&t.y===this.y},contains:function(t){return t=w(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+l(this.x)+", "+l(this.y)+")"}},x.prototype={extend:function(t){return t=w(t),this.min||this.max?(this.min.x=Math.min(t.x,this.min.x),this.max.x=Math.max(t.x,this.max.x),this.min.y=Math.min(t.y,this.min.y),this.max.y=Math.max(t.y,this.max.y)):(this.min=t.clone(),this.max=t.clone()),this},getCenter:function(t){return new b((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return new b(this.min.x,this.max.y)},getTopRight:function(){return new b(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,i;return(t="number"==typeof t[0]||t instanceof b?w(t):T(t))instanceof x?(e=t.min,i=t.max):e=i=t,e.x>=this.min.x&&i.x<=this.max.x&&e.y>=this.min.y&&i.y<=this.max.y},intersects:function(t){t=T(t);var e=this.min,i=this.max,n=t.min,o=t.max,a=o.x>=e.x&&n.x<=i.x,r=o.y>=e.y&&n.y<=i.y;return a&&r},overlaps:function(t){t=T(t);var e=this.min,i=this.max,n=t.min,o=t.max,a=o.x>e.x&&n.x<i.x,r=o.y>e.y&&n.y<i.y;return a&&r},isValid:function(){return!(!this.min||!this.max)}},C.prototype={extend:function(t){var e,i,n=this._southWest,o=this._northEast;if(t instanceof k)e=t,i=t;else{if(!(t instanceof C))return t?this.extend(S(t)||P(t)):this;if(e=t._southWest,i=t._northEast,!e||!i)return this}return n||o?(n.lat=Math.min(e.lat,n.lat),n.lng=Math.min(e.lng,n.lng),o.lat=Math.max(i.lat,o.lat),o.lng=Math.max(i.lng,o.lng)):(this._southWest=new k(e.lat,e.lng),this._northEast=new k(i.lat,i.lng)),this},pad:function(t){var e=this._southWest,i=this._northEast,n=Math.abs(e.lat-i.lat)*t,o=Math.abs(e.lng-i.lng)*t;return new C(new k(e.lat-n,e.lng-o),new k(i.lat+n,i.lng+o))},getCenter:function(){return new k((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new k(this.getNorth(),this.getWest())},getSouthEast:function(){return new k(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat}
vendor: 2,436 bytes, line 12
12,getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){t="number"==typeof t[0]||t instanceof k||"lat"in t?S(t):P(t);var e,i,n=this._southWest,o=this._northEast;return t instanceof C?(e=t.getSouthWest(),i=t.getNorthEast()):e=i=t,e.lat>=n.lat&&i.lat<=o.lat&&e.lng>=n.lng&&i.lng<=o.lng},intersects:function(t){t=P(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),a=o.lat>=e.lat&&n.lat<=i.lat,r=o.lng>=e.lng&&n.lng<=i.lng;return a&&r},overlaps:function(t){t=P(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),a=o.lat>e.lat&&n.lat<i.lat,r=o.lng>e.lng&&n.lng<i.lng;return a&&r},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){return!!t&&(t=P(t),this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e))},isValid:function(){return!(!this._southWest||!this._northEast)}},k.prototype={equals:function(t,e){return!!t&&(t=S(t),Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng))<=(void 0===e?1e-9:e))},toString:function(t){return"LatLng("+l(this.lat,t)+", "+l(this.lng,t)+")"},distanceTo:function(t){return ne.distance(this,S(t))},wrap:function(){return ne.wrapLatLng(this)},toBounds:function(t){var e=180*t/40075017,i=e/Math.cos(Math.PI/180*this.lat);return P([this.lat-e,this.lng-i],[this.lat+e,this.lng+i])},clone:function(){return new k(this.lat,this.lng,this.alt)}};var ie={latLngToPoint:function(t,e){var i=this.projection.project(t),n=this.scale(e);return this.transformation._transform(i,n)},pointToLatLng:function(t,e){var i=this.scale(e),n=this.transformation.untransform(t,i);return this.projection.unproject(n)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var e=this.projection.bounds,i=this.scale(t);return new x(this.transformation.transform(e.min,i),this.transformation.transform(e.max,i))},infinite:!1,wrapLatLng:function(t){var e=this.wrapLng?a(t.lng,this.wrapLng,!0):t.lng;return new k(this.wrapLat?a(t.lat,this.wrapLat,!0):t.lat,e,t.alt)},wrapLatLngBounds:function(t){var e=t.getCenter(),i=this.wrapLatLng(e),n=e.lat-i.lat,o=e.lng-i.lng;if(0===n&&0===o)return t;
12var a=t.getSouthWest(),r=t.getNorthEast();return new C(new k(a.lat-n,a.lng-o),new k(r.lat-n,r.lng-o))}},ne=e({},ie,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var i=Math.PI/180,n=t.lat*i,o=e.lat*i,a=Math.sin(n)*Math.sin(o)+Math.cos(n)*Math.cos(o)*Math.cos((e.lng-t.lng)*i);return this.R*Math.acos(Math.min(a,1))}}),oe={R:6378137,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,i=this.MAX_LATITUDE,n=Math.max(Math.min(i,t.lat),-i),o=Math.sin(n*e);return new b(this.R*t.lng*e,this.R*Math.log((1+o)/(1-o))/2)},unproject:function(t){var e=180/Math.PI;return new k((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:function(){var t=6378137*Math.PI;return new x([-t,-t],[t,t])}()};z.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){return e=e||1,t.x=e*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t},untransform:function(t,e){return e=e||1,new b((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};var ae,re,se,le,ce=e({},ne,{code:"EPSG:3857",projection:oe,transformation:function(){var t=.5/(Math.PI*oe.R);return E(t,.5,-t,.5)}()}),ue=e({},ce,{code:"EPSG:900913"}),he=document.documentElement.style,de="ActiveXObject"in window,fe=de&&!document.addEventListener,pe="msLaunchUri"in navigator&&!("documentMode"in document),me=O("webkit"),_e=O("android"),ve=O("android 2")||O("android 3"),ge=!!window.opera,ye=O("chrome"),be=O("gecko")&&!me&&!ge&&!de,we=!ye&&O("safari"),xe=O("phantom"),Le="OTransition"in he,Te=0===navigator.platform.indexOf("Win"),Ce=de&&"transition"in he,Pe="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ve,ke="MozPerspective"in he,Se=!window.L_DISABLE_3D&&(Ce||Pe||ke)&&!Le&&!xe,ze="undefined"!=typeof orientation||O("mobile"),Ee=ze&&me,Ae=ze&&Pe,Me=!window.PointerEvent&&window.MSPointerEvent,Oe=!(!window.PointerEvent&&!Me),Ie=!window.L_NO_TOUCH&&(Oe||"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),Be=ze&&ge,Ze=ze&&be,Ne=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,De=!!document.createElement("canvas").getContext,Re=!(!document.createElementNS||!A("svg").createSVGRect),je=!Re&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&"object"==r(e.adj)}catch(t){return!1}}(),He=(Object.freeze||Object)({ie:de,ielt9:fe,edge:pe,webkit:me,android:_e,android23:ve,opera:ge,chrome:ye,gecko:be,safari:we,phantom:xe,opera12:Le,win:Te,ie3d:Ce,webkit3d:Pe,gecko3d:ke,any3d:Se,mobile:ze,mobileWebkit:Ee,mobileWebkit3d:Ae,msPointer:Me,pointer:Oe,touch:Ie,mobileOpera:Be,mobileGecko:Ze,retina:Ne,canvas:De,svg:Re,vml:je}),Ve=Me?"MSPointerDown":"pointerdown",We=Me?"MSPointerMove":"pointermove",Fe=Me?"MSPointerUp":"pointerup",Ue=Me?"MSPointerCancel":"pointercancel",qe=["INPUT","SELECT","OPTION"],Je={},Ge=!1,Ke=0,Ye=Me?"MSPointerDown":Oe?"pointerdown":"touchstart",Xe=Me?"MSPointerUp":Oe?"pointerup":"touchend",$e="_leaflet_",Qe="_leaflet_events",ti=Te&&ye?2*window.devicePixelRatio:be?window.devicePixelRatio:1,ei={},ii=(Object.freeze||Object)({on:V,off:W,stopPropagation:q,disableScrollPropagation:J,disableClickPropagation:G,preventDefault:K,stop:Y,getMousePosition:X,getWheelDelta:$,fakeStop:Q,skipped:tt,isExternalTarget:et,addListener:V,removeListener:W}),ni=mt(["transform","WebkitTransform","OTransform","MozTransform","msTransform"]),oi=mt(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),ai="webkitTransition"===oi||"OTransition"===oi?oi+"End":"transitionend";if("onselectstart"in document)re=function(){V(window,"selectstart",K)},se=function(){W(window,"selectstart",K)};else{var ri=mt(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);re=function(){if(ri){var t=document.documentElement.style;le=t[ri],t[ri]="none"}},se=function(){ri&&(document.documentElement.style[ri]=le,le=void 0)}}var si,li,ci=(Object.freeze||Object)({TRANSFORM:ni,TRANSITION:oi,TRANSITION_END:ai,get:it,getStyle:nt,create:ot,remove:at,empty:rt,toFront:st,toBack:lt,hasClass:ct,addClass:ut,removeClass:ht,setClass:dt,getClass:ft,setOpacity:pt,testProp:mt,setTransform:_t,setPosition:vt,getPosition:gt,disableTextSelection:re,enableTextSelection:se,disableImageDrag:yt,enableImageDrag:bt,preventOutline:wt,restoreOutline:xt}
vendor: 2,989 bytes, line 12
12),ui=ee.extend({run:function(t,e,i,n){this.stop(),this._el=t,this._inProgress=!0,this._duration=i||.25,this._easeOutPower=1/Math.max(n||.5,.2),this._startPos=gt(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=v(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,i=1e3*this._duration;e<i?this._runFrame(this._easeOut(e/i),t):(this._runFrame(1),this._complete())},_runFrame:function(t,e){var i=this._startPos.add(this._offset.multiplyBy(t));e&&i._round(),vt(this._el,i),this.fire("step")},_complete:function(){g(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),hi=ee.extend({options:{crs:ce,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,e){e=h(this,e),this._initContainer(t),this._initLayout(),this._onResize=i(this._onResize,this),this._initEvents(),e.maxBounds&&this.setMaxBounds(e.maxBounds),void 0!==e.zoom&&(this._zoom=this._limitZoom(e.zoom)),e.center&&void 0!==e.zoom&&this.setView(S(e.center),e.zoom,{reset:!0}),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this.callInitHooks(),this._zoomAnimated=oi&&Se&&!Be&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),V(this._proxy,ai,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,i,n){return i=void 0===i?this._zoom:this._limitZoom(i),t=this._limitCenter(S(t),i,this.options.maxBounds),n=n||{},this._stop(),this._loaded&&!n.reset&&!0!==n&&(void 0!==n.animate&&(n.zoom=e({animate:n.animate},n.zoom),n.pan=e({animate:n.animate,duration:n.duration},n.pan)),this._zoom!==i?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,i,n.zoom):this._tryAnimatedPan(t,n.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(t,i),this)},setZoom:function(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=t,this)},zoomIn:function(t,e){return t=t||(Se?this.options.zoomDelta:1),this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){return t=t||(Se?this.options.zoomDelta:1),this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,i){var n=this.getZoomScale(e),o=this.getSize().divideBy(2),a=(t instanceof b?t:this.latLngToContainerPoint(t)).subtract(o).multiplyBy(1-1/n),r=this.containerPointToLatLng(o.add(a));return this.setView(r,e,{zoom:i})},_getBoundsCenterZoom:function(t,e){e=e||{},t=t.getBounds?t.getBounds():P(t);var i=w(e.paddingTopLeft||e.padding||[0,0]),n=w(e.paddingBottomRight||e.padding||[0,0]),o=this.getBoundsZoom(t,!1,i.add(n));if((o="number"==typeof e.maxZoom?Math.min(e.maxZoom,o):o)===1/0)return{center:t.getCenter(),zoom:o};
vendor: 6,217 bytes, line 12
12var a=n.subtract(i).divideBy(2),r=this.project(t.getSouthWest(),o),s=this.project(t.getNorthEast(),o);return{center:this.unproject(r.add(s).divideBy(2).add(a),o),zoom:o}},fitBounds:function(t,e){if(!(t=P(t)).isValid())throw new Error("Bounds are not valid.");var i=this._getBoundsCenterZoom(t,e);return this.setView(i.center,i.zoom,e)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,e){return this.setView(t,this._zoom,{pan:e})},panBy:function(t,e){if(e=e||{},!(t=w(t).round()).x&&!t.y)return this.fire("moveend");if(!0!==e.animate&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new ui,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),!1!==e.animate){ut(this._mapPane,"leaflet-pan-anim");var i=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,i,e.duration||.25,e.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,e,i){function n(t){var e=(d*d-h*h+(t?-1:1)*m*m*f*f)/(2*(t?d:h)*m*f),i=Math.sqrt(e*e+1)-e;return i<1e-9?-18:Math.log(i)}function o(t){return(Math.exp(t)-Math.exp(-t))/2}function a(t){return(Math.exp(t)+Math.exp(-t))/2}function r(t){return h*(a(_)*function(t){return o(t)/a(t)}(_+p*t)-o(_))/m}if(!1===(i=i||{}).animate||!Se)return this.setView(t,e,i);this._stop();var s=this.project(this.getCenter()),l=this.project(t),c=this.getSize(),u=this._zoom;t=S(t),e=void 0===e?u:e;var h=Math.max(c.x,c.y),d=h*this.getZoomScale(u,e),f=l.distanceTo(s)||1,p=1.42,m=p*p,_=n(0),g=Date.now(),y=(n(1)-_)/p,b=i.duration?1e3*i.duration:1e3*y*.8;return this._moveStart(!0),function i(){var n=(Date.now()-g)/b,o=function(t){return 1-Math.pow(1-t,1.5)}(n)*y;n<=1?(this._flyToFrame=v(i,this),this._move(this.unproject(s.add(l.subtract(s).multiplyBy(r(o)/f)),u),this.getScaleZoom(h/function(t){return h*(a(_)/a(_+p*t))}(o),u),{flyTo:!0})):this._move(t,e)._moveEnd(!0)}.call(this),this},flyToBounds:function(t,e){var i=this._getBoundsCenterZoom(t,e);return this.flyTo(i.center,i.zoom,e)},setMaxBounds:function(t){return(t=P(t)).isValid()?(this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this.off("moveend",this._panInsideMaxBounds))},setMinZoom:function(t){return this.options.minZoom=t,this._loaded&&this.getZoom()<this.options.minZoom?this.setZoom(t):this},setMaxZoom:function(t){return this.options.maxZoom=t,this._loaded&&this.getZoom()>this.options.maxZoom?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var i=this.getCenter(),n=this._limitCenter(i,this._zoom,P(t));return i.equals(n)||this.panTo(n,e),this._enforcingBounds=!1,this},invalidateSize:function(t){if(!this._loaded)return this;t=e({animate:!1,pan:!0},!0===t?{animate:!0}:t);var n=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var o=this.getSize(),a=n.divideBy(2).round(),r=o.divideBy(2).round(),s=a.subtract(r);return s.x||s.y?(t.animate&&t.pan?this.panBy(s):(t.pan&&this._rawPanBy(s),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(i(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:n,newSize:o})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=e({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var n=i(this._handleGeolocationResponse,this),o=i(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(n,o,t):navigator.geolocation.getCurrentPosition(n,o,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){var e=t.code,i=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+i+"."})},_handleGeolocationResponse:function(t){var e=new k(t.coords.latitude,t.coords.longitude),i=e.toBounds(t.coords.accuracy),n=this._locateOptions;if(n.setView){var o=this.getBoundsZoom(i);this.setView(e,n.maxZoom?Math.min(o,n.maxZoom):o)}var a={latlng:e,bounds:i,timestamp:t.timestamp};for(var r in t.coords)"number"==typeof t.coords[r]&&(a[r]=t.coords[r]);this.fire("locationfound",a)},addHandler:function(t,e){if(!e)return this;var i=this[t]=new e(this);return this._handlers.push(i),this.options[t]&&i.enable(),this},remove:function(){if(this._initEvents(!0),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(t){this._container._leaflet_id=void 0,this._containerId=void 0}var t;for(t in at(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)at(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var i=ot("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),e||this._mapPane);return t&&(this._panes[t]=i),i},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new C(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZo
vendor: 7,558 bytes, line 12
12om?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,i){t=P(t),i=w(i||[0,0]);var n=this.getZoom()||0,o=this.getMinZoom(),a=this.getMaxZoom(),r=t.getNorthWest(),s=t.getSouthEast(),l=this.getSize().subtract(i),c=T(this.project(s,n),this.project(r,n)).getSize(),u=Se?this.options.zoomSnap:1,h=l.x/c.x,d=l.y/c.y,f=e?Math.max(h,d):Math.min(h,d);return n=this.getScaleZoom(f,n),u&&(n=Math.round(n/(u/100))*(u/100),n=e?Math.ceil(n/u)*u:Math.floor(n/u)*u),Math.max(o,Math.min(a,n))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new b(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var i=this._getTopLeftPoint(t,e);return new x(i,i.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"==typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var i=this.options.crs;return e=void 0===e?this._zoom:e,i.scale(t)/i.scale(e)},getScaleZoom:function(t,e){var i=this.options.crs;e=void 0===e?this._zoom:e;var n=i.zoom(t*i.scale(e));return isNaN(n)?1/0:n},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint(S(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(w(t),e)},layerPointToLatLng:function(t){var e=w(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){return this.project(S(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(S(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(P(t))},distance:function(t,e){return this.options.crs.distance(S(t),S(e))},containerPointToLayerPoint:function(t){return w(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return w(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(w(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(S(t)))},mouseEventToContainerPoint:function(t){return X(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=it(t);if(!e)throw new Error("Map container not found.");if(e._leaflet_id)throw new Error("Map container is already initialized.");V(e,"scroll",this._onScroll,this),this._containerId=n(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&Se,ut(t,"leaflet-container"+(Ie?" leaflet-touch":"")+(Ne?" leaflet-retina":"")+(fe?" leaflet-oldie":"")+(we?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=nt(t,"position");"absolute"!==e&&"relative"!==e&&"fixed"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),vt(this._mapPane,new b(0,0)),this.createPane("tilePane"),this.createPane("shadowPane"),this.createPane("overlayPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(ut(t.markerPane,"leaflet-zoom-hide"),ut(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e){vt(this._mapPane,new b(0,0));var i=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var n=this._zoom!==e;this._moveStart(n)._move(t,e)._moveEnd(n),this.fire("viewreset"),i&&this.fire("load")},_moveStart:function(t){return t&&this.fire("zoomstart"),this.fire("movestart")},_move:function(t,e,i){void 0===e&&(e=this._zoom);var n=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),(n||i&&i.pinch)&&this.fire("zoom",i),this.fire("move",i)},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return g(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){vt(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[n(this._container)]=this;var e=t?W:V;e(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),Se&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){g(this._resizeRequest),this._resizeRequest=v((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var i,o=[],a="mouseout"===e||"mouseover"===e,r=t.target||t.srcElement,s=!1;r;){if((i=this._targets[n(r)])&&("click"===e||"preclick"===e)&&!t._simulated&&this._draggableMoved(i)){s=!0;break}if(i&&i.listens(e,!0)){if(a&&!et(r,t))break;if(o.push(i),a)break}if(r===this._container)break;r=r.parentNode}return o.length||s||a||!et(r,t)||(o=[this]),o},_handleDOMEvent:function(t){if(this._loaded&&!tt(t)){var e=t.type;"mousedown"!==e&&"keypress"!==e||wt(t.target||t.srcElement),this._fireDOMEvent(t,e)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,i,n){if("click"===t.type){var o=e({},t);o.type="preclick",this._fireDOMEvent(o,o.type,n)}if(!t._stopped&&(n=(n||[]).concat(this._findEventTargets(t,i))).length){var a=n[0];"contextmenu"===i&&a.listens(i,!0)&&K(t);var r={originalEvent:t};if("keypress"!==t.type){var s=a.options&&"icon"in a.options;r.containerPoint=s?this.latLngToContainerPoint(a.getLatLng()):this.mouseEventToContainerPoint(t),r.layerPoint=this.containerPointToLayerPoint(r.containerPoint),r.latlng=s?a.getLatLng():this.layerPointToLatLng(r.layerPoint)}for(var l=0;l<n.length;l++)if(n[l].fire(i,r,!0),r.originalEvent._stopped||!1===n[l].options.bubblingMouseEvents&&-1!==p(this._mouseEvents,i))return}},_draggableMoved:function(t){return(t=t.dragging&&t.dragging.enabled()?t:this).dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,e=this._handlers.length;t<e;t++)this._handlers[t].disable()},whenReady:function(t,e){return this._loaded?t.call(e||this,{target:this}):this.on("load",t,e),this},_getMapPanePos:function(){return gt(this._mapPane)||new b(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,e){return(t&&void 0!==e?this._getNewPixelOrigin(t,e):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,e){var i=this.getSize()._divideBy(2);return this.project(t,e)._subtract(i)._add(this._getMapPanePos())._round()}
vendor: 1,064 bytes, line 12
12,_latLngToNewLayerPoint:function(t,e,i){var n=this._getNewPixelOrigin(i,e);return this.project(t,e)._subtract(n)},_latLngBoundsToNewLayerBounds:function(t,e,i){var n=this._getNewPixelOrigin(i,e);return T([this.project(t.getSouthWest(),e)._subtract(n),this.project(t.getNorthWest(),e)._subtract(n),this.project(t.getSouthEast(),e)._subtract(n),this.project(t.getNorthEast(),e)._subtract(n)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,i){if(!i)return t;var n=this.project(t,e),o=this.getSize().divideBy(2),a=new x(n.subtract(o),n.add(o)),r=this._getBoundsOffset(a,i,e);return r.round().equals([0,0])?t:this.unproject(n.add(r),e)},_limitOffset:function(t,e){if(!e)return t;var i=this.getPixelBounds(),n=new x(i.min.add(t),i.max.add(t));return t.add(this._getBoundsOffset(n,e))},_getBoundsOffset:function(t,e,i){var n=T(this.project(e.getNorthEast(),i),this.project(e.getSouthWest
vendor: 28,063 bytes, line 12
12(),i)),o=n.min.subtract(t.min),a=n.max.subtract(t.max);return new b(this._rebound(o.x,-a.x),this._rebound(o.y,-a.y))},_rebound:function(t,e){return t+e>0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),i=this.getMaxZoom(),n=Se?this.options.zoomSnap:1;return n&&(t=Math.round(t/n)*n),Math.max(e,Math.min(i,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){ht(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var i=this._getCenterOffset(t)._floor();return!(!0!==(e&&e.animate)&&!this.getSize().contains(i)||(this.panBy(i,e),0))},_createAnimProxy:function(){var t=this._proxy=ot("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",(function(t){var e=ni,i=this._proxy.style[e];_t(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),i===this._proxy.style[e]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",(function(){var t=this.getCenter(),e=this.getZoom();_t(this._proxy,this.project(t,e),this.getZoomScale(e,1))}),this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){at(this._proxy),delete this._proxy},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,i){if(this._animatingZoom)return!0;if(i=i||{},!this._zoomAnimated||!1===i.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var n=this.getZoomScale(e),o=this._getCenterOffset(t)._divideBy(1-1/n);return!(!0!==i.animate&&!this.getSize().contains(o)||(v((function(){this._moveStart(!0)._animateZoom(t,e,!0)}),this),0))},_animateZoom:function(t,e,n,o){n&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,ut(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:o}),setTimeout(i(this._onZoomTransitionEnd,this),250)},_onZoomTransitionEnd:function(){this._animatingZoom&&(ht(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom),v((function(){this._moveEnd(!0)}),this))}}),di=y.extend({options:{position:"topright"},initialize:function(t){h(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),i=this.getPosition(),n=t._controlCorners[i];return ut(e,"leaflet-control"),-1!==i.indexOf("bottom")?n.insertBefore(e,n.firstChild):n.appendChild(e),this},remove:function(){return this._map?(at(this._container),this.onRemove&&this.onRemove(this._map),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),fi=function(t){return new di(t)};hi.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){function t(t,o){var a=i+t+" "+i+o;e[t+o]=ot("div",a,n)}var e=this._controlCorners={},i="leaflet-",n=this._controlContainer=ot("div",i+"control-container",this._container);t("top","left"),t("top","right"),t("bottom","left"),t("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)at(this._controlCorners[t]);at(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var pi=di.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,i,n){return i<n?-1:n<i?1:0}},initialize:function(t,e,i){for(var n in h(this,i),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,t)this._addLayer(t[n],n);for(n in e)this._addLayer(e[n],n,!0)},onAdd:function(t){this._initLayout(),this._update(),this._map=t,t.on("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return di.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,e){return this._addLayer(t,e),this._map?this._update():this},addOverlay:function(t,e){return this._addLayer(t,e,!0),this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var e=this._getLayer(n(t));return e&&this._layers.splice(this._layers.indexOf(e),1),this._map?this._update():this},expand:function(){ut(this._container,"leaflet-control-layers-expanded"),this._form.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._form.clientHeight?(ut(this._form,"leaflet-control-layers-scrollbar"),this._form.style.height=t+"px"):ht(this._form,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return ht(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=ot("div",t),i=this.options.collapsed;e.setAttribute("aria-haspopup",!0),G(e),J(e);var n=this._form=ot("form",t+"-list");i&&(this._map.on("click",this.collapse,this),_e||V(e,{mouseenter:this.expand,mouseleave:this.collapse},this));var o=this._layersLink=ot("a",t+"-toggle",e);o.href="#",o.title="Layers",Ie?(V(o,"click",Y),V(o,"click",this.expand,this)):V(o,"focus",this.expand,this),i||this.expand(),this._baseLayersList=ot("div",t+"-base",n),this._separator=ot("div",t+"-separator",n),this._overlaysList=ot("div",t+"-overlays",n),e.appendChild(n)},_getLayer:function(t){for(var e=0;e<this._layers.length;e++)if(this._layers[e]&&n(this._layers[e].layer)===t)return this._layers[e]},_addLayer:function(t,e,n){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:e,overlay:n}),this.options.sortLayers&&this._layers.sort(i((function(t,e){return this.options.sortFunction(t.layer,e.layer,t.name,e.name)}),this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;rt(this._baseLayersList),rt(this._overlaysList),this._layerControlInputs=[];var t,e,i,n,o=0;for(i=0;i<this._layers.length;i++)n=this._layers[i],this._addItem(n),e=e||n.overlay,t=t||!n.overlay,o+=n.overlay?0:1;return this.options.hideSingleBase&&(t=t&&o>1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(n(t.target)),i=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;i&&this._map.fire(i,e)},_createRadioElement:function(t,e){var i='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(e?' checked="checked"':"")+"/>",n=document.createElement("div");return n.innerHTML=i,n.firstChild},_addItem:function(t){var e,i=document.createElement("label"),o=this._map.hasLayer(t.layer);t.overlay?((e=document.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=o):e=this._createRadioElement("leaflet-base-layers",o),this._layerControlInputs.push(e),e.layerId=n(t.layer),V(e,"click",this._onInputClick,this);var a=document.createElement("span");a.innerHTML=" "+t.name;var r=document.createElement("div");return i.appendChild(r),r.appendChild(e),r.appendChild(a),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(i),this._checkDisabledLayers(),i},_onInputClick:function(){var t,e,i=this._layerControlInputs,n=[],o=[];this._handlingClick=!0;for(var a=i.length-1;a>=0;a--)t=i[a],e=this._getLayer(t.layerId).layer,t.checked?n.push(e):t.checked||o.push(e);for(a=0;a<o.length;a++)this._map.hasLayer(o[a])&&this._map.removeLayer(o[a]);for(a=0;a<n.length;a++)this._map.hasLayer(n[a])||this._map.addLayer(n[a]);this._handlingClick=!1,this._refocusOnMap()},_checkDisabledLayers:function(){for(var t,e,i=this._layerControlInputs,n=this._map.getZoom(),o=i.length-1;o>=0;o--)t=i[o],e=this._getLayer(t.layerId).layer,t.disabled=void 0!==e.options.minZoom&&n<e.options.minZoom||void 0!==e.options.maxZoom&&n>e.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expand:function(){return this.expand()},_collapse:function(){return this.collapse()}}),mi=di.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"&#x2212;",zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",i=ot("div",e+" leaflet-bar"),n=this.options;return this._zoomInButton=this._createButton(n.zoomInText,n.zoomInTitle,e+"-in",i,this._zoomIn),this._zoomOutButton=this._createButton(n.zoomOutText,n.zoomOutTitle,e+"-out",i,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),i},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,i,n,o){var a=ot("a",i,n);return a.innerHTML=t,a.href="#",a.title=e,a.setAttribute("role","button"),a.setAttribute("aria-label",e),G(a),V(a,"click",Y),V(a,"click",o,this),V(a,"click",this._refocusOnMap,this),a},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";ht(this._zoomInButton,e),ht(this._zoomOutButton,e),(this._disabled||t._zoom===t.getMinZoom())&&ut(this._zoomOutButton,e),(this._disabled||t._zoom===t.getMaxZoom())&&ut(this._zoomInButton,e)}});hi.mergeOptions({zoomControl:!0}),hi.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new mi,this.addControl(this.zoomControl))}));var _i=di.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e=ot("div","leaflet-control-scale"),i=this.options;return this._addScales(i,"leaflet-control-scale-line",e),t.on(i.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),e},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,i){t.metric&&(this._mScale=ot("div",e,i)),t.imperial&&(this._iScale=ot("div",e,i))},_update:function(){var t=this._map,e=t.getSize().y/2,i=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(i)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t),i=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,i,e/t)},_updateImperial:function(t){var e,i,n,o=3.2808399*t;o>5280?(e=o/5280,i=this._getRoundNum(e),this._updateScale(this._iScale,i+" mi",i/e)):(n=this._getRoundNum(o),this._updateScale(this._iScale,n+" ft",n/o))},_updateScale:function(t,e,i){t.style.width=Math.round(this.options.maxWidth*i)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),i=t/e;return e*(i=i>=10?10:i>=5?5:i>=3?3:i>=2?2:1)}}),vi=di.extend({options:{position:"bottomright",prefix:'<a href="http://leafletjs.com" title="A JS library for interactive maps">Leaflet</a>'},initialize:function(t){h(this,t),this._attributions={}},onAdd:function(t){for(var e in t.attributionControl=this,this._container=ot("div","leaflet-control-attribution"),G(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),this._container},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var i=[];this.options.prefix&&i.push(this.options.prefix),t.length&&i.push(t.join(", ")),this._container.innerHTML=i.join(" | ")}}});hi.mergeOptions({attributionControl:!0}),hi.addInitHook((function(){this.options.attributionControl&&(new vi).addTo(this)})),di.Layers=pi,di.Zoom=mi,di.Scale=_i,di.Attribution=vi,fi.layers=function(t,e,i){return new pi(t,e,i)},fi.zoom=function(t){return new mi(t)},fi.scale=function(t){return new _i(t)},fi.attribution=function(t){return new vi(t)};var gi,yi=y.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}}),bi={Events:te},wi=Ie?"touchstart mousedown":"mousedown",xi={mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},Li={mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"},Ti=ee.extend({options:{clickTolerance:3},initialize:function(t,e,i,n){h(this,n),this._element=t,this._dragStartTarget=e||t,this._preventOutline=i},enable:function(){this._enabled||(V(this._dragStartTarget,wi,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Ti._dragging===this&&this.finishDrag(),W(this._dragStartTarget,wi,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(!t._simulated&&this._enabled&&(this._moved=!1,!ct(this._element,"leaflet-zoom-anim")&&!(Ti._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||(Ti._dragging=this,this._preventOutline&&wt(this._element),yt(),re(),this._moving)))){this.fire("down");var e=t.touches?t.touches[0]:t;this._startPoint=new b(e.clientX,e.clientY),V(document,Li[t.type],this._onMove,this),V(document,xi[t.type],this._onUp,this)}},_onMove:function(t){if(!t._simulated&&this._enabled)if(t.touches&&t.touches.length>1)this._moved=!0;else{var e=t.touches&&1===t.touches.length?t.touches[0]:t,i=new b(e.clientX,e.clientY).subtract(this._startPoint);(i.x||i.y)&&(Math.abs(i.x)+Math.abs(i.y)<this.options.clickTolerance||(K(t),this._moved||(this.fire("dragstart"),this._moved=!0,this._startPos=gt(this._element).subtract(i),ut(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),ut(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(i),this._moving=!0,g(this._animRequest),this._lastEvent=t,this._animRequest=v(this._updatePosition,this,!0)))}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),vt(this._element,this._newPos),this.fire("drag",t)},_onUp:function(t){!t._simulated&&this._enabled&&this.finishDrag()},finishDrag:function(){for(var t in ht(document.body,"leaflet-dragging"),this._lastTarget&&(ht(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Li)W(document,Li[t],this._onMove,this),W(document,xi[t],this._onUp,this);bt(),se(),this._moved&&this._moving&&(g(this._animRequest),this.fire("dragend",{distance:this._newPos.distanceTo(this._startPos)})),this._moving=!1,Ti._dragging=!1}}),Ci=(Object.freeze||Object)({simplify:Lt,pointToSegmentDistance:Tt,closestPointOnSegment:function(t,e,i){return zt(t,e,i)},clipSegment:Ct,_getEdgeIntersection:Pt,_getBitCode:kt,_sqClosestPointOnSegment:zt,isFlat:Et,_flat:At}),Pi=(Object.freeze||Object)({clipPolygon:Mt}),ki={project:function(t){return new b(t.lng,t.lat)},unproject:function(t){return new k(t.y,t.x)},bounds:new x([-180,-90],[180,90])},Si={R:6378137,R_MINOR:6356752.314245179,bounds:new x([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var e=Math.PI/180,i=this.R,n=t.lat*e,o=this.R_MINOR/i,a=Math.sqrt(1-o*o),r=a*Math.sin(n),s=Math.tan(Math.PI/4-n/2)/Math.pow((1-r)/(1+r),a/2);return n=-i*Math.log(Math.max(s,1e-10)),new b(t.lng*e*i,n)},unproject:function(t){for(var e,i=180/Math.PI,n=this.R,o=this.R_MINOR/n,a=Math.sqrt(1-o*o),r=Math.exp(-t.y/n),s=Math.PI/2-2*Math.atan(r),l=0,c=.1;l<15&&Math.abs(c)>1e-7;l++)e=a*Math.sin(s),e=Math.pow((1-e)/(1+e),a/2),s+=c=Math.PI/2-2*Math.atan(r*e)-s;return new k(s*i,t.x*i/n)}},zi=(Object.freeze||Object)({LonLat:ki,Mercator:Si,SphericalMercator:oe}),Ei=e({},ne,{code:"EPSG:3395",projection:Si,transformation:function(){var t=.5/(Math.PI*Si.R);return E(t,.5,-t,.5)}()}),Ai=e({},ne,{code:"EPSG:4326",projection:ki,transformation:E(1/180,1,-1/180,.5)}),Mi=e({},ie,{projection:ki,transformation:E(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var i=e.lng-t.lng,n=e.lat-t.lat;return Math.sqrt(i*i+n*n)},infinite:!0});ie.Earth=ne,ie.EPSG3395=Ei,ie.EPSG3857=ce,ie.EPSG900913=ue,ie.EPSG4326=Ai,ie.Simple=Mi;var Oi=ee.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[n(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[n(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var i=this.getEvents();e.on(i,this),this.once("remove",(function(){e.off(i,this)}),this)}this.onAdd(e),this.getAttribution&&e.attributionControl&&e.attributionControl.addAttribution(this.getAttribution()),this.fire("add"),e.fire("layeradd",{layer:this})}}});hi.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=n(t);return this._layers[e]||(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this},removeLayer:function(t){var e=n(t);return this._layers[e]?(this._loaded&&t.onRemove(this),t.getAttribution&&this.attributionControl&&this.attributionControl.removeAttribution(t.getAttribution()),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return!!t&&n(t)in this._layers},eachLayer:function(t,e){for(var i in this._layers)t.call(e,this._layers[i]);return this},_addLayers:function(t){for(var e=0,i=(t=t?Gt(t)?t:[t]:[]).length;e<i;e++)this.addLayer(t[e])},_addZoomLimit:function(t){!isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[n(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var e=n(t);this._zoomBoundLayers[e]&&(delete this._zoomBoundLayers[e],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,e=-1/0,i=this._getZoomSpan();for(var n in this._zoomBoundLayers){var o=this._zoomBoundLayers[n].options;t=void 0===o.minZoom?t:Math.min(t,o.minZoom),e=void 0===o.maxZoom?e:Math.max(e,o.maxZoom)}this._layersMaxZoom=e===-1/0?void 0:e,this._layersMinZoom=t===1/0?void 0:t,i!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var Ii=Oi.extend({initialize:function(t){var e,i;if(this._layers={},t)for(e=0,i=t.length;e<i;e++)this.addLayer(t[e])},addLayer:function(t){var e=this.getLayerId(t);return this._layers[e]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var e=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[e]&&this._map.removeLayer(this._layers[e]),delete this._layers[e],this},hasLayer:function(t){return!!t&&(t in this._layers||this.getLayerId(t)in this._layers)},clearLayers:function(){for(var t in this._layers)this.removeLayer(this._layers[t]);return this},invoke:function(t){var e,i,n=Array.prototype.slice.call(arguments,1);for(e in this._layers)(i=this._layers[e])[t]&&i[t].apply(i,n);return this},onAdd:function(t){for(var e in this._layers)t.addLayer(this._layers[e])},onRemove:function(t){for(var e in this._layers)t.removeLayer(this._layers[e])},eachLayer:function(t,e){for(var i in this._layers)t.call(e,this._layers[i]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];for(var e in this._layers)t.push(this._layers[e]);return t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return n(t)}}),Bi=Ii.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),Ii.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),Ii.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new C;for(var e in this._layers){var i=this._layers[e];t.extend(i.getBounds?i.getBounds():i.getLatLng())}return t}}),Zi=y.extend({initialize:function(t){h(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var i=this._getIconUrl(t);if(!i){if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var n=this._createImg(i,e&&"IMG"===e.tagName?e:null);return this._setIconStyles(n,t),n},_setIconStyles:function(t,e){var i=this.options,n=i[e+"Size"];"number"==typeof n&&(n=[n,n]);var o=w(n),a=w("shadow"===e&&i.shadowAnchor||i.iconAnchor||o&&o.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(i.className||""),a&&(t.style.marginLeft=-a.x+"px",t.style.marginTop=-a.y+"px"),o&&(t.style.width=o.x+"px",t.style.height=o.y+"px")},_createImg:function(t,e){return(e=e||document.createElement("img")).src=t,e},_getIconUrl:function(t){return Ne&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}}),Ni=Zi.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return Ni.imagePath||(Ni.imagePath=this._detectIconPath()),(this.options.imagePath||Ni.imagePath)+Zi.prototype._getIconUrl.call(this,t)},_detectIconPath:function(){var t=ot("div","leaflet-default-icon-path",document.body),e=nt(t,"background-image")||nt(t,"backgroundImage");return document.body.removeChild(t),null===e||0!==e.indexOf("url")?"":e.replace(/^url\([\"\']?/,"").replace(/marker-icon\.png[\"\']?\)$/,"")}}),Di=yi.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new Ti(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),ut(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&ht(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup().fire("movestart").fire("dragstart")},_onDrag:function(t){var e=this._marker,i=e._shadow,n=gt(e._icon),o=e._map.layerPointToLatLng(n);i&&vt(i,n),e._latlng=o,t.latlng=o,t.oldLatLng=this._oldLatLng,e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),Ri=Oi.extend({options:{icon:new Ni,interactive:!0,draggable:!1,keyboard:!0,title:"",alt:"",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",bubblingMouseEvents:!1},initialize:function(t,e){h(this,e),this._latlng=S(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var e=this._latlng;return this._latlng=S(t),this.update(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,e="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),i=t.icon.createIcon(this._icon),n=!1;i!==this._icon&&(this._icon&&this._removeIcon(),n=!0,t.title&&(i.title=t.title),t.alt&&(i.alt=t.alt)),ut(i,e),t.keyboard&&(i.tabIndex="0"),this._icon=i,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex});var o=t.icon.createShadow(this._shadow),a=!1;o!==this._shadow&&(this._removeShadow(),a=!0),o&&(ut(o,e),o.alt=""),this._shadow=o,t.opacity<1&&this._updateOpacity(),n&&this.getPane().appendChild(this._icon),this._initInteraction(),o&&a&&this.getPane("shadowPane").appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),at(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&at(this._shadow),this._shadow=null},_setPos:function(t){vt(this._icon,t),this._shadow&&vt(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon.style.zIndex=this._zIndex+t},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(e)},_initInteraction:function(){if(this.options.interactive&&(ut(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Di)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Di(this),t&&this.dragging.enable()}},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;pt(this._icon,t),this._shadow&&pt(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor||[0,0]},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor||[0,0]}}),ji=Oi.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,f
vendor: 1,181 bytes, line 12
12illRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(t){return h(this,t),this._renderer&&this._renderer._updateStyle(this),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(Ie?10:0)}}),Hi=ji.extend({options:{fill:!0,radius:10},initialize:function(t,e){h(this,e),this._latlng=S(t),this._radius=this.options.radius},setLatLng:function(t){return this._latlng=S(t),this.redraw(),this.fire("move",{latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius}
vendor: 4,858 bytes, line 12
12,setStyle:function(t){var e=t&&t.radius||this._radius;return ji.prototype.setStyle.call(this,t),this.setRadius(e),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,e=this._radiusY||t,i=this._clickTolerance(),n=[t+i,e+i];this._pxBounds=new x(this._point.subtract(n),this._point.add(n))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}}),Vi=Hi.extend({initialize:function(t,i,n){if("number"==typeof i&&(i=e({},n,{radius:i})),h(this,i),this._latlng=S(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(t){return this._mRadius=t,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new C(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:ji.prototype.setStyle,_project:function(){var t=this._latlng.lng,e=this._latlng.lat,i=this._map,n=i.options.crs;if(n.distance===ne.distance){var o=Math.PI/180,a=this._mRadius/ne.R/o,r=i.project([e+a,t]),s=i.project([e-a,t]),l=r.add(s).divideBy(2),c=i.unproject(l).lat,u=Math.acos((Math.cos(a*o)-Math.sin(e*o)*Math.sin(c*o))/(Math.cos(e*o)*Math.cos(c*o)))/o;(isNaN(u)||0===u)&&(u=a/Math.cos(Math.PI/180*e)),this._point=l.subtract(i.getPixelOrigin()),this._radius=isNaN(u)?0:Math.max(Math.round(l.x-i.project([c,t-u]).x),1),this._radiusY=Math.max(Math.round(l.y-r.y),1)}else{var h=n.unproject(n.project(this._latlng).subtract([this._mRadius,0]));this._point=i.latLngToLayerPoint(this._latlng),this._radius=this._point.x-i.latLngToLayerPoint(h).x}this._updateBounds()}}),Wi=ji.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,e){h(this,e),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var e,i,n=1/0,o=null,a=zt,r=0,s=this._parts.length;r<s;r++)for(var l=this._parts[r],c=1,u=l.length;c<u;c++){var h=a(t,e=l[c-1],i=l[c],!0);h<n&&(n=h,o=a(t,e,i))}return o&&(o.distance=Math.sqrt(n)),o},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var t,e,i,n,o,a,r,s=this._rings[0],l=s.length;if(!l)return null;for(t=0,e=0;t<l-1;t++)e+=s[t].distanceTo(s[t+1])/2;if(0===e)return this._map.layerPointToLatLng(s[0]);for(t=0,n=0;t<l-1;t++)if(o=s[t],a=s[t+1],(n+=i=o.distanceTo(a))>e)return r=(n-e)/i,this._map.layerPointToLatLng([a.x-r*(a.x-o.x),a.y-r*(a.y-o.y)])},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=S(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new C,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return Et(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],i=Et(t),n=0,o=t.length;n<o;n++)i?(e[n]=S(t[n]),this._bounds.extend(e[n])):e[n]=this._convertLatLngs(t[n]);return e},_project:function(){var t=new x;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t);var e=this._clickTolerance(),i=new b(e,e);this._bounds.isValid()&&t.isValid()&&(t.min._subtract(i),t.max._add(i),this._pxBounds=t)},_projectLatlngs:function(t,e,i){var n,o,a=t[0]instanceof k,r=t.length;if(a){for(o=[],n=0;n<r;n++)o[n]=this._map.latLngToLayerPoint(t[n]),i.extend(o[n]);e.push(o)}else for(n=0;n<r;n++)this._projectLatlngs(t[n],e,i)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else{var e,i,n,o,a,r,s,l=this._parts;for(e=0,n=0,o=this._rings.length;e<o;e++)for(i=0,a=(s=this._rings[e]).length;i<a-1;i++)(r=Ct(s[i],s[i+1],t,i,!0))&&(l[n]=l[n]||[],l[n].push(r[0]),r[1]===s[i+1]&&i!==a-2||(l[n].push(r[1]),n++))}},_simplifyPoints:function(){for(var t=this._parts,e=this.options.smoothFactor,i=0,n=t.length;i<n;i++)t[i]=Lt(t[i],e)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,e){var i,n,o,a,r,s,l=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(i=0,a=this._parts.length;i<a;i++)for(n=0,o=(r=(s=this._parts[i]).length)-1;n<r;o=n++)if((e||0!==n)&&Tt(t,s[o],s[n])<=l)return!0;return!1}});Wi._flat=At;var Fi=Wi.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length}
vendor: 54,659 bytes, line 12
12,getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var t,e,i,n,o,a,r,s,l,c=this._rings[0],u=c.length;if(!u)return null;for(a=r=s=0,t=0,e=u-1;t<u;e=t++)i=c[t],n=c[e],o=i.y*n.x-n.y*i.x,r+=(i.x+n.x)*o,s+=(i.y+n.y)*o,a+=3*o;return l=0===a?c[0]:[r/a,s/a],this._map.layerPointToLatLng(l)},_convertLatLngs:function(t){var e=Wi.prototype._convertLatLngs.call(this,t),i=e.length;return i>=2&&e[0]instanceof k&&e[0].equals(e[i-1])&&e.pop(),e},_setLatLngs:function(t){Wi.prototype._setLatLngs.call(this,t),Et(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Et(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,i=new b(e,e);if(t=new x(t.min.subtract(i),t.max.add(i)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var n,o=0,a=this._rings.length;o<a;o++)(n=Mt(this._rings[o],t,!0)).length&&this._parts.push(n)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var e,i,n,o,a,r,s,l,c=!1;if(!this._pxBounds.contains(t))return!1;for(o=0,s=this._parts.length;o<s;o++)for(a=0,r=(l=(e=this._parts[o]).length)-1;a<l;r=a++)i=e[a],n=e[r],i.y>t.y!=n.y>t.y&&t.x<(n.x-i.x)*(t.y-i.y)/(n.y-i.y)+i.x&&(c=!c);return c||Wi.prototype._containsPoint.call(this,t,!0)}}),Ui=Bi.extend({initialize:function(t,e){h(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,i,n,o=Gt(t)?t:t.features;if(o){for(e=0,i=o.length;e<i;e++)((n=o[e]).geometries||n.geometry||n.features||n.coordinates)&&this.addData(n);return this}var a=this.options;if(a.filter&&!a.filter(t))return this;var r=Ot(t,a);return r?(r.feature=Rt(t),r.defaultOptions=r.options,this.resetStyle(r),a.onEachFeature&&a.onEachFeature(t,r),this.addLayer(r)):this},resetStyle:function(t){return t.options=e({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this},setStyle:function(t){return this.eachLayer((function(e){this._setLayerStyle(e,t)}),this)},_setLayerStyle:function(t,e){"function"==typeof e&&(e=e(t.feature)),t.setStyle&&t.setStyle(e)}}),qi={toGeoJSON:function(t){return Dt(this,{type:"Point",coordinates:Zt(this.getLatLng(),t)})}};Ri.include(qi),Vi.include(qi),Hi.include(qi),Wi.include({toGeoJSON:function(t){var e=!Et(this._latlngs);return Dt(this,{type:(e?"Multi":"")+"LineString",coordinates:Nt(this._latlngs,e?1:0,!1,t)})}}),Fi.include({toGeoJSON:function(t){var e=!Et(this._latlngs),i=e&&!Et(this._latlngs[0]),n=Nt(this._latlngs,i?2:e?1:0,!0,t);return e||(n=[n]),Dt(this,{type:(i?"Multi":"")+"Polygon",coordinates:n})}}),Ii.include({toMultiPoint:function(t){var e=[];return this.eachLayer((function(i){e.push(i.toGeoJSON(t).geometry.coordinates)})),Dt(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===e)return this.toMultiPoint(t);var i="GeometryCollection"===e,n=[];return this.eachLayer((function(e){if(e.toGeoJSON){var o=e.toGeoJSON(t);if(i)n.push(o.geometry);else{var a=Rt(o);"FeatureCollection"===a.type?n.push.apply(n,a.features):n.push(a)}}})),i?Dt(this,{geometries:n,type:"GeometryCollection"}):{type:"FeatureCollection",features:n}}});var Ji=jt,Gi=Oi.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,i){this._url=t,this._bounds=P(e),h(this,i)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(ut(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){at(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&st(this._image),this},bringToBack:function(){return this._map&&lt(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=P(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t=this._image=ot("img","leaflet-image-layer "+(this._zoomAnimated?"leaflet-zoom-animated":"")+(this.options.className||""));t.onselectstart=s,t.onmousemove=s,t.onload=i(this.fire,this,"load"),t.onerror=i(this._overlayOnError,this,"error"),this.options.crossOrigin&&(t.crossOrigin=""),this.options.zIndex&&this._updateZIndex(),t.src=this._url,t.alt=this.options.alt},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),i=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;_t(this._image,i,e)},_reset:function(){var t=this._image,e=new x(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),i=e.getSize();vt(t,e.min),t.style.width=i.x+"px",t.style.height=i.y+"px"},_updateOpacity:function(){pt(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)}}),Ki=Gi.extend({options:{autoplay:!0,loop:!0},_initImage:function(){var t="VIDEO"===this._url.tagName,e=this._image=t?this._url:ot("video");if(e.class=e.class||"",e.class+="leaflet-image-layer "+(this._zoomAnimated?"leaflet-zoom-animated":""),e.onselectstart=s,e.onmousemove=s,e.onloadeddata=i(this.fire,this,"load"),!t){Gt(this._url)||(this._url=[this._url]),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop;for(var n=0;n<this._url.length;n++){var o=ot("source");o.src=this._url[n],e.appendChild(o)}}}}),Yi=Oi.extend({options:{offset:[0,7],className:"",pane:"popupPane"},initialize:function(t,e){h(this,t),this._source=e},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&pt(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&pt(this._container,1),this.bringToFront()},onRemove:function(t){t._fadeAnimated?(pt(this._container,0),this._removeTimeout=setTimeout(i(at,void 0,this._container),200)):at(this._container)},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=S(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&st(this._container),this},bringToBack:function(){return this._map&&lt(this._container),this},_updateContent:function(){if(this._content){var t=this._contentNode,e="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof e)t.innerHTML=e;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(e)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),e=w(this.options.offset),i=this._getAnchor();this._zoomAnimated?vt(this._container,t.add(i)):e=e.add(t).add(i);var n=this._containerBottom=-e.y,o=this._containerLeft=-Math.round(this._containerWidth/2)+e.x;this._container.style.bottom=n+"px",this._container.style.left=o+"px"}},_getAnchor:function(){return[0,0]}}),Xi=Yi.extend({options:{maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,className:""},openOn:function(t){return t.openPopup(this),this},onAdd:function(t){Yi.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof ji||this._source.on("preclick",q))},onRemove:function(t){Yi.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof ji||this._source.off("preclick",q))},getEvents:function(){var t=Yi.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this._close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_close:function(){this._map&&this._map.closePopup(this)},_initLayout:function(){var t="leaflet-popup",e=this._container=ot("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),i=this._wrapper=ot("div",t+"-content-wrapper",e);if(this._contentNode=ot("div",t+"-content",i),G(i),J(this._contentNode),V(i,"contextmenu",q),this._tipContainer=ot("div",t+"-tip-container",e),this._tip=ot("div",t+"-tip",this._tipContainer),this.options.closeButton){var n=this._closeButton=ot("a",t+"-close-button",e);n.href="#close",n.innerHTML="&#215;",V(n,"click",this._onCloseButtonClick,this)}},_updateLayout:function(){var t=this._contentNode,e=t.style;e.width="",e.whiteSpace="nowrap";var i=t.offsetWidth;i=Math.min(i,this.options.maxWidth),i=Math.max(i,this.options.minWidth),e.width=i+1+"px",e.whiteSpace="",e.height="";var n=t.offsetHeight,o=this.options.maxHeight;o&&n>o?(e.height=o+"px",ut(t,"leaflet-popup-scrolled")):ht(t,"leaflet-popup-scrolled"),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),i=this._getAnchor();vt(this._container,e.add(i))},_adjustPan:function(){if(!(!this.options.autoPan||this._map._panAnim&&this._map._panAnim._inProgress)){var t=this._map,e=parseInt(nt(this._container,"marginBottom"),10)||0,i=this._container.offsetHeight+e,n=this._containerWidth,o=new b(this._containerLeft,-i-this._containerBottom);o._add(gt(this._container));var a=t.layerPointToContainerPoint(o),r=w(this.options.autoPanPadding),s=w(this.options.autoPanPaddingTopLeft||r),l=w(this.options.autoPanPaddingBottomRight||r),c=t.getSize(),u=0,h=0;a.x+n+l.x>c.x&&(u=a.x+n-c.x+l.x),a.x-u-s.x<0&&(u=a.x-s.x),a.y+i+l.y>c.y&&(h=a.y+i-c.y+l.y),a.y-h-s.y<0&&(h=a.y-s.y),(u||h)&&t.fire("autopanstart").panBy([u,h])}},_onCloseButtonClick:function(t){this._close(),Y(t)},_getAnchor:function(){return w(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});hi.mergeOptions({closePopupOnClick:!0}),hi.include({openPopup:function(t,e,i){return t instanceof Xi||(t=new Xi(i).setContent(t)),e&&t.setLatLng(e),this.hasLayer(t)?this:(this._popup&&this._popup.options.autoClose&&this.closePopup(),this._popup=t,this.addLayer(t))},closePopup:function(t){return t&&t!==this._popup||(t=this._popup,this._popup=null),t&&this.removeLayer(t),this}}),Oi.include({bindPopup:function(t,e){return t instanceof Xi?(h(t,e),this._popup=t,t._source=this):(this._popup&&!e||(this._popup=new Xi(e,this)),this._popup.setContent(t)),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t,e){if(t instanceof Oi||(e=t,t=this),t instanceof Bi)for(var i in this._layers){t=this._layers[i];break}return e||(e=t.getCenter?t.getCenter():t.getLatLng()),this._popup&&this._map&&(this._popup._source=t,this._popup.update(),this._map.openPopup(this._popup,e)),this},closePopup:function(){return this._popup&&this._popup._close(),this},togglePopup:function(t){return this._popup&&(this._popup._map?this.closePopup():this.openPopup(t)),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){var e=t.layer||t.target;this._popup&&this._map&&(Y(t),e instanceof ji?this.openPopup(t.layer||t.target,t.latlng):this._map.hasLayer(this._popup)&&this._popup._source===e?this.closePopup():this.openPopup(e,t.latlng))},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var $i=Yi.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,interactive:!1,opacity:.9},onAdd:function(t){Yi.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&this._source.fire("tooltipopen",{tooltip:this},!0)},onRemove:function(t){Yi.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&this._source.fire("tooltipclose",{tooltip:this},!0)},getEvents:function(){var t=Yi.prototype.getEvents.call(this);return Ie&&!this.options.permanent&&(t.preclick=this._close),t},_close:function(){this._map&&this._map.closeTooltip(this)},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=ot("div",t)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e=this._map,i=this._container,n=e.latLngToContainerPoint(e.getCenter()),o=e.layerPointToContainerPoint(t),a=this.options.direction,r=i.offsetWidth,s=i.offsetHeight,l=w(this.options.offset),c=this._getAnchor();"top"===a?t=t.add(w(-r/2+l.x,-s+l.y+c.y,!0)):"bottom"===a?t=t.subtract(w(r/2-l.x,-l.y,!0)):"center"===a?t=t.subtract(w(r/2+l.x,s/2-c.y+l.y,!0)):"right"===a||"auto"===a&&o.x<n.x?(a="right",t=t.add(w(l.x+c.x,c.y-s/2+l.y,!0))):(a="left",t=t.subtract(w(r+c.x-l.x,s/2-c.y-l.y,!0))),ht(i,"leaflet-tooltip-right"),ht(i,"leaflet-tooltip-left"),ht(i,"leaflet-tooltip-top"),ht(i,"leaflet-tooltip-bottom"),ut(i,"leaflet-tooltip-"+a),vt(i,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&pt(this._container,t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)},_getAnchor:function(){return w(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}});hi.include({openTooltip:function(t,e,i){return t instanceof $i||(t=new $i(i).setContent(t)),e&&t.setLatLng(e),this.hasLayer(t)?this:this.addLayer(t)},closeTooltip:function(t){return t&&this.removeLayer(t),this}}),Oi.include({bindTooltip:function(t,e){return t instanceof $i?(h(t,e),this._tooltip=t,t._source=this):(this._tooltip&&!e||(this._tooltip=new $i(e,this)),this._tooltip.setContent(t)),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(t){if(t||!this._tooltipHandlersAdded){var e=t?"off":"on",i={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?i.add=this._openTooltip:(i.mouseover=this._openTooltip,i.mouseout=this.closeTooltip,this._tooltip.options.sticky&&(i.mousemove=this._moveTooltip),Ie&&(i.click=this._openTooltip)),this[e](i),this._tooltipHandlersAdded=!t}},openTooltip:function(t,e){if(t instanceof Oi||(e=t,t=this),t instanceof Bi)for(var i in this._layers){t=this._layers[i];break}return e||(e=t.getCenter?t.getCenter():t.getLatLng()),this._tooltip&&this._map&&(this._tooltip._source=t,this._tooltip.update(),this._map.openTooltip(this._tooltip,e),this._tooltip.options.interactive&&this._tooltip._container&&(ut(this._tooltip._container,"leaflet-clickable"),this.addInteractiveTarget(this._tooltip._container))),this},closeTooltip:function(){return this._tooltip&&(this._tooltip._close(),this._tooltip.options.interactive&&this._tooltip._container&&(ht(this._tooltip._container,"leaflet-clickable"),this.removeInteractiveTarget(this._tooltip._container))),this},toggleTooltip:function(t){return this._tooltip&&(this._tooltip._map?this.closeTooltip():this.openTooltip(t)),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_openTooltip:function(t){var e=t.layer||t.target;this._tooltip&&this._map&&this.openTooltip(e,this._tooltip.options.sticky?t.latlng:void 0)},_moveTooltip:function(t){var e,i,n=t.latlng;this._tooltip.options.sticky&&t.originalEvent&&(e=this._map.mouseEventToContainerPoint(t.originalEvent),i=this._map.containerPointToLayerPoint(e),n=this._map.layerPointToLatLng(i)),this._tooltip.setLatLng(n)}});var Qi=Zi.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var e=t&&"DIV"===t.tagName?t:document.createElement("div"),i=this.options;if(e.innerHTML=!1!==i.html?i.html:"",i.bgPos){var n=w(i.bgPos);e.style.backgroundPosition=-n.x+"px "+-n.y+"px"}return this._setIconStyles(e,"icon"),e},createShadow:function(){return null}});Zi.Default=Ni;var tn=Oi.extend({options:{tileSize:256,opacity:1,updateWhenIdle:ze,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){h(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView(),this._update()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),at(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=null},bringToFront:function(){return this._map&&(st(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(lt(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){return this._map&&(this._removeAllTiles(),this._update()),this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=o(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof b?t:new b(t,t)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var e,i=this.getPane().children,n=-t(-1/0,1/0),o=0,a=i.length;o<a;o++)e=i[o].style.zIndex,i[o]!==this._container&&e&&(n=t(n,+e));isFinite(n)&&(this.options.zIndex=n+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!fe){pt(this._container,this.options.opacity);var t=+new Date,e=!1,i=!1;for(var n in this._tiles){var o=this._tiles[n];if(o.current&&o.loaded){var a=Math.min(1,(t-o.loaded)/200);pt(o.el,a),a<1?e=!0:(o.active?i=!0:this._onOpaqueTile(o),o.active=!0)}}i&&!this._noPrune&&this._pruneTiles(),e&&(g(this._fadeFrame),this._fadeFrame=v(this._updateOpacity,this))}},_onOpaqueTile:s,_initContainer:function(){this._container||(this._container=ot("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,e=this.options.maxZoom;if(void 0!==t){for(var i in this._levels)this._levels[i].el.children.length||i===t?(this._levels[i].el.style.zIndex=e-Math.abs(t-i),this._onUpdateLevel(i)):(at(this._levels[i].el),this._removeTilesAtZoom(i),this._onRemoveLevel(i),delete this._levels[i]);var n=this._levels[t],o=this._map;return n||((n=this._levels[t]={}).el=ot("div","leaflet-tile-container leaflet-zoom-animated",this._container),n.el.style.zIndex=e,n.origin=o.project(o.unproject(o.getPixelOrigin()),t).round(),n.zoom=t,this._setZoomTransform(n,o.getCenter(),o.getZoom()),n.el.offsetWidth,this._onCreateLevel(n)),this._level=n,n}},_onUpdateLevel:s,_onRemoveLevel:s,_onCreateLevel:s,_pruneTiles:function(){if(this._map){var t,e,i=this._map.getZoom();if(i>this.options.maxZoom||i<this.options.minZoom)this._removeAllTiles();else{for(t in this._tiles)(e=this._tiles[t]).retain=e.current;for(t in this._tiles)if((e=this._tiles[t]).current&&!e.active){var n=e.coords;this._retainParent(n.x,n.y,n.z,n.z-5)||this._retainChildren(n.x,n.y,n.z,n.z+2)}for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}}},_removeTilesAtZoom:function(t){for(var e in this._tiles)this._tiles[e].coords.z===t&&this._removeTile(e)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)at(this._levels[t].el),this._onRemoveLevel(t),delete this._levels[t];this._removeAllTiles(),this._tileZoom=null},_retainParent:function(t,e,i,n){var o=Math.floor(t/2),a=Math.floor(e/2),r=i-1,s=new b(+o,+a);s.z=+r;var l=this._tileCoordsToKey(s),c=this._tiles[l];return c&&c.active?(c.retain=!0,!0):(c&&c.loaded&&(c.retain=!0),r>n&&this._retainParent(o,a,r,n))},_retainChildren:function(t,e,i,n){for(var o=2*t;o<2*t+2;o++)for(var a=2*e;a<2*e+2;a++){var r=new b(o,a);r.z=i+1;var s=this._tileCoordsToKey(r),l=this._tiles[s];l&&l.active?l.retain=!0:(l&&l.loaded&&(l.retain=!0),i+1<n&&this._retainChildren(o,a,i+1,n))}},_resetView:function(t){var e=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),e,e)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var e=this.options;return void 0!==e.minNativeZoom&&t<e.minNativeZoom?e.minNativeZoom:void 0!==e.maxNativeZoom&&e.maxNativeZoom<t?e.maxNativeZoom:t},_setView:function(t,e,i,n){var o=this._clampZoom(Math.round(e));(void 0!==this.options.maxZoom&&o>this.options.maxZoom||void 0!==this.options.minZoom&&o<this.options.minZoom)&&(o=void 0);var a=this.options.updateWhenZooming&&o!==this._tileZoom;n&&!a||(this._tileZoom=o,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==o&&this._update(t),i||this._pruneTiles(),this._noPrune=!!i),this._setZoomTransforms(t,e)},_setZoomTransforms:function(t,e){for(var i in this._levels)this._setZoomTransform(this._levels[i],t,e)},_setZoomTransform:function(t,e,i){var n=this._map.getZoomScale(i,t.zoom),o=t.origin.multiplyBy(n).subtract(this._map._getNewPixelOrigin(e,i)).round();Se?_t(t.el,o,n):vt(t.el,o)},_resetGrid:function(){var t=this._map,e=t.options.crs,i=this._tileSize=this.getTileSize(),n=this._tileZoom,o=this._map.getPixelWorldBounds(this._tileZoom);o&&(this._globalTileRange=this._pxBoundsToTileRange(o)),this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],n).x/i.x),Math.ceil(t.project([0,e.wrapLng[1]],n).x/i.y)],this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],n).y/i.x),Math.ceil(t.project([e.wrapLat[1],0],n).y/i.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(t){var e=this._map,i=e._animatingZoom?Math.max(e._animateToZoom,e.getZoom()):e.getZoom(),n=e.getZoomScale(i,this._tileZoom),o=e.project(t,this._tileZoom).floor(),a=e.getSize().divideBy(2*n);return new x(o.subtract(a),o.add(a))},_update:function(t){var e=this._map;if(e){var i=this._clampZoom(e.getZoom());if(void 0===t&&(t=e.getCenter()),void 0!==this._tileZoom){var n=this._getTiledPixelBounds(t),o=this._pxBoundsToTileRange(n),a=o.getCenter(),r=[],s=this.options.keepBuffer,l=new x(o.getBottomLeft().subtract([s,-s]),o.getTopRight().add([s,-s]));if(!(isFinite(o.min.x)&&isFinite(o.min.y)&&isFinite(o.max.x)&&isFinite(o.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var c in this._tiles){var u=this._tiles[c].coords;u.z===this._tileZoom&&l.contains(new b(u.x,u.y))||(this._tiles[c].current=!1)}if(Math.abs(i-this._tileZoom)>1)this._setView(t,i);else{for(var h=o.min.y;h<=o.max.y;h++)for(var d=o.min.x;d<=o.max.x;d++){var f=new b(d,h);f.z=this._tileZoom,this._isValidTile(f)&&(this._tiles[this._tileCoordsToKey(f)]||r.push(f))}if(r.sort((function(t,e){return t.distanceTo(a)-e.distanceTo(a)})),0!==r.length){this._loading||(this._loading=!0,this.fire("loading"));var p=document.createDocumentFragment();for(d=0;d<r.length;d++)this._addTile(r[d],p);this._level.el.appendChild(p)}}}}},_isValidTile:function(t){var e=this._map.options.crs;if(!e.infinite){var i=this._globalTileRange;if(!e.wrapLng&&(t.x<i.min.x||t.x>i.max.x)||!e.wrapLat&&(t.y<i.min.y||t.y>i.max.y))return!1}if(!this.options.bounds)return!0;var n=this._tileCoordsToBounds(t);return P(this.options.bounds).overlaps(n)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToBounds:function(t){var e=this._map,i=this.getTileSize(),n=t.scaleBy(i),o=n.add(i),a=new C(e.unproject(n,t.z),e.unproject(o,t.z));return this.options.noWrap||e.wrapLatLngBounds(a),a},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),i=new b(+e[0],+e[1]);return i.z=+e[2],i},_removeTile:function(t){var e=this._tiles[t];e&&(at(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){ut(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=s,t.onmousemove=s,fe&&this.options.opacity<1&&pt(t,this.options.opacity),_e&&!ve&&(t.style.WebkitBackfaceVisibility="hidden")},_addTile:function(t,e){var n=this._getTilePos(t),o=this._tileCoordsToKey(t),a=this.createTile(this._wrapCoords(t),i(this._tileReady,this,t));this._initTile(a),this.createTile.length<2&&v(i(this._tileReady,this,t,null,a)),vt(a,n),this._tiles[o]={el:a,coords:t,current:!0},e.appendChild(a),this.fire("tileloadstart",{tile:a,coords:t})},_tileReady:function(t,e,n){if(this._map){e&&this.fire("tileerror",{error:e,tile:n,coords:t});var o=this._tileCoordsToKey(t);(n=this._tiles[o])&&(n.loaded=+new Date,this._map._fadeAnimated?(pt(n.el,0),g(this._fadeFrame),this._fadeFrame=v(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),e||(ut(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),fe||!this._map._fadeAnimated?v(this._pruneTiles,this):setTimeout(i(this._pruneTiles,this),250)))}},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new b(this._wrapX?a(t.x,this._wrapX):t.x,this._wrapY?a(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new x(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}}),en=tn.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1},initialize:function(t,e){this._url=t,(e=h(this,e)).detectRetina&&Ne&&e.maxZoom>0&&(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom++):(e.zoomOffset++,e.maxZoom--),e.minZoom=Math.max(0,e.minZoom)),"string"==typeof e.subdomains&&(e.subdomains=e.subdomains.split("")),_e||this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url=t,e||this.redraw(),this},createTile:function(t,e){var n=document.createElement("img");return V(n,"load",i(this._tileOnLoad,this,e,n)),V(n,"error",i(this._tileOnError,this,e,n)),this.options.crossOrigin&&(n.crossOrigin=""),n.alt="",n.setAttribute("role","presentation"),n.src=this.getTileUrl(t),n},getTileUrl:function(t){var i={r:Ne?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var n=this._globalTileRange.max.y-t.y;this.options.tms&&(i.y=n),i["-y"]=n}return f(this._url,e(i,this.options))},_tileOnLoad:function(t,e){fe?setTimeout(i(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,i){var n=this.options.errorTileUrl;n&&e.src!==n&&(e.src=n),t(i,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom;return this.options.zoomReverse&&(t=e-t),t+this.options.zoomOffset},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)this._tiles[t].coords.z!==this._tileZoom&&((e=this._tiles[t].el).onload=s,e.onerror=s,e.complete||(e.src=Kt,at(e)))}}),nn=en.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,i){this._url=t;var n=e({},this.defaultWmsParams);for(var o in i)o in this.options||(n[o]=i[o]);i=h(this,i),n.width=n.height=i.tileSize*(i.detectRetina&&Ne?2:1),this.wmsParams=n},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,en.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToBounds(t),i=this._crs.project(e.getNorthWest()),n=this._crs.project(e.getSouthEast()),o=(this._wmsVersion>=1.3&&this._crs===Ai?[n.y,i.x,i.y,n.x]:[i.x,n.y,n.x,i.y]).join(","),a=en.prototype.getTileUrl.call(this,t);return a+d(this.wmsParams,a,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+o},setParams:function(t,i){return e(this.wmsParams,t),i||this.redraw(),this}});en.WMS=nn,Ht.wms=function(t,e){return new nn(t,e)};var on=Oi.extend({options:{padding:.1},initialize:function(t){h(this,t),n(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&ut(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var i=this._map.getZoomScale(e,this._zoom),n=gt(this._container),o=this._map.getSize().multiplyBy(.5+this.options.padding),a=this._map.project(this._center,e),r=this._map.project(t,e).subtract(a),s=o.multiplyBy(-i).add(n).add(o).subtract(r);Se?_t(this._container,s,i):vt(this._container,s)},_reset:function(){for(var t in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),i=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new x(i,i.add(e.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),an=on.extend({getEvents:function(){var t=on.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){on.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");V(t,"mousemove",o(this._onMouseMove,32,this),this),V(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),V(t,"mouseout",this._handleMouseOut,this),this._ctx=t.getContext("2d")},_destroyContainer:function(){delete this._ctx,at(this._container),W(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var t in this._redrawBounds=null,this._layers)this._layers[t]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){this._drawnLayers={},on.prototype._update.call(this);var t=this._bounds,e=this._container,i=t.getSize(),n=Ne?2:1;vt(e,t.min),e.width=n*i.x,e.height=n*i.y,e.style.width=i.x+"px",e.style.height=i.y+"px",Ne&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){on.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[n(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,i=e.next,n=e.prev;i?i.prev=n:this._drawLast=n,n?n.next=i:this._drawFirst=i,delete t._order,delete this._layers[L.stamp(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if(t.options.dashArray){var e,i=t.options.dashArray.split(","),n=[];for(e=0;e<i.length;e++)n.push(Number(i[e]));t.options._dashArray=n}},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||v(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var e=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new x,this._redrawBounds.extend(t._pxBounds.min.subtract([e,e])),this._redrawBounds.extend(t._pxBounds.max.add([e,e]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var e=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,e.x,e.y)}else this._ctx.clearRect(0,0,this._container.width,this._container.height)},_draw:function(){var t,e=this._redrawBounds;if(this._ctx.save(),e){var i=e.getSize();this._ctx.beginPath(),this._ctx.rect(e.min.x,e.min.y,i.x,i.y),this._ctx.clip()}this._drawing=!0;for(var n=this._drawFirst;n;n=n.next)t=n.layer,(!e||t._pxBounds&&t._pxBounds.intersects(e))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,e){if(this._drawing){var i,n,o,a,r=t._parts,s=r.length,l=this._ctx;if(s){for(this._drawnLayers[t._leaflet_id]=t,l.beginPath(),i=0;i<s;i++){for(n=0,o=r[i].length;n<o;n++)a=r[i][n],l[n?"lineTo":"moveTo"](a.x,a.y);e&&l.closePath()}this._fillStroke(l,t)}}},_updateCircle:function(t){if(this._drawing&&!t._empty()){var e=t._point,i=this._ctx,n=t._radius,o=(t._radiusY||n)/n;this._drawnLayers[t._leaflet_id]=t,1!==o&&(i.save(),i.scale(1,o)),i.beginPath(),i.arc(e.x,e.y/o,n,0,2*Math.PI,!1),1!==o&&i.restore(),this._fillStroke(i,t)}},_fillStroke:function(t,e){var i=e.options;i.fill&&(t.globalAlpha=i.fillOpacity,t.fillStyle=i.fillColor||i.color,t.fill(i.fillRule||"evenodd")),i.stroke&&0!==i.weight&&(t.setLineDash&&t.setLineDash(e.options&&e.options._dashArray||[]),t.globalAlpha=i.opacity,t.lineWidth=i.weight,t.strokeStyle=i.color,t.lineCap=i.lineCap,t.lineJoin=i.lineJoin,t.stroke())},_onClick:function(t){for(var e,i,n=this._map.mouseEventToLayerPoint(t),o=this._drawFirst;o;o=o.next)(e=o.layer).options.interactive&&e._containsPoint(n)&&!this._map._draggableMoved(e)&&(i=e);i&&(Q(t),this._fireEvent([i],t))},_onMouseMove:function(t){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var e=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,e)}},_handleMouseOut:function(t){var e=this._hoveredLayer;e&&(ht(this._container,"leaflet-interactive"),this._fireEvent([e],t,"mouseout"),this._hoveredLayer=null)},_handleMouseHover:function(t,e){for(var i,n,o=this._drawFirst;o;o=o.next)(i=o.layer).options.interactive&&i._containsPoint(e)&&(n=i);n!==this._hoveredLayer&&(this._handleMouseOut(t),n&&(ut(this._container,"leaflet-interactive"),this._fireEvent([n],t,"mouseover"),this._hoveredLayer=n)),this._hoveredLayer&&this._fireEvent([this._hoveredLayer],t)},_fireEvent:function(t,e,i){this._map._fireDOMEvent(e,i||e.type,t)},_bringToFront:function(t){var e=t._order,i=e.next,n=e.prev;i&&(i.prev=n,n?n.next=i:i&&(this._drawFirst=i),e.prev=this._drawLast,this._drawLast.next=e,e.next=null,this._drawLast=e,this._requestRedraw(t))},_bringToBack:function(t){var e=t._order,i=e.next,n=e.prev;n&&(n.next=i,i?i.prev=n:n&&(this._drawLast=n),e.prev=null,e.next=this._drawFirst,this._drawFirst.prev=e,this._drawFirst=e,this._requestRedraw(t))}}),rn=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch(t){return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}}(),sn={_initContainer:function(){this._container=ot("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(on.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=rn("shape");ut(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=rn("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[n(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;at(e),t.removeInteractiveTarget(e),delete this._layers[n(t)]},_updateStyle:function(t){var e=t._stroke,i=t._fill,n=t.options,o=t._container;o.stroked=!!n.stroke,o.filled=!!n.fill,n.stroke?(e||(e=t._stroke=rn("stroke")),o.appendChild(e),e.weight=n.weight+"px",e.color=n.color,e.opacity=n.opacity,n.dashArray?e.dashStyle=Gt(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=n.lineCap.replace("butt","flat"),e.joinstyle=n.lineJoin):e&&(o.removeChild(e),t._stroke=null),n.fill?(i||(i=t._fill=rn("fill")),o.appendChild(i),i.color=n.fillColor||n.color,i.opacity=n.fillOpacity):i&&(o.removeChild(i),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),i=Math.round(t._radius),n=Math.round(t._radiusY||i);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+i+","+n+" 0,23592600")},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){st(t._container)},_bringToBack:function(t){lt(t._container)}},ln=je?rn:A,cn=on.extend({getEvents:function(){var t=on.prototype.getEvents.call(this);return t.zoomstart=this._onZoomStart,t},_initContainer:function(){this._container=ln("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=ln("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){at(this._container),W(this._container),delete this._container,delete this._rootGroup},_onZoomStart:function(){this._update()},_update:function(){if(!this._map._animatingZoom||!this._bounds){on.prototype._update.call(this);var t=this._bounds,e=t.getSize(),i=this._container;this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,i.setAttribute("width",e.x),i.setAttribute("height",e.y)),vt(i,t.min),i.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=ln("path");t.options.className&&ut(e,t.options.className),t.options.interactive&&ut(e,"leaflet-interactive"),this._updateStyle(t),this._layers[n(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){at(t._path),t.removeInteractiveTarget(t._path),delete this._layers[n(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,i=t.options;e&&(i.stroke?(e.setAttribute("stroke",i.color),e.setAttribute("stroke-opacity",i.opacity),e.setAttribute("stroke-width",i.weight),e.setAttribute("stroke-linecap",i.lineCap),e.setAttribute("stroke-linejoin",i.lineJoin),i.dashArray?e.setAttribute("stroke-dasharray",i.dashArray):e.removeAttribute("stroke-dasharray"),i.dashOffset?e.setAttribute("stroke-dashoffset",i.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),i.fill?(e.setAttribute("fill",i.fillColor||i.color),e.setAttribute("fill-opacity",i.fillOpacity),e.setAttribute("fill-rule",i.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,M(t._parts,e))},_updateCircle:function(t){var e=t._point,i=t._radius,n="a"+i+","+(t._radiusY||i)+" 0 1,0 ",o=t._empty()?"M0 0":"M"+(e.x-i)+","+e.y+n+2*i+",0 "+n+2*-i+",0 ";this._setPath(t,o)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){st(t._path)},_bringToBack:function(t){lt(t._path)}});je&&cn.include(sn),hi.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this.options.preferCanvas&&Vt()||Wt()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var e=this._paneRenderers[t];return void 0===e&&(e=cn&&Wt({pane:t})||an&&Vt({pane:t}),this._paneRenderers[t]=e),e}});var un=Fi.extend({initialize:function(t,e){Fi.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=P(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});cn.create=ln,cn.pointsToPath=M,Ui.geometryToLayer=Ot,Ui.coordsToLatLng=It,Ui.coordsToLatLngs=Bt,Ui.latLngToCoords=Zt,Ui.latLngsToCoords=Nt,Ui.getFeature=Dt,Ui.asFeature=Rt,hi.mergeOptions({boxZoom:!0});var hn=yi.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){V(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){W(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){at(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),re(),yt(),this._startPoint=this._map.mouseEventToContainerPoint(t),V(document,{contextmenu:Y,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=ot("div","leaflet-zoom-box",this._container),ut(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new x(this._point,this._startPoint),i=e.getSize();vt(this._box,e.min),this._box.style.width=i.x+"px",this._box.style.height=i.y+"px"},_finish:function(){this._moved&&(at(this._box),ht(this._container,"leaflet-crosshair")),se(),bt(),W(document,{contextmenu:Y,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if((1===t.which||1===t.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(i(this._resetState,this),0);var e=new C(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){27===t.keyCode&&this._finish()}});hi.addInitHook("addHandler","boxZoom",hn),hi.mergeOptions({doubleClickZoom:!0});var dn=yi.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,i=e.getZoom(),n=e.options.zoomDelta,o=t.originalEvent.shiftKey?i-n:i+n;"center"===e.options.doubleClickZoom?e.setZoom(o):e.setZoomAround(t.containerPoint,o)}});hi.addInitHook("addHandler","doubleClickZoom",dn),hi.mergeOptions({dragging:!0,inertia:!ve,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var fn=yi.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new Ti(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}ut(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){ht(this._map._container,"leaflet-grab"),ht(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=P(this._map.options.maxBounds);this._offsetLimit=T(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,i=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(i),this._times.push(e),e-this._times[0]>50&&(this._positions.shift(),this._times.shift())}this._map.fire("move",t).fire("drag",t)},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.x<e.min.x&&(t.x=this._viscousLimit(t.x,e.min.x)),t.y<e.min.y&&(t.y=this._viscousLimit(t.y,e.min.y)),t.x>e.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),i=this._initialWorldOffset,n=this._draggable._newPos.x,o=(n-e+i)%t+e-i,a=(n+e+i)%t-e-i,r=Math.abs(o+i)<Math.abs(a+i)?o:a;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=r},_onDragEnd:function(t){var e=this._map,i=e.options,n=!i.inertia||this._times.length<2;if(e.fire("dragend",t),n)e.fire("moveend");else{var o=this._lastPos.subtract(this._positions[0]),a=(this._lastTime-this._times[0])/1e3,r=i.easeLinearity,s=o.multiplyBy(r/a),l=s.distanceTo([0,0]),c=Math.min(i.inertiaMaxSpeed,l),u=s.multiplyBy(c/l),h=c/(i.inertiaDeceleration*r),d=u.multiplyBy(-h/2).round();d.x||d.y?(d=e._limitOffset(d,e.options.maxBounds),v((function(){e.panBy(d,{duration:h,easeLinearity:r,noMoveStart:!0,animate:!0})}))):e.fire("moveend")}}});hi.addInitHook("addHandler","dragging",fn),hi.mergeOptions({keyboard:!0,keyboardPanDelta:80});var pn=yi.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),V(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),W(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var t=document.body,e=document.documentElement,i=t.scrollTop||e.scrollTop,n=t.scrollLeft||e.scrollLeft;this._map._container.focus(),window.scrollTo(n,i)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){var e,i,n=this._panKeys={},o=this.keyCodes;for(e=0,i=o.left.length;e<i;e++)n[o.left[e]]=[-1*t,0];for(e=0,i=o.right.length;e<i;e++)n[o.right[e]]=[t,0];for(e=0,i=o.down.length;e<i;e++)n[o.down[e]]=[0,t];for(e=0,i=o.up.length;e<i;e++)n[o.up[e]]=[0,-1*t]},_setZoomDelta:function(t){var e,i,n=this._zoomKeys={},o=this.keyCodes;for(e=0,i=o.zoomIn.length;e<i;e++)n[o.zoomIn[e]]=t;for(e=0,i=o.zoomOut.length;e<i;e++)n[o.zoomOut[e]]=-t},_addHooks:function(){V(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){W(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e,i=t.keyCode,n=this._map;if(i in this._panKeys){if(n._panAnim&&n._panAnim._inProgress)return;e=this._panKeys[i],t.shiftKey&&(e=w(e).multiplyBy(3)),n.panBy(e),n.options.maxBounds&&n.panInsideBounds(n.options.maxBounds)}else if(i in this._zoomKeys)n.setZoom(n.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[i]);else{if(27!==i||!n._popup)return;n.closePopup()}Y(t)}}});hi.addInitHook("addHandler","keyboard",pn),hi.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var mn=yi.extend({addHooks:function(){V(this._map._container,"mousewheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){W(this._map._container,"mousewheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=$(t),n=this._map.options.wheelDebounceTime;this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var o=Math.max(n-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(i(this._performZoom,this),o),Y(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),i=this._map.options.zoomSnap||0;t._stop();var n=this._delta/(4*this._map.options.wheelPxPerZoomLevel),o=4*Math.log(2/(1+Math.exp(-Math.abs(n))))/Math.LN2,a=i?Math.ceil(o/i)*i:o,r=t._limitZoom(e+(this._delta>0?a:-a))-e;this._delta=0,this._startTime=null,r&&("center"===t.options.scrollWheelZoom?t.setZoom(e+r):t.setZoomAround(this._lastMousePos,e+r))}});hi.addInitHook("addHandler","scrollWheelZoom",mn),hi.mergeOptions({tap:!0,tapTolerance:15});var _n=yi.extend({addHooks:function(){V(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){W(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(t.touches){if(K(t),this._fireClick=!0,t.touches.length>1)return this._fireClick=!1,void clearTimeout(this._holdTimeout);var e=t.touches[0],n=e.target;this._startPos=this._newPos=new b(e.clientX,e.clientY),n.tagName&&"a"===n.tagName.toLowerCase()&&ut(n,"leaflet-active"),this._holdTimeout=setTimeout(i((function(){this._isTapValid()&&(this._fireClick=!1,this._onUp(),this._simulateEvent("contextmenu",e))}),this),1e3),this._simulateEvent("mousedown",e),V(document,{touchmove:this._onMove,touchend:this._onUp},this)}},_onUp:function(t){if(clearTimeout(this._holdTimeout),W(document,{touchmove:this._onMove,touchend:this._onUp},this),this._fireClick&&t&&t.changedTouches){var e=t.changedTouches[0],i=e.target;i&&i.tagName&&"a"===i.tagName.toLowerCase()&&ht(i,"leaflet-active"),this._simulateEvent("mouseup",e),this._isTapValid()&&this._simulateEvent("click",e)}},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_onMove:function(t){var e=t.touches[0];this._newPos=new b(e.clientX,e.clientY),this._simulateEvent("mousemove",e)},_simulateEvent:function(t,e){var i=document.createEvent("MouseEvents");i._simulated=!0,e.target._simulatedClick=!0,i.initMouseEvent(t,!0,!0,window,1,e.screenX,e.screenY,e.clientX,e.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(i)}});Ie&&!Oe&&hi.addInitHook("addHandler","tap",_n),hi.mergeOptions({touchZoom:Ie&&!ve,bounceAtZoomLimits:!0});var vn=yi.extend({addHooks:function(){ut(this._map._container,"leaflet-touch-zoom"),V(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){ht(this._map._container,"leaflet-touch-zoom"),W(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&!e._animatingZoom&&!this._zooming){var i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),"center"!==e.options.touchZoom&&(this._pinchStartLatLng=e.containerPointToLatLng(i.add(n)._divideBy(2))),this._startDist=i.distanceTo(n),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),V(document,"touchmove",this._onTouchMove,this),V(document,"touchend",this._onTouchEnd,this),K(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var e=this._map,n=e.mouseEventToContainerPoint(t.touches[0]),o=e.mouseEventToContainerPoint(t.touches[1]),a=n.distanceTo(o)/this._startDist;if(this._zoom=e.getScaleZoom(a,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoom<e.getMin
12Zoom()&&a<1||this._zoom>e.getMaxZoom()&&a>1)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1===a)return}else{var r=n._add(o)._divideBy(2)._subtract(this._centerPoint);if(1===a&&0===r.x&&0===r.y)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(r),this._zoom)}this._moved||(e._moveStart(!0),this._moved=!0),g(this._animRequest);var s=i(e._move,e,this._center,this._zoom,{pinch:!0,round:!1});this._animRequest=v(s,this,!0),K(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,g(this._animRequest),W(document,"touchmove",this._onTouchMove),W(document,"touchend",this._onTouchEnd),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});hi.addInitHook("addHandler","touchZoom",vn),hi.BoxZoom=hn,hi.DoubleClickZoom=dn,hi.Drag=fn,hi.Keyboard=pn,hi.ScrollWheelZoom=mn,hi.Tap=_n,hi.TouchZoom=vn;var gn=window.L;window.L=t,Object.freeze=Ft,t.version="1.2.0+HEAD.1ac320b",t.noConflict=function(){return window.L=gn,this},t.Control=di,t.control=fi,t.Browser=He,t.Evented=ee,t.Mixin=bi,t.Util=Qt,t.Class=y,t.Handler=yi,t.extend=e,t.bind=i,t.stamp=n,t.setOptions=h,t.DomEvent=ii,t.DomUtil=ci,t.PosAnimation=ui,t.Draggable=Ti,t.LineUtil=Ci,t.PolyUtil=Pi,t.Point=b,t.point=w,t.Bounds=x,t.bounds=T,t.Transformation=z,t.transformation=E,t.Projection=zi,t.LatLng=k,t.latLng=S,t.LatLngBounds=C,t.latLngBounds=P,t.CRS=ie,t.GeoJSON=Ui,t.geoJSON=jt,t.geoJson=Ji,t.Layer=Oi,t.LayerGroup=Ii,t.layerGroup=function(t){return new Ii(t)},t.FeatureGroup=Bi,t.featureGroup=function(t){return new Bi(t)},t.ImageOverlay=Gi,t.imageOverlay=function(t,e,i){return new Gi(t,e,i)},t.VideoOverlay=Ki,t.videoOverlay=function(t,e,i){return new Ki(t,e,i)},t.DivOverlay=Yi,t.Popup=Xi,t.popup=function(t,e){return new Xi(t,e)},t.Tooltip=$i,t.tooltip=function(t,e){return new $i(t,e)},t.Icon=Zi,t.icon=function(t){return new Zi(t)},t.DivIcon=Qi,t.divIcon=function(t){return new Qi(t)},t.Marker=Ri,t.marker=function(t,e){return new Ri(t,e)},t.TileLayer=en,t.tileLayer=Ht,t.GridLayer=tn,t.gridLayer=function(t){return new tn(t)},t.SVG=cn,t.svg=Wt,t.Renderer=on,t.Canvas=an,t.canvas=Vt,t.Path=ji,t.CircleMarker=Hi,t.circleMarker=function(t,e){return new Hi(t,e)},t.Circle=Vi,t.circle=function(t,e,i){return new Vi(t,e,i)},t.Polyline=Wi,t.polyline=function(t,e){return new Wi(t,e)},t.Polygon=Fi,t.polygon=function(t,e){return new Fi(t,e)},t.Rectangle=un,t.rectangle=function(t,e){return new un(t,e)},t.Map=hi,t.map=function(t,e){return new hi(t,e)}}))},XK32:function(t,e,i){"use strict";var n=["fumetto","animazione","live-action","novel","videogame"],o={opera:"Opere",notizia:"Notizie",autore:"Autori",personaggio:"Personaggi",tutto:"Tutto il sito"};function a(t){if(!Array.isArray(t))return[];var e={};return t.forEach((function(t){"string"==typeof t&&-1!==n.indexOf(t)&&(e[t]=!0)})),n.filter((function(t){return!0===e[t]}))}function r(t,e){var i=Object.prototype.hasOwnProperty.call(o,t)?t:"opera";if("opera"!==i)return o[i];var r=a(e);return 0===r.length||r.length===n.length?o.opera:1===r.length?o.opera+" · 1 tipo":o.opera+" · "+r.length+" tipi"}function s(t){return JSON.stringify(a(t))}var l={TIPI_CANONICI:n,COOKIE:"tipi_opera_ricerca",normalizza:a,etichetta:r,valoreCookie:s,init:function(t){for(var e=document.querySelectorAll("[data-ac-search-scope]"),i=0;i<e.length;i++)this.initControllo(e[i],t)},initControllo:function(t,e){var i=t.querySelector("[data-ac-scope-trigger]"),n=t.querySelector("[data-ac-scope-menu]"),o=t.querySelector("[data-ac-scope-summary]"),l=t.querySelector("[data-ac-scope-tipi]"),c=t.querySelector("[data-ac-scope-warning]"),u=t.querySelector("[data-ac-scope-all]"),h=[].slice.call(t.querySelectorAll("[data-ac-scope-ambito]")),d=[].slice.call(t.querySelectorAll("[data-ac-scope-tipo]"));function f(){return a(d.filter((function(t){return t.checked})).map((function(t){return t.value})))}function p(){var t=function(){for(var t=0;t<h.length;t++)if(h[t].checked)return h[t].value;return"opera"}();
12l&&(l.hidden="opera"!==t),o.textContent=r(t,f())}function m(t){n.hidden=!t,i.setAttribute("aria-expanded",String(t))}function _(){try{document.cookie="tipi_opera_ricerca="+encodeURIComponent(s(f()))+"; path=/; max-age=31536000; samesite=lax"}catch(t){}}function v(){"function"==typeof e&&e(t)}i&&n&&o&&0!==h.length&&(i.addEventListener("click",(function(){m(n.hidden)})),h.forEach((function(t){t.addEventListener("change",(function(){c&&(c.hidden=!0),p(),v()}))})),d.forEach((function(t){t.addEventListener("change",(function(){if(0===f().length)return t.checked=!0,p(),void(c&&(c.hidden=!1));c&&(c.hidden=!0),p(),_(),v()}))})),u&&u.addEventListener("click",(function(){d.forEach((function(t){t.checked=!0})),c&&(c.hidden=!0),p(),_(),v()})),document.addEventListener("click",(function(e){n.hidden||t.contains(e.target)||m(!1)})),t.addEventListener("keydown",(function(t){"Escape"!==t.key||n.hidden||(m(!1),i.focus())})),p())}};t.exports=l},XdPH:function(t,e,i){(function(e){var n=i("EVdn"),o=i("HTCS"),a=i("lEx/");t.exports=function(){n(document).on("change",'input[name="visibilita"]',(function(){r(n("#aggiorna-bacheca"))})),n(document).on("click",".post-segnala",(function(t){t.preventDefault();var e=n(this),i=e.data("action");o.confirm("Vuoi segnalare questo post ai moderatori?",(function(t){t&&(AC.setLoading(e,!0),n.post(i,(function(t){var e=n.parseJSON(t);e.ok?n.growl.notice({title:"Post segnalato ai moderatori.",message:"<div class='text-center'> <i class='fa fa-bell-o fa-3x' /></div>"}):alert(e.message)})).always((function(t){AC.setLoading(e,!1)})))}))})),n(document).on("click",".spollicia-post",(function(t){t.preventDefault();var e=n(this).attr("href"),i=n(this).data("csrf"),o=function(t){t.ok?(n("#tot-promosso-"+t.data.id).text(t.data.promosso),n("#tot-bocciato-"+t.data.id).text(t.data.bocciato),n("#tot-rimandato-"+t.data.id).text(t.data.rimandato),n("#tot-emozioneA-"+t.data.id).text(t.data.emozioneA),n("#tot-emozioneB-"+t.data.id).text(t.data.emozioneB),n("#tot-emozioneC-"+t.data.id).text(t.data.emozioneC)):alert(t.message)};void 0===i?n.getJSON(e,o):n.post(e,{_token:i},o,"json").fail(a)}));var t=n(".masonry-container");t.masonry({itemSelector:".col-post",columnWidth:".grid-sizer"});function i(e,i,n){t.masonry("layout")}function r(e){AC.setLoading(e,!0);var i=e.attr("href"),o={};o.visibilita=n('input[name="visibilita"]:checked').val(),n.get(i,o,(function(i){var o=n("<div />").html(i),a=o.find(".col-post");t.empty(),t.append(a),t.append(o.find("#page-nav")),a.waitForImages((function(){t.masonry("appended",a,!0)})).progress((function(){t.masonry("layout")})),AC.setLoading(e,!1)}))}n(document).on("resize",".timeline-panel",(function(){t.masonry("layout")})),n("div.timeline-panel img.lazy").load((function(){t.masonry("layout")})),n(document).on("click",".remove-post",(function(e){e.preventDefault();var i=n(this).attr("href"),o=n(this);n.getJSON(i,(function(e){if(e.ok){var i=o.closest(".col-post");t.masonry("remove",i),t.masonry("layout")}else alert(e.message)}))})),e().infinitescroll&&t.infinitescroll({navSelector:"#page-nav",nextSelector:"#page-nav a",itemSelector:".col-post",loading:{finishedMsg:"<em>Fine</em>",img:"#",msgText:"<em><i class='fa fa-refresh fa-spin'></i>&nbsp;Attendere</em>"},path:function(t){var e=n("#page-nav a").attr("href");return e=AC.Utils.updateQueryStringParameter(e,"page",t),e=AC.Utils.updateQueryStringParameter(e,"visibilita",n('input[name="visibilita"]:checked').val())}},(function(e){var o=n(e).css({opacity:0});o.waitForImages((function(){o.animate({opacity:1}),t.masonry("appended",o,!0),n("div.timeline-panel img.lazy",o).lazyload({placeholder:"",failure_limit:50,threshold:250,load:i})}))})),n("#form_post_bacheca_social #post_bacheca_form_testo").on("keyup",(function(){var t=n(this).val().length;n("#form_post_bacheca_social #current_characters").html(t)})),n(document).on("submit","#form_post_bacheca_social",(function(){var e=n(this),i=e.find(":submit");AC.setLoading(i,!0);var a,r=e.attr("action");return a=e.serialize(),n.post(r,a,(function(a){var r=n.parseJSON(a);if(r.ok){var s=n(r.data.html);t.prepend(s),t.masonry("prepended",s),n("div.timeline-panel img.lazy",s).lazyload({placeholder:"",failure_limit:50}),t.waitForImages((function(){t.masonry("layout")})),e.find("input[type=text], textarea").val(""),e.find("input[type=checkbox]").prop("checked",!1),e.find("#current_characters").text("0")}else if(1===r.error_code)o.alert({message:"<h3>"+r.message+'&nbsp;<i class="fa fa-smile-o"></i></h3>'});else{var l=n.isArray(r.message)?r.message.join("\n"):r.message;alert(l||"Si è verificato un errore")}
12AC.setLoading(i,!1)})).fail((function(){alert("Errore interno del server."),AC.setLoading(i,!1)})),!1})),n(document).on("click","#aggiorna-bacheca",(function(t){t.preventDefault(),r(n(this))}))}}).call(this,i("EVdn"))},"ZDk/":function(t,e,i){(function(e){t.exports=function(){e(this).closest("div").remove()}}).call(this,i("EVdn"))},b4KD:function(t,e,i){(function(e){i("EVdn");var n=i("WB5z");e.L=n;i("+eoe");i("+Lgc"),ACFumetterie={},t.exports=ACFumetterie}).call(this,i("yLpj"))},c6Hl:function(t,e,i){(function(e){var n=i("HTCS");t.exports=function(t,i){function o(){var i=e(t).find("textarea");i.length>0&&AC.Utils.countChar(i[0],"#caratteri")}o(),e(document).on("submit",t,(function(){var t=e(this),a=t.find(":submit"),r=t.attr("action");return e.ajax({type:"POST",url:r,data:t.serialize(),success:function(t){t.success?n.alert({message:t.message,callback:function(){location.href=t.redirect}}):n.alert({message:t.message,callback:function(){e(i).replaceWith(t.content),o()}})},beforeSend:function(){AC.setLoading(a,!0),t.fadeTo("slow",.33)},complete:function(){AC.setLoading(a,!1),t.fadeTo("normal",1)},error:function(){n.alert({message:"Si è verificato un errore! Riprovare più tardi."})}}),!1}))}}).call(this,i("EVdn"))},eYpX:function(t,e,i){(function(e){var i={updateQueryStringParameter:function(t,e,i){var n=new RegExp("([?&])"+e+"=.*?(&|$)","i"),o=-1!==t.indexOf("?")?"&":"?";return t.match(n)?t.replace(n,"$1"+e+"="+i+"$2"):t+o+e+"="+i},pad2:function(t){return t<10?"0"+t:t},timeConverter:function(t){var e=new Date(1e3*t),i=e.getFullYear(),n=pad2(e.getMonth()+1);return pad2(e.getDate())+"/"+n+"/"+i+" - "+pad2(e.getHours())+":"+pad2(e.getMinutes())+":"+pad2(e.getSeconds())},countChar:function(t,i){var n=t.value.length;e(i).text(n)},slugify:function(t){return t.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").trim()},getSelectedText:function(){var t,e;return window.getSelection&&document.activeElement?(t="TEXTAREA"==document.activeElement.nodeName||"INPUT"==document.activeElement.nodeName&&"text"==document.activeElement.getAttribute("type").toLowerCase()?(e=document.activeElement).value.substring(e.selectionStart,e.selectionEnd):window.getSelection()).toString():document.getSelection?(t=document.getSelection()).toString():document.selection?(t=document.selection.createRange(),document.getElementById("seltext").innerHTML+="Selection="+t.text+" [3]<br>",t.text):void 0},getParameterByName:function(t,e){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var i=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(t);return null==i?"":decodeURIComponent(i[1].replace(/\+/g," "))}};t.exports=i}).call(this,i("EVdn"))},fHhL:function(t,e,i){},i391:function(t,e,i){"use strict";var n=i("R+s1").default;function o(t,e){var i=Number(t.getAttribute(e));return Number.isFinite(i)&&i>=0?i:0}t.exports=function(t){t=t||document;var e=[];return t.querySelectorAll(".pollici-grafico-div").forEach((function(t){var i=[{name:"Promosso",value:o(t,"data-tot-promosso")},{name:"Rimandato",value:o(t,"data-tot-rimandato")},{name:"Bocciato",value:o(t,"data-tot-bocciato")}];t.hasAttribute("data-tot-cuore")&&t.hasAttribute("data-tot-cacca")&&i.push({name:"Love",value:o(t,"data-tot-cuore")},{name:"Trash",value:o(t,"data-tot-cacca")}),n.options.hasValues(i)?e.push(n.renderSemicircle(t,{data:i,description:"Distribuzione delle valutazioni: "+i.map((function(t){return t.name+" "+t.value})).join(", ")})):n.showEmpty(t)})),Promise.all(e.map((function(t){return t.catch((function(){return null}))})))}},jhcm:function(t,e,i){var n=i("EVdn"),o=i("HTCS"),a=i("lEx/");function r(t,e){if("function"==typeof window.gtag){var i=n.extend({event_category:"engagement",event_label:t},e||{});window.gtag("event",t,i)}}t.exports=function(){var t=n("#pagination-commenti"),e=n(".commenti-div"),i=e.data("engagement-context")||"altro",s=e.data("engagement-auth")||"anonimo";if(e.length>0&&!e.data("engagement-visible-init")&&(e.data("engagement-visible-init",!0),"function"==typeof window.IntersectionObserver)){var l=new window.IntersectionObserver((function(t){t.forEach((function(t){t.isIntersecting&&(r("ac_commenti_visibili",{event_label:i+":"+s,contesto:i,stato_auth:s}),l.disconnect())}
12))}),{threshold:.1});l.observe(e.get(0))}e.one("focus","#txt-commento",(function(){r("ac_commento_focus",{event_label:i+":"+s,contesto:i,stato_auth:s})})),AC.Social.doPollNumeroCommenti(),e.on("click",".commento-elimina",(function(t){t.preventDefault();var e=n(this),i=e.data("action"),r=e.data("action-refresh");o.confirm("Eliminare il commento?",(function(t){t&&n.post(i,{_token:e.data("csrf")},(function(t){var e=n.parseJSON(t);e.ok?u(r):alert(e.message)})).fail(a)}))})),e.on("click",".attiva-commento",(function(t){t.preventDefault();var e=n(this),i=e.data("action"),a=e.data("action-refresh"),r={};o.confirm("Vuoi attivare questo commento?",(function(t){t&&(AC.setLoading(e,!0),n.post(i,r,(function(t){var e=n.parseJSON(t);e.ok?(n.growl.notice({title:"Commento attivato con successo.",message:"<div class='text-center'> <i class='fa fa-smile-o fa-3x' /></div>"}),u(a)):alert(e.message)})).always((function(t){AC.setLoading(e,!1)})))}))})),e.on("click",".segnala-commento",(function(e){e.preventDefault();var i=n(this),r=i.data("action"),s={};s.pagina=t.data("pagina-corrente"),s._token=i.data("csrf"),o.confirm("Vuoi segnalare questo commento ai moderatori?",(function(t){t&&(AC.setLoading(i,!0),n.post(r,s,(function(t){var e=n.parseJSON(t);e.ok?n.growl.notice({title:"Commento segnalato ai moderatori.",message:"<div class='text-center'> <i class='fa fa-bell-o fa-3x' /></div>"}):alert(e.message)})).fail(a).always((function(t){AC.setLoading(i,!1),AC.popoverDestroy(i)})))}))})),e.on("click","#commento-btn",(function(t){t.preventDefault();var e=n(this),a=e.data("action"),l=e.data("action-refresh"),c={};c.testo=n("#txt-commento").val(),void 0!==c.testo&&""!==c.testo&&(r("ac_commento_submit",{event_label:i+":"+s,contesto:i,stato_auth:s}),n.post(a,c,(function(t){var e=n.parseJSON(t);r("ac_commento_esito",{event_label:i+":"+s+":"+(e.ok?"ok":"bloccato"),contesto:i,stato_auth:s,risultato:e.ok?"ok":"bloccato"}),e.ok?(u(l),n("#txt-commento").val("")):o.alert(e.message)})).fail((function(){r("ac_commento_esito",{event_label:i+":"+s+":errore",contesto:i,stato_auth:s,risultato:"errore"})})))})),e.on("click",".quota-commento",(function(t){t.preventDefault();var e=n(this),i=(e.data("id"),e.data("action")),o=e.data("username");n.post(i,(function(t){var e;e=void 0!==o&&o.length>0?'[quote="'+o+'"]'+t.trim()+"[/quote]":"[quote]"+t.trim()+"[/quote]";var i=n("#txt-commento"),a=i.val();""!=a&&(e=a+"\n"+e),i.val(e),i.focus(),n("html, body").animate({scrollTop:i.offset().top-100},500)}))})),e.on("click",".commento-spollicia",(function(t){t.preventDefault();var e=n(this).data("action");n.post(e,{_token:n(this).data("csrf")},(function(t){var e=n.parseJSON(t);e.ok?(n("#tot-promosso-"+e.data.id).text(e.data.promosso),n("#tot-bocciato-"+e.data.id).text(e.data.bocciato),n("#tot-rimandato-"+e.data.id).text(e.data.rimandato)):alert(e.message)})).fail(a)}));var c=n(".blog-status-bar");function u(e,i){var o=n("#elenco-commenti-div");o.fadeTo("slow",.33),n.post(e,(function(e){var a=n.parseJSON(e);a.ok?(o.empty(),n(a.data.html).appendTo(o),t.length>0&&(t.data("pagina-corrente",a.data.totalePagine),t.paginateMe("refresh",a.data.totalePagine,void 0,!0)),o.fadeTo("slow",1),i&&"function"==typeof i&&i()):alert(a.message)})).fail((function(t){o.stop(!0).fadeTo("fast",1),a(t)}))}c.on("click",".blog-preferito",(function(t){t.preventDefault();var e=this,i=n(this).data("action"),o=n(e).data("id"),a=!n(e).data("preferito");n.post(i,{id:o,preferito:a},(function(t){var i=n.parseJSON(t);i.ok?a?n(e).data("preferito",!0).attr("data-preferito",!0).attr("title","Blog preferito").html('<i class="fa fa-star" aria-hidden="true"></i>'):n(e).data("preferito",!1).attr("data-preferito",!1).attr("title","Blog non preferito").html('<i class="fa fa-star-o" aria-hidden="true"></i>'):alert(i.message)}))})),c.on("click",".blog-filtra-notifica",(function(t){t.preventDefault();var e=this,i=n(this).data("action"),o=n(e).data("id"),a=!!n(e).data("filtra");n.post(i,{id:o,filtra:a},(function(t){var i=n.parseJSON(t);i.ok?a?n(e).data("filtra",!1).attr("data-filtra",!1).attr("title","Le notifiche del blog non sono attive").html('<i class="fa fa-bell-slash-o" aria-hidden="true"></i>'):n(e).data("filtra",!0).attr("data-filtra",!0).attr("title","Le notifiche del blog sono attive").html('<i class="fa fa-bell-o" aria-hidden="true"></i>'):alert(i.message)}))})),c.on("click",".blog-pinned",(function(t){t.preventDefault();var e=this,i=n(this).data("action"),o=n(e).data("id"),a=!n(e).data("pinned");n.post(i,{id:o,pinned:a},(function(t){var i=n.parseJSON(t);i.ok?a?n(e).data("pinned",!0).attr("data-pinned",!0).attr("title","Blog pinnato").html('<i class="fas fa-bookmark" aria-hidden="true"></i>'):n(e).data("pinned",!1).attr("data-pinned",!1).attr("title","Blog non pinnato").html('<i class="far fa-bookmark" aria-hidden="true"></i>'):alert(i.message)}))})),n(".article-meta").on("click",".news-filtra-notifica",(function(t){t.preventDefault();var e=this,i=n(this).data("action"),o=n(e).data("id"),a=!!n(e).data("filtra");n.post(i,{id:o,filtra:a},(function(t){var i=n.parseJSON(t);i.ok?a?n(e).data("filtra",!1).attr("data-filtra",!1).attr("title","Le notifiche della notizia non sono attive").html('<i class="fa fa-bell-slash-o" aria-hidden="true"></i>'):n(e).data("filtra",!0).attr("data-filtra",!0).attr("title","Le notifiche della notizia sono attive").html('<i class="fa fa-bell-o" aria-hidden="true"></i>'):alert(i.message)}))})),n(".modifica-commento").ajaxCRUDDialog({titolo:"Modifica commento",callback:function(t){t.ok?n("#commento-testo-"+t.data.id).html(t.data.testo):alert(t.message)}
12,onShow:function(){n(".modal-dialog form textarea").first().focus()}}),n(".modera-commento").ajaxCRUDDialog({titolo:"Modera commento",callback:function(t,e){t.ok?u(e.data("action-refresh")):alert(t.message)},onShow:function(){n(".modal-dialog form textarea").first().focus()}}),n(document).on("click","#commenti-get-new",(function(t){t.preventDefault(),u(n(this).attr("href"))})),t.paginateMe({setLastPage:!0});var h=window.location.hash;void 0!==h&&n(h).addClass("ac-commento-evidenziato")}},kfUY:function(t,e,i){var n=i("EVdn"),o=i("HTCS"),a=i("DuH2"),r=i("lEx/");function s(t){n(t.currentTarget).trigger(n.Event("resize"))}t.exports=function(){function t(t,e,i){n.getJSON(t,(function(t){if(t.ok){e.html("Nascondi i commenti <i class='fa fa-caret-up fa-fw'></i>"),i.empty(),n(t.data.html).appendTo(i);var o=a.elemento(i);o&&(o.addEventListener("shown.bs.collapse",s),a.collapse(o).show(),i.scrollTop(o.scrollHeight))}else alert(t.message);e.data("state",1)}))}n(".resizable-textarea").autoHeight(),n(document).on("click",".micro-commento-segnala",(function(t){t.preventDefault();var e=n(this),i=e.data("action");o.confirm("Vuoi segnalare questo commento ai moderatori?",(function(t){t&&(AC.setLoading(e,!0),n.post(i,{_token:e.data("csrf")},(function(t){var e=n.parseJSON(t);e.ok?n.growl.notice({title:"Commento segnalato ai moderatori.",message:"<div class='text-center'> <i class='fa fa-bell-o fa-3x' /></div>"}):alert(e.message)})).fail(r).always((function(t){AC.setLoading(e,!1)})))}))})),n(document).on("click",".micro-commento-elimina",(function(t){t.preventDefault();var e=n(this);e.data("ac-moderazione")?function(t){o.prompt({title:"Modera commento",message:"<p>Il commento verrà disattivato. Indica la motivazione: verrà comunicata all'autore.</p>",inputType:"textarea",maxlength:255,callback:function(e){if(null!==e)return""===n.trim(e)?(o.alert("La motivazione è obbligatoria."),!1):void n.post(t.attr("href"),{motivazione:e,_token:t.data("csrf")},(function(t){var e=n.parseJSON(t);e.ok&&e.data.disattivato?(n("#li-commento-"+e.data.id).addClass("ac-commento-disattivo"),n.growl.notice({title:"Commento disattivato.",message:"L'autore riceverà una notifica con la motivazione."})):o.alert(e.message||"Si è verificato un errore")})).fail((function(){o.alert("Si è verificato un errore! Riprovare più tardi.")}))}})}(e):o.confirm("Eliminare il commento?",(function(t){if(t){var i=e.attr("href");n.post(i,{_token:e.data("csrf")},(function(t){var e=n.parseJSON(t);if(e.ok){n("#li-commento-"+e.data.id).fadeOut("slow",(function(){n(this).remove()}));var i=n("#mostra-commenti-"+e.data.targetID),o=i.data("tot");o-=1,i.data("tot",o)}else alert(e.message)})).fail(r)}}))})),n(document).on("click",".btn-commenta-micro",(function(e){e.preventDefault();var i=n(this);AC.setLoading(i,!0);var o=i.data("target-id"),a=n("#mostra-commenti-"+o),r=i.data("action"),s=i.data("action-refresh"),l=n("#micro-elenco-commenti-div-"+o),c={};c.testo=n("#txt-commento-"+o).val(),n.post(r,c,(function(e){var r=n.parseJSON(e);if(AC.setLoading(i,!1),r.ok){n("#txt-commento-"+o).val("");var c=a.data("tot");c+=1,a.data("tot",c),t(s,a,l)}else alert(r.message)}))})),n(document).on("click",".mostra-commenti",(function(e){e.preventDefault();var i=n(this),o=i.data("target-id"),r=i.data("action"),l=n("#micro-elenco-commenti-div-"+o);switch(n(this).data("state")){case 1:!function(t,e,i){var n=a.elemento(i),o=e.data("tot");e.html(o+" Commenti <i class='fa fa-caret-down fa-fw'></i>"),n&&(n.addEventListener("hidden.bs.collapse",s),a.collapse(n).hide());i.empty(),e.data("state",2)}(0,i,l);break;case void 0:case 2:t(r,i,l)}}))}},l9H8:function(t,e,i){(function(e){var n=i("ZDk/");t.exports=function(t){var i=e(t),o=i.attr("data-prototype");form=o.replace(/__name__/g,i.children().length);var a=e(form),r=e("<button type='button' class='btn btn-outline-secondary btn-sm' ><span class='fa fa-minus remove-c'></span></button>");r.click(n),a.append(r),i.append(a)}}).call(this,i("EVdn"))},"lEx/":function(t,e,i){var n=i("HTCS");t.exports=function(t){t&&0===t.status||n.alert("Operazione non riuscita: ricarica la pagina e riprova.")}}
12,lMQE:function(t,e,i){},lSZc:function(t,e){t.exports=function(t,e){if(t&&t.jquery&&(t=t[0]),t){var i="INPUT"===t.tagName;if(e){void 0===t.dataset.acOriginalContent&&(t.dataset.acOriginalContent=i?t.value:t.innerHTML);var n=t.getAttribute("data-ac-loading-text")||"Caricamento...";i?t.value=n:t.innerHTML=n,t.disabled=!0,t.classList.add("disabled"),t.setAttribute("aria-busy","true")}else void 0!==t.dataset.acOriginalContent&&(i?t.value=t.dataset.acOriginalContent:t.innerHTML=t.dataset.acOriginalContent,delete t.dataset.acOriginalContent),t.disabled=!1,t.classList.remove("disabled"),t.removeAttribute("aria-busy")}}},r4kf:function(t,e,i){var n=i("EVdn");function o(t){return{emptyTable:"Nessun dato presente nella tabella",info:"Vista da _START_ a _END_ di _TOTAL_ elementi",infoEmpty:"Vista da 0 a 0 di 0 elementi",infoFiltered:"(filtrati da _MAX_ elementi totali)",infoPostFix:"",thousands:",",lengthMenu:"Visualizza _MENU_ elementi",loadingRecords:"Caricamento...",processing:"Elaborazione...",search:t,zeroRecords:"La ricerca non ha portato alcun risultato.",paginate:{first:"Inizio",previous:"Precedente",next:"Successivo",last:"Fine"},aria:{orderable:": attiva per ordinare la colonna in ordine crescente",orderableReverse:": attiva per ordinare la colonna in ordine decrescente"}}}function a(t,e,i){var o=DataTable.Responsive.renderer.listHidden()(t,e,i);return o?(n(o).find("li").each((function(){var t=n(this).find(".dtr-data");if(""!==t.text().trim()||t.find("img, i, a").length){var e=n(this).find(".dtr-title"),i=e.text().trim();i?e.text(i):e.remove()}else n(this).remove()})),o):o}function r(){return{details:{renderer:a}}}function s(t){t.parent(".table-responsive").removeClass("table-responsive")}function l(t){t.paging=!1,t.info=!1,t.layout={topStart:null,topEnd:null,bottomStart:null,bottomEnd:null}}ACOperaDettaglio={nascondiVoto:function(t){t>=0?(n("div[class^='voto-'],div[class*=' voto-']").fadeOut(),n(".voto-"+t).fadeIn()):n("div[class^='voto-'],div[class*=' voto-']").fadeIn()},initBlogOpera:function(){n(document).on("change paste",".lnk-img-blog",(function(){var t=this;setTimeout((function(){var e=n(t).val();n("#cover-blog").attr("src",e)}),100)})),n("#btn-new-blog").ajaxCRUDDialog({titolo:"Nuova discussione",size:"large",callback:function(t){t.ok&&(window.location.href=t.data.link)}}),n("#form_ricerca_blog").ajaxFormRicerca({targetDIV:"#elenco-blog-opera",pagination:"#pagination-blog-opera"})},commenta:i("8c8q"),dettaglioModal:i("/PGQ"),initListaOpera:i("yLLQ"),initModificaRecensione:i("c6Hl"),polliciAndamentoChart:i("wQ+H"),polliciHalfCircleChart:i("i391"),countMaxChar:function(t,e,i){var o=t.value.length;o>e?t.value=t.value.substring(0,e):n(i).text(e-o)},initInviaRecensioneAjax:function(){n(document).on("submit","#invia_recensione",(function(){var t=n(this),e=t.find(":submit"),i=n(this).attr("action");return n.ajax({type:"POST",url:i,data:t.serialize(),success:function(e){t.find("input[type=text], textarea").val(""),t.find("input[type=checkbox]").attr("checked",!1),AC.VerificaUmana.rimuovi(document.getElementById("recensione-div")),n("#recensione-div").replaceWith(e),AC.VerificaUmana.inizializza(document.getElementById("recensione-div"),!0)},beforeSend:function(){AC.setLoading(e,!0),t.fadeTo("slow",.33)},complete:function(){AC.setLoading(e,!1),t.fadeTo("normal",1)},error:function(){alert("Si è verificato un errore! Riprovare più tardi.")}}),!1}))},paginaElenco:function(t,e,i){var a=n(t);if(a.length&&!DataTable.isDataTable(a[0])){s(a);var c={columns:e,ordering:!1,responsive:r(),language:o("Numero: ")};
12!1===i&&l(c),new DataTable(a[0],c)}},paginaElencoEdizioni:function(t,e,i){var a=n(t);if(a.length&&!DataTable.isDataTable(a[0])){s(a);var c={columns:e,layout:{topStart:"pageLength",topEnd:function(){var t=document.createElement("div");return t.className="table-filter-container",t},bottomStart:"info",bottomEnd:"paging"},ordering:!1,responsive:r(),initComplete:function(t){var e=new DataTable.Api(t);n(".table-filter-container",e.table().container()).append(n("#table-episodi_filter").detach().show()),n("#table-episodi_filter select").on("change",(function(){u.search(this.value).draw()}))},language:o("Collana: ")};!1===i&&(delete c.initComplete,l(c));var u=new DataTable(a[0],c)}},spollicia:function(t){n.getJSON(t,(function(t){t.ok?n("#tot-promossa-"+t.data.id).text(t.data.promossa):alert(t.message)}))},votaPersonaggio:function(t){n.getJSON(t,(function(t){t.ok?(n("#tot-promosso-"+t.data.id).html('<i class="fa fa-thumbs-o-up"></i>&nbsp;'+t.data.promosso),n("#tot-bocciato-"+t.data.id).html('<i class="fa fa-thumbs-o-down"></i>&nbsp;'+t.data.bocciato),n("#tot-cuore-"+t.data.id).html('<i class="fa fa-heart"></i>&nbsp;'+t.data.emozioneA),n("#tot-cacca-"+t.data.id).html('<i class="fas fa-poo"></i>&nbsp;'+t.data.emozioneC),null!=t.data.old_id&&n("#tot-promosso-"+t.data.old_id).html('<i class="fa fa-thumbs-o-up"></i>&nbsp;'+t.data.old_promosso)):alert(t.message)}))},initNewsOpera:function(){n("#pagination-news-opera").paginateMe()},initSoPerfectGallery:function(){var t=n(".grid");if(0!==t.length){t.waitForImages((function(){t.masonry({columnWidth:".grid-item",itemSelector:".grid-item",transitionDuration:0}),i()}));var e=null;n(window).on("resize.acGalleryOpera",(function(){clearTimeout(e),e=setTimeout(i,150)}))}function i(){var e=t.data("masonry");if(e&&(t.masonry("option",{columnWidth:".grid-item"}),t.masonry("layout"),e.columnWidth&&e.containerWidth)){var i=Math.max(1,Math.round(e.containerWidth/e.columnWidth));t.masonry("option",{columnWidth:Math.floor(e.containerWidth/i*1e3)/1e3}),t.masonry("layout")}}},visualizzaNascondi:function(t,e){var i=n("#"+e);n(i).toggle(),"false"==n(t).data("visibile")?(n(t).data("visibile","true"),n(t).html('<span class="fa fa-plus"></span>&nbsp;Visualizza Secondari')):(n(t).data("visibile","false"),n(t).html('<span class="fa fa-minus"></span>&nbsp;Nascondi Secondari'))}},t.exports=ACOperaDettaglio},rCjL:function(t,e,i){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=i("EVdn");function a(t){var e=[];return function t(e,i){if(null!=e&&!1!==e)if(Array.isArray(e))e.forEach((function(e){t(e,i)}));else if("object"!==n(e)){var o=String(e).trim();o&&i.push(o)}else Object.keys(e).forEach((function(n){t(e[n],i)}))}(t,e),e.join(" ")}function r(t,e,i){var n=function(t,e){if(t&&t.jquery)return t;if(e&&!e.length)return o();var i=t?document.getElementById(t):null;return i?e&&e.length&&!e.is(i)&&!e.has(i).length?o():o(i):o()}(t,i),r=a(e);if(!n.length||!r)return!1;var s=n.closest("[data-form-field]");n.addClass("is-invalid");var l=o('<div class="invalid-feedback d-block ac-field-error"></div>').text(r);return s.length?s.append(l):n.after(l),!0}t.exports={clear:function(t,e){if(!t||t.length){var i=t||o(document);i.find(".is-invalid").removeClass("is-invalid"),i.find(e?".invalid-feedback":".invalid-feedback.ac-field-error").remove()}},messageText:a,show:r,showAll:function(t,e){var i=0;return function t(o,a){if(null!=o)if(Array.isArray(o)||"object"!==n(o))a&&r(a,o,e)&&i++;else{var s=Object.keys(o),l=s.filter((function(t){return/^\d+$/.test(t)})).map((function(t){return o[t]}));a&&l.length&&r(a,l,e)&&i++,s.filter((function(t){return!/^\d+$/.test(t)})).forEach((function(e){t(o[e],function(t,e){if(!t||0===e.indexOf(t+"_"))return e;for(var i=t.split("_"),n=e.split("_"),o=Math.min(i.length,n.length);o>0;o--)if(i.slice(-o).join("_")===n.slice(0,o).join("_"))return t+"_"+n.slice(o).join("_");return t+"_"+e}(a,e))}))}}(t,null),i}}}
12,uf2T:function(t,e,i){var n=i("EVdn"),o=i("HTCS");t.exports=function(){n(document).on("click",".rimuovi-amico",(function(t){t.preventDefault();var e=n(this).attr("href");o.confirm("Sicuro di voler rimuovere l'utente dalle vostre amicizie?",(function(t){t&&n.post(e,(function(t){var e=n.parseJSON(t);e.ok?(n.growl.notice({title:"Adesso è uno come tanti...",message:"<div class='text-center'> <i class='fa fa-meh-o fa-3x' /></div>"}),n("#amico-"+e.data+"-div").fadeOut("normal",(function(){n(this).remove()}))):alert(e.message)}))}))})),n(document).on("click",".rifiuta-amico",(function(t){t.preventDefault();var e=n(this).attr("href");o.confirm("Sicuro di voler rifiutare questa richiesta di amicizia?",(function(t){t&&n.post(e,(function(t){var e=n.parseJSON(t);e.ok?n("#amico-"+e.data+"-div").fadeOut("normal",(function(){n(this).remove();var t=parseInt(n("#ricevuteTot").text(),10);t-=1,n("#ricevuteTot").text(t)})):alert(e.message)}))}))})),n(document).on("click",".blocca-amico",(function(t){t.preventDefault();var e=n(this).attr("href");o.confirm("Sicuro di voler bloccare questo utente?",(function(t){t&&n.post(e,(function(t){var e=n.parseJSON(t);e.ok?n("#amico-"+e.data+"-div").fadeOut("normal",(function(){n(this).remove()})):alert(e.message)}))}))})),n(document).on("click",".invia-richiesta-amico",(function(t){t.preventDefault();var e=n(this).attr("href"),i=n(this);n.post(e,(function(t){var e=n.parseJSON(t);e.ok?(n.growl.notice({title:"Richiesta di amicizia inviata!",message:"<div class='text-center'> <i class='fa fa-heart fa-3x' /></div>"}),i.fadeOut("slow",(function(){n(this).remove()}))):alert(e.message)}))})),n(document).on("click",".accetta-amico",(function(t){t.preventDefault();var e=n(this).attr("href");n(this);n.post(e,(function(t){var e=n.parseJSON(t);e.ok?(n.growl.notice({title:"Hai un nuovo amico!",message:"<div class='text-center'> <i class='fa fa-smile-o fa-3x' /></div>"}),n("#amico-"+e.data+"-div").fadeOut("normal",(function(){n(this).remove();var t=parseInt(n("#ricevuteTot").text(),10),e=parseInt(n("#amiciTot").text(),10);t-=1,e+=1,n("#ricevuteTot").text(t),n("#amiciTot").text(e)}))):alert(e.message)}))}))}},uf4A:function(t,e,i){var n=i("EVdn"),o=i("l9H8"),a=i("HTCS");ACOpera={ratingCaptions:{.5:"0.5",1:"1",1.5:"1.5",2:"2",2.5:"2.5",3:"3",3.5:"3.5",4:"4",4.5:"4.5",5:"5",5.5:"5.5",6:"6",6.5:"6.5",7:"7",7.5:"7.5",8:"8",8.5:"8.5",9:"9",9.5:"9.5",10:"10"},init:function(){n("#btn-info-lista").ajaxCRUDDialog({titolo:"Lista opera",size:"large",onShow:function(t,e){var i=e&&e.length?e:n(".bootbox:visible").last();n(".ac-stars",i).rating({min:0,max:10,step:.5,stars:10,size:"xs",filledStar:'<i class="fa fa-star"></i>',emptyStar:'<i class="fa fa-star-o"></i>',clearButton:'<i class="fa fa-minus-circle"></i>',starCaptions:AC.Opera.ratingCaptions,starCaptionClasses:function(t){return t>=1&&t<6?"ac-rating-caption ac-rating-caption-danger":t>=6&&t<=7?"ac-rating-caption ac-rating-caption-warning":t>7?"ac-rating-caption ac-rating-caption-success":"ac-rating-caption ac-rating-caption-default"},clearCaptionClass:"ac-rating-caption ac-rating-caption-default",clearCaption:"?",defaultCaption:"{rating}",showClear:!0})},callback:function(t){if(t.ok){var e=t.data,i=n("#lista-opera-dd");i&&(i.empty(),i.html('Titolo aggiunto con successo alla <a href="'+e+'" title="Vai alla tua lista opera.">tua lista</a>.'))}}})},initRicercaAvanzataOpera:function(){n("#addCategoria").click(this.addCategoria),n("#removeCategoria").click(this.removeCategoria),n("#addGenere").click(this.addGenere),n("#removeGenere").click(this.removeGenere),n(".rimuvi-c").click(this.removeG),n(".include-esclude > div").each(this.appendRemove),n("#resetButton").click((function(){n(".include-esclude > div").each((function(){n(this).remove()})),n(".select2-tags").select2("data",null)}));var t=n("[data-element-id='inputTags']:first").data("action");n(".select2-tags").select2Tags({action:t})},initRecensioni:function(){n(document).on("click",".spollicia-recensione",(function(t){t.preventDefault();var e=n(this),i=e.attr("href");AC.setLoading(e,!0),n.getJSON(i,(function(t){t.ok?(n("#tot-promossa-"+t.data.id).text(t.data.promossa),n.growl.notice({title:"Bella recensione!",message:"<div class='text-center'> <i class='fa ffa-thumbs-o-up fa-3x' /></div>"})):alert(t.message);
12AC.setLoading(e,!1)}))})),n(document).on("click",".posta-recensione",(function(t){t.preventDefault();var e=n(this),i=e.attr("href"),o=e.data("id-recensione");AC.setLoading(e,!0);var s={};s.testo="[recensione]"+o+"[/recensione]",n.post(i,s,(function(t){dialogo&&dialogo.length?dialogo:n(".bootbox:visible").last();r.ok?n.growl.notice({title:"Recensione condivisa!",message:"<div class='text-center'> <i class='fa fa-bullhorn fa-3x' /></div>"}):a.alert(r.message),AC.setLoading(e,!1)}))}))},appendRemove:function(){var t=n("<button type='button' class='btn btn-outline-secondary btn-sm' ><span class='fa fa-minus remove-c'></span></button>");t.click(this.removeG),n(this).closest("div").append(t)},addCategoria:function(){o("#search_manga_categorieIncluse")},addGenere:function(){o("#search_manga_generiIncluse")},removeCategoria:function(){o("#search_manga_categorieEscluse")},removeGenere:function(){o("#search_manga_generiEscluse")},removeG:i("ZDk/")},t.exports=ACOpera},vuXX:function(t,e,i){"use strict";var n="da-caricare",o=[];function a(t){var e=document.createElement("p");e.className="text-danger small mb-0",e.textContent="Non è stato possibile caricare la verifica di sicurezza. Controlla che il browser non blocchi challenges.cloudflare.com e ricarica la pagina.",t.replaceChildren(e)}function r(t){if(t.isConnected&&!t.hasAttribute("data-ac-turnstile-id")){var e=window.turnstile.render(t,{sitekey:t.getAttribute("data-ac-turnstile-sitekey"),action:t.getAttribute("data-ac-turnstile-azione"),"response-field-name":t.getAttribute("data-ac-turnstile-campo"),language:"it",theme:"light",size:t.clientWidth>=300?"flexible":"compact"});e&&t.setAttribute("data-ac-turnstile-id",e)}}function s(t){t.hasAttribute("data-ac-turnstile-id")||t.hasAttribute("data-ac-turnstile-prenotato")||(t.setAttribute("data-ac-turnstile-prenotato",""),"pronta"===n?r(t):"errore"===n?a(t):(o.push(t),function(){if("da-caricare"===n){n="in-caricamento",window.acVerificaUmanaApiCaricata=function(){n="pronta",o.splice(0).forEach(r)};var t=document.createElement("script");t.src="https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit&onload=acVerificaUmanaApiCaricata",t.onerror=function(){n="errore",o.splice(0).forEach(a)},document.head.appendChild(t)}}()))}t.exports={inizializza:function(t,e){var i=t||document;(i.matches&&i.matches("[data-ac-turnstile]")?[i]:Array.prototype.slice.call(i.querySelectorAll("[data-ac-turnstile]"))).forEach((function(t){!e&&t.hasAttribute("data-ac-turnstile-differito")?function(t){var e=t.closest("form");if(e){var i=function(){e.removeEventListener("focusin",i),e.removeEventListener("click",i),s(t)};e.addEventListener("focusin",i),e.addEventListener("click",i)}else s(t)}(t):s(t)}))},rimuovi:function(t){t&&window.turnstile&&t.querySelectorAll("[data-ac-turnstile-id]").forEach((function(t){window.turnstile.remove(t.getAttribute("data-ac-turnstile-id")),t.removeAttribute("data-ac-turnstile-id")}))}}},"wQ+H":function(t,e,i){"use strict";var n=i("R+s1").default,o=["Bocciato","Rimandato","Promosso"],a=["#c9302c","#d99b00","#398439"];function r(t,e){var i=t.getAttribute(e),n=i?JSON.parse(i):[];if(!Array.isArray(n))throw new TypeError(e+" deve contenere un array JSON.");return n}t.exports=function(t){t=t||document;var e=[];return t.querySelectorAll(".pollici-grafico-andamento-div").forEach((function(t){try{var i=r(t,"data-ac-chart-series"),s=r(t,"data-ac-chart-categories");i.sort((function(t,e){return o.indexOf(t.name)-o.indexOf(e.name)})),e.push(n.renderLine(t,{title:"Andamento valutazione episodi",description:"Andamento per episodio delle valutazioni Promosso, Rimandato e Bocciato",categories:s,series:i,colors:a,yTitle:"Pollici",yMin:0,area:!0,stack:"valutazioni-episodi"}))}catch(e){n.showError(t)}})),t.querySelectorAll(".recensioni-grafico-andamento-div").forEach((function(t){try{e.push(n.renderBar(t,{title:"Andamento valutazione recensioni",description:"Numero di recensioni per voto",series:r(t,"data-ac-chart-series"),yTitle:"Numero di voti"}))}catch(e){n.showError(t)}})),Promise.all(e.map((function(t){return t.catch((function(){return null}))}))).then((function(){n.resize()}))}}
12,ws0i:function(t,e,i){(function(e){var n=i("EVdn"),o=i("DuH2"),a=i("R+s1").default;function r(){var t=o.ns().Popover;document.querySelectorAll('[data-bs-toggle="popover"]').forEach((function(e){t.getOrCreateInstance(e)}))}ACCommon={Charts:a,init:function(){n(document).ajaxComplete((function(){n(".popover").remove(),r()})),r(),e().lazyload&&(n("img.lazy").lazyload({effect:"fadeIn",placeholder:"",failure_limit:50}),n(document.body).on("paginateMe",(function(){n("img.lazy").lazyload({effect:"fadeIn",placeholder:"",failure_limit:50})}))),n(".bbcode-toolbar").bbcodeEditor(),o.ns().Popover.getOrCreateInstance(document.body,{html:!0,selector:".anteprima-img",trigger:"hover",placement:"right",customClass:function(){return n(this).data("edition-cover-preview")?"ac-popover-cover-edizione":""},content:function(){var t=n(this).data("img");return void 0!==t&&""!==t?"<img src='"+t+"'"+(n(this).data("edition-cover-preview")?" class='ac-anteprima-cover-edizione'":"")+" />":"Foto non disponibile."}}),n(document.body).on("mouseenter","*[data-poload]",(function(){AC.popoverDestroy(n("*[data-poload]"));var t=n(this);t.mouseleave((function(){AC.popoverDestroy(t)})),n.get(t.data("poload"),(function(e){o.ns().Popover.getOrCreateInstance(t[0],{container:"body",html:!0,placement:"right",content:e}).show()}))})),n(document.body).on("click",".add-edizione",(function(t){t.preventDefault();try{var e=n(this),i=n(this).data("action"),o=n(this).data("cat"),a=n(this).data("id");n.ajax({url:i,dataType:"json",type:"POST",data:{cat:o,id:a},success:function(t){t.message;t.ok?n(e).parent().closest("span").hide("slow"):alert(t.message)}})}catch(t){console.log(t)}return!1})),n(document.body).on("click",".add-voto-sondaggio",(function(t){t.preventDefault();try{var e=n(this),i=n(this).data("action"),o=n(this).data("reload"),a=n(this).data("poll");n.ajax({url:i,dataType:"json",type:"POST",data:n("form#sondaggioform"+a).serialize(),success:function(t){t.message;t.ok?(n(e).parent().closest("span").hide("slow"),n.get(o,(function(t){n("#sondaggione"+a).html(t)}))):alert(t.message)}})}catch(t){console.log(t)}return!1})),this.initEmbedVideo()},getSelectedText:function(){return AC.Utils.getSelectedText()},imageUploadPreview:function(t,e){if(t.files&&t.files[0]){var i=new FileReader;i.onload=function(t){n(e).attr("src",t.target.result)},i.readAsDataURL(t.files[0])}},initEmbedVideo:function(){n(".yt-embedvideo").each((function(){n(document).delegate("#"+this.id,"click",(function(){var t="https://www.youtube.com/embed/"+this.id+"?autoplay=1&autohide=1";n(this).data("params")&&(t+="&"+n(this).data("params"));var e=n("<iframe/>",{frameborder:"0",allowfullscreen:"",src:t,width:n(this).width(),height:n(this).height()});n(this).replaceWith(e)}))})),n(".dm-embedvideo").each((function(){n(document).delegate("#"+this.id,"click",(function(){var t="https://www.dailymotion.com/embed/video/"+this.id+"?autoplay=1";n(this).data("params")&&(t+="&"+n(this).data("params"));var e=n("<iframe/>",{frameborder:"0",allowfullscreen:"",src:t,width:n(this).width(),height:n(this).height()});n(this).replaceWith(e)}))}))},updateQueryStringParameter:function(t,e,i){var n=new RegExp("([?&])"+e+"=.*?(&|$)","i"),o=-1!==t.indexOf("?")?"&":"?";return t.match(n)?t.replace(n,"$1"+e+"="+i+"$2"):t+o+e+"="+i}},t.exports=ACCommon}).call(this,i("EVdn"))},yLLQ:function(t,e,i){(function(e){var n=i("HTCS");t.exports=function(){function t(t,i){var n=t.attr("href"),o=t.data("id-voto-usr");i._token=t.data("csrf"),e.ajax({type:"POST",url:n,data:i,success:function(t){var i=e.parseJSON(t);i.ok?(e("#voto-usr-"+o).empty(),e("#tot-promosso,#tot-promosso-"+i.data.id).html('<i class="fa fa-thumbs-o-up"></i>&nbsp;'+i.data.promosso),e("#tot-rimandato,#tot-rimandato-"+i.data.id).html('<i class="fa fa-hand-o-right"></i>&nbsp;'+i.data.rimandato),e("#tot-bocciato,#tot-bocciato-"+i.data.id).html('<i class="fa fa-thumbs-o-down"></i>&nbsp;'+i.data.bocciato)):alert(i.message||"Si è verificato un errore")},error:function(){alert("Si è verificato un errore! Riprovare più tardi.")}})}e(document.body).on("click",".btn-remove-lista",(function(t){t.preventDefault();var i=e(this).attr("href");return n.confirm("Procedere con la rimozione dalla propria lista?",(function(t){if(t)try{e.ajax({url:i,dataType:"json",success:function(t){var i=t;t.message;if(i.ok){var n=i.data;e("#lista-opera-dd").empty(),e("#lista-opera-dd").html('Titolo rimosso con successo dalla <a href="'+n+'" title="Vai alla tua lista opera.">tua lista</a>.')}else alert("Si è verificato un errore")}})}catch(t){console.log(t)}})),!1})),e(document.body).on("click",".btn-cancella-voto-utente",(function(i){i.preventDefault();var o=e(this);return n.prompt({title:"Rimuovi il pollice dell'utente",message:"<p>Il pollice verrà rimosso. Indica la motivazione: verrà comunicata all'autore.</p>",inputType:"textarea",maxlength:500,callback:function(i){if(null!==i)return""===e.trim(i)?(n.alert("La motivazione è obbligatoria."),!1):void t(o,{motivazione:i})}}),!1})),e(document.body).on("click",".btn-cancella-mio-voto",(function(i){i.preventDefault();var o=e(this);return n.confirm("Il tuo voto e l'eventuale commento verranno cancellati. Continuare?",(function(e){e&&t(o,{})})),!1})),e(document.body).on("click",".btn-segnala-pollice",(function(t){t.preventDefault();var i=e(this),o=i.attr("href"),a=i.data("csrf");return n.prompt({title:"Segnala questo commento ai moderatori",message:"<p>Se vuoi, spiega in poche parole perché lo segnali (facoltativo).</p>",inputType:"textarea",maxlength:500,callback:function(t){null!==t&&e.ajax({type:"POST",url:o,data:{_token:a,motivo:t},success:function(t){var o=e.parseJSON(t);o.ok?(i.replaceWith('<span class="badge text-bg-secondary" title="'+o.message+'"><i class="fa fa-flag"></i>&nbsp;Segnalato</span>'),n.alert(o.message)):n.alert(o.message||"Si è verificato un errore")},error:function(){alert("Si è verificato un errore! Riprovare più tardi.")}})}}),!1}))}}).call(this,i("EVdn"))}},[[28,"runtime",0,1]]]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.