| 1139 | x = (e) => (0, u.a)(e, A), |
| 1140 | S = new Set() |
| 1141 | function _(e, t = {}, r, o) { |
| 1142 | let { |
| 1143 | init: a, |
| 1144 | info: c, |
| 1145 | loader_config: d, |
| 1146 | runtime: u = {}, |
| 1147 | exposed: l = !0, |
| 1148 | } = t |
| 1149 | if (!c) { |
| 1150 | const e = (0, n.pV)() |
| 1151 | ;(a = e.init), (c = e.info), (d = e.loader_config) |
| 1152 | } |
| 1153 | ;(e.init = f(a || {})), |
| 1154 | (e.loader_config = x(d || {})), |
| 1155 | (c.jsAttributes ??= {}), |
| 1156 | h.bv && (c.jsAttributes.isWorker = !0), |
| 1157 | (e.info = (0, s.D)(c)) |
| 1158 | const p = e.init, |
| 1159 | g = [c.beacon, c.errorBeacon] |
| 1160 | S.has(e.agentIdentifier) || |
| 1161 | (p.proxy.assets && (R(p.proxy.assets), g.push(p.proxy.assets)), |
| 1162 | p.proxy.beacon && g.push(p.proxy.beacon), |
| 1163 | (e.beacons = [...g]), |
| 1164 | (function (e) { |
| 1165 | const t = (0, n.pV)() |
| 1166 | Object.getOwnPropertyNames(i.W.prototype).forEach((r) => { |
| 1167 | const n = i.W.prototype[r] |
| 1168 | if ('function' != typeof n || 'constructor' === n) return |
| 1169 | let s = t[r] |
| 1170 | e[r] && |
| 1171 | !1 !== e.exposed && |
| 1172 | 'micro-agent' !== e.runtime?.loaderType && |
| 1173 | (t[r] = (...t) => { |
| 1174 | const n = e[r](...t) |
| 1175 | return s ? s(...t) : n |
| 1176 | }) |
| 1177 | }) |
| 1178 | })(e), |
| 1179 | (0, n.US)('activatedFeatures', w.B)), |
| 1180 | (u.denyList = [ |
| 1181 | ...(p.ajax.deny_list || []), |
| 1182 | ...(p.ajax.block_internal ? g : []), |
| 1183 | ]), |
| 1184 | (u.ptid = e.agentIdentifier), |
| 1185 | (u.loaderType = r), |
| 1186 | (e.runtime = b(u)), |
| 1187 | S.has(e.agentIdentifier) || |
| 1188 | ((e.ee = E.ee.get(e.agentIdentifier)), |
| 1189 | (e.exposed = l), |
| 1190 | (0, T.W)({ |
| 1191 | agentIdentifier: e.agentIdentifier, |
| 1192 | drained: !!w.B?.[e.agentIdentifier], |
| 1193 | type: 'lifecycle', |
| 1194 | name: 'initialize', |
| 1195 | feature: void 0, |
| 1196 | data: e.config, |
| 1197 | })), |
| 1198 | S.add(e.agentIdentifier) |