1var article;(()=>{"use strict";var t,e,n,i={1311(t,e,n){function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var r,o="data-lazy-image",s=1/(window.devicePixelRatio||1),a=[],l=function(){a.forEach(function(t){return t.update()})};document.addEventListener("load",l),window.addEventListener("resize",l),document.addEventListener("scroll",l);var u=function(){var t;function e(t){if(!(this instanceof e))throw TypeError("Cannot call a class as a function");i(this,"priority",void 0),i(this,"target",void 0),i(this,"img",void 0),i(this,"width",void 0),i(this,"sources",void 0),this.target=t,this.target.style.display="block",this.target.style.backgroundPosition="center",this.target.style.backgroundRepeat="no-repeat",this.target.style.backgroundSize="cover",this.setURL("data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="),this.width=0,this.priority=parseInt(t.getAttribute("data-lazy-image-priority"),10)||0,this.sources=t.getAttribute(o).split(",").map(function(t){var e=t.trim().split(" ",2);return{url:e[0].trim(),width:e[1].trim()*s}}).sort(function(t,e){return t.width-e.width})}return t=[{key:"getBestImage",value:function(t){var e=this.sources[this.sources.length-1];return this.sources.sort(function(t,e){return t.width<e.width?-1:1}).find(function(e){return e.width>t})||e}},{key:"update",value:function(){var t=this;if(this.isVisible()){var e=.98*Math.max(this.target.getBoundingClientRect().width,this.width),n=this.getBestImage(e);if(this.width!==n.width){this.width=n.width;var i=document.createElement("img");i.src=n.url,i.onload=function(){i===t.img&&(t.setURL(n.url),t.img=null)},this.img=i}}}},{key:"setURL",value:function(t){this.target.style.backgroundImage='url("'.concat(t,'")')}},{key:"isVisible",value:function(){var t=this.target.getBoundingClientRect();return 0!==t.width&&t.top<window.innerHeight+200}}],function(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}(e.prototype,t),e}();function c(){document.querySelectorAll("[".concat(o,"]")).forEach(function(t){return a.push(new u(t))}),a.sort(function(t,e){return t.priority-e.priority}),l()}let d=function(t,e){var n=null;return function(){n||(n=setTimeout(function(){t(),n=null},e))}};var h=((T=h||{})[T.mobile=0]="mobile",T[T.tablet=768]="tablet",T[T.widescreen=2048]="widescreen",T[T.ultraWide=3200]="ultraWide",T);let f=function(){return window.innerWidth<h.tablet};function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var p="[data-carousel-container]",m=function(t,e,n){var i=t[0],r=getComputedStyle(e),o=i.getBoundingClientRect(),s=parseInt(r.rowGap,10),a=o.width+s;return{gapSpace:s,itemWidth:a,containerVisibleWidth:n.offsetWidth}},v=function(t){var e=t.querySelector(p),n=t.querySelector("[data-carousel-prev]"),i=t.querySelector("[data-carousel-next]"),r=function(t){if(Array.isArray(t))return g(t)}(_=t.querySelectorAll("[data-carousel-item]"))||function(t){if("u">typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(_)||function(t){if(t){if("string"==typeof t)return g(t,void 0);var e=Object.prototype.toString.call(t).slice(8,-1);if("Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e)return Array.from(e);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return g(t,void 0)}}(_)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=m(r,e,t),s=o.itemWidth,a=o.containerVisibleWidth,l=o.gapSpace,u=r.length*s-2*l,c=0,d=function(t){return!(t<0)&&!(t>r.length-1)&&(t<c||c*s+a<u)},h=function(){n.style.display=d(c-1)?"flex":"none",i.style.display=d(c+1)?"flex":"none"},f=function(t){h(),e.style.transform="translateX(".concat(t,"px)")},v=function(t){if(!(t<0)&&!(t>=r.length-1)){c=t;var e=r[t].offsetLeft;if(e>=u-a)return void f(-u+a);f(-e)}},y=function(){d(c)&&v(c+1)},b=function(){d(c-1)&&v(c-1)};if(e.style.transform){var _,w,S=u-a,I=Math.ceil(S/s),x=-parseInt((null==(w=e.style.transform.match(/\((.*)\)/))?void 0:w.pop())||"0",10),k=Math.ceil(x/s);v(x>S?I:k)}else e.style.transform="translateX(0px)";return n.addEventListener("click",b),i.addEventListener("click",y),h(),{clean:function(){n.removeEventListener("click",b),i.removeEventListener("click",y),n.style.display="",i.style.display=""}}},y=function(t){var e=t.querySelector(p),n=t.querySelector("[data-carousel-fade-start]"),i=t.querySelector("[data-carousel-fade-end]"),r=function(t){var e=t.target,r=e.scrollLeft>0,o=e.scrollWidth>e.scrollLeft+e.offsetWidth;n.style.opacity=r?"1":"0",i.style.opacity=o?"1":"0"};return e.style.transform="",n.style.opacity="0",i.style.opacity="1",e.addEventListener("scroll",r),{clean:function(){n.style.opacity="0",i.style.opacity="0",e.removeEventListener("scroll",r)}}};let b=function(){document.querySelectorAll("[data-carousel]").forEach(function(t){var e,n,i=function(){return f()?(e="mobile",y):(e="desktop",v)};window.addEventListener("resize",d(function(){var r=f()?"mobile":"desktop";("mobile"!==r||r!==e)&&(n.clean(),n=i()(t))},16)),n=i()(t)})};function _(t){return t&&"u">typeof Symbol&&t.constructor===Symbol?"symbol":typeof t}var w,S,I,x,k,T,C,E,O,A,P,L,z,D,j,M,N,G,B,F,H={},U=[],$=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,W=Array.isArray;function q(t,e){for(var n in e)t[n]=e[n];return t}function R(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function X(t,e,n){var i,r,o,s={};for(o in e)"key"==o?i=e[o]:"ref"==o?r=e[o]:s[o]=e[o];if(arguments.length>2&&(s.children=arguments.length>3?C.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(o in t.defaultProps)void 0===s[o]&&(s[o]=t.defaultProps[o]);return Z(t,s,i,r,null)}function Z(t,e,n,i,r){var o={type:t,props:e,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==r?++O:r,__i:-1,__u:0};return null==r&&null!=E.vnode&&E.vnode(o),o}function Y(t){return t.children}function V(t,e){this.props=t,this.context=e}function K(t,e){if(null==e)return t.__?K(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?K(t):null}function J(t){(!t.__d&&(t.__d=!0)&&A.push(t)&&!Q.__r++||P!=E.debounceRendering)&&((P=E.debounceRendering)||L)(Q)}function Q(){try{for(var t,e=1;A.length;)A.length>e&&A.sort(z),t=A.shift(),e=A.length,function(t){if(t.__P&&t.__d){var e=t.__v,n=e.__e,i=[],r=[],o=q({},e);o.__v=e.__v+1,E.vnode&&E.vnode(o),to(t.__P,o,e,t.__n,t.__P.namespaceURI,32&e.__u?[n]:null,i,null==n?K(e):n,!!(32&e.__u),r),o.__v=e.__v,o.__.__k[o.__i]=o,ts(i,o,r),e.__e=e.__=null,o.__e!=n&&function t(e){if(null!=(e=e.__)&&null!=e.__c)return e.__e=e.__c.base=null,e.__k.some(function(t){if(null!=t&&null!=t.__e)return e.__e=e.__c.base=t.__e}),t(e)}(o)}}(t)}finally{A.length=Q.__r=0}}function tt(t,e,n,i,r,o,s,a,l,u,c){var d,h,f,g,p,m,v=i&&i.__k||U,y=e.length;for(l=function(t,e,n,i,r){var o,s,a,l,u,c=n.length,d=c,h=0;for(t.__k=Array(r),o=0;o<r;o++)null!=(s=e[o])&&"boolean"!=typeof s&&"function"!=typeof s?("string"==typeof s||"number"==typeof s||"bigint"==(void 0===s?"undefined":_(s))||s.constructor==String?s=t.__k[o]=Z(null,s,null,null,null):W(s)?s=t.__k[o]=Z(Y,{children:s},null,null,null):void 0===s.constructor&&s.__b>0?s=t.__k[o]=Z(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):t.__k[o]=s,l=o+h,s.__=t,s.__b=t.__b+1,a=null,-1!=(u=s.__i=function(t,e,n,i){var r,o,s,a=t.key,l=t.type,u=e[n],c=null!=u&&0==(2&u.__u);if(null===u&&null==a||c&&a==u.key&&l==u.type)return n;if(i>+!!c){for(r=n-1,o=n+1;r>=0||o<e.length;)if(null!=(u=e[s=r>=0?r--:o++])&&0==(2&u.__u)&&a==u.key&&l==u.type)return s}return -1}(s,n,l,d))&&(d--,(a=n[u])&&(a.__u|=2)),null==a||null==a.__v?(-1==u&&(r>c?h--:r<c&&h++),"function"!=typeof s.type&&(s.__u|=4)):u!=l&&(u==l-1?h--:u==l+1?h++:(u>l?h--:h++,s.__u|=4))):t.__k[o]=null;if(d)for(o=0;o<c;o++)null!=(a=n[o])&&0==(2&a.__u)&&(a.__e==i&&(i=K(a)),function t(e,n,i){var r,o;
vendor: 12,287 bytes, line 1
1if(E.unmount&&E.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||ta(r,null,n)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(t){E.__e(t,n)}r.base=r.__P=r.__n=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&t(r[o],n,i||"function"!=typeof e.type);i||R(e.__e),e.__c=e.__=e.__e=void 0}(a,a));return i}(n,e,v,l,y),d=0;d<y;d++)null!=(f=n.__k[d])&&(h=-1!=f.__i&&v[f.__i]||H,f.__i=d,m=to(t,f,h,r,o,s,a,l,u,c),g=f.__e,f.ref&&h.ref!=f.ref&&(h.ref&&ta(h.ref,null,f),c.push(f.ref,f.__c||g,f)),null==p&&null!=g&&(p=g),4&f.__u?(l=function t(e,n,i){var r,o;if("function"==typeof e.type){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,n=t(r[o],n,i));return n}e.__e!=n&&(n&&e.type&&!n.parentNode&&(n=K(e)),n=i.insertBefore(e.__e,n||null));do n=n&&n.nextSibling;while(null!=n&&8==n.nodeType);return n}(f,l,t),h.__e&&(h.__e=null)):"function"==typeof f.type&&void 0!==m?l=m:g&&(l=g.nextSibling),f.__u&=-7);return n.__e=p,l}function te(t,e){return e=e||[],null==t||"boolean"==typeof t||(W(t)?t.some(function(t){te(t,e)}):e.push(t)),e}function tn(t,e,n){"-"==e[0]?t.setProperty(e,null==n?"":n):t[e]=null==n?"":"number"!=typeof n||$.test(e)?n:n+"px"}function ti(t,e,n,i,r){var o,s;t:if("style"==e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof i&&(t.style.cssText=i=""),i)for(e in i)n&&e in n||tn(t.style,e,"");if(n)for(e in n)i&&n[e]==i[e]||tn(t.style,e,n[e])}else if("o"==e[0]&&"n"==e[1])o=e!=(e=e.replace(N,"$1")),e=(s=e.toLowerCase())in t||"onFocusOut"==e||"onFocusIn"==e?s.slice(2):e.slice(2),t.l||(t.l={}),t.l[e+o]=n,n?i?n[M]=i[M]:(n[M]=G,t.addEventListener(e,o?F:B,o)):t.removeEventListener(e,o?F:B,o);else{if("http://www.w3.org/2000/svg"==r)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=e&&"height"!=e&&"href"!=e&&"list"!=e&&"form"!=e&&"tabIndex"!=e&&"download"!=e&&"rowSpan"!=e&&"colSpan"!=e&&"role"!=e&&"popover"!=e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null==n||!1===n&&"-"!=e[4]?t.removeAttribute(e):t.setAttribute(e,"popover"==e&&1==n?"":n))}}function tr(t){return function(e){if(this.l){var n=this.l[e.type+t];if(null==e[j])e[j]=G++;else if(e[j]<n[M])return;return n(E.event?E.event(e):e)}}}function to(t,e,n,i,r,o,s,a,l,u){var c,d,h,f,g,p,m,v,y,b,w,S,I,x,k,T,O=e.type;if(void 0!==e.constructor)return null;128&n.__u&&(l=!!(32&n.__u),o=[a=e.__e=n.__e]),(c=E.__b)&&c(e);t:if("function"==typeof O){d=s.length;try{if(y=e.props,b=O.prototype&&O.prototype.render,w=(c=O.contextType)&&i[c.__c],S=c?w?w.props.value:c.__:i,n.__c?v=(h=e.__c=n.__c).__=h.__E:(b?e.__c=h=new O(y,S):(e.__c=h=new V(y,S),h.constructor=O,h.render=tl),w&&w.sub(h),h.state||(h.state={}),h.__n=i,f=h.__d=!0,h.__h=[],h._sb=[]),b&&null==h.__s&&(h.__s=h.state),b&&null!=O.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=q({},h.__s)),q(h.__s,O.getDerivedStateFromProps(y,h.__s))),g=h.props,p=h.state,h.__v=e,f)b&&null==O.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),b&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(b&&null==O.getDerivedStateFromProps&&y!==g&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(y,S),e.__v==n.__v||!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(y,h.__s,S)){e.__v!=n.__v&&(h.props=y,h.state=h.__s,h.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.some(function(t){t&&(t.__=e)}),U.push.apply(h.__h,h._sb),h._sb=[],h.__h.length&&s.push(h),a=K(n);break t}null!=h.componentWillUpdate&&h.componentWillUpdate(y,h.__s,S),b&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(g,p,m)})}if(h.context=S,h.props=y,h.__P=t,h.__e=!1,I=E.__r,x=0,b)h.state=h.__s,h.__d=!1,I&&I(e),c=h.render(h.props,h.state,h.context),U.push.apply(h.__h,h._sb),h._sb=[];else do h.__d=!1,I&&I(e),c=h.render(h.props,h.state,h.context),h.state=h.__s;while(h.__d&&++x<25);h.state=h.__s,null!=h.getChildContext&&(i=q(q({},i),h.getChildContext())),b&&!f&&null!=h.getSnapshotBeforeUpdate&&(m=h.getSnapshotBeforeUpdate(g,p)),k=null!=c&&c.type===Y&&null==c.key?function t(e){return"object"!=(void 0===e?"undefined":_(e))||null==e||e.__b>0?e:W(e)?e.map(t):void 0!==e.constructor?null:q({},e)}(c.props.children):c,a=tt(t,W(k)?k:[k],e,n,i,r,o,s,a,l,u),h.base=e.__e,e.__u&=-161,h.__h.length&&s.push(h),v&&(h.__E=h.__=null)}catch(t){if(s.length=d,e.__v=null,l||null!=o){if(t.then){for(e.__u|=l?160:128;a&&8==a.nodeType&&a.nextSibling;)a=a.nextSibling;null!=o&&(o[o.indexOf(a)]=null),e.__e=a}else if(null!=o)for(T=o.length;T--;)R(o[T])}else e.__e=n.__e;null==e.__k&&(e.__k=n.__k||[]),t.then||function t(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(t))}(e),E.__e(t,e,n)}}else null==o&&e.__v==n.__v?(e.__k=n.__k,e.__e=n.__e):a=e.__e=function(t,e,n,i,r,o,s,a,l){var u,c,d,h,f,g,p,m=n.props||H,v=e.props,y=e.type;if("svg"==y?r="http://www.w3.org/2000/svg":"math"==y?r="http://www.w3.org/1998/Math/MathML":r||(r="http://www.w3.org/1999/xhtml"),null!=o){for(u=0;u<o.length;u++)if((f=o[u])&&"setAttribute"in f==!!y&&(y?f.localName==y:3==f.nodeType)){t=f,o[u]=null;break}}if(null==t){if(null==y)return document.createTextNode(v);t=document.createElementNS(r,y,v.is&&v),a&&(E.__m&&E.__m(e,o),a=!1),o=null}if(null==y)m===v||a&&t.data==v||(t.data=v);else{if(o="textarea"==y&&null!=v.defaultValue?null:o&&C.call(t.childNodes),!a&&null!=o)for(m={},u=0;u<t.attributes.length;u++)m[(f=t.attributes[u]).name]=f.value;for(u in m)f=m[u],"dangerouslySetInnerHTML"==u?d=f:"children"==u||u in v||"value"==u&&"defaultValue"in v||"checked"==u&&"defaultChecked"in v||ti(t,u,null,f,r);for(u in v)f=v[u],"children"==u?h=f:"dangerouslySetInnerHTML"==u?c=f:"value"==u?g=f:"checked"==u?p=f:a&&"function"!=typeof f||m[u]===f||ti(t,u,f,m[u],r);if(c)a||d&&(c.__html==d.__html||c.__html==t.innerHTML)||(t.innerHTML=c.__html),e.__k=[];else if(d&&(t.innerHTML=""),tt("template"==e.type?t.content:t,W(h)?h:[h],e,n,i,"foreignObject"==y?"http://www.w3.org/1999/xhtml":r,o,s,o?o[0]:n.__k&&K(n,0),a,l),null!=o)for(u=o.length;u--;)R(o[u]);a&&"textarea"!=y||(u="value","progress"==y&&null==g?t.removeAttribute("value"):null==g||g===t[u]&&("progress"!=y||g)&&("option"!=y||g==m[u])||ti(t,u,g,m[u],r),u="checked",null!=p&&p!=t[u]&&ti(t,u,p,m[u],r))}return t}(n.__e,e,n,i,r,o,s,l,u);return(c=E.diffed)&&c(e),128&e.__u?void 0:a}function ts(t,e,n){for(var i=0;i<n.length;i++)ta(n[i],n[++i],n[++i]);E.__c&&E.__c(e,t),t.some(function(e){try{t=e.__h,e.__h=[],t.some(function(t){t.call(e)})}catch(t){E.__e(t,e.__v)}})}function ta(t,e,n){try{if("function"==typeof t){var i="function"==typeof t.__u;i&&t.__u(),i&&null==e||(t.__u=t(e))}else t.current=e}catch(t){E.__e(t,n)}}function tl(t,e,n){return this.constructor(t,n)}function tu(t,e,n){var i,r,o,s;e==document&&(e=document.documentElement),E.__&&E.__(t,e),r=(i="function"==typeof n)?null:n&&n.__k||e.__k,o=[],s=[],to(e,t=(!i&&n||e).__k=X(Y,null,[t]),r||H,H,e.namespaceURI,!i&&n?[n]:r?null:e.firstChild?C.call(e.childNodes):null,o,!i&&n?n:r?r.__e:e.firstChild,i,s),ts(o,t,s),t.props.children=null}C=U.slice,E={__e:function(t,e,n,i){for(var r,o,s;e=e.__;)if((r=e.__c)&&!r.__)try{if((o=r.constructor)&&null!=o.getDerivedStateFromError&&(r.setState(o.getDerivedStateFromError(t)),s=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(t,i||{}),s=r.__d),s)return r.__E=r}catch(e){t=e}throw t}},O=0,V.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=q({},this.state),"function"==typeof t&&(t=t(q({},n),this.props)),t&&q(n,t),null!=t&&this.__v&&(e&&this._sb.push(e),J(this))},V.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),J(this))},V.prototype.render=Y,A=[],L="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,z=function(t,e){return t.__v.__b-e.__v.__b},Q.__r=0,j="__d"+(D=Math.random().toString(8)),M="__a"+D,N=/(PointerCapture)$|Capture$/i,G=0,B=tr(!1),F=tr(!0);var tc,td,th,tf,tg=0,tp=[],tm=E,tv=tm.__b,ty=tm.__r,tb=tm.diffed,t_=tm.__c,tw=tm.unmount,tS=tm.__;function tI(t,e){tm.__h&&tm.__h(td,t,tg||e),tg=0;var n=td.__H||(td.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function tx(t,e,n){var i=tI(tc++,2);if(i.t=t,!i.__c&&(i.__=[n?n(e):tA(void 0,e),function(t){var e=i.__N?i.__N[0]:i.__[0],n=i.t(e,t);e!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=td,!td.__f)){var r=function(t,e,n){if(!i.__c.__H)return!0;var r=!1,s=i.__c.props!==t;if(i.__c.__H.__.some(function(t){if(t.__N){r=!0;var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(s=!0)}}),o){var a=o.call(this,t,e,n);return r?a||s:a}return!r||s};td.__f=!0;var o=td.shouldComponentUpdate,s=td.componentWillUpdate;td.componentWillUpdate=function(t,e,n){if(this.__e){var i=o;o=void 0,r(t,e,n),o=i}s&&s.call(this,t,e,n)},td.shouldComponentUpdate=r}return i.__N||i.__}function tk(t,e){var n,i,r=tI(tc++,3);!tm.__s&&(n=r.__H,i=e,!n||n.length!==i.length||i.some(function(t,e){return t!==n[e]}))&&(r.__=t,r.u=e,td.__H.__h.push(r))}function tT(){for(var t;t=tp.shift();){var e=t.__H;if(t.__P&&e)try{e.__h.some(tE),e.__h.some(tO),e.__h=[]}catch(n){e.__h=[],tm.__e(n,t.__v)}}}tm.__b=function(t){td=null,tv&&tv(t)},tm.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),tS&&tS(t,e)},tm.__r=function(t){ty&&ty(t),tc=0;var e=(td=t.__c).__H;e&&(th===td?(e.__h=[],td.__h=[],e.__.some(function(t){t.__N&&(t.__=t.__N),t.u=t.__N=void 0})):(e.__h.some(tE),e.__h.some(tO),e.__h=[],tc=0)),th=td},tm.diffed=function(t){tb&&tb(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==tp.push(e)&&tf===tm.requestAnimationFrame||((tf=tm.requestAnimationFrame)||function(t){var e,n=function(){clearTimeout(i),tC&&cancelAnimationFrame(e),setTimeout(t)},i=setTimeout(n,35);tC&&(e=requestAnimationFrame(n))})(tT)),e.__H.__.some(function(t){t.u&&(t.__H=t.u,t.u=void 0)})),th=td=null},tm.__c=function(t,e){e.some(function(t){try{t.__h.some(tE),t.__h=t.__h.filter(function(t){return!t.__||tO(t)})}catch(n){e.some(function(t){t.__h&&(t.__h=[])}),e=[],tm.__e(n,t.__v)}}),t_&&t_(t,e)},tm.unmount=function(t){tw&&tw(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.some(function(t){try{tE(t)}catch(t){e=t}}),n.__H=void 0,e&&tm.__e(e,n.__v))};var tC="function"==typeof requestAnimationFrame;function tE(t){var e=td,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),td=e}function tO(t){var e=td;t.__c=t.__(),td=e}function tA(t,e){return"function"==typeof e?e(t):e}function tP(t,e){for(var n in t)if("__source"!==n&&!(n in e))return!0;for(var i in e)if("__source"!==i&&t[i]!==e[i])return!0;return!1}function tL(t,e){this.props=t,this.context=e}(tL.prototype=new V).isPureReactComponent=!0,tL.prototype.shouldComponentUpdate=function(t,e){return tP(this.props,t)||tP(this.state,e)};var tz=E.__b;E.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),tz&&tz(t)},"u">typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref");var tD=E.__e;E.__e=function(t,e,n,i){if(t.then){for(var r,o=e;o=o.__;)if((r=o.__c)&&r.__c)return null==e.__e&&(e.__e=n.__e,e.__k=n.__k||[]),r.__c(t,e)}tD(t,e,n,i)};var tj=E.unmount;function tM(){this.__u=0,this.o=null,this.__b=null}function tN(t){var e=t.__&&t.__.__c;return e&&e.__a&&e.__a(t)}function tG(){this.i=null,this.l=null}E.unmount=function(t){var e=t.__c;e&&(e.__z=!0),e&&e.__R&&e.__R(),e&&32&t.__u&&(t.type=null),tj&&tj(t)},(tM.prototype=new V).__c=function(t,e){var n=e.__c,i=this;null==i.o&&(i.o=[]),i.o.push(n);var r=tN(i.__v),o=!1,s=function(){o||i.__z||(o=!0,n.__R=null,r?r(l):l())};n.__R=s;var a=n.__P;n.__P=null;var l=function(){if(!--i.__u){if(i.state.__a){var t,e=i.state.__a;i.__v.__k[0]=function t(e,n,i){return e&&i&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(e){return t(e,n,i)}),e.__c&&e.__c.__P===n&&(e.__e&&i.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=i)),e}(e,e.__c.__P,e.__c.__O)}for(i.setState({__a:i.__b=null});t=i.o.pop();)t.__P=a,t.forceUpdate()}};i.__u++||32&e.__u||i.setState({__a:i.__b=i.__v.__k[0]}),t.then(s,s)},tM.prototype.componentWillUnmount=function(){this.o=[]},tM.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=function t(e,n,i){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(t){"function"==typeof t.__c&&t.__c()}),e.__c.__H=null),null!=(e=function(t,e){for(var n in e)t[n]=e[n];return t}({},e)).__c&&(e.__c.__P===i&&(e.__c.__P=n),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(e){return t(e,n,i)})),e}
1(this.__b,n,i.__O=i.__P)}this.__b=null}var r=e.__a&&X(Y,null,t.fallback);return r&&(r.__u&=-33),[X(Y,null,e.__a?null:t.children),r]};var tB=function(t,e,n){if(++n[1]===n[0]&&t.l.delete(e),t.props.revealOrder&&("t"!==t.props.revealOrder[0]||!t.l.size))for(n=t.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;t.i=n=n[2]}};(tG.prototype=new V).__a=function(t){var e=this,n=tN(e.__v),i=e.l.get(t);return i[0]++,function(r){var o=function(){e.props.revealOrder?(i.push(r),tB(e,t,i)):r()};n?n(o):o()}},tG.prototype.render=function(t){this.i=null,this.l=new Map;var e=te(t.children);t.revealOrder&&"b"===t.revealOrder[0]&&e.reverse();for(var n=e.length;n--;)this.l.set(e[n],this.i=[1,0,this.i]);return t.children},tG.prototype.componentDidUpdate=tG.prototype.componentDidMount=function(){var t=this;this.l.forEach(function(e,n){tB(t,n,e)})};var tF="u">typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,tH=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,tU=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,t$=/[A-Z0-9]/g,tW="u">typeof document,tq=function(t){var e;return("u">typeof Symbol&&"symbol"==((e=Symbol())&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)?/fil|che|rad/:/fil|che|ra/).test(t)};V.prototype.isReactComponent=!0,["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(V.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]}
1,set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var tR=E.event;E.event=function(t){return tR&&(t=tR(t)),t.persist=function(){},t.isPropagationStopped=function(){return this.cancelBubble},t.isDefaultPrevented=function(){return this.defaultPrevented},t.nativeEvent=t};var tX={configurable:!0,get:function(){return this.class}},tZ=E.vnode;E.vnode=function(t){"string"==typeof t.type&&function(t){var e=t.props,n=t.type,i={},r=-1==n.indexOf("-");for(var o in e){var s=e[o];if(!("value"===o&&"defaultValue"in e&&null==s||tW&&"children"===o&&"noscript"===n||"class"===o||"className"===o)){var a=o.toLowerCase();"defaultValue"===o&&"value"in e&&null==e.value?o="value":"download"===o&&!0===s?s="":"translate"===a&&"no"===s?s=!1:"o"===a[0]&&"n"===a[1]?"ondoubleclick"===a?o="ondblclick":"onchange"!==a||"input"!==n&&"textarea"!==n||tq(e.type)?"onfocus"===a?o="onfocusin":"onblur"===a?o="onfocusout":tU.test(o)&&(o=a):a=o="oninput":r&&tH.test(o)?o=o.replace(t$,"-$&").toLowerCase():null===s&&(s=void 0),"oninput"===a&&i[o=a]&&(o="oninputCapture"),i[o]=s}}"select"==n&&(i.multiple&&Array.isArray(i.value)&&(i.value=te(e.children).forEach(function(t){t.props.selected=-1!=i.value.indexOf(t.props.value)})),null!=i.defaultValue&&(i.value=te(e.children).forEach(function(t){t.props.selected=i.multiple?-1!=i.defaultValue.indexOf(t.props.value):i.defaultValue==t.props.value}))),e.class&&!e.className?(i.class=e.class,Object.defineProperty(i,"className",tX)):e.className&&(i.class=i.className=e.className),t.props=i}(t),t.$$typeof=tF,tZ&&tZ(t)};var tY=E.__r;E.__r=function(t){tY&&tY(t),t.__c};var tV=E.diffed;E.diffed=function(t){tV&&tV(t);var e=t.props,n=t.__e;null!=n&&"textarea"===t.type&&"value"in e&&e.value!==n.value&&(n.value=null==e.value?"":e.value)};var tK=0;function tJ(t,e,n,i,r,o){e||(e={});var s,a,l=e;if("ref"in l)for(a in l={},e)"ref"==a?s=e[a]:l[a]=e[a];var u={type:t,props:l,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--tK,__i:-1,__u:0,__source:r,__self:o};if("function"==typeof t&&(s=t.defaultProps))for(a in s)void 0===l[a]&&(l[a]=s[a]);return E.vnode&&E.vnode(u),u}var tQ={slider:{arrows:!1,pagination:!1,drag:"free",fixedWidth:f()?290:350},carousel:{arrows:!0,pagination:!0,type:"loop",autoplay:!1,keyboard:!0,snap:!0,focus:"center",gap:"12px",speed:600,fixedWidth:f()?window.innerWidth:window.innerWidth>=h.ultraWide?1250:window.innerWidth>=h.widescreen?1071:788,classes:{pagination:"splide__pagination video-teaser-list__pagination",arrows:"splide__arrows video-teaser-list__arrows",arrow:"splide__arrow video-teaser-list__arrow"}},"left-aligned":{arrows:!0,pagination:!0,type:"loop",autoplay:!1,keyboard:!0,snap:!0,focus:0,gap:"12px",speed:600,fixedWidth:f()?"97vw":"85%",classes:{pagination:"splide__pagination video-teaser-list__pagination",arrows:"splide__arrows video-teaser-list__arrows",arrow:"splide__arrow video-teaser-list__arrow"}}};function t0(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var t1=((r={}).xxl="xxlarge",r.xl="xlarge",r.lg="large",r.md="medium",r.sm="small",r.xs="xsmall",r.xxs="xxsmall",r),t2=(t0(w={},"xxsmall",10),t0(w,"xsmall",16),t0(w,"small",20),t0(w,"medium",24),t0(w,"large",28),t0(w,"xlarge",32),t0(w,"xxlarge",36),w);let t3=function(t){var e=t.size,n=void 0===e?"medium":e,i=t.className,r=t.children,o=t.viewport,s=t.fill,a=t.onClick;return tJ("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:o,height:t2[n],width:t2[n],style:"min-width: ".concat(t2[n],"px"),className:"icon--".concat(n).concat(i?" ".concat(i):""),fill:s||"currentColor",onClick:a,children:r})},t5=function(t){return tJ(t3,{size:t.size,className:t.className,fill:"none",viewport:"0 0 24 24",children:tJ("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z",fill:"currentColor"})})},t4=function(t){return tJ(t3,{size:t.size,className:t.className,fill:"none",viewport:"0 0 24 24",children:tJ("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",fill:"currentColor"})})},t6=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:tQ.slider;if(t){var r=t.querySelector(".splide");r&&n.e(11).then(n.bind(n,5734)).then(function(t){var n=new t.Splide(r,i);n.on("arrows:mounted",function(t,e){t.innerHTML="",e.innerHTML="",tu(tJ(t5,{size:t1.xl}),t),tu(tJ(t4,{size:t1.xl}),e)}),e&&e(n),n.mount()})}};var t8={slider:{arrows:!1,pagination:!1,drag:"free",autoWidth:!0,focus:0},carousel:{arrows:!1,pagination:!1,drag:!1,autoWidth:!0,focus:0,autoplay:!0,type:"loop",speed:500}};let t7=function(){document.querySelectorAll("[data-icon-links-slider]").forEach(function(t){var e=t.querySelector(".icon-links__fader");t6(t,function(t){if(e){var n=function(){var n=t.Components.Controller.getEnd(),i=t.index>=n;e.classList.toggle("is-hidden",i)};t.on("mounted",function(){n(),t.on("moved dragged resized updated",n)})}},"carousel"===t.dataset.iconLinksTemplate?t8.carousel:t8.slider)})};var t9=function(t){if(t.ok)return t.json();throw Error("HTTP ".concat(t.status,": ").concat(t.statusText))};let et=function(t,e){return fetch(t,{signal:e,credentials:"same-origin",headers:new Headers({Accept:"application/json"}),method:"GET"}).then(function(t){return t9(t)})};function ee(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var en=["jan","feb","mar","apr","maj","jun","jul","aug","sep","okt","nov","dec"],ei="https://avisendanmark.dk";function er(t){var e,n=t.url,i=t.currentSite,r=function(t){if(Array.isArray(t))return t}((tg=1,e=tx(tA,{isFrontPage:!0,slug:"",articles:[],author:{imageUrl:"",jobPosition:"",name:""},date:"",introductionLead:"",introductionParagraph:""})))||function(t){var e,n,i=null==t?null:"u">typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var r=[],o=!0,s=!1;try{for(i=i.call(t);!(o=(e=i.next()).done)&&(r.push(e.value),2!==r.length);o=!0);}catch(t){s=!0,n=t}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return r}}(e)||function(t){if(t){if("string"==typeof t)return ee(t,2);var e=Object.prototype.toString.call(t).slice(8,-1);if("Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e)return Array.from(e);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return ee(t,2)}}
1(e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=r[0],s=r[1];tk(function(){et(n).then(function(t){s(t)}).catch(function(t){console.error("Could not fetch the latest ADK front page",t)})},[n]);var a="";if(o&&!o.isFrontPage&&o.slug&&(a="/".concat(o.slug)),!o)return tJ("div",{style:{display:"none"}});var l="?utm_source=".concat(i,"&utm_medium=block_avisen_danmark");return tJ("div",{class:"avisendanmark-block",children:[tJ("header",{class:"avisendanmark-block__header",children:[tJ("h3",{class:"avisendanmark-block__headline",children:["Dagens",tJ("br",{}),"Danmark"]}),tJ("div",{class:"avisendanmark-block__date",children:[tJ("span",{class:"avisendanmark-block__day",children:o&&o.date?o.date.split("-")[2]:""}),tJ("span",{class:"avisendanmark-block__month",children:o&&o.date&&en[parseFloat(o.date.split("-")[1])-1]||""})]})]}),tJ("div",{className:"avisendanmark-block__lead",children:"Dagens Danmark er din nye daglige nyhedsbriefing. Vi sk\xe6rer igennem nyhedsstr\xf8mmen, og hver dag udkommer vi med d\xf8gnets vigtigste historier."}),tJ("a",{className:"btn avisendanmark-block__btn",href:"".concat(ei,"/nyhedsbrev").concat(l),target:"_blank",title:"Tilmeld nyhedsbrev",rel:"noreferrer",children:"Tilmeld nyhedsbrev"}),tJ("div",{class:"avisendanmark-block__author",children:[tJ("img",{class:"avisendanmark-block__image",src:o.author.imageUrl,alt:o.author.name}),tJ("div",{class:"avisendanmark-block__name",children:o.author.name}),tJ("div",{class:"avisendanmark-block__job-position",children:o.author.jobPosition})]}),tJ("p",{class:"avisendanmark-block__paragraph",children:o.introductionParagraph}),tJ("a",{class:"avisendanmark-block__btn btn",href:"".concat(ei).concat(a).concat(l),target:"_blank",title:"Se nyhedsbrev",rel:"noreferrer",children:"Se nyhedsbrev"})]})}function eo(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var es=function(t){return"?utm_source=".concat(t,"&utm_medium=block_editor_section")},ea=function(t,e){return"//".concat(t,"/").concat(e)},el=function(t,e){var n=t.url,i=t.headline;return tJ("li",{class:"editor-section-block__item",children:tJ("a",{class:"editor-section-block__link",href:"".concat(n).concat(es(e)),target:"_blank",title:i,rel:"noreferrer",children:i})})};function eu(t){var e,n=t.baseUrl,i=t.amount,r=t.contentUrl,o=t.aboutSlug,s=t.aboutText,a=t.title,l=t.lead,u=t.target,c=t.currentSite,d=function(t){if(Array.isArray(t))return t}((tg=1,e=tx(tA,{articles:[],author:{name:"",jobPosition:"",imageUrl:""},date:"",introductionLead:"",slug:"",isFrontPage:!0})))||function(t){var e,n,i=null==t?null:"u">typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var r=[],o=!0,s=!1;try{for(i=i.call(t);!(o=(e=i.next()).done)&&(r.push(e.value),2!==r.length);o=!0);}catch(t){s=!0,n=t}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return r}}(e)||function(t){if(t){if("string"==typeof t)return eo(t,2);var e=Object.prototype.toString.call(t).slice(8,-1);if("Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e)return Array.from(e);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return eo(t,2)}}(e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),h=d[0],f=d[1];tk(function(){et(r).then(function(t){return f(t)}).catch(function(t){throw Error("Could not fetch content; ".concat(t.toString()))})},[r]);var g=h.isFrontPage,p=h.slug,m=h.articles,v=h.author,y=v.imageUrl,b=v.name,_=v.jobPosition,w="avisendanmark.dk"===n;return tJ("div",{class:"editor-section-block ".concat(w?"editor-section-block--avisendanmark":null),children:[tJ("header",{class:"editor-section-block__header",children:[tJ("h3",{class:"editor-section-block__headline",children:a}),tJ("div",{class:"editor-section-block__date",children:[tJ("span",{class:"editor-section-block__day",children:h.date.split("-")[2]}),tJ("span",{class:"editor-section-block__month",children:["jan","feb","mar","apr","maj","jun","jul","aug","sep","okt","nov","dec"][parseFloat(h.date.split("-")[1])-1]||""})]})]}),tJ("div",{class:"editor-section-block__author",children:[tJ("img",{class:"editor-section-block__image",src:y,alt:b}),tJ("div",{class:"editor-section-block__name",children:b}),tJ("div",{class:"editor-section-block__job-position",children:_})]}),tJ("div",{class:"editor-section-block__lead",children:l}),tJ("ol",{class:"editor-section-block__list",children:m.map(function(t,e){return e+1>i?null:el(t,c)})}),tJ("a",{class:"editor-section-block__read-more",href:ea(n,g?"":p)+es(c),target:u,title:"L\xe6s seneste udgave",rel:"noreferrer",children:["L\xe6s seneste udgave ",tJ("span",{class:"icon icon-arrow-right"})]}),tJ("a",{class:"btn editor-section-block__btn",href:ea(n,o)+es(c),target:u,title:s,rel:"noreferrer",children:s})]})}var ec="tealium_loaded";let ed=function(t){return new Promise(function(e){if(window.utag)return void e();var n,i=function(){n&&clearTimeout(n),document.removeEventListener(ec,i),e()};document.addEventListener(ec,i),"number"==typeof t&&(n=setTimeout(function(){document.removeEventListener(ec,i),e()},1e3*t))})};var eh=function(t){var e=t.detail,n=e.uuid,i=e.contentCharCount,r=e.backgroundCharCount,o=e.parentUuid;return{debate_contribution_uuid:n,debate_timestamp:new Date().toISOString(),debate_content_character_count:i,debate_background_character_count:r,debate_parent_uuid:o}},ef=function(t){window.tealiumDebateEvents.push(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}
1))),i.forEach(function(e){var i;i=n[e],e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i})}return t}({},t)),utag.link(t)};let eg=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5e3,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=0;return new Promise(function(i,r){var o=setInterval(function(){var s;n+=e,window.flowplayer&&(null==(s=window.flowplayer.instances)?void 0:s.length)>0&&(clearInterval(o),i()),n>=t&&(clearInterval(o),r())},e)})};var ep=function(t,e){return window.kilkayaVideoLogDebugger.push({key:t,data:e})},em=[],ev=function(t){var e=window.kilkaya.getVideo(t,!1);return em.push(e),ep("getVideo",t),{setField:function(t,n){e.setField(t,n),ep("setField","".concat(t,": ").concat(n))},setTags:function(t){t.forEach(function(t){e.setField("tag",t),ep("setField","tag: ".concat(t))})},setLive:function(){e.setLive(),ep("setLive","true")},start:function(t){e.start(t),ep("start",t)},load:function(t){e.load(),ep("".concat(t," event"),"load")},pause:function(t){e.pause(),ep("".concat(t," event"),"pause")},resume:function(t){e.resume(),ep("".concat(t," event"),"resume")},finishVideo:function(t){window.kilkaya.finishVideo(e),ep("".concat(t," event"),"finishVideo")}}};window.kilkayaVideoLogDebugger=window.kilkayaVideoLogDebugger||[];var ey=function(t){var e=window.flowplayer.events,n=t.opts,i=n.autoplay,r=n.metadata,o=n.live,s=n.poster,a=r.category_name,l=r.duration,u=r.id,c=r.tags,d=r.title,h=document.location,f=ev("".concat(h.toString().replace(h.search,""),"?v=").concat(u));f.setField("title",d),f.setField("image",s),f.setField("tag",a),f.setTags(c.trim().split(",").filter(function(t){return""!==t})),o&&f.setLive(),o||f.setField("duration",l),i&&f.start("auto"),t.on(e.VIEW_ENTER,function(){return f.load(e.VIEW_ENTER)});var g=!1,p=!1;t.on(e.PLAYING,function(){g?p&&(f.resume(e.PLAYING),p=!1):f.load(e.PLAYING),i||g||f.start("manual"),g=!0}),t.on(e.PAUSE,function(){f.pause(e.PAUSE),p=!0}),t.on(e.ENDED,function(){return f.finishVideo(e.ENDED)})},eb=function(){var t;window.kilkaya?(null==(t=window.flowplayer)||t.instances.forEach(function(t){var e=t.opts,n=e.live_start_time,i=e.live,r=function(){return new Date().getTime()};if(i&&n>=r()){var o=setInterval(function(){n<=r()&&(clearInterval(o),ey(t))},1e3);return}ey(t)}),window.addEventListener("beforeunload",function(){return em.forEach(function(t){return window.kilkaya.finishVideo(t)})})):console.warn("Kilkaya not running... aborting Video Logging")};let e_=function(){eg(1e4).then(function(){return eb()}).catch(function(){})};var ew=[.5,.67,.75,.8,.9,1,1.1,1.25,1.5,1.75,2,2.5],eS=document.querySelector(":root"),eI="fontSizeMultiplier",ex=function(t){var e=t<1?2:3;document.querySelectorAll("[data-font-size-percentage]").forEach(function(n){n.innerHTML="".concat((100*t).toPrecision(e),"%")})},ek=function(t){sessionStorage.setItem(eI,t.toString())},eT=function(){var t=sessionStorage.getItem(eI);return null!==t&&ew.includes(Number(t))?Number(sessionStorage.getItem(eI)):1};function eC(t){var e,n=null==t||null==(e=t.currentTarget)?void 0:e.parentElement;if(n){var i="font-size-multiplier--active";if(n.classList.contains(i))return void n.classList.remove(i);n.classList.add(i)}}var eE=function(t){null==eS||eS.style.setProperty("--font-size-multiplier",t.toString()),ex(t),ek(t)};function eO(){var t=""===this.dataset.fontSizeIncrease?1:-1,e=Number(getComputedStyle(eS).getPropertyValue("--font-size-multiplier")||1),n=ew.findIndex(function(t){return t===e});1===t&&n>=ew.length-1||-1===t&&n<=0||eE(ew[n+t])}var eA=function(){var t=eT();t&&(ex(t),null==eS||eS.style.setProperty("--font-size-multiplier",t.toString())),document.addEventListener("click",function(t){var e,n=t.target;n.className.includes("font-size-multiplier")||(null==(e=n.parentElement)?void 0:e.className.includes("font-size-multiplier"))||document.querySelectorAll(".font-size-multiplier--active").forEach(function(t){t.classList.remove("font-size-multiplier--active")})}),document.querySelectorAll(".font-size-multiplier__toggle").forEach(function(t){var e;t.addEventListener("click",eC),null==(e=t.parentElement)||e.querySelectorAll(".font-size-multiplier__button").forEach(function(t){return t.addEventListener("click",eO)})})},eP=/^(?=.*[0-9])(?=.*[a-zæøå]).*$/i,eL=function(t,e,n){t.password?(e.classList.add("zephr-password-valid"),e.classList.remove("zephr-password-invalid"),n.value.length>0&&(e.value===n.value?(n.classList.add("zephr-password-valid"),n.classList.remove("zephr-password-invalid")):(n.classList.add("zephr-password-invalid"),n.classList.remove("zephr-password-valid")))):(e.classList.add("zephr-password-invalid"),e.classList.remove("zephr-password-valid"))},ez=function(t){new MutationObserver(function(){var t={password:document.querySelector("#zephr-registration-form-password"),repeat:document.querySelector("#zephr-registration-form-confirm-password"),submit:document.querySelector(".zephr-registration-form-button")},e=t.password,n=t.repeat,i=t.submit;if(e&&n&&i){var r={password:!1,repeat:!1},o=function(){(eL(r,e,n),r.password&&r.repeat&&e.value===n.value)?i.removeAttribute("disabled"):i.setAttribute("disabled","disabled")},s=function(t,e){r[t]=e,o()};
1[e,n].forEach(function(t,e){var n=0===e?"password":"repeat";t.addEventListener("input",function(){s(n,t.value.length>=8&&eP.test(t.value))})})}}).observe(t,{attributes:!1,childList:!0,subtree:!0})};let eD=function(){window.addEventListener("kodus.initZephrRegistrationForm",function(){ez(document.querySelector(".zephr-registration-form"))})},ej=function(){return null!==document.querySelector(".article-layout")},eM=function(){return null===document.getElementById("zephr-article-end")&&ej()};function eN(t,e,n,i,r,o,s){try{var a=t[o](s),l=a.value}catch(t){n(t);return}a.done?e(l):Promise.resolve(l).then(i,r)}let eG=function(){var t;return(t=function(){var t,e;return function(t,e){var n,i,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),a=Object.defineProperty;return a(s,"next",{value:l(0)}),a(s,"throw",{value:l(1)}),a(s,"return",{value:l(2)}),"function"==typeof Symbol&&a(s,Symbol.iterator,{value:function(){return this}}),s;function l(a){return function(l){var u=[a,l];if(n)throw TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(o=0)),o;)try{if(n=1,i&&(r=2&u[0]?i.return:u[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,u[1])).done)return r;switch(i=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,i=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=e.call(t,o)}catch(t){u=[6,t],i=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(n){return(t=document.querySelector("[data-is-zephr-disabled-url]"))&&(e=t.dataset.isZephrDisabledUrl)?[2,fetch(e).then(function(t){return t.json()}).then(function(t){return t.isDisabled}).catch(function(){return!1})]:[2,!0]})},function(){var e=this,n=arguments;return new Promise(function(i,r){var o=t.apply(e,n);function s(t){eN(o,i,r,s,a,"next",t)}function a(t){eN(o,i,r,s,a,"throw",t)}s(void 0)})})()};var eB="jfm.zephrFailedLoading",eF="jfm.zephrDisabled",eH="data-zephr-hide-parts";let eU=function(){var t=document.querySelector("[".concat(eH,"]"));t&&t.removeAttribute(eH)},e$=function(){document.querySelectorAll(".article__parts").forEach(function(t){t.classList.add("article__parts--paywalled")})},eW=function(){document.querySelectorAll("[data-speechkit-project-id]").forEach(function(t){t.style.setProperty("display","none")})},eq=function(t){t.onclick=null,t.addEventListener("click",function(t){return t.preventDefault(),t.stopPropagation(),null},!0)};var eR=["quote","html","geographical-map-part"],eX=function(t){var e=t.querySelector("[data-gallery]");e&&(eq(e),e.querySelector("[data-gallery-counter]").remove(),e.querySelector("picture").style.cursor="initial")},eZ=function(t,e){e.forEach(function(e){var n=t.querySelector(".".concat(e));n&&n.remove()})};let eY=function(){var t=document.querySelector("[data-article-part-primary]");t&&(eX(t),eZ(t,eR))};var eV="kodus.layout.app";let eK=function(){if(Object.keys(window.parent.pugpigBridgeService||{}).length>0)return!0;var t,e=new URLSearchParams(window.location.search).get("from_app"),n=localStorage.getItem(eV);if("false"===e)return localStorage.removeItem(eV),!1;var i=["true","on","1","yes"].includes(null!=(t=null!=e?e:n)?t:"");return null!==e&&i&&localStorage.setItem(eV,"true"),i};var eJ="[data-zephr-ai-tracking-script]";let eQ=function(){return null!==document.querySelector(eJ)},e0=function(){window.ZITFunctions=window.ZITFunctions||{brandId:"",retrieveOrigSession:function(){return""},retrieveUserStatus:function(){return""},sendData:function(t){console.warn("AI Paywall Mock: function sendData called with data:",t)},isAiTrackingEnabled:!1}},e1=function(){return new Promise(function(t,e){window.Zephr?t():(document.addEventListener("zephr.browserDecisionsFinished",function(){return t()}),document.addEventListener(eB,function(){return e()}))})},e2=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3;return new Promise(function(e){var n,i=0,r=function(){return clearInterval(n)};n=setInterval(function(){i+=1,window.ZITFunctions?(r(),e()):i>=t&&(r(),e1().then(function(){return e()}))},1e3)})};function e3(t,e,n,i,r,o,s){try{var a=t[o](s),l=a.value}catch(t){n(t);return}a.done?e(l):Promise.resolve(l).then(i,r)}let e5=function(){var t;return(t=function(){return function(t,e){var n,i,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]}
1,trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),a=Object.defineProperty;return a(s,"next",{value:l(0)}),a(s,"throw",{value:l(1)}),a(s,"return",{value:l(2)}),"function"==typeof Symbol&&a(s,Symbol.iterator,{value:function(){return this}}),s;function l(a){return function(l){var u=[a,l];if(n)throw TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(o=0)),o;)try{if(n=1,i&&(r=2&u[0]?i.return:u[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,u[1])).done)return r;switch(i=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,i=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=e.call(t,o)}catch(t){u=[6,t],i=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(t){switch(t.label){case 0:if(!eQ())return[3,2];return[4,e2()];case 1:return t.sent(),window.ZITFunctions&&"function"==typeof window.ZITFunctions.sendData||(console.warn("AI Paywall: ZITFunctions is not defined after waiting.","Replacing ZITFunctions with fallback implementation."),e0()),[2];case 2:return e0(),[2]}})},function(){var e=this,n=arguments;return new Promise(function(i,r){var o=t.apply(e,n);function s(t){e3(o,i,r,s,a,"next",t)}function a(t){e3(o,i,r,s,a,"throw",t)}s(void 0)})})()};function e4(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.forEach(function(e){var i;i=n[e],e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i})}return t}function e6(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var e8=(e6(S={0:"Fallback"},21,"Page Load"),e6(S,44,"Paywall Impression"),e6(S,28,"Paywall Click"),S);function e7(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.forEach(function(e){var i;i=n[e],e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i})}return t}function e9(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):(function(t){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e.push.apply(e,n)}return e}
1)(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}var nt=function(t){var e,n,i,r=document.querySelector(eJ),o=null!=(e=null==r?void 0:r.dataset)?e:{articleId:"",section:"",articleType:""},s=o.articleId,a=o.section,l=o.articleType,u=null!=(n=null==(i=window.utag_data)?void 0:i.zephr_tracking_id)?n:"",c={brandId:window.ZITFunctions.brandId,action:0,wId_2:[""],dtId:window.ZITFunctions.retrieveOrigSession(),refer:document.referrer,requestUrl:window.location.href,content:{increaseRA:null!==s&&""!==s,articleId:s,section:a,articleType:l},user:{userState:window.ZITFunctions.retrieveUserStatus(),userId:u},product:{},context:{userAgent:window.navigator.userAgent}},d=e7({},c.content,t.content);return e9(e7({},c,t),{content:d})};let ne=function(t,e,n){return e5().then(function(){var i=nt(e9(e7({},e),{action:t}));eQ()&&(window.zephrEventTracking=window.zephrEventTracking||[],window.zephrEventTracking.push({actionText:e8[i.action],action:i.action,data:e7({},i)}),window.ZITFunctions.sendData(i)),function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(void 0===window.utag)return console.warn("Tealium: utag is not defined");var n=e4({tealium_event:t},e);window.tealiumEvents=window.tealiumEvents||[],window.tealiumEvents.push(e4({},n)),window.utag.link(e4({},n))}("zephr_tracking_event",{zephr_tracking_event:e7({},i,n)})})},nn=function(){if(!window.Zephr||!window.Zephr.outcomes)return"";var t,e=Object.values(window.Zephr.outcomes).find(function(t){var e;return null==(e=t.outcomeLabel)?void 0:e.toLowerCase().includes("paywall")});return null!=(t=null==e?void 0:e.outcomeLabel)?t:""};function ni(t,e,n,i,r,o,s){try{var a=t[o](s),l=a.value}catch(t){n(t);return}a.done?e(l):Promise.resolve(l).then(i,r)}let nr=function(t,e){var n;return(n=function(){return function(t,e){var n,i,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),a=Object.defineProperty;return a(s,"next",{value:l(0)}),a(s,"throw",{value:l(1)}),a(s,"return",{value:l(2)}),"function"==typeof Symbol&&a(s,Symbol.iterator,{value:function(){return this}}),s;function l(a){return function(l){var u=[a,l];if(n)throw TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(o=0)),o;)try{if(n=1,i&&(r=2&u[0]?i.return:u[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,u[1])).done)return r;switch(i=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,i=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=e.call(t,o)}catch(t){u=[6,t],i=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(n){return[2,new Promise(function(n){var i=function(){var r,o=document.querySelector(t),s=null==o||null==(r=o.shadowRoot)?void 0:r.querySelector(e);s?n(s):requestAnimationFrame(i)};i()})]})},function(){var t=this,e=arguments;return new Promise(function(i,r){var o=n.apply(t,e);function s(t){ni(o,i,r,s,a,"next",t)}function a(t){ni(o,i,r,s,a,"throw",t)}s(void 0)})})()};function no(t,e,n,i,r,o,s){try{var a=t[o](s),l=a.value}catch(t){n(t);return}a.done?e(l):Promise.resolve(l).then(i,r)}function ns(t){return function(){var e=this,n=arguments;return new Promise(function(i,r){var o=t.apply(e,n);function s(t){no(o,i,r,s,a,"next",t)}function a(t){no(o,i,r,s,a,"throw",t)}s(void 0)})}}function na(t,e){var n,i,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),a=Object.defineProperty;return a(s,"next",{value:l(0)}),a(s,"throw",{value:l(1)}),a(s,"return",{value:l(2)}),"function"==typeof Symbol&&a(s,Symbol.iterator,{value:function(){return this}}),s;function l(a){return function(l){var u=[a,l];if(n)throw TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(o=0)),o;)try{if(n=1,i&&(r=2&u[0]?i.return:u[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,u[1])).done)return r;switch(i=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,i=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=e.call(t,o)}catch(t){u=[6,t],i=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var nl="jfm-zephr-block",nu="article > div > div > a.c-btn, [data-paywall-button]",nc="a.c-btn, [data-paywall-button]",nd={getWebComponent:function(){return document.querySelector(nl)},getElement:function(t){return ns(function(){return na(this,function(e){return[2,nr(nl,t)]})})()},getAttribute:function(t){var e;return(null==(e=nd.getWebComponent())?void 0:e.getAttribute(t))||void 0},getAttributes:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=nd.getWebComponent();return e.map(function(t){return(null==i?void 0:i.getAttribute(t))||void 0})},getActiveProduct:function(t,e){return ns(function(){var n,i;return na(this,function(r){switch(r.label){case 0:return[4,nd.getElement(t)];case 1:return n=r.sent(),[4,nd.getElement(e)];case 2:return[2,{offerKey:new URL(null==(i=r.sent())?void 0:i.href).pathname.split("/").filter(
1Boolean).at(-1),offerName:(null==n?void 0:n.innerText)||""}]}})})()},TwoProducts:{getCtaButton:function(){return ns(function(){return na(this,function(t){return[2,nd.getElement(nu)]})})()},getActiveProduct:function(){return ns(function(){return na(this,function(t){return[2,nd.getActiveProduct("article .products .product.active .title, [data-paywall-title]",nu)]})})()}},OneProduct:{getCtaButton:function(){return ns(function(){return na(this,function(t){return[2,nd.getElement(nc)]})})()},getActiveProduct:function(){return ns(function(){return na(this,function(t){return[2,nd.getActiveProduct(".b-text h1, [data-paywall-title]",nc)]})})()}}};function nh(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function nf(t,e,n,i,r,o,s){try{var a=t[o](s),l=a.value}catch(t){n(t);return}a.done?e(l):Promise.resolve(l).then(i,r)}function ng(t){return function(){var e=this,n=arguments;return new Promise(function(i,r){var o=t.apply(e,n);function s(t){nf(o,i,r,s,a,"next",t)}function a(t){nf(o,i,r,s,a,"throw",t)}s(void 0)})}}function np(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n,i,r=null==t?null:"u">typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var o=[],s=!0,a=!1;try{for(r=r.call(t);!(s=(n=r.next()).done)&&(o.push(n.value),!e||o.length!==e);s=!0);}catch(t){a=!0,i=t}finally{try{s||null==r.return||r.return()}finally{if(a)throw i}}return o}}(t,e)||function(t,e){if(t){if("string"==typeof t)return nh(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nh(t,e)}}(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nm(t,e){var n,i,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),a=Object.defineProperty;return a(s,"next",{value:l(0)}),a(s,"throw",{value:l(1)}),a(s,"return",{value:l(2)}),"function"==typeof Symbol&&a(s,Symbol.iterator,{value:function(){return this}}),s;function l(a){return function(l){var u=[a,l];if(n)throw TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(o=0)),o;)try{if(n=1,i&&(r=2&u[0]?i.return:u[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,u[1])).done)return r;switch(i=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,i=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=e.call(t,o)}catch(t){u=[6,t],i=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var nv=function(){var t=np(nd.getAttributes("cid","tracking-id","ai-paywall"),3);ne(21,{content:{increaseRA:!1}},{paywall_component_id:t[0],paywall_tracking_id:t[1],paywall_ai_paywall:t[2],paywall_component_name:nn()})},ny="10.73.0",nb=globalThis;function n_(t){var e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||ny,e[ny]=e[ny]||{}}function nw(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:nb,i=n.__SENTRY__=n.__SENTRY__||{},r=i[ny]=i[ny]||{};return r[t]||(r[t]=e())}var nS="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function nI(t){if(void 0!==I)return I?I(t):t();var e=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__");return e in nb&&"function"==typeof nb[e]?(I=nb[e])(t):(I=null,t())}function nx(){return nI(function(){return Math.random()})}function nk(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:nb.crypto||nb.msCrypto;try{if(null==t?void 0:t.randomUUID)return nI(function(){return t.randomUUID()}).replace(/-/g,"")}catch(t){}return x||(x="10000000100040008000100000000000"),x.replace(/[018]/g,function(t){return(t^(15&16*nx())>>t/4).toString(16)})}function nT(){return nI(function(){return Date.now()})/1e3}function nC(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function nE(t){return function(t){if(Array.isArray(t))return nC(t)}(t)||function(t){if("u">typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t){if(t){if("string"==typeof t)return nC(t,void 0);var e=Object.prototype.toString.call(t).slice(8,-1);if("Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e)return Array.from(e);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return nC(t,void 0)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var nO={};function nA(t){for(var e=arguments.length,n=Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];nS&&function(){return nS?nw("loggerSettings",function(){return{enabled:!1}}):{enabled:!1}}().enabled&&function(t){if(!("console"in nb))return t();var e=nb.console,n={},i=Object.keys(nO);
1i.forEach(function(t){var i=nO[t];n[t]=e[t],e[t]=i});try{return t()}finally{i.forEach(function(t){e[t]=n[t]})}}(function(){var e;(e=nb.console)[t].apply(e,["".concat("Sentry Logger ","[").concat(t,"]:")].concat(nE(n)))})}var nP=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];nA.apply(void 0,["log"].concat(nE(e)))},nL=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];nA.apply(void 0,["warn"].concat(nE(e)))},nz=Object.prototype.toString,nD="_sentrySpan";function nj(t,e){if(e){var n=function(t){try{var e=nb.WeakRef;if("function"==typeof e)return new e(t)}catch(t){}return t}(e);try{Object.defineProperty(t,nD,{value:n,writable:!0,configurable:!0})}catch(e){nS&&nP('Failed to add non-enumerable property "'.concat(String(nD),'" to object'),t)}}else delete t[nD]}function nM(t){var e=t[nD];if(e){if((void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"&&"deref"in e&&"function"==typeof e.deref)try{return e.deref()}catch(t){return}return e}}function nN(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function nG(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function nB(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.forEach(function(e){nG(t,e,n[e])})}return t}function nF(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):(function(t){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e.push.apply(e,n)}return e}
1)(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}function nH(t){return function(t){if(Array.isArray(t))return nN(t)}(t)||function(t){if("u">typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t){if(t){if("string"==typeof t)return nN(t,void 0);var e=Object.prototype.toString.call(t).slice(8,-1);if("Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e)return Array.from(e);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return nN(t,void 0)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var nU=function(){var t;function e(){if(!(this instanceof e))throw TypeError("Cannot call a class as a function");this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:nk(),sampleRand:nx()}}return t=[{key:"clone",value:function(){var t=new e;return t._breadcrumbs=nH(this._breadcrumbs),t._tags=nB({},this._tags),t._attributes=nB({},this._attributes),t._extra=nB({},this._extra),t._contexts=nB({},this._contexts),this._contexts.flags&&(t._contexts.flags={values:nH(this._contexts.flags.values)}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=nH(this._eventProcessors),t._attachments=nH(this._attachments),t._sdkProcessingMetadata=nB({},this._sdkProcessingMetadata),t._propagationContext=nB({},this._propagationContext),t._client=this._client,t._lastEventId=this._lastEventId,t._conversationId=this._conversationId,nj(t,nM(this)),t}},{key:"setClient",value:function(t){this._client=t}},{key:"setLastEventId",value:function(t){this._lastEventId=t}},{key:"getClient",value:function(){return this._client}},{key:"lastEventId",value:function(){return this._lastEventId}},{key:"addScopeListener",value:function(t){this._scopeListeners.push(t)}},{key:"addEventProcessor",value:function(t){return this._eventProcessors.push(t),this}},{key:"setUser",value:function(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),t.did||e.did||(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||(null!=k?k:k=function(){var t=nb.performance;if(!(null==t?void 0:t.now)||!t.timeOrigin)return nT;var e=t.timeOrigin;return function(){return(e+nI(function(){return t.now()}))/1e3}}())(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:nk()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did="".concat(e.did)),"number"==typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof e.duration)t.duration=e.duration;else{var n=t.timestamp-t.started;t.duration=n>=0?n:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),"number"==typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}(this._session,{user:t}),this._notifyScopeListeners(),this}},{key:"getUser",value:function(){return this._user}},{key:"setConversationId",value:function(t){return this._conversationId=t||void 0,this._notifyScopeListeners(),this}},{key:"setTags",value:function(t){return this._tags=nB({},this._tags,t),this._notifyScopeListeners(),this}},{key:"setTag",value:function(t,e){return this.setTags(nG({},t,e))}},{key:"setAttributes",value:function(t){return this._attributes=nB({},this._attributes,t),this._notifyScopeListeners(),this}},{key:"setAttribute",value:function(t,e){return this.setAttributes(nG({},t,e))}},{key:"removeAttribute",value:function(t){return t in this._attributes&&(delete this._attributes[t],this._notifyScopeListeners()),this}},{key:"setExtras",value:function(t){return this._extra=nB({},this._extra,t),this._notifyScopeListeners(),this}},{key:"setExtra",value:function(t,e){return this._extra=nF(nB({}
1,this._extra),nG({},t,e)),this._notifyScopeListeners(),this}},{key:"setFingerprint",value:function(t){return this._fingerprint=t,this._notifyScopeListeners(),this}},{key:"setLevel",value:function(t){return this._level=t,this._notifyScopeListeners(),this}},{key:"setTransactionName",value:function(t){return this._transactionName=t,this._notifyScopeListeners(),this}},{key:"setContext",value:function(t,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,this._notifyScopeListeners(),this}},{key:"setSession",value:function(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}},{key:"getSession",value:function(){return this._session}},{key:"update",value:function(t){if(!t)return this;var n="function"==typeof t?t(this):t,i=((null!=e&&"u">typeof Symbol&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](n):n instanceof e)?n.getScopeData():nz.call(n)==="[object ".concat("Object","]")?t:void 0)||{},r=i.tags,o=i.attributes,s=i.extra,a=i.user,l=i.contexts,u=i.level,c=i.fingerprint,d=void 0===c?[]:c,h=i.propagationContext,f=i.conversationId;return this._tags=nB({},this._tags,r),this._attributes=nB({},this._attributes,o),this._extra=nB({},this._extra,s),this._contexts=nB({},this._contexts,l),a&&Object.keys(a).length&&(this._user=a),u&&(this._level=u),d.length&&(this._fingerprint=d),h&&(this._propagationContext=h),f&&(this._conversationId=f),this}},{key:"clear",value:function(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,nj(this,void 0),this._attachments=[],this.setPropagationContext({traceId:nk(),sampleRand:nx()}),this._notifyScopeListeners(),this}},{key:"addBreadcrumb",value:function(t,e){var n,i="number"==typeof e?e:100;if(i<=0)return this;var r=nF(nB({timestamp:nT()},t),{message:t.message?function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"string"!=typeof t||0===e||t.length<=e?t:"".concat(t.slice(0,e),"...")}(t.message,2048):t.message});return this._breadcrumbs.push(r),this._breadcrumbs.length>i&&(this._breadcrumbs=this._breadcrumbs.slice(-i),null==(n=this._client)||n.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}},{key:"getLastBreadcrumb",value:function(){return this._breadcrumbs[this._breadcrumbs.length-1]}},{key:"clearBreadcrumbs",value:function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}},{key:"addAttachment",value:function(t){return this._attachments.push(t),this}},{key:"clearAttachments",value:function(){return this._attachments=[],this}},{key:"getScopeData",value:function(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:nM(this),conversationId:this._conversationId}}},{key:"setSDKProcessingMetadata",value:function(t){return this._sdkProcessingMetadata=function t(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;if(!n||(void 0===n?"undefined":n&&"u">typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)!="object"||i<=0)return n;if(e&&0===Object.keys(n).length)return e;var r=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.forEach(function(e){var i;i=n[e],e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i})}return t}({},e);for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=t(r[o],n[o],i-1));return r}(this._sdkProcessingMetadata,t,2),this}},{key:"setPropagationContext",value:function(t){return this._propagationContext=t,this}},{key:"getPropagationContext",value:function(){return this._propagationContext}},{key:"captureException",value:function(t,e){var n=(null==e?void 0:e.event_id)||nk();if(!this._client)return nS&&nL("No client configured on scope - will not capture exception!"),n;var i=Error("Sentry syntheticException");return this._client.captureException(t,nF(nB({originalException:t,syntheticException:i},e),{event_id:n}),this),n}},{key:"captureMessage",value:function(t,e,n){var i,r=(null==n?void 0:n.event_id)||nk();if(!this._client)return nS&&nL("No client configured on scope - will not capture message!"),r;var o=null!=(i=null==n?void 0:n.syntheticException)?i:Error(t);return this._client.captureMessage(t,e,nF(nB({originalException:t,syntheticException:o},n),{event_id:r}),this),r}}
1,{key:"captureEvent",value:function(t,e){var n=t.event_id||(null==e?void 0:e.event_id)||nk();return this._client?this._client.captureEvent(t,nF(nB({},e),{event_id:n}),this):nS&&nL("No client configured on scope - will not capture event!"),n}},{key:"_notifyScopeListeners",value:function(){var t=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(function(e){e(t)}),this._notifyingListeners=!1)}}],function(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}(e.prototype,t),e}(),n$=function(t){var e;return(null!=(e=Promise)&&"u">typeof Symbol&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e)&&!t[nW]},nW=Symbol("chained PromiseLike"),nq=function(t,e,n){var i=t.then(function(t){return e(t),t},function(t){throw n(t),t});return n$(i)&&n$(t)?i:nR(t,i)},nR=function(t,e){if(!e)return t;var n,i=!1;for(var r in t)!function(n){if(!(n in e)){i=!0;var r=t[n];"function"==typeof r?Object.defineProperty(e,n,{value:function(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];return r.apply(t,n)},enumerable:!0,configurable:!0,writable:!0}):e[n]=r}}(r);return i&&Object.assign(e,(nW in(n={})?Object.defineProperty(n,nW,{value:!0,enumerable:!0,configurable:!0,writable:!0}):n[nW]=!0,n)),e},nX=function(){var t;function e(t,n){var i,r;if(!(this instanceof e))throw TypeError("Cannot call a class as a function");i=t||new nU,r=n||new nU,this._stack=[{scope:i}],this._isolationScope=r}return t=[{key:"withScope",value:function(t){var e,n,i=this,r=this._pushScope();try{n=t(r)}catch(t){throw this._popScope(),t}return(null==(e=n)?void 0:e.then)&&"function"==typeof e.then?nq(n,function(){return i._popScope()},function(){return i._popScope()}):(this._popScope(),n)}},{key:"getClient",value:function(){return this.getStackTop().client}},{key:"getScope",value:function(){return this.getStackTop().scope}},{key:"getIsolationScope",value:function(){return this._isolationScope}},{key:"getStackTop",value:function(){return this._stack[this._stack.length-1]}},{key:"_pushScope",value:function(){var t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}},{key:"_popScope",value:function(){return!(this._stack.length<=1)&&!!this._stack.pop()}}],function(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}(e.prototype,t),e}();function nZ(){var t=(n_(nb),nb),e=n_(t);return e.stack=e.stack||new nX(nw("defaultCurrentScope",function(){return new nU}),nw("defaultIsolationScope",function(){return new nU}))}function nY(t){return nZ().withScope(t)}function nV(t,e){var n=nZ();return n.withScope(function(){return n.getStackTop().scope=t,e(t)})}function nK(t){return nZ().withScope(function(){return t(nZ().getIsolationScope())})}function nJ(t){var e=n_(t);return e.acs?e.acs:{withIsolationScope:nK,withScope:nY,withSetScope:nV,withSetIsolationScope:function(t,e){return nK(e)},getCurrentScope:function(){return nZ().getScope()},getIsolationScope:function(){return nZ().getIsolationScope()}}}function nQ(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function n0(){return nJ((n_(nb),nb)).getCurrentScope()}function n1(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=nJ((n_(nb),nb));if(2===e.length){var r=function(t){if(Array.isArray(t))return t}(e)||function(t){var e,n,i=null==t?null:"u">typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var r=[],o=!0,s=!1;try{for(i=i.call(t);!(o=(e=i.next()).done)&&(r.push(e.value),2!==r.length);o=!0);}catch(t){s=!0,n=t}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return r}}(e)||function(t){if(t){if("string"==typeof t)return nQ(t,2);var e=Object.prototype.toString.call(t).slice(8,-1);if("Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e)return Array.from(e);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return nQ(t,2)}}
1(e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=r[0],s=r[1];return o?i.withSetScope(o,s):i.withScope(s)}return i.withScope(e[0])}var n2=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function n3(t,e){return n0().captureException(t,function(t){if(t)return function(t){return(null!=nU&&"u">typeof Symbol&&nU[Symbol.hasInstance]?!!nU[Symbol.hasInstance](t):t instanceof nU)||"function"==typeof t}(t)||Object.keys(t).some(function(t){return n2.includes(t)})?{captureContext:t}:t}(e))}var n5="jfm_aid_test";let n4={setCookie:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:365,i=new Date;i.setTime(i.getTime()+24*n*36e5),document.cookie="".concat(t,"=").concat(e,";expires=").concat(i.toUTCString(),";path=/;SameSite=Lax")},getCookie:function(t){var e=document.cookie.split(";").map(function(t){return t.trim()}).find(function(e){return e.startsWith("".concat(t,"="))});return e?e.substring(t.length+1):null},deleteCookie:function(t){document.cookie="".concat(t,"=;expires=Thu, 01 Jan 1970 00:00:00 UTC;path=/;")},isAidEnabled:function(){return!this.isTestModeEnabled()||"true"===this.getCookie(n5)},setAidTestMode:function(t){try{t?this.setCookie(n5,"true"):this.deleteCookie(n5)}catch(t){console.warn("Failed to set aID test mode in cookie",t)}},isTestModeEnabled:function(){return null!==document.querySelector('[data-aid="test"]')},initializeAidTestMode:function(){if(this.isTestModeEnabled()){var t=new URLSearchParams(window.location.search).get("aid");"true"===t?this.setAidTestMode(!0):"false"===t&&this.setAidTestMode(!1)}}};function n6(t,e,n,i,r,o,s){try{var a=t[o](s),l=a.value}catch(t){n(t);return}a.done?e(l):Promise.resolve(l).then(i,r)}function n8(t){return function(){var e=this,n=arguments;return new Promise(function(i,r){var o=t.apply(e,n);function s(t){n6(o,i,r,s,a,"next",t)}function a(t){n6(o,i,r,s,a,"throw",t)}s(void 0)})}}function n7(t,e){return null!=e&&"u">typeof Symbol&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}function n9(t,e){var n,i,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),a=Object.defineProperty;return a(s,"next",{value:l(0)}),a(s,"throw",{value:l(1)}),a(s,"return",{value:l(2)}),"function"==typeof Symbol&&a(s,Symbol.iterator,{value:function(){return this}}),s;function l(a){return function(l){var u=[a,l];if(n)throw TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(o=0)),o;)try{if(n=1,i&&(r=2&u[0]?i.return:u[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,u[1])).done)return r;switch(i=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,i=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=e.call(t,o)}catch(t){u=[6,t],i=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var it=function(){try{return eK()}catch(t){return!1}},ie={uuid:"",name:null,access:[],loggedIn:!1,trackingKey:""},ii=null,ir=function(t,e){return{uuid:(null==e?void 0:e.uuid)||null,name:(null==e?void 0:e.name)||null,access:(null==e?void 0:e.access)||[],loggedIn:"boolean"==typeof(null==t?void 0:t.isLoggedIn)&&(null==t?void 0:t.isLoggedIn),trackingKey:(null==e?void 0:e.trackingKey)||null}},io={getModule:function(){return n8(function(){var t;return n9(this,function(e){switch(e.label){case 0:if(ii)return[2,ii];ii=new Promise(function(t,e){var i=setTimeout(function(){var t=Error("aID module load timed out");n1(function(e){e.setLevel("error"),e.setTag("feature","aid_module_load"),e.setExtra("url",window.location.href),n3(t)}),e(t)},6e3);
1n.e(532).then(n.bind(n,3631)).then(t).catch(e).finally(function(){return clearTimeout(i)})}),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,ii];case 2:return[2,e.sent()];case 3:throw t=e.sent(),ii=null,t;case 4:return[2]}})})()},initBfcacheReloadHandler:function(){window.addEventListener("pageshow",function(t){t.persisted&&window.location.reload()})},isEnabled:function(){return!!document.querySelector("[data-aid]")&&n4.isAidEnabled()},getLoggedInAidUser:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5;return n8(function(){var e,n,i,r,o,s;return n9(this,function(a){switch(a.label){case 0:if(it())return[2,ie];a.label=1;case 1:return a.trys.push([1,3,,4]),[4,io.getModule()];case 2:return e=a.sent(),[3,4];case 3:return a.sent(),[2,ie];case 4:n=e.UserDataRequest,i=e.FetchTimeoutError,r={},a.label=5;case 5:return a.trys.push([5,7,,8]),[4,new n().withAttributes(["uuid","name","access","trackingKey"]).fetch({timeout:1e3*t})];case 6:return r=a.sent(),[3,8];case 7:if(n7(o=a.sent(),Error)&&o.message.includes("aID is not responding"))console.warn("aID: Not setup for this domain");else if(n7(o,i))return console.warn("aID: User data request timed out. Partial data fetched"),[2,ir(null==(s=o.partialData)?void 0:s.state,null==s?void 0:s.attributes)];return[2,ie];case 8:return[2,ir(r.state,null==r?void 0:r.attributes)]}})})()},logout:function(){return n8(function(){var t;return n9(this,function(e){switch(e.label){case 0:if(it())return[2];return[4,io.getModule()];case 1:t=e.sent().logout,e.label=2;case 2:return e.trys.push([2,4,,5]),[4,t()];case 3:return e.sent(),[3,5];case 4:return console.warn("aID: Logging out failed",e.sent()),[3,5];case 5:return[2]}})})()},goToLoginPage:function(t,e){return n8(function(){return n9(this,function(n){switch(n.label){case 0:if(it())return[2];return[4,io.getModule()];case 1:return(0,n.sent().goToLoginPage)({requestedUrl:t,context:e}),[2]}})})()},contextLabels:{selfService:"jfm-self-service",plusFriSalesPage:"jfm-plus-fri",plusFriUpgradePage:"jfm-plus-fri-upgrade-page",plusFriPurchaseFlow:"jfm-plus-fri-purchase-flow"},goToProfilePage:function(){var t=new URL("https://www.aid.no/aid/profil");t.searchParams.append("requested_url",window.location.href),window.open(t.toString())}},is={entries:[],log:function(t){var e,n,i=t;(void 0===i?"undefined":(e=i)&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"&&(i=JSON.stringify(i,void 0,2)),is.entries.push(i);var r=document.createElement("li");r.classList.add("js-logger__item"),r.innerHTML=i,null==(n=document.querySelector("[data-log-list] ul"))||n.append(r)}},ia="blaize_jwt";let il={parseJwt:function(t){var e,n=t.split(".");if(3!==n.length)throw Error("[AuthToken:parseJwt] Invalid JWT format: expected 3 parts (header.payload.signature)");var i=n[1];try{var r=atob(i);e=JSON.parse(r)}catch(t){var o,s=(null!=(o=Error)&&"u">typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](t):t instanceof o)?t.message:String(t);throw Error("[AuthToken:parseJwt] Failed to decode JWT payload: ".concat(s))}if(!e.sub||"string"!=typeof e.sub)throw Error('[AuthToken:parseJwt] Missing or invalid "sub" claim');if("string"!=typeof e.user_session)throw Error('[AuthToken:parseJwt] Missing or invalid "user_session" claim');if(!Array.isArray(e.entitlements))throw Error('[AuthToken:parseJwt] Missing or invalid "entitlements" claim (must be an array)');if("aid"!==e.user_type&&"zephr"!==e.user_type)throw Error('[AuthToken:parseJwt] Invalid "user_type" claim (must be "aid" or "zephr")');return{sub:e.sub,userSession:e.user_session,entitlements:e.entitlements,userType:e.user_type}},getJwtPayload:function(){var t=document.cookie.split("; ").find(function(t){return t.startsWith("".concat(ia,"="))});if(!t)return is.log("[AuthToken] No ".concat(ia," cookie found")),null;var e=t.split("=")[1];if(!e)return is.log("[AuthToken] No ".concat(ia," cookie value found")),null;try{return this.parseJwt(e)}catch(t){console.error("Failed to parse JWT:",t)}return null},isLoggedIn:function(){return null!==this.getJwtPayload()},getUserType:function(){var t,e=this.getJwtPayload(),n=null!=(t=null==e?void 0:e.userType)?t:null;return n||is.log("[AuthToken] Unable to determine user type: no JWT payload found"),n}};function iu(t,e,n,i,r,o,s){try{var a=t[o](s),l=a.value}catch(t){n(t);return}a.done?e(l):Promise.resolve(l).then(i,r)}function ic(t){return function(){var e=this,n=arguments;
1return new Promise(function(i,r){var o=t.apply(e,n);function s(t){iu(o,i,r,s,a,"next",t)}function a(t){iu(o,i,r,s,a,"throw",t)}s(void 0)})}}function id(t,e){var n,i,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),a=Object.defineProperty;return a(s,"next",{value:l(0)}),a(s,"throw",{value:l(1)}),a(s,"return",{value:l(2)}),"function"==typeof Symbol&&a(s,Symbol.iterator,{value:function(){return this}}),s;function l(a){return function(l){var u=[a,l];if(n)throw TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(o=0)),o;)try{if(n=1,i&&(r=2&u[0]?i.return:u[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,u[1])).done)return r;switch(i=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,i=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=e.call(t,o)}catch(t){u=[6,t],i=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var ih="LOGIN_STATE",ig=function(t){sessionStorage.setItem(ih,JSON.stringify(t))},ip=function(){var t=sessionStorage.getItem(ih);return t?JSON.parse(t):null},im=function(t){document.dispatchEvent(new CustomEvent("LOGIN_FINISHED",{detail:t})),window.loginFinished=!0;var e=t.loggedIn,n=t.aidId,i=t.epaperAccess,r=il.isLoggedIn();if(e||n||r){var o=document.documentElement.classList;o.add("is-logged-in"),i&&o.add("has-epaper-access")}},iv=function(t,e,n,i,r){var o=sessionStorage.getItem(ih);if(o&&(!0===window.loginFinished||!0===r)){var s=JSON.parse(o);t({id:s.id||"",loggedIn:s.loggedIn||!1,hashedEmail:s.hashedEmail||"",epaperAccess:s.epaperAccess||!1,aidTrackingKey:s.aidTrackingKey||"",aidId:s.aidId||"",isUserMigrated:s.isUserMigrated||!1})}else Date.now()-n>=2e4?(n1(function(t){t.setLevel("warning"),t.setTag("feature","get_logged_in_user"),t.setExtra("timeoutMs",2e4),t.setExtra("hasLoginState",!!o),t.setExtra("loginFinished",!0===window.loginFinished),t.setExtra("url",window.location.href),n3(Error("getLoggedInUser: Timeout".concat(i?": ".concat(i):"")))}),e(Error("getLoggedInUser: Timeout"))):setTimeout(function(){return iv(t,e,n,i,r)},100)};let iy=function(){var t;return(null==(t=window.jfmShadowUser)?void 0:t.aidZephrBridgePromise)||(window.jfmShadowUser.aidZephrBridgePromise=new Promise(function(t,e){var n,i=window.jfmShadowUser;(null==i?void 0:i.status)==="error"?e(Error(null!=(n=i.error)?n:"Unknown error")):(null==i?void 0:i.status)!=="complete"&&i?(window.addEventListener("jfmShadowUser:complete",function(){return t()},{once:!0}),window.addEventListener("jfmShadowUser:error",function(t){return e(Error(t.detail))},{once:!0})):t()}).then(function(){return ic(function(){var t,e,n,i;return id(this,function(r){switch(r.label){case 0:return t=36e5,[4,io.getLoggedInAidUser()];case 1:return n=(e=r.sent()).trackingKey||"",i=e.uuid||"",[2,new Promise(function(e){fetch("".concat(window.isUserLoggedInEndpoint,"?aidId=").concat(i),{credentials:"same-origin",headers:new Headers({Accept:"application/json"})}).then(function(t){return t.json()}).then(function(r){return ic(function(){var o,s,a,l,u;return id(this,function(c){return o=r.id||"",s=r.is_logged_in||!1,a=r.hashed_email||"",l=r.epaper_access||!1,u=r.is_user_migrated||!1,ig({id:o,loggedIn:s,expires:new Date().getTime()+t,hashedEmail:a,epaperAccess:l,aidTrackingKey:n,aidId:i,isUserMigrated:u}),e({id:o,loggedIn:s,hashedEmail:a,epaperAccess:l,aidTrackingKey:n,aidId:i,isUserMigrated:u}),[2]})})()}).catch(function(t){n1(function(e){e.setLevel("warning"),e.setTag("feature","set_login_state"),e.setExtra("error",t),e.setExtra("url",window.location.href),n0().captureMessage("setLoginState failed",void 0,{captureContext:void 0})});var n=ip();e({id:(null==n?void 0:n.id)||"",loggedIn:(null==n?void 0:n.loggedIn)||!1,hashedEmail:(null==n?void 0:n.hashedEmail)||"",epaperAccess:(null==n?void 0:n.epaperAccess)||!1,aidTrackingKey:(null==n?void 0:n.aidTrackingKey)||"",aidId:(null==n?void 0:n.aidId)||"",isUserMigrated:(null==n?void 0:n.isUserMigrated)||!1})})})]}})})().then(function(t){im(t)})})),window.jfmShadowUser.aidZephrBridgePromise};function ib(t,e,n,i,r,o,s){try{var a=t[o](s),l=a.value}catch(t){n(t);return}a.done?e(l):Promise.resolve(l).then(i,r)}function i_(t){return function(){var e=this,n=arguments;
1return new Promise(function(i,r){var o=t.apply(e,n);function s(t){ib(o,i,r,s,a,"next",t)}function a(t){ib(o,i,r,s,a,"throw",t)}s(void 0)})}}function iw(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.forEach(function(e){var i;i=n[e],e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i})}return t}function iS(t,e){var n,i,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),a=Object.defineProperty;return a(s,"next",{value:l(0)}),a(s,"throw",{value:l(1)}),a(s,"return",{value:l(2)}),"function"==typeof Symbol&&a(s,Symbol.iterator,{value:function(){return this}}),s;function l(a){return function(l){var u=[a,l];if(n)throw TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(o=0)),o;)try{if(n=1,i&&(r=2&u[0]?i.return:u[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,u[1])).done)return r;switch(i=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,i=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=e.call(t,o)}catch(t){u=[6,t],i=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var iI=function(t){var e,n;return null!=(e=null==(n=document.querySelector("[".concat(t,"]")))?void 0:n.getAttribute(t))?e:""};let ix=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i_(function(){var i,r,o,s,a,l,u;return iS(this,function(c){var d,h;switch(c.label){case 0:return r=(null==t?void 0:t.cdnApi)||iI("data-zephr-cdn-url"),o=JSON.parse(iI("data-zephr-custom-data")||"{}"),s=""!==r&&"{}"!==JSON.stringify(o),[4,io.getLoggedInAidUser()];case 1:if(a=c.sent().access.join(",")||"",!s)return document.dispatchEvent(new Event(eF)),eU(),[2];return[4,ed(4)];case 2:return c.sent(),[4,iy()];case 3:return c.sent(),ng(function(){return nm(this,function(t){switch(t.label){case 0:if(eQ()||console.warn("Paywall event tracking is disabled"),window.zephrPaywallTrackingInitialized)return[2];return window.zephrPaywallTrackingInitialized=!0,[4,new Promise(function(t){window.redirectAttempted?t():document.addEventListener("sso_redirect_attempted",function(){t()})})];case 1:return t.sent(),[4,ed()];case 2:return t.sent(),[4,e1()];case 3:return t.sent(),nv(),ng(function(){var t,e,n,i,r,o;return nm(this,function(s){switch(s.label){case 0:if(!nd.getWebComponent())return[2];return[4,Promise.race([nd.TwoProducts.getActiveProduct(),nd.OneProduct.getActiveProduct()])];case 1:return t=s.sent(),n=(e=np(nd.getAttributes("cid","tracking-id","ai-paywall"),3))[0],i=e[1],r=e[2],o=nn(),ne(44,{wId_2:(null==t?void 0:t.offerKey)?[null==t?void 0:t.offerKey]:[""],product:t},{paywall_component_id:n,paywall_tracking_id:i,paywall_ai_paywall:r,paywall_component_name:o}),[2]}})})(),ng(function(){var t;return nm(this,function(e){switch(e.label){case 0:if(!nd.getWebComponent())return[2];return[4,Promise.race([nd.TwoProducts.getCtaButton(),nd.OneProduct.getCtaButton()])];case 1:return(t=e.sent()).addEventListener("click",function(e){return ng(function(){var n,i,r,o,s,a;return nm(this,function(l){switch(l.label){case 0:return e.preventDefault(),[4,Promise.race([nd.TwoProducts.getActiveProduct(),nd.OneProduct.getActiveProduct()])];case 1:return n=l.sent(),r=(i=np(nd.getAttributes("cid","tracking-id","ai-paywall"),3))[0],o=i[1],s=i[2],a=nn(),[4,ne(28,{wId_2:(null==n?void 0:n.offerKey)?[null==n?void 0:n.offerKey]:[""],product:n},{paywall_component_id:r,paywall_tracking_id:o,paywall_ai_paywall:s,paywall_component_name:a})];case 2:return l.sent(),window.location.href=t.href,[2]}})})()}),[2]}})})(),[2]}})})(),[4,new Promise(function(t,e){iv(t,e,Date.now(),"runZephrHtmlFeatureRules",void 0)})];case 4:return l=c.sent().isUserMigrated,u=iw((d=iw({},o),h=h={referer:document.referrer,consent:(null==(i=window.utag)?void 0:i.data["cp.step_consent"])||"",url_path:window.location.pathname,hostName:window.location.hostname,userAgent:window.navigator.userAgent,app:"".concat(eK()),isUserMigrated:l,aid:a},Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(h)):(function(t){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e.push.apply(e,n)}return e}
1)(Object(h)).forEach(function(t){Object.defineProperty(d,t,Object.getOwnPropertyDescriptor(h,t))}),d),e),n.e(382).then(n.bind(n,1821)).then(function(t){(0,t.run)({customData:u,cdnApi:r}).then(function(){eU(),eM()&&(eW(),eY(),e$())}).catch(function(t){return i_(function(){var e;return iS(this,function(n){switch(n.label){case 0:if(!(e=null!==document.querySelector("[data-requires-payment]")&&ej()))return[3,2];return[4,eG()];case 1:e=!n.sent(),n.label=2;case 2:throw e?(eW(),eY(),e$()):eU(),document.dispatchEvent(new Event(eB)),Error("Zephr failed: ".concat(t))}})})()})}),[2]}})})()};var ik=function(){var t=this;this.select(),n.e(602).then(n.bind(n,9217)).then(function(e){return(0,e.Clipboard.copy)(t.value)})},iT="data-article-type",iC=function(t){var e;return!!(null==(e=t.parentElement)?void 0:e.querySelector('[id^="vs_"]'))},iE=function(t){var e=t.innerHTML.trim().split("\n");return e[3]="obj: ".concat(e[3].trim().slice(5,-3).concat(', "Ad": [] }'),","),e.join("\n")};function iO(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function iA(t){return function(t){if(Array.isArray(t))return iO(t)}(t)||function(t){if("u">typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t){if(t){if("string"==typeof t)return iO(t,void 0);var e=Object.prototype.toString.call(t).slice(8,-1);if("Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e)return Array.from(e);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return iO(t,void 0)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var iP=function(t,e,n){var i=document.createElement("script");if(i.type="text/javascript",t.id&&(i.id=t.id),t.title&&(i.title=t.title),t.className&&(i.className=t.className),t.async&&(i.async=t.async),t.defer&&(i.defer=t.defer),t.type&&(i.type=t.type),t.onload&&"function"==typeof t.onload&&i.addEventListener("load",t.onload),t.innerHTML&&""!==t.innerHTML){var r=n&&iC(t)?document.createTextNode(iE(t)):document.createTextNode(t.innerHTML);i.appendChild(r)}if(t.src){i.src=t.src;var o,s,a,l=(null==(o=t.parentNode)?void 0:o.nodeName)==="DIV",u=null==(s=t.parentElement)?void 0:s.classList.contains("html");l&&!u?null==t||null==(a=t.parentNode)||a.appendChild(i):e.appendChild(i)}else document.body.appendChild(i);t.remove()};function iL(t){var e=document.querySelector("[data-article-content]"),n=document.querySelector("[data-article-part-primary]"),i=[];null!==e&&i.push.apply(i,iA(e.querySelectorAll(".article__html.html, .article__adblock"))),null!==n&&i.push.apply(i,iA(n.querySelectorAll(".article__html.html, .article__adblock"))),i.forEac
1h(function(e){iA(e.querySelectorAll("script")).forEach(function(n){return iP(n,e,t)})})}var iz=function(t){var e=t.querySelector("[data-factbox-content]");if(null!==e&&e.scrollHeight>e.clientHeight+1){t.classList.add("is-closed");var n=document.createElement("a");n.classList.add("textbox__readmore");var i=document.createElement("span");i.classList.add("icon"),i.classList.add("icon-arrow-down"),n.addEventListener("click",function(n){n.preventDefault();var r=!t.classList.contains("is-open"),o=e.offsetHeight,s=r?e.scrollHeight||4e3:130;e.animate([{maxHeight:"".concat(o,"px")},{maxHeight:"".concat(s,"px")}],{duration:1e3,iterations:1}).finished.then(function(){(i.classList.toggle("icon-arrow-down"),i.classList.toggle("icon-arrow-up"),t.classList.toggle("is-closed"),t.classList.toggle("is-open"),r)?e.style.maxHeight="none":e.style.removeProperty("max-height")})}),n.appendChild(i),t.appendChild(n)}},iD=function(t){for(var e,n=t.querySelector("[data-article-end]");t.firstElementChild!==n;)null==(e=t.firstElementChild)||e.remove()},ij=function(t,e){var n=document.createElement("div"),i=t.querySelector("[data-article-end]");for(n.innerHTML=e;n.firstChild;)t.insertBefore(n.firstChild,i)},iM=function(){return(iM=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},iN="lgUpdateSlides",iG="lgPosterClick",iB="lgBeforeNextSlide",iF="lgBeforePrevSlide",iH={mode:"lg-slide",easing:"ease",speed:400,licenseKey:"0000-0000-000-0000",height:"100%",width:"100%",addClass:"",startClass:"lg-start-zoom",backdropDuration:300,container:"",startAnimationDuration:400,zoomFromOrigin:!0,hideBarsDelay:0,showBarsAfter:1e4,slideDelay:0,supportLegacyBrowser:!0,allowMediaOverlap:!1,videoMaxSize:"1280-720",loadYouTubePoster:!0,defaultCaptionHeight:0,ariaLabelledby:"",ariaDescribedby:"",resetScrollPosition:!0,hideScrollbar:!1,closable:!0,swipeToClose:!0,closeOnTap:!0,showCloseIcon:!0,showMaximizeIcon:!1,loop:!0,escKey:!0,keyPress:!0,trapFocus:!0,controls:!0,slideEndAnimation:!0,hideControlOnEnd:!1,mousewheel:!1,getCaptionFromTitleOrAlt:!0,appendSubHtmlTo:".lg-sub-html",subHtmlSelectorRelative:!1,preload:2,numberOfSlideItemsInDom:10,selector:"",selectWithin:"",nextHtml:"",prevHtml:"",index:0,iframeWidth:"100%",iframeHeight:"100%",iframeMaxWidth:"100%",iframeMaxHeight:"100%",download:!0,counter:!0,appendCounterTo:".lg-toolbar",swipeThreshold:50,enableSwipe:!0,enableDrag:!0,dynamic:!1,dynamicEl:[],extraProps:[],exThumbImage:"",isMobile:void 0,mobileSettings:{controls:!1,showCloseIcon:!1,download:!1},plugins:[],strings:{closeGallery:"Close gallery",toggleMaximize:"Toggle maximize",previousSlide:"Previous slide",nextSlide:"Next slide",download:"Download",playVideo:"Play video",mediaLoadingFailed:"Oops... Failed to load content..."}},iU=function(){function t(t){return this.cssVenderPrefixes=["TransitionDuration","TransitionTimingFunction","Transform","Transition"],this.selector=this._getSelector(t),this.firstElement=this._getFirstEl(),this}return t.generateUUID=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)})},t.prototype._getSelector=function(t,e){return(void 0===e&&(e=document),"string"!=typeof t)?t:(e=e||document,"#"===t.substring(0,1))?e.querySelector(t):e.querySelectorAll(t)},t.prototype._each=function(t){return this.selector&&(void 0!==this.selector.length?[].forEach.call(this.selector,t):t(this.selector,0)),this},t.prototype._setCssVendorPrefix=function(t,e,n){var i=e.replace(/-([a-z])/gi,function(t,e){return e.toUpperCase()});-1!==this.cssVenderPrefixes.indexOf(i)?(t.style[i.charAt(0).toLowerCase()+i.slice(1)]=n,t.style["webkit"+i]=n,t.style["moz"+i]=n,t.style["ms"+i]=n,t.style["o"+i]=n):t.style[i]=n},t.prototype._getFirstEl=function(){return this.selector&&void 0!==this.selector.length?this.selector[0]:this.selector},t.prototype.isEventMatched=function(t,e){var n=e.split(".");return t.split(".").filter(function(t){return t}).every(function(t){return -1!==n.indexOf(t)})},t.prototype.attr=function(t,e){return void 0===e?this.firstElement?this.firstElement.getAttribute(t):"":(this._each(function(n){n.setAttribute(t,e)}),this)},t.prototype.find=function(t){return i$(this._getSelector(t,this.selector))},t.prototype.first=function(){return this.selector&&void 0!==this.selector.length?
1i$(this.selector[0]):i$(this.selector)},t.prototype.eq=function(t){return i$(this.selector[t])},t.prototype.parent=function(){return i$(this.selector.parentElement)},t.prototype.get=function(){return this._getFirstEl()},t.prototype.removeAttr=function(t){var e=t.split(" ");return this._each(function(t){e.forEach(function(e){return t.removeAttribute(e)})}),this},t.prototype.wrap=function(t){if(!this.firstElement)return this;var e=document.createElement("div");return e.className=t,this.firstElement.parentNode.insertBefore(e,this.firstElement),this.firstElement.parentNode.removeChild(this.firstElement),e.appendChild(this.firstElement),this},t.prototype.addClass=function(t){return void 0===t&&(t=""),this._each(function(e){t.split(" ").forEach(function(t){t&&e.classList.add(t)})}),this},t.prototype.removeClass=function(t){return this._each(function(e){t.split(" ").forEach(function(t){t&&e.classList.remove(t)})}),this},t.prototype.hasClass=function(t){return!!this.firstElement&&this.firstElement.classList.contains(t)},t.prototype.hasAttribute=function(t){return!!this.firstElement&&this.firstElement.hasAttribute(t)},t.prototype.toggleClass=function(t){return this.firstElement&&(this.hasClass(t)?this.removeClass(t):this.addClass(t)),this},t.prototype.css=function(t,e){var n=this;return this._each(function(i){n._setCssVendorPrefix(i,t,e)}),this},t.prototype.on=function(e,n){var i=this;return this.selector&&e.split(" ").forEach(function(e){Array.isArray(t.eventListeners[e])||(t.eventListeners[e]=[]),t.eventListeners[e].push(n),i.selector.addEventListener(e.split(".")[0],n)}),this},t.prototype.once=function(t,e){var n=this;return this.on(t,function(){n.off(t),e(t)}),this},t.prototype.off=function(e){var n=this;return this.selector&&Object.keys(t.eventListeners).forEach(function(i){n.isEventMatched(e,i)&&(t.eventListeners[i].forEac
1h(function(t){n.selector.removeEventListener(i.split(".")[0],t)}),t.eventListeners[i]=[])}),this},t.prototype.trigger=function(t,e){if(!this.firstElement)return this;var n=new CustomEvent(t.split(".")[0],{detail:e||null});return this.firstElement.dispatchEvent(n),this},t.prototype.load=function(t){var e=this;return fetch(t).then(function(t){return t.text()}).then(function(t){e.selector.innerHTML=t}),this},t.prototype.html=function(t){return void 0===t?this.firstElement?this.firstElement.innerHTML:"":(this._each(function(e){e.innerHTML=t}),this)},t.prototype.append=function(t){return this._each(function(e){"string"==typeof t?e.insertAdjacentHTML("beforeend",t):e.appendChild(t)}),this},t.prototype.prepend=function(t){return this._each(function(e){if("string"==typeof t)e.insertAdjacentHTML("afterbegin",t);else{var n;(null!=(n=HTMLElement)&&"u">typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](t):t instanceof n)&&e.insertBefore(t.cloneNode(!0),e.firstChild)}}),this},t.prototype.remove=function(){return this._each(function(t){t.parentNode.removeChild(t)}),this},t.prototype.empty=function(){return this._each(function(t){t.innerHTML=""}),this},t.prototype.scrollTop=function(t){return void 0!==t?(document.body.scrollTop=t,document.documentElement.scrollTop=t,this):window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},t.prototype.scrollLeft=function(t){return void 0!==t?(document.body.scrollLeft=t,document.documentElement.scrollLeft=t,this):window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0},t.prototype.offset=function(){if(!this.firstElement)return{left:0,top:0};var t=this.firstElement.getBoundingClientRect(),e=i$("body").style().marginLeft;return{left:t.left-parseFloat(e)+this.scrollLeft(),top:t.top+this.scrollTop()}},t.prototype.style=function(){return this.firstElement?this.firstElement.currentStyle||window.getComputedStyle(this.firstElement):{}},t.prototype.width=function(){var t=this.style();return this.firstElement.clientWidth-parseFloat(t.paddingLeft)-parseFloat(t.paddingRight)},t.prototype.height=function(){var t=this.style();return this.firstElement.clientHeight-parseFloat(t.paddingTop)-parseFloat(t.paddingBottom)},t.eventListeners={},t}();function i$(t){return"function"==typeof window.CustomEvent||(window.CustomEvent=function(t,e){e=e||{bubbles:!1,cancelable:!1,detail:null};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n}),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),new iU(t)}var iW=["src","sources","subHtml","subHtmlUrl","html","video","poster","slideName","responsive","srcset","sizes","iframe","downloadUrl","download","width","facebookShareUrl","tweetText","iframeTitle","twitterShareUrl","pinterestShareUrl","pinterestText","fbHtml","disqusIdentifier","disqusUrl"],iq=function(t,e,n){fetch(t).then(function(t){return t.text()}).then(function(t){"append"===n?e.append('<div class="lg-sub-html">'+t+"</div>"):e.html(t)})},iR=function(t,e,n,i){void 0===n&&(n=0);var r=i$(t).attr("data-lg-size")||i;if(r){var o=r.split(",");if(o[1])for(var s=window.innerWidth,a=0;a<o.length;a++){var l=o[a];if(parseInt(l.split("-")[2],10)>s){r=l;break}a===o.length-1&&(r=l)}var u=r.split("-"),c=parseInt(u[0],10),d=parseInt(u[1],10),h=Math.min(Math.min(e.width(),c)/c,Math.min(e.height()-n,d)/d);return{width:c*h,height:d*h}}},iX=function(t,e,n,i,r){if(r){var o=i$(t).find("img").first();if(o.get()){var s=e.get().getBoundingClientRect(),a=s.width,l=e.height()-(n+i),u=o.width(),c=o.height(),d=o.style(),h=(a-u)/2-o.offset().left+(parseFloat(d.paddingLeft)||0)+(parseFloat(d.borderLeft)||0)+i$(window).scrollLeft()+s.left,f=(l-c)/2-o.offset().top+(parseFloat(d.paddingTop)||0)+(parseFloat(d.borderTop)||0)+i$(window).scrollTop()+n;return"translate3d("+(h*=-1)+"px, "+(f*=-1)+"px, 0) scale3d("+u/r.width+", "+c/r.height+", 1)"}}},iZ=function(t,e,n,i,r,o){var s="<img "+n+" "+(i?'srcset="'+i+'"':"")+" "+(r?'sizes="'+r+'"':"")+' class="lg-object lg-image" data-index="'+t+'" src="'+e+'" />',a="";return o&&(a=("string"==typeof o?JSON.parse(o):o).map(function(t){var e="";return Object.keys(t).forEach(function(n){e+=" "+n+'="'+t[n]+'"'}),"<source "+e+"></source>"})),""+a+s},iY=function(t){for(var e=[],n=[],i="",r=0;r<t.length;r++){var o=t[r].split(" ");""===o[0]&&o.splice(0,1),n.push(o[0]),e.push(o[1])}for(var s=window.innerWidth,a=0;a<e.length;a++)if(parseInt(e[a],10)>s){i=n[a];break}return i},iV=function(t,e,n,i,r){var o="";o=r&&r.youtube?"lg-has-youtube":r&&r.vimeo?"lg-has-vimeo":"lg-has-html5";var s=e;return"string"!=typeof e&&(s=e.outerHTML),'<div class="lg-video-cont '+o+'" style="'+n+'">\n <div class="lg-video-play-button">
1\n <svg\n viewBox="0 0 20 20"\n preserveAspectRatio="xMidYMid"\n focusable="false"\n aria-labelledby="'+i+'"\n role="img"\n class="lg-video-play-icon"\n >\n <title>'+i+'</title>\n <polygon class="lg-video-play-icon-inner" points="1,0 20,10 1,20"></polygon>\n </svg>\n <svg class="lg-video-play-icon-bg" viewBox="0 0 50 50" focusable="false">\n <circle cx="50%" cy="50%" r="20"></circle></svg>\n <svg class="lg-video-play-icon-circle" viewBox="0 0 50 50" focusable="false">\n <circle cx="50%" cy="50%" r="20"></circle>\n </svg>\n </div>\n '+s+'\n <img class="lg-object lg-video-poster" src="'+t+'" />\n </div>'},iK=function(t){var e=t.querySelectorAll('a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])');return[].filter.call(e,function(t){var e=window.getComputedStyle(t);return"none"!==e.display&&"hidden"!==e.visibility})},iJ=function(t,e,n,i){var r=[],o=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;for(var i=Array(t),r=0,e=0;e<n;e++)for(var o=arguments[e],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i}(iW,e);return[].forEach.call(t,function(t){for(var e={},s=0;s<t.attributes.length;s++){var a=t.attributes[s];if(a.specified){var l,u="href"===(l=a.name)?"src":l=(l=(l=l.replace("data-","")).charAt(0).toLowerCase()+l.slice(1)).replace(/-([a-z])/g,function(t){return t[1].toUpperCase()}),c="";o.indexOf(u)>-1&&(c=u),c&&(e[c]=a.value)}}var d=i$(t),h=d.find("img").first().attr("alt"),f=d.attr("title");e.thumb=i?d.attr(i):d.find("img").first().attr("src"),n&&!e.subHtml&&(e.subHtml=f||h||""),e.alt=h||f||"",r.push(e)}),r},iQ=function(t,e,n){if(!t)if(e)return{html5:!0};else return void console.error("lightGallery :- data-src is not provided on slide item "+(n+1)+". Please make sure the selector property is properly configured. More info - https://www.lightgalleryjs.com/demos/html-markup/");var i=t.match(/\/\/(?:www\.)?youtu(?:\.be|be\.com|be-nocookie\.com)\/(?:watch\?v=|embed\/)?([a-z0-9\-\_\%]+)([\&|?][\S]*)*/i),r=t.match(/\/\/(?:www\.)?(?:player\.)?vimeo.com\/(?:video\/)?([0-9a-z\-_]+)(.*)?/i),o=t.match(/https?:\/\/(.+)?(wistia\.com|wi\.st)\/(medias|embed)\/([0-9a-z\-_]+)(.*)/);return i?{youtube:i}:r?{vimeo:r}:o?{wistia:o}:void 0},i0=0,i1=function(){function t(t,e){if(this.lgOpened=!1,this.index=0,this.plugins=[],this.lGalleryOn=!1,this.lgBusy=!1,this.currentItemsInDom=[],this.prevScrollTop=0,this.bodyPaddingRight=0,this.isDummyImageRemoved=!1,this.dragOrSwipeEnabled=!1,this.mediaContainerPosition={top:0,bottom:0},!t)return this;if(i0++,this.lgId=i0,this.el=t,this.LGel=i$(t),this.generateSettings(e),this.buildModules(),this.settings.dynamic&&void 0!==this.settings.dynamicEl&&!Array.isArray(this.settings.dynamicEl))throw"When using dynamic mode, you must also define dynamicEl as an Array.";return this.galleryItems=this.getItems(),this.normalizeSettings(),this.init(),this.validateLicense(),this}return t.prototype.generateSettings=function(t){if(this.settings=iM(iM({},iH),t),this.settings.isMobile&&"function"==typeof this.settings.isMobile?this.settings.isMobile():/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)){var e=iM(iM({},this.settings.mobileSettings),this.settings.mobileSettings);this.settings=iM(iM({},this.settings),e)}},t.prototype.normalizeSettings=function(){if(this.settings.slideEndAnimation&&(this.settings.hideControlOnEnd=!1),this.settings.closable||(this.settings.swipeToClose=!1),this.zoomFromOrigin=this.settings.zoomFromOrigin,this.settings.dynamic&&(this.zoomFromOrigin=!1),this.settings.container){var t=this.settings.container;if("function"==typeof t)this.settings.container=t();else if("string"==typeof t){var e=document.querySelector(t);this.settings.container=null!=e?e:document.body}}else this.settings.container=document.body;this.settings.preload=Math.min(this.settings.preload,this.galleryItems.length)},t.prototype.init=function(){var t=this;this.addSlideVideoInfo(this.galleryItems),this.buildStructure(),this.LGel.trigger("lgInit",{instance:this}),this.settings.keyPress&&this.keyPress(),setTimeout(function(){t.enableDrag(),t.enableSwipe(),t.triggerPosterClick()},50),this.arrow(),this.settings.mousewheel&&this.mousewheel(),this.settings.dynamic||this.openGalleryOnItemClick()},t.prototype.openGalleryOnItemClick=function(){for(var t=this,e=function(e){var i=n.items[e],r=i$(i),o=iU.generateUUID();r.attr("data-lg-id",o).on("click.lgcustom-item-"+o,function(n){n.preventDefault();var r=t.settings.index||e;t.openGallery(r,i)})},n=this,i=0;i<this.items.length;i++)e(i)},t.prototype.buildModules=function(){var t=this;this.settings.plugins.forEach(function(e){t.plugins.push(new e(t,i$))})},t.prototype.validateLicense=function(){this.settings.licenseKey?"0000-0000-000-0000"===this.settings.licenseKey&&console.warn("lightGallery: "+this.settings.licenseKey+" license key is not val
1id for production use"):console.error("Please provide a valid license key")},t.prototype.getSlideItem=function(t){return i$(this.getSlideItemId(t))},t.prototype.getSlideItemId=function(t){return"#lg-item-"+this.lgId+"-"+t},t.prototype.getIdName=function(t){return t+"-"+this.lgId},t.prototype.getElementById=function(t){return i$("#"+this.getIdName(t))},t.prototype.manageSingleSlideClassName=function(){this.galleryItems.length<2?this.outer.addClass("lg-single-item"):this.outer.removeClass("lg-single-item")},t.prototype.buildStructure=function(){var t=this;if(!(this.$container&&this.$container.get())){var e="",n="";this.settings.controls&&(e='<button type="button" id="'+this.getIdName("lg-prev")+'" aria-label="'+this.settings.strings.previousSlide+'" class="lg-prev lg-icon"> '+this.settings.prevHtml+' </button>\n <button type="button" id="'+this.getIdName("lg-next")+'" aria-label="'+this.settings.strings.nextSlide+'" class="lg-next lg-icon"> '+this.settings.nextHtml+" </button>"),".lg-item"!==this.settings.appendSubHtmlTo&&(n='<div class="lg-sub-html" role="status" aria-live="polite"></div>');var i="";this.settings.allowMediaOverlap&&(i+="lg-media-overlap ");var r=this.settings.ariaLabelledby?'aria-labelledby="'+this.settings.ariaLabelledby+'"':"",o=this.settings.ariaDescribedby?'aria-describedby="'+this.settings.ariaDescribedby+'"':"",s="lg-container "+this.settings.addClass+" "+(document.body!==this.settings.container?"lg-inline":""),a=this.settings.closable&&this.settings.showCloseIcon?'<button type="button" aria-label="'+this.settings.strings.closeGallery+'" id="'+this.getIdName("lg-close")+'" class="lg-close lg-icon"></button>':"",l=this.settings.showMaximizeIcon?'<button type="button" aria-label="'+this.settings.strings.toggleMaximize+'" id="'+this.getIdName("lg-maximize")+'" class="lg-maximize lg-icon"></button>':"",u='\n <div class="'+s+'" id="'+this.getIdName("lg-container")+'" tabindex="-1" aria-modal="true" '+r+" "+o+' role="dialog"\n >\n <div id="'+this.getIdName("lg-backdrop")+'" class="lg-backdrop"></div>\n\n <div id="'+this.getIdName("lg-outer")+'" class="lg-outer lg-use-css3 lg-css3 lg-hide-items '+i+' ">\n\n <div id="'+this.getIdName("lg-content")+'" class="lg-content">\n <div id="'+this.getIdName("lg-inner")+'" class="lg-inner">\n </div>\n '+e+'\n </div>\n <div id="'+this.getIdName("lg-toolbar")+'" class="lg-toolbar lg-group">\n '+l+"\n "+a+"\n </div>\n "+(".lg-outer"===this.settings.appendSubHtmlTo?n:"")+'\n <div id="'+this.getIdName("lg-components")+'" class="lg-components">\n '+(".lg-sub-html"===this.settings.appendSubHtmlTo?n:"")+"\n </div>\n </div>\n </div>\n ";i$(this.settings.container).append(u),document.body!==this.settings.container&&i$(this.settings.container).css("position","relative"),this.outer=this.getElementById("lg-outer"),this.$lgComponents=this.getElementById("lg-components"),this.$backdrop=this.getElementById("lg-backdrop"),this.$container=this.getElementById("lg-container"),this.$inner=this.getElementById("lg-inner"),this.$content=this.getElementById("lg-content"),this.$toolbar=this.getElementById("lg-toolbar"),this.$backdrop.css("transition-duration",this.settings.backdropDuration+"ms");var c=this.settings.mode+" ";this.manageSingleSlideClassName(),this.settings.enableDrag&&(c+="lg-grab "),this.outer.addClass(c),this.$inner.css("transition-timing-function",this.settings.easing),this.$inner.css("transition-duration",this.settings.speed+"ms"),this.settings.download&&this.$toolbar.append('<a id="'+this.getIdName("lg-download")+'" target="_blank" rel="noopener" aria-label="'+this.settings.strings.download+'" download class="lg-download lg-icon"></a>'),this.counter(),i$(window).on("resize.lg.global"+this.lgId+" orientationchange.lg.global"+this.lgId,function(){t.refreshOnResize()}),this.hideBars(),this.manageCloseGallery(),this.toggleMaximize(),this.initModules()}},t.prototype.refreshOnResize=function(){if(this.lgOpened){var t=this.galleryItems[this.index].__slideVideoInfo;this.mediaContainerPosition=this.getMediaContainerPosition();var e=this.mediaContainerPosition,n=e.top,i=e.bottom;if(this.currentImageSize=iR(this.items[this.index],this.outer,n+i,t&&this.settings.videoMaxSize),t&&this.resizeVideoSlide(this.index,this.currentImageSize),this.zoomFromOrigin&&!this.isDummyImageRemoved){var r=this.getDummyImgStyles(this.currentImageSize);this.outer.find(".lg-current .lg-dummy-img").first().attr("style",r)}this.LGel.trigger("lgContainerResize")}},t.prototype.resizeVideoSlide=function(t,e){var n=this.getVideoContStyle(e);
1this.getSlideItem(t).find(".lg-video-cont").attr("style",n)},t.prototype.updateSlides=function(t,e){if(this.index>t.length-1&&(this.index=t.length-1),1===t.length&&(this.index=0),!t.length)return void this.closeGallery();var n=this.galleryItems[e].src;this.galleryItems=t,this.updateControls(),this.$inner.empty(),this.currentItemsInDom=[];var i=0;this.galleryItems.some(function(t,e){return t.src===n&&(i=e,!0)}),this.currentItemsInDom=this.organizeSlideItems(i,-1),this.loadContent(i,!0),this.getSlideItem(i).addClass("lg-current"),this.index=i,this.updateCurrentCounter(i),this.LGel.trigger(iN)},t.prototype.getItems=function(){if(this.items=[],this.settings.dynamic)return this.settings.dynamicEl||[];if("this"===this.settings.selector)this.items.push(this.el);else if(this.settings.selector)if("string"==typeof this.settings.selector)if(this.settings.selectWithin){var t=i$(this.settings.selectWithin);this.items=t.find(this.settings.selector).get()}else this.items=this.el.querySelectorAll(this.settings.selector);else this.items=this.settings.selector;else this.items=this.el.children;return iJ(this.items,this.settings.extraProps,this.settings.getCaptionFromTitleOrAlt,this.settings.exThumbImage)},t.prototype.shouldHideScrollbar=function(){return this.settings.hideScrollbar&&document.body===this.settings.container},t.prototype.hideScrollbar=function(){if(this.shouldHideScrollbar()){this.bodyPaddingRight=parseFloat(i$("body").style().paddingRight);var t=document.documentElement.getBoundingClientRect(),e=window.innerWidth-t.width;i$(document.body).css("padding-right",e+this.bodyPaddingRight+"px"),i$(document.body).addClass("lg-overlay-open")}},t.prototype.resetScrollBar=function(){this.shouldHideScrollbar()&&(i$(document.body).css("padding-right",this.bodyPaddingRight+"px"),i$(document.body).removeClass("lg-overlay-open"))},t.prototype.openGallery=function(t,e){var n=this;if(void 0===t&&(t=this.settings.index),!this.lgOpened){this.lgOpened=!0,this.outer.removeClass("lg-hide-items"),this.hideScrollbar(),this.$container.addClass("lg-show");var i=this.getItemsToBeInsertedToDom(t,t);this.currentItemsInDom=i;var r="";i.forEach(function(t){r+='<div id="'+t+'" class="lg-item"></div>'}),this.$inner.append(r),this.addHtml(t);var o="";this.mediaContainerPosition=this.getMediaContainerPosition();var s=this.mediaContainerPosition,a=s.top,l=s.bottom;this.settings.allowMediaOverlap||this.setMediaContainerPosition(a,l);var u=this.galleryItems[t].__slideVideoInfo;this.zoomFromOrigin&&e&&(this.currentImageSize=iR(e,this.outer,a+l,u&&this.settings.videoMaxSize),o=iX(e,this.outer,a,l,this.currentImageSize)),this.zoomFromOrigin&&o||(this.outer.addClass(this.settings.startClass),this.getSlideItem(t).removeClass("lg-complete")),setTimeout(function(){n.outer.addClass("lg-components-open")},this.settings.zoomFromOrigin?100:this.settings.backdropDuration),this.index=t,this.LGel.trigger("lgBeforeOpen"),this.getSlideItem(t).addClass("lg-current"),this.lGalleryOn=!1,this.prevScrollTop=i$(window).scrollTop(),setTimeout(function(){if(n.zoomFromOrigin&&o){var e=n.getSlideItem(t);e.css("transform",o),setTimeout(function(){e.addClass("lg-start-progress lg-start-end-progress").css("transition-duration",n.settings.startAnimationDuration+"ms"),n.outer.addClass("lg-zoom-from-image")}),setTimeout(function(){e.css("transform","translate3d(0, 0, 0)")},100)}setTimeout(function(){n.$backdrop.addClass("in"),n.$container.addClass("lg-show-in")},10),setTimeout(function(){n.settings.trapFocus&&document.body===n.settings.container&&n.trapFocus()},n.settings.backdropDuration+50),n.zoomFromOrigin&&o||setTimeout(function(){n.outer.addClass("lg-visible")},n.settings.backdropDuration),n.slide(t,!1,!1,!1),n.LGel.trigger("lgAfterOpen")}),document.body===this.settings.container&&i$("html").addClass("lg-on")}},t.prototype.getMediaContainerPosition=function(){if(this.settings.allowMediaOverlap)return{top:0,bottom:0};var t=this.$toolbar.get().clientHeight||0,e=this.outer.find(".lg-components .lg-sub-html").get(),n=this.settings.defaultCaptionHeight||e&&e.clientHeight||0,i=this.outer.find(".lg-thumb-outer").get();return{top:t,bottom:(i?i.clientHeight:0)+n}},t.prototype.setMediaContainerPosition=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.$content.css("top",t+"px").css("bottom",e+"px")},t.prototype.hideBars=function(){var t=this;setTimeout(function(){t.outer.removeClass("lg-hide-items"),t.settings.hideBarsDelay>
10&&(t.outer.on("mousemove.lg click.lg touchstart.lg",function(){t.outer.removeClass("lg-hide-items"),clearTimeout(t.hideBarTimeout),t.hideBarTimeout=setTimeout(function(){t.outer.addClass("lg-hide-items")},t.settings.hideBarsDelay)}),t.outer.trigger("mousemove.lg"))},this.settings.showBarsAfter)},t.prototype.initPictureFill=function(t){if(this.settings.supportLegacyBrowser)try{picturefill({elements:[t.get()]})}catch(t){console.warn("lightGallery :- If you want srcset or picture tag to be supported for older browser please include picturefil javascript library in your document.")}},t.prototype.counter=function(){if(this.settings.counter){var t='<div class="lg-counter" role="status" aria-live="polite">\n <span id="'+this.getIdName("lg-counter-current")+'" class="lg-counter-current">'+(this.index+1)+' </span> /\n <span id="'+this.getIdName("lg-counter-all")+'" class="lg-counter-all">'+this.galleryItems.length+" </span></div>";this.outer.find(this.settings.appendCounterTo).append(t)}},t.prototype.addHtml=function(t){if(this.galleryItems[t].subHtmlUrl?n=this.galleryItems[t].subHtmlUrl:e=this.galleryItems[t].subHtml,!n)if(e){var e,n,i=e.substring(0,1);if("."===i||"#"===i)try{e=this.settings.subHtmlSelectorRelative&&!this.settings.dynamic?i$(this.items).eq(t).find(e).first().html():i$(e).first().html()}catch(t){console.warn('Error processing subHtml selector "'+e+'"'),e=""}}else e="";if(".lg-item"!==this.settings.appendSubHtmlTo)n?iq(n,this.outer.find(".lg-sub-html"),"replace"):this.outer.find(".lg-sub-html").html(e);else{var r=i$(this.getSlideItemId(t));n?iq(n,r,"append"):r.append('<div class="lg-sub-html">'+e+"</div>")}null!=e&&(""===e?this.outer.find(this.settings.appendSubHtmlTo).addClass("lg-empty-html"):this.outer.find(this.settings.appendSubHtmlTo).removeClass("lg-empty-html")),this.LGel.trigger("lgAfterAppendSubHtml",{index:t})},t.prototype.preload=function(t){for(var e=1;e<=this.settings.preload&&!(e>=this.galleryItems.length-t);e++)this.loadContent(t+e,!1);for(var n=1;n<=this.settings.preload&&!(t-n<0);n++)this.loadContent(t-n,!1)},t.prototype.getDummyImgStyles=function(t){return t?"width:"+t.width+"px;\n margin-left: -"+t.width/2+"px;\n margin-top: -"+t.height/2+"px;\n height:"+t.height+"px":""},t.prototype.getVideoContStyle=function(t){return t?"width:"+t.width+"px;\n height:"+t.height+"px":""},t.prototype.getDummyImageContent=function(t,e,n){var i;if(this.settings.dynamic||(i=i$(this.items).eq(e)),i){var r=void 0;if(!(r=this.settings.exThumbImage?i.attr(this.settings.exThumbImage):i.find("img").first().attr("src")))return"";var o=this.getDummyImgStyles(this.currentImageSize),s=document.createElement("img");return s.alt=n||"",s.src=r,s.className="lg-dummy-img",s.style.cssText=o,t.addClass("lg-first-slide"),this.outer.addClass("lg-first-slide-loading"),s}return""},t.prototype.setImgMarkup=function(t,e,n){var i=this.galleryItems[n],r=i.alt,o=i.srcset,s=i.sizes,a=i.sources,l="",u=r?'alt="'+r+'"':"";l=this.isFirstSlideWithZoomAnimation()?this.getDummyImageContent(e,n,u):iZ(n,t,u,o,s,a);var c=document.createElement("picture");c.className="lg-img-wrap",i$(c).append(l),e.prepend(c)},t.prototype.onSlideObjectLoad=function(t,e,n,i){var r,o=t.find(".lg-object").first();(r=o.get())&&r.complete&&0!==r.naturalWidth||e?n():(o.on("load.lg error.lg",function(){n&&n()}),o.on("error.lg",function(){i&&i()}))},t.prototype.onLgObjectLoad=function(t,e,n,i,r,o){var s=this;this.onSlideObjectLoad(t,o,function(){s.triggerSlideItemLoad(t,e,n,i,r)},function(){t.addClass("lg-complete lg-complete_"),t.html('<span class="lg-error-msg">'+s.settings.strings.mediaLoadingFailed+"</span>")})},t.prototype.triggerSlideItemLoad=function(t,e,n,i,r){var o=this,s=this.galleryItems[e];setTimeout(function(){t.addClass("lg-complete lg-complete_"),o.LGel.trigger("lgSlideItemLoad",{index:e,delay:n||0,isFirstSlide:r})},r&&"video"===this.getSlideType(s)&&!s.poster?i:0)},t.prototype.isFirstSlideWithZoomAnimation=function(){return!!(!this.lGalleryOn&&this.zoomFromOrigin&&this.currentImageSize)},t.prototype.addSlideVideoInfo=function(t){var e=this;t.forEach(function(t,n){t.__slideVideoInfo=iQ(t.src,!!t.video,n),t.__slideVideoInfo&&e.settings.loadYouTubePoster&&!t.poster&&t.__slideVideoInfo.youtube&&(t.poster="//img.youtube.com/vi/"+t.__slideVideoInfo.youtube[1]+"/maxresdefault.jpg")})},t.prototype.loadContent=function(t,e){var n=this,i=this.galleryItems[t],r=i$(this.getSlideItemId(t)),o=i.poster,s=i.srcset,a=i.sizes,l=i.sources,u=i.src,c=i.video,d=c&&"string"==typeof c?JSON.parse(c):c;i.responsive&&(u=iY(i.responsive.split(","))||u);var h=i.__slideVideoInfo,f="",g=!!i.iframe,p=!this.lGalleryOn,m=0;if(p&&(m=this.zoomFromOrigin&&this.currentImageSize?this.settings.startAnimationDuration+10:this.settings.backdropDuration+10),!r.hasClass("lg-loaded")){if(h){var v=this.mediaContainerPosition,y=v.top,b=v.bottom,_=iR(this.items[t],this.outer,y+b,h&&this.settings.videoMaxSize);f=this.getVideoContStyle(_)}if(g){var w,S,I,x,k,T,C=(w=this.settings.iframeWidth,S=this.settings.iframeHeight,I=this.settings.iframeMaxWidth,x=this.settings.iframeMaxHeight,k=u,'<div class="lg-media-cont lg-has-iframe" style="width:'+w+"; max-width:"+I+"; height: "+S+"; max-height:"+x+'">\n <iframe class="lg-object" frameborder="0" '+((T
1=i.iframeTitle)?'title="'+T+'"':"")+' src="'+k+'" allowfullscreen="true"></iframe>\n </div>');r.prepend(C)}else if(o){var E="";p&&this.zoomFromOrigin&&this.currentImageSize&&(E=this.getDummyImageContent(r,t,""));var C=iV(o,E||"",f,this.settings.strings.playVideo,h);r.prepend(C)}else if(h){var C='<div class="lg-video-cont " style="'+f+'"></div>';r.prepend(C)}else if(this.setImgMarkup(u,r,t),s||l){var O=r.find(".lg-object");this.initPictureFill(O)}(o||h)&&this.LGel.trigger("lgHasVideo",{index:t,src:u,html5Video:d,hasPoster:!!o}),this.LGel.trigger("lgAfterAppendSlide",{index:t}),this.lGalleryOn&&".lg-item"===this.settings.appendSubHtmlTo&&this.addHtml(t)}var A=0;m&&!i$(document.body).hasClass("lg-from-hash")&&(A=m),this.isFirstSlideWithZoomAnimation()&&(setTimeout(function(){r.removeClass("lg-start-end-progress lg-start-progress").removeAttr("style")},this.settings.startAnimationDuration+100),r.hasClass("lg-loaded")||setTimeout(function(){if("image"===n.getSlideType(i)){var e=i.alt;if(r.find(".lg-img-wrap").append(iZ(t,u,e?'alt="'+e+'"':"",s,a,i.sources)),s||l){var c=r.find(".lg-object");n.initPictureFill(c)}}("image"===n.getSlideType(i)||"video"===n.getSlideType(i)&&o)&&(n.onLgObjectLoad(r,t,m,A,!0,!1),n.onSlideObjectLoad(r,!!(h&&h.html5&&!o),function(){n.loadContentOnFirstSlideLoad(t,r,A)},function(){n.loadContentOnFirstSlideLoad(t,r,A)}))},this.settings.startAnimationDuration+100)),r.addClass("lg-loaded"),this.isFirstSlideWithZoomAnimation()&&("video"!==this.getSlideType(i)||o)||this.onLgObjectLoad(r,t,m,A,p,!!(h&&h.html5&&!o)),(!this.zoomFromOrigin||!this.currentImageSize)&&r.hasClass("lg-complete_")&&!this.lGalleryOn&&setTimeout(function(){r.addClass("lg-complete")},this.settings.backdropDuration),this.lGalleryOn=!0,!0===e&&(r.hasClass("lg-complete_")?this.preload(t):r.find(".lg-object").first().on("load.lg error.lg",function(){n.preload(t)}))},t.prototype.loadContentOnFirstSlideLoad=function(t,e,n){var i=this;setTimeout(function(){e.find(".lg-dummy-img").remove(),e.removeClass("lg-first-slide"),i.outer.removeClass("lg-first-slide-loading"),i.isDummyImageRemoved=!0,i.preload(t)},n+300)},t.prototype.getItemsToBeInsertedToDom=function(t,e,n){var i=this;void 0===n&&(n=0);var r=[],o=Math.max(n,3);o=Math.min(o,this.galleryItems.length);var s="lg-item-"+this.lgId+"-"+e;if(this.galleryItems.length<=3)return this.galleryItems.forEach(function(t,e){r.push("lg-item-"+i.lgId+"-"+e)}),r;if(t<(this.galleryItems.length-1)/2){for(var a=t;a>t-o/2&&a>=0;a--)r.push("lg-item-"+this.lgId+"-"+a);for(var l=r.length,a=0;a<o-l;a++)r.push("lg-item-"+this.lgId+"-"+(t+a+1))}else{for(var a=t;a<=this.galleryItems.length-1&&a<t+o/2;a++)r.push("lg-item-"+this.lgId+"-"+a);for(var l=r.length,a=0;a<o-l;a++)r.push("lg-item-"+this.lgId+"-"+(t-a-1))}return this.settings.loop&&(t===this.galleryItems.length-1?r.push("lg-item-"+this.lgId+"-0"):0===t&&r.push("lg-item-"+this.lgId+"-"+(this.galleryItems.length-1))),-1===r.indexOf(s)&&r.push("lg-item-"+this.lgId+"-"+e),r},t.prototype.organizeSlideItems=function(t,e){var n=this,i=this.getItemsToBeInsertedToDom(t,e,this.settings.numberOfSlideItemsInDom);return i.forEach(function(t){-1===n.currentItemsInDom.indexOf(t)&&n.$inner.append('<div id="'+t+'" class="lg-item"></div>')}),this.currentItemsInDom.forEach(function(t){-1===i.indexOf(t)&&i$("#"+t).remove()}),i},t.prototype.getPreviousSlideIndex=function(){var t=0;try{var e=this.outer.find(".lg-current").first().attr("id");t=parseInt(e.split("-")[3])||0}catch(e){t=0}return t},t.prototype.setDownloadValue=function(t){if(this.settings.download){var e=this.galleryItems[t];if(!1===e.downloadUrl||"false"===e.downloadUrl)this.outer.addClass("lg-hide-download");else{var n=this.getElementById("lg-download");this.outer.removeClass("lg-hide-download"),n.attr("href",e.downloadUrl||e.src),e.download&&n.attr("download",e.download)}}},t.prototype.makeSlideAnimation=function(t,e,n){var i=this;this.lGalleryOn&&n.addClass("lg-slide-progress"),setTimeout(function(){i.outer.addClass("lg-no-trans"),i.outer.find(".lg-item").removeClass("lg-prev-slide lg-next-slide"),"prev"===t?(e.addClass("lg-prev-slide"),n.addClass("lg-next-slide")):(e.addClass("lg-next-slide"),n.addClass("lg-prev-slide")),setTimeout(function(){i.outer.find(".lg-item").removeClass("lg-current"),e.addClass("lg-current"),i.outer.removeClass("lg-no-trans")},50)},this.lGalleryOn?this.settings.slideDelay:0)},t.prototype.slide=function(t,e,n,i){var r=this,o=this.getPreviousSlideIndex();if(this.currentItemsInDom=this.organizeSlideItems(t,o),!this.lGalleryOn||o!==t){var s=this.galleryItems.length;if(!this.lgBusy){this.settings.counter&&this.updateCurrentCounter(t);var a=this.getSlideItem(t),l=this.getSlideItem(o),u=this.galleryItems[t],c=u.__slideVideoInfo;
1if(this.outer.attr("data-lg-slide-type",this.getSlideType(u)),this.setDownloadValue(t),c){var d=this.mediaContainerPosition,h=d.top,f=d.bottom,g=iR(this.items[t],this.outer,h+f,c&&this.settings.videoMaxSize);this.resizeVideoSlide(t,g)}if(this.LGel.trigger("lgBeforeSlide",{prevIndex:o,index:t,fromTouch:!!e,fromThumb:!!n}),this.lgBusy=!0,clearTimeout(this.hideBarTimeout),this.arrowDisable(t),!i&&(t<o?i="prev":t>o&&(i="next")),e){this.outer.find(".lg-item").removeClass("lg-prev-slide lg-current lg-next-slide");var p=void 0,m=void 0;s>2?(p=t-1,m=t+1,0===t&&o===s-1?(m=0,p=s-1):t===s-1&&0===o&&(m=0,p=s-1)):(p=0,m=1),"prev"===i?this.getSlideItem(m).addClass("lg-next-slide"):this.getSlideItem(p).addClass("lg-prev-slide"),a.addClass("lg-current")}else this.makeSlideAnimation(i,a,l);this.lGalleryOn?setTimeout(function(){r.loadContent(t,!0),".lg-item"!==r.settings.appendSubHtmlTo&&r.addHtml(t)},this.settings.speed+50+(e?0:this.settings.slideDelay)):this.loadContent(t,!0),setTimeout(function(){r.lgBusy=!1,l.removeClass("lg-slide-progress"),r.LGel.trigger("lgAfterSlide",{prevIndex:o,index:t,fromTouch:e,fromThumb:n})},(this.lGalleryOn?this.settings.speed+100:100)+(e?0:this.settings.slideDelay))}this.index=t}},t.prototype.updateCurrentCounter=function(t){this.getElementById("lg-counter-current").html(t+1+"")},t.prototype.updateCounterTotal=function(){this.getElementById("lg-counter-all").html(this.galleryItems.length+"")},t.prototype.getSlideType=function(t){return t.__slideVideoInfo?"video":t.iframe?"iframe":"image"},t.prototype.touchMove=function(t,e,n){var i=e.pageX-t.pageX,r=e.pageY-t.pageY,o=!1;if(this.swipeDirection?o=!0:Math.abs(i)>15?(this.swipeDirection="horizontal",o=!0):Math.abs(r)>15&&(this.swipeDirection="vertical",o=!0),o){var s=this.getSlideItem(this.index);if("horizontal"===this.swipeDirection){null==n||n.preventDefault(),this.outer.addClass("lg-dragging"),this.setTranslate(s,i,0);var a=s.get().offsetWidth,l=15*a/100-Math.abs(10*i/100);this.setTranslate(this.outer.find(".lg-prev-slide").first(),-a+i-l,0),this.setTranslate(this.outer.find(".lg-next-slide").first(),a+i+l,0)}else if("vertical"===this.swipeDirection&&this.settings.swipeToClose){null==n||n.preventDefault(),this.$container.addClass("lg-dragging-vertical");var u=1-Math.abs(r)/window.innerHeight;this.$backdrop.css("opacity",u);var c=1-Math.abs(r)/(2*window.innerWidth);this.setTranslate(s,0,r,c,c),Math.abs(r)>100&&this.outer.addClass("lg-hide-items").removeClass("lg-components-open")}}},t.prototype.touchEnd=function(t,e,n){var i,r=this;"lg-slide"!==this.settings.mode&&this.outer.addClass("lg-slide"),setTimeout(function(){r.$container.removeClass("lg-dragging-vertical"),r.outer.removeClass("lg-dragging lg-hide-items").addClass("lg-components-open");var o=!0;if("horizontal"===r.swipeDirection){i=t.pageX-e.pageX;var s=Math.abs(t.pageX-e.pageX);i<0&&s>r.settings.swipeThreshold?(r.goToNextSlide(!0),o=!1):i>0&&s>r.settings.swipeThreshold&&(r.goToPrevSlide(!0),o=!1)}else if("vertical"===r.swipeDirection){if(i=Math.abs(t.pageY-e.pageY),r.settings.closable&&r.settings.swipeToClose&&i>100)return void r.closeGallery();r.$backdrop.css("opacity",1)}if(r.outer.find(".lg-item").removeAttr("style"),o&&5>Math.abs(t.pageX-e.pageX)){var a=i$(n.target);r.isPosterElement(a)&&r.LGel.trigger(iG)}r.swipeDirection=void 0}),setTimeout(function(){r.outer.hasClass("lg-dragging")||"lg-slide"===r.settings.mode||r.outer.removeClass("lg-slide")},this.settings.speed+100)},t.prototype.enableSwipe=function(){var t=this,e={},n={},i=!1,r=!1;this.settings.enableSwipe&&(this.$inner.on("touchstart.lg",function(n){t.dragOrSwipeEnabled=!0;var i=t.getSlideItem(t.index);(i$(n.target).hasClass("lg-item")||i.get().contains(n.target))&&!t.outer.hasClass("lg-zoomed")&&!t.lgBusy&&1===n.touches.length&&(r=!0,t.touchAction="swipe",t.manageSwipeClass(),e={pageX:n.touches[0].pageX,pageY:n.touches[0].pageY})}),this.$inner.on("touchmove.lg",function(o){r&&"swipe"===t.touchAction&&1===o.touches.length&&(n={pageX:o.touches[0].pageX,pageY:o.touches[0].pageY},t.touchMove(e,n,o),i=!0)}
1),this.$inner.on("touchend.lg",function(o){if("swipe"===t.touchAction){if(i)i=!1,t.touchEnd(n,e,o);else if(r){var s=i$(o.target);t.isPosterElement(s)&&t.LGel.trigger(iG)}t.touchAction=void 0,r=!1}}))},t.prototype.enableDrag=function(){var t=this,e={},n={},i=!1,r=!1;this.settings.enableDrag&&(this.outer.on("mousedown.lg",function(n){t.dragOrSwipeEnabled=!0;var r=t.getSlideItem(t.index);(i$(n.target).hasClass("lg-item")||r.get().contains(n.target))&&!t.outer.hasClass("lg-zoomed")&&!t.lgBusy&&(n.preventDefault(),t.lgBusy||(t.manageSwipeClass(),e={pageX:n.pageX,pageY:n.pageY},i=!0,t.outer.get().scrollLeft+=1,t.outer.get().scrollLeft-=1,t.outer.removeClass("lg-grab").addClass("lg-grabbing"),t.LGel.trigger("lgDragStart")))}),i$(window).on("mousemove.lg.global"+this.lgId,function(o){i&&t.lgOpened&&(r=!0,n={pageX:o.pageX,pageY:o.pageY},t.touchMove(e,n),t.LGel.trigger("lgDragMove"))}),i$(window).on("mouseup.lg.global"+this.lgId,function(o){if(t.lgOpened){var s=i$(o.target);r?(r=!1,t.touchEnd(n,e,o),t.LGel.trigger("lgDragEnd")):t.isPosterElement(s)&&t.LGel.trigger(iG),i&&(i=!1,t.outer.removeClass("lg-grabbing").addClass("lg-grab"))}}))},t.prototype.triggerPosterClick=function(){var t=this;this.$inner.on("click.lg",function(e){!t.dragOrSwipeEnabled&&t.isPosterElement(i$(e.target))&&t.LGel.trigger(iG)})},t.prototype.manageSwipeClass=function(){var t=this.index+1,e=this.index-1;this.settings.loop&&this.galleryItems.length>2&&(0===this.index?e=this.galleryItems.length-1:this.index===this.galleryItems.length-1&&(t=0)),this.outer.find(".lg-item").removeClass("lg-next-slide lg-prev-slide"),e>-1&&this.getSlideItem(e).addClass("lg-prev-slide"),this.getSlideItem(t).addClass("lg-next-slide")},t.prototype.goToNextSlide=function(t){var e=this,n=this.settings.loop;t&&this.galleryItems.length<3&&(n=!1),this.lgBusy||(this.index+1<this.galleryItems.length?(this.index++,this.LGel.trigger(iB,{index:this.index}),this.slide(this.index,!!t,!1,"next")):n?(this.index=0,this.LGel.trigger(iB,{index:this.index}),this.slide(this.index,!!t,!1,"next")):this.settings.slideEndAnimation&&!t&&(this.outer.addClass("lg-right-end"),setTimeout(function(){e.outer.removeClass("lg-right-end")},400)))},t.prototype.goToPrevSlide=function(t){var e=this,n=this.settings.loop;t&&this.galleryItems.length<3&&(n=!1),this.lgBusy||(this.index>0?(this.index--,this.LGel.trigger(iF,{index:this.index,fromTouch:t}),this.slide(this.index,!!t,!1,"prev")):n?(this.index=this.galleryItems.length-1,this.LGel.trigger(iF,{index:this.index,fromTouch:t}),this.slide(this.index,!!t,!1,"prev")):this.settings.slideEndAnimation&&!t&&(this.outer.addClass("lg-left-end"),setTimeout(function(){e.outer.removeClass("lg-left-end")},400)))},t.prototype.keyPress=function(){var t=this;i$(window).on("keydown.lg.global"+this.lgId,function(e){t.lgOpened&&!0===t.settings.escKey&&27===e.keyCode&&(e.preventDefault(),t.settings.allowMediaOverlap&&t.outer.hasClass("lg-can-toggle")&&t.outer.hasClass("lg-components-open")?t.outer.removeClass("lg-components-open"):t.closeGallery()),t.lgOpened&&t.galleryItems.length>1&&(37===e.keyCode&&(e.preventDefault(),t.goToPrevSlide()),39===e.keyCode&&(e.preventDefault(),t.goToNextSlide()))})},t.prototype.arrow=function(){var t=this;this.getElementById("lg-prev").on("click.lg",function(){t.goToPrevSlide()}),this.getElementById("lg-next").on("click.lg",function(){t.goToNextSlide()})},t.prototype.arrowDisable=function(t){if(!this.settings.loop&&this.settings.hideControlOnEnd){var e=this.getElementById("lg-prev"),n=this.getElementById("lg-next");t+1===this.galleryItems.length?n.attr("disabled","disabled").addClass("disabled"):n.removeAttr("disabled").removeClass("disabled"),0===t?e.attr("disabled","disabled").addClass("disabled"):e.removeAttr("disabled").removeClass("disabled")}},t.prototype.setTranslate=function(t,e,n,i,r){void 0===i&&(i=1),void 0===r&&(r=1),t.css("transform","translate3d("+e+"px, "+n+"px, 0px) scale3d("+i+", "+r+", 1)")},t.prototype.mousewheel=function(){var t=this,e=0;this.outer.on("wheel.lg",function(n){if(n.deltaY&&!(t.galleryItems.length<2)){n.preventDefault();var i=new Date().getTime();!(i-e<1e3)&&(e=i,n.deltaY>0?t.goToNextSlide():n.deltaY<0&&t.goToPrevSlide())}})},t.prototype.isSlideElement=function(t){return t.hasClass("lg-outer")||t.hasClass("lg-item")||t.hasClass("lg-img-wrap")||t.hasClass("lg-img-rotate")},t.prototype.isPosterElement=function(t){var e=this.getSlideItem(this.index).find(".lg-video-play-button").get();return t.hasClass("lg-video-poster")||t.hasClass("lg-video-play-button")||e&&e.contains(t.get())},t.prototype.toggleMaximize=function(){var t=this;this.getElementById("lg-maximize").on("click.lg",function(){t.$container.toggleClass("lg-inline"),t.refreshOnResize()})},t.prototype.invalidateItems=function(){for(var t=0;t<this.items.length;t++){var e=i$(this.items[t]);e.off("click.lgcustom-item-"+e.attr("data-lg-id"))}},t.prototype.trapFocus=function(){var t=this;this.$container.get().focus({preventScroll:!0}),i$(window).on("keydown.lg.global"+this.lgId,function(e){if(t.lgOpened&&("Tab"===e.key||9===e.keyCode)){var n=iK(t.$container.get()),i=n[0],r=n[n.length-1];e.shiftKey?document.activeElement===i&&(r.focus(),e.preventDefault()):document.activeElement===r&&(i.focus(),e.preventDefault())}})},t.prototype.manageCloseGallery=function(){var t=this;if(this.settings.closable){var e=!1;this.getElementById("lg-close").on("click.lg",function(){t.closeGallery()}),this.settings.closeOnTap&&(this.outer.on("mousedown.lg",function(n){var i=i$(n.target);e=!!t.isSlideElement(i)}),this.outer.on("mousemove.lg",function(){e=!1}),this.outer.on("mouseup.lg",function(n){var i=i$(n.target);t.isSlideElement(i)&&e&&!t.outer.hasClass("lg-dragging")&&t.closeGallery()}))}},t.prototype.closeGallery=function(t){var e,n=this;if(!this.lgOpened||!this.settings.closable&&!t)return 0;this.LGel.trigger("lgBeforeClose"),this.settings.resetScrollPosition&&!this.settings.hideScrollbar&&i$(window).scrollTop(this.prevScrollTop);var i=this.items[this.index];if(this.zoomFromOrigin&&i){var r=this.mediaContainerPosition,o=r.top,s=r.bottom,a=this.galleryItems[this.index],l=a.__slideVideoInfo,u=a.poster,c=iR(i,this.outer,o+s,l&&u&&this.settings.videoMaxSize);e=iX(i,this.outer,o,s,c)}this.zoomFromOrigin&&e?(this.outer.addClass("lg-closing lg-zoom-from-image"),this.get
1SlideItem(this.index).addClass("lg-start-end-progress").css("transition-duration",this.settings.startAnimationDuration+"ms").css("transform",e)):(this.outer.addClass("lg-hide-items"),this.outer.removeClass("lg-zoom-from-image")),this.destroyModules(),this.lGalleryOn=!1,this.isDummyImageRemoved=!1,this.zoomFromOrigin=this.settings.zoomFromOrigin,clearTimeout(this.hideBarTimeout),this.hideBarTimeout=!1,i$("html").removeClass("lg-on"),this.outer.removeClass("lg-visible lg-components-open"),this.$backdrop.removeClass("in").css("opacity",0);var d=this.zoomFromOrigin&&e?Math.max(this.settings.startAnimationDuration,this.settings.backdropDuration):this.settings.backdropDuration;return this.$container.removeClass("lg-show-in"),setTimeout(function(){n.zoomFromOrigin&&e&&n.outer.removeClass("lg-zoom-from-image"),n.$container.removeClass("lg-show"),n.resetScrollBar(),n.$backdrop.removeAttr("style").css("transition-duration",n.settings.backdropDuration+"ms"),n.outer.removeClass("lg-closing "+n.settings.startClass),n.getSlideItem(n.index).removeClass("lg-start-end-progress"),n.$inner.empty(),n.lgOpened&&n.LGel.trigger("lgAfterClose",{instance:n}),n.$container.get()&&n.$container.get().blur(),n.lgOpened=!1},d+100),d+100},t.prototype.initModules=function(){this.plugins.forEach(function(t){try{t.init()}catch(t){console.warn("lightGallery:- make sure lightGallery module is properly initiated")}})},t.prototype.destroyModules=function(t){this.plugins.forEach(function(e){try{t?e.destroy():e.closeGallery&&e.closeGallery()}catch(t){console.warn("lightGallery:- make sure lightGallery module is properly destroyed")}})},t.prototype.refresh=function(t){this.settings.dynamic||this.invalidateItems(),t?this.galleryItems=t:this.galleryItems=this.getItems(),this.updateControls(),this.openGalleryOnItemClick(),this.LGel.trigger(iN)},t.prototype.updateControls=function(){this.addSlideVideoInfo(this.galleryItems),this.updateCounterTotal(),this.manageSingleSlideClassName()},t.prototype.destroyGallery=function(){this.destroyModules(!0),this.settings.dynamic||this.invalidateItems(),i$(window).off(".lg.global"+this.lgId),this.LGel.off(".lg"),this.$container.remove()},t.prototype.destroy=function(){var t=this.closeGallery(!0);return t?setTimeout(this.destroyGallery.bind(this),t):this.destroyGallery(),t},t}(),i2=function(){return(i2=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},i3={hash:!0,galleryId:"1",customSlideName:!1},i5=function(){function t(t,e){return this.core=t,this.$LG=e,this.settings=i2(i2({},i3),this.core.settings),this}return t.prototype.init=function(){var t=this;this.settings.hash&&(this.oldHash=window.location.hash,setTimeout(function(){t.buildFromHash()},100),this.core.LGel.on("lgAfterSlide.hash",this.onAfterSlide.bind(this)),this.core.LGel.on("lgAfterClose.hash",this.onCloseAfter.bind(this)),this.$LG(window).on("hashchange.lg.hash.global"+this.core.lgId,this.onHashchange.bind(this)))},t.prototype.onAfterSlide=function(t){var e=this.core.galleryItems[t.detail.index].slideName;e=this.settings.customSlideName&&e||t.detail.index,history.replaceState?history.replaceState(null,"",window.location.pathname+window.location.search+"#lg="+this.settings.galleryId+"&slide="+e):window.location.hash="lg="+this.settings.galleryId+"&slide="+e},t.prototype.getIndexFromUrl=function(t){void 0===t&&(t=window.location.hash);var e=t.split("&slide=")[1],n=0;if(this.settings.customSlideName){for(var i=0;i<this.core.galleryItems.length;i++)if(this.core.galleryItems[i].slideName===e){n=i;break}}else n=parseInt(e,10);return isNaN(n)?0:n},t.prototype.buildFromHash=function(){var t=window.location.hash;if(t.indexOf("lg="+this.settings.galleryId)>0){this.$LG(document.body).addClass("lg-from-hash");var e=this.getIndexFromUrl(t);
1return this.core.openGallery(e),!0}},t.prototype.onCloseAfter=function(){this.oldHash&&0>this.oldHash.indexOf("lg="+this.settings.galleryId)?history.replaceState?history.replaceState(null,"",this.oldHash):window.location.hash=this.oldHash:history.replaceState?history.replaceState(null,document.title,window.location.pathname+window.location.search):window.location.hash=""},t.prototype.onHashchange=function(){if(this.core.lgOpened){var t=window.location.hash,e=this.getIndexFromUrl(t);t.indexOf("lg="+this.settings.galleryId)>-1?this.core.slide(e,!1,!1):this.core.lGalleryOn&&this.core.closeGallery()}},t.prototype.closeGallery=function(){this.settings.hash&&this.$LG(document.body).removeClass("lg-from-hash")},t.prototype.destroy=function(){this.core.LGel.off(".lg.hash"),this.core.LGel.off(".hash"),this.$LG(window).off("hashchange.lg.hash.global"+this.core.lgId)},t}(),i4=function(){return(i4=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function i6(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;for(var i=Array(t),r=0,e=0;e<n;e++)for(var o=arguments[e],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i}var i8={share:!0,facebook:!0,facebookDropdownText:"Facebook",twitter:!0,twitterDropdownText:"Twitter",pinterest:!0,pinterestDropdownText:"Pinterest",additionalShareOptions:[],sharePluginStrings:{share:"Share"}};function i7(t){return"//www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(t.facebookShareUrl||window.location.href)}function i9(t){var e=encodeURIComponent(t.twitterShareUrl||window.location.href);return"//twitter.com/intent/tweet?text="+t.tweetText+"&url="+e}function rt(t){var e=t.pinterestText,n=encodeURIComponent(t.src);return"http://www.pinterest.com/pin/create/button/?url="+encodeURIComponent(t.pinterestShareUrl||window.location.href)+"&media="+n+"&description="+e}var re=function(){function t(t){return this.shareOptions=[],this.core=t,this.settings=i4(i4({},i8),this.core.settings),this}return t.prototype.init=function(){this.settings.share&&(this.shareOptions=i6(this.getDefaultShareOptions(),this.settings.additionalShareOptions),this.setLgShareMarkup(),this.core.outer.find(".lg-share .lg-dropdown").append(this.getShareListHtml()),this.core.LGel.on("lgAfterSlide.share",this.onAfterSlide.bind(this)))},t.prototype.getShareListHtml=function(){var t="";return this.shareOptions.forEach(function(e){t+=e.dropdownHTML}),t},t.prototype.setLgShareMarkup=function(){var t=this;this.core.$toolbar.append('<button type="button" aria-label="'+this.settings.sharePluginStrings.share+'" aria-haspopup="true" aria-expanded="false" class="lg-share lg-icon">\n <ul class="lg-dropdown" style="position: absolute;"></ul></button>'),this.core.outer.append('<div class="lg-dropdown-overlay"></div>'),this.core.outer.find(".lg-share").first().on("click.lg",function(){t.core.outer.toggleClass("lg-dropdown-active"),t.core.outer.hasClass("lg-dropdown-active")?t.core.outer.attr("aria-expanded",!0):t.core.outer.attr("aria-expanded",!1)}),this.core.outer.find(".lg-dropdown-overlay").first().on("click.lg",function(){t.core.outer.removeClass("lg-dropdown-active"),t.core.outer.attr("aria-expanded",!1)})},t.prototype.onAfterSlide=function(t){var e=this,n=t.detail.index,i=this.core.galleryItems[n];setTimeout(function(){e.shareOptions.forEach(function(t){var n=t.selector;e.core.outer.find(n).attr("href",t.generateLink(i))})},100)},t.prototype.getShareListItemHTML=function(t,e){return'<li><a class="lg-share-'+t+'" rel="noopener" target="_blank"><span class="lg-icon"></span><span class="lg-dropdown-text">'+e+"</span></a></li>"},t.prototype.getDefaultShareOptions=function(){return i6(this.settings.facebook?[{type:"facebook",generateLink:i7,dropdownHTML:this.getShareListItemHTML("facebook",this.settings.facebookDropdownText),selector:".lg-share-facebook"}]:[],this.settings.twitter?[{type:"twitter",generateLink:i9,dropdownHTML:this.getShareListItemHTML("twitter",this.settings.twitterDropdownText),selector:".lg-share-twitter"}]:[],this.settings.pinterest?[{type:"pinterest",generateLink:rt,dropdownHTML:this.getShareListItemHTML("pinterest",this.settings.pinterestDropdownText),selector:".lg-share-pinterest"}]:[])},t.prototype.destroy=function(){this.core.outer.find(".lg-dropdown-overlay").remove(),this.core.outer.find(".lg-share").remove(),this.core.LGel.off(".lg.share"),this.core.LGel.off(".share")},t}(),rn=function(){return(rn=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},ri={thumbnail:!0,animateThumb:!0,currentPagerPosition:"middle",alignThumbnails:"middle",thumbWidth:100,thumbHe
vendor: 6,465 bytes, line 1
1ight:"80px",thumbMargin:5,appendThumbnailsTo:".lg-components",toggleThumb:!1,enableThumbDrag:!0,enableThumbSwipe:!0,thumbnailSwipeThreshold:10,loadYouTubeThumbnail:!0,youTubeThumbSize:1,thumbnailPluginStrings:{toggleThumbnails:"Toggle thumbnails"}},rr="lgBeforeSlide",ro=function(){function t(t,e){return this.thumbOuterWidth=0,this.thumbTotalWidth=0,this.translateX=0,this.thumbClickable=!1,this.core=t,this.$LG=e,this}return t.prototype.init=function(){this.settings=rn(rn({},ri),this.core.settings),this.thumbOuterWidth=0,this.thumbTotalWidth=this.core.galleryItems.length*(this.settings.thumbWidth+this.settings.thumbMargin),this.translateX=0,this.setAnimateThumbStyles(),this.core.settings.allowMediaOverlap||(this.settings.toggleThumb=!1),this.settings.thumbnail&&(this.build(),this.settings.animateThumb?(this.settings.enableThumbDrag&&this.enableThumbDrag(),this.settings.enableThumbSwipe&&this.enableThumbSwipe(),this.thumbClickable=!1):this.thumbClickable=!0,this.toggleThumbBar(),this.thumbKeyPress())},t.prototype.build=function(){var t=this;this.setThumbMarkup(),this.manageActiveClassOnSlideChange(),this.$lgThumb.first().on("click.lg touchend.lg",function(e){var n=t.$LG(e.target);n.hasAttribute("data-lg-item-id")&&setTimeout(function(){if(t.thumbClickable&&!t.core.lgBusy){var e=parseInt(n.attr("data-lg-item-id"));t.core.slide(e,!1,!0,!1)}},50)}),this.core.LGel.on(rr+".thumb",function(e){var n=e.detail.index;t.animateThumb(n)}),this.core.LGel.on("lgBeforeOpen.thumb",function(){t.thumbOuterWidth=t.core.outer.get().offsetWidth}),this.core.LGel.on("lgUpdateSlides.thumb",function(){t.rebuildThumbnails()}),this.core.LGel.on("lgContainerResize.thumb",function(){t.core.lgOpened&&setTimeout(function(){t.thumbOuterWidth=t.core.outer.get().offsetWidth,t.animateThumb(t.core.index),t.thumbOuterWidth=t.core.outer.get().offsetWidth},50)})},t.prototype.setThumbMarkup=function(){var t="lg-thumb-outer ";this.settings.alignThumbnails&&(t+="lg-thumb-align-"+this.settings.alignThumbnails);var e='<div class="'+t+'">\n <div class="lg-thumb lg-group">\n </div>\n </div>';this.core.outer.addClass("lg-has-thumb"),".lg-components"===this.settings.appendThumbnailsTo?this.core.$lgComponents.append(e):this.core.outer.append(e),this.$thumbOuter=this.core.outer.find(".lg-thumb-outer").first(),this.$lgThumb=this.core.outer.find(".lg-thumb").first(),this.settings.animateThumb&&this.core.outer.find(".lg-thumb").css("transition-duration",this.core.settings.speed+"ms").css("width",this.thumbTotalWidth+"px").css("position","relative"),this.setThumbItemHtml(this.core.galleryItems)},t.prototype.enableThumbDrag=function(){var t=this,e={cords:{startX:0,endX:0},isMoved:!1,newTranslateX:0,startTime:new Date,endTime:new Date,touchMoveTime:0},n=!1;this.$thumbOuter.addClass("lg-grab"),this.core.outer.find(".lg-thumb").first().on("mousedown.lg.thumb",function(i){t.thumbTotalWidth>t.thumbOuterWidth&&(i.preventDefault(),e.cords.startX=i.pageX,e.startTime=new Date,t.thumbClickable=!1,n=!0,t.core.outer.get().scrollLeft+=1,t.core.outer.get().scrollLeft-=1,t.$thumbOuter.removeClass("lg-grab").addClass("lg-grabbing"))}),this.$LG(window).on("mousemove.lg.thumb.global"+this.core.lgId,function(i){t.core.lgOpened&&n&&(e.cords.endX=i.pageX,e=t.onThumbTouchMove(e))}),this.$LG(window).on("mouseup.lg.thumb.global"+this.core.lgId,function(){t.core.lgOpened&&(e.isMoved?e=t.onThumbTouchEnd(e):t.thumbClickable=!0,n&&(n=!1,t.$thumbOuter.removeClass("lg-grabbing").addClass("lg-grab")))})},t.prototype.enableThumbSwipe=function(){var t=this,e={cords:{startX:0,endX:0},isMoved:!1,newTranslateX:0,startTime:new Date,endTime:new Date,touchMoveTime:0};this.$lgThumb.on("touchstart.lg",function(n){t.thumbTotalWidth>t.thumbOuterWidth&&(n.preventDefault(),e.cords.startX=n.targetTouches[0].pageX,t.thumbClickable=!1,e.startTime=new Date)}),this.$lgThumb.on("touchmove.lg",function(n){t.thumbTotalWidth>t.thumbOuterWidth&&(n.preventDefault(),e.cords.endX=n.targetTouches[0].pageX,e=t.onThumbTouchMove(e))}),this.$lgThumb.on("touchend.lg",function(){e.isMoved?e=t.onThumbTouchEnd(e):t.thumbClickable=!0})},t.prototype.rebuildThumbnails=function(){var t=this;this.$thumbOuter.addClass("lg-rebuilding-thumbnails"),setTimeout(function(){t.thumbTotalWidth=t.core.galleryItems.length*(t.settings.thumbWidth+t.settings.thumbMargin),t.$lgThumb.css("width",t.thumbTotalWidth+"px"),t.$lgThumb.empty(),t.setThumbItemHtml(t.core.galleryItems),t.animateThumb(t.core.index)},50),setTimeout(function(){t.$thumbOuter.removeClass("lg-rebuilding-thumbnails")},200)},t.prototype.setTranslate=function(t){this.$lgThumb.css("transform","translate3d(-"+t+"px, 0px, 0px)")},t.prototype.getPossibleTransformX=function(t){return t>this.thumbTotalWidth-this.thumbOuterWidth&&(t=this.thumbTotalWidth-this.thumbOuterWidth),t<0&&(t=0),t},t.prototype.animateThumb=function(t){if(this.$lgThumb.css("transition-duration",this.core.settings.speed+"ms"),this.settings.animateThumb){var e=0;switch(this.settings.currentPagerPosition){case"left":e=0;break;case"middle":e=this.thumbOuterWidth/2-this.settings.thumbWidth/2;break;case"right":e=this.thumbOuterWidth-this.settings.thumbWidth}this.translateX=(this.settings.thumbWidth+this.settings.thumbMargin)*t-1-e,this.translateX>this.thumbTotalWidth-this.thumbOuterWidth&&(this.translateX=this.thumbTotalWidth-this.thumbOuterWidth),this.translateX<0&&(this.translateX=0),this.setTranslate(this.translateX)}},t.prototype.onThumbTouchMove=function(t){return t.newTranslateX=this.translateX,t.isMoved=!0,t.touchMoveTime=new Date().valueOf(),t.newTranslateX-=t.cords.endX-t.cords.startX,t.newTranslateX=this.getPossibleTransformX(t.newTranslateX),this.setTranslate(t.newTranslateX),this.$thumbOuter.addClass("lg-dragging"),t},t.prototype.onThumbTouchEnd=function(t){t.isMoved=!1,t.endTime=new Date,this.$thumbOuter.removeClass("lg-dragging");var e=t.endTime.valueOf()-t.startTime.valueOf(),n=t.cords.endX-t.cords.startX,i=Math.abs(n)/e;return i>.15&&t.endTime.valueOf()-t.touchMoveTime<30?((i+=1)>2&&(i+=1),i+=i*(Math.abs(n)/this.thumbOuterWidth),this.$lgThumb.css("transition-duration",Math.min(i-1,2)+"settings"),n*=i,this.translateX=this.getPossibleTransformX(this.translateX-n),this.setTranslate(this.translateX)):this.translateX=t.newTranslateX,Math.abs(t.cords.endX-t.cords.startX)<this.settings.thumbnailSwipeThreshold&&(this.thumbClickable=!0),t},t.prototype.getThumbHtml=function(t,e,n){var i,r=this.core.galleryItems[e].__slideVideoInfo||{};
1i=r.youtube&&this.settings.loadYouTubeThumbnail?"//img.youtube.com/vi/"+r.youtube[1]+"/"+this.settings.youTubeThumbSize+".jpg":t;var o=document.createElement("div");o.setAttribute("data-lg-item-id",e+""),o.className="lg-thumb-item "+(e===this.core.index?"active":""),o.style.cssText="width: "+this.settings.thumbWidth+"px; height: "+this.settings.thumbHeight+"; margin-right: "+this.settings.thumbMargin+"px;";var s=document.createElement("img");return s.alt=n||"",s.setAttribute("data-lg-item-id",e+""),s.src=i,o.appendChild(s),o},t.prototype.setThumbItemHtml=function(t){for(var e=0;e<t.length;e++){var n=this.getThumbHtml(t[e].thumb,e,t[e].alt);this.$lgThumb.append(n)}},t.prototype.setAnimateThumbStyles=function(){this.settings.animateThumb&&this.core.outer.addClass("lg-animate-thumb")},t.prototype.manageActiveClassOnSlideChange=function(){var t=this;this.core.LGel.on(rr+".thumb",function(e){var n=t.core.outer.find(".lg-thumb-item"),i=e.detail.index;n.removeClass("active"),n.eq(i).addClass("active")})},t.prototype.toggleThumbBar=function(){var t=this;this.settings.toggleThumb&&(this.core.outer.addClass("lg-can-toggle"),this.core.$toolbar.append('<button type="button" aria-label="'+this.settings.thumbnailPluginStrings.toggleThumbnails+'" class="lg-toggle-thumb lg-icon"></button>'),this.core.outer.find(".lg-toggle-thumb").first().on("click.lg",function(){t.core.outer.toggleClass("lg-components-open")}))},t.prototype.thumbKeyPress=function(){var t=this;this.$LG(window).on("keydown.lg.thumb.global"+this.core.lgId,function(e){t.core.lgOpened&&t.settings.toggleThumb&&(38===e.keyCode?(e.preventDefault(),t.core.outer.addClass("lg-components-open")):40===e.keyCode&&(e.preventDefault(),t.core.outer.removeClass("lg-components-open")))})},t.prototype.destroy=function(){this.settings.thumbnail&&(this.$LG(window).off(".lg.thumb.global"+this.core.lgId),this.core.LGel.off(".lg.thumb"),this.core.LGel.off(".thumb"),this.$thumbOuter.remove(),this.core.outer.removeClass("lg-has-thumb"))},t}(),rs=function(){return(rs=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},ra={scale:1,zoom:!0,infiniteZoom:!0,actualSize:!0,showZoomInOutIcons:!1,actualSizeIcons:{zoomIn:"lg-zoom-in",zoomOut:"lg-zoom-out"},enableZoomAfter:300,zoomPluginStrings:{zoomIn:"Zoom in",zoomOut:"Zoom out",viewActualSize:"View actual size"}},rl=function(){function t(t,e){return this.core=t,this.$LG=e,this.settings=rs(rs({},ra),this.core.settings),this}return t.prototype.buildTemplates=function(){var t=this.settings.showZoomInOutIcons?'<button id="'+this.core.getIdName("lg-zoom-in")+'" type="button" aria-label="'+this.settings.zoomPluginStrings.zoomIn+'" class="lg-zoom-in lg-icon"></button><button id="'+this.core.getIdName("lg-zoom-out")+'" type="button" aria-label="'+this.settings.zoomPluginStrings.zoomOut+'" class="lg-zoom-out lg-icon"></button>':"";this.settings.actualSize&&(t+='<button id="'+this.core.getIdName("lg-actual-size")+'" type="button" aria-label="'+this.settings.zoomPluginStrings.viewActualSize+'" class="'+this.settings.actualSizeIcons.zoomIn+' lg-icon"></button>'),this.core.outer.addClass("lg-use-transition-for-zoom"),this.core.$toolbar.first().append(t)},t.prototype.enableZoom=function(t){var e=this,n=this.settings.enableZoomAfter+t.detail.delay;this.$LG("body").first().hasClass("lg-from-hash")&&t.detail.delay?n=0:this.$LG("body").first().removeClass("lg-from-hash"),this.zoomableTimeout=setTimeout(function(){e.isImageSlide(e.core.index)&&(e.core.getSlideItem(t.detail.index).addClass("lg-zoomable"),t.detail.index===e.core.index&&e.setZoomEssentials())},n+30)},t.prototype.enableZoomOnSlideItemLoad=function(){this.core.LGel.on("lgSlideItemLoad.zoom",this.enableZoom.bind(this))},t.prototype.getDragCords=function(t){return{x:t.pageX,y:t.pageY}},t.prototype.getSwipeCords=function(t){return{x:t.touches[0].pageX,y:t.touches[0].pageY}},t.prototype.getDragAllowedAxises=function(t,e){if(!this.containerRect)return{allowX:!1,allowY:!1};var n=this.core.getSlideItem(this.core.index).find(".lg-image").first().get(),i=0,r=0,o=n.getBoundingClientRect();t?(i=n.offsetHeight*t,r=n.offsetWidth*t):e?(i=o.height+e*o.height,r=o.width+e*o.width):(i=o.height,r=o.width);var s=i>this.containerRect.height;return{allowX:r>this.containerRect.width,allowY:s}},t.prototype.setZoomEssentials=function(){this.containerRect=this.core.$content.get().getBoundingClientRect()},t.prototype.zoomImage=function(t,e,n,i){if(!(!this.containerRect||0>=Math.abs(e))){var r,o,s,a,l=this.containerRect.width/2+this.containerRect.left,u=this.containerRect.height/2+this.containerRect.top+this.scrollTop;1===t&&(this.positionChanged=!1);var c=this.getDragAllowedAxises(0,e),d=c.allowY,h=c.allowX;this.positionChanged&&(r=this.left/(this.scale-e),o=this.top/(this.scale-e),this.pageX=l-r,this.pageY=u-o,this.positionChanged=!1);var f=this.getPossibleSwipeDragCords(e),g=l-this.pageX,p=u-this.pageY;if(t-e>1){var m=(t-e)/Math.abs(e);g=(e<0?-g:g)+this.left*(m+(e<0?-1:1)),p=(e<0?-p:p)+this.top*(m+(e<0?-1:1)),s=g/m,a=p/m}else{var m=(t-e)*e;s=g*m,a=p*m}n&&(h?this.isBeyondPossibleLeft(s,f.minX)?s=f.minX:this.isBeyondPossibleRight(s,f.maxX)&&(s=f.maxX):t>1&&(s<f.minX?s=f.minX:s>f.maxX&&(s=f.maxX)),d?this.isBeyondPossibleTop(a,f.minY)?a=f.minY:this.isBeyondPossibleBottom(a,f.maxY)&&(a=f.maxY):t>1&&(a<f.minY?a=f.minY:a>f.maxY&&(a=f.maxY))),this.setZoomStyles({x:s,y:a,scale:t}),this.left=s,this.top=a,i&&this.setZoomImageSize()}},t.prototype.resetImageTranslate=function(t){if(this.isImageSlide(t)){var e=this.core.getSlideItem(t).find(".lg-image").first();this.imageReset=!1,e.removeClass("reset-transition reset-transition-y reset-transition-x"),this.core.outer.removeClass("lg-actual-size"),e.css("width","auto").css("height","auto"),setTimeout(function(){e.removeClass("no-transition")},10)}},t.prototype.setZoomImageSize=function(){var t=this,e=this.core.getSlideItem(this.core.index).find(".lg-image").first();setTimeout(function(){var n=t.getCurrentImageActualSizeScale();t.scale>=n&&(e.addClass("no-transition"),t.imageReset=!0)},500),setTimeout(function(){var n=t.getCurrentImageActualSizeScale();if(t.scale>=n){var i=t.getDragAllowedAxises(t.scale);
1e.css("width",e.get().naturalWidth+"px").css("height",e.get().naturalHeight+"px"),t.core.outer.addClass("lg-actual-size"),i.allowX&&i.allowY?e.addClass("reset-transition"):i.allowX&&!i.allowY?e.addClass("reset-transition-x"):!i.allowX&&i.allowY&&e.addClass("reset-transition-y")}},550)},t.prototype.setZoomStyles=function(t){var e=this.core.getSlideItem(this.core.index).find(".lg-img-wrap").first(),n=this.core.getSlideItem(this.core.index).find(".lg-image").first(),i=this.core.outer.find(".lg-current .lg-dummy-img").first();this.scale=t.scale,n.css("transform","scale3d("+t.scale+", "+t.scale+", 1)"),i.css("transform","scale3d("+t.scale+", "+t.scale+", 1)");var r="translate3d("+t.x+"px, "+t.y+"px, 0)";e.css("transform",r)},t.prototype.setActualSize=function(t,e){var n=this;if(!this.zoomInProgress){this.zoomInProgress=!0;var i=this.core.galleryItems[this.core.index];this.resetImageTranslate(t),setTimeout(function(){if(!(!i.src||n.core.outer.hasClass("lg-first-slide-loading"))){var t=n.getCurrentImageActualSizeScale(),r=n.scale;n.core.outer.hasClass("lg-zoomed")?n.scale=1:n.scale=n.getScale(t),n.setPageCords(e),n.beginZoom(n.scale),n.zoomImage(n.scale,n.scale-r,!0,!0)}},50),setTimeout(function(){n.core.outer.removeClass("lg-grabbing").addClass("lg-grab")},60),setTimeout(function(){n.zoomInProgress=!1},610)}},t.prototype.getNaturalWidth=function(t){var e=this.core.getSlideItem(t).find(".lg-image").first(),n=this.core.galleryItems[t].width;return n?parseFloat(n):e.get().naturalWidth},t.prototype.getActualSizeScale=function(t,e){return t>=e?t/e||2:1},t.prototype.getCurrentImageActualSizeScale=function(){var t=this.core.getSlideItem(this.core.index).find(".lg-image").first().get().offsetWidth,e=this.getNaturalWidth(this.core.index)||t;return this.getActualSizeScale(e,t)},t.prototype.getPageCords=function(t){var e={};if(t)e.x=t.pageX||t.touches[0].pageX,e.y=t.pageY||t.touches[0].pageY;else{var n=this.core.$content.get().getBoundingClientRect();e.x=n.width/2+n.left,e.y=n.height/2+this.scrollTop+n.top}return e},t.prototype.setPageCords=function(t){var e=this.getPageCords(t);this.pageX=e.x,this.pageY=e.y},t.prototype.manageActualPixelClassNames=function(){this.core.getElementById("lg-actual-size").removeClass(this.settings.actualSizeIcons.zoomIn).addClass(this.settings.actualSizeIcons.zoomOut)},t.prototype.beginZoom=function(t){return this.core.outer.removeClass("lg-zoom-drag-transition lg-zoom-dragging"),t>1?(this.core.outer.addClass("lg-zoomed"),this.manageActualPixelClassNames()):this.resetZoom(),t>1},t.prototype.getScale=function(t){var e=this.getCurrentImageActualSizeScale();return t<1?t=1:t>e&&(t=e),t},t.prototype.init=function(){var t=this;if(this.settings.zoom){this.buildTemplates(),this.enableZoomOnSlideItemLoad();var e=null;this.core.outer.on("dblclick.lg",function(e){t.$LG(e.target).hasClass("lg-image")&&t.setActualSize(t.core.index,e)}),this.core.outer.on("touchstart.lg",function(n){var i=t.$LG(n.target);1===n.touches.length&&i.hasClass("lg-image")&&(e?(clearTimeout(e),e=null,n.preventDefault(),t.setActualSize(t.core.index,n)):e=setTimeout(function(){e=null},300))}),this.core.LGel.on("lgContainerResize.zoom lgRotateRight.zoom lgRotateLeft.zoom lgFlipHorizontal.zoom lgFlipVertical.zoom",function(){if(t.core.lgOpened&&t.isImageSlide(t.core.index)&&!t.core.touchAction){var e=t.core.getSlideItem(t.core.index).find(".lg-img-wrap").first();t.top=0,t.left=0,t.setZoomEssentials(),t.setZoomSwipeStyles(e,{x:0,y:0}),t.positionChanged=!0}}),this.$LG(window).on("scroll.lg.zoom.global"+this.core.lgId,function(){t.core.lgOpened&&(t.scrollTop=t.$LG(window).scrollTop())}),this.core.getElementById("lg-zoom-out").on("click.lg",function(){if(t.isImageSlide(t.core.index)){var e=0;t.imageReset&&(t.resetImageTranslate(t.core.index),e=50),setTimeout(function(){var e=t.scale-t.settings.scale;e<1&&(e=1),t.beginZoom(e),t.zoomImage(e,-t.settings.scale,!0,!t.settings.infiniteZoom)},e)}}),this.core.getElementById("lg-zoom-in").on("click.lg",function(){t.zoomIn()}),this.core.getElementById("lg-actual-size").on("click.lg",function(){t.setActualSize(t.core.index)}),this.core.LGel.on("lgBeforeOpen.zoom",function(){t.core.outer.find(".lg-item").removeClass("lg-zoomable")}),this.core.LGel.on("lgAfterOpen.zoom",function(){t.scrollTop=t.$LG(window).scrollTop(),t.pageX=t.core.outer.width()/2,t.pageY=t.core.outer.he
1ight()/2+t.scrollTop,t.scale=1}),this.core.LGel.on("lgAfterSlide.zoom",function(e){var n=e.detail.prevIndex;t.scale=1,t.positionChanged=!1,t.zoomInProgress=!1,t.resetZoom(n),t.resetImageTranslate(n),t.isImageSlide(t.core.index)&&t.setZoomEssentials()}),this.zoomDrag(),this.pinchZoom(),this.zoomSwipe(),this.zoomableTimeout=!1,this.positionChanged=!1,this.zoomInProgress=!1}},t.prototype.zoomIn=function(){if(this.isImageSlide(this.core.index)){var t=this.scale+this.settings.scale;this.settings.infiniteZoom||(t=this.getScale(t)),this.beginZoom(t),this.zoomImage(t,Math.min(this.settings.scale,t-this.scale),!0,!this.settings.infiniteZoom)}},t.prototype.resetZoom=function(t){this.core.outer.removeClass("lg-zoomed lg-zoom-drag-transition");var e=this.core.getElementById("lg-actual-size"),n=this.core.getSlideItem(void 0!==t?t:this.core.index);e.removeClass(this.settings.actualSizeIcons.zoomOut).addClass(this.settings.actualSizeIcons.zoomIn),n.find(".lg-img-wrap").first().removeAttr("style"),n.find(".lg-image").first().removeAttr("style"),this.scale=1,this.left=0,this.top=0,this.setPageCords()},t.prototype.getTouchDistance=function(t){return Math.sqrt((t.touches[0].pageX-t.touches[1].pageX)*(t.touches[0].pageX-t.touches[1].pageX)+(t.touches[0].pageY-t.touches[1].pageY)*(t.touches[0].pageY-t.touches[1].pageY))},t.prototype.pinchZoom=function(){var t=this,e=0,n=!1,i=1,r=0,o=this.core.getSlideItem(this.core.index);this.core.outer.on("touchstart.lg",function(n){o=t.core.getSlideItem(t.core.index),t.isImageSlide(t.core.index)&&2===n.touches.length&&(n.preventDefault(),t.core.outer.hasClass("lg-first-slide-loading")||(i=t.scale||1,t.core.outer.removeClass("lg-zoom-drag-transition lg-zoom-dragging"),t.setPageCords(n),t.resetImageTranslate(t.core.index),t.core.touchAction="pinch",e=t.getTouchDistance(n)))}),this.core.$inner.on("touchmove.lg",function(s){if(2===s.touches.length&&"pinch"===t.core.touchAction&&(t.$LG(s.target).hasClass("lg-item")||o.get().contains(s.target))){s.preventDefault();var a=t.getTouchDistance(s),l=e-a;if(!n&&Math.abs(l)>5&&(n=!0),n){r=t.scale,t.scale=Math.round((Math.max(1,i+-(.02*l))+Number.EPSILON)*100)/100;var u=t.scale-r;t.zoomImage(t.scale,Math.round((u+Number.EPSILON)*100)/100,!1,!1)}}}),this.core.$inner.on("touchend.lg",function(i){if("pinch"===t.core.touchAction&&(t.$LG(i.target).hasClass("lg-item")||o.get().contains(i.target))){if(n=!1,e=0,t.scale<=1)t.resetZoom();else{var r=t.getCurrentImageActualSizeScale();if(t.scale>=r){var s=r-t.scale;0===s&&(s=.01),t.zoomImage(r,s,!1,!0)}t.manageActualPixelClassNames(),t.core.outer.addClass("lg-zoomed")}t.core.touchAction=void 0}})},t.prototype.touchendZoom=function(t,e,n,i,r){var o=e.x-t.x,s=e.y-t.y,a=Math.abs(o)/r+1,l=Math.abs(s)/r+1;a>2&&(a+=1),l>2&&(l+=1),o*=a,s*=l;var u=this.core.getSlideItem(this.core.index).find(".lg-img-wrap").first(),c={};c.x=this.left+o,c.y=this.top+s;var d=this.getPossibleSwipeDragCords();(Math.abs(o)>15||Math.abs(s)>15)&&(i&&(this.isBeyondPossibleTop(c.y,d.minY)?c.y=d.minY:this.isBeyondPossibleBottom(c.y,d.maxY)&&(c.y=d.maxY)),n&&(this.isBeyondPossibleLeft(c.x,d.minX)?c.x=d.minX:this.isBeyondPossibleRight(c.x,d.maxX)&&(c.x=d.maxX)),i?this.top=c.y:c.y=this.top,n?this.left=c.x:c.x=this.left,this.setZoomSwipeStyles(u,c),this.positionChanged=!0)},t.prototype.getZoomSwipeCords=function(t,e,n,i,r){var o={};if(i){if(o.y=this.top+(e.y-t.y),this.isBeyondPossibleTop(o.y,r.minY)){var s=r.minY-o.y;o.y=r.minY-s/6}else if(this.isBeyondPossibleBottom(o.y,r.maxY)){var a=o.y-r.maxY;o.y=r.maxY+a/6}}else o.y=this.top;if(n){if(o.x=this.left+(e.x-t.x),this.isBeyondPossibleLeft(o.x,r.minX)){var l=r.minX-o.x;o.x=r.minX-l/6}else if(this.isBeyondPossibleRight(o.x,r.maxX)){var u=o.x-r.maxX;o.x=r.maxX+u/6}}else o.x=this.left;return o},t.prototype.isBeyondPossibleLeft=function(t,e){return t>=e},t.prototype.isBeyondPossibleRight=function(t,e){return t<=e},t.prototype.isBeyondPossibleTop=function(t,e){return t>=e},t.prototype.isBeyondPossibleBottom=function(t,e){return t<=e},t.prototype.isImageSlide=function(t){var e=this.core.galleryItems[t];return"image"===this.core.getSlideType(e)},t.prototype.getPossibleSwipeDragCords=function(t){var e=this.core.getSlideItem(this.core.index).find(".lg-image").first(),n=this.core.mediaContainerPosition.bottom,i=e.get().getBoundingClientRect(),r=i.height,o=i.width;return t&&(r+=t*r,o+=t*o),{minY:(r-this.containerRect.height)/2,maxY:(this.containerRect.height-r)/2+n,minX:(o-this.containerRect.width)/2,maxX:(this.containerRect.width-o)/2}},t.prototype.setZoomSwipeStyles=function(t,e){t.css("transform","translate3d("+e.x+"px, "+e.y+"px, 0)")},t.prototype.zoomSwipe=function(){var t,e,n=this,i={},r={},o=!1,s=!1,a=!1,l=new Date,u=new Date,c=this.core.getSlideItem(this.core.index);this.core.$inner.on("touchstart.lg",function(r){if(n.isImageSlide(n.core.index)&&(c=n.core.getSlideItem(n.core.index),(n.$LG(r.target).hasClass("lg-item")||c.get().contains(r.target))&&1===r.touches.length&&n.core.outer.hasClass("lg-zoomed"))){r.preventDefault(),l=new Date,n.core.touchAction="zoomSwipe",e=n.core.getSlideItem(n.core.index).find(".lg-img-wrap").first();var o=n.getDragAllowedAxises(0);
1a=o.allowY,((s=o.allowX)||a)&&(i=n.getSwipeCords(r)),t=n.getPossibleSwipeDragCords(),n.core.outer.addClass("lg-zoom-dragging lg-zoom-drag-transition")}}),this.core.$inner.on("touchmove.lg",function(l){if(1===l.touches.length&&"zoomSwipe"===n.core.touchAction&&(n.$LG(l.target).hasClass("lg-item")||c.get().contains(l.target))){l.preventDefault(),n.core.touchAction="zoomSwipe",r=n.getSwipeCords(l);var u=n.getZoomSwipeCords(i,r,s,a,t);(Math.abs(r.x-i.x)>15||Math.abs(r.y-i.y)>15)&&(o=!0,n.setZoomSwipeStyles(e,u))}}),this.core.$inner.on("touchend.lg",function(t){if("zoomSwipe"===n.core.touchAction&&(n.$LG(t.target).hasClass("lg-item")||c.get().contains(t.target))&&(t.preventDefault(),n.core.touchAction=void 0,n.core.outer.removeClass("lg-zoom-dragging"),o)){o=!1;var e=new Date().valueOf()-l.valueOf();n.touchendZoom(i,r,s,a,e)}})},t.prototype.zoomDrag=function(){var t,e,n,i,r=this,o={},s={},a=!1,l=!1,u=!1,c=!1;this.core.outer.on("mousedown.lg.zoom",function(e){if(r.isImageSlide(r.core.index)){var s=r.core.getSlideItem(r.core.index);if(r.$LG(e.target).hasClass("lg-item")||s.get().contains(e.target)){t=new Date,i=r.core.getSlideItem(r.core.index).find(".lg-img-wrap").first();var l=r.getDragAllowedAxises(0);c=l.allowY,u=l.allowX,r.core.outer.hasClass("lg-zoomed")&&r.$LG(e.target).hasClass("lg-object")&&(u||c)&&(e.preventDefault(),o=r.getDragCords(e),n=r.getPossibleSwipeDragCords(),a=!0,r.core.outer.removeClass("lg-grab").addClass("lg-grabbing lg-zoom-drag-transition lg-zoom-dragging"))}}}),this.$LG(window).on("mousemove.lg.zoom.global"+this.core.lgId,function(t){if(a){l=!0,s=r.getDragCords(t);var e=r.getZoomSwipeCords(o,s,u,c,n);r.setZoomSwipeStyles(i,e)}}),this.$LG(window).on("mouseup.lg.zoom.global"+this.core.lgId,function(n){if(a){if(e=new Date,a=!1,r.core.outer.removeClass("lg-zoom-dragging"),l&&(o.x!==s.x||o.y!==s.y)){s=r.getDragCords(n);var i=e.valueOf()-t.valueOf();r.touchendZoom(o,s,u,c,i)}l=!1}r.core.outer.removeClass("lg-grabbing").addClass("lg-grab")})},t.prototype.closeGallery=function(){this.resetZoom(),this.zoomInProgress=!1},t.prototype.destroy=function(){this.$LG(window).off(".lg.zoom.global"+this.core.lgId),this.core.LGel.off(".lg.zoom"),this.core.LGel.off(".zoom"),clearTimeout(this.zoomableTimeout),this.zoomableTimeout=!1},t}(),ru=function(){var t;function e(t){var n,i;if(!(this instanceof e))throw TypeError("Cannot call a class as a function");i=void 0,(n="core")in this?Object.defineProperty(this,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):this[n]=i,this.core=t}return t=[{key:"init",value:function(){var t=this;1!==this.core.getItems().length&&(this.core.$toolbar.append('\n <button\n type="button"\n aria-label="G\xe5 til sidste billede"\n class="lg-icon custom-icon icon-arrow-double-right"\n data-lg-goto-last\n ></button>').append('\n <button\n type="button"\n aria-label="G\xe5 til f\xf8rste billede"\n class="lg-icon custom-icon icon-arrow-double-left"\n data-lg-goto-first\n ></button>'),this.core.outer.find("[data-lg-goto-first]").first().on("click.lg",function(){t.core.slide(0)}),this.core.outer.find("[data-lg-goto-last]").first().on("click.lg",function(){t.core.slide(t.core.getItems().length-1)}))}}],function(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}(e.prototype,t),e}();let rc=function(t){void 0!==window.utag&&window.utag.link({tealium_event:"gallery_view",viewed_image:t})},rd=function(t){var e,n=null==(e=t.querySelector("[data-image-tracking-data]"))?void 0:e.dataset.imageTrackingData;n&&rc(JSON.parse(n))};var rh=function(t){var e,n,i=t.querySelectorAll("[data-gallery-entrypoint]"),r=null!=(e=null==(n=t.querySelectorAll("[data-gallery-image]"))?void 0:n.length)?e:0,o=0;i.forEach(function(t){var e,n=t.querySelectorAll("[data-gallery-image]"),i=t.querySelector("[data-gallery-counter]"),s=null==(e=document.querySelector("[data-gallery-counter-total]"))?void 0:e.getAttribute("data-gallery-counter-total");s&&(r=parseInt(s,10)),i&&(i.innerText="".concat(o+1,"/").concat(r)),o+=n.length})},rf=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"1";n.e(441).then(n.bind(n,2280));var i=new i1(t,{licenseKey:"B2E8E2D0-6005-4A69-83A9-79B7DAD663CE",galleryId:e,addClass:"lg-article-gallery",plugins:[i5,re,ro,rl,ru],selector:"[data-gallery-image]",allowMediaOverlap:!0,toggleThumb:!0,download:!1,exThumbImage:"data-thumb-src",pinterest:!1,closeOnTap:!1,loop:!0,mobileSettings:{showCloseIcon:!0,controls:!1},strings:{download:"Download billede",closeGallery:"Luk galleri",nextSlide:"N\xe6ste billede",previousSlide:"Forrige billede",mediaLoadingFailed:"Billedet kunne ikke indl\xe6ses",toggleMaximize:"Skift til fuld sk\xe6rm",playVideo:"Afspil video"},sharePluginStrings:{share:"Del"},twitterDropdownText:"Del p\xe5 X",facebookDropdownText:"Del p\xe5 Facebook",thumbnailPluginStrings:{toggleThumbnails:"Skjul/Vis thumbnails"},zoomPluginStrings:{zoomIn:"Zoom ind",zoomOut:"Zoom ud",viewActualSize:"Se i fuld st\xf8rrelse"}});t.addEventListener("lgAfterSlide",function(t){var e=t.detail.index,n=i.items[e];n&&rd(n)})},rg=function(t,e){var n=t.querySelectorAll("[data-gallery-entrypoint]");
10!==n.length&&n.forEach(function(t){var n=t.querySelector("[data-gallery-image]");n&&e(n)})};let rp=function(){var t=document.querySelectorAll("[data-gallery-container]");0!==t.length&&t.forEach(function(t,e){rh(t),eM()?rg(t,function(t){var e;null==(e=t.querySelector("#zephr-gallery-sales"))||e.remove(),t.classList.remove("clickable")}):0===document.querySelectorAll("[data-zephr-gallery]").length&&ej()?rg(t,function(t){t.addEventListener("click",function(t){t.preventDefault(),window.dispatchEvent(new CustomEvent("kodus.zephr.gallery"))},!0)}):rf(t,"".concat(e+1))})};function rm(t,e,n,i,r,o,s){try{var a=t[o](s),l=a.value}catch(t){n(t);return}a.done?e(l):Promise.resolve(l).then(i,r)}function rv(t){return function(){var e=this,n=arguments;return new Promise(function(i,r){var o=t.apply(e,n);function s(t){rm(o,i,r,s,a,"next",t)}function a(t){rm(o,i,r,s,a,"throw",t)}s(void 0)})}}function ry(t,e){var n,i,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),a=Object.defineProperty;return a(s,"next",{value:l(0)}),a(s,"throw",{value:l(1)}),a(s,"return",{value:l(2)}),"function"==typeof Symbol&&a(s,Symbol.iterator,{value:function(){return this}}),s;function l(a){return function(l){var u=[a,l];if(n)throw TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(o=0)),o;)try{if(n=1,i&&(r=2&u[0]?i.return:u[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,u[1])).done)return r;switch(i=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,i=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=e.call(t,o)}catch(t){u=[6,t],i=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var rb=function(t){return new Promise(function(e){var n=new FileReader;n.onloadend=function(){return e(n.result)},n.onerror=function(){return e("")},n.readAsDataURL(t)})},r_=function(t){var e;return(null==(e=t.match(/\((.*?)\)/))?void 0:e[1].replace(/(['"])/g,""))||""},rw=function(t,e){t.forEach(function(t,n){var i,r=new Image;r.src=e[n],null==(i=t.parentElement)||i.append(r),t.remove()})};function rS(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function rI(t,e,n,i,r,o,s){try{var a=t[o](s),l=a.value}catch(t){n(t);return}a.done?e(l):Promise.resolve(l).then(i,r)}var rx=function(){var t;return(t=function(){var t,e,n,i,r;return function(t,e){var n,i,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),a=Object.defineProperty;return a(s,"next",{value:l(0)}),a(s,"throw",{value:l(1)}),a(s,"return",{value:l(2)}),"function"==typeof Symbol&&a(s,Symbol.iterator,{value:function(){return this}}),s;function l(a){return function(l){var u=[a,l];if(n)throw TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(o=0)),o;)try{if(n=1,i&&(r=2&u[0]?i.return:u[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,u[1])).done)return r;switch(i=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,i=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=e.call(t,o)}catch(t){u=[6,t],i=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(s){switch(s.label){case 0:var a,l,u;if(document.querySelector(".print-article")||(e=document.createElement("div"),n=document.querySelector("body"),i=document.querySelector(".article.article-layout__content"),!(r=document.querySelector(".page"))||!n||!i))return[2];return(t=e.classList).add.apply(t,["print-article"].concat(function(t){if(Array.isArray(t))return rS(t)}(a=r.classList.value.split(" "))||function(t){if("u">typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(a)||function(t){if(t){if("string"==typeof t)return rS(t,void 0);var e=Object.prototype.toString.call(t).slice(8,-1);if("Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e)return Array.from(e);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return rS(t,void 0)}}(a)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),e.innerHTML=i.innerHTML.replace('loading="lazy"',"").replace("loading='lazy'",""),[4,(l=r,u=e,rv(function(){var t,e;return ry(this,function(n){switch(n.label){case 0:var i;return[4,(i=(t=Array.from(u.querySelectorAll("[".concat(o,"]")))).map(function(t){var e,n=null==(e=t.dataset.lazyImage)?void 0:e.split(" ").filter(function(t,e){return e%2==0}
1);return(null==n?void 0:n.pop())||r_(t.style.backgroundImage)||""}),rv(function(){return ry(this,function(t){return[2,Promise.all(i.map(function(t){return rv(function(){return ry(this,function(e){return -1!==t.indexOf("data:image")?[2,t]:[2,fetch("".concat(t,"?mode=fetch"),{mode:"cors",cache:"no-cache"}).then(function(t){return t.blob()}).then(rb)]})})()}))]})})())];case 1:return e=n.sent(),rw(t,e),l.querySelectorAll("[".concat(o,"]")).forEach(function(t){return t.removeAttribute(o)}),[2]}})})())];case 1:return s.sent(),r.classList.add("print-hidden"),n.append(e),[2]}})},function(){var e=this,n=arguments;return new Promise(function(i,r){var o=t.apply(e,n);function s(t){rI(o,i,r,s,a,"next",t)}function a(t){rI(o,i,r,s,a,"throw",t)}s(void 0)})})()};let rk=function(){document.querySelectorAll("[data-print-button]").forEach(function(t){return t.addEventListener("click",function(){rx().then(function(){window.print()})})})};function rT(t,e,n,i,r,o,s){try{var a=t[o](s),l=a.value}catch(t){n(t);return}a.done?e(l):Promise.resolve(l).then(i,r)}function rC(t){return function(){var e=this,n=arguments;return new Promise(function(i,r){var o=t.apply(e,n);function s(t){rT(o,i,r,s,a,"next",t)}function a(t){rT(o,i,r,s,a,"throw",t)}s(void 0)})}}function rE(t,e){var n,i,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),a=Object.defineProperty;return a(s,"next",{value:l(0)}),a(s,"throw",{value:l(1)}),a(s,"return",{value:l(2)}),"function"==typeof Symbol&&a(s,Symbol.iterator,{value:function(){return this}}),s;function l(a){return function(l){var u=[a,l];if(n)throw TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(o=0)),o;)try{if(n=1,i&&(r=2&u[0]?i.return:u[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,u[1])).done)return r;switch(i=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,i=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=e.call(t,o)}catch(t){u=[6,t],i=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var rO=function(){var t,e,n;e=null==(t=document.querySelector("[".concat(iT,"]")))?void 0:t.getAttribute(iT),n=window.enable_banner_ads,"long-read"===e&&(n=!1),window.enable_banner_ads=n,eD(),window.tealiumDebateEvents=[],ed().then(function(){document.addEventListener("debate.createContribution",function(t){return ef({tealium_event:"debate_create_contribution",debate_created_contribution:eh(t)})}),document.addEventListener("debate.updateContribution",function(t){return ef({tealium_event:"debate_update_contribution",debate_updated_contribution:eh(t)})})}),(function(){var t=document.querySelector(".article");if(null===t)throw Error("Article not found");if("true"===t.getAttribute("data-is-native"))return Promise.resolve({paidArticle:!1,paywalled:!1,isCrawler:!1});if(t.getAttribute("data-is-crawler"))return Promise.resolve({paidArticle:!1,paywalled:!1,isCrawler:!0});var e=t.getAttribute("data-load-async-url");if(!e)throw Error("Article content cannot be loaded");return fetch(e,{credentials:"same-origin"}).then(function(e){if(200===e.status){var n=e.headers.get("X-Is-Crawler");return e.text().then(function(e){return iD(t),ij(t,e),{paidArticle:!0,paywalled:!1,isCrawler:"1"===n}})}throw Error("unexpected ".concat(e.status," response for loading content"))})})().then(function(t){return rC(function(){return rE(this,function(e){if(document.addEventListener(eF,function(){return rC(function(){return rE(this,function(e){switch(e.label){case 0:if(t.paywalled||rp(),!t.paidArticle)return[3,2];return[4,hasBannerFreeSubscription()];case 1:iL.apply(void 0,[e.sent()]),e.label=2;case 2:return[2]}})})()}),t.isCrawler||ix(),document.dispatchEvent(new Event("JFMPaywallSetupDone")),b(),t7(),Array.from(document.querySelectorAll("[data-factbox]")).map(iz),n=!(f()&&"ontouchstart"in window),i=navigator.canShare&&navigator.canShare({title:"share",url:"https://example.org",text:"test canShare"}),r=!n&&i,Array.from(document.querySelectorAll("[data-share]")).forEac
1h(function(t){var e,n,i=null==(e=t.querySelector(".icon-share-link"))?void 0:e.parentElement,o=t.dataset,s=o.shareTitle,a=o.shareUrl,l=o.shareDescription,u=t.querySelector("[data-share-button]"),c=t.querySelector(".share-modal"),d=t.querySelector("[data-share-copy-link]"),h=null==d?void 0:d.querySelector(".icon");r&&(null==(n=t.querySelector(".share__button.icon-print"))||n.classList.remove("is-hidden"));var f=function(){null==h||h.classList.add("icon-share-link"),null==h||h.classList.remove("icon-check"),null==c||c.close()};null==u||u.addEventListener("click",function(){var t;r?navigator.share({title:s,url:a,text:l}):(null==c||c.showModal(),null==c||null==(t=c.querySelector(".icon-close"))||t.addEventListener("click",f,{once:!0}))}),null==i||i.addEventListener("click",function(){var t,e=null==i||null==(t=i.parentElement)?void 0:t.parentElement,n=null==e?void 0:e.querySelector(".share__confirmation"),r="share__confirmation--hidden";if(null!=n){n.classList.toggle(r);var o=n.querySelector(".share__confirmation_input");if(n.classList.contains(r))return void o.removeEventListener("click",ik);o.addEventListener("click",ik)}}),null==d||d.addEventListener("click",function(){var t=d.dataset.articleUrl;t&&window.navigator.clipboard.writeText(t).then(function(){null==h||h.classList.remove("icon-share-link"),null==h||h.classList.add("icon-check")})})}),rk(),s=0,o=window.setInterval(function(){var t=document.documentElement.getAttribute("class");if(t&&t.includes("adform-wallpaper-")){Array.from(document.querySelectorAll("[data-sticky-banner]")).forEach(function(t){t.classList.add("adform__sticky-banner--below-fold")}),window.clearInterval(o);return}10===(s+=1)&&window.clearInterval(o)},500),c(),document.addEventListener("personalised_content_loaded",c),document.querySelectorAll("[data-avisendanmark-latest]").forEach(function(t){var e=t.dataset,n=e.url,i=e.currentSiteUrl;t&&n&&tu(tJ(er,{url:n,currentSite:null!=i?i:""}),t)}),document.querySelectorAll("[data-editor-section-block]").forEach(function(t){var e=t.dataset,n=e.amount,i=e.baseUrl,r=e.contentUrl,o=e.aboutSlug,s=e.aboutText,a=e.title,l=e.lead,u=e.target,c=e.currentSiteUrl;n&&i&&r&&o&&s&&a&&l&&u&&tu(tJ(eu,{amount:parseFloat(n),baseUrl:i,contentUrl:r,aboutSlug:o,aboutText:s,title:a,lead:l,target:u,currentSite:null!=c?c:""}),t)}),t.paidArticle&&e1().finally(function(){return rC(function(){return rE(this,function(t){switch(t.label){case 0:return[4,hasBannerFreeSubscription()];case 1:return[2,iL.apply(void 0,[t.sent()])]}})})()}),e_(),eA(),e1().then(function(){if(eM()){var t=document.getElementById("below-paywall-block-location");null==t||t.classList.remove("is-hidden")}}),!t.paywalled){e1().finally(rp);var n,i,r,o,s,a=document.querySelector("[data-speechkit-project-id]"),l=null==a?void 0:a.getAttribute("data-article-url");if(null!==a&&l){var u=a.getAttribute("data-speechkit-project-id"),d=document.createElement("script");d.src="https://proxy.beyondwords.io/npm/@beyondwords/player@latest/dist/umd.js",d.onload=function(){return new window.BeyondWords.Player({target:d,projectId:u,sourceUrl:l})},d.defer=!0,d.async=!0,a.appendChild(d)}}return window.enable_banner_ads||document.querySelectorAll(".adblock").forEach(function(t){return t.remove()}),void 0!==window.checkEnabledAdPositions&&window.checkEnabledAdPositions(),[2]})})()})};document.addEventListener("DOMContentLoaded",function(){rO()})}},r={};function o(t){var e=r[t];if(void 0!==e)return e.exports;var n=r[t]={id:t,exports:{}};return i[t](n,n.exports,o),n.exports}o.m=i,o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e,n)=>{var i=(e,n)=>{for(var i in e)o.o(e,i)&&!o.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,[n]:e[i]})};i(e,"get"),i(n,"value")},o.f={},o.e=t=>Promise.all(Object.keys(o.f).reduce((e,n)=>(o.f[n](t,e),e),[])),o.u=t=>""+t+".js",o.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(t){if("object"==typeof window)return window}})(),o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),s={},o.l=function(t,e,n,i){if(s[t])return void s[t].push(e);if(void 0!==n)for(var r,a,l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var c=l[u];if(c.getAttribute("src")==t||c.getAttribute("data-rspack")=="jfm-site:"+n){r=c;break}}r||(a=!0,(r=document.createElement("script")).timeout=120,o.nc&&r.setAttribute("nonce",o.nc),r.setAttribute("data-rspack","jfm-site:"+n),r.src=t),s[t]=[e];var d=function(e,n){r.onerror=r.onload=null,clearTimeout(h);var i=s[t];if(delete s[t],r.parentNode&&r.parentNode.removeChild(r),i&&i.forEac
1h(function(t){return t(n)}),e)return e(n)},h=setTimeout(d.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=d.bind(null,r.onerror),r.onload=d.bind(null,r.onload),a&&document.head.appendChild(r)},o.r=t=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.nc=void 0,o.g.importScripts&&(a=o.g.location+"");var s,a,l=o.g.document;if(!a&&l&&(l.currentScript&&"SCRIPT"===l.currentScript.tagName.toUpperCase()&&(a=l.currentScript.src),!a)){var u=l.getElementsByTagName("script");if(u.length)for(var c=u.length-1;c>-1&&(!a||!/^http(s?):/.test(a));)a=u[c--].src}if(!a)throw Error("Automatic publicPath is not supported in this browser");o.p=a=a.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.b=document.baseURI||self.location.href,t={152:0},o.f.j=function(e,n){var i=o.o(t,e)?t[e]:void 0;if(0!==i)if(i)n.push(i[2]);else{var r=new Promise((n,r)=>i=t[e]=[n,r]);n.push(i[2]=r);var s=o.p+o.u(e),a=Error();o.l(s,function(n){if(o.o(t,e)&&(0!==(i=t[e])&&(t[e]=void 0),i)){var r=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.src;a.message="Loading chunk "+e+" failed.\n("+r+": "+s+")",a.name="ChunkLoadError",a.type=r,a.request=s,i[1](a)}},"chunk-"+e,e)}},e=(e,n)=>{var i,r,[s,a,l]=n,u=0;if(s.some(e=>0!==t[e])){for(i in a)o.o(a,i)&&(o.m[i]=a[i]);l&&l(o)}for(e&&e(n);u<s.length;u++)r=s[u],o.o(t,r)&&t[r]&&t[r][0](),t[r]=0},(n=self.rspackChunkjfm_site=self.rspackChunkjfm_site||[]).forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n)),article=o(1311)})();
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.