PageSourceSearch

https://www.principalam.com/profiles/contrib/houston/modules/pfg_p…/pds-components/index.esm.chunk-BA6BiEVZ.js

js principalam.com collected 2026-09-28 08:20:46 UTC 8,729 bytes, 216 lines download raw bytes

vendor: 8,729 bytes, lines 1-216
1var T = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert] *)", "textarea:not([inert]):not([inert] *)", "a[href]:not([inert]):not([inert] *)", "button:not([inert]):not([inert] *)", "[tabindex]:not(slot):not([inert]):not([inert] *)", "audio[controls]:not([inert]):not([inert] *)", "video[controls]:not([inert]):not([inert] *)", '[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)', "details>summary:first-of-type:not([inert]):not([inert] *)", "details:not([inert]):not([inert] *)"], v = /* @__PURE__ */ T.join(","), I = typeof Element > "u", d = I ? function() {
2} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, b = !I && Element.prototype.getRootNode ? function(i) {
3  var t;
4  return i == null || (t = i.getRootNode) === null || t === void 0 ? void 0 : t.call(i);
5} : function(i) {
6  return i?.ownerDocument;
7}, h = function(t, e) {
8  var r;
9  e === void 0 && (e = !0);
10  var a = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, "inert"), l = a === "" || a === "true", n = l || e && t && // closest does not exist on shadow roots, so we fall back to a manual
11  // lookup upward, in case it is not defined.
12  (typeof t.closest == "function" ? t.closest("[inert]") : h(t.parentNode));
13  return n;
14}, x = function(t) {
15  var e, r = t == null || (e = t.getAttribute) === null || e === void 0 ? void 0 : e.call(t, "contenteditable");
16  return r === "" || r === "true";
17}, m = function(t, e, r) {
18  if (h(t))
19    return [];
20  var a = Array.prototype.slice.apply(t.querySelectorAll(v));
21  return e && d.call(t, v) && a.unshift(t), a = a.filter(r), a;
22}, g = function(t, e, r) {
23  for (var a = [], l = Array.from(t); l.length; ) {
24    var n = l.shift();
25    if (!h(n, !1))
26      if (n.tagName === "SLOT") {
27        var c = n.assignedElements(), s = c.length ? c : n.children, u = g(s, !0, r);
28        r.flatten ? a.push.apply(a, u) : a.push({
29          scopeParent: n,
30          candidates: u
31        });
32      } else {
33        var o = d.call(n, v);
34        o && r.filter(n) && (e || !t.includes(n)) && a.push(n);
35        var f = n.shadowRoot || // check for an undisclosed shadow
36        typeof r.getShadowRoot == "function" && r.getShadowRoot(n), A = !h(f, !1) && (!r.shadowRootFilter || r.shadowRootFilter(n));
37        if (f && A) {
38          var p = g(f === !0 ? n.children : f.children, !0, r);
39          r.flatten ? a.push.apply(a, p) : a.push({
40            scopeParent: n,
41            candidates: p
42          });
43        } else
44          l.unshift.apply(l, n.children);
45      }
46  }
47  return a;
48}, C = function(t) {
49  return !isNaN(parseInt(t.getAttribute("tabindex"), 10));
50}, N = function(t) {
51  if (!t)
52    throw new Error("No node provided");
53  return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || x(t)) && !C(t) ? 0 : t.tabIndex;
54}, O = function(t, e) {
55  var r = N(t);
56  return r < 0 && e && !C(t) ? 0 : r;
57}, k = function(t, e) {
58  return t.tabIndex === e.tabIndex ? t.documentOrder - e.documentOrder : t.tabIndex - e.tabIndex;
59}, R = function(t) {
60  return t.tagName === "INPUT";
61}, F = function(t) {
62  return R(t) && t.type === "hidden";
63}, D = function(t) {
64  var e = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(r) {
65    return r.tagName === "SUMMARY";
66  });
67  return e;
68}, M = function(t, e) {
69  for (var r = 0; r < t.length; r++)
70    if (t[r].checked && t[r].form === e)
71      return t[r];
72}, P = function(t) {
73  if (!t.name)
74    return !0;
75  var e = t.form || b(t), r = function(c) {
76    return e.querySelectorAll('input[type="radio"][name="' + c + '"]');
77  }, a;
78  if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function")
79    a = r(window.CSS.escape(t.name));
80  else
81    try {
82      a = r(t.name);
83    } catch (n) {
84      return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", n.message), !1;
85    }
86  var l = M(a, t.form);
87  return !l || l === t;
88}, L = function(t) {
89  return R(t) && t.type === "radio";
90}, V = function(t) {
91  return L(t) && !P(t);
92}, B = function(t) {
93  var e, r = t && b(t), a = (e = r) === null || e === void 0 ? void 0 : e.host, l = !1;
94  if (r && r !== t) {
95    var n, c, s;
96    for (l = !!((n = a) !== null && n !== void 0 && (c = n.ownerDocument) !== null && c !== void 0 && c.contains(a) || t != null && (s = t.ownerDocument) !== null && s !== void 0 && s.contains(t)); !l && a; ) {
97      var u, o, f;
98      r = b(a), a = (u = r) === null || u === void 0 ? void 0 : u.host, l = !!((o = a) !== null && o !== void 0 && (f = o.ownerDocument) !== null && f !== void 0 && f.contains(a));
99    }
100  }
101  return l;
102}, w = function(t) {
103  var e = t.getBoundingClientRect(), r = e.width, a = e.height;
104  return r === 0 && a === 0;
105}, q = function(t, e) {
106  var r = e.displayCheck, a = e.getShadowRoot;
107  if (r === "full-native" && "checkVisibility" in t) {
108    var l = t.checkVisibility({
109      // Checking opacity might be desirable for some use cases, but natively,
110      // opacity zero elements _are_ focusable and tabbable.
111      checkOpacity: !1,
112      opacityProperty: !1,
113      contentVisibilityAuto: !0,
114      visibilityProperty: !0,
115      // This is an alias for `visibilityProperty`. Contemporary browsers
116      // support both. However, this alias has wider browser support (Chrome
117      // >= 105 and Firefox >= 106, vs. Chrome >= 121 and Firefox >= 122), so
118      // we include it anyway.
119      checkVisibilityCSS: !0
120    });
121    return !l;
122  }
123  if (getComputedStyle(t).visibility === "hidden")
124    return !0;
125  var n = d.call(t, "details>summary:first-of-type"), c = n ? t.parentElement : t;
126  if (d.call(c, "details:not([open]) *"))
127    return !0;
128  if (!r || r === "full" || // full-native can run this branch when it falls through in case
129  // Element#checkVisibility is unsupported
130  r === "full-native" || r === "legacy-full") {
131    if (typeof a == "function") {
132      for (var s = t; t; ) {
133        var u = t.parentElement, o = b(t);
134        if (u && !u.shadowRoot && a(u) === !0)
135          return w(t);
136        t.assignedSlot ? t = t.assignedSlot : !u && o !== t.ownerDocument ? t = o.host : t = u;
137      }
138      t = s;
139    }
140    if (B(t))
141      return !t.getClientRects().length;
142    if (r !== "legacy-full")
143      return !0;
144  } else if (r === "non-zero-area")
145    return w(t);
146  return !1;
147}, U = function(t) {
148  if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))
149    for (var e = t.parentElement; e; ) {
150      if (e.tagName === "FIELDSET" && e.disabled) {
151        for (var r = 0; r < e.children.length; r++) {
152          var a = e.children.item(r);
153          if (a.tagName === "LEGEND")
154            return d.call(e, "fieldset[disabled] *") ? !0 : !a.contains(t);
155        }
156        return !0;
157      }
158      e = e.parentElement;
159    }
160  return !1;
161}, y = function(t, e) {
162  return !(e.disabled || F(e) || q(e, t) || // For a details element with a summary, the summary element gets the focus
163  D(e) || U(e));
164}, S = function(t, e) {
165  return !(V(e) || N(e) < 0 || !y(t, e));
166}, j = function(t) {
167  var e = parseInt(t.getAttribute("tabindex"), 10);
168  return !!(isNaN(e) || e >= 0);
169}, E = function(t) {
170  var e = [], r = [];
171  return t.forEach(function(a, l) {
172    var n = !!a.scopeParent, c = n ? a.scopeParent : a, s = O(c, n), u = n ? E(a.candidates) : c;
173    s === 0 ? n ? e.push.apply(e, u) : e.push(c) : r.push({
174      documentOrder: l,
175      tabIndex: s,
176      item: a,
177      isScope: n,
178      content: u
179    });
180  }), r.sort(k).reduce(function(a, l) {
181    return l.isScope ? a.push.apply(a, l.content) : a.push(l.content), a;
182  }, []).concat(e);
183}, Z = function(t, e) {
184  e = e || {};
185  var r;
186  return e.getShadowRoot ? r = g([t], e.includeContainer, {
187    filter: S.bind(null, e),
188    flatten: !1,
189    getShadowRoot: e.getShadowRoot,
190    shadowRootFilter: j
191  }) : r = m(t, e.includeContainer, S.bind(null, e)), E(r);
192}, z = function(t, e) {
193  e = e || {};
194  var r;
195  return e.getShadowRoot ? r = g([t], e.includeContainer, {
196    filter: y.bind(null, e),
197    flatten: !0,
198    getShadowRoot: e.getShadowRoot
199  }) : r = m(t, e.includeContainer, y.bind(null, e)), r;
200}, G = function(t, e) {
201  if (e = e || {}, !t)
202    throw new Error("No node provided");
203  return d.call(t, v) === !1 ? !1 : S(e, t);
204}, W = /* @__PURE__ */ T.concat("iframe:not([inert]):not([inert] *)").join(","), X = function(t, e) {
205  if (e = e || {}, !t)
206    throw new Error("No node provided");
207  return d.call(t, W) === !1 ? !1 : y(e, t);
208};
209export {
210  G as a,
211  z as f,
212  N as g,
213  X as i,
214  Z as t
215};
216//# sourceMappingURL=index.esm.chunk-BA6BiEVZ.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.