PageSourceSearch

https://login.medirect.com.mt/Themes/Medirect/js/mdassets.js

js medirect.com.mt collected 2026-09-24 09:32:33 UTC 5,097 bytes, 140 lines download raw bytes

1(function () {
2  var g = this || self;
3  function z() {
4    return 'undefined' === typeof Date.now ? new Date().getTime() : Date.now();
5  }
6  function N(E) {
7    this.L = E;
8    16 == this.L ? ((this.v = 268435456), (this.C = 4026531839)) : ((this.v = 78364164096), (this.C = 2742745743359));
9  }
10  function l(E) {
11    return (Math.floor(Math.random() * E.C) + E.v).toString(E.L);
12  }
13  function T(E) {
14    this.C = E;
15  }
16  T.prototype.supported = function () {
17      return void 0 != window.meLocalStorage;
18  };
19  T.prototype.get = function () {
20      return window.meLocalStorage.getItem(this.C);
21  };
22  T.prototype.set = function (E) {
23      return window.meLocalStorage.setItem(this.C, E);
24  };
25  T.prototype.set = T.prototype.set;
26  function Z() {
27    var E = z(),
28      Y = new N(16);
29    Y = l(Y) + l(Y) + l(Y) + l(Y);
30    return [0, 0, E, E, Y].join(':');
31  }
32  function J() {
33    var E = new T('ed73f20edbf2b73');
34    if (!E.supported()) return null;
35    E = E.get();
36    if (null === E) return null;
37    var Y = E.split('_');
38    2 === Y.length && (E = Y[0]);
39    return '0:' + E;
40  }
41  function v() {
42    var E = J();
43    if (null === E)
44      if (((E = new T('ed73f20edbf2b74')), E.supported())) {
45        var Y = E.get();
46        null === Y && (Y = Z());
47        var u = E.set;
48        var S = Y.split(':');
49        if (5 != S.length) S = Y;
50        else {
51          var t = parseInt(S[1], 10) + 1,
52            K = z();
53          K > parseInt(S[2], 10) + 157788e5 ? (S = Z()) : ((S[1] = t.toString()), (S[3] = K), (S = S.join(':')));
54        }
55        u.call(E, S);
56        E = '1:' + Y;
57      } else E = null;
58    return E;
59  }
60  function y(E, Y) {
61    E = {
62      iceServers: [
63        { urls: 'turn:aa.online-metrix.net?transport\x3dtcp', username: E, credential: Y },
64        { urls: 'turn:aa.online-metrix.net?transport\x3dudp', username: E, credential: Y }
65      ]
66    };
67    return 'undefined' !== typeof window.RTCPeerConnection && null !== window.RTCPeerConnection
68      ? new window.RTCPeerConnection(E)
69      : 'undefined' !== typeof window.webkitRTCPeerConnection && null !== window.webkitRTCPeerConnection
70      ? new window.webkitRTCPeerConnection(E)
71      : 'undefined' !== typeof window.C && null !== window.C
72      ? new window.C(E)
73      : null;
74  }
75  function w(E, Y) {
76    var u = v();
77    try {
78      var S = y('2:' + E + ':' + Y + ':' + u, Y);
79      if (S && 'undefined' !== typeof S.createDataChannel && null !== S.createDataChannel) {
80        S.createDataChannel(Math.random().toString());
81        var t = function () {};
82        E = function (K) {
83          S.setLocalDescription(K, t, t);
84        };
85        'undefined' === typeof Promise || 0 < S.createOffer.length ? S.createOffer(E, t) : S.createOffer().then(E, t);
86        setInterval(function () {
87          'undefined' !== typeof S.close && null !== S.close && S.close();
88          'undefined' !== typeof S.onicecandidate &&
89            null !== S.onicecandidate &&
90            ((S.onicecandidate = function () {}), (S = null));
91        }, 1e4);
92      }
93    } catch (K) {}
94  }
95  var X = null;
96  function h(E) {
97    for (var Y; null !== (Y = document.getElementById(E)); ) Y.parentElement.removeChild(Y);
98  }
99  function P(E, Y, u, S) {
100    if ('undefined' !== typeof E && 'undefined' !== typeof Y && 'undefined' !== typeof u && 8 === Y.length) {
101      if (-1 !== u.indexOf(':')) throw Error('invalid session_id ' + u);
102      h('tdz_ifrm');
103      h('tmx_tags_iframe');
104      h('tmx_tags_js');
105      var t = document;
106      if ('undefined' !== typeof t.currentScript && null !== t.currentScript) {
107        var K = t.currentScript.getAttribute('nonce');
108        'undefined' !== typeof K && null !== K && '' !== K
109          ? (X = K)
110          : 'undefined' !== typeof t.currentScript.nonce &&
111            null !== t.currentScript.nonce &&
112            '' !== t.currentScript.nonce &&
113            (X = t.currentScript.nonce);
114      }
115      w(Y, u);
116      t = document.getElementsByTagName('head').item(0);
117      K = document.createElement('script');
118      K.id = 'tmx_tags_js';
119      K.setAttribute('type', 'text/javascript');
120      var k = new N(36),
121        I = Math.floor(Math.random() * k.C),
122        n = Math.floor(Math.random() * k.C);
123      n = (n - (n % 256) + 5 + I) % k.C;
124      var L = (885187064159 + I) % k.C;
125      I = l(k) + (I + k.v).toString(k.L);
126      n = (L + k.v).toString(k.L) + (n + k.v).toString(k.L);
127      E = 'https://' + E + '/' + I + '.js';
128      Y = [n + '\x3d' + Y, l(k) + l(k) + '\x3d' + u];
129      'undefined' !== typeof S && null !== S && 0 < S.length && Y.push(l(k) + l(k) + '\x3d' + S);
130      K.setAttribute('src', E + '?' + Y.join('\x26'));
131      null !== X && (K.setAttribute('nonce', X), K.getAttribute('nonce') !== X && (K.nonce = X));
132      t.appendChild(K);
133    }
134  }
135  var W = ['mdba0409', 'pt'],
136    Q = g;
137  W[0] in Q || 'undefined' == typeof Q.execScript || Q.execScript('var ' + W[0]);
138  for (var R; W.length && (R = W.shift()); )
139    W.length || void 0 === P ? (Q[R] && Q[R] !== Object.prototype[R] ? (Q = Q[R]) : (Q = Q[R] = {})) : (Q[R] = P);
140}).call(this);

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.