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

24 lines
19 KiB
JavaScript
Raw Normal View History

2024-06-11 00:36:48 +00:00
/**
* Minified by jsDelivr using Terser v5.19.2.
* Original file: /npm/@iframe-resizer/child@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/child 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) { "function" == typeof define && define.amd ? define(e) : e() }((function () { "use strict"; const e = "5.0.2", t = 10, n = "data-iframe-size", o = (e, t, n, o) => e.addEventListener(t, n, o || !1), i = (e, t, n) => e.removeEventListener(t, n, !1), r = ["<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</>."]; Object.fromEntries(["2cgs7fdf4xb", "1c9ctcccr4z", "1q2pc4eebgb", "ueokt0969w", "w2zxchhgqz", "1umuxblj2e5"].map(((e, t) => [e, Math.max(0, t - 1)]))); const a = e => (e => e.replaceAll(/[A-Za-z]/g, (e => String.fromCodePoint((e <= "Z" ? 90 : 122) >= (e = e.codePointAt(0) + 19) ? e : e - 26))))(r[e]), l = { contentVisibilityAuto: !0, opacityProperty: !0, visibilityProperty: !0 }, c = { height: () => (re("Custom height calculation function not defined"), Ie.auto()), width: () => (re("Custom width calculation function not defined"), xe.auto()) }, s = { bodyOffset: 1, bodyScroll: 1, offset: 1, documentElementOffset: 1, documentElementScroll: 1, documentElementBoundingClientRect: 1, max: 1, min: 1, grow: 1, lowestElement: 1 }, u = 128, d = {}, m = "checkVisibility" in window, f = "auto", p = "[iFrameSizer]", h = p.length, y = { max: 1, min: 1, bodyScroll: 1, documentElementScroll: 1 }, g = ["body"], v = "scroll"; let b, w, z = !0, S = "", $ = 0, j = "", E = null, O = "", A = !0, M = !1, C = null, P = !0, T = !1, I = 1, x = f, N = !0, k = "", R = {}, B = !0, q = !1, L = 0, D = !1, H = "", W = "child", F = null, U = !1, V = window.parent, J = "*", Z = 0, Q = !1, X = "", Y = 1, G = v, K = window, _ = () => { re("onMessage function not defined") }, ee = () => { }, te = null, ne = null; const oe = e => "" != `${e}` && void 0 !== e; const ie = (...e) => [`[iframe-resizer][${H}]`, ...e].join(" "), re = (...e) => console?.warn(ie(...e)), ae = (...e) => 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, "")))(ie)(...e)), le = e => ae(e); function ce() { !function () { try { U = "iframeParentListener" in window.parent } catch (e) { } }(), function () { const e = e => "true" === e, t = k.slice(h).split(":"); H = t[0], $ = void 0 === t[1] ? $ : Number(t[1]), M = void 0 === t[2] ? M : e(t[2]), q = void 0 === t[3] ? q : e(t[3]), z = void 0 === t[6] ? z : e(t[6]), j = t[7], x = void 0 === t[8] ? x : t[8], S = t[9], O = t[10], Z = void 0 === t[11] ? Z : Number(t[11]), R.enable = void 0 !== t[12] && e(t[12]), W = void 0 === t[13] ? W : t[13], G = void 0 === t[14] ? G : t[14], D = void 0 === t[15] ? D : e(t[15]), b = void 0 === t[16] ? b : Number(t[16]), w = void 0 === t[17] ? w : Number(t[17]), A = void 0 === t[18] ? A : e(t[18]), t[19], X = t[20] || X, L = void 0 === t[21] ? L : Number(t[21]) }(), function () {