import "../keywords-CY7Q7l2u.js";
import "../frame_guard-yu-WWHZp.js";
import ShieldMiddleware from "../src/shield_middleware.js";
var ShieldProvider = class {
	constructor(app) {
		this.app = app;
	}
	async register() {
		this.app.container.bind(ShieldMiddleware, async () => {
			const config = this.app.config.get("shield", {});
			const encryption = (await this.app.container.make("encryption")).use();
			if (this.app.usingEdgeJS) return new ShieldMiddleware(config, encryption, (await import("edge.js")).default);
			return new ShieldMiddleware(config, encryption);
		});
	}
};
export { ShieldProvider as default };
