Files
Ads4each-newGameTemplate/adsbycqsjd.pb.js

24 lines
193 KiB
JavaScript
Raw Permalink Normal View History

2025-11-07 16:07:14 +08:00
/* roockmobile.prebid.js v9.50.0
Updated: 2025-08-11
Modules: roockmobileBidAdapter */
if (window.pbjs && window.pbjs.libLoaded) try { window.pbjs.getConfig("debug") && console.warn("Attempted to load a copy of Prebid.js that clashes with the existing 'pbjs' instance. Load aborted.") } catch (e) { } else (function () {
(() => {
var r, t = {
433: (r, t, e) => { function n(r, t, e, n, o) { for (t = t.split ? t.split(".") : t, n = 0; n < t.length; n++)r = r ? r[t[n]] : o; return r === o ? e : r } e.d(t, { A: () => n }) }, 128: r => {
/*
* @license MIT
* Fun Hooks v1.1.0
* (c) @snapwich
*/
i.SYNC = 1, i.ASYNC = 2, i.QUEUE = 4; var t = "fun-hooks", e = Object.freeze({ ready: 0 }), n = new WeakMap; function o(r, t) { return Array.prototype.slice.call(r, t) } function i(r) { var a, f = {}, c = []; function u(r, t) { return "function" == typeof r ? s.call(null, "sync", r, t) : "string" == typeof r && "function" == typeof t ? s.apply(null, arguments) : "object" == typeof r ? l.apply(null, arguments) : void 0 } function l(r, t, e) { var n = !0; void 0 === t && (t = Object.getOwnPropertyNames(r).filter((r => !r.match(/^_/))), n = !1); var o = {}, i = ["constructor"]; do { t.forEach((function (t) { var n = t.match(/(?:(sync|async):)?(.+)/), a = n[1] || "sync", f = n[2]; if (!o[f] && "function" == typeof r[f] && -1 === i.indexOf(f)) { var c = r[f]; o[f] = r[f] = s(a, c, e ? [e, f] : void 0) } })), r = Object.getPrototypeOf(r) } while (n && r); return o } function p(r) { var e = Array.isArray(r) ? r : r.split("."); return e.reduce((function (n, o, i) { var f = n[o], u = !1; return f || (i === e.length - 1 ? (a || c.push((function () { u || console.warn(t + ": referenced '" + r + "' but it was never created") })), n[o] = y((function (r) { n[o] = r, u = !0 }))) : n[o] = {}) }), f) } function y(r) { var t = [], e = [], o = function () { }, i = { before: function (r, e) { return f.call(this, t, "before", r, e) }, after: function (r, t) { return f.call(this, e, "after", r, t) }, getHooks: function (r) { var n = t.concat(e); "object" == typeof r && (n = n.filter((function (t) { return Object.keys(r).every((function (e) { return t[e] === r[e] })) }))); try { Object.assign(n, { remove: function () { return n.forEach((function (r) { r.remove() })), this } }) } catch (r) { console.error("error adding `remove` to array, did you modify Array.prototype?") } return n }, removeAll: function () { return this.getHooks().remove() } }, a = { install: function (n, i, a) { this.type = n, o = a, a(t, e), r && r(i) } }; return n.set(i.after, a), i; function f(r, n, i, a) { var f = { hook: i, type: n, priority: a || 10, remove: function () { var n = r.indexOf(f); -1 !== n && (r.splice(n, 1), o(t, e)) } }; return r.push(f), r.sort((function (r, t) { return t.priority - r.priority })), o(t, e), this } } function s(e, f, u) { var l = f.after && n.get(f.after); if (l) { if (l.type !== e) throw t + ": recreated hookable with different type"; return f } var s, v = u ? p(u) : y(), h = { get: function (r, t) { return v[t] || Reflect.get.apply(Reflect, arguments) } }; a || c.push(b); var d = new Proxy(f, h); return n.get(d.after).install(e, d, (function (r, t) { var n, i = []; r.length || t.length ? (r.forEach(a), n = i.push(void 0) - 1, t.forEach(a), s = function (r, t, a) { var f, c = i.slice(), u = 0, l = "async" === e && "function" == typeof a[a.length - 1] && a.pop(); function p(r) { "sync" === e ? f = r : l && l.apply(null, arguments) } function y(r) { if (c[u]) { var n = o(arguments); return y.bail = p, n.unshift(y), c[u++].apply(t, n) } "sync" === e ? f = r : l && l.apply(null, arguments) } return c[n] = function () { var n = o(arguments, 1); "async" === e && l && (delete y.bail, n.push(y)); var i = r.apply(t, n); "sync" === e && y(i) }, y.apply(null, a), f }) : s = void 0; function a(r) { i.push(r.hook) } b() })), d; function b() { !a && ("sync" !== e || r.ready & i.SYNC) && ("async" !== e || r.ready & i.ASYNC) ? "sync" !== e && r.ready & i.QUEUE ? h.apply = function () { var r = arguments; c.push((function () { d.apply(r[1], r[2]) })) } : h.apply = function () { throw t + ": hooked function not ready" } : h.apply = s } } return (r = Object.assign({}, e, r)).ready ? u.ready = function () { a = !0, function (r) { for (var t; t = r.shift();)t() }(c) } : a = !0, u.get = p, u } r.exports = i
}, 172: (r, t, e) => { function n(r, t, e) { t.split && (t = t.split(".")); for (var n, o, i = 0, a = t.length, f = r; i < a && "__proto__" != (o = "" + t[i++]) && "constructor" !== o && "prototype" !== o;)f = f[o] = i === a ? e : typeof (n = f[o]) == typeof t ? n : 0 * t[i] != 0 || ~("" + t[i]).indexOf(".") ? {} : [] } e.d(t, { J: () => n }) }, 751: (r, t, e) => { function n(r) { var t, e, o; if (Array.isArray(r)) { for (e = Array(t = r.length); t--;)e[t] = (o = r[t]) && "object" == typeof o ? n(o) : o; return e } if ("[object Object]" === Object.prototype.toString.call(r)) { for (t in e = {}, r) "__proto__" === t ? Object.defineProperty(e, t, { value: n(r[t]), configurable: !0, enumerable: !0, writable: !0 }) : e[t] = (o = r[t]) && "object" == typeof o ? n(o) : o; return e } return r } e.d(t, { Q: () => n }) }
}, e = {}; function n(r) { var o = e[r]; if (void 0 !== o) return o.exports; var i = e[r] = { exports: {} }; return t[r](i, i.exports, n), i.exports } n.m = t, r = [], n.O = (t, e, o, i) => { if (!e) { var a = 1 / 0; for (l = 0; l < r.length; l++) { e = r[l][0], o = r[l][1], i = r[l][2]; for (var f = !0, c = 0; c < e.length; c++)(!1 & i || a >= i) && Object.keys(n.O).every((r => n.O[r](e[c]))) ? e.splice(c--, 1) : (f = !1, i < a && (a = i)); if (f) { r.splice(l--, 1); var u = o(); void 0 !== u && (t = u) } } return t } i = i || 0; for (var l = r.length; l > 0 && r[l - 1][2] > i; l--)r[l] = r[l - 1]; r[l] = [e, o, i] }, n.n = r => { var t = r && r.__esModule ? () => r.default : () => r; return n.d(t, { a: t }), t }, n.d = (r, t) => { for (var e in t) n.o(t, e) && !n.o(r, e) && Object.defineProperty(r, e, { enumerable: !0, get: t[e] }) }, n.o = (r, t) => Object.prototype.hasOwnProperty.call(r, t), (() => { var r = { 673: 0 }; n.O.j = t => 0 === r[t]; var t = (t, e) => { var o, i, a = e[0], f = e[1], c = e[2], u = 0; if (a.some((t => 0 !== r[t]))) { for (o in f) n.o(f, o) && (n.m[o] = f[o]); if (c) var l = c(n) } for (t && t(e); u < a.length; u++)i = a[u], n.o(r, i) && r[i] && r[i][0](), r[i] = 0; return n.O(l) }, e = self.pbjsChunk = self.pbjsChunk || []; e.forEach(t.bind(null, 0)), e.push = t.bind(null, e.push.bind(e)) })(); var o = n.O(void 0, [802, 769, 139, 85], (() => n(940))); o = n.O(o)
})();
(self.pbjsChunk = self.pbjsChunk || []).push([[802], { 789: (e, t, n) => { n.d(t, { A4: () => c, J7: () => l, Pg: () => u }); var i = n(580), r = n(69), o = n(873), s = n(569); const a = (0, o.m)(), d = "outstream"; function c(e) { const { url: t, config: n, id: o, callback: c, loaded: l, adUnitCode: u, renderNow: f } = e; this.url = t, this.config = n, this.handlers = {}, this.id = o, this.renderNow = f, this.adUnitCode = u, this.loaded = l, this.cmd = [], this.push = e => { "function" == typeof e ? this.loaded ? e.call() : this.cmd.push(e) : (0, r.vV)("Commands given to Renderer.push must be wrapped in a function") }, this.callback = c || (() => { this.loaded = !0, this.process() }), this.render = function () { const e = arguments, n = () => { this._render ? this._render.apply(this, e) : (0, r.JE)("No render function was provided, please use .setRender on the renderer") }; !function (e) { const t = a.adUnits.find((t => t.code === e)); if (!t) return !1; const n = t?.renderer, i = !!(n && n.url && n.render), r = t?.mediaTypes?.video?.renderer, o = !!(r && r.url && r.render); return !!(i && !0 !== n.backupOnly || o && !0 !== r.backupOnly) }(u) ? f ? n() : (this.cmd.unshift(n), (0, i.R)(t, s.tp, d, this.callback, this.documentContext)) : ((0, r.JE)(`External Js not loaded by Renderer since renderer url and callback is already defined on adUnit ${u}`), n()) }.bind(this) } function l(e) { return !(!e || !e.url && !e.renderNow) } function u(e, t, n) { let i = null; e.config && e.config.documentResolver && (i = e.config.documentResolver(t, document, n)), i || (i = document), e.documentContext = i, e.render(t, e.documentContext) } c.install = function (e) { let { url: t, config: n, id: i, callback: r, loaded: o, adUnitCode: s, renderNow: a } = e; return new c({ url: t, config: n, id: i, callback: r, loaded: o, adUnitCode: s, renderNow: a }) }, c.prototype.getConfig = function () { return this.config }, c.prototype.setRender = function (e) { this._render = e }, c.prototype.setEventHandlers = function (e) { this.handlers = e }, c.prototype.handleVideoEvent = function (e) { let { id: t, eventName: n } = e; "function" == typeof this.handlers[n] && this.handlers[n](), (0, r.OG)(`Prebid Renderer event for id ${t} type ${n}`) }, c.prototype.process = function () { for (; this.cmd.length > 0;)try { this.cmd.shift().call() } catch (e) { (0, r.vV)(`Error processing Renderer command on ad unit '${this.adUnitCode}':`, e) } } }, 811: (e, t, n) => { n.d(t, { DL: () => d, Ml: () => r, Ue: () => i, VJ: () => l, hE: () => c, hq: () => a, mo: () => s, pY: () => u, uc: () => o }); const i = "accessDevice", r = "syncUser", o = "fetchBids", s = "reportAnalytics", a = "transmitEids", d = "transmitUfpd", c = "transmitPreciseGeo", l = "transmitTid", u = "loadExternalScript" }, 441: (e, t, n) => { n.d(t, { s: () => r }); var i = n(46); const r = (0, n(604).ZI)((e => i.Ay.resolveAlias(e))) }, 569: (e, t, n) => { n.d(t, { Tn: () => o, tW: () => r, tp: () => i }); const i = "prebid", r = "bidder", o = "analytics" }, 604: (e, t, n) => { n.d(t, { Dk: () => s, Ii: () => o, TQ: () => g, XG: () => l, ZI: () => p, Zw: () => c, bt: () => u, e3: () => f, iK: () => a, q7: () => d }); var i = n(569), r = n(214); const o = "component", s = o + "Type", a = o + "Name", d = "adapterCode", c = "storageType", l = "configName", u = "syncType", f = "syncUrl", g = "_config"; function p(e) { return function (t, n, r) { const c = { [s]: t, [a]: n, [o]: `${t}.${n}` }; return t === i.tW && (c[d] = e(n)), h(Object.assign(c, r)) } } const h = (0, r.A_)("sync", (e => e)) }, 139: (e, t, n) => { n.d(t, { io: () => s, qB: () => o }); var i = n(69), r = n(604); const [o, s] = function () { let e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : (0, i.h0)("Activity control:"); const t = {}; function n(e) { return t[e] = t[e] || [] } function o(t, n, i, o) { let s; try { s = i(o) } catch (i) { e.logError(`Exception in rule ${n} for '${t}'`, i), s = { allow: !1, reason: i } } return s && Object.assign({ activity: t, name: n, component: o[r.Ii] }, s) } const s = {}; f
(self.pbjsChunk = self.pbjsChunk || []).push([[769], { 944: (t, e, n) => { n.d(e, { M: () => i }); var c = n(69); function i() { const t = (0, c.Ot)(); try { const e = t.innerHeight || t.document.documentElement.clientHeight || t.document.body.clientHeight || 0; return { width: t.innerWidth || t.document.documentElement.clientWidth || t.document.body.clientWidth || 0, height: e } } catch (t) { return {} } } } }]);
(self.pbjsChunk = self.pbjsChunk || []).push([[139], { 43: (t, e, n) => { n.d(e, { k: () => c, w: () => r }); const s = 0, l = 1; class c { #t; #e; constructor(t) { if ("function" != typeof t) throw new Error("resolver not a function"); const e = [], n = []; let [c, r] = [s, l].map((t => function (l) { if (t === s && "function" == typeof l?.then) l.then(c, r); else if (!e.length) for (e.push(t, l); n.length;)n.shift()() })); try { t(c, r) } catch (t) { r(t) } this.#t = e, this.#e = n } then(t, e) { const n = this.#t; return new this.constructor(((l, c) => { const r = () => { let r = n[1], [h, i] = n[0] === s ? [t, l] : [e, c]; if ("function" == typeof h) { try { r = h(r) } catch (t) { return void c(t) } i = l } i(r) }; n.length ? r() : this.#e.push(r) })) } catch(t) { return this.then(null, t) } finally(t) { let e; return this.then((n => (e = n, t())), (n => (e = this.constructor.reject(n), t()))).then((() => e)) } static #n(t, e, n) { let s = t.length; function l() { e.apply(this, arguments), --s <= 0 && n && n() } 0 === t.length && n ? n() : t.forEach(((t, e) => this.resolve(t).then((t => l(!0, t, e)), (t => l(!1, t, e))))) } static race(t) { return new this(((e, n) => { this.#n(t, ((t, s) => t ? e(s) : n(s))) })) } static all(t) { return new this(((e, n) => { let s = []; this.#n(t, ((t, e, l) => t ? s[l] = e : n(e)), (() => e(s))) })) } static allSettled(t) { return new this((e => { let n = []; this.#n(t, ((t, e, s) => n[s] = t ? { status: "fulfilled", value: e } : { status: "rejected", reason: e }), (() => e(n))) })) } static resolve(t) { return new this((e => e(t))) } static reject(t) { return new this(((e, n) => n(t))) } } function r(t) { let e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0; if (e > 0) return setTimeout(t, e); t() } } }]);
(self.pbjsChunk = self.pbjsChunk || []).push([[85], { 595: (e, t, n) => { n.d(t, { G: () => s }); const s = '(()=>{"use strict";window.render=function({ad:e,adUrl:t,width:n,height:i,instl:d},{mkFrame:r},s){if(!e&&!t)throw{reason:"noAd",message:"Missing ad markup or URL"};{if(null==i){const e=s.document?.body;[e,e?.parentElement].filter((e=>null!=e?.style)).forEach((e=>e.style.height="100%"))}const h=s.document,o={width:n??"100%",height:i??"100%"};if(t&&!e?o.src=t:o.srcdoc=e,h.body.appendChild(r(h,o)),d&&s.frameElement){const e=s.frameElement.style;e.width=n?`${n}px`:"100vw",e.height=i?`${i}px`:"100vh"}}}})();' } }]);
(self.pbjsChunk = self.pbjsChunk || []).push([[498], { 620: (e, t, r) => { r.d(t, { A: () => m }); const n = new WeakMap; var i = r(69), s = r(371); var o = r(895); const a = { 1: s.D4, 2: s.G_, 4: s.s6 }; var d = r(0), p = r(858); const c = { [d.S3]: { fpd: { priority: 99, fn(e, t) { (0, i.D9)(e, t.ortb2) } }, onlyOneClient: { priority: -99, fn: (0, p.i8)("ORTB request") }, props: { fn(e, t) { Object.assign(e, { id: e.id || (0, i.lk)(), test: e.test || 0 }); const r = parseInt(t.timeout, 10); isNaN(r) || (e.tmax = r) } } }, [d.Tb]: { fpd: { priority: 99, fn(e, t) { (0, i.D9)(e, t.ortb2Imp) } }, id: { fn(e, t) { e.id = t.bidId } }, banner: { fn: function (e, t, r) { if (r.mediaType && r.mediaType !== s.D4) return; const n = t?.mediaTypes?.banner; if (n) { const r = { topframe: !0 === (0, i.al)() ? 0 : 1 }; n.sizes && null == t.ortb2Imp?.banner?.format && (r.format = (0, i.y$)(n.sizes).map(i.cf)), n.hasOwnProperty("pos") && (r.pos = n.pos), e.banner = (0, i.D9)(r, e.banner) } } }, pbadslot: { fn(e) { const t = e.ext?.data?.pbadslot; t && "string" == typeof t || delete e.ext?.data?.pbadslot } }, secure: { fn(e, t) { e.secure = e.secure ?? 1 } } }, [d.WR]: { mediaType: { priority: 99, fn: function (e, t, r) { if (e.mediaType) return; const n = r.mediaType; if (!n && !a.hasOwnProperty(t.mtype)) throw new Error("Cannot determine mediaType for response"); e.mediaType = n || a[t.mtype] } }, banner: { fn: function () { let { createPixel: e = (e => (0, i.Tz)(decodeURIComponent(e), i.Bk)) } = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; return function (t, r) { t.mediaType === s.D4 && (r.adm && r.nurl ? t.ad = e(r.nurl) + r.adm : r.adm ? t.ad = r.adm : r.nurl && (t.adUrl = r.nurl)) } }() }, props: { fn(e, t, r) { Object.entries({ requestId: r.bidRequest?.bidId, seatBidId: t.id, cpm: t.price, currency: r.ortbResponse.cur || r.currency, width: t.w, height: t.h, wratio: t.wratio, hratio: t.hratio, dealId: t.dealid, creative_id: t.crid, creativeId: t.crid, burl: t.burl, ttl: t.exp || r.ttl, netRevenue: r.netRevenue }).filter((e => { let [t, r] = e; return void 0 !== r })).forEach((t => { let [r, n] = t; return e[r] = n })), e.meta || (e.meta = {}), t.adomain && (e.meta.advertiserDomains = t.adomain), t.ext?.dsa && (e.meta.dsa = t.ext.dsa), t.cat && (e.meta.primaryCatId = t.cat[0], e.meta.secondaryCatIds = t.cat.slice(1)), t.attr && (e.meta.attr = t.attr), t.ext?.eventtrackers && (e.eventtrackers = (e.eventtrackers ?? []).concat(t.ext.eventtrackers)) } } } }; function u() { for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)t[r] = arguments[r]; const n = t.shift(), i = t.length > 1 ? u(...t) : t[0]; return Object.fromEntries(d.zt.map((e => [e, Object.assign({}, n[e], i[e])]))) } function m() { let { context: e = {}, processors: t = f, overrides: r = {}, imp: s, request: o, bidResponse: a, response: p } = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; const c = new WeakMap; function u(e, i, s, o) { let a; return function () { return null == a && (a = function () { let a = s.bind(this, function (e) { let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; if (!n.has(e)) { const t = Object.entries(e); t.sort(((e, t) => (e = e[1].priority || 0) === (t = t[1].priority || 0) ? 0 : e > t ? -1 : 1)), n.set(e, t.map((e => { let [t, r] = e; return [t, r.fn] }))) } const r = n.get(e).filter((e => { let [r] = e; return !t.hasOwnProperty(r) || t[r] })).map((function (e) { let [r, n] = e; return t.hasOwnProperty(r) ? t[r].bind(this, n) : n })); return function () { const e = Array.from(arguments); r.forEach((t => { t.apply(this, e) })) } }(t()[e] || {}, r[e] || {})); return i && (a = i.bind(this, a)), function () { try { return a.apply(this, arguments) } catch (e) { o.call(this, e, ...arguments) } } }()), a.apply(this, arguments) } } const m = u(d.Tb, s, (function (e, t, r) { const n = {}; return e(n, t, r), n }), (function (e, t, r) { (0, i.vV)("Error while converting bidRequest to ORTB imp; request skipped.", { error: e, bidRequest: t, context: r }) })), l = u(d.
(self.pbjsChunk = self.pbjsChunk || []).push([[259], { 223: (e, t, n) => { function r() { const e = navigator.connection || navigator.webkitConnection; if (!e) return 0; switch (e.type) { case "ethernet": return 1; case "wifi": return 2; case "wimax": return 6; default: switch (e.effectiveType) { case "slow-2g": case "2g": return 4; case "3g": return 5; case "4g": return 6; case "5g": return 7; default: return "cellular" == e.type ? 3 : 0 } } } n.d(t, { Z: () => r }) } }]);
(self.pbjsChunk = self.pbjsChunk || []).push([[807], { 773: (e, t, n) => { var s = n(873), r = n(272), o = n(115), i = n(69), d = n(172), a = n(433), p = n(371), u = n(620), c = n(223); const l = "roockmobile", g = [p.D4, p.G_, p.s6], b = "https://jstag.api.cqsjd.xyz/pbjs", m = { code: l, gvlid: 0, supportedMediaTypes: g, isBidRequestValid: function (e) { let t = e.params; return !("string" != typeof t.slot || "" === t.slot) || !("string" != typeof t.mid || "" === t.mid) || !("string" != typeof t.token || "" === t.token) }, buildRequests: function (e, t) { const n = f.toORTB({ bidRequests: e, bidderRequest: t, context: { mediaType: h(e[0].mediaTypes) } }); return { method: "POST", url: y(e[0]), data: n, bidderRequest: t, options: {} } }, interpretResponse: function (e, t) { e.body || (e.body = { nbr: 0 }); return f.fromORTB({ request: t.data, response: e.body }) }, getUserSyncs: function (e, t, n, s) { if (e.iframeEnabled || e.pixelEnabled) { let r = e.iframeEnabled ? "iframe" : "image", o = [], i = "https://jstag.api.cqsjd.xyz/test"; if (n && (o.push("gdpr=" + (n.gdprApplies ? 1 : 0)), o.push("gdpr_consent=" + encodeURIComponent(n.consentString || ""))), s && o.push("us_privacy=" + encodeURIComponent(s)), t.length > 0 && t[0].body && t[0].body.ext) { const e = t[0].body.ext; e.delDomain ? i = `https://${e.delDomain}/w/1.0/pd` : e.platform && o.push("ph=" + e.platform) } else o.push("ph="); return [{ type: r, url: `${i}${o.length > 0 ? "?" + o.join("&") : ""}` }] } } }; (0, o.a$)(m); const f = (0, u.A)({ context: { netRevenue: !0, ttl: 300, nativeRequest: { eventtrackers: [{ event: 1, methods: [1, 2] }] } }, imp(e, t, n) { const s = e(t, n); return s.hasOwnProperty("banner") || s.hasOwnProperty("video") || s.hasOwnProperty("native") ? (function (e, t, n) { e.tagid = t.params.slot, t.params?.bidfloor > 0 && (e.bidfloor = t.params.bidfloor); if (e.bidFloorCur = "USD", i.D9(e.ext, { domid: t.adUnitCode }), e.hasOwnProperty("banner")) { const { w: t, h: n } = e.banner?.format[0]; e.banner.w = t, e.banner.h = n } if (e.hasOwnProperty("video") && t.mediaTypes.video) { let n = t.mediaTypes.video?.playerSize[0]; e.video.w = n[0] || 640, e.video.h = n[1] || 480 } }(s, t), s) : null }, request(e, t, n, s) { const o = e(t, n, s); i.D9(o, { at: 1, cur: ["USD"], ext: { roockprebid: { ver: `${l}_1.0.0`, pv: "9.50.0" } } }), function (e, t) { e.regs || (e.regs = {}); t.gdprConsent && "boolean" == typeof t.gdprConsent.gdprApplies && d.J(e.regs, "ext.gdpr", t.gdprConsent.gdprApplies ? 1 : 0); t.uspConsent && d.J(e.regs, "ext.us_privacy", t.uspConsent); !0 === r.$W.getConfig("coppa") && (e.regs.coppa = 1) }(o, n), function (e, t) { e.user || (e.user = { id: "" }); t.gdprConsent && d.J(e.user, "ext.consent", t.gdprConsent.consentString); i.O8(a.A(t, "bids.0.userId.tdid")) && (e.user.buyeruid = t.bids[0].userId.tdid); var n = a.A(t, "bids.0.userIdAsEids"); n && n.length && d.J(e.user, "ext.eids", n) }(o, n), function (e, t) { e.device || (e.device = {}); const n = navigator.language || navigator.browserLanguage || navigator.userLanguage || navigator.systemLanguage; i.D9(e.device, { js: 1, dnt: i.l9() ? 1 : 0, language: n, connectiontype: (0, c.Z)() }) }(o), function (e, t) { e.site || (e.site = {}); e.site?.publisher ? e.site.publisher.id = t.bids[0].params?.mid : e.site.publisher = { id: t.bids[0].params?.mid, domain: a.A(t, "refererInfo.domain") } }(o, n); const p = n.bids[0]; return 1 === p.params?.test && (o.test = 1), o }, bidResponse(e, t, n) { let s = (0, a.A)(t, "ext.mtype"); if (g.includes(s) && (n.mediaType = s), s === p.D4) { const e = (0, a.A)(n.imp, "banner.w"), s = (0, a.A)(n.imp, "banner.h"); e > 0 && s > 0 && (t.w > e || t.w > s) && (t.w = e, t.h = s) } const r = e(t, n); return t.ext && (r.meta.dspid = t.ext?.rm_acc), r }, response: (e, t, n, s) => e(t, n, s), overrides: {} }); function y(e) { let { endpoint: t, mid: n, token: s } = e.params; return (t || b) + "?mid=" + n + "&token=" + s } function h(e) { return e.video ? p.G_ : e.banner ? p.D4 : e.native ? p.s6 : "unknown" } (0, s.E)("roockmobileBidAdapter") } }, e => {
})(), pbjs.processQueue();