<?php
declare(strict_types=1);
// PHP's development server uses this same entry. Production static files bypass PHP.
if(PHP_SAPI==='cli-server'){
 $path=explode('?',$_SERVER['REQUEST_URI']??'/',2)[0];$file=realpath(__DIR__.$path);
 if($file&&str_starts_with($file,__DIR__.'/')&&is_file($file)&&preg_match('#^/(?:assets/[A-Za-z0-9_./-]+\.(?:js|css|svg|png|jpg|jpeg|gif|webp|ico|woff2?|ttf)|widget\.js|notification-worker\.js)$#D',$path)&&!str_contains($path,'..'))return false;
}
require dirname(__DIR__).'/app/autoload.php';
SupportFlow\Support\Http\Kernel::run();
