PageSourceSearch

https://kipparilehti.fi/wp-content/mu-plugins/om-core/dist/dfa8dda7a2b8dc07867f.439.bundle.js

js kipparilehti.fi collected 2026-09-25 06:54:48 UTC 8,834 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkCoreLibary=self.webpackChunkCoreLibary||[]).push([[439],{3293:(t,e,r)=>{r.d(e,{o4:()=>z});const n="3.7.8",a=n,i="function"==typeof Buffer,o="function"==typeof TextDecoder?new TextDecoder:void 0,u="function"==typeof TextEncoder?new TextEncoder:void 0,s=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),c=(t=>{let e={};return t.forEach((t,r)=>e[t]=r),e})(s),l=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,f=String.fromCharCode.bind(String),h="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):t=>new Uint8Array(Array.prototype.slice.call(t,0)),d=t=>t.replace(/=/g,"").replace(/[+\/]/g,t=>"+"==t?"-":"_"),p=t=>t.replace(/[^A-Za-z0-9\+\/]/g,""),y=t=>{let e,r,n,a,i="";const o=t.length%3;for(let o=0;o<t.length;){if((r=t.charCodeAt(o++))>255||(n=t.charCodeAt(o++))>255||(a=t.charCodeAt(o++))>255)throw new TypeError("invalid character found");e=r<<16|n<<8|a,i+=s[e>>18&63]+s[e>>12&63]+s[e>>6&63]+s[63&e]}return o?i.slice(0,o-3)+"===".substring(o):i},v="function"==typeof btoa?t=>btoa(t):i?t=>Buffer.from(t,"binary").toString("base64"):y,g=i?t=>Buffer.from(t).toString("base64"):t=>{let e=[];for(let r=0,n=t.length;r<n;r+=4096)e.push(f.apply(null,t.subarray(r,r+4096)));return v(e.join(""))},A=(t,e=!1)=>e?d(g(t)):g(t),b=t=>{if(t.length<2)return(e=t.charCodeAt(0))<128?t:e<2048?f(192|e>>>6)+f(128|63&e):f(224|e>>>12&15)+f(128|e>>>6&63)+f(128|63&e);var e=65536+1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320);return f(240|e>>>18&7)+f(128|e>>>12&63)+f(128|e>>>6&63)+f(128|63&e)},m=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,w=t=>t.replace(m,b),x=i?t=>Buffer.from(t,"utf8").toString("base64"):u?t=>g(u.encode(t)):t=>v(w(t)),C=(t,e=!1)=>e?d(x(t)):x(t),S=t=>C(t,!0),B=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,k=t=>{switch(t.length){case 4:var e=((7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3))-65536;return f((e>>>10)+55296)+f(56320+(1023&e));case 3:return f((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return f((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},P=t=>t.replace(B,k),U=t=>{if(t=t.replace(/\s+/g,""),!l.test(t))throw new TypeError("malformed base64.");let e,r,n;t+="==".slice(2-(3&t.length));let a=[];for(let i=0;i<t.length;)e=c[t.charAt(i++)]<<18|c[t.charAt(i++)]<<12|(r=c[t.charAt(i++)])<<6|(n=c[t.charAt(i++)]),64===r?a.push(f(e>>16&255)):64===n?a.push(f(e>>16&255,e>>8&255)):a.push(f(e>>16&255,e>>8&255,255&e));return a.join("")},F="function"==typeof atob?t=>atob(p(t)):i?t=>Buffer.from(t,"base64").toString("binary"):U,D=i?t=>h(Buffer.from(t,"base64")):t=>h(F(t).split("").map(t=>t.charCodeAt(0))),E=t=>D(T(t)),I=i?t=>Buffer.from(t,"base64").toString("utf8"):o?t=>o.decode(D(t)):t=>P(F(t)),T=t=>p(t.replace(/[-_]/g,t=>"-"==t?"+":"/")),R=t=>I(T(t)),O=t=>({value:t,enumerable:!1,writable:!0,configurable:!0}),j=function(){const t=(t,e)=>Object.defineProperty(String.prototype,t,O(e));t("fromBase64",function(){return R(this)}),t("toBase64",function(t){return C(this,t)}),t("toBase64URI",function(){return C(this,!0)}),t("toBase64URL",function(){return C(this,!0)}),t("toUint8Array",function(){return E(this)})},V=function(){const t=(t,e)=>Object.defineProperty(Uint8Array.prototype,t,O(e));t("toBase64",function(t){return A(this,t)}),t("toBase64URI",function(){return A(this,!0)}),t("toBase64URL",function(){return A(this,!0)})},z={version:n,VERSION:a,atob:F,atobPolyfill:U,btoa:v,btoaPolyfill:y,fromBase64:R,toBase64:C,encode:C,encodeURI:S,encodeURL:S,utob:w,btou:P,decode:R,isValid:t=>{if("string"!=typeof t)return!1;const e=t.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(e)||!/[^\s0-9a-zA-Z\-_]/.test(e)},fromUint8Array:A,toUint8Array:E,extendString:j,extendUint8Array:V,extendBuiltins:()=>{j(),V()}}},8439:(t,e,r)=>{r.d(e,{default:()=>h});r(2675),r(9463),r(2259),r(3418),r(3792),r(4782),r(2010),r(6099),r(7495),r(8781),r(7764),r(2953);var n=r(467),a=r(3029),i=r(9530),o=(r(9432),r(4756)),u=r.n(o),s=r(1317),c=r(3293);function l(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return f(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,a=function(){};return{s:a,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){u=!0,i=t},f:function(){try{o||null==r.return||r.return()}finally{if(u)throw i}}}}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var h=function(){return(0,i.A)(function t(){(0,a.A)(this,t),this.initFirstPage()},[{key:"initFirstPage",value:(o=(0,n.A)(u().mark(function t(){var e,r,n;return u().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=null,t.next=1,s.A.mutate(function(){return document.querySelector(".infinite-scroll-article")});
1case 1:if(!(r=t.sent)){t.next=2;break}e={url:r.getAttribute("data-post-url"),title:r.getAttribute("data-post-title")},t.next=3;break;case 2:return t.abrupt("return",!1);case 3:this.timer=null,this.lastVirtualPage=null,this.previousY=0,this.previousRatio=0,this.virtualPage=0,n=this,new IntersectionObserver(function(t){var r,a=l(t);try{for(a.s();!(r=a.n()).done;)!0===r.value.isIntersecting&&0<n.virtualPage&&(document.title=e.title,history.replaceState(null,e.title,e.url),n.virtualPage=0,n.historySwitchEvent("switch-to-first-url",e))}catch(t){a.e(t)}finally{a.f()}},{rootMargin:"-50% 0px -50% 0px",threshold:[0,1]}).observe(r);case 4:case"end":return t.stop()}},t,this)})),function(){return o.apply(this,arguments)})},{key:"createNewIntersection",value:(r=(0,n.A)(u().mark(function t(e){var r,n;return u().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=this,t.next=1,s.A.mutate(function(){return document.getElementById(e.id)});case 1:n=t.sent,new IntersectionObserver(function(t){var n,a=l(t);try{for(a.s();!(n=a.n()).done;){var i=n.value,o=i.boundingClientRect.y,u=i.isIntersecting,s=null;o<r.previousY?s="down":o>r.previousY&&u&&(s="up"),r.previousY=o,!0===u&&(r.switchState(i.target,s),r.historySwitchEvent("switch-url",e))}}catch(t){a.e(t)}finally{a.f()}},{rootMargin:"-50% 0px -50% 0px",threshold:[0,1]}).observe(n.querySelector("article"));case 2:case"end":return t.stop()}},t,this)})),function(t){return r.apply(this,arguments)})},{key:"switchState",value:(e=(0,n.A)(u().mark(function t(e,r){var n,a,i,o,s,c;return u().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,this.getData(e,"id");case 1:return i=t.sent,t.next=2,this.getData(e,"data-post-url");case 2:return o=t.sent,t.next=3,this.getData(e,"data-post-data");case 3:return s=t.sent,t.next=4,this.getData(e,"data-post-title");case 4:if(c=t.sent,n={id:i,url:o,data:s,title:c},window.location.pathname===n.url){t.next=6;break}return clearTimeout(this.timer),"up"===r?this.virtualPage--:this.virtualPage++,history.replaceState(null,n.title,n.url),document.title=n.title,t.next=5,this.getData(e,"data-virtual-page-processed");case 5:a=t.sent,n.data&&this.lastVirtualPage!==window.location.pathname&&!a&&this.scheduleVirtualPageview(n,e);case 6:case"end":return t.stop()}},t,this)})),function(t,r){return e.apply(this,arguments)})},{key:"scheduleVirtualPageview",value:function(t,e){var r=this;this.timer=setTimeout(function(){var n=JSON.parse(c.o4.decode(t.data));n.virtualTitle=t.title,n.virtualUrl=t.url,n.event="virtualPageview",dataLayer.push(n),r.setData(e,"data-virtual-page-processed","true"),r.lastVirtualPage=t.url},1e3)}},{key:"historySwitchEvent",value:function(t,e){var r=new CustomEvent("om-switch-url",{detail:{info:t,post:{id:e.id,title:e.title,url:e.url}}});document.dispatchEvent(r)}},{key:"getData",value:(t=(0,n.A)(u().mark(function t(e,r){return u().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,s.A.measure(function(){return e.getAttribute(r)});case 1:return t.abrupt("return",t.sent);case 2:case"end":return t.stop()}},t)})),function(e,r){return t.apply(this,arguments)})},{key:"setData",value:function(t,e,r){s.A.mutate(function(){null!==r?t.setAttribute(e,r):t.removeAttribute(e)})}}]);var t,e,r,o}()},9432:(t,e,r)=>{var n=r(6518),a=r(8981),i=r(1072);n({target:"Object",stat:!0,forced:r(9039)(function(){i(1)})},{keys:function(t){return i(a(t))}})}}]);

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.