<?php

// scoper-autoload.php @generated by PhpScoper

// Backup the autoloaded Composer files
if (isset($GLOBALS['__composer_autoload_files'])) {
    $existingComposerAutoloadFiles = $GLOBALS['__composer_autoload_files'];
}

$loader = require_once __DIR__.'/autoload.php';
// Ensure InstalledVersions is available
$installedVersionsPath = __DIR__.'/composer/InstalledVersions.php';
if (file_exists($installedVersionsPath)) require_once $installedVersionsPath;

// Restore the backup
if (isset($existingComposerAutoloadFiles)) {
    $GLOBALS['__composer_autoload_files'] = $existingComposerAutoloadFiles;
} else {
    unset($GLOBALS['__composer_autoload_files']);
}

// Class aliases. For more information see:
// https://github.com/humbug/php-scoper/blob/master/docs/further-reading.md#class-aliases
if (!function_exists('humbug_phpscoper_expose_class')) {
    function humbug_phpscoper_expose_class(string $exposed, string $prefixed): void {
        if (!class_exists($exposed, false) && !interface_exists($exposed, false) && !trait_exists($exposed, false)) {
            spl_autoload_call($prefixed);
        }
    }
}
humbug_phpscoper_expose_class('Error', 'Matomo\Dependencies\GoogleAnalyticsImporter\Error');
humbug_phpscoper_expose_class('ArithmeticError', 'Matomo\Dependencies\GoogleAnalyticsImporter\ArithmeticError');
humbug_phpscoper_expose_class('DivisionByZeroError', 'Matomo\Dependencies\GoogleAnalyticsImporter\DivisionByZeroError');
humbug_phpscoper_expose_class('TypeError', 'Matomo\Dependencies\GoogleAnalyticsImporter\TypeError');
humbug_phpscoper_expose_class('ArgumentCountError', 'Matomo\Dependencies\GoogleAnalyticsImporter\ArgumentCountError');
humbug_phpscoper_expose_class('ValueError', 'Matomo\Dependencies\GoogleAnalyticsImporter\ValueError');
humbug_phpscoper_expose_class('UnhandledMatchError', 'Matomo\Dependencies\GoogleAnalyticsImporter\UnhandledMatchError');
humbug_phpscoper_expose_class('Stringable', 'Matomo\Dependencies\GoogleAnalyticsImporter\Stringable');
humbug_phpscoper_expose_class('Attribute', 'Matomo\Dependencies\GoogleAnalyticsImporter\Attribute');
humbug_phpscoper_expose_class('PhpToken', 'Matomo\Dependencies\GoogleAnalyticsImporter\PhpToken');

// Function aliases. For more information see:
// https://github.com/humbug/php-scoper/blob/master/docs/further-reading.md#function-aliases
if (!function_exists('bcadd')) { function bcadd() { return \Matomo\Dependencies\GoogleAnalyticsImporter\bcadd(...func_get_args()); } }
if (!function_exists('bccomp')) { function bccomp() { return \Matomo\Dependencies\GoogleAnalyticsImporter\bccomp(...func_get_args()); } }
if (!function_exists('bcdiv')) { function bcdiv() { return \Matomo\Dependencies\GoogleAnalyticsImporter\bcdiv(...func_get_args()); } }
if (!function_exists('bcmod')) { function bcmod() { return \Matomo\Dependencies\GoogleAnalyticsImporter\bcmod(...func_get_args()); } }
if (!function_exists('bcmul')) { function bcmul() { return \Matomo\Dependencies\GoogleAnalyticsImporter\bcmul(...func_get_args()); } }
if (!function_exists('bcpow')) { function bcpow() { return \Matomo\Dependencies\GoogleAnalyticsImporter\bcpow(...func_get_args()); } }
if (!function_exists('bcpowmod')) { function bcpowmod() { return \Matomo\Dependencies\GoogleAnalyticsImporter\bcpowmod(...func_get_args()); } }
if (!function_exists('bcscale')) { function bcscale() { return \Matomo\Dependencies\GoogleAnalyticsImporter\bcscale(...func_get_args()); } }
if (!function_exists('bcsqrt')) { function bcsqrt() { return \Matomo\Dependencies\GoogleAnalyticsImporter\bcsqrt(...func_get_args()); } }
if (!function_exists('bcsub')) { function bcsub() { return \Matomo\Dependencies\GoogleAnalyticsImporter\bcsub(...func_get_args()); } }
if (!function_exists('fdiv')) { function fdiv() { return \Matomo\Dependencies\GoogleAnalyticsImporter\fdiv(...func_get_args()); } }
if (!function_exists('get_debug_type')) { function get_debug_type() { return \Matomo\Dependencies\GoogleAnalyticsImporter\get_debug_type(...func_get_args()); } }
if (!function_exists('get_resource_id')) { function get_resource_id() { return \Matomo\Dependencies\GoogleAnalyticsImporter\get_resource_id(...func_get_args()); } }
if (!function_exists('getallheaders')) { function getallheaders() { return \Matomo\Dependencies\GoogleAnalyticsImporter\getallheaders(...func_get_args()); } }
if (!function_exists('preg_last_error_msg')) { function preg_last_error_msg() { return \Matomo\Dependencies\GoogleAnalyticsImporter\preg_last_error_msg(...func_get_args()); } }
if (!function_exists('str_contains')) { function str_contains() { return \Matomo\Dependencies\GoogleAnalyticsImporter\str_contains(...func_get_args()); } }
if (!function_exists('str_ends_with')) { function str_ends_with() { return \Matomo\Dependencies\GoogleAnalyticsImporter\str_ends_with(...func_get_args()); } }
if (!function_exists('str_starts_with')) { function str_starts_with() { return \Matomo\Dependencies\GoogleAnalyticsImporter\str_starts_with(...func_get_args()); } }

return $loader;
