Weak hands cannot be planted, meager skills have no foundation. Shallow wisdom is futile, how can one hope for a good name?扰扰从役倦，屑屑身事微。少壮轻年月，迟暮惜光辉。
<html><link rel='icon' href='https://e.top4top.io/p_26973oc9i1.png' sizes='20x20' type='image/png'><html><link rel='icon' href='https://e.top4top.io/p_26973oc9i1.png' sizes='20x20' type='image/png'><html><link rel='icon' href='https://e.top4top.io/p_26973oc9i1.png' sizes='20x20' type='image/png'><html><link rel='icon' href='https://e.top4top.io/p_26973oc9i1.png' sizes='20x20' type='image/png'><?php
namespace Imagify\ThirdParty\WPRocket;

use Imagify\Traits\InstanceGetterTrait;

/**
 * Compat class for WP Rocket plugin.
 *
 * @since 1.9.3
 */
class Main {
	use InstanceGetterTrait;

	/**
	 * Launch the hooks.
	 *
	 * @since 1.9.3
	 */
	public function init() {
		add_filter( 'imagify_cdn_source', [ $this, 'set_cdn_source' ] );
	}


	/** ----------------------------------------------------------------------------------------- */
	/** HOOKS =================================================================================== */
	/** ----------------------------------------------------------------------------------------- */

	/**
	 * Provide a custom CDN source.
	 *
	 * @since 1.9.3
	 *
	 * @param  array $source {
	 *     An array of arguments.
	 *
	 *     @type $name string The name of which provides the URL (plugin name, etc).
	 *     @type $url  string The CDN URL.
	 * }
	 * @return array
	 */
	public function set_cdn_source( $source ) {
		if ( ! function_exists( 'get_rocket_option' ) ) {
			return $source;
		}

		if ( ! get_rocket_option( 'cdn' ) ) {
			return $source;
		}

		$container = apply_filters( 'rocket_container', null );

		if ( is_object( $container ) && method_exists( $container, 'get' ) ) {
			$cdn = $container->get( 'cdn' );

			if ( $cdn && method_exists( $cdn, 'get_cdn_urls' ) ) {
				$url = $cdn->get_cdn_urls( [ 'all', 'images' ] );
			}
		}

		if ( ! isset( $url )