<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">var XnhdTools; !function (t) { var e; t.ButtonEff = class extends Laya.Image { constructor() { super(), this.on(Laya.Event.MOUSE_DOWN, this, t =&gt; { this.scale(.9, .9) }), this.on(Laya.Event.MOUSE_OUT, this, t =&gt; { this.scale(1, 1) }), this.on(Laya.Event.MOUSE_UP, this, t =&gt; { this.scale(1, 1) }) } }, t.randomInt = function (t, e) { return Math.round(Math.random() * (e - t)) + t }, t.getScreenHeightRatio = function () { let t = XnhdDefault.Param.screenHeight - 1334; return t &lt; 0 &amp;&amp; (t = 0), t / 290 }, t.getUrlParam = function (t) { let e = new RegExp("(^|&amp;)" + t + "=([^&amp;]*)(&amp;|$)"), n = Laya.Browser.window.location.search.substr(1).match(e); return null != n ? decodeURI(n[2]) : null }, t.normalRequestHttp = function (t, n, o, a, s, l = "json", r = null) { (e = new Laya.HttpRequest).http.timeout = 1e4, e.http.withCredentials = !0, e.once(Laya.Event.COMPLETE, this, e =&gt; { try { "json" == l &amp;&amp; (e = JSON.parse(e)), n &amp;&amp; n(e) } catch (n) { XnhdDefault.logError(t + " error ==&gt;" + e), a &amp;&amp; a(e) } }), e.once(Laya.Event.ERROR, this, t =&gt; { a &amp;&amp; a(t) }), console.log("contentType:" + l), console.log("method:" + s), console.log("charset:" + r), "text" == l ? null == r ? e.send(t, o, s, "text", ["Content-Type", "text/html"]) : e.send(t, o, s, "text", ["Content-Type", "text/html; charset=" + r]) : "json" == l ? null == r ? e.send(t, o, s, "text", ["Content-Type", "application/json"]) : e.send(t, o, s, "text", ["Content-Type", "application/json; charset=" + r]) : null == r ? e.send(t, o, s, "text", ["Content-Type", "application/x-www-form-urlencoded"]) : e.send(t, o, s, "text", ["Content-Type", "application/x-www-form-urlencoded; charset=" + r]) }, t.localToGlobal = function (t, e) { let n = e; for (; n &amp;&amp; !n.destroyed &amp;&amp; n != Laya.stage;)t = n.toParentPoint(t), n = n.parent; return n &amp;&amp; !n.destroyed || (t.x = t.x * XnhdDefault.Param.screenScale, t.y = t.y * XnhdDefault.Param.screenScale), t } }(XnhdTools || (XnhdTools = {})), XnhdDefault.regClassName("XnhdTools", XnhdTools);</pre></body></html>