1!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/common/assets/js/webcomponents/",n(n.s="./src/rai-footer/rai-footer.js")}({"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js?!./src/rai-footer/style.shadow.scss":function(e,t,n){(t=n("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([e.i,':host{clear:both;display:block;--white: #edeff3;--gray-white: #faf8fa;--gray-light: #d6dbe6;--gray-light-legend: #484c61;--gray-medium: #687087;--gray-medium-light: #aab1c6;--gray-medium-dark: #4e5266;--gray-dark: #262a40;--blue: #0060e6;--pastel-azure: #80b5ff;--white-rgb: 255, 255, 255;--gray-white-rgb: 250, 248, 250;--gray-light-rgb: 214, 219, 230;--gray-medium-rgb: 104, 112, 135;--gray-dark-rgb: 38, 42, 64;--gray-button-dark-rgb: 72, 76, 97;--footer-max-width: 1440px;--footer-tabbar-height: 56px;--footer-justify: flex-start}@media(min-width: 0){:host{--padding-side: 18px}}@media(min-width: 600px){:host{--padding-side: 32px}}@media(min-width: 1024px){:host{--padding-side: 48px}}@media(min-width: 1280px){:host{--padding-side: 68px}}@media(min-width: 1440px){:host{--padding-side: 68px}}.light{--footer-bg: var(--white);--footer-link-icon: var(--gray-medium);--logo-bg: var(--gray-medium-dark);--link-color: var(--gray-dark);--link-hover-color: var(--blue);--network-menu-expanded-color: var(--blue);--legend-color: var(--gray-light-legend);--btn-gotoall: var(--gray-light);--btn-bg: var(--white);--btn-hover: var(--gray-white);--btn-border: var(--gray-light);--lines: var(--gray-light);--text-color: var(--gray-dark)}.dark{--footer-bg: var(--gray-dark);--footer-link-icon: var(--gray-medium-light);--logo-bg: var(--white);--link-color: var(--white);--link-hover-color: var(--gray-medium-light);--network-menu-expanded-color: var(--pastel-azure);--legend-color: var(--gray-light);--btn-gotoall: rgba(var(--gray-medium-rgb), 0.5);--btn-bg: rgba(var(--gray-button-dark-rgb), 0.2);--btn-hover: rgba(var(--gray-button-dark-rgb), 0.6);--btn-border: var(--gray-medium-dark);--lines: var(--gray-medium-dark);--text-color: var(--white)}.footer-wrapper{font-family:"Inter",sans-serif;color:var(--text-color);background:var(--footer-bg);transition:background-color 250ms ease-in;display:flex;justify-content:var(--footer-justify, flex-start)}.footer-container{display:flex;flex-direction:column;padding:0 var(--padding-side, 18px);padding-bottom:calc(48px + var(--footer-tabbar-height));max-width:var(--footer-max-width, 1440px);width:100%;box-sizing:border-box}.footer-grid{width:100%;font-size:17px;margin:0;display:block}.footer-network{padding-top:24px;border-bottom:1px solid var(--lines);display:flex;flex-direction:column}.footer-network__header{display:flex;justify-content:space-between;align-items:center}.footer-network__label{font-size:17px;font-weight:bold}.footer-network__expand{border:none;background:none}.footer-network__expand:focus-visible{outline:2px solid var(--text-color);outline-offset:4px}.footer-network__expand__arrow{display:none;align-items:center;gap:8px;cursor:pointer}.footer-network__expand__arrow span{font-size:15px;color:var(--text-color)}.footer-network__expand__operator{display:flex;align-items:center}.footer-network-menu{display:grid;grid-template-columns:repeat(1, 1fr);row-gap:16px;column-gap:40px;transition:all .8s ease;max-height:1024px;overflow:hidden;padding-top:24px}.footer-network-menu__item{display:flex;flex-direction:column}.footer-network-menu__item:focus-within{outline:2px solid var(--text-color);outline-offset:8px}@media(max-width: 767px){.footer-network-menu__item--gotoall a{background-color:var(--btn-gotoall);justify-content:center;margin-top:8px;padding:12px;border-radius:4px}}.footer-network-menu__item--gotoall svg{width:16px;height:16px}.footer-network-menu__item--title{display:flex;justify-content:flex-start;align-items:center;gap:8px;color:var(--text-color);transition:color 200ms linear;text-decoration:none;font-size:15px;line-height:24px;font-weight:bold}.footer-network-menu__item--title:hover{color:var(--link-hover-color)}.footer-network-menu__item--title:focus-visible{outline:none}.footer-network-menu__item--icon{display:flex;color:var(--footer-link-icon);width:16px;height:16px}.footer-network-menu__item--description{font-size:13px;line-height:20px}.footer-network--menu-closed .footer-network-menu{max-height:0;overflow:hidden !important}.footer-network--menu-closed .footer-network__expand__arrow svg{transition:all 200ms;transform:rotate(0deg)}.footer-network--menu-open .footer-network__expand__arrow svg{transition:all 200ms;transform:rotate(180deg)}.footer-network--menu-open .footer-network-menu{padding:24px 0}@media(max-width: 1023px){.footer-network--menu-open .footer-network__label,.footer-network--menu-open .footer-network__expand__operator{color:var(--network-menu-expanded-color)}}.footer-logo{display:block;width:40px;height:40px;
1fill:var(--logo-bg);transition:250ms ease-in}.footer-menu{list-style-type:none;margin-bottom:44px}.footer-menu__link{display:block;padding:24px 0;border-bottom:solid 1px var(--lines);position:relative;display:flex;justify-content:flex-start;align-items:center;gap:8px}.footer-menu__link:focus{outline:none}.footer-menu__link:last-of-type{padding:24px 0px;gap:0;display:flex;flex-flow:row wrap;row-gap:8px;align-items:center;border-bottom:none;border:none;padding-right:0 !important}.footer-menu__link:last-of-type::after{content:none}.footer-menu__link:last-of-type .footer-menu__link__icon{margin-left:8px;margin-right:20px}.footer-menu__link__anchor{font-weight:bold;letter-spacing:-0.2px;line-height:1.65;color:rgba(var(--link-color), 1);text-decoration:none;transition:color 150ms ease-in;white-space:nowrap;display:flex;align-items:center;gap:8px}.footer-menu__link a:focus-visible{outline:2px solid #fff;outline-offset:3px}.footer-menu__link__icon{display:flex;justify-content:center;align-items:center;background-repeat:no-repeat;background-position:right center;width:24px;height:24px;color:var(--footer-link-icon)}.footer-menu__link__icon svg{width:100%;height:100%}.footer-menu__group{display:inline;position:relative}.footer-menu__button{font-family:"Inter",sans-serif;display:inline-flex;align-items:center;height:36px;margin:0;padding:8px 12px;border:solid 2px var(--btn-border);border-radius:4px;background-color:var(--btn-bg);font-size:15px;line-height:24px;letter-spacing:.1px;color:rgb(var(--link-color));cursor:pointer;transition:250ms ease-in;white-space:nowrap}.footer-menu__button:hover,.footer-menu__button:focus{color:var(--link-color);background-color:var(--btn-hover)}.footer-menu__button svg{margin-right:12px;fill:var(--link-color);width:17px;height:16px;transition:250ms ease-in}.footer-menu__legend{position:absolute;top:40px;left:6px;line-height:1.54;display:block;font-size:13px;letter-spacing:-0.3px;color:var(--legend-color);animation:fadein .5s}.footer-menu__legend__bullet{display:inline-block;width:8px;height:8px;border-radius:100%;margin-right:6px}.footer-menu__legend__bullet--all{background-color:#0ae16d}.footer-menu__legend__bullet--none{background-color:#ff8a00}.footer-menu__legend__bullet--some{background-color:#ffcd2d}.footer-details{margin-top:16px;font-size:13px;line-height:20px;color:var(--text-color);transition:250ms ease-in;max-width:600px;text-align:left}.footer-details>span{display:block}@media(min-width: 768px){.footer-container{padding:0 var(--padding-side, 32px);padding-top:8px;padding-bottom:calc(48px + var(--footer-tabbar-height))}.footer-network-menu{grid-template-columns:repeat(2, 1fr);max-height:600px;row-gap:24px}.footer-network-menu__item:first-child{padding-top:0}.footer-menu{margin-bottom:32px}.footer-details>span{display:inline;margin-right:16px}}@media(min-width: 1024px){.footer-container{padding-top:0;padding-right:var(--padding-side, 48px);padding-left:var(--padding-side, 48px);padding-bottom:calc(48px + var(--footer-tabbar-height))}.footer-network{padding-top:40px;padding-bottom:16px}.footer-network__label{font-size:19px}.footer-network__expand__arrow{display:flex}.footer-network__expand__operator{display:none}.footer-network-menu{grid-template-columns:repeat(3, 1fr);row-gap:24px;column-gap:32px}.footer-network-menu__item--title{gap:4px}.footer-grid{display:grid;grid-template-columns:auto 1fr;gap:48px 24px;padding-top:40px}.footer-menu{grid-column:1/3;display:flex;flex-wrap:wrap;align-items:center;row-gap:24px;margin:0}.footer-menu__link{align-items:center;gap:4px;font-size:15px;padding:0 16px;height:36px;border-bottom:none}.footer-menu__link:focus-visible{color:var(--text-color)}.footer-menu__link::after{content:"";width:1px;height:16px;background-color:var(--lines);position:absolute;right:0}.footer-menu__link:first-of-type{margin-right:0;padding-left:0}.footer-menu__link:last-of-type{border:none;padding:0;display:flex}.footer-menu__link:last-of-type .footer-menu__link__icon{margin-left:4px}.footer-menu__link:nth-last-of-type(2){margin-right:16px}.footer-menu__link__anchor{gap:4px}
1.footer-menu__link__anchor:hover,.footer-menu__link__anchor:focus{color:var(--link-hover-color)}.footer-menu__link__icon{width:16px;height:16px}.footer-menu__group{margin-left:16px}.footer-menu__group svg{width:16px;height:16px}.footer-menu__legend{left:6px}.footer-details{margin-top:0;max-width:950px}.footer-details>span{margin-right:0}}@media(min-width: 1280px){.footer-container{padding-top:0;padding-left:var(--padding-side, 56px);padding-right:var(--padding-side, 56px);padding-bottom:calc(48px + var(--footer-tabbar-height))}.footer-menu__link{padding:0 24px}.footer-menu__link:nth-last-of-type(2){margin-right:24px}.footer-menu__group{margin-left:24px}.footer-details-menu{flex-wrap:nowrap}.footer-details-menu__group{margin-top:0px;width:auto}}@media(min-width: 1440px){.footer-container{padding:0 var(--padding-side, 68px) 48px var(--padding-side, 60px)}.footer-grid{gap:48px 24px}.footer-network-menu{grid-template-columns:repeat(4, 1fr);column-gap:40px}}@keyframes fadein{from{opacity:0}to{opacity:1}}@keyframes flipAndRotate{from{transform:rotate(0deg) scaleX(1)}to{transform:rotate(180deg) scaleX(1)}}',""]),e.exports=t},"./node_modules/css-loader/dist/cjs.js?!./src/rai-footer/fonts.css":function(e,t,n){(t=n("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([e.i,'@font-face {\n font-family: \'Open Sans Regular\';\n src: url("https://www.rai.it/common/assets/fonts/OpenSans-Regular.woff2") format("woff2");\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n}\n@font-face {\n font-family: \'Public Sans Regular\';\n src: url("https://www.rai.it/common/assets/fonts/PublicSans-Regular.woff2") format("woff2");\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n}\n@font-face {\n font-family: \'Public Sans Bold\';\n src: url("https://www.rai.it/common/assets/fonts/PublicSans-Bold.woff2") format("woff2");\n font-style: bold;\n font-weight: 700;\n font-display: swap;\n}',""]),e.exports=t},
vendor: 940 bytes, line 1
1"./node_modules/css-loader/dist/runtime/api.js":function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=(s=r,a=btoa(unescape(encodeURIComponent(JSON.stringify(s)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a),"/*# ".concat(l," */")),i=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(i).concat([o]).join("\n")}var s,a,l;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var s=this[i][0];null!=s&&(o[s]=!0)}for(var a=0;a<e.length;a++){var l=[].concat(e[a]);r&&o[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),t.push(l))}},t}},
1"./src/rai-footer/fonts.css":function(e,t,n){var r=n("./node_modules/css-loader/dist/cjs.js?!./src/rai-footer/fonts.css");r&&r.__esModule&&(r=r.default),e.exports="string"==typeof r?r:r.toString()},
vendor: 8,487 bytes, line 1
1"./src/rai-footer/rai-footer.js":function(e,t,n){"use strict";n.r(t);const r="undefined"!=typeof window&&null!=window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback,o=(e,t,n=null)=>{for(;t!==n;){const n=t.nextSibling;e.removeChild(t),t=n}},i=`{{lit-${String(Math.random()).slice(2)}}}`,s=`\x3c!--${i}--\x3e`,a=new RegExp(`${i}|${s}`);class l{constructor(e,t){this.parts=[],this.element=t;const n=[],r=[],o=document.createTreeWalker(t.content,133,null,!1);let s=0,l=-1,d=0;const{strings:h,values:{length:f}}=e;for(;d<f;){const e=o.nextNode();if(null!==e){if(l++,1===e.nodeType){if(e.hasAttributes()){const t=e.attributes,{length:n}=t;let r=0;for(let e=0;e<n;e++)c(t[e].name,"$lit$")&&r++;for(;r-- >0;){const t=h[d],n=p.exec(t)[2],r=n.toLowerCase()+"$lit$",o=e.getAttribute(r);e.removeAttribute(r);const i=o.split(a);this.parts.push({type:"attribute",index:l,name:n,strings:i}),d+=i.length-1}}"TEMPLATE"===e.tagName&&(r.push(e),o.currentNode=e.content)}else if(3===e.nodeType){const t=e.data;if(t.indexOf(i)>=0){const r=e.parentNode,o=t.split(a),i=o.length-1;for(let t=0;t<i;t++){let n,i=o[t];if(""===i)n=u();else{const e=p.exec(i);null!==e&&c(e[2],"$lit$")&&(i=i.slice(0,e.index)+e[1]+e[2].slice(0,-"$lit$".length)+e[3]),n=document.createTextNode(i)}r.insertBefore(n,e),this.parts.push({type:"node",index:++l})}""===o[i]?(r.insertBefore(u(),e),n.push(e)):e.data=o[i],d+=i}}else if(8===e.nodeType)if(e.data===i){const t=e.parentNode;null!==e.previousSibling&&l!==s||(l++,t.insertBefore(u(),e)),s=l,this.parts.push({type:"node",index:l}),null===e.nextSibling?e.data="":(n.push(e),l--),d++}else{let t=-1;for(;-1!==(t=e.data.indexOf(i,t+1));)this.parts.push({type:"node",index:-1}),d++}}else o.currentNode=r.pop()}for(const e of n)e.parentNode.removeChild(e)}}const c=(e,t)=>{const n=e.length-t.length;return n>=0&&e.slice(n)===t},d=e=>-1!==e.index,u=()=>document.createComment(""),p=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function h(e,t){const{element:{content:n},parts:r}=e,o=document.createTreeWalker(n,133,null,!1);let i=m(r),s=r[i],a=-1,l=0;const c=[];let d=null;for(;o.nextNode();){a++;const e=o.currentNode;for(e.previousSibling===d&&(d=null),t.has(e)&&(c.push(e),null===d&&(d=e)),null!==d&&l++;void 0!==s&&s.index===a;)s.index=null!==d?-1:s.index-l,i=m(r,i),s=r[i]}c.forEach(e=>e.parentNode.removeChild(e))}const f=e=>{let t=11===e.nodeType?0:1;const n=document.createTreeWalker(e,133,null,!1);for(;n.nextNode();)t++;return t},m=(e,t=-1)=>{for(let n=t+1;n<e.length;n++){const t=e[n];if(d(t))return n}return-1};const g=new WeakMap,_=e=>"function"==typeof e&&g.has(e),v={},w={};class y{constructor(e,t,n){this.__parts=[],this.template=e,this.processor=t,this.options=n}update(e){let t=0;for(const n of this.__parts)void 0!==n&&n.setValue(e[t]),t++;for(const e of this.__parts)void 0!==e&&e.commit()}_clone(){const e=r?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),t=[],n=this.template.parts,o=document.createTreeWalker(e,133,null,!1);let i,s=0,a=0,l=o.nextNode();for(;s<n.length;)if(i=n[s],d(i)){for(;a<i.index;)a++,"TEMPLATE"===l.nodeName&&(t.push(l),o.currentNode=l.content),null===(l=o.nextNode())&&(o.currentNode=t.pop(),l=o.nextNode());if("node"===i.type){const e=this.processor.handleTextExpression(this.options);e.insertAfterNode(l.previousSibling),this.__parts.push(e)}else this.__parts.push(...this.processor.handleAttributeExpressions(l,i.name,i.strings,this.options));s++}else this.__parts.push(void 0),s++;return r&&(document.adoptNode(e),customElements.upgrade(e)),e}}const b=window.trustedTypes&&trustedTypes.createPolicy("lit-html",{createHTML:e=>e}),x=` ${i} `;class S{constructor(e,t,n,r){this.strings=e,this.values=t,this.type=n,this.processor=r}getHTML(){const e=this.strings.length-1;let t="",n=!1;for(let r=0;r<e;r++){const e=this.strings[r],o=e.lastIndexOf("\x3c!--");n=(o>-1||n)&&-1===e.indexOf("--\x3e",o+1);const a=p.exec(e);t+=null===a?e+(n?x:s):e.substr(0,a.index)+a[1]+a[2]+"$lit$"+a[3]+i}return t+=this.strings[e],t}getTemplateElement(){const e=document.createElement("template");let t=this.getHTML();return void 0!==b&&(t=b.createHTML(t)),e.innerHTML=t,e}}const k=e=>null===e||!("object"==typeof e||"function"==typeof e),P=e=>Array.isArray(e)||!(!e||!e[Symbol.iterator]);class C{constructor(e,t,n){this.dirty=!0,this.element=e,this.name=t,this.strings=n,this.parts=[];for(let e=0;e<n.length-1;e++)this.parts[e]=this._createPart()}_createPart(){return new N(this)}_getValue(){const e=this.strings,t=e.length-1,n=this.parts;if(1===t&&""===e[0]&&""===e[1]){const e=n[0].value;if("symbol"==typeof e)return String(e);if("string"==typeof e||!P(e))return e}let r="";for(let o=0;o<t;o++){r+=e[o];const t=n[o];if(void 0!==t){const e=t.value;if(k(e)||!P(e))r+="string"==typeof e?e:String(e);else for(const t of e)r+="string"==typeof t?t:String(t)}}return r+=e[t],r}commit(){this.dirty&&(this.dirty=!1,this.element.setAttribute(this.name,this._getValue()))}}class N{constructor(e){this.value=void 0,this.committer=e}setValue(e){e===v||k(e)&&e===this.value||(this.value=e,_(e)||(this.committer.dirty=!0))}commit(){for(;_(this.value);){const e=this.value;this.value=v,e(this)}this.value!==v&&this.committer.commit()}}class E{constructor(e){this.value=void 0,this.__pendingValue=void 0,this.options=e}appendInto(e){this.startNode=e.appendChild(u()),this.endNode=e.appendChild(u())}insertAfterNode(e){this.startNode=e,this.endNode=e.nextSibling}appendIntoPart(e){e.__insert(this.startNode=u()),e.__insert(this.endNode=u())}insertAfterPart(e){e.__insert(this.startNode=u()),this.endNode=e.endNode,e.endNode=this.startNode}setValue(e){this.__pendingValue=e}commit(){if(null===this.startNode.parentNode)return;for(;_(this.__pendingValue);){const e=this.__pendingValue;this.__pendingValue=v,e(this)}const e=this.__pendingValue;e!==v&&(k(e)?e!==this.value&&this.__commitText(e):e instanceof S?this.__commitTemplateResult(e):e instanceof Node?this.__commitNode(e):P(e)?this.__commitIterable(e):e===w?(this.value=w,this.clear()):this.__commitText(e))}__insert(e){this.endNode.parentNode.insertBefore(e,this.endNode)}__commitNode(e){this.value!==e&&(this.clear(),this.__insert(e),this.value=e)}__commitText(e){const t=this.startNode.nextSibling,n="string"==typeof(e=null==e?"":e)?e:String(e);t===this.endNode.previousSibling&&3===t.nodeType?t.data=n:this.__commitNode(document.createTextNode(n)),this.value=e}__commitTemplateResult(e){const t=this.options.templateFactory(e);if(this.value instanceof y&&this.value.template===t)this.value.update(e.values);else{const n=new y(t,e.processor,this.options),r=n._clone();n.update(e.values),this.__commitNode(r),this.value=n}}__commitIterable(e){Array.isArray(this.value)||(this.value=[],this.clear());const t=this.value;let n,r=0;for(const o of e)n=t[r],void 0===n&&(n=new E(this.options),t.push(n),0===r?n.appendIntoPart(this):n.insertAfterPart(t[r-1])),n.setValue(o),n.commit(),r++;r<t.length&&(t.length=r,this.clear(n&&n.endNode))}clear(e=this.startNode){o(this.startNode.parentNode,e.nextSibling,this.endNode)}}class T{constructor(e,t,n){if(this.value=void 0,this.__pendingValue=void 0,2!==n.length||""!==n[0]||""!==n[1])throw new Error("Boolean attributes can only contain a single expression");this.element=e,this.name=t,this.strings=n}setValue(e){this.__pendingValue=e}commit(){for(;_(this.__pendingValue);){const e=this.__pendingValue;this.__pendingValue=v,e(this)}if(this.__pendingValue===v)return;const e=!!this.__pendingValue;this.value!==e&&(e?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name),this.value=e),this.__pendingValue=v}}class A extends C{constructor(e,t,n){super(e,t,n),this.single=2===n.length&&""===n[0]&&""===n[1]}_createPart(){return new M(this)}_getValue(){return this.single?this.parts[0].value:super._getValue()}commit(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())}}class M extends N{}let O=!1;(()=>{try{const e={get capture(){return O=!0,!1}};window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(e){}})();class z{constructor(e,t,n){this.value=void 0,this.__pendingValue=void 0,this.element=e,this.eventName=t,this.eventContext=n,this.__boundHandleEvent=e=>this.handleEvent(e)}setValue(e){this.__pendingValue=e}commit(){for(;_(this.__pendingValue);){const e=this.__pendingValue;this.__pendingValue=v,e(this)}if(this.__pendingValue===v)return;
vendor: 2,471 bytes, line 1
1const e=this.__pendingValue,t=this.value,n=null==e||null!=t&&(e.capture!==t.capture||e.once!==t.once||e.passive!==t.passive),r=null!=e&&(null==t||n);n&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),r&&(this.__options=j(e),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=e,this.__pendingValue=v}handleEvent(e){"function"==typeof this.value?this.value.call(this.eventContext||this.element,e):this.value.handleEvent(e)}}const j=e=>e&&(O?{capture:e.capture,passive:e.passive,once:e.once}:e.capture);function V(e){let t=R.get(e.type);void 0===t&&(t={stringsArray:new WeakMap,keyString:new Map},R.set(e.type,t));let n=t.stringsArray.get(e.strings);if(void 0!==n)return n;const r=e.strings.join(i);return n=t.keyString.get(r),void 0===n&&(n=new l(e,e.getTemplateElement()),t.keyString.set(r,n)),t.stringsArray.set(e.strings,n),n}const R=new Map,U=new WeakMap;const H=new class{handleAttributeExpressions(e,t,n,r){const o=t[0];if("."===o){return new A(e,t.slice(1),n).parts}if("@"===o)return[new z(e,t.slice(1),r.eventContext)];if("?"===o)return[new T(e,t.slice(1),n)];return new C(e,t,n).parts}handleTextExpression(e){return new E(e)}};"undefined"!=typeof window&&(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.4.1");const $=(e,...t)=>new S(e,t,"html",H),L=(e,t)=>`${e}--${t}`;let q=!0;void 0===window.ShadyCSS?q=!1:void 0===window.ShadyCSS.prepareTemplateDom&&(console.warn("Incompatible ShadyCSS version detected. Please update to at least @webcomponents/[email protected] and @webcomponents/[email protected]."),q=!1);const I=e=>t=>{const n=L(t.type,e);let r=R.get(n);void 0===r&&(r={stringsArray:new WeakMap,keyString:new Map},R.set(n,r));let o=r.stringsArray.get(t.strings);if(void 0!==o)return o;const s=t.strings.join(i);if(o=r.keyString.get(s),void 0===o){const n=t.getTemplateElement();q&&window.ShadyCSS.prepareTemplateDom(n,e),o=new l(t,n),r.keyString.set(s,o)}return r.stringsArray.set(t.strings,o),o},B=["html","svg"],D=new Set,F=(e,t,n)=>{D.add(e);const r=n?n.element:document.createElement("template"),o=t.querySelectorAll("style"),{length:i}=o;if(0===i)return void window.ShadyCSS.prepareTemplateStyles(r,e);const s=document.createElement("style");for(let e=0;e<i;e++){const t=o[e];t.parentNode.removeChild(t),s.textContent+=t.textContent}(e=>{B.forEach(t=>{const n=R.get(L(t,e));void 0!==n&&n.keyString.forEach(e=>{const{element:{content:t}}=e,n=new Set;
vendor: 5,760 bytes, line 1
1Array.from(t.querySelectorAll("style")).forEach(e=>{n.add(e)}),h(e,n)})})})(e);const a=r.content;n?function(e,t,n=null){const{element:{content:r},parts:o}=e;if(null==n)return void r.appendChild(t);const i=document.createTreeWalker(r,133,null,!1);let s=m(o),a=0,l=-1;for(;i.nextNode();){l++;for(i.currentNode===n&&(a=f(t),n.parentNode.insertBefore(t,n));-1!==s&&o[s].index===l;){if(a>0){for(;-1!==s;)o[s].index+=a,s=m(o,s);return}s=m(o,s)}}}(n,s,a.firstChild):a.insertBefore(s,a.firstChild),window.ShadyCSS.prepareTemplateStyles(r,e);const l=a.querySelector("style");if(window.ShadyCSS.nativeShadow&&null!==l)t.insertBefore(l.cloneNode(!0),t.firstChild);else if(n){a.insertBefore(s,a.firstChild);const e=new Set;e.add(s),h(n,e)}};window.JSCompiler_renameProperty=(e,t)=>e;const W={toAttribute(e,t){switch(t){case Boolean:return e?"":null;case Object:case Array:return null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){switch(t){case Boolean:return null!==e;case Number:return null===e?null:Number(e);case Object:case Array:return JSON.parse(e)}return e}},J=(e,t)=>t!==e&&(t==t||e==e),Y={attribute:!0,type:String,converter:W,reflect:!1,hasChanged:J};class X extends HTMLElement{constructor(){super(),this.initialize()}static get observedAttributes(){this.finalize();const e=[];return this._classProperties.forEach((t,n)=>{const r=this._attributeNameForProperty(n,t);void 0!==r&&(this._attributeToPropertyMap.set(r,n),e.push(r))}),e}static _ensureClassProperties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_classProperties",this))){this._classProperties=new Map;const e=Object.getPrototypeOf(this)._classProperties;void 0!==e&&e.forEach((e,t)=>this._classProperties.set(t,e))}}static createProperty(e,t=Y){if(this._ensureClassProperties(),this._classProperties.set(e,t),t.noAccessor||this.prototype.hasOwnProperty(e))return;const n="symbol"==typeof e?Symbol():"__"+e,r=this.getPropertyDescriptor(e,n,t);void 0!==r&&Object.defineProperty(this.prototype,e,r)}static getPropertyDescriptor(e,t,n){return{get(){return this[t]},set(r){const o=this[e];this[t]=r,this.requestUpdateInternal(e,o,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this._classProperties&&this._classProperties.get(e)||Y}static finalize(){const e=Object.getPrototypeOf(this);if(e.hasOwnProperty("finalized")||e.finalize(),this.finalized=!0,this._ensureClassProperties(),this._attributeToPropertyMap=new Map,this.hasOwnProperty(JSCompiler_renameProperty("properties",this))){const e=this.properties,t=[...Object.getOwnPropertyNames(e),..."function"==typeof Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[]];for(const n of t)this.createProperty(n,e[n])}}static _attributeNameForProperty(e,t){const n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}static _valueHasChanged(e,t,n=J){return n(e,t)}static _propertyValueFromAttribute(e,t){const n=t.type,r=t.converter||W,o="function"==typeof r?r:r.fromAttribute;return o?o(e,n):e}static _propertyValueToAttribute(e,t){if(void 0===t.reflect)return;const n=t.type,r=t.converter;return(r&&r.toAttribute||W.toAttribute)(e,n)}initialize(){this._updateState=0,this._updatePromise=new Promise(e=>this._enableUpdatingResolver=e),this._changedProperties=new Map,this._saveInstanceProperties(),this.requestUpdateInternal()}_saveInstanceProperties(){this.constructor._classProperties.forEach((e,t)=>{if(this.hasOwnProperty(t)){const e=this[t];delete this[t],this._instanceProperties||(this._instanceProperties=new Map),this._instanceProperties.set(t,e)}})}_applyInstanceProperties(){this._instanceProperties.forEach((e,t)=>this[t]=e),this._instanceProperties=void 0}connectedCallback(){this.enableUpdating()}enableUpdating(){void 0!==this._enableUpdatingResolver&&(this._enableUpdatingResolver(),this._enableUpdatingResolver=void 0)}disconnectedCallback(){}attributeChangedCallback(e,t,n){t!==n&&this._attributeToProperty(e,n)}_propertyToAttribute(e,t,n=Y){const r=this.constructor,o=r._attributeNameForProperty(e,n);if(void 0!==o){const e=r._propertyValueToAttribute(t,n);if(void 0===e)return;this._updateState=8|this._updateState,null==e?this.removeAttribute(o):this.setAttribute(o,e),this._updateState=-9&this._updateState}}_attributeToProperty(e,t){if(8&this._updateState)return;const n=this.constructor,r=n._attributeToPropertyMap.get(e);if(void 0!==r){const e=n.getPropertyOptions(r);this._updateState=16|this._updateState,this[r]=n._propertyValueFromAttribute(t,e),this._updateState=-17&this._updateState}}requestUpdateInternal(e,t,n){let r=!0;if(void 0!==e){const o=this.constructor;n=n||o.getPropertyOptions(e),o._valueHasChanged(this[e],t,n.hasChanged)?(this._changedProperties.has(e)||this._changedProperties.set(e,t),!0!==n.reflect||16&this._updateState||(void 0===this._reflectingProperties&&(this._reflectingProperties=new Map),this._reflectingProperties.set(e,n))):r=!1}!this._hasRequestedUpdate&&r&&(this._updatePromise=this._enqueueUpdate())}requestUpdate(e,t){return this.requestUpdateInternal(e,t),this.updateComplete}async _enqueueUpdate(){this._updateState=4|this._updateState;try{await this._updatePromise}catch(e){}const e=this.performUpdate();return null!=e&&await e,!this._hasRequestedUpdate}get _hasRequestedUpdate(){return 4&this._updateState}get hasUpdated(){return 1&this._updateState}performUpdate(){if(!this._hasRequestedUpdate)return;this._instanceProperties&&this._applyInstanceProperties();let e=!1;const t=this._changedProperties;try{e=this.shouldUpdate(t),e?this.update(t):this._markUpdated()}catch(t){throw e=!1,this._markUpdated(),t}e&&(1&this._updateState||(this._updateState=1|this._updateState,this.firstUpdated(t)),this.updated(t))}_markUpdated(){this._changedProperties=new Map,this._updateState=-5&this._updateState}
1get updateComplete(){return this._getUpdateComplete()}_getUpdateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._updatePromise}shouldUpdate(e){return!0}update(e){void 0!==this._reflectingProperties&&this._reflectingProperties.size>0&&(this._reflectingProperties.forEach((e,t)=>this._propertyToAttribute(t,this[t],e)),this._reflectingProperties=void 0),this._markUpdated()}updated(e){}firstUpdated(e){}}X.finalized=!0;const G=Element.prototype;G.msMatchesSelector||G.webkitMatchesSelector;const K=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Q=Symbol();class Z{constructor(e,t){if(t!==Q)throw new Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e}get styleSheet(){return void 0===this._styleSheet&&(K?(this._styleSheet=new CSSStyleSheet,this._styleSheet.replaceSync(this.cssText)):this._styleSheet=null),this._styleSheet}toString(){return this.cssText}}const ee=e=>new Z(String(e),Q),te=(e,...t)=>{const n=t.reduce((t,n,r)=>t+(e=>{if(e instanceof Z)return e.cssText;if("number"==typeof e)return e;throw new Error(`Value passed to 'css' function must be a 'css' function result: ${e}. Use 'unsafeCSS' to pass non-literal values, but\n take care to ensure page security.`)})(n)+e[r+1],e[0]);return new Z(n,Q)};(window.litElementVersions||(window.litElementVersions=[])).push("2.5.1");const ne={};class re extends X{static getStyles(){return this.styles}static _getUniqueStyles(){if(this.hasOwnProperty(JSCompiler_renameProperty("_styles",this)))return;const e=this.getStyles();if(Array.isArray(e)){const t=(e,n)=>e.reduceRight((e,n)=>Array.isArray(n)?t(n,e):(e.add(n),e),n),n=t(e,new Set),r=[];n.forEach(e=>r.unshift(e)),this._styles=r}else this._styles=void 0===e?[]:[e];this._styles=this._styles.map(e=>{if(e instanceof CSSStyleSheet&&!K){const t=Array.prototype.slice.call(e.cssRules).reduce((e,t)=>e+t.cssText,"");return ee(t)}return e})}initialize(){super.initialize(),this.constructor._getUniqueStyles(),this.renderRoot=this.createRenderRoot(),window.ShadowRoot&&this.renderRoot instanceof window.ShadowRoot&&this.adoptStyles()}createRenderRoot(){return this.attachShadow(this.constructor.shadowRootOptions)}adoptStyles(){const e=this.constructor._styles;0!==e.length&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow?K?this.renderRoot.adoptedStyleSheets=e.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):this._needsShimAdoptedStyleSheets=!0:window.ShadyCSS.ScopingShim.prepareAdoptedCssText(e.map(e=>e.cssText),this.localName))}connectedCallback(){super.connectedCallback(),this.hasUpdated&&void 0!==window.ShadyCSS&&window.ShadyCSS.styleElement(this)}update(e){const t=this.render();super.update(e),t!==ne&&this.constructor.render(t,this.renderRoot,{scopeName:this.localName,eventContext:this}),this._needsShimAdoptedStyleSheets&&(this._needsShimAdoptedStyleSheets=!1,this.constructor._styles.forEach(e=>{const t=document.createElement("style");t.textContent=e.cssText,this.renderRoot.appendChild(t)}))}render(){return ne}}function oe(e){return"function"==typeof e}function ie(e){return function(t){if(function(e){return oe(null==e?void 0:e.lift)}(t))return t.lift((function(t){try{return e(t,this)}catch(e){this.error(e)}}));throw new TypeError("Unable to lift unknown Observable type")}}re.finalized=!0,re.render=(e,t,n)=>{if(!n||"object"!=typeof n||!n.scopeName)throw new Error("The `scopeName` option is required.");const r=n.scopeName,i=U.has(t),s=q&&11===t.nodeType&&!!t.host,a=s&&!D.has(r),l=a?document.createDocumentFragment():t;if(((e,t,n)=>{let r=U.get(t);void 0===r&&(o(t,t.firstChild),U.set(t,r=new E(Object.assign({templateFactory:V},n))),r.appendInto(t)),r.setValue(e),r.commit()})(e,l,Object.assign({templateFactory:I(r)},n)),a){const e=U.get(l);U.delete(l);const n=e.value instanceof y?e.value.template:void 0;F(r,l,n),o(t,t.firstChild),t.appendChild(l),U.set(t,e)}!i&&s&&window.ShadyCSS.styleElement(t.host)},re.shadowRootOptions={mode:"open"};var se=function(e,t){return(se=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function ae(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}se(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;function le(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);
vendor: 5,007 bytes, line 1
1if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ce(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function de(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"==typeof SuppressedError&&SuppressedError;function ue(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var pe=ue((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}));function he(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var fe=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var e,t,n,r,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var s=le(i),a=s.next();!a.done;a=s.next()){a.value.remove(this)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else i.remove(this);var l=this.initialTeardown;if(oe(l))try{l()}catch(e){o=e instanceof pe?e.errors:[e]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var d=le(c),u=d.next();!u.done;u=d.next()){var p=u.value;try{ge(p)}catch(e){o=null!=o?o:[],e instanceof pe?o=de(de([],ce(o)),ce(e.errors)):o.push(e)}}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}}if(o)throw new pe(o)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)ge(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&he(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&he(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}();fe.EMPTY;function me(e){return e instanceof fe||e&&"closed"in e&&oe(e.remove)&&oe(e.add)&&oe(e.unsubscribe)}function ge(e){oe(e)?e():e.unsubscribe()}var _e={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ve={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=ve.delegate;return(null==o?void 0:o.setTimeout)?o.setTimeout.apply(o,de([e,t],ce(n))):setTimeout.apply(void 0,de([e,t],ce(n)))},clearTimeout:function(e){var t=ve.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function we(){}var ye=be("C",void 0,void 0);function be(e,t,n){return{kind:e,value:t,error:n}}var xe=null;var Se=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,me(t)&&t.add(n)):n.destination=Ae,n}return ae(t,e),t.create=function(e,t,n){return new Ne(e,t,n)},t.prototype.next=function(e){this.isStopped?Te(function(e){return be("N",e,void 0)}(e),this):this._next(e)},t.prototype.error=function(e){this.isStopped?Te(be("E",void 0,e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?Te(ye,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(fe),ke=Function.prototype.bind;function Pe(e,t){return ke.call(e,t)}var Ce=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){Ee(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){Ee(e)}else Ee(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){Ee(e)}},e}(),Ne=function(e){function t(t,n,r){var o,i,s=e.call(this)||this;oe(t)||!t?o={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}
1:s&&_e.useDeprecatedNextContext?((i=Object.create(t)).unsubscribe=function(){return s.unsubscribe()},o={next:t.next&&Pe(t.next,i),error:t.error&&Pe(t.error,i),complete:t.complete&&Pe(t.complete,i)}):o=t;return s.destination=new Ce(o),s}return ae(t,e),t}(Se);function Ee(e){var t;_e.useDeprecatedSynchronousErrorHandling?(t=e,_e.useDeprecatedSynchronousErrorHandling&&xe&&(xe.errorThrown=!0,xe.error=t)):function(e){ve.setTimeout((function(){var t=_e.onUnhandledError;if(!t)throw e;t(e)}))}(e)}function Te(e,t){var n=_e.onStoppedNotification;n&&ve.setTimeout((function(){return n(e,t)}))}var Ae={closed:!0,next:we,error:function(e){throw e},complete:we};function Me(e,t,n,r,o){return new Oe(e,t,n,r,o)}var Oe=function(e){function t(t,n,r,o,i,s){var a=e.call(this,t)||this;return a.onFinalize=i,a.shouldUnsubscribe=s,a._next=n?function(e){try{n(e)}catch(e){t.error(e)}}:e.prototype._next,a._error=o?function(e){try{o(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,a._complete=r?function(){try{r()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,a}return ae(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}},t}(Se);function ze(e,t){return ie((function(n,r){var o=0;n.subscribe(Me(r,(function(n){return e.call(t,n,o++)&&r.next(n)})))}))}var je=ue((function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}})),Ve="function"==typeof Symbol&&Symbol.observable||"@@observable";function Re(e){return e}function Ue(e){return 0===e.length?Re:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}var He=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r,o=this,i=(r=e)&&r instanceof Se||function(e){return e&&oe(e.next)&&oe(e.error)&&oe(e.complete)}(r)&&me(r)?e:new Ne(e,t,n);return function(e){if(_e.useDeprecatedSynchronousErrorHandling){var t=!xe;if(t&&(xe={errorThrown:!1,error:null}),e(),t){var n=xe,r=n.errorThrown,o=n.error;if(xe=null,r)throw o}}else e()}((function(){var e=o,t=e.operator,n=e.source;i.add(t?t.call(i,n):n?o._subscribe(i):o._trySubscribe(i))})),i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=$e(t))((function(t,r){var o=new Ne({next:function(t){try{e(t)}catch(e){r(e),o.unsubscribe()}},error:r,complete:t});n.subscribe(o)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[Ve]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ue(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=$e(e))((function(e,n){var r;t.subscribe((function(e){return r=e}),(function(e){return n(e)}),(function(){return e(r)}))}))},e.create=function(t){return new e(t)},e}();function $e(e){var t;return null!==(t=null!=e?e:_e.Promise)&&void 0!==t?t:Promise}var Le=new He((function(e){return e.complete()}));function qe(e){return e<=0?function(){return Le}:ie((function(t,n){var r=0;t.subscribe(Me(n,(function(t){++r<=e&&(n.next(t),e<=r&&n.complete())})))}))}function Ie(e){return ie((function(t,n){var r=!1;t.subscribe(Me(n,(function(e){r=!0,n.next(e)}),(function(){r||n.next(e),n.complete()})))}))}function Be(e){return void 0===e&&(e=De),ie((function(t,n){var r=!1;t.subscribe(Me(n,(function(e){r=!0,n.next(e)}),(function(){return r?n.complete():n.error(e())})))}))}function De(){return new je}async function Fe(){const e=await new Promise(e=>{var t;if(null!==(t=window.Rai)&&void 0!==t&&t.PolicyManager)e(window.Rai.PolicyManager);else{var n;const t=null!==(n=window.Rai)&&void 0!==n?n:{};window.Rai=new Proxy(t,{set(n,r,o){const i=Reflect.set(n,r,o);return"PolicyManager"===r&&(window.Rai=t,window.setTimeout(()=>e(window.Rai.PolicyManager),0)),i}})}});return new Promise(t=>{const n=e.events$.pipe(ze(t=>t.type===e.events.POLICY_MANAGER_DEFINED_EVENT),function(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?ze((function(t,n){return e(t,n,r)})):Re,qe(1),n?Ie(t):Be((function(){return new je})))}}()).subscribe(()=>{t(window.Rai.PolicyManager)});window.setTimeout(()=>{n.unsubscribe(),t(window.Rai.PolicyManager)},5e3)})}var We=n("./src/rai-footer/style.shadow.scss"),Je=n.n(We),Ye=n("./src/rai-footer/fonts.css"),Xe=n.n(Ye);customElements.define("rai-footer",class extends re{static get styles(){return[te`${ee(Je.a)}`]}static get properties(){return{mode:{type:String}}}constructor(){super(),this.mode="dark",this.consentsStatus=void 0,this.getConsentsStatus=this.getConsentsStatus.bind(this),this.networkMenu=void 0,this.networkMenuOpened=!1}connectedCallback(){super.connectedCallback(),this.getConsentsStatus(),window.addEventListener("rai:opted_in",this.getConsentsStatus)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("rai:opted_in",this.getConsentsStatus)}firstUpdated(){const e=document.createElement("link");e.href="https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap",e.rel="stylesheet",this.shadowRoot.appendChild(e),this.checkAutomotive()}checkAutomotive(){var e=!1,t=document.querySelector("rai-footer"),n=document.querySelectorAll(".prefooter");
1[/bmw/i,/Faurecia Aptoide/i,/Harman Automotive/i].forEach((function(t){t.test(navigator.userAgent)&&(e=!0)})),e&&(t.classList.add("hide"),n.forEach((function(e){e.classList.add("hide")})))}async fontfaceObserver(){const e=new CSSStyleSheet;await this.updateComplete;const t=document.querySelector("rai-footer");const n=new IntersectionObserver(t=>{t.forEach(t=>{t.intersectionRatio>0&&(e.replaceSync(Xe.a),document.adoptedStyleSheets=[...document.adoptedStyleSheets,e],n.disconnect())})},{rootMargin:"0px 0px 600px 0px"});t&&n.observe(t)}getConsentStatus(e){const t=Object.values(e);return 0===t.length?"none":t.every(e=>e)?"all":t.every(e=>!e)?"none":"some"}async getConsentsStatus(){const e=await Fe().then(e=>{if(!e.getPurposeConsents)return;const t=e.getPurposeConsents(!0);return this.getConsentStatus(t)});this.consentsStatus=e,this.requestUpdate()}getTextStatus(e){switch(e){case"none":return"Tutti non accettati";case"all":return"Tutti accettati";case"some":return"Parzialmente accettati";default:return""}}showPreferenceCenter(e){e.stopPropagation(),e.preventDefault();const t=window.AS_OIL;if(t){let e=null;if(null==document.querySelector("#as-oil-cpc")){const e=(e,t)=>{for(const r of e)if("childList"===r.type&&r.addedNodes.length){const e=document.querySelector("div.as-oil");if(e){t.disconnect();const r=e.querySelector("button.as-oil-back-button");r&&r.remove();const o=document.createElement("img");o.src="//www.rai.it/dl/components/img/close.svg",o.setAttribute("style","filter: invert(1);");const i=document.createElement("button");i.setAttribute("style","position:absolute;top:0.7em;right:0.7em;cursor:pointer;padding:0;appearance:none;border:0;border-radius:0;background:transparent;line-height:1"),i.appendChild(o),e.appendChild(i),i.addEventListener("click",t=>{window.removeEventListener("message",n),e.remove()});document.querySelector("#as-oil-cpc").appendChild(i)}}};new MutationObserver(e).observe(document.body,{childList:!0})}function n(t){"oil_optin_done_button_clicked"===t.data&&(window.removeEventListener("message",n),e&&e.remove())}window.addEventListener("message",n),t.showPreferenceCenter("absolute")}}getNetworkDomain(){return location.host.includes("dev.rai.it")?"https://rai-dev.rai.it":location.host.includes("pre.rai.it")?"https://rai-pre.rai.it":"https://www.rai.it"}async getNetworkMenu(){const e=this.getNetworkDomain(),t=await fetch(e+"/menu.json");if(t.ok){const e=await t.json();this.networkMenu=this.networkMenuAdapter(e)}}networkMenuAdapter(e){return e.main_menu.navs.reduce((e,t)=>(t.navs.map(t=>e.push(t.item)),e),[])}async networkToggle(){if(!this.networkMenu)return await this.getNetworkMenu(),this.networkMenuOpened=!0,await this.requestUpdate(),void this.manageTransition();this.networkMenuOpened=!this.networkMenuOpened,await this.requestUpdate()}manageTransition(){const e=this.renderRoot.querySelector(".footer-network-menu");e.addEventListener("transitionend",function(t){"max-height"===t.propertyName&&(this.networkMenuOpened?(e.inert=!1,e.ariaHidden=!1,e.style.overflow="visible"):(e.inert=!0,e.ariaHidden=!0,e.style.overflow="hidden"))}.bind(this))}renderNetworkMenu(){return this.networkMenu?$` ${this.networkMenu.map(e=>$` <div class="footer-network-menu__item"> <a href="${e.weblink}" target="_blank" title="${e.labelCTA}" aria-label="Vai a ${e.labelCTA}, link a sito esterno, si apre in una nuova scheda" class="footer-network-menu__item--title"> ${e.labelCTA} <div class="footer-network-menu__item--icon"> <svg role="presentation" alt="" viewBox="0 0 16 16" fill="currentcolor" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M4 4a1 1 0 0 1 1-1h7a1 1 0 0 1 1 1v7a1 1 0 1 1-2 0V6.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L9.586 5H5a1 1 0 0 1-1-1z" fill="currentcolor"/> </svg> </div> </a> <span class="footer-network-menu__item--description">${e.description}</span> </div> `)} <div class="footer-network-menu__item footer-network-menu__item--gotoall"> <a href="${this.getNetworkDomain()+"/network"}" target="_blank" title="Vai all'elenco completo" aria-label="Vai all'elenco completo, link a sito esterno, si apre in una nuova scheda" class="footer-network-menu__item--title"> Vai all'elenco completo <div class="footer-network-menu__item--icon"> <svg role="presentation" alt="" viewBox="0 0 16 16" fill="currentcolor" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M4 4a1 1 0 0 1 1-1h7a1 1 0 0 1 1 1v7a1 1 0 1 1-2 0V6.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L9.586 5H5a1 1 0 0 1-1-1z" fill="currentcolor"/> </svg> </div> </a> </div> `:""}render(){return $` <div part="wrapper" class="footer-wrapper ${this.mode}"> <div class="footer-container"> <div class="footer-network footer-network--menu-${this.networkMenuOpened?"open":"closed"}"> <div class="footer-network__header" @click="${this.networkToggle}"> <div class="footer-network__label">Network Rai</div> <button class="footer-network__expand" aria-controls="collapsableArea" aria-expanded="${this.networkMenuOpened}"> <div class="footer-network__expand__arrow"> <span>${this.networkMenuOpened?"Riduci":"Espandi"}</span> <svg role="presentation" alt="" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M4.522 8.522a1.1 1.1 0 0 1 1.556 0L12 14.444l5.922-5.922a1.1 1.1 0 1 1 1.556 1.556l-6.7 6.7a1.1 1.1 0 0 1-1.556 0l-6.7-6.7a1.1 1.1 0 0 1 0-1.556z" fill="#687087"/> </svg> </div> <div class="footer-network__expand__operator"> ${this.networkMenuOpened&&$` <svg role="presentation" alt="" width="24" height="24" viewBox="0 0 24 24" fill="currentcolor" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M3.9 12A1.1 1.1 0 0 1 5 10.9h14a1.1 1.1 0 0 1 0 2.2H5A1.1 1.1 0 0 1 3.9 12z" fill="currentcolor"/> </svg> `||$` <svg role="presentation" alt="" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M13.1 5a1.1 1.1 0 0 0-2.2 0v5.9H5a1.1 1.1 0 0 0 0 2.2h5.9V19a1.1 1.1 0 0 0 2.2 0v-5.9H19a1.1 1.1 0 0 0 0-2.2h-5.9
1V5z" fill="#687087"/> </svg> `} </div> </button> </div> <div class="footer-network-menu" id="collapsableArea"> ${this.renderNetworkMenu()} </div> </div> <div class="footer-grid"> <nav class="footer-menu" aria-label="menu informazioni Rai"> <div class="footer-menu__link"> <a target="_blank" class="footer-menu__link__anchor" href="https://www.rai.it/trasparenza/" aria-label="Visita Rai Corporate, link a sito esterno, si apre in una nuova scheda"> Rai Corporate <div class="footer-menu__link__icon" role="presentation"> <svg role="presentation" alt="" viewBox="0 0 16 16" fill="currentcolor" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M4 4a1 1 0 0 1 1-1h7a1 1 0 0 1 1 1v7a1 1 0 1 1-2 0V6.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L9.586 5H5a1 1 0 0 1-1-1z" fill="currentcolor"/> </svg> </div> </a> </div> <div class="footer-menu__link"> <a target="_blank" class="footer-menu__link__anchor" href="https://www.rai.it/corporate/disclaimer/dichiarazione-di-accessibilita" aria-label="Vai a dichiarazione di accessibilità , link a sito esterno, si apre in una nuova scheda"> Dichiarazione di Accessibilità <div class="footer-menu__link__icon" role="presentation"> <svg role="presentation" alt="" viewBox="0 0 16 16" fill="currentcolor" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M4 4a1 1 0 0 1 1-1h7a1 1 0 0 1 1 1v7a1 1 0 1 1-2 0V6.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L9.586 5H5a1 1 0 0 1-1-1z" fill="currentcolor"/> </svg> </div> </a> </div> <div class="footer-menu__link"> <a target="_blank" class="footer-menu__link__anchor" href="https://www.rai.it/corporate/disclaimer/privacy-e-attivita-giornalistica" aria-label="Vai a Privacy attività giornalistica, link a sito esterno, si apre in una nuova scheda"> Privacy attività giornalistica <div class="footer-menu__link__icon" role="presentation"> <svg role="presentation" alt="" viewBox="0 0 16 16" fill="currentcolor" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M4 4a1 1 0 0 1 1-1h7a1 1 0 0 1 1 1v7a1 1 0 1 1-2 0V6.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L9.586 5H5a1 1 0 0 1-1-1z" fill="currentcolor"/> </svg> </div> </a> </div> <div class="footer-menu__link"> <a target="_blank" class="footer-menu__link__anchor" href="https://www.rai.it/privacy" aria-label="Vai a Privacy Policy, link a sito esterno, si apre in una nuova scheda"> Privacy Policy <div class="footer-menu__link__icon" role="presentation"> <svg role="presentation" alt="" viewBox="0 0 16 16" fill="currentcolor" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M4 4a1 1 0 0 1 1-1h7a1 1 0 0 1 1 1v7a1 1 0 1 1-2 0V6.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L9.586 5H5a1 1 0 0 1-1-1z" fill="currentcolor"/> </svg> </div> </a> </div> <div class="footer-menu__link"> <a target="_blank" class="footer-menu__link__anchor" href="https://www.rai.it/cookiepolicy"> Cookie Policy <div class="footer-menu__link__icon" role="presentation"> <svg role="presentation" alt="" viewBox="0 0 16 16" fill="currentcolor" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M4 4a1 1 0 0 1 1-1h7a1 1 0 0 1 1 1v7a1 1 0 1 1-2 0V6.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L9.586 5H5a1 1 0 0 1-1-1z" fill="currentcolor"/> </svg> </div> </a> <div class="footer-menu__group"> <button class="footer-menu__button" @click="${this.showPreferenceCenter}"> <svg role="presentation" alt="" width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"> <g clip-path="url(#jvurehwbsa)"> <path fill-rule="evenodd" clip-rule="evenodd" d="M5 4.1a1.1 1.1 0 1 0 0-2.2 1.1 1.1 0 0 0 0 2.2zM7.723 4a2.901 2.901 0 0 1-5.446 0H1a1 1 0 0 1 0-2h1.277a2.901 2.901 0 0 1 5.446 0H15a1 1 0 1 1 0 2H7.723zM5 14.1a1.1 1.1 0 1 0 0-2.2 1.1 1.1 0 0 0 0 2.2zm2.723-.1a2.901 2.901 0 0 1-5.446 0H1a1 1 0 1 1 0-2h1.277a2.901 2.901 0 0 1 5.446 0H15a1 1 0 1 1 0 2H7.723zM12.1 8a1.1 1.1 0 1 1-2.2 0 1.1 1.1 0 0 1 2.2 0zM11 10.9c1.25 0 2.316-.791 2.723-1.9H15a1 1 0 1 0 0-2h-1.277a2.901 2.901 0 0 0-5.446 0H1a1 1 0 1 0 0 2h7.277A2.901 2.901 0 0 0 11 10.9z"/> </g> <defs> <clipPath id="jvurehwbsa"> <path fill="#fff" d="M0 0h16v16H0z"/> </clipPath> </defs> </svg> Preferenze Cookie </button> ${this.consentsStatus&&$`<span class="footer-menu__legend"> <span class="footer-menu__legend__bullet footer-menu__legend__bullet--${this.consentsStatus}"></span> ${this.getTextStatus(this.consentsStatus)} </span>`} </div> </div> </nav> <svg class="footer-logo" aria-labelledby="logo-rai-radiotelevisione-italiana" role="img" width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"> <title id="logo-rai-radiotelevisione-italiana">Rai Radiotelevisione Italiana</title> <g clip-path="url(#w038y3q5za)"><path fill-rule="evenodd" clip-rule="evenodd" d="M40 0v40H0V0h40zM22.324 16.869c-3.163 0-5.347 2.617-5.347 5.671 0 3.054 2.226 5.692 5.388 5.692 1.175 0 2.405-.423 3.101-1.356l.124-.18h.042v1.183h3.786V17.222h-3.786v1.038c-.791-.934-2.08-1.391-3.308-1.391zm-11.
1637-4.654H4.59v15.664h4.078v-6.024h.042l3.849 6.024h5.076l-4.93-6.419c2.226-.395 3.432-2.265 3.432-4.425 0-3.345-2.35-4.82-5.45-4.82zm24.698 5.007h-3.787v10.657h3.787V17.222zm-12.062 2.929c1.54 0 2.433 1.1 2.433 2.41 0 1.35-.894 2.39-2.433 2.39-1.54 0-2.434-1.04-2.434-2.39 0-1.31.894-2.41 2.434-2.41zm-14.26-4.82c1.332 0 2.83.25 2.83 1.953 0 1.643-1.393 1.933-2.686 1.952h-.539v-3.905h.395zm24.429-4.32a2.13 2.13 0 0 0-2.123 2.118 2.13 2.13 0 0 0 2.123 2.119 2.129 2.129 0 0 0 2.121-2.119 2.13 2.13 0 0 0-2.121-2.119z"/></g> <defs> <clipPath id="w038y3q5za"> <path fill="#fff" d="M0 0h40v40H0z"/> </clipPath> </defs> </svg> <div class="footer-details"> <span>Rai - Radiotelevisione Italiana Spa</span> <span>Sede legale: Via Alessandro Severo, 246 - 00145 Roma</span> <span>Cap. Soc. Euro 242.518.100,00 interamente versato</span> <span>Ufficio del Registro delle Imprese di Roma</span> <span>© Rai ${(new Date).getFullYear()} - tutti i diritti riservati. P.Iva 06382641006</span> </div> </div> </div> </div> `}})},
1"./src/rai-footer/style.shadow.scss":function(e,t,n){var r=n("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js?!./src/rai-footer/style.shadow.scss");r&&r.__esModule&&(r=r.default),e.exports="string"==typeof r?r:r.toString()}
1}); 2//# sourceMappingURL=rai-footer.js.map
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.