Neighbourhood.omg.lol/wwwroot/vendor/iframe-resizer/parent.js

24 lines
18 KiB
JavaScript
Raw Permalink Normal View History

2024-06-11 00:36:48 +00:00
/**
* Minified by jsDelivr using Terser v5.19.2.
* Original file: /npm/@iframe-resizer/parent@5.0.2/index.umd.js
*
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
*/
/*!
* @preserve
*
* @module iframe-resizer/parent 5.0.2 (umd) - 2024-05-30
*
* @license GPL-3.0 for non-commercial use only.
* For commercial use, you must purchase a license from
* https://iframe-resizer.com/pricing
*
* @desciption Keep same and cross domain iFrames sized to their content
*
* @author David J. Bradshaw <info@iframe-resizer.com>
*
* @see {@link https://iframe-resizer.com}
*
* @copyright (c) 2013 - 2024, David J. Bradshaw. All rights reserved.
*/
!function (e, t) { "object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = "undefined" != typeof globalThis ? globalThis : e || self).iframeResize = t() }(this, (function () { "use strict"; const e = "[iframe-resizer]"; const t = t => `${e}[${function (e) { return window.top === window.self ? `Parent page: ${e}` : window?.parentIFrame?.getId ? `${window.parentIFrame.getId()}: ${e}` : `Nested parent page: ${e}` }(t)}]`, i = (e, i, ...n) => window?.console[e](t(i), ...n), n = (e, ...t) => i("warn", e, ...t), o = (t, i) => console?.warn((e => t => window.chrome ? e(t.replaceAll("<br>", "\n").replaceAll("<rb>", "").replaceAll("</>", "").replaceAll("<b>", "").replaceAll("<i>", "").replaceAll("<u>", "")) : e(t.replaceAll("<br>", "\n").replaceAll(/<[/a-z]+>/gi, "")))((t => (...i) => [`${e}[${t}]`, ...i].join(" "))(t))(i)), r = "5.0.2", a = "[iFrameSizer]", s = a.length, l = Object.freeze({ max: 1, scroll: 1, bodyScroll: 1, documentElementScroll: 1 }), c = (e, t, i, n) => e.addEventListener(t, i, n || !1), d = (e, t, i) => e.removeEventListener(t, i, !1), u = e => { if (!e) return ""; let t = -559038744, i = 1103547984; for (let n, o = 0; o < e.length; o++)n = e.codePointAt(o), t = Math.imul(t ^ n, 2246822519), i = Math.imul(i ^ n, 3266489917); return t ^= Math.imul(t ^ i >>> 15, 1935289751), i ^= Math.imul(i ^ t >>> 15, 3405138345), t ^= i >>> 16, i ^= t >>> 16, (2097152 * (i >>> 0) + (t >>> 11)).toString(36) }, f = e => e.replaceAll(/[A-Za-z]/g, (e => String.fromCodePoint((e <= "Z" ? 90 : 122) >= (e = e.codePointAt(0) + 19) ? e : e - 26))), p = ["<iy><yi>Puchspk Spjluzl Rlf</><iy><iy>", "<iy><yi>Tpzzpun Spjluzl Rlf</><iy><iy>", "Aopz spiyhyf pz hchpshisl dpao ivao Jvttlyjphs huk Vwlu-Zvbyjl spjluzlz.<iy><iy><i>Jvttlyjphs Spjluzl</><iy>Mvy jvttlyjphs bzl, <p>pmyhtl-ylzpgly</> ylxbpylz h svd jvza vul aptl spjluzl mll. Mvy tvyl pumvythapvu cpzpa <b>oaawz://pmyhtl-ylzpgly.jvt/wypjpun</>.<iy><iy><i>Vwlu Zvbyjl Spjluzl</><iy>Pm fvb hyl bzpun aopz spiyhyf pu h uvu-jvttlyjphs vwlu zvbyjl wyvqlja aolu fvb jhu bzl pa mvy myll bukly aol alytz vm aol NWS C3 Spjluzl. Av jvumpyt fvb hjjlwa aolzl alytz, wslhzl zla aol <i>spjluzl</> rlf pu <p>pmyhtl-ylzpgly</> vwapvuz av <i>NWSc3</>.<iy><iy>Mvy tvyl pumvythapvu wslhzl zll: <b>oaawz://pmyhtl-ylzpgly.jvt/nws</>", "<i>NWSc3 Spjluzl Clyzpvu</><iy><iy>Aopz clyzpvu vm <p>pmyhtl-ylzpgly</> pz ilpun bzlk bukly aol alytz vm aol <i>NWS C3</> spjluzl. Aopz spjluzl hssvdz fvb av bzl <p>pmyhtl-ylzpgly</> pu Vwlu Zvbyjl wyvqljaz, iba pa ylxbpylz fvby wyvqlja av il wbispj, wyvcpkl haaypibapvu huk il spjluzlk bukly clyzpvu 3 vy shaly vm aol NUB Nlulyhs Wbispj Spjluzl.<iy><iy>Pm fvb hyl bzpun aopz spiyhyf pu h uvu-vwlu zvbyjl wyvqlja vy dlizpal, fvb dpss ullk av wbyjohzl h svd jvza vul aptl jvttlyjphs spjluzl.<iy><iy>Mvy tvyl pumvythapvu cpzpa <b>oaawz://pmyhtl-ylzpgly.jvt/wypjpun</>."], m = ["NWSc3", "zvsv", "wyv", "ibzpulzz", "vlt"], h = Object.fromEntries(["2cgs7fdf4xb", "1c9ctcccr4z", "1q2pc4eebgb", "ueokt0969w", "w2zxchhgqz", "1umuxblj2e5"].map(((e, t) => [e, Math.max(0, t - 1)]))), y = e => f(p[e]), g = e => { const t = e[f("spjluzl")]; if (!t) return -1; const i = t.split("-"); let n = function (e = "") { let t = -2; const i = u(f(e)); return i in h && (t = h[i]), t }(i[0]); return 0 === n || (e => e[2] === u(e[0] + e[1]))(i) || (n = -2), n }, w = {}, b = Object.freeze({ autoResize: !0, bodyBackground: null, bodyMargin: null, bodyPadding: null, checkOrigin: !0, direction: "vertical", inPageLinks: !1, heightCalculationMethod: "auto", id: "iFrameResizer", log: !1, license: void 0, mouseEvents: !0, offsetHeight: null, offsetWidth: null, postMessageTarget: null, sameDomain: !1, scrolling: !1, sizeHeight: !0, sizeWidth: !1, warningTimeout: 5e3, tolerance: 0, widthCalculationMethod: "auto", onClose: () => !0, onClosed() { }, onInit: !1, onMessage: null, onMouseEnter() { }, onMouseLeave() { }, onReady: e => { "function" == typeof w[e.id].onInit && (o(e.id, "\nDeprecated Option\n\nThe o