<?php
namespace Claromentis\Core\Event;

$GLOBALS["__65da1b1ec2d6653e8a0ab784" . "8e536215"] = (@$GLOBALS["__65da1b1ec2d6653e" . "8a0ab7848e536215"] ?: array()) + array("_f6ad69e5b7ae76" . "62b1d0fa05847ad" . "a65" => base64_decode("Y2xhcm9tZW5" . "0aXMvZnJhbW" . "V3b3Jr"), "_6edacb7" . "8bd55c50" . "15af27c8" . "ac1fcd9a" . "f" => base64_decode("bWV0aG9kX2V4aXN0c" . "w=="), "_9a9e2d14785b" . "dbaecfc454cb0" . "09e47a7" => base64_decode("MT" . "A="), "_d91a7be21d972d4aac861a735" . "2a2079f" => base64_decode("c2V0TmF" . "tZQ=="), "_c244a470df52d1d5a7085138ec94e3" . "93" => base64_decode("dW5zZXJpYW" . "xpemU="), "_249e641075c6a29865e4c4b4" . "6d959e7f" => base64_decode("dHJpZ2dlcl9kZX" . "ByZWNhdGlvbg=="), "_7cf327515b98333f2887781d2582ce" . "87" => base64_decode("TWV0aG9kIHNpZ25hdHVyZSBkZXByZWNhdGVkIGZvciB0aGUgRXZlbnREaXNwYXRjaGVyOjpkaXNwYXRjaCgpI" . "HNpbmNlIENvcmUgMTAsIGR1ZSB0byBTeW1mb255IDUncyBjaGFuZ2VzOiBzd2FwIHRoZSBmaXJzdCB0d28gYX" . "JndW1lbnRzIHRvIHRoaXMgbWV0aG9k"), "_db6f0ba0791e9a6354" . "07659a9fe04e40" => base64_decode("aXN" . "fb2" . "JqZ" . "WN0"), "_96be32a6f44bf54" . "e635e1736acf7a96" . "c" => base64_decode("c2VyaWFsa" . "Xpl"));
use Claromentis\Common\ApplicationMiscellany\Finisher;
use Claromentis\Core\Services;
use Symfony\Contracts\EventDispatcher\Event;
use Symfony\Component\EventDispatcher\EventDispatcher as BaseEventDispatcher;




class EventDispatcher extends BaseEventDispatcher implements EventDispatcherInterface
{
    
    
    
    
    
    
    protected ?Finisher $finisher;
    
    
    
    
    public function __construct(Finisher $_fea16585ee8de2b835a68ccd4bc60aef = null)
    {
        parent::__construct();
        $this->finisher = $_fea16585ee8de2b835a68ccd4bc60aef;
    }
    
    
    
    
    
    
    
    
    public static function Shared()
    {
        return Services::I()->dispatcher;
    }
    
    
    
    
    
    
    
    
    
    
    
    public function dispatch($event, $_2cf093f28f4c7e718a5e8af628894c7b = null, bool $_46d17db0bd1ac920366ce3e210c240c1 = false) : object
    {
        if ($GLOBALS["__65da1b1ec2d6653e" . "8a0ab7848e536215"]["_db6f0ba0791e9a63540" . "7659a9fe04e40"]($event)) {
            return $this->bcAwareDispatch($event, $_2cf093f28f4c7e718a5e8af628894c7b, $_46d17db0bd1ac920366ce3e210c240c1);
        }
        $GLOBALS["__65da1b1ec" . "2d6653e8a0a" . "b7848e53621" . "5"]["_249e6410" . "75c6a2986" . "5e4c4b46d" . "959e7f"]($GLOBALS["__65da1b1ec" . "2d6653e8a0a" . "b7848e53621" . "5"]["_f6ad69e5b7a" . "e7662b1d0fa0" . "5847ada65"], $GLOBALS["__65da1b1ec2d6653e8a0ab7848" . "e536215"]["_9a9e2d14785bdbaecfc454cb009e" . "47a7"], $GLOBALS["__65da1b1ec2d6" . "653e8a0ab7848e" . "536215"]["_7cf327515b9833" . "3f2887781d2582c" . "e87"]);
        return $this->bcAwareDispatch($_2cf093f28f4c7e718a5e8af628894c7b, $event, $_46d17db0bd1ac920366ce3e210c240c1);
    }
    
    
    
    
    
    
    
    
    
    private function bcAwareDispatch(object $event = null, ?string $_2cf093f28f4c7e718a5e8af628894c7b, bool $_46d17db0bd1ac920366ce3e210c240c1 = false) : object
    {
        if ($event === null) {
            $event = new Event();
        }
        if ($GLOBALS["__65da1b1ec" . "2d6653e8a0a" . "b7848e53621" . "5"]["_6edacb78bd55c5015af27c" . "8ac1fcd9af"]($event, $GLOBALS["__65da1b1ec2d6653e8a0ab" . "7848e536215"]["_d91a7be21d972d4aac861a7" . "352a2079f"])) {
            $event->setName($_2cf093f28f4c7e718a5e8af628894c7b);
        }
        if (!$_46d17db0bd1ac920366ce3e210c240c1 || !isset($this->finisher)) {
            return parent::dispatch($event, $_2cf093f28f4c7e718a5e8af628894c7b);
        } else {
            $_a6a149597bf68ad5294d98abc0bda72b = $GLOBALS["__65da1b1ec" . "2d6653e8a0a" . "b7848e53621" . "5"]["_96be32a6f44bf54" . "e635e1736acf7a96" . "c"]($event);
            $this->finisher->FinishHim(function ($request, $_fd5a3a643834299cbdadfc3540ba0bcb) use($_2cf093f28f4c7e718a5e8af628894c7b, $_a6a149597bf68ad5294d98abc0bda72b) {
                $event = $GLOBALS["__65da1b1ec2d6653e8a0ab7848e536" . "215"]["_c244a470df52d1d5a7085138ec94e39" . "3"]($_a6a149597bf68ad5294d98abc0bda72b);
                $this->dispatch($event, $_2cf093f28f4c7e718a5e8af628894c7b, false);
            });
            return $event;
        }
    }
}