PageSourceSearch

https://accudire.eu/wp-content/themes/accudire/js/accudire.js?ver=1

js accudire.eu collected 2026-10-06 14:00:43 UTC 53,741 bytes, 909 lines download raw bytes

1//cookies https://developer.mozilla.org/en-US/docs/DOM/document.cookie
2var docCookies={getItem:function (e) {return e?decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null:null},setItem:function (e,n,o,t,c,r) {if(!e||/^(?:expires|max\-age|path|domain|secure)$/i.test(e))return!1;var s="";if(o)switch(o.constructor) {case Number:s=1/0===o?"; expires=Fri, 31 Dec 9999 23:59:59 GMT":"; max-age="+o;break;case String:s="; expires="+o;break;case Date:s="; expires="+o.toUTCString()}return document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(n)+s+(c?"; domain="+c:"")+(t?"; path="+t:"")+(r?"; secure":""),!0},removeItem:function (e,n,o) {return this.hasItem(e)?(document.cookie=encodeURIComponent(e)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT"+(o?"; domain="+o:"")+(n?"; path="+n:""),!0):!1},hasItem:function (e) {return e?new RegExp("(?:^|;\\s*)"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie):!1},keys:function () {for(var e=document.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g,"").split(/\s*(?:\=[^;]*)?;\s*/),n=e.length,o=0;n>o;o++)e[o]=decodeURIComponent(e[o]);return e}};
3
4//NodeList.prototype.forEach polyfill
5window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function (o,t) {t=t||window;for(var i=0;i<this.length;i++)o.call(t,this[i],i,this)});
6
7// svg4everybody - https://raw.githubusercontent.com/jonathantneal/svg4everybody/master/dist/svg4everybody.min.js
8!function (a,b) {"function"==typeof define&&define.amd?define([],function () {return a.svg4everybody=b()}):"object"==typeof module&&module.exports?module.exports=b():a.svg4everybody=b()}(this,function () {function a(a,b,c) {if(c) {var d=document.createDocumentFragment(),e=!b.hasAttribute("viewBox")&&c.getAttribute("viewBox");e&&b.setAttribute("viewBox",e);for(var f=c.cloneNode(!0);f.childNodes.length;)d.appendChild(f.firstChild);a.appendChild(d)}}function b(b) {b.onreadystatechange=function () {if(4===b.readyState) {var c=b._cachedDocument;c||(c=b._cachedDocument=document.implementation.createHTMLDocument(""),c.body.innerHTML=b.responseText,b._cachedTarget={}),b._embeds.splice(0).map(function (d) {var e=b._cachedTarget[d.id];e||(e=b._cachedTarget[d.id]=c.getElementById(d.id)),a(d.parent,d.svg,e)})}},b.onreadystatechange()}function c(c) {function e() {for(var c=0;c<o.length;) {var h=o[c],i=h.parentNode,j=d(i),k=h.getAttribute("xlink:href")||h.getAttribute("href");if(!k&&g.attributeName&&(k=h.getAttribute(g.attributeName)),j&&k) {if(f)if(!g.validate||g.validate(k,j,h)) {i.removeChild(h);var l=k.split("#"),q=l.shift(),r=l.join("#");if(q.length) {var s=m[q];s||(s=m[q]=new XMLHttpRequest,s.open("GET",q),s.send(),s._embeds=[]),s._embeds.push({parent:i,svg:j,id:r}),b(s)}else a(i,j,document.getElementById(r))}else++c,++p}else++c}(!o.length||o.length-p>0)&&n(e,67)}var f,g=Object(c),h=/\bTrident\/[567]\b|\bMSIE (?:9|10)\.0\b/,i=/\bAppleWebKit\/(\d+)\b/,j=/\bEdge\/12\.(\d+)\b/,k=/\bEdge\/.(\d+)\b/,l=window.top!==window.self;f="polyfill"in g?g.polyfill:h.test(navigator.userAgent)||(navigator.userAgent.match(j)||[])[1]<10547||(navigator.userAgent.match(i)||[])[1]<537||k.test(navigator.userAgent)&&l;var m={},n=window.requestAnimationFrame||setTimeout,o=document.getElementsByTagName("use"),p=0;f&&e()}function d(a) {for(var b=a;"svg"!==b.nodeName.toLowerCase()&&(b=b.parentNode););return b}return c});
9
10/*! IntersectionObserver polyfill - https://github.com/w3c/IntersectionObserver/tree/master/polyfill */
11!function (t,e) {"use strict";if("IntersectionObserver"in t&&"IntersectionObserverEntry"in t&&"intersectionRatio"in t.IntersectionObserverEntry.prototype)"isIntersecting"in t.IntersectionObserverEntry.prototype||Object.defineProperty(t.IntersectionObserverEntry.prototype,"isIntersecting",{get:function () {return this.intersectionRatio>0}});else{var n=[];i.prototype.THROTTLE_TIMEOUT=200,i.prototype.POLL_INTERVAL=null,i.prototype.USE_MUTATION_OBSERVER=!0,i.prototype.observe=function (t) {if(!this._observationTargets.some(function (e) {return e.element==t})) {if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},i.prototype.unobserve=function (t) {this._observationTargets=this._observationTargets.filter(function (e) {return e.element!=t}),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},i.prototype.disconnect=function () {this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},i.prototype.takeRecords=function () {var t=this._queuedEntries.slice();return this._queuedEntries=[],t},i.prototype._initThresholds=function (t) {var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter(function (t,e,n) {if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==n[e-1]})},i.prototype._parseRootMargin=function (t) {var e=(t||"0px").split(/\s+/).map(function (t) {var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}});return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},i.prototype._monitorIntersections=function () {this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(r(t,"resize",this._checkForIntersections,!0),r(e,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in t&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},i.prototype._unmonitorIntersections=function () {this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,s(t,"resize",this._checkForIntersections,!0),s(e,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},i.prototype._checkForIntersections=function () {var e=this._rootIsInDom(),n=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};
11this._observationTargets.forEach(function (i) {var r=i.element,s=h(r),c=this._rootContainsTarget(r),a=i.entry,u=e&&c&&this._computeTargetAndRootIntersection(r,n),l=i.entry=new o({time:t.performance&&performance.now&&performance.now(),target:r,boundingClientRect:s,rootBounds:n,intersectionRect:u});a?e&&c?this._hasCrossedThreshold(a,l)&&this._queuedEntries.push(l):a&&a.isIntersecting&&this._queuedEntries.push(l):this._queuedEntries.push(l)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},i.prototype._computeTargetAndRootIntersection=function (n,o) {if("none"!=t.getComputedStyle(n).display) {for(var i,r,s,c,u,l,p,d,g=h(n),f=a(n),_=!1;!_;) {var v=null,m=1==f.nodeType?t.getComputedStyle(f):{};if("none"==m.display)return;if(f==this.root||f==e?(_=!0,v=o):f!=e.body&&f!=e.documentElement&&"visible"!=m.overflow&&(v=h(f)),v&&(i=v,r=g,void 0,void 0,void 0,void 0,void 0,void 0,s=Math.max(i.top,r.top),c=Math.min(i.bottom,r.bottom),u=Math.max(i.left,r.left),l=Math.min(i.right,r.right),d=c-s,!(g=(p=l-u)>=0&&d>=0&&{top:s,bottom:c,left:u,right:l,width:p,height:d})))break;f=a(f)}return g}},i.prototype._getRootRect=function () {var t;if(this.root)t=h(this.root);else{var n=e.documentElement,o=e.body;t={top:0,left:0,right:n.clientWidth||o.clientWidth,width:n.clientWidth||o.clientWidth,bottom:n.clientHeight||o.clientHeight,height:n.clientHeight||o.clientHeight}}return this._expandRectByRootMargin(t)},i.prototype._expandRectByRootMargin=function (t) {var e=this._rootMarginValues.map(function (e,n) {return"px"==e.unit?e.value:e.value*(n%2?t.width:t.height)/100}),n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},i.prototype._hasCrossedThreshold=function (t,e) {var n=t&&t.isIntersecting?t.intersectionRatio||0:-1,o=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==o)for(var i=0;i<this.thresholds.length;i++) {var r=this.thresholds[i];if(r==n||r==o||r<n!=r<o)return!0}},i.prototype._rootIsInDom=function () {return!this.root||c(e,this.root)},i.prototype._rootContainsTarget=function (t) {return c(this.root||e,t)},i.prototype._registerInstance=function () {n.indexOf(this)<0&&n.push(this)},i.prototype._unregisterInstance=function () {var t=n.indexOf(this);-1!=t&&n.splice(t,1)},t.IntersectionObserver=i,t.IntersectionObserverEntry=o}function o(t) {this.time=t.time,this.target=t.target,this.rootBounds=t.rootBounds,this.boundingClientRect=t.boundingClientRect,this.intersectionRect=t.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0},this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,n=e.width*e.height,o=this.intersectionRect,i=o.width*o.height;this.intersectionRatio=n?Number((i/n).toFixed(4)):this.isIntersecting?1:0}function i(t,e) {var n,o,i,r=e||{};if("function"!=typeof t)throw new Error("callback must be a function");if(r.root&&1!=r.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=(n=this._checkForIntersections.bind(this),o=this.THROTTLE_TIMEOUT,i=null,function () {i||(i=setTimeout(function () {n(),i=null},o))}),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(r.rootMargin),this.thresholds=this._initThresholds(r.threshold),this.root=r.root||null,this.rootMargin=this._rootMarginValues.map(function (t) {return t.value+t.unit}).join(" ")}function r(t,e,n,o) {"function"==typeof t.addEventListener?t.addEventListener(e,n,o||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,n)}function s(t,e,n,o) {"function"==typeof t.removeEventListener?t.removeEventListener(e,n,o||!1):"function"==typeof t.detatchEvent&&t.detatchEvent("on"+e,n)}function h(t) {var e;try {e=t.getBoundingClientRect()} catch(t) {}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function c(t,e) {for(var n=e;n;) {if(n==t)return!0;n=a(n)}return!1}function a(t) {var e=t.parentNode;return e&&11==e.nodeType&&e.host?e.host:e&&e.assignedSlot?e.assignedSlot.parentNode:e}}(window,document);
12
13/*!
14 * in-view 0.6.1 - Get notified when a DOM element enters or exits the viewport.
15 * Copyright (c) 2016 Cam Wiegert <[email protected]> - https://camwiegert.github.io/in-view
16 * License: MIT
17 */
18!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exp
vendor: 5,428 bytes, lines 18-24
18orts.inView=e():t.inView=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}var i=n(2),o=r(i);t.exports=o["default"]},function(t,e){function n(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}t.exports=n},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(9),o=r(i),u=n(3),f=r(u),s=n(4),c=function(){if("undefined"!=typeof window){var t=100,e=["scroll","resize","load"],n={history:[]},r={offset:{},threshold:0,test:s.inViewport},i=(0,o["default"])(function(){n.history.forEach(function(t){n[t].check()})},t);e.forEach(function(t){return addEventListener(t,i)}),window.MutationObserver&&addEventListener("DOMContentLoaded",function(){new MutationObserver(i).observe(document.body,{attributes:!0,childList:!0,subtree:!0})});var u=function(t){if("string"==typeof t){var e=[].slice.call(document.querySelectorAll(t));return n.history.indexOf(t)>-1?n[t].elements=e:(n[t]=(0,f["default"])(e,r),n.history.push(t)),n[t]}};return u.offset=function(t){if(void 0===t)return r.offset;var e=function(t){return"number"==typeof t};return["top","right","bottom","left"].forEach(e(t)?function(e){return r.offset[e]=t}:function(n){return e(t[n])?r.offset[n]=t[n]:null}),r.offset},u.threshold=function(t){return"number"==typeof t&&t>=0&&t<=1?r.threshold=t:r.threshold},u.test=function(t){return"function"==typeof t?r.test=t:r.test},u.is=function(t){return r.test(t,r)},u.offset(0),u}};e["default"]=c()},function(t,e){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function(){function t(e,r){n(this,t),this.options=r,this.elements=e,this.current=[],this.handlers={enter:[],exit:[]},this.singles={enter:[],exit:[]}}return r(t,[{key:"check",value:function(){var t=this;return this.elements.forEach(function(e){var n=t.options.test(e,t.options),r=t.current.indexOf(e),i=r>-1,o=n&&!i,u=!n&&i;o&&(t.current.push(e),t.emit("enter",e)),u&&(t.current.splice(r,1),t.emit("exit",e))}),this}},{key:"on",value:function(t,e){return this.handlers[t].push(e),this}},{key:"once",value:function(t,e){return this.singles[t].unshift(e),this}},{key:"emit",value:function(t,e){for(;this.singles[t].length;)this.singles[t].pop()(e);for(var n=this.handlers[t].length;--n>-1;)this.handlers[t][n](e);return this}}]),t}();e["default"]=function(t,e){return new i(t,e)}},function(t,e){"use strict";function n(t,e){var n=t.getBoundingClientRect(),r=n.top,i=n.right,o=n.bottom,u=n.left,f=n.width,s=n.height,c={t:o,r:window.innerWidth-u,b:window.innerHeight-r,l:i},a={x:e.threshold*f,y:e.threshold*s};return c.t>e.offset.top+a.y&&c.r>e.offset.right+a.x&&c.b>e.offset.bottom+a.y&&c.l>e.offset.left+a.x}Object.defineProperty(e,"__esModule",{value:!0}),e.inViewport=n},function(t,e){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(e,function(){return this}())},function(t,e,n){var r=n(5),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},function(t,e,n){function r(t,e,n){function r(e){var n=x,r=m;return x=m=void 0,E=e,w=t.apply(r,n)}function a(t){return E=t,j=setTimeout(h,e),M?r(t):w}function l(t){var n=t-O,r=t-E,i=e-n;return _?c(i,g-r):i}function d(t){var n=t-O,r=t-E;return void 0===O||n>=e||n<0||_&&r>=g}function h(){var t=o();return d(t)?p(t):void(j=setTimeout(h,l(t)))}function p(t){return j=void 0,T&&x?r(t):(x=m=void 0,w)}function v(){void 0!==j&&clearTimeout(j),E=0,x=O=m=j=void 0}function y(){return void 0===j?w:p(o())}function b(){var t=o(),n=d(t);if(x=arguments,m=this,O=t,n){if(void 0===j)return a(O);if(_)return j=setTimeout(h,e),r(O)}return void 0===j&&(j=setTimeout(h,e)),w}var x,m,g,w,j,O,E=0,M=!1,_=!1,T=!0;if("function"!=typeof t)throw new TypeError(f);return e=u(e)||0,i(n)&&(M=!!n.leading,_="maxWait"in n,g=_?s(u(n.maxWait)||0,e):g,T="trailing"in n?!!n.trailing:T),b.cancel=v,b.flush=y,b}var i=n(1),o=n(8),u=n(10),f="Expected a function",s=Math.max,c=Math.min;t.exports=r},function(t,e,n){var r=n(6),i=function(){return r.Date.now()};t.exports=i},function(t,e,n){function r(t,e,n){var r=!0,f=!0;if("function"!=typeof t)throw new TypeError(u);return o(n)&&(r="leading"in n?!!n.leading:r,f="trailing"in n?!!n.trailing:f),i(t,e,{leading:r,maxWait:e,trailing:f})}var i=n(7),o=n(1),u="Expected a function";t.exports=r},function(t,e){function n(t){return t}t.exports=n}])});
19
20//Passive event listeners support
21var supportsPassive=!1;try {var opts=Object.defineProperty({},"passive",{get:function () {supportsPassive=!0}});window.addEventListener("testPassive",null,opts),window.removeEventListener("testPassive",null,opts)} catch(s) {}
22
23// lity 2.4.1
24!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(c){return b(a,c)}):"object"==typeof module&&"object"==typeof module.exports?module.exports=b(a,require("jquery")):a.lity=b(
vendor: 5,020 bytes, line 24
24a,a.jQuery||a.Zepto)}("undefined"!=typeof window?window:this,function(a,b){"use strict";function c(a){var b=B();return N&&a.length?(a.one(N,b.resolve),setTimeout(b.resolve,500)):b.resolve(),b.promise()}function d(a,c,d){if(1===arguments.length)return b.extend({},a);if("string"==typeof c){if(void 0===d)return void 0===a[c]?null:a[c];a[c]=d}else b.extend(a,c);return this}function e(a){for(var b,c=decodeURI(a.split("#")[0]).split("&"),d={},e=0,f=c.length;e<f;e++)c[e]&&(b=c[e].split("="),d[b[0]]=b[1]);return d}function f(a,c){return a+(a.indexOf("?")>-1?"&":"?")+b.param(c)}function g(a,b){var c=a.indexOf("#");return-1===c?b:(c>0&&(a=a.substr(c)),b+a)}function h(a){return b('<span class="lity-error"></span>').append(a)}function i(a,c){var d=c.opener()&&c.opener().data("lity-desc")||"Image with no description",e=b('<img src="'+a+'" alt="'+d+'"/>'),f=B(),g=function(){f.reject(h("Failed loading image"))};return e.on("load",function(){if(0===this.naturalWidth)return g();f.resolve(e)}).on("error",g),f.promise()}function j(a,c){var d,e,f;try{d=b(a)}catch(a){return!1}return!!d.length&&(e=b('<i style="display:none !important"></i>'),f=d.hasClass("lity-hide"),c.element().one("lity:remove",function(){e.before(d).remove(),f&&!d.closest(".lity-content").length&&d.addClass("lity-hide")}),d.removeClass("lity-hide").after(e))}function k(a){var c=J.exec(a);return!!c&&o(g(a,f("https://www.youtube"+(c[2]||"")+".com/embed/"+c[4],b.extend({autoplay:1},e(c[5]||"")))))}function l(a){var c=K.exec(a);return!!c&&o(g(a,f("https://player.vimeo.com/video/"+c[3],b.extend({autoplay:1},e(c[4]||"")))))}function m(a){var c=M.exec(a);return!!c&&(0!==a.indexOf("http")&&(a="https:"+a),o(g(a,f("https://www.facebook.com/plugins/video.php?href="+a,b.extend({autoplay:1},e(c[4]||""))))))}function n(a){var b=L.exec(a);return!!b&&o(g(a,f("https://www.google."+b[3]+"/maps?"+b[6],{output:b[6].indexOf("layer=c")>0?"svembed":"embed"})))}function o(a){return'<div class="lity-iframe-container"><iframe frameborder="0" allowfullscreen allow="autoplay; fullscreen" src="'+a+'"/></div>'}function p(){return z.documentElement.clientHeight?z.documentElement.clientHeight:Math.round(A.height())}function q(a){var b=v();b&&(27===a.keyCode&&b.options("esc")&&b.close(),9===a.keyCode&&r(a,b))}function r(a,b){var c=b.element().find(G),d=c.index(z.activeElement);a.shiftKey&&d<=0?(c.get(c.length-1).focus(),a.preventDefault()):a.shiftKey||d!==c.length-1||(c.get(0).focus(),a.preventDefault())}function s(){b.each(D,function(a,b){b.resize()})}function t(a){1===D.unshift(a)&&(C.addClass("lity-active"),A.on({resize:s,keydown:q})),b("body > *").not(a.element()).addClass("lity-hidden").each(function(){var a=b(this);void 0===a.data(F)&&a.data(F,a.attr(E)||null)}).attr(E,"true")}function u(a){var c;a.element().attr(E,"true"),1===D.length&&(C.removeClass("lity-active"),A.off({resize:s,keydown:q})),D=b.grep(D,function(b){return a!==b}),c=D.length?D[0].element():b(".lity-hidden"),c.removeClass("lity-hidden").each(function(){var a=b(this),c=a.data(F);c?a.attr(E,c):a.removeAttr(E),a.removeData(F)})}function v(){return 0===D.length?null:D[0]}function w(a,c,d,e){var f,g="inline",h=b.extend({},d);return e&&h[e]?(f=h[e](a,c),g=e):(b.each(["inline","iframe"],function(a,b){delete h[b],h[b]=d[b]}),b.each(h,function(b,d){return!d||(!(!d.test||d.test(a,c))||(f=d(a,c),!1!==f?(g=b,!1):void 0))})),{handler:g,content:f||""}}function x(a,e,f,g){function h(a){k=b(a).css("max-height",p()+"px"),j.find(".lity-loader").each(function(){var a=b(this);c(a).always(function(){a.remove()})}),j.removeClass("lity-loading").find(".lity-content").empty().append(k),m=!0,k.trigger("lity:ready",[l])}var i,j,k,l=this,m=!1,n=!1;e=b.extend({},H,e),j=b(e.template),l.element=function(){return j},l.opener=function(){return f},l.options=b.proxy(d,l,e),l.handlers=b.proxy(d,l,e.handlers),l.resize=function(){m&&!n&&k.css("max-height",p()+"px").trigger("lity:resize",[l])},l.close=function(){if(m&&!n){n=!0,u(l);var a=B();if(g&&(z.activeElement===j[0]||b.contains(j[0],z.activeElement)))try{g.focus()}catch(a){}return k.trigger("lity:close",[l]),j.removeClass("lity-opened").addClass("lity-closed"),c(k.add(j)).always(function(){k.trigger("lity:remove",[l]),j.remove(),j=void 0,a.resolve()}),a.promise()}},i=w(a,l,e.handlers,e.handler),j.attr(E,"false").addClass("lity-loading lity-opened lity-"+i.handler).appendTo("body").focus().on("click","[data-lity-close]",function(a){b(a.target).is("[data-lity-close]")&&l.close()}).trigger("lity:open",[l]),t(l),b.when(i.content).always(h)}function y(a,c,d){a.preventDefault?(a.preventDefault(),d=b(this),a=d.data("lity-target")||d.attr("href")||d.attr("src")):d=b(d);var e=new x(a,b.extend({},d.data("lity-options")||d.data("lity"),c),d,z.activeElement);if(!a.preventDefault)return e}var z=a.document,A=b(a),B=b.Deferred,C=b("html"),D=[],E="aria-hidden",F="lity-"+E,G='a[href],area[href],input:not([disabled]),select:not([disabled]),textarea:not([disabled]),button:not([disabled]),iframe,object,embed,[contenteditable],[tabindex]:not
24([tabindex^="-"])',H={esc:!0,handler:null,handlers:{image:i,inline:j,youtube:k,vimeo:l,googlemaps:n,facebookvideo:m,iframe:o},template:'<div class="lity" role="dialog" aria-label="Dialog Window (Press escape to close)" tabindex="-1"><div class="lity-wrap" data-lity-close role="document"><div class="lity-loader" aria-hidden="true">Loading...</div><div class="lity-container"><div class="lity-content"></div><button class="lity-close" type="button" aria-label="Close (Press escape to close)" data-lity-close>&times;</button></div></div></div>'},I=/(^data:image\/)|(\.(png|jpe?g|gif|svg|webp|bmp|ico|tiff?)(\?\S*)?$)/i,J=/(youtube(-nocookie)?\.com|youtu\.be)\/(watch\?v=|v\/|u\/|embed\/?)?([\w-]{11})(.*)?/i,K=/(vimeo(pro)?.com)\/(?:[^\d]+)?(\d+)\??(.*)?$/,L=/((maps|www)\.)?google\.([^\/\?]+)\/?((maps\/?)?\?)(.*)/i,M=/(facebook\.com)\/([a-z0-9_-]*)\/videos\/([0-9]*)(.*)?$/i,N=function(){var a=z.createElement("div"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return b[c];return!1}();return i.test=function(a){return I.test(a)},y.version="2.4.1",y.options=b.proxy(d,y,H),y.handlers=b.proxy(d,y,H.handlers),y.current=v,b(z).on("click.lity","[data-lity]",y),y});
25
26//DOMReady
27if (document.readyState!='loading') DOMReady();
28else if (document.addEventListener) document.addEventListener('DOMContentLoaded', DOMReady);
29
30function DOMReady () {
31	menu();
32	infograficaSwitch();
33	infograficaIntraUE();
34	infograficaExtraUE();
35	// header();
36	effex();
37	cookieLaw();
38	formEffex();
39	modalVideo();
40	formrecaptcha();
41	svg4everybody();
42	piattaformaAccordion();
43	composerSwitcher();
44	videoCarousel();
45	headerMessage();
46	footerMessage();
47	floatingMenu();
48	blog();
49}
50
51
52var player;
53function onYouTubeIframeAPIReady() {
54	player = new YT.Player('homevideo-player', {
55		host: 'https://www.youtube-nocookie.com',
56		playerVars: {
57			hl: document.querySelector('body').dataset.languageCode,
58			origin: window.location.host,
59			showinfo: 0,
60			rel: 0,
61		}
62	});
63}
64
65function cookieLaw() {
66	try {
67		var cookieLaw = docCookies.hasItem('cookieLaw');
68		var	privacyModal = document.getElementById('privacy-modal');
69
70		if(privacyModal) {
71			var	privacyForm = document.getElementById('privacy-form');
72			if(privacyForm) {
73				privacyForm.addEventListener('submit',function (event) {
74				  	event.preventDefault();
75				  	docCookies.setItem('cookieLaw', 1, 60*60*24*365,'/');
76				  	privacyModal.style.display = 'none';
77				});
78			}
79		}
80	} catch (e) { console.error(e); }
81}
82
83function formrecaptcha() {
84	try {
85		var formrecaptchaArray = document.querySelectorAll('.formrecaptcha');
86		formrecaptchaArray.forEach(function (formrecaptcha) {
87			formrecaptcha.addEventListener('submit',function (event) {
88				event.preventDefault();
89				grecaptcha.ready(function () {
90					if(formrecaptcha.multiple != true) {
91						formrecaptcha.multiple = true;
92						grecaptcha.execute('6LdKZeoUAAAAACYgm6SQ-T4OSm5xluWtBdCMmaoJ').then(function (token) {
93							 var input = document.createElement('input');
94							 input.setAttribute('type', 'hidden');
95							 input.setAttribute('name', 'g-recaptcha-response');
96							 input.setAttribute('value', token);
97							 formrecaptcha.appendChild(input);
98							 formrecaptcha.submit();
99						});
100					}
101				});
102			});
103		});
104	} catch (e) { console.error(e); }
105}
106
107function modalVideo() {
108	try {
109		let modal = document.getElementById('dialog-video');
110		let container = document.getElementById('homevideo-player');
111		if (modal) {
112			modal.fropen = false;
113			let btnsModal = document.querySelectorAll('.btn-openvideo');
114			btnsModal.forEach(function (btn) {
115				btn.addEventListener('click', function () {
116					try {
117						player.loadVideoById(this.dataset.videoId || modal.dataset.defaultVideoId);
118					} catch (e) { }
119					window.requestAnimationFrame(function () {
120						if (!modal.fropen) {
121							modal.fropen = true;
122							modal.classList.add('open');
123							if (player) {
124								player.playVideo();
125							}
126						}
127					});
128				}, supportsPassive ? { passive: false } : true);
129			});
130			let close = modal.querySelector('.modal-close');
131			close.addEventListener('click', function () {
132				window.requestAnimationFrame(function () {
133					modal.fropen = false;
134					modal.classList.remove('open');
135					if (player) {
136						player.stopVideo();
137					}
138				});
139			}, supportsPassive ? { passive: false } : true);
140		}
141	} catch (e) { console.error(e); }
142}
143
144
145function formEffex() {
146	try {
147		let eleClass = 'form-input-filled';
148		document.querySelectorAll('.form-elefx input').forEach(function (item) {
149			if (item.value.trim() !== '') {
150				item.closest('.form-elefx').classList.add(eleClass);
151			}
152			item.addEventListener('focus', function (evt) {
153				evt.target.closest('.form-elefx').classList.add(eleClass);
154			});
155			item.addEventListener( 'blur', function (evt) {
156				if (evt.target.value.trim() === '') {
157					evt.target.closest('.form-elefx').classList.remove(eleClass);
158				}
159			});
160		});
161		// submit
162		document.addEventListener('wpcf7mailsent', function (evt) {
163			const parent = evt.target.closest('[data-submit-destination]');
164			if (parent && parent.dataset.submitDestination) {
165				document.location.href = parent.dataset.submitDestination;
166				evt.preventDefault();
167				return false;
168			}
169		});
170	} catch (e) { console.error(e); }
171}
172
173
174function effex() {
175	try {
176		var firstrun = true;
177
178		var effex = document.querySelectorAll('.effex');
179
180		var scrollTop = 0;
181		var ticking = false;
182		var h = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;
183		var timeDelay = 0.15;
184
185		var observerCallback = function (entries, observer) {
186			var delay = 0;
187			scrollTop = window.pageYOffset || document.documentElement.scrollTop;
188			entries.forEach( function (entry) {
189				if(entry.isIntersecting) {
190					if(entry.intersectionRatio > 0.18 || entry.boundingClientRect.height*0.2 > entry.rootBounds.height ) {
191						observer.unobserve(entry.target);
192						requestAnimationFrame(function () {
193							delay++;
194							entry.target.style['transition-delay'] = (timeDelay*delay)+'s';
195							requestAnimationFrame(function () { entry.target.classList.add('effex-animate'); });
196						});
197					}
198				} else if(entry.boundingClientRect.top < scrollTop ) {
199					observer.unobserve(entry.target);
200					requestAnimationFrame(function () { entry.target.classList.remove('effex'); });
201				}
202
203			});
204		};
205
206		var observerOptions = { rootMargin: '0%', threshold: [0,.1,.2] }
207		var observer = new IntersectionObserver(observerCallback, observerOptions);
208
209		effex.forEach(function (item) { observer.observe(item); });
210
211	} catch (e) { console.error(e); }
212}
213
214function header() {
215	try {
216		let headerPlaceholder = document.getElementById('headerPlaceholder');
217		let header = document.querySelector('header');
218		if(header && headerPlaceholder) {
219			header.tipo = 'normale';
220			header.visibile = 'visibile';
221			let callback = function (entries) {
222				entries.forEach(function (entry) {
223					if(entry.target == headerPlaceholder) {
224						header.isIntersecting = entry.isIntersecting;
225						changeIntersecting();
226					}
227				});
228			};
229
230			function changeIntersecting() {
231				if(header.tipo == 'normale' && header.visibile == 'visibile' && !header.isIntersecting) {
232					header.querySelectorAll('.submenuopen').forEach(function (entry) { entry.classList.remove('submenuopen','animate'); });
233					header.visibile = 'nascosto';
234					window.requestAnimationFrame(function () { header.classList.add('headerFadeout'); });
235				}
236				if(header.tipo == 'fixed' && header.visibile == 'visibile' && header.isIntersecting) {
237					header.querySelectorAll('.submenuopen').forEach(function (entry) { entry.classList.remove('submenuopen','animate'); });
238					header.visibile = 'nascosto';
239					window.requestAnimationFrame(function () { header.classList.add('headerFadeout'); });
240				}
241			}
242
243			header.addEventListener('transitionend', function (e) {
244				if(header.visibile == 'nascosto' && header.tipo == 'normale' && !header.isIntersecting ) {
245					header.tipo = 'fixed';
246					window.requestAnimationFrame(function () {
247						header.classList.add('headerSticky');
248						window.requestAnimationFrame(function () {
249							header.classList.remove('headerFadeout');
250							header.visibile = 'visibile';
251						});
252					});
253				}else if( header.visibile == 'nascosto' && header.tipo == 'fixed' && header.isIntersecting) {
254					header.tipo = 'normale';
255					window.requestAnimationFrame(function () {
256						header.classList.remove('headerSticky');
257						window.requestAnimationFrame(function () {
258							header.classList.remove('headerFadeout');
259							header.visibile = 'visibile';
260						});
261					});
262				} else {
263					window.requestAnimationFrame(function () {
264						header.classList.remove('headerFadeout');
265						header.visibile = 'visibile';
266					});
267				}
268			});
269
270			let observer = new IntersectionObserver(callback);
271			observer.observe(headerPlaceholder);
272
273		}
274	} catch (e) { console.error(e); }
275}
276
277function menu() {
278	document.querySelector('input[type="checkbox"]#menu-trigger').addEventListener('change', function (evt) {
279		document.body.style[this.checked ? 'setProperty' : 'removeProperty']('overflow', 'hidden');
280	});
281	document.querySelectorAll('.menu-header li.menu-item-has-children').forEach((item, idx) => {
282		item.addEventListener('mouseenter', function (evt) {
283			document.getElementById('menu-overlay').classList.add('show');
284		});
285		item.addEventListener('mouseleave', function (evt) {
286			document.getElementById('menu-overlay').classList.remove('show');
287		});
288	});
289	return;
290
291	try {
292		let btn = document.getElementById('btn-menu');
293		let body = document.querySelector('body');
294		let menuClassName = 'menuopen';
295		if(btn) {
296			let tickmenu = true;
297			btn.addEventListener('click', function (e) {
298				e.preventDefault();
299				if(tickmenu) {
300					tickmenu = false;
301					if(!body.classList.contains(menuClassName)) {
302						window.requestAnimationFrame(function () {
303							body.classList.add('menuanimate');
304							window.requestAnimationFrame(function () {
305								body.classList.add(menuClassName);
306								tickmenu = true;
307							});
308						});
309					} else {
310						window.requestAnimationFrame(function () {
311							body.classList.remove(menuClassName);
312							setTimeout(function () {
313								body.classList.remove('menuanimate');
314								tickmenu = true;
315							}, 300);
316						});
317					}
318				}
319
320			},supportsPassive ? { passive: false } : true);
321		}
322
323		let menuprimary = document.getElementById('menuprimary');
324		if(menuprimary) {
325			let submenuClassName = 'submenuopen';
326			let submenuitems = menuprimary.querySelectorAll('.menu-item-has-children > a');
327			let tickSubmenu = true;
328
329			submenuitems.forEach(function (submenuitem) {
330				submenuitem.addEventListener('click', function (e) {
331					e.preventDefault();
332					if(tickSubmenu) {
333						tickSubmenu = false;
334						if(!submenuitem.parentNode.classList.contains(submenuClassName)) {
335							window.requestAnimationFrame(function () {
336								submenuitem.parentNode.classList.add('animate');
337								window.requestAnimationFrame(function () {
338									submenuitem.parentNode.classList.add(submenuClassName);
339									tickSubmenu = true;
340								});
341							});
342						} else {
343							window.requestAnimationFrame(function () {
344								submenuitem.parentNode.classList.remove(submenuClassName);
345								setTimeout(function () {
346									submenuitem.parentNode.classList.remove('animate');
347									tickSubmenu = true;
348								}, 300);
349							});
350						}
351					}
352				});
353			});
354		}
355
356
357	} catch (e) { console.error(e); }
358}
359
360function piattaformaAccordion() {
361	try {
362		document.querySelectorAll('#piattaforma-feature label[for]').forEach(function (label) {
363			label.addEventListener('click', function (e) {
364				let radio = document.querySelector('input[type="radio"][id="'+this.attributes.for.nodeValue+'"]');
365				if (radio.checked) {
366					radio.checked = false;
367					e.preventDefault();
368					return false;
369				}
370			});
371		});
372	} catch (e) { console.log(e); }
373}
374
375function videoCarousel() {
376	try {
377		document.querySelectorAll('.video-carousel-container').forEach(function (carousel) {
378			let elements = carousel.querySelector('.video-carousel-film').childElementCount;
379			if (elements <= 2) {
380				carousel.querySelector('.video-carousel-navigation').style.display = 'none';
381			} else {
382				carousel.querySelector('.video-carousel-navigation .video-carousel-prev').disabled = true;
383				carousel.querySelector('.video-carousel-navigation .video-carousel-next').disabled = false;
384			}
385		});
386		document.querySelectorAll('.video-carousel-navigation .video-carousel-direction').forEach(function (navigation) {
387			navigation.addEventListener('click', function (e) {
388				let itemsPerPage = (window.innerWidth >= 864 ? 2 : 1);
389				let film = this.parentNode.parentNode.parentNode.querySelector('.video-carousel-film');
390				let min = 0, max = (Math.floor(film.childElementCount / itemsPerPage) - 1) * (-300 * itemsPerPage);
391				let direction = (this.classList.contains('video-carousel-next') ? -1 : 1);
392				let margin = (parseInt(film.style.marginLeft, 10) || 0) + (300 * itemsPerPage) * direction;
393				this.parentNode.parentNode.querySelector('.video-carousel-prev').disabled = (margin >= min);
394				this.parentNode.parentNode.querySelector('.video-carousel-next').disabled = (margin <= max);
395				film.style.marginLeft = Math.max(Math.min(min, margin), max) + 'px';
396				e.preventDefault();
397				return false;
398			});
399		});
400	} catch (e) { console.log(e); }
401}
402
403function infograficaSwitch() {
404	const switcher = document.getElementById('infografica-switch');
405	if (switcher) {
406		switcher.addEventListener('change', function (evt) {
407			this.scrollIntoView({
408				behavior: 'smooth',
409			});
410		});
411	}
412}
413
414function infograficaExtraUE() {
415	try {
416		let infografica = document.querySelector('#infografica');
417		if(infografica) {
418			infografica.isAnim = false;
419
420			let nEpsilon = Number.EPSILON || Math.pow(2, -52); //(function () { var e = 1.0; while ( ( 1.0 + 0.5 * e ) !== 1.0 ) e *= 0.5; return e; })();
421
422			let pacco = infografica.querySelector('#infog-pacco');
423			let paccoinside = infografica.querySelector('#infog-paccoinside');
424			let furgone = infografica.querySelector('#infog-furgone');
425			let percorso = infografica.querySelector('#infog-percorso');
426			let track = infografica.querySelector('#infog-track');
427			let trackBk = infografica.querySelector('#infog-trackbk');
428			let trackShadow = infografica.querySelector('#infog-trackshadow');
429			let trackShadowBk = infografica.querySelector('#infog-trackshadowbk');
430			let aereo = infografica.querySelector('#infog-aereo');
431			let nave = infografica.querySelector('#infog-nave');
432			let camion = infografica.querySelector('#infog-camion');
433			let bandiera = infografica.querySelector('#infog-bandiera');
434			let bandieraEU = infografica.querySelector('#infog-bandieraEU');
435
436			let options = { rootMargin: '0px', threshold: 0, }
437
438			let callback = function (entries, observer) {
439				entries.forEach(function (entry) {
440					if(entry.target == percorso) { (entry.isIntersecting)?startAnim():stopAnim(); }
441				});
442			};
443
444			let observer = new IntersectionObserver(callback, options);
445			observer.observe(percorso);
446
447			function startAnim() {
448				if(!infografica.isAnim) {
449					infografica.isAnim = true;
450					window.requestAnimationFrame(infograficaAnimation);
451				}
452			}
453			function stopAnim() { infografica.isAnim = false; }
454
455			let infoHeight = percorso.clientHeight;
456			let windowHeight = document.documentElement.clientHeight;
457
458
459			let scale = 1
460			let last_known_scroll_position = 0;
461			let last_known_timeStamp = 0;
462
463			let infograficaClientRect = percorso.getBoundingClientRect();
464			let altezzaFascia = infograficaClientRect.height/5;
465
466			let posY;
467			let posX;
468			let scartoMezzi;
469			let scartoMezziPlus;
470			let scartoMezziMinus;
471			let infoScale;
472
473
474			pacco.style['transform'] = 'translate3d(0px,0px,0px) scale(1)';
475
476			function infograficaAnimation(timestamp) {
477				infograficaClientRect = percorso.getBoundingClientRect();
478
479				infoScale = infograficaClientRect.width/1212;
480
481				altezzaFascia = infograficaClientRect.height/5;
482				//paccoEnd = percorso.clientHeight-(altezzaFascia/2);
483
484				altezzaPaccoClose = altezzaFascia+(altezzaFascia/10);
485				altezzaPaccoCheck = altezzaFascia*3+(altezzaFascia/8);
486				altezzaPaccoFadeStart = altezzaFascia*4+(altezzaFascia/5);
487				altezzaPaccoFadeEnd = altezzaFascia*4+(altezzaFascia/2);
488
489				mezziStart = altezzaPaccoFadeEnd;
490				mezziEnd = altezzaFascia*5;
491
492				scartoMezzi = Math.ceil(7*infograficaClientRect.width/100);
493				scartoMezziPlus = Math.ceil(2.062706*infograficaClientRect.width/100);
494				scartoMezziMinus = Math.ceil(8.250825*infograficaClientRect.width/100);
495
496				scartoBandiera = Math.ceil(6.600660*infograficaClientRect.width/100);
497
498				posY = Math.ceil((document.documentElement.clientHeight/2)-infograficaClientRect.top);
499
500				if(posY < 0) posY = 0;
501				else if(posY > percorso.clientHeight ) posY = percorso.clientHeight;
502
503				if(Math.floor((posY/altezzaFascia)%2)==0) {
504					posX = Math.ceil(posY%altezzaFascia*infograficaClientRect.width/altezzaFascia);
505				} else {
506					posX = Math.ceil(infograficaClientRect.width-(posY%altezzaFascia*infograficaClientRect.width/altezzaFascia));
507				}
508
509				// Pacco
510				pacco.posY = posY;
511				pacco.posX = posX;
512
513				if( (pacco.classList.contains('close') || pacco.classList.contains('check')) && pacco.posY < altezzaPaccoClose  ) {
514					pacco.classList.remove('close');
515					pacco.classList.remove('check');
516				}
517
518				if( !pacco.classList.contains('close') && pacco.posY >= altezzaPaccoClose && pacco.posY < altezzaPaccoCheck  ) {
519					pacco.classList.add('close');
520					pacco.classList.remove('check');
521				}
522
523				if( !pacco.classList.contains('check') && pacco.posY >= altezzaPaccoCheck  ) {
524					pacco.classList.add('check');
525					pacco.classList.remove('close');
526				}
527
528				paccoinside.scale = 1;
529				if(posY > altezzaPaccoFadeStart) {
530					paccoinside.scale = (altezzaPaccoFadeEnd-posY)/(altezzaPaccoFadeEnd-altezzaPaccoFadeStart);
531					if(paccoinside.scale<0) paccoinside.scale = 0;
532					paccoinside.scale = Math.round((paccoinside.scale + nEpsilon) * 100) / 100;
533				}
534
535				// Furgone
536				if( posY < altezzaFascia*2 ) { furgone.move = false; furgone.posY = altezzaFascia*2; furgone.posX=0; }
537				else if( posY > altezzaFascia*3 ) { furgone.move = false; furgone.posY = altezzaFascia*3;  furgone.posX=infograficaClientRect.width; }
538				else{ furgone.posY = posY; furgone.move = true; }
539
540				if(furgone.move) furgone.posX = posX;
541
542
543				// Camion
544				camion.posY = mezziStart;
545				camion.posX = Math.ceil(mezziStart%altezzaFascia*infograficaClientRect.width/altezzaFascia);
546
547				if(posY > mezziStart) {
548					camion.posY = posY;
549					camion.posX = Math.ceil(camion.posY%altezzaFascia*infograficaClientRect.width/altezzaFascia);
550				}
551
552				// Aereo
553				aereo.posY = mezziStart;
554				if(posY > mezziStart+scartoMezzi) aereo.posY = (posY-scartoMezzi);
555				aereo.posX = Math.ceil((aereo.posY%altezzaFascia*infograficaClientRect.width/altezzaFascia));
556
557				aereo.posX = aereo.posX+scartoMezziPlus;
558				aereo.posY = aereo.posY-scartoMezziMinus;
559
560				// Nave
561				nave.posY = mezziStart;
562				if(posY > mezziStart+scartoMezzi/2) nave.posY = (posY-scartoMezzi/2);
563				nave.posX = Math.ceil((nave.posY%altezzaFascia*infograficaClientRect.width/altezzaFascia));
564
565				nave.posX = nave.posX-scartoMezziMinus;
566				nave.posY = nave.posY+scartoMezziPlus;
567
568				// Bandiera
569				bandiera.scale = (paccoinside.scale)*infoScale;
570				bandiera.transformY = scartoBandiera*(1-paccoinside.scale);
571
572				scale = (posY)/infograficaClientRect.height;
573				scale = Math.round((scale + nEpsilon) * 1000) / 1000;
574
575				opacity = 1;
576				if(posY > mezziStart) {
577					opacity = (mezziEnd-posY)/(mezziEnd-mezziStart);
578					opacity = Math.round((opacity + nEpsilon) * 100) / 100;
579				}
580
581				pacco.style['transform'] = 'translate3d('+pacco.posX+'px,'+pacco.posY+'px,0) scale('+infoScale+')';
582				paccoinside.style['transform'] = 'scale('+paccoinside.scale+')';
583
584				furgone.style['transform'] = 'translate3d('+furgone.posX+'px,'+furgone.posY+'px,0px) scale('+infoScale+')';
585
586				aereo.style['transform'] = 'translate3d('+aereo.posX+'px,'+aereo.posY+'px,0px) scale('+infoScale+')';
587				aereo.style['opacity'] = opacity;
588
589				nave.style['transform'] = 'translate3d('+nave.posX+'px,'+nave.posY+'px,0px) scale('+infoScale+')';
590				nave.style['opacity'] = opacity;
591
592				camion.style['transform'] = 'translate3d('+camion.posX+'px,'+camion.posY+'px,0px) scale('+infoScale+')';
593				camion.style['opacity'] = opacity;
594
595				bandiera.style['transform'] = 'translate3d(0px,'+bandiera.transformY+'px,0px) scale('+bandiera.scale+')';
596				bandieraEU.style['transform'] = 'translate3d(0px,'+bandiera.transformY+'px,0px) scale('+bandiera.scale+')';
597
598
599				track.style['transform'] = 'scale3d(1,'+scale+',1)';
600				trackBk.style['transform'] = 'scale3d(1,'+(1/scale)+',1)';
601				trackShadow.style['transform'] = 'scale3d(1,'+scale+',1)';
602				trackShadowBk.style['transform'] = 'scale3d(1,'+(1/scale)+',1)';
603
604				if(infografica.isAnim) window.requestAnimationFrame(infograficaAnimation);
605			}
606
607			window.addEventListener('scroll', function (e) { });
608
609
610		}
611	} catch (e) { console.error(e); }
612}
613
614function infograficaIntraUE() {
615	try {
616		let infografica = document.querySelector('#infografica');
617		if(infografica) {
618			infografica.isAnim = false;
619
620			let nEpsilon = Number.EPSILON || Math.pow(2, -52); //(function () { var e = 1.0; while ( ( 1.0 + 0.5 * e ) !== 1.0 ) e *= 0.5; return e; })();
621
622			let pacco = infografica.querySelector('#infog-intra-ue-pacco');
623			let paccoinside = infografica.querySelector('#infog-intra-ue-paccoinside');
624			let furgone = infografica.querySelector('#infog-intra-ue-furgone');
625			let tir = infografica.querySelector('#infog-intra-ue-tir');
626			let percorso = infografica.querySelector('#infog-intra-ue-percorso');
627			let track = infografica.querySelector('#infog-intra-ue-track');
628			let trackBk = infografica.querySelector('#infog-intra-ue-trackbk');
629			let trackShadow = infografica.querySelector('#infog-intra-ue-trackshadow');
630			let trackShadowBk = infografica.querySelector('#infog-intra-ue-trackshadowbk');
631			let bandieraEU = infografica.querySelector('#infog-intra-ue-bandieraEU');
632			let spunta = infografica.querySelector('#infog-intra-ue-spunta');
633
634			let options = { rootMargin: '0px', threshold: 0, }
635
636			let callback = function (entries, observer) {
637				entries.forEach(function (entry) {
638					if(entry.target == percorso) { (entry.isIntersecting)?startAnim():stopAnim(); }
639				});
640			};
641
642			let observer = new IntersectionObserver(callback, options);
643			observer.observe(percorso);
644
645			function startAnim() {
646				if(!infografica.isAnim) {
647					infografica.isAnim = true;
648					window.requestAnimationFrame(infograficaAnimation);
649				}
650			}
651			function stopAnim() { infografica.isAnim = false; }
652
653			let infoHeight = percorso.clientHeight;
654			let windowHeight = document.documentElement.clientHeight;
655
656
657			let scale = 1
658			let last_known_scroll_position = 0;
659			let last_known_timeStamp = 0;
660
661			let infograficaClientRect = percorso.getBoundingClientRect();
662			let altezzaFascia = infograficaClientRect.height/5;
663
664			let posY;
665			let posX;
666			let scartoMezzi;
667			let scartoMezziPlus;
668			let scartoMezziMinus;
669			let infoScale;
670
671
672			pacco.style['transform'] = 'translate3d(0px,0px,0px) scale(1)';
673
674			function infograficaAnimation(timestamp) {
675				infograficaClientRect = percorso.getBoundingClientRect();
676
677				infoScale = infograficaClientRect.width/1212;
678
679				altezzaFascia = infograficaClientRect.height/5;
680				//paccoEnd = percorso.clientHeight-(altezzaFascia/2);
681
682				altezzaPaccoClose = altezzaFascia+(altezzaFascia/10);
683				altezzaPaccoCheck = altezzaFascia*4+(altezzaFascia/10*2);
684				altezzaPaccoHidden = altezzaFascia*3;
685				altezzaPaccoVisible = altezzaFascia*4+(altezzaFascia/10*0.9);
686				altezzaPaccoStop = altezzaFascia*4+(altezzaFascia/10*1);
687				altezzaBandieraStart = altezzaFascia*3+(altezzaFascia/10*2);
688				altezzaBandieraEnd = altezzaFascia*3+(altezzaFascia/10*4);
689
690				mezziStart = altezzaFascia*4+(altezzaFascia/10*5);
691				mezziEnd = altezzaFascia*4+(altezzaFascia/10*8);
692
693				scartoMezzi = Math.ceil(7*infograficaClientRect.width/100);
694				scartoMezziPlus = Math.ceil(2.062706*infograficaClientRect.width/100);
695				scartoMezziMinus = Math.ceil(8.250825*infograficaClientRect.width/100);
696
697				scartoBandiera = Math.ceil(6.600660*infograficaClientRect.width/100);
698				scartoSpunta = Math.ceil(2.062706*infograficaClientRect.width/100);
699
700				altezzaTirStart = altezzaFascia*3;
701				altezzaTirNascosto = altezzaFascia*3;
702				altezzaTirVisibile = altezzaFascia*3+(altezzaFascia/8);
703				altezzaTirCurva = altezzaFascia*4;
704				altezzaTirStop = altezzaFascia*5+(altezzaFascia/5);
705
706				altezzaSpuntaFadeStart = altezzaFascia*4+(altezzaFascia/10*2);
707				altezzaSpuntaFadeEnd = altezzaFascia*4+(altezzaFascia/10*3);
708
709				altezzaTrackStop = altezzaFascia*4+(altezzaFascia/10*1);
710
711				posY = Math.ceil((document.documentElement.clientHeight/2)-infograficaClientRect.top);
712
713				if(posY < 0) posY = 0;
714				else if(posY > percorso.clientHeight ) posY = percorso.clientHeight;
715
716				if(Math.floor((posY/altezzaFascia)%2)==0) {
717					posX = Math.ceil(posY%altezzaFascia*infograficaClientRect.width/altezzaFascia);
718				} else {
719					posX = Math.ceil(infograficaClientRect.width-(posY%altezzaFascia*infograficaClientRect.width/altezzaFascia));
720				}
721
722				// Pacco
723				if (posY < altezzaPaccoStop) {
724					pacco.posY = posY;
725					pacco.posX = posX;
726				} else {
727					pacco.posY = altezzaPaccoStop;
728					pacco.posX = Math.ceil(altezzaPaccoStop%altezzaFascia*infograficaClientRect.width/altezzaFascia);
729				}
730
731				if( (pacco.classList.contains('close') || pacco.classList.contains('check')) && pacco.posY < altezzaPaccoClose  ) {
732					pacco.classList.remove('close');
733					pacco.classList.remove('check');
734				}
735
736				if( !pacco.classList.contains('close') && pacco.posY >= altezzaPaccoClose && pacco.posY < altezzaPaccoCheck  ) {
737					pacco.classList.add('close');
738					pacco.classList.remove('check');
739				}
740
741				if( pacco.posY >= altezzaPaccoHidden && pacco.posY < altezzaPaccoVisible ) {
742					pacco.classList.add('hidden');
743				} else {
744					pacco.classList.remove('hidden');
745				}
746
747				// Furgone
748				if( posY < altezzaFascia*2 ) { furgone.move = false; furgone.posY = altezzaFascia*2; furgone.posX=0; }
749				else if( posY > altezzaFascia*3 ) { furgone.move = false; furgone.posY = altezzaFascia*3;  furgone.posX=infograficaClientRect.width; }
750				else{ furgone.posY = posY; furgone.move = true; }
751
752				if(furgone.move) furgone.posX = posX;
753
754				// Tir
755				if( posY > altezzaTirStart && posY < altezzaTirStop ) {
756					if(Math.floor((posY/altezzaFascia)%2)==0) {
757						tir.posX = Math.ceil(posY%altezzaFascia*infograficaClientRect.width/altezzaFascia);
758					} else {
759						tir.posX = Math.ceil(infograficaClientRect.width-(posY%altezzaFascia*infograficaClientRect.width/altezzaFascia));
760					}
761					tir.posY = posY;
762					tir.move = true;
763				} else {
764					tir.move = false;
765				}
766
767				if(tir.move) tir.posX = posX;
768
769				if( !tir.classList.contains('hidden') && tir.posY >= altezzaTirNascosto && tir.posY <= altezzaTirVisibile ) {
770					tir.classList.add('hidden');
771					tir.classList.remove('visible');
772				}
773
774				if( !tir.classList.contains('visible') && tir.posY >= altezzaTirVisibile ) {
775					tir.classList.add('visible');
776					tir.classList.remove('hidden');
777				}
778
779				if( tir.posY >= altezzaTirCurva ) {
780					infoRotate = ' scaleX(-1)';
781				} else {
782					infoRotate = '';
783				}
784
785				if( !tir.classList.contains('visible') && tir.posY >= altezzaTirStop ) {
786					tir.classList.add('visible');
787					tir.classList.remove('hidden');
788				}
789
790				// Bandiera
791				bandieraEU.scale = 0;
792				if(posY > altezzaBandieraStart) {
793					bandieraEU.scale = (posY-altezzaBandieraStart)/(altezzaBandieraEnd-altezzaBandieraStart);
794					if(bandieraEU.scale<0) bandieraEU.scale = 0;
795					bandieraEU.scale = Math.min(1, Math.round((bandieraEU.scale + nEpsilon) * 100) / 100);
796				}
797				bandieraEU.transformY = -1.8*scartoBandiera*bandieraEU.scale;
798
799				// Spunta
800				spunta.opacity = 0;
801				if(posY > altezzaSpuntaFadeStart) {
802					spunta.opacity = (posY-altezzaSpuntaFadeStart)/(altezzaSpuntaFadeEnd-altezzaSpuntaFadeStart);
803					if(spunta.opacity<0) spunta.opacity = 0;
804					spunta.opacity = Math.min(1, Math.round((spunta.opacity + nEpsilon) * 100) / 100);
805				}
806				spunta.transformY = scartoSpunta*spunta.opacity;
807				spunta.style['transform'] = 'translate3d(0px,'+spunta.transformY+'px,0px) scale('+infoScale+')';
808				spunta.style['opacity'] = spunta.opacity;
809
810				if (posY < altezzaTrackStop) {
811					scale = (posY)/infograficaClientRect.height;
812					scale = Math.round((scale + nEpsilon) * 1000) / 1000;
813				}
814
815				opacity = 1;
816				if(posY > mezziStart) {
817					opacity = (mezziEnd-posY)/(mezziEnd-mezziStart);
818					opacity = Math.round((opacity + nEpsilon) * 100) / 100;
819				}
820
821				pacco.style['transform'] = 'translate3d('+pacco.posX+'px,'+pacco.posY+'px,0) scale('+infoScale+')';
822				paccoinside.style['transform'] = 'scale('+paccoinside.scale+')';
823
824				furgone.style['transform'] = 'translate3d('+furgone.posX+'px,'+furgone.posY+'px,0px) scale('+infoScale+')';
825				tir.style['transform'] = 'translate3d('+tir.posX+'px,'+tir.posY+'px,0px) scale('+infoScale+')'+infoRotate;
826				tir.style['opacity'] = opacity;
827
828				bandieraEU.style['transform'] = 'translate3d(0px,'+bandieraEU.transformY+'px,0px) scale('+bandieraEU.scale+')';
829
830
831				track.style['transform'] = 'scale3d(1,'+scale+',1)';
832				trackBk.style['transform'] = 'scale3d(1,'+(1/scale)+',1)';
833				trackShadow.style['transform'] = 'scale3d(1,'+scale+',1)';
834				trackShadowBk.style['transform'] = 'scale3d(1,'+(1/scale)+',1)';
835
836				if(infografica.isAnim) window.requestAnimationFrame(infograficaAnimation);
837			}
838
839			window.addEventListener('scroll', function (e) { });
840
841
842		}
843	} catch (e) { console.error(e); }
844}
845
846function blog() {
847	try {
848		document.querySelector('.blogcatfilter-btn').addEventListener('click', function (evt) {
849			const list = evt.target.closest('.blogcat').querySelector('.blogcatlista');
850			list.style.display = (list.style.display === 'flex' ? 'none' : 'flex');
851			evt.preventDefault();
852			return false;
853		});
854	} catch (e) { }
855}
856
857function floatingMenu() {
858	inView.threshold(0.3);
859	inView('.page-section[id]').on('enter', function (target) {
860		try {
861			const node = document.querySelector('.floating-menu > .sections > li > a[href="#' + target.id + '"]');
862			node.closest('ul').querySelectorAll('li').forEach(child => child.classList.remove('active'));
863			node.parentNode.classList.add('active');
864		} catch (exception) { }
865	});
866}
867
868function composerSwitcher() {
869	document.querySelectorAll('.switcher-module .switcher input[type="radio"]').forEach((switcherItem) => {
870		switcherItem.addEventListener('change', (evt) => {
871			const switcher = evt.target.closest('.switcher'),
872				item = switcher.querySelector('input[type="radio"]:checked'),
873				label = switcher.querySelector('label[for="' + item.id + '"]'),
874				li = item.closest('li');
875			// animation
876			switcher.style.setProperty('--selector-width', li.clientWidth + 'px');
877			switcher.style.setProperty('--selector-left', li.offsetLeft + 'px');
878			// sections
879			switcher.querySelectorAll('input[type="radio"]').forEach((switcherItem) => {
880				switcherItem.dataset.sections.split(' ').map((sectionId) => {
881					try {
882						document.getElementById(sectionId).style.setProperty('display', switcherItem == item ? 'block' : 'none');
883					} catch (exception) { }
884				});
885			});
886		});
887		if (switcherItem.checked) {
888			switcherItem.dispatchEvent(new Event('change'));
889		}
890	});
891}
892
893function headerMessage() {
894	window.addEventListener('resize', (evt) => {
895		const message = document.querySelector('#header-message'),
896			space = (message && window.innerWidth <= 567 ? message.offsetHeight : 0);
897		document.querySelector('body').style.setProperty('padding-bottom', space + 'px');
898	});
899	window.dispatchEvent(new Event('resize'));
900}
901
902function footerMessage() {
903	window.addEventListener('resize', (evt) => {
904		const message = document.querySelector('#footer-message'),
905			space = (message && window.innerWidth > 567 ? message.offsetHeight : 0);
906		document.querySelector('body').style.setProperty('margin-bottom', space + 'px');
907	});
908	window.dispatchEvent(new Event('resize'));
909}

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.