PageSourceSearch

https://www.metsalehti.fi/wp-content/themes/metsalehti-theme/dist/script.js?ver=1790234119

js metsalehti.fi collected 2026-09-24 22:28:40 UTC 62,040 bytes, 2 lines download raw bytes

1/*! For license information please see script.js.LICENSE.txt */
2(()=>{var t={6858(){!function(t){t.fn.appendAround=function(){return this.each(function(){var e=t(this),n="data-set",r=e.parent(),i=r[0],o=r.attr(n),a=t("["+n+"='"+o+"']");function s(e){return"none"===t(e).css("display")}function c(){if(s(i)){var t=0;a.each(function(){s(this)||t||(e.appendTo(this),t++,i=this)})}}c(),t(window).on("resize",c)})}}(jQuery)},6099(t,e){var n,r,i;!function(o){"use strict";function a(t,e,n){"addEventListener"in window?t.addEventListener(e,n,!1):"attachEvent"in window&&t.attachEvent("on"+e,n)}function s(t,e,n){"removeEventListener"in window?t.removeEventListener(e,n,!1):"detachEvent"in window&&t.detachEvent("on"+e,n)}function c(t){return P+"["+function(t){var e="Host page: "+t;return window.top!==window.self&&(e=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+t:"Nested host page: "+t),e}(t)+"]"}function u(t){return W[t]?W[t].log:A}function l(t,e){p("log",t,e,u(t))}function f(t,e){p("info",t,e,u(t))}function d(t,e){p("warn",t,e,!0)}function p(t,e,n,r){!0===r&&"object"==typeof window.console&&console[t](c(e),n)}function h(t){function e(){n("Height"),n("Width"),k(function(){x(S),v($),p("resizedCallback",S)},S,"init")}function n(t){var e=Number(W[$]["max"+t]),n=Number(W[$]["min"+t]),r=t.toLowerCase(),i=Number(S[r]);l($,"Checking "+r+" is in range "+n+"-"+e),n>i&&(i=n,l($,"Set "+r+" to min value")),i>e&&(i=e,l($,"Set "+r+" to max value")),S[r]=""+i}function r(t){return h.substr(h.indexOf(":")+F+t)}function i(t,e){C(function(){T("Send Page Info","pageInfo:"+function(){var t=document.body.getBoundingClientRect(),e=S.iframe.getBoundingClientRect();return JSON.stringify({iframeHeight:e.height,iframeWidth:e.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(e.top-t.top,10),offsetLeft:parseInt(e.left-t.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset})}(),t,e)},32)}function o(t){var e=t.getBoundingClientRect();return y($),{x:Math.floor(Number(e.left)+Number(R.x)),y:Math.floor(Number(e.top)+Number(R.y))}}function c(t){var e=t?o(S.iframe):{x:0,y:0},n={x:Number(S.width)+e.x,y:Number(S.height)+e.y};l($,"Reposition requested from iFrame (offset x:"+e.x+" y:"+e.y+")"),window.top!==window.self?window.parentIFrame?window.parentIFrame["scrollTo"+(t?"Offset":"")](n.x,n.y):d($,"Unable to scroll to requested position, window.parentIFrame not found"):(R=n,u(),l($,"--"))}function u(){!1!==p("scrollCallback",R)?v($):b()}function p(t,e){return m($,t,e)}var h=t.data,S={},$=null;"[iFrameResizerChild]Ready"===h?function(){for(var t in W)T("iFrame requested init",j(t),document.getElementById(t),t)}():P===(""+h).substr(0,N)&&h.substr(N).split(":")[0]in W?(S=function(){var t=h.substr(N).split(":");return{iframe:W[t[0]].iframe,id:t[0],height:t[1],width:t[2],type:t[3]}}(),$=S.id,W[$].loaded=!0,!function(){var t=S.type in{true:1,false:1,undefined:1};return t&&l($,"Ignoring init message from meta parent page"),t}()&&function(t){var e=!0;return W[t]||(e=!1,d(S.type+" No settings for "+t+". Message was: "+h)),e}($)&&(l($,"Received: "+h),function(){var t=!0;return null===S.iframe&&(d($,"IFrame ("+S.id+") not found"),t=!1),t}()&&function(){var e=t.origin,n=W[$].checkOrigin;if(n&&""+e!="null"&&!(n.constructor===Array?function(){var t=0,r=!1;for(l($,"Checking connection is from allowed list of origins: "+n);t<n.length;t++)if(n[t]===e){r=!0;break}return r}():function(){var t=W[$].remoteHost;return l($,"Checking connection is from: "+t),e===t}()))throw new Error("Unexpected message received from: "+e+" for "+S.iframe.id+". Message was: "+t.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}()&&function(){switch(W[$].firstRun&&(W[$].firstRun=!1),S.type){case"close":g(S.iframe);break;case"message":!function(t){l($,"MessageCallback passed: {iframe: "+S.iframe.id+", message: "+t+"}"),p("messageCallback",{iframe:S.iframe,message:JSON.parse(t)}),l($,"--")}(r(6));break;case"scrollTo":c(!1);break;case"scrollToOffset":c(!0);break;case"pageInfo":i(W[$].iframe,$),function(){function t(t,r){function o(){W[n]?i(W[n].iframe,n):e()}["scroll","resize"].forEach(function(e){l(n,t+e+" listener for sendPageInfo"),r(window,e,o)})}function e(){t("Remove ",s)}var n=$;t("Add ",a),W[n].stopPageInfo=e}();break;case"pageInfoStop":W[$]&&W[$].stopPageInfo&&(W[$].stopPageInfo(),delete W[$].stopPageInfo);break;case"inPageLink":!function(t){var e=t.split("#")[1]||"",n=decodeURIComponent(e),r=document.getElementById(n)||document.getElementsByName(n)[0];r?function(){var t=o(r);l($,"Moving to in page link (#"+e+") at x: "+t.x+" y: "+t.y),R={x:t.x,y:t.y},u(),l($,"--")}():window.top!==window.self?window.parentIFrame?window.parentIFrame.moveToAnchor(e):l($,"In page link #"+e+" not found and window.parentIFrame not found"):l($,"In page link #"+e+" not found")}(r(9));break;case"reset":w(S);break;case"init":e(),p("initCallback",S.iframe);break;default:e()}}())):f($,"Ignored: "+h)}function m(t,e,n){var r=null,i=null;if(W[t]){if("function"!=typeof(r=W[t][e]))throw new TypeError(e+" on iFrame["+t+"] is not a function");i=r(n)}return i}
2function g(t){var e=t.id;l(e,"Removing iFrame: "+e),t.parentNode&&t.parentNode.removeChild(t),m(e,"closedCallback",e),l(e,"--"),delete W[e]}function y(t){null===R&&l(t,"Get page position: "+(R={x:window.pageXOffset!==o?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==o?window.pageYOffset:document.documentElement.scrollTop}).x+","+R.y)}function v(t){null!==R&&(window.scrollTo(R.x,R.y),l(t,"Set page position: "+R.x+","+R.y),b())}function b(){R=null}function w(t){l(t.id,"Size reset requested by "+("init"===t.type?"host page":"iFrame")),y(t.id),k(function(){x(t),T("reset","reset",t.iframe,t.id)},t,"reset")}function x(t){function e(e){t.iframe.style[e]=t[e]+"px",l(t.id,"IFrame ("+i+") "+e+" set to "+t[e]+"px")}function n(e){I||"0"!==t[e]||(I=!0,l(i,"Hidden iFrame detected, creating visibility listener"),function(){function t(){function t(t){function e(e){return"0px"===W[t].iframe.style[e]}function n(t){return null!==t.offsetParent}n(W[t].iframe)&&(e("height")||e("width"))&&T("Visibility change","resize",W[t].iframe,t)}for(var e in W)t(e)}function e(e){l("window","Mutation observed: "+e[0].target+" "+e[0].type),C(t,16)}function n(){var t=document.querySelector("body"),n={attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0};new r(e).observe(t,n)}var r=window.MutationObserver||window.WebKitMutationObserver;r&&n()}())}function r(t){e(t),n(t)}var i=t.iframe.id;W[i]&&(W[i].sizeHeight&&r("height"),W[i].sizeWidth&&r("width"))}function k(t,e,n){n!==e.type&&L?(l(e.id,"Requesting animation frame"),L(t)):t()}function T(t,e,n,r,i){var o=!1;r=r||n.id,W[r]&&(n&&"contentWindow"in n&&null!==n.contentWindow?function(){var i=W[r].targetOrigin;l(r,"["+t+"] Sending msg to iframe["+r+"] ("+e+") targetOrigin: "+i),n.contentWindow.postMessage(P+e,i)}():d(r,"["+t+"] IFrame("+r+") not found"),i&&W[r].warningTimeout&&(W[r].msgTimeout=setTimeout(function(){W[r].loaded||o||(o=!0,d(r,"IFrame has not responded within "+W[r].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ingored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))},W[r].warningTimeout)))}function j(t){return t+":"+W[t].bodyMarginV1+":"+W[t].sizeWidth+":"+W[t].log+":"+W[t].interval+":"+W[t].enablePublicMethods+":"+W[t].autoResize+":"+W[t].bodyMargin+":"+W[t].heightCalculationMethod+":"+W[t].bodyBackground+":"+W[t].bodyPadding+":"+W[t].tolerance+":"+W[t].inPageLinks+":"+W[t].resizeFrom+":"+W[t].widthCalculationMethod}function S(t,e){var n=function(n){return""===n&&(t.id=n=function(){var t=e&&e.id||D.id+M++;return null!==document.getElementById(t)&&(t+=M++),t}(),A=(e||{}).log,l(n,"Added missing iframe ID: "+n+" ("+t.src+")")),n}(t.id);n in W&&"iFrameResizer"in t?d(n,"Ignored iFrame, already setup."):(function(e){e=e||{},W[n]={firstRun:!0,iframe:t,remoteHost:t.src.split("/").slice(0,3).join("/")},function(t){if("object"!=typeof t)throw new TypeError("Options is not an object")}(e),function(t){for(var e in D)D.hasOwnProperty(e)&&(W[n][e]=t.hasOwnProperty(e)?t[e]:D[e])}(e),W[n].targetOrigin=!0===W[n].checkOrigin?function(t){return""===t||"file://"===t?"*":t}(W[n].remoteHost):"*"}(e),function(){switch(l(n,"IFrame scrolling "+(W[n].scrolling?"enabled":"disabled")+" for "+n),t.style.overflow=!1===W[n].scrolling?"hidden":"auto",W[n].scrolling){case!0:t.scrolling="yes";break;case!1:t.scrolling="no";break;default:t.scrolling=W[n].scrolling}}(),function(){function e(e){1/0!==W[n][e]&&0!==W[n][e]&&(t.style[e]=W[n][e]+"px",l(n,"Set "+e+" = "+W[n][e]+"px"))}function r(t){if(W[n]["min"+t]>W[n]["max"+t])throw new Error("Value for min"+t+" can not be greater than max"+t)}r("Height"),r("Width"),e("maxHeight"),e("minHeight"),e("maxWidth"),e("minWidth")}(),("number"==typeof W[n].bodyMargin||"0"===W[n].bodyMargin)&&(W[n].bodyMarginV1=W[n].bodyMargin,W[n].bodyMargin=W[n].bodyMargin+"px"),function(e){a(t,"load",function(){T("iFrame.onload",e,t,o,!0),function(){var e=W[n].firstRun,r=W[n].heightCalculationMethod in z;!e&&r&&w({iframe:t,height:0,width:0,type:"init"})}()}),T("init",e,t,o,!0)}(j(n)),Function.prototype.bind&&(W[n].iframe.iFrameResizer={close:g.bind(null,W[n].iframe),resize:T.bind(null,"Window resize","resize",W[n].iframe),moveToAnchor:function(t){T("Move to anchor","moveToAnchor:"+t,W[n].iframe,n)},sendMessage:function(t){T("Send Message","message:"+(t=JSON.stringify(t)),W[n].iframe,n)}}))}function C(t,e){null===H&&(H=setTimeout(function(){H=null,t()},e))}function $(t){l("window","Trigger event: "+t),C(function(){_("Window "+t,"resize")},16)}
2function O(){"hidden"!==document.visibilityState&&(l("document","Trigger event: Visiblity change"),C(function(){_("Tab Visable","resize")},16))}function _(t,e){function n(t){return"parent"===W[t].resizeFrom&&W[t].autoResize&&!W[t].firstRun}for(var r in W)n(r)&&T(t,e,document.getElementById(r),r)}function E(){a(window,"message",h),a(window,"resize",function(){$("resize")}),a(document,"visibilitychange",O),a(document,"-webkit-visibilitychange",O),a(window,"focusin",function(){$("focus")}),a(window,"focus",function(){$("focus")})}if("undefined"!=typeof window){var M=0,A=!1,I=!1,F=7,P="[iFrameSizer]",N=P.length,R=null,L=window.requestAnimationFrame,z={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},W={},H=null,D={autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",closedCallback:function(){},initCallback:function(){},messageCallback:function(){d("MessageCallback function not defined")},resizedCallback:function(){},scrollCallback:function(){return!0}};window.jQuery&&function(t){t.fn?t.fn.iFrameResize||(t.fn.iFrameResize=function(t){return this.filter("iframe").each(function(e,n){S(n,t)}).end()}):f("","Unable to bind to jQuery, it is not fully loaded.")}(window.jQuery),r=[],n=function(){function t(t,n){n&&(function(){if(!n.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==n.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+n.tagName+">")}(),S(n,t),e.push(n))}var e;return function(){var t,e=["moz","webkit","o","ms"];for(t=0;t<e.length&&!L;t+=1)L=window[e[t]+"RequestAnimationFrame"];L||l("setup","RequestAnimationFrame not supported")}(),E(),function(n,r){switch(e=[],function(t){t&&t.enablePublicMethods&&d("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(n),typeof r){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(r||"iframe"),t.bind(o,n));break;case"object":t(n,r);break;default:throw new TypeError("Unexpected data type ("+typeof r+")")}return e}},void 0===(i="function"==typeof n?n.apply(e,r):n)||(t.exports=i)}}()},9564(){window.$=window.jQuery},5985(t){t.exports=function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i=r(n(1));t.exports=i.default},function(t,e,n){"use strict";function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function i(t){return t&&t.__esModule?t:{default:t}}function o(){}function a(){var t=h.shift();if(t){var e=f.last(t);e.afterDequeue(),t.stream=s.apply(void 0,t),e.afterStreamStart()}}function s(t,e,n){function r(t){t=n.beforeWrite(t),m.write(t),n.afterWrite(t)}(m=new l.default(t,n)).id=p++,m.name=n.name||m.id,c.streams[m.name]=m;var i=t.ownerDocument,s={close:i.close,open:i.open,write:i.write,writeln:i.writeln};u(i,{close:o,open:o,write:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return r(e.join(""))},writeln:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return r(e.join("")+"\n")}});var f=m.win.onerror||o;return m.win.onerror=function(t,e,r){n.error({msg:t+" - "+e+": "+r}),f.apply(m.win,[t,e,r])},m.write(e,function(){u(i,s),m.win.onerror=f,n.done(),m=null,a()}),m}function c(t,e,n){if(f.isFunction(n))n={done:n};else if("clear"===n)return h=[],m=null,void(p=0);n=f.defaults(n,d);var r=[t=/^#/.test(t)?window.document.getElementById(t.substr(1)):t.jquery?t[0]:t,e,n];return t.postscribe={cancel:function(){r.stream?r.stream.abort():r[1]=o}},n.beforeEnqueue(r),h.push(r),m||a(),t.postscribe}e.__esModule=!0;var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};e.default=c;var l=i(n(2)),f=r(n(4)),d={afterAsync:o,afterDequeue:o,afterStreamStart:o,afterWrite:o,autoFix:!0,beforeEnqueue:o,beforeWriteToken:function(t){return t},beforeWrite:function(t){return t},done:o,error:function(t){throw new Error(t.msg)},releaseAsync:!1},p=0,h=[],m=null;u(c,{streams:{},queue:h,WriteStream:l.default})},function(t,e,n){"use strict";function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function i(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){var n=d+e,r=t.getAttribute(n);return l.existy(r)?String(r):r}function s(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=d+e;l.existy(n)&&""!==n?t.setAttribute(r,n):t.removeAttribute(r)}e.__esModule=!0;var c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u=i(n(3)),l=r(n(4)),f=!1,d="data-ps-",p="ps-style",h="ps-script",m=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,t),this.root=e,this.options=n,this.doc=e.ownerDocument,this.win=this.doc.defaultView||this.doc.parentWindow,this.parser=new u.default("",{autoFix:n.autoFix}),this.actuals=[e],this.proxyHistory="",this.proxyRoot=this.doc.createElement(e.nodeName),this.scriptStack=[],this.writeQueue=[],s(this.proxyRoot,"proxyof",0)}return t.prototype.write=function(){var t;for((t=this.writeQueue).push.apply(t,arguments);!this.deferredRemote&&this.writeQueue.length;){var e=this.writeQueue.shift();l.isFunction(e)?this._callFunction(e):this._writeImpl(e)}},t.prototype._callFunction=function(t){var e={type:"function",value:t.name||t.toString()};this._onScriptStart(e),t.call(this.win,this.doc),this._onScriptDone(e)},t.prototype._writeImpl=function(t){this.parser.append(t);for(var e=void 0,n=void 0,r=void 0,i=[];(e=this.parser.readToken())&&!(n=l.isScript(e))&&!(r=l.isStyle(e));)(e=this.options.beforeWriteToken(e))&&i.push(e);i.length>0&&this._writeStaticTokens(i),n&&this._handleScriptToken(e),r&&this._handleStyleToken(e)},t.prototype._writeStaticTokens=function(t){var e=this._buildChunk(t);return e.actual?(e.html=this.proxyHistory+e.actual,this.proxyHistory+=e.proxy,this.proxyRoot.innerHTML=e.html,f&&(e.proxyInnerHTML=this.proxyRoot.innerHTML),this._walkChunk(),f&&(e.actualInnerHTML=this.root.innerHTML),e):null},t.prototype._buildChunk=function(t){for(var e=this.actuals.length,n=[],r=[],i=[],o=t.length,a=0;a<o;a++){var s=t[a],c=s.toString();if(n.push(c),s.attrs){if(!/^noscript$/i.test(s.tagName)){var u=e++;r.push(c.replace(/(\/?>)/," "+d+"id="+u+" $1")),s.attrs.id!==h&&s.attrs.id!==p&&i.push("atomicTag"===s.type?"":"<"+s.tagName+" "+d+"proxyof="+u+(s.unary?" />":">"))}}else r.push(c),i.push("endTag"===s.type?c:"")}return{tokens:t,raw:n.join(""),actual:r.join(""),proxy:i.join("")}},t.prototype._walkChunk=function(){for(var t=void 0,e=[this.proxyRoot];l.existy(t=e.shift());){var n=1===t.nodeType;
2if(!n||!a(t,"proxyof")){n&&(this.actuals[a(t,"id")]=t,s(t,"id"));var r=t.parentNode&&a(t.parentNode,"proxyof");r&&this.actuals[r].appendChild(t)}e.unshift.apply(e,l.toArray(t.childNodes))}},t.prototype._handleScriptToken=function(t){var e=this,n=this.parser.clear();n&&this.writeQueue.unshift(n),t.src=t.attrs.src||t.attrs.SRC,(t=this.options.beforeWriteToken(t))&&(t.src&&this.scriptStack.length?this.deferredRemote=t:this._onScriptStart(t),this._writeScriptToken(t,function(){e._onScriptDone(t)}))},t.prototype._handleStyleToken=function(t){var e=this.parser.clear();e&&this.writeQueue.unshift(e),t.type=t.attrs.type||t.attrs.TYPE||"text/css",(t=this.options.beforeWriteToken(t))&&this._writeStyleToken(t),e&&this.write()},t.prototype._writeStyleToken=function(t){var e=this._buildStyle(t);this._insertCursor(e,p),t.content&&(e.styleSheet&&!e.sheet?e.styleSheet.cssText=t.content:e.appendChild(this.doc.createTextNode(t.content)))},t.prototype._buildStyle=function(t){var e=this.doc.createElement(t.tagName);return e.setAttribute("type",t.type),l.eachKey(t.attrs,function(t,n){e.setAttribute(t,n)}),e},t.prototype._insertCursor=function(t,e){this._writeImpl('<span id="'+e+'"/>');var n=this.doc.getElementById(e);n&&n.parentNode.replaceChild(t,n)},t.prototype._onScriptStart=function(t){t.outerWrites=this.writeQueue,this.writeQueue=[],this.scriptStack.unshift(t)},t.prototype._onScriptDone=function(t){return t!==this.scriptStack[0]?void this.options.error({msg:"Bad script nesting or script finished twice"}):(this.scriptStack.shift(),this.write.apply(this,t.outerWrites),void(!this.scriptStack.length&&this.deferredRemote&&(this._onScriptStart(this.deferredRemote),this.deferredRemote=null)))},t.prototype._writeScriptToken=function(t,e){var n=this._buildScript(t),r=this._shouldRelease(n),i=this.options.afterAsync;t.src&&(n.src=t.src,this._scriptLoadHandler(n,r?i:function(){e(),i()}));try{this._insertCursor(n,h),n.src&&!r||e()}catch(t){this.options.error(t),e()}},t.prototype._buildScript=function(t){var e=this.doc.createElement(t.tagName);return l.eachKey(t.attrs,function(t,n){e.setAttribute(t,n)}),t.content&&(e.text=t.content),e},t.prototype._scriptLoadHandler=function(t,e){function n(){t=t.onload=t.onreadystatechange=t.onerror=null}function r(){n(),null!=e&&e(),e=null}function i(t){n(),a(t),null!=e&&e(),e=null}function o(t,e){var n=t["on"+e];null!=n&&(t["_on"+e]=n)}var a=this.options.error;o(t,"load"),o(t,"error"),c(t,{onload:function(){if(t._onload)try{t._onload.apply(this,Array.prototype.slice.call(arguments,0))}catch(e){i({msg:"onload handler failed "+e+" @ "+t.src})}r()},onerror:function(){if(t._onerror)try{t._onerror.apply(this,Array.prototype.slice.call(arguments,0))}catch(e){return void i({msg:"onerror handler failed "+e+" @ "+t.src})}i({msg:"remote script failed "+t.src})},onreadystatechange:function(){/^(loaded|complete)$/.test(t.readyState)&&r()}})},t.prototype._shouldRelease=function(t){return!/^script$/i.test(t.nodeName)||!!(this.options.releaseAsync&&t.src&&t.hasAttribute("async"))},t}();e.default=m},function(t,e,n){!function(e,n){t.exports=n()}(0,function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i=r(n(1));t.exports=i.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var a=i(n(2)),s=i(n(3)),c=r(n(6)),u=n(5),l={comment:/^<!--/,endTag:/^<\//,atomicTag:/^<\s*(script|style|noscript|iframe|textarea)[\s\/>]/i,startTag:/^</,chars:/^[^<]/},f=function(){function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,t),this.stream=n;var i=!1,s={};for(var u in a)a.hasOwnProperty(u)&&(r.autoFix&&(s[u+"Fix"]=!0),i=i||s[u+"Fix"]);i?(this._readToken=(0,c.default)(this,s,function(){return e._readTokenImpl()}),this._peekToken=(0,c.default)(this,s,function(){return e._peekTokenImpl()})):(this._readToken=this._readTokenImpl,this._peekToken=this._peekTokenImpl)}return t.prototype.append=function(t){this.stream+=t},t.prototype.prepend=function(t){this.stream=t+this.stream},t.prototype._readTokenImpl=function(){var t=this._peekTokenImpl();if(t)return this.stream=this.stream.slice(t.length),t},t.prototype._peekTokenImpl=function(){for(var t in l)if(l.hasOwnProperty(t)&&l[t].test(this.stream)){var e=s[t](this.stream);if(e)return"startTag"===e.type&&/script|style/i.test(e.tagName)?null:(e.text=this.stream.substr(0,e.length),e)}},t.prototype.peekToken=function(){return this._peekToken()},t.prototype.readToken=function(){return this._readToken()},t.prototype.readTokens=function(t){for(var e=void 0;e=this.readToken();)if(t[e.type]&&!1===t[e.type](e))return},t.prototype.clear=function(){var t=this.stream;return this.stream="",t},t.prototype.rest=function(){return this.stream},t}();for(var d in e.default=f,f.tokenToString=function(t){return t.toString()},f.escapeAttributes=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=(0,u.escapeQuotes)(t[n],null));return e},f.supports=a,a)a.hasOwnProperty(d)&&(f.browserHasFlaw=f.browserHasFlaw||!a[d]&&d)},function(t,e){"use strict";
vendor: 4,951 bytes, line 2
2e.__esModule=!0;var n=!1,r=!1,i=window.document.createElement("div");try{var o="<P><I></P></I>";i.innerHTML=o,e.tagSoup=n=i.innerHTML!==o}catch(t){e.tagSoup=n=!1}try{i.innerHTML="<P><i><P></P></i></P>",e.selfClose=r=2===i.childNodes.length}catch(t){e.selfClose=r=!1}i=null,e.tagSoup=n,e.selfClose=r},function(t,e,n){"use strict";function r(t){var e=t.indexOf("--\x3e");if(e>=0)return new u.CommentToken(t.substr(4,e-1),e+3)}function i(t){var e=t.indexOf("<");return new u.CharsToken(e>=0?e:t.length)}function o(t){if(-1!==t.indexOf(">")){var e=t.match(l.startTag);if(e){var n=function(){var t={},n={},r=e[2];return e[2].replace(l.attr,function(e,i){arguments[2]||arguments[3]||arguments[4]||arguments[5]?arguments[5]?(t[arguments[5]]="",n[arguments[5]]=!0):t[i]=arguments[2]||arguments[3]||arguments[4]||l.fillAttr.test(i)&&i||"":t[i]="",r=r.replace(e,"")}),{v:new u.StartTagToken(e[1],e[0].length,t,n,!!e[3],r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""))}}();if("object"===(void 0===n?"undefined":c(n)))return n.v}}}function a(t){var e=o(t);if(e){var n=t.slice(e.length);if(n.match(new RegExp("</\\s*"+e.tagName+"\\s*>","i"))){var r=n.match(new RegExp("([\\s\\S]*?)</\\s*"+e.tagName+"\\s*>","i"));if(r)return new u.AtomicTagToken(e.tagName,r[0].length+e.length,e.attrs,e.booleanAttrs,r[1])}}}function s(t){var e=t.match(l.endTag);if(e)return new u.EndTagToken(e[1],e[0].length)}e.__esModule=!0;var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.comment=r,e.chars=i,e.startTag=o,e.atomicTag=a,e.endTag=s;var u=n(4),l={startTag:/^<([\-A-Za-z0-9_]+)((?:\s+[\w\-]+(?:\s*=?\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,endTag:/^<\/([\-A-Za-z0-9_]+)[^>]*>/,attr:/(?:([\-A-Za-z0-9_]+)\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))|(?:([\-A-Za-z0-9_]+)(\s|$)+)/g,fillAttr:/^(checked|compact|declare|defer|disabled|ismap|multiple|nohref|noresize|noshade|nowrap|readonly|selected)$/i}},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0,e.EndTagToken=e.AtomicTagToken=e.StartTagToken=e.TagToken=e.CharsToken=e.CommentToken=e.Token=void 0;var i=n(5),o=(e.Token=function t(e,n){r(this,t),this.type=e,this.length=n,this.text=""},e.CommentToken=function(){function t(e,n){r(this,t),this.type="comment",this.length=n||(e?e.length:0),this.text="",this.content=e}return t.prototype.toString=function(){return"\x3c!--"+this.content},t}(),e.CharsToken=function(){function t(e){r(this,t),this.type="chars",this.length=e,this.text=""}return t.prototype.toString=function(){return this.text},t}(),e.TagToken=function(){function t(e,n,i,o,a){r(this,t),this.type=e,this.length=i,this.text="",this.tagName=n,this.attrs=o,this.booleanAttrs=a,this.unary=!1,this.html5Unary=!1}return t.formatTag=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n="<"+t.tagName;for(var r in t.attrs)if(t.attrs.hasOwnProperty(r)){n+=" "+r;var o=t.attrs[r];void 0!==t.booleanAttrs&&void 0!==t.booleanAttrs[r]||(n+='="'+(0,i.escapeQuotes)(o)+'"')}return t.rest&&(n+=" "+t.rest),n+=t.unary&&!t.html5Unary?"/>":">",null!=e&&(n+=e+"</"+t.tagName+">"),n},t}());e.StartTagToken=function(){function t(e,n,i,o,a,s){r(this,t),this.type="startTag",this.length=n,this.text="",this.tagName=e,this.attrs=i,this.booleanAttrs=o,this.html5Unary=!1,this.unary=a,this.rest=s}return t.prototype.toString=function(){return o.formatTag(this)},t}(),e.AtomicTagToken=function(){function t(e,n,i,o,a){r(this,t),this.type="atomicTag",this.length=n,this.text="",this.tagName=e,this.attrs=i,this.booleanAttrs=o,this.unary=!1,this.html5Unary=!1,this.content=a}return t.prototype.toString=function(){return o.formatTag(this,this.content)},t}(),e.EndTagToken=function(){function t(e,n){r(this,t),this.type="endTag",this.length=n,this.text="",this.tagName=e}return t.prototype.toString=function(){return"</"+this.tagName+">"},t}()},function(t,e){"use strict";function n(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return t?t.replace(/([^"]*)"/g,function(t,e){return/\\/.test(e)?e+'"':e+'\\"'}):e}e.__esModule=!0,e.escapeQuotes=n},function(t,e){"use strict";function n(t){return t&&"startTag"===t.type&&(t.unary=s.test(t.tagName)||t.unary,t.html5Unary=!/\/>$/.test(t.text)),t}function r(t,e){var r=t.stream,i=n(e());return t.stream=r,i}function i(t,e){var n=e.pop();t.prepend("</"+n.tagName+">")}function o(){var t=[];return t.last=function(){return this[this.length-1]},t.lastTagNameEq=function(t){var e=this.last();return e&&e.tagName&&e.tagName.toUpperCase()===t.toUpperCase()},t.containsTagName=function(t){for(var e,n=0;e=this[n];n++)if(e.tagName===t)return!0;return!1},t}function a(t,e,a){function s(){var e=r(t,a);e&&l[e.type]&&l[e.type](e)}var u=o(),l={startTag:function(n){var r=n.tagName;
2"TR"===r.toUpperCase()&&u.lastTagNameEq("TABLE")?(t.prepend("<TBODY>"),s()):e.selfCloseFix&&c.test(r)&&u.containsTagName(r)?u.lastTagNameEq(r)?i(t,u):(t.prepend("</"+n.tagName+">"),s()):n.unary||u.push(n)},endTag:function(n){u.last()?e.tagSoupFix&&!u.lastTagNameEq(n.tagName)?i(t,u):u.pop():e.tagSoupFix&&(a(),s())}};return function(){return s(),n(a())}}e.__esModule=!0,e.default=a;var s=/^(AREA|BASE|BASEFONT|BR|COL|FRAME|HR|IMG|INPUT|ISINDEX|LINK|META|PARAM|EMBED)$/i,c=/^(COLGROUP|DD|DT|LI|OPTIONS|P|TD|TFOOT|TH|THEAD|TR)$/i}])})},function(t,e){"use strict";function n(t){return null!=t}function r(t){return"function"==typeof t}function i(t,e,n){var r=void 0,i=t&&t.length||0;for(r=0;r<i;r++)e.call(n,t[r],r)}function o(t,e,n){for(var r in t)t.hasOwnProperty(r)&&e.call(n,r,t[r])}function a(t,e){return t=t||{},o(e,function(e,r){n(t[e])||(t[e]=r)}),t}function s(t){try{return Array.prototype.slice.call(t)}catch(n){var e=function(){var e=[];return i(t,function(t){e.push(t)}),{v:e}}();if("object"===(void 0===e?"undefined":d(e)))return e.v}}function c(t){return t[t.length-1]}function u(t,e){return!(!t||"startTag"!==t.type&&"atomicTag"!==t.type||!("tagName"in t)||!~t.tagName.toLowerCase().indexOf(e))}function l(t){return u(t,"script")}function f(t){return u(t,"style")}e.__esModule=!0;var d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.existy=n,e.isFunction=r,e.each=i,e.eachKey=o,e.defaults=a,e.toArray=s,e.last=c,e.isTag=u,e.isScript=l,e.isStyle=f}])},4056(){jQuery.fn.toggleItem=function(t,e,n){t.length>0&&e.length>0&&(e.hasClass("state-open")?(e.removeClass("state-open"),t.removeClass("state-active")):(e.addClass("state-open"),t.addClass("state-active"),n&&n.length>0&&n.focus()))}},4706(){!function(t){t.fn.toggleSlide=function(e,n,r){e.length>0&&n.length>0&&(n.hasClass("state-open")?(n.slideUp(),n.removeClass("state-open"),e.removeClass("state-active"),e.data("initialtext")&&e.text(e.data("initialtext")),n.is("#advanced-search")&&t("#js-region").appendTo(".js-location-region")):(n.slideDown(),n.addClass("state-open"),e.addClass("state-active"),r&&r.length>0&&r.focus(),e.data("alttext")&&e.text(e.data("alttext")),n.is("#advanced-search")&&t("#js-region").appendTo(".js-location-municipality")))}}(jQuery)},3678(){((t,e)=>{e.addEventListener("DOMContentLoaded",()=>{const n=e.querySelectorAll(".ml-dropdown__content a");for(const e of n)e.addEventListener("click",e=>{e.preventDefault();const{target:n}=e,r=new URLSearchParams(t.location.search),i=n.dataset.orderby,o=n.dataset.type;i&&r.set("orderby",i),o&&r.set("type",o),t.location.search=r.toString()})})})(globalThis,document,jQuery)},1526(){let t,e=globalThis.Masonry||{};function n(){e.setupBlocks()}Array.min=t=>Math.min(...t),Array.max=t=>Math.max(...t),e={container:".js-masonry",blockSelector:".js-masonry-item",colCount:0,colWidth:0,margin:20,percentMargin:2,windowWidth:0,blocks:[]},e.setupBlocks=()=>{if(this.windowWidth=$(this.container).width(),this.colWidth=$(this.blockSelector).outerWidth(),this.windowWidth>this.colWidth){this.blocks=[],this.colWidthPercent=this.colWidth/this.windowWidth*100,this.colCount=Math.floor(this.windowWidth/this.colWidth);for(let t=0;t<this.colCount;t++)this.blocks.push(0);e.positionBlocks()}},e.positionBlocks=()=>{$(this.blockSelector).each(()=>{const t=Array.min(e.blocks),n=$.inArray(t,e.blocks),r=n*e.colWidthPercent+n*e.percentMargin;$(this).css({left:`${r}%`,top:`${t}px`}).addClass("state-done"),e.blocks[n]=t+$(this).outerHeight()+e.margin}),$(this.container).addClass("state-done").height(Array.max(e.blocks))},window.addEventListener("resize",()=>{clearTimeout(t),t=setTimeout(n,300)}),$(globalThis).on("load",()=>{e.setupBlocks()})},9306(t,e,n){"use strict";var r=n(4901),i=n(6823),o=TypeError;t.exports=function(t){if(r(t))return t;throw new o(i(t)+" is not a function")}},6469(t,e,n){"use strict";var r=n(8227),i=n(2360),o=n(4913).f,a=r("unscopables"),s=Array.prototype;void 0===s[a]&&o(s,a,{configurable:!0,value:i(null)}),t.exports=function(t){s[a][t]=!0}},8551(t,e,n){"use strict";var r=n(34),i=String,o=TypeError;t.exports=function(t){if(r(t))return t;throw new o(i(t)+" is not an object")}},9617(t,e,n){"use strict";var r=n(5397),i=n(5610),o=n(6198),a=function(t){return function(e,n,a){var s=r(e),c=o(s);if(0===c)return!t&&-1;
vendor: 4,852 bytes, line 2
2var u,l=i(a,c);if(t&&n!=n){for(;c>l;)if((u=s[l++])!=u)return!0}else for(;c>l;l++)if((t||l in s)&&s[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},2195(t,e,n){"use strict";var r=n(9504),i=r({}.toString),o=r("".slice);t.exports=function(t){return o(i(t),8,-1)}},7740(t,e,n){"use strict";var r=n(9297),i=n(5031),o=n(7347),a=n(4913);t.exports=function(t,e,n){for(var s=i(e),c=a.f,u=o.f,l=0;l<s.length;l++){var f=s[l];r(t,f)||n&&r(n,f)||c(t,f,u(e,f))}}},6699(t,e,n){"use strict";var r=n(3724),i=n(4913),o=n(6980);t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},6980(t){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},6840(t,e,n){"use strict";var r=n(4901),i=n(4913),o=n(283),a=n(9433);t.exports=function(t,e,n,s){s||(s={});var c=s.enumerable,u=void 0!==s.name?s.name:e;if(r(n)&&o(n,u,s),s.global)c?t[e]=n:a(e,n);else{try{s.unsafe?t[e]&&(c=!0):delete t[e]}catch(t){}c?t[e]=n:i.f(t,e,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},9433(t,e,n){"use strict";var r=n(4576),i=Object.defineProperty;t.exports=function(t,e){try{i(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},3724(t,e,n){"use strict";var r=n(9039);t.exports=!r(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},4055(t,e,n){"use strict";var r=n(4576),i=n(34),o=r.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},8727(t){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2839(t,e,n){"use strict";var r=n(4576).navigator,i=r&&r.userAgent;t.exports=i?String(i):""},9519(t,e,n){"use strict";var r,i,o=n(4576),a=n(2839),s=o.process,c=o.Deno,u=s&&s.versions||c&&c.version,l=u&&u.v8;l&&(i=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=+r[1]),t.exports=i},6518(t,e,n){"use strict";var r=n(4576),i=n(7347).f,o=n(6699),a=n(6840),s=n(9433),c=n(7740),u=n(2796);t.exports=function(t,e){var n,l,f,d,p,h=t.target,m=t.global,g=t.stat;if(n=m?r:g?r[h]||s(h,{}):r[h]&&r[h].prototype)for(l in e){if(d=e[l],f=t.dontCallGetSet?(p=i(n,l))&&p.value:n[l],!u(m?l:h+(g?".":"#")+l,t.forced)&&void 0!==f){if(typeof d==typeof f)continue;c(d,f)}(t.sham||f&&f.sham)&&o(d,"sham",!0),a(n,l,d,t)}}},9039(t){"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},616(t,e,n){"use strict";var r=n(9039);t.exports=!r(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})},9565(t,e,n){"use strict";var r=n(616),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},350(t,e,n){"use strict";var r=n(3724),i=n(9297),o=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=i(o,"name"),c=s&&"something"===function(){}.name,u=s&&(!r||r&&a(o,"name").configurable);t.exports={EXISTS:s,PROPER:c,CONFIGURABLE:u}},9504(t,e,n){"use strict";var r=n(616),i=Function.prototype,o=i.call,a=r&&i.bind.bind(o,o);t.exports=r?a:function(t){return function(){return o.apply(t,arguments)}}},7751(t,e,n){"use strict";var r=n(4576),i=n(4901);t.exports=function(t,e){return arguments.length<2?(n=r[t],i(n)?n:void 0):r[t]&&r[t][e];var n}},5966(t,e,n){"use strict";var r=n(9306),i=n(4117);t.exports=function(t,e){var n=t[e];return i(n)?void 0:r(n)}},4576(t,e,n){"use strict";var r=function(t){return t&&t.Math===Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9297(t,e,n){"use strict";var r=n(9504),i=n(8981),o=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},421(t){"use strict";t.exports={}},397(t,e,n){"use strict";var r=n(7751);t.exports=r("document","documentElement")},5917(t,e,n){"use strict";var r=n(3724),i=n(9039),o=n(4055);t.exports=!r&&!i(function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},7055(t,e,n){"use strict";var r=n(9504),i=n(9039),o=n(2195),a=Object,s=r("".split);t.exports=i(function(){return!a("z").propertyIsEnumerable(0)})?function(t){return"String"===o(t)?s(t,""):a(t)}:a},3706(t,e,n){"use strict";var r=n(9504),i=n(4901),o=n(7629),a=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(t){return a(t)}),t.exports=o.inspectSource},1181(t,e,n){"use strict";var r,i,o,a=n(8622),s=n(4576),c=n(34),u=n(6699),l=n(9297),f=n(7629),d=n(6119),p=n(421),h="Object already initialized",m=s.TypeError,g=s.WeakMap;if(a||f.state){var y=f.state||(f.state=new g);y.get=y.get,y.has=y.has,y.set=y.set,r=function(t,e){if(y.has(t))throw new m
vendor: 1,098 bytes, line 2
2(h);return e.facade=t,y.set(t,e),e},i=function(t){return y.get(t)||{}},o=function(t){return y.has(t)}}else{var v=d("state");p[v]=!0,r=function(t,e){if(l(t,v))throw new m(h);return e.facade=t,u(t,v,e),e},i=function(t){return l(t,v)?t[v]:{}},o=function(t){return l(t,v)}}t.exports={set:r,get:i,has:o,enforce:function(t){return o(t)?i(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!c(e)||(n=i(e)).type!==t)throw new m("Incompatible receiver, "+t+" required");return n}}}},4901(t){"use strict";var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},2796(t,e,n){"use strict";var r=n(9039),i=n(4901),o=/#|\.prototype\./,a=function(t,e){var n=c[s(t)];return n===l||n!==u&&(i(e)?r(e):!!e)},s=a.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=a.data={},u=a.NATIVE="N",l=a.POLYFILL="P";t.exports=a},4117(t){"use strict";t.exports=function(t){return null==t}},34(t,e,n){"use strict";var r=n(4901);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}
vendor: 7,398 bytes, line 2
2},6395(t){"use strict";t.exports=!1},757(t,e,n){"use strict";var r=n(7751),i=n(4901),o=n(1625),a=n(7040),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return i(e)&&o(e.prototype,s(t))}},6198(t,e,n){"use strict";var r=n(8014);t.exports=function(t){return r(t.length)}},283(t,e,n){"use strict";var r=n(9504),i=n(9039),o=n(4901),a=n(9297),s=n(3724),c=n(350).CONFIGURABLE,u=n(3706),l=n(1181),f=l.enforce,d=l.get,p=String,h=Object.defineProperty,m=r("".slice),g=r("".replace),y=r([].join),v=s&&!i(function(){return 8!==h(function(){},"length",{value:8}).length}),b=String(String).split("String"),w=t.exports=function(t,e,n){"Symbol("===m(p(e),0,7)&&(e="["+g(p(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!a(t,"name")||c&&t.name!==e)&&(s?h(t,"name",{value:e,configurable:!0}):t.name=e),v&&n&&a(n,"arity")&&t.length!==n.arity&&h(t,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&h(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=f(t);return a(r,"source")||(r.source=y(b,"string"==typeof e?e:"")),t};Function.prototype.toString=w(function(){return o(this)&&d(this).source||u(this)},"toString")},741(t){"use strict";var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?n:e)(r)}},2360(t,e,n){"use strict";var r,i=n(8551),o=n(6801),a=n(8727),s=n(421),c=n(397),u=n(4055),l=n(6119),f="prototype",d="script",p=l("IE_PROTO"),h=function(){},m=function(t){return"<"+d+">"+t+"</"+d+">"},g=function(t){t.write(m("")),t.close();var e=t.parentWindow.Object;return t=null,e},y=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}y="undefined"!=typeof document?document.domain&&r?g(r):function(){var t,e=u("iframe"),n="java"+d+":";return e.style.display="none",c.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(m("document.F=Object")),t.close(),t.F}():g(r);for(var t=a.length;t--;)delete y[f][a[t]];return y()};s[p]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(h[f]=i(t),n=new h,h[f]=null,n[p]=t):n=y(),void 0===e?n:o.f(n,e)}},6801(t,e,n){"use strict";var r=n(3724),i=n(8686),o=n(4913),a=n(8551),s=n(5397),c=n(1072);e.f=r&&!i?Object.defineProperties:function(t,e){a(t);for(var n,r=s(e),i=c(e),u=i.length,l=0;u>l;)o.f(t,n=i[l++],r[n]);return t}},4913(t,e,n){"use strict";var r=n(3724),i=n(5917),o=n(8686),a=n(8551),s=n(6969),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",d="configurable",p="writable";e.f=r?o?function(t,e,n){if(a(t),e=s(e),a(n),"function"==typeof t&&"prototype"===e&&"value"in n&&p in n&&!n[p]){var r=l(t,e);r&&r[p]&&(t[e]=n.value,n={configurable:d in n?n[d]:r[d],enumerable:f in n?n[f]:r[f],writable:!1})}return u(t,e,n)}:u:function(t,e,n){if(a(t),e=s(e),a(n),i)try{return u(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new c("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},7347(t,e,n){"use strict";var r=n(3724),i=n(9565),o=n(8773),a=n(6980),s=n(5397),c=n(6969),u=n(9297),l=n(5917),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=s(t),e=c(e),l)try{return f(t,e)}catch(t){}if(u(t,e))return a(!i(o.f,t,e),t[e])}},8480(t,e,n){"use strict";var r=n(1828),i=n(8727).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},3717(t,e){"use strict";e.f=Object.getOwnPropertySymbols},1625(t,e,n){"use strict";var r=n(9504);t.exports=r({}.isPrototypeOf)},1828(t,e,n){"use strict";var r=n(9504),i=n(9297),o=n(5397),a=n(9617).indexOf,s=n(421),c=r([].push);t.exports=function(t,e){var n,r=o(t),u=0,l=[];for(n in r)!i(s,n)&&i(r,n)&&c(l,n);for(;e.length>u;)i(r,n=e[u++])&&(~a(l,n)||c(l,n));return l}},1072(t,e,n){"use strict";var r=n(1828),i=n(8727);t.exports=Object.keys||function(t){return r(t,i)}},8773(t,e){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);e.f=i?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},4270(t,e,n){"use strict";var r=n(9565),i=n(4901),o=n(34),a=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&i(n=t.toString)&&!o(s=r(n,t)))return s;if(i(n=t.valueOf)&&!o(s=r(n,t)))return s;if("string"!==e&&i(n=t.toString)&&!o(s=r(n,t)))return s;throw new a("Can't convert object to primitive value")}},5031(t,e,n){"use strict";var r=n(7751),i=n(9504),o=n(8480),a=n(3717),s=n(8551),c=i([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(s(t)),n=a.f;return n?c(e,n(t)):e}},7750(t,e,n){"use strict";var r=n(4117),i=TypeError;t.exports=function(t){if(r(t))throw new i("Can't call method on "+t);return t}},6119(t,e,n){"use strict";var r=n(5745),i=n(3392),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},7629(t,e,n){"use strict";var r=n(6395),i=n(4576),o=n(9433),a="__core-js_shared__",s=t.exports=i[a]||o(a,{});(s.versions||(s.versions=[])).push({version:"3.49.0",mode:r?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})},5745(t,e,n){"use strict";var r=n(7629);t.exports=function(t,e){return r[t]||(r[t]=e||{})}},4495(t,e,n){"use strict";var r=n(9519),i=n(9039),o=n(4576).String;t.exports=!!Object.getOwnPropertySymbols&&!i(function(){var t=Symbol("symbol detection");return!o(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41})},5610(t,e,n){"use strict";var r=n(1291),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},5397(t,e,n){"use strict";var r=n(7055),i=n(7750);t.exports=function(t){return r(i(t))}},1291(t,e,n){"use strict";var r=n(741);t.exports=function(t){var e=+t;return e!=e||0===e?0:r(e)}},8014(t,e,n){"use strict";var r=n(1291),i=Math.min;t.exports=function(t){var e=r(t);return e>0?i(e,9007199254740991):0}},8981(t,e,n){"use strict";var r=n(7750),i=Object;t.exports=function(t){return i(r(t))}},2777(t,e,n){"use strict";var r=n(9565),i=n(34),o=n(757),a=n(5966),s=n(4270),c=n(8227),u=TypeError,l=c("toPrimitive");t.exports=function(t,e){if(!i(t)||o(t))return t;var n,c=a(t,l);if(c){if(void 0===e&&(e="default"),n=r(c,t,e),!i(n)||o(n))return n;throw new u("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},6969(t,e,n){"use strict";var r=n(2777),i=n(757);t.exports=function(t){var e=r(t,"string");return i(e)?e:e+""}},6823(t){"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},3392(t,e,n){"use strict";var r=n(9504),i=0,o=Math.random(),a=r(1.1.toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++i+o,36)}},7040(t,e,n){"use strict";var r=n(4495);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8686(t,e,n){"use strict";var r=n(3724),i=n(9039);t.exports=r&&i(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},8622(t,e,n){"use strict";var r=n(4576),i=n(4901),o=r.WeakMap;t.exports=i(o)&&/native code/.test(String(o))},8227(t,e,n){"use strict";var r=n(4576),i=n(5745),o=n(9297),a=n(3392),s=n(4495),c=n(7040),u=r.Symbol,l=i("wks"),f=c?u.for||u:u&&u.withoutSetter||a;t.exports=function(t){return o(l,t)||(l[t]=s&&o(u,t)?u[t]:f("Symbol."+t)),l[t]}},4423(t,e,n){"use strict";var r=n(6518),i=n(9617).includes,o=n(9039),a=n(6469),s=o(function(){return!Array(1).includes()}
2),c=o(function(){return[,1].includes(void 0,1)});r({target:"Array",proto:!0,forced:s||c},{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),a("includes")}};const e={};function n(r){const i=e[r];if(void 0!==i)return i.exports;const o=e[r]={exports:{}};return t[r].call(o.exports,o,o.exports,n),o.exports}n.n=t=>{const e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{if(Array.isArray(e))for(var r=0;r<e.length;){var i=e[r++],o=e[r++];n.o(t,i)?0===o&&r++:0===o?Object.defineProperty(t,i,{enumerable:!0,value:e[r++]}):Object.defineProperty(t,i,{enumerable:!0,get:o})}else for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";n(9564),n(6858),n(4706),n(4056),n(6099),n(4423);function t(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)"__proto__"!==r&&(t[r]=n[r])}return t}var e=function e(n,r){function i(e,i,o){if("undefined"!=typeof document){"number"==typeof(o=t({},r,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var s in o)o[s]&&(a+="; "+s,!0!==o[s]&&(a+="="+o[s].split(";")[0]));return document.cookie=e+"="+n.write(i,e)+a}}return Object.create({set:i,get:function(t){if("undefined"!=typeof document&&(!arguments.length||t)){for(var e=document.cookie?document.cookie.split("; "):[],r={},i=0;i<e.length;i++){var o=e[i].split("="),a=o.slice(1).join("=");try{var s=decodeURIComponent(o[0]);if(s in r||(r[s]=n.read(a,s)),t===s)break}catch(t){}}return t?r[t]:r}},remove:function(e,n){i(e,"",t({},n,{expires:-1}))},withAttributes:function(n){return e(this.converter,t({},this.attributes,n))},withConverter:function(n){return e(t({},this.converter,n),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(n)}})}({read:function(t){return'"'===t[0]&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});function r(){const t=globalThis?.topListConfig||null;if(!t)return void console.warn("TopList configuration not found");if(!function(t){try{return new URL(t,globalThis.location.origin).origin===globalThis.location.origin}catch{return!1}}(t?.endpoint))return void console.warn("Invalid endpoint for TopList:",t?.endpoint);const e=document.querySelector(".js-top-list");if(e){const n=e.querySelector(".hfeed"),r=e.querySelector(".type-menu"),i=r?[...r.querySelectorAll(".type-selection")]:[],o=e.querySelector(".read-more-link"),a=document.querySelector(".read-more-block");let s,c=t.defaultType||"day",u=0;const l=t=>{a&&(a.style.display=t?"none":"")},f=()=>{if(!n)return;s&&s.abort(),s=new AbortController;const e=new URLSearchParams({type:c,page:String(u)});fetch(`${t.endpoint}?${e.toString()}`,{signal:s.signal}).then(t=>{if(!t.ok)throw new Error(`TopList request failed with status ${t.status}`);return t.json()}).then(t=>{t&&"string"==typeof t.html?(n.insertAdjacentHTML("beforeend",t.html),l(Boolean(t.isLast))):console.error("TopList response did not contain valid HTML content:",t)}).catch(t=>{"AbortError"!==t.name&&console.error("Failed to load top list:",t)})};f();for(const t of i)t.addEventListener("click",e=>{e.preventDefault();for(const t of i)t.classList.remove("active");t.classList.add("active"),n&&(n.innerHTML=""),c=t.dataset.type||c,u=0,f()});o&&o.addEventListener("click",t=>{t.preventDefault(),u+=1,f()})}}const i="newsletter_seen";function o(){return"true"===e.get("newsletter_subscribed")}const a=t=>{if(!o()){const e=t(".js-article-content"),n=t(".js-article-newsletter_wrapper");if(n.length>0&&e.length>0&&e.find("> p").length>5){let r=e.find("> p").eq(-3);for(let t=0;t<5&&r.prev().is("h2, h3, h4");t++)r=r.prev();r.before(n),n.addClass("state-visible"),t("body").addClass("state-article-newsletter-shown")}}};function s(t){globalThis.jQuery?t():setTimeout(()=>{s(t)},50)}function c(){$(".menu-link").each((t,e)=>{if("undefined"!=typeof ajax_object&&""!==ajax_object.mt_token&&e.href.includes("metsatietaja.metsalehti.fi")){const t={},n=globalThis.window.location.search.slice(1).split("&");for(const e of n){const n=e.split("=");
2t[decodeURIComponent(n[0])]=decodeURIComponent(n[1]||"")}e.href=ajax_object.mt_url;const r=new URL(e.href);r.searchParams.append("token",ajax_object.mt_token),$(e).attr("href",r.href)}}),$(".js-comment-toggle").on("click",function(){$.fn.toggleItem($(this),$(".js-comment-form"),$(".js-comment-form textarea"))}),$(".js-theme-toggle").on("click",function(){$.fn.toggleSlide($(this),$(".js-theme-nav"),!1)}),$(".js-submenu-toggle").on("click",function(){$.fn.toggleSlide($(this),$(this).siblings(".js-submenu"),!1)});const t=$(".wp-block-navigation");if(t.length>0){const e=$("<button>",{class:"toggle-button toggle-button--mobile toggle-button--open wp-block-navigation-toggle","data-initialtext":"Näytä alueet","data-alttext":"Piilota alueet",text:"Näytä alueet"});t.first().before(e),e.on("click",function(){const e=$(this);e.hasClass("state-active")?(t.slideUp(),t.removeClass("state-open"),e.removeClass("state-active"),e.text(e.data("initialtext"))):(t.slideDown(),t.addClass("state-open"),e.addClass("state-active"),e.text(e.data("alttext")))})}if($(".js-content-toggle").on("click",function(t){t.preventDefault(),$.fn.toggleSlide($(this),$(`#${$(this).data("target")}`),!1)}),$(".js-report").on("click",function(t){t.preventDefault();const{id:e,nonce:n}=t.target.dataset,r=document.createElement("span");r.textContent="Viesti ilmoitettu!";const i=this.parentNode;this.remove(),$.ajax({type:"POST",url:ajax_object.url,data:{action:"report_comment",id:e,nonce:n},success(){i.insertBefore(r,i.firstChild)}})}),$(".js-register-username input").on("keyup",function(){if($(".js-register-sanitized-username input").length>0){const t=$(this).val(),e={"å":"a","ä":"a","ö":"o"};let n=function(t,e){const n=new RegExp(Object.keys(e).join("|"),"gi");return t.replace(n,t=>e[t.toLowerCase()])}(t.toLowerCase().replace(" ","-"),e).replaceAll(/[^\d_a-z\-]/g,"");if(0===n.length&&t.length>0)for(let e=0;e<t.length&&(n+=t.codePointAt(e).toString(10),3!==e);e++);$(".js-register-sanitized-username input").val(n)}}),$(".js-register-sanitized-username").find(".validation_message").length>0&&0===$(".js-register-username").find(".validation_message").length){let t="";t=$(".js-register-sanitized-username").find("input").val()<1?"Tämän kentän täyttäminen on pakollista.":"Käyttäjänimi on jo varattu.",$(".js-register-username").addClass("gfield_error").append(`<div class="gfield_description validation_message">${t}</div>`)}$(".js-functionality-nav").find(`a[href$="${location.href}"]`).parent().addClass("state-active").parents(".menu-item").addClass("state-active state-open"),$(".js-theme-nav, .js-auxiliary-nav").find(`a[href$="${location.href}"]`).parent().addClass("state-active"),$(".js-theme-nav").find(`a[href$="${location.href}"]`).length>0&&$(".js-theme-toggle").addClass("state-open"),location.href.indexOf("/ostoskori/")>0?$(".js-cart-link").addClass("state-active"):location.href.indexOf("/uutiset/")>0||location.href.indexOf("/artikkelit/")>0||location.href.indexOf("/blogit/")>0||location.href.indexOf("/nakoislehdet/")>0?$(".js-functionality-nav").find('a[href*="/uutiset-ja-blogit/"]').parent().addClass("state-active"):location.href.indexOf("/keskustelut/")>0||location.href.indexOf("/keskustelut-uusi-aihe/")>0?$(".js-functionality-nav").find('a[href*="/keskustelut/"]').parent().addClass("state-active"):location.href.indexOf("/lukijoiden-kuvat/")>0||location.href.indexOf("/laheta-kuva/")>0?$(".js-functionality-nav").find('a[href*="/lukijoiden-kuvat/"]').parent().addClass("state-active"):location.href.indexOf("/kirjat/")>0||location.href.indexOf("/kirjailijat/")>0?$(".js-functionality-nav").find('a[href*="/metsakustannus-kirjat/"]').parent().addClass("state-active"):location.href.indexOf("/puunhinta/")>0?$(".js-functionality-nav").find('a[href*="/puunhinta/"]').parent().addClass("state-active"):location.href.indexOf("/metsamaa/")>0||location.href.indexOf("/ilmoita-kohde/")>0?$(".js-functionality-nav").find('a[href*="/metsamaa/"]').parent().addClass("state-active"):location.href.indexOf("/tyopaikat/")>0||location.href.indexOf("/laheta-tyopaikkailmoitus/")>0?$(".js-functionality-nav").find('a[href*="/tyopaikat/"]').parent().addClass("state-active"):location.href.indexOf("/tilaa-lehti/")>0?$(".js-auxiliary-nav").find('a[href*="/tilaa-lehti/"]').parent().addClass("state-active"):location.href.indexOf("/asiakaspalvelu/")>0?$(".js-auxiliary-nav").find('a[href*="/asiakaspalvelu/"]').parent().addClass("state-active"):location.href.indexOf("/mediamyynti/")>0?$(".js-auxiliary-nav").find('a[href*="/mediamyynti/"]').parent().addClass("state-active"):location.href.indexOf("/yhteystiedot/")>0?$(".js-auxiliary-nav").find('a[href*="/yhteystiedot/"]').parent().addClass("state-active"):location.href.indexOf("/metsanhoito/")>0?$(".js-theme-nav").find('a[href$="/metsanhoito/"]').parent().addClass("state-active"):location.href.indexOf("/metsanomistus/")>0?$(".js-theme-nav").find('a[href$="/metsanomistus/"]').parent().addClass("state-active"):location.href.indexOf("/puukauppa/")>0?$(".js-theme-nav").find('a[href$="/puukauppa/"]').parent().addClass("state-active"):location.href.indexOf("/tekniikka/")>0?$(".js-theme-nav").find('a[href$="/tekniikka/"]').parent().addClass("state-active"):location.href.indexOf("/harrastukset/")>0?$(".js-theme-nav").find('a[href$="/harrastukset/"]').parent().addClass("state-active"):location.href.indexOf("/luonto/")>0&&$(".js-theme-nav").find('a[href$="/luonto/"]').parent().addClass("state-active"),$(".bbp-login-form").on("submit",function(){if(""===$(this).find("input").val())return $(this).is('[action*="action=lostpassword"]')?$(this).prepend('<p class="state-message">Täytäthän sähköpostin.</p>'):0===$(this).find(".state-error").length&&$(this).prepend('<p class="state-error">Täytäthän sähköpostin ja salasanan.</p>'),!1}),($("body").hasClass("template-front-page")||$("body").hasClass("template-page-theme"))&&$.ajax({type:"GET",url:"/wp-admin/admin-ajax.php",dataType:"json",data:{action:"hasReadingTime"}}).done(t=>{t.access||$(".js-paid-article").each(function(){$(this).find(".js-paid-tag").removeClass("state-hidden-tag")})}),$(".js-customerrecommendation").each(function(){const t=$(this),e=t.find(".customerrecommendation-block__slide");let n=0;const r=t=>{e.removeClass("is-active"),e.eq(t).addClass("is-active"),n=t};
2t.find(".js-customerrecommendation-prev").on("click",()=>{r(0===n?e.length-1:n-1)}),t.find(".js-customerrecommendation-next").on("click",()=>{r(n===e.length-1?0:n+1)})}),$(".js-appendaround > *").appendAround(),$(".js-iframeresize").on("load",()=>{setTimeout(()=>{$(".js-iframeresize").iFrameResize([{log:!0,scrolling:"auto",checkOrigin:!1}])},2e3)}),$(".wp-polls-form").on("submit",t=>{t.preventDefault()}),a($),"true"===e.get(i)||o()||setTimeout(()=>{$(".js-header-newsletter_wrapper").slideDown().addClass("state-visible"),e.set(i,"true",{expires:7})},500),o()||$("body").hasClass("state-article-newsletter-shown")||$(".js-footer-newsletter_wrapper").addClass("state-visible"),$("body").is(".post-type-topic, .post-type-reply")&&$(".js-discussion-text").find("a").each(function(){location.hostname!==this.hostname&&this.hostname.length>0&&$(this).attr("target","_blank")});const n="survey2018_dismissed";if("true"!==e.get(n)){const t=$(".js-modal");t.length>0&&(t.fadeIn(),$(".js-click-survey").on("click",()=>{t.fadeOut(300,function(){$(this).remove()}),e.set(n,"true",{expires:60})}))}let s="",c="";function u(t){if(0===$(".youtube-feed-container").length)return;const e=$(".moreVideos").data("playlist");"next"===t?$.get("/wp-json/mlehti/v1/search/get_youtube",{page:s,playlist:e}).done(t=>{t=JSON.parse(t),s=t.nextPage,c=t.prevPage,0===s.length?($(".nextContent").hide(),$(".moreVideos").hide()):$(".nextContent").show(),0===c.length?$(".prevContent").hide():$(".prevContent").show(),$(".youtube-feed-container").append(t.content).removeClass("yt-state-loading"),$(".yp-result-details").html(`${t.count} videota`)}):$.get("/wp-json/mlehti/v1/search/get_youtube",{page:c}).done(t=>{t=JSON.parse(t),s=t.nextPage,c=t.prevPage,0===s.length?$(".nextContent").hide():$(".nextContent").show(),0===c.length?$(".prevContent").hide():$(".prevContent").show(),$(".youtube-feed-container").html(t.content).removeClass("yt-state-loading")})}u("next"),$(".moreVideos").on("click",()=>{u("next")}),$(".nextContent").on("click",()=>{u("next"),window.scrollTo(0,0)}),$(".prevContent").on("click",()=>{u("prev"),window.scrollTo(0,0)}),$(".getPlaylist").on("click",function(){var t,e;t=this.id,e=$(this).text(),$.get("/wp-json/mlehti/v1/search/get_youtube_playlist",{playlist:t}).done(n=>{$(".moreVideos").data("playlist",t),t?$(".moreVideos").hide():$(".moreVideos").show(),$(".nextContent").hide(),$(".prevContent").hide(),n=JSON.parse(n),$(".playlistName").html(e),$(".youtube-feed-container").html(n.content).removeClass("yt-state-loading"),$(".yp-result-details").html(`${n.count} videota`)})});const l=$(".js-top-list"),f=l.find(".posts-block__heading-link[data-tab]"),d=l.find(".tab-content[data-content]");f.on("click",function(t){t.preventDefault();const e=$(this).data("tab");f.removeClass("active"),d.removeClass("active").hide(),$(this).addClass("active"),l.find(`[data-content="${e}"]`).addClass("active").show()}),f.length>0&&d.length>0&&(f.first().addClass("active"),d.first().addClass("active").show(),d.not(":first").hide()),r(),$(globalThis).width()<1e3&&$(".section--left").append($(".section--right > div")),globalThis.location.href.includes("laheta-tyopaikkailmoitus")&&window.addEventListener("beforeunload",function(){window.scrollTo(0,0)})}globalThis.maybeShowNewsletterSubscription=a,document.addEventListener("DOMContentLoaded",()=>{s(c)});n(1526);var u=n(5985),l=n.n(u);function f(t,e,n){this.loaded=!1,this.url=t,this.min=e,this.max=n}function d(t){this.container=t,this.sizes=[];const e={};for(let n=0,r=t.attributes.length;n<r;n++){const r=t.attributes.item(n).name.split("-");r.length>2&&"data"===r[0]&&(void 0===e[r[1]]&&(e[r[1]]={}),3===r.length?e[r[1]][r[2]]=t.attributes.item(n).value:(void 0===e[r[1]][r[2]]&&(e[r[1]][r[2]]={}),e[r[1]][r[2]][r[3]]=Number.parseInt(t.attributes.item(n).value,10)))}for(const t in e)e[t].url&&e[t].width.min>=0&&this.sizes.push(new f(e[t].url,e[t].width.min,e[t].width.max))}function p(){this.ads=[]}f.prototype.show=function(t){this.container=t,this.loaded?(this.container.innerHTML="",l()(this.container,this.content)):(this.xhttp=new XMLHttpRequest,this.xhttp.addEventListener("readystatechange",function(){if(4===this.xhttp.readyState&&200===this.xhttp.status){this.content=this.xhttp.responseText,this.loaded=!0;const t=(new DOMParser).parseFromString(this.content,"text/html"),e=t.querySelectorAll("a");for(const t of e)t.setAttribute("target","_blank");t.querySelector("script")&&t.querySelector("noscript")?this.content=`${t.querySelector("script").outerHTML}<noscript>${t.querySelector("body").innerHTML}</noscript>`:this.content=t.querySelector("body").innerHTML,this.container.innerHTML="",l()(this.container,this.content)}}.bind(this)),this.xhttp.open("GET",this.url,!0),this.xhttp.send())},d.prototype.update=function(t){for(const e in this.sizes)if((!this.sizes[e].min||this.sizes[e].min<t)&&(!this.sizes[e].max||this.sizes[e].max>=t)&&this.current!==this.sizes[e]){this.sizes[e].show(this.container),this.current=this.sizes[e];break}},p.prototype.update=function(){const t=document.documentElement.clientWidth||document.body.clientWidth||window.innerWidth;for(let e=0;e<this.ads.length;e++)this.ads[e].update(t)},p.prototype.init=function(){const t=document.querySelectorAll(".js-aprofit");for(const e of t)this.ads.push(new d(e));this.update()},document.addEventListener("DOMContentLoaded",()=>{const t=new p;t.init(),window.addEventListener("resize",t.update.bind(t))},!1);n(3678)})()})();

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.