//#region \0rolldown/runtime.js
var e = Object.defineProperty, t = (e, t) => () => (e && (t = e(e = 0)), t), n = (t, n) => {
	let r = {};
	for (var i in t) e(r, i, {
		get: t[i],
		enumerable: !0
	});
	return n || e(r, Symbol.toStringTag, { value: "Module" }), r;
}, r, i = t((() => {
	r = { id: "pf2e-assistant" };
})), a = t((() => {}));
//#endregion
//#region node_modules/.pnpm/remeda@2.34.0/node_modules/remeda/dist/lazyDataLastImpl-DtF3cihj.js
function o(e, t, n) {
	let r = (n) => e(n, ...t);
	return n === void 0 ? r : Object.assign(r, {
		lazy: n,
		lazyArgs: t
	});
}
var s = t((() => {}));
//#endregion
//#region node_modules/.pnpm/remeda@2.34.0/node_modules/remeda/dist/purry.js
function c(e, t, n) {
	let r = e.length - t.length;
	if (r === 0) return e(...t);
	if (r === 1) return o(e, t, n);
	throw Error("Wrong number of arguments");
}
var l = t((() => {
	s();
}));
//#endregion
//#region node_modules/.pnpm/remeda@2.34.0/node_modules/remeda/dist/clone.js
function u(...e) {
	return c(d, e);
}
function d(e, t = [], n = []) {
	if (typeof e == "function") return e;
	if (typeof e != "object" || !e) return structuredClone(e);
	let r = Object.getPrototypeOf(e);
	if (!Array.isArray(e) && r !== null && r !== Object.prototype) return structuredClone(e);
	let i = t.indexOf(e);
	return i === -1 ? (t.push(e), Array.isArray(e) ? ee(e, t, n) : f(e, t, n)) : n[i];
}
function f(e, t, n) {
	let r = {};
	n.push(r);
	for (let [i, a] of Object.entries(e)) r[i] = d(a, t, n);
	return r;
}
function ee(e, t, n) {
	let r = [];
	n.push(r);
	for (let [i, a] of e.entries()) r[i] = d(a, t, n);
	return r;
}
var te = t((() => {
	l();
}));
//#endregion
//#region node_modules/.pnpm/remeda@2.34.0/node_modules/remeda/dist/findIndex.js
function ne(...e) {
	return c(re, e);
}
var re, ie = t((() => {
	l(), re = (e, t) => e.findIndex(t);
}));
//#endregion
//#region node_modules/.pnpm/remeda@2.34.0/node_modules/remeda/dist/isDeepEqual.js
function ae(...e) {
	return c(oe, e);
}
function oe(e, t) {
	if (e === t || Object.is(e, t)) return !0;
	if (typeof e != "object" || typeof t != "object" || e === null || t === null || !se(e, t)) return !1;
	if (Array.isArray(e)) return ce(e, t);
	if (e instanceof Map) return le(e, t);
	if (e instanceof Set) return ue(e, t);
	if (e instanceof Date) return e.getTime() === t.getTime();
	if (e instanceof RegExp) return e.toString() === t.toString();
	if (Object.keys(e).length !== Object.keys(t).length) return !1;
	for (let [n, r] of Object.entries(e)) if (!(n in t) || !oe(r, t[n])) return !1;
	return !0;
}
function se(e, t) {
	let n = Object.getPrototypeOf(e), r = Object.getPrototypeOf(t);
	return n === r ? !0 : n === null ? r === Object.prototype : n === Object.prototype && r === null;
}
function ce(e, t) {
	if (e.length !== t.length) return !1;
	for (let [n, r] of e.entries()) if (!oe(r, t[n])) return !1;
	return !0;
}
function le(e, t) {
	if (e.size !== t.size) return !1;
	for (let [n, r] of e.entries()) if (!t.has(n) || !oe(r, t.get(n))) return !1;
	return !0;
}
function ue(e, t) {
	if (e.size !== t.size) return !1;
	let n = [...t];
	for (let t of e) {
		let e = !1;
		for (let [r, i] of n.entries()) if (oe(t, i)) {
			e = !0, n.splice(r, 1);
			break;
		}
		if (!e) return !1;
	}
	return !0;
}
var de = t((() => {
	l();
}));
//#endregion
//#region node_modules/.pnpm/remeda@2.34.0/node_modules/remeda/dist/isEmptyish.js
function fe(e) {
	if (e == null || e === "") return !0;
	if (typeof e != "object") return !1;
	if ("length" in e && typeof e.length == "number") return e.length === 0;
	if ("size" in e && typeof e.size == "number") return e.size === 0;
	for (let t in e) return !1;
	return Object.getOwnPropertySymbols(e).length === 0;
}
var pe = t((() => {}));
//#endregion
//#region node_modules/.pnpm/remeda@2.34.0/node_modules/remeda/dist/isIncludedIn.js
function me(e, t) {
	if (t === void 0) {
		let t = new Set(e);
		return (e) => t.has(e);
	}
	return t.includes(e);
}
var he = t((() => {}));
//#endregion
//#region node_modules/.pnpm/remeda@2.34.0/node_modules/remeda/dist/isNonNullish.js
function p(e) {
	return e != null;
}
var ge = t((() => {}));
//#endregion
//#region node_modules/.pnpm/remeda@2.34.0/node_modules/remeda/dist/isNullish.js
function _e(e) {
	return e == null;
}
var ve = t((() => {}));
//#endregion
//#region node_modules/.pnpm/remeda@2.34.0/node_modules/remeda/dist/isNumber.js
function ye(e) {
	return typeof e == "number" && !Number.isNaN(e);
}
var be = t((() => {}));
//#endregion
//#region node_modules/.pnpm/remeda@2.34.0/node_modules/remeda/dist/isObjectType.js
function xe(e) {
	return typeof e == "object" && !!e;
}
var Se = t((() => {}));
//#endregion
//#region node_modules/.pnpm/remeda@2.34.0/node_modules/remeda/dist/isPlainObject.js
function Ce(e) {
	if (typeof e != "object" || !e) return !1;
	let t = Object.getPrototypeOf(e);
	return t === null || t === Object.prototype;
}
var we = t((() => {}));
//#endregion
//#region node_modules/.pnpm/remeda@2.34.0/node_modules/remeda/dist/isTruthy.js
function Te(e) {
	return !!e;
}
var Ee = t((() => {}));
//#endregion
//#region node_modules/.pnpm/remeda@2.34.0/node_modules/remeda/dist/join.js
function De(...e) {
	return c(Oe, e);
}
var Oe, ke = t((() => {
	l(), Oe = (e, t) => e.join(t);
}));
//#endregion
//#region node_modules/.pnpm/remeda@2.34.0/node_modules/remeda/dist/keys.js
function Ae(...e) {
	return c(Object.keys, e);
}
var je = t((() => {
	l();
}));
//#endregion
//#region node_modules/.pnpm/remeda@2.34.0/node_modules/remeda/dist/prop.js
function Me(e, ...t) {
	return typeof e == "string" || typeof e == "number" || typeof e == "symbol" ? (n) => Ne(n, e, ...t) : Ne(e, ...t);
}
function Ne(e, ...t) {
	let n = e;
	for (let e of t) {
		if (n == null) return;
		n = n[e];
	}
	return n;
}
var Pe = t((() => {}));
//#endregion
//#region node_modules/.pnpm/remeda@2.34.0/node_modules/remeda/dist/binarySearchCutoffIndex-CalebGhL.js
function Fe(e, t) {
	let n = 0, r = e.length;
	for (; n < r;) {
		let i = n + r >>> 1, a = e[i];
		t(a, i, e) ? n = i + 1 : r = i;
	}
	return r;
}
var Ie = t((() => {}));
//#endregion
//#region node_modules/.pnpm/remeda@2.34.0/node_modules/remeda/dist/sortedIndexBy.js
function Le(...e) {
	return c(Re, e);
}
function Re(e, t, n) {
	let r = n(t, void 0, e);
	return Fe(e, (t, i) => n(t, i, e) < r);
}
var ze = t((() => {
	l(), Ie();
})), m = t((() => {
	te(), ie(), de(), pe(), he(), ge(), ve(), be(), Se(), we(), Ee(), ke(), je(), Pe(), ze();
}));
//#endregion
//#region src/assistant/data.ts
function Be(e) {
	return p(e?.actor) && p(e?.token);
}
function Ve(e) {
	return e == null ? !1 : e.parent !== null;
}
var He = t((() => {
	m();
})), Ue = t((() => {})), We = t((() => {})), Ge = t((() => {}));
//#endregion
//#region src/assistant/reroll.ts
function h() {
	return {
		updateCondition: [],
		removeItem: [],
		addItem: [],
		deleteChatMessage: []
	};
}
async function Ke(e) {
	if (e != null) {
		for (let t of e.updateCondition) {
			let e = await fromUuid(t.actor);
			if (e) {
				let n = e.itemTypes.condition.find((e) => e.id === t.id);
				n ? t.source === void 0 ? await game.assistant.socket.deleteEmbeddedItem(n) : await game.assistant.socket.updateEmbeddedItem(n, t.source) : t.source !== void 0 && await game.assistant.socket.createEmbeddedItem(e, t.source);
			}
		}
		for (let t of e.removeItem) {
			let e = await fromUuid(t.item);
			e && await game.assistant.socket.deleteEmbeddedItem(e);
		}
		for (let t of e.addItem) {
			let e = await fromUuid(t.actor);
			e && await game.assistant.socket.createEmbeddedItem(e, t.item);
		}
		for (let t of e.deleteChatMessage) {
			let e = await fromUuid(t);
			e && await game.assistant.socket.deleteChatMessage(e);
		}
	}
}
var qe = t((() => {}));
//#endregion
//#region src/utils/actor.ts
function g(e) {
	if (e.isOfType("character")) return e.classDC ? {
		label: `${e.classDC.label} DC`,
		value: e.classDC.dc.value
	} : void 0;
	if (e.isOfType("npc")) return e.attributes.classDC.value;
}
function Je(e) {
	let t = game.users.filter((e) => e.active), n = e.isToken ? null : t.find((t) => t.character?.id === e.id);
	if (n) return n;
	let r = t.filter((t) => e.canUserModify(t, "update"));
	return r.length === 1 ? r[0] : game.users.activeGM;
}
function Ye(e, t, n) {
	let r = e.itemTypes.condition.filter((e) => e.slug === t && !e.isLocked && e.active);
	return n && (r = r.filter((e) => e.value ?? 0 >= n)), r.length !== 0;
}
function Xe(e, t) {
	return e.conditions.bySlug("persistent-damage", { active: !0 }).some((e) => e.system.persistent.damageType === t);
}
function Ze(e, t, n) {
	let r = e.itemTypes.effect.filter((e) => !e.isExpired && e.slug === t);
	return n?.origin && (r = r.filter((e) => e.system.context?.origin.actor === n.origin.uuid)), n?.target && (r = r.filter((e) => e.system.context?.target?.actor === n.target.uuid)), n?.degreeOfSuccess && (r = r.filter((e) => e.system.context?.roll?.degreeOfSuccess === n.degreeOfSuccess)), r.length !== 0;
}
function Qe(e, t) {
	return e.itemTypes.feat.filter((e) => e.slug === t).length !== 0;
}
function $e(e, t, n) {
	let r = e.itemTypes.effect.filter((e) => !e.isExpired && e.slug === t);
	return n?.origin && (r = r.filter((e) => e.system.context?.origin.actor === n.origin.uuid)), n?.target && (r = r.filter((e) => e.system.context?.target?.actor === n.target.uuid)), n?.degreeOfSuccess && (r = r.filter((e) => e.system.context?.roll?.degreeOfSuccess === n.degreeOfSuccess)), r.at(0);
}
function et(e, t, n) {
	let r = e.itemTypes.effect.filter((e) => !e.isExpired && t.includes(e.slug ?? ""));
	return n?.origin && (r = r.filter((e) => e.system.context?.origin.actor === n.origin.uuid)), n?.target && (r = r.filter((e) => e.system.context?.target?.actor === n.target.uuid)), n?.degreeOfSuccess && (r = r.filter((e) => e.system.context?.roll?.degreeOfSuccess === n.degreeOfSuccess)), r;
}
function tt(e, t) {
	return t === "self" ? e.getRollOptions() : e.getRollOptions().map((e) => e.startsWith("self") ? `${t}${e.substring(4)}` : `${t}:${e}`);
}
var nt = t((() => {}));
//#endregion
//#region src/utils/alliance.ts
function rt(e, t) {
	let n = e instanceof foundry.canvas.placeables.Token || e instanceof TokenDocument ? e.actor : e, r = t instanceof foundry.canvas.placeables.Token || t instanceof TokenDocument ? t.actor : t;
	return p(n) && p(r) && n.isAllyOf(r);
}
function it(e, t) {
	let n = e instanceof foundry.canvas.placeables.Token || e instanceof TokenDocument ? e.actor : e, r = t instanceof foundry.canvas.placeables.Token || t instanceof TokenDocument ? t.actor : t;
	return p(n) && p(r) && n.isEnemyOf(r);
}
var at = t((() => {
	m();
}));
//#endregion
//#region src/utils/chat-message.ts
function ot(e) {
	if (!e.item?.isOfType("consumable")) return !1;
	let t = e.flags[game.system.id].origin;
	return t ? ae(Ae(t), [
		"sourceId",
		"uuid",
		"type"
	]) : !1;
}
function st(e) {
	return p(e) && [
		"attack-roll",
		"check",
		"counteract-check",
		"flat-check",
		"initiative",
		"perception-check",
		"saving-throw",
		"skill-check"
	].includes(e.type);
}
function ct(e) {
	return ut ??= [RegExp(`<div>${game.i18n.localize("PF2E.Encounter.Broadcast.FastHealing.fast-healing.ReceivedMessage")}</div>`), RegExp(`<div>${game.i18n.localize("PF2E.Encounter.Broadcast.FastHealing.regeneration.ReceivedMessage")}</div>`)], ut.some((t) => t.test(e.flavor));
}
function lt(e) {
	return dt ??= [new RegExp(game.i18n.localize("PF2E.Actor.ApplyDamage.DamagedForNShield", {
		actor: "(.*)",
		absorbedDamage: "([0-9]*)",
		hpDamage: "([0-9]*)"
	}).replace("<actor>", "<span class=\"target-name\">").replace("</actor>", "</span>")), new RegExp(game.i18n.localize("PF2E.Actor.ApplyDamage.ShieldAbsorbsAll", {
		actor: "(.*)",
		absorbedDamage: "([0-9]*)",
		hpDamage: "([0-9]*)"
	}).replace("<actor>", "<span class=\"target-name\">").replace("</actor>", "</span>"))], dt.some((t) => t.test(e.content));
}
var ut, dt, ft = t((() => {
	m();
}));
//#endregion
//#region src/utils/compendium-collection.ts
function pt(e, t) {
	return p(e) && e instanceof mt && e.documentName === t;
}
var mt, ht = t((() => {
	m(), mt = foundry.documents.collections.CompendiumCollection;
}));
//#endregion
//#region src/utils/document.ts
function gt(e, t) {
	return p(e) && e instanceof _t && e.documentName === t;
}
var _t, vt = t((() => {
	m(), _t = foundry.abstract.Document;
}));
//#endregion
//#region src/utils/html.ts
function yt(e, { id: t, classes: n = [], dataset: r = {}, aria: i = {}, children: a = [], innerHTML: o } = {}) {
	let s = document.createElement(e);
	t && (s.id = t), n.length > 0 && s.classList.add(...n);
	for (let [e, t] of Object.entries(r)) _e(t) || t === !1 || (s.dataset[e] = t === !0 ? "" : String(t));
	for (let [e, t] of Object.entries(i)) _e(t) || t === !1 || s.setAttribute(`aria-${e}`, t);
	if (o) s.innerHTML = o;
	else for (let e of a) {
		let t = e instanceof HTMLElement ? e : new Text(e);
		s.appendChild(t);
	}
	return s;
}
function bt(e, t) {
	return e instanceof Element || e instanceof Document ? e.querySelector(t) : null;
}
function xt(e, t) {
	return e instanceof Element || e instanceof Document ? Array.from(e.querySelectorAll(t)) : [];
}
var St = t((() => {
	m();
}));
//#endregion
//#region src/utils/item.ts
function Ct(e) {
	return gt(e, "Item") && p(e.parent) && e.isOfType("action", "weapon", "melee");
}
var wt = t((() => {
	m(), vt();
}));
//#endregion
//#region src/utils/macros.ts
async function Tt(e, t) {
	function n(e, t, n = "text/plain") {
		let r = new Blob([t], { type: n }), i = document.createElement("a");
		i.download = e, i.href = URL.createObjectURL(r), i.click(), setTimeout(() => {
			URL.revokeObjectURL(i.href), i.remove();
		}, 200);
	}
	let r = game.packs.get(e);
	if (pt(r, "Item")) {
		let e = await r.getDocuments();
		n(t, JSON.stringify(e.map((e) => ({
			slug: _e(e.slug) || fe(e.slug) ? game.pf2e.system.sluggify(e.name) : e.slug,
			uuid: e.uuid
		})), null, 4)), await Dt(1e3);
	}
}
function Et() {
	function e(t, n) {
		let r = [];
		r.push(`${" ".repeat(n)}- ${t.label}`);
		for (let i of t.children) r.push(...e(i, n + 2));
		for (let e of t.entries) r.push(`${" ".repeat(n + 2)}- ${e.label}`);
		return r;
	}
	function t(t) {
		let n = [];
		n.push("<details>"), n.push("  <summary>Available Automations</summary>"), n.push("");
		for (let r of t.children) n.push(...e(r, 2));
		for (let e of t.entries) n.push(`  - ${e.label}`);
		return n.push(""), n.push("</details>"), n;
	}
	navigator.clipboard.writeText(t(game.assistant.storage.getRootFolder()).join("\n")).then(() => foundry.ui.notifications.info("[PF2e Assistant] Generated README.md Data"));
}
var Dt, Ot = t((() => {
	m(), ht(), Dt = (e) => new Promise((t, n) => {
		setTimeout(t, e);
	});
}));
//#endregion
//#region src/utils/notes.ts
function kt(e) {
	function t({ title: e, text: t, visibility: n }) {
		let r = yt("li", {
			classes: ["roll-note"],
			dataset: { visibility: n },
			innerHTML: game.i18n.localize(t)
		});
		if (r.childNodes.length === 1 && r.firstChild instanceof HTMLElement && (r.innerHTML = r.firstChild.innerHTML), e) {
			let t = yt("strong", { innerHTML: game.i18n.localize(e) });
			r.prepend(t, " ");
		}
		return r;
	}
	if (e.length !== 0) return yt("ul", {
		classes: ["notes"],
		children: [...e.flatMap((e) => [
			"\n",
			t(e),
			"\n"
		])]
	}).outerHTML;
}
var At = t((() => {
	St();
}));
//#endregion
//#region src/utils/roll-options.ts
function _(e, t) {
	let n = [];
	return e && n.push(...e.getSelfRollOptions("origin")), t && n.push(...t.getRollOptions("origin:item")), n.filter(Te).sort();
}
var jt = t((() => {
	m();
}));
//#endregion
//#region src/utils/roll.ts
function Mt() {
	return Ut.checkRoll ??= CONFIG.Dice.rolls.find((e) => e.name === "CheckRoll");
}
function v() {
	return Ut.damageRoll ??= CONFIG.Dice.rolls.find((e) => e.name === "DamageRoll");
}
function Nt(e) {
	return p(e) && e instanceof v();
}
function y(e) {
	return Nt(e) && e._evaluated === !0;
}
function Pt(e) {
	return p(e) && e instanceof Mt();
}
function b(e) {
	return Pt(e) && e._evaluated === !0;
}
function Ft(e) {
	if (e) switch (e) {
		case "d4": return 4;
		case "d6": return 6;
		case "d8": return 8;
		case "d10": return 10;
		case "d12": return 12;
	}
}
function It(e) {
	return e ? Me(e, "damage", "base") !== void 0 : !1;
}
function Lt(e) {
	return Ce(e) ? me(Me(e, "damageType"), Object.keys(CONFIG.PF2E.damageTypes)) : !1;
}
function Rt(e) {
	return xe(e) ? e.constructor.name === "DamageDicePF2e" : !1;
}
function zt(e, t) {
	if (It(e.options.damage)) {
		if (Lt(t)) {
			let n = {
				dieSize: t.dieSize,
				dieFaces: Ft(t.dieSize),
				damageType: t.damageType,
				data: []
			};
			return e.options.damage.damage.base.filter((e) => e.damageType === n.damageType && e.dieSize === n.dieSize).forEach((e) => n.data.push({
				slug: "base",
				diceNumber: e.diceNumber ?? 0
			})), e.options.damage.damage.dice.filter((e) => e.damageType === n.damageType && e.dieSize === n.dieSize).forEach((e) => n.data.push({
				slug: e.slug,
				diceNumber: e.diceNumber
			})), e.options.critRule === "double-dice" && e.options.degreeOfSuccess === 3 && n.data.forEach((e) => e.diceNumber *= 2), n;
		}
		if (Rt(t)) {
			let n = {
				dieSize: t.dieSize,
				dieFaces: t.faces,
				damageType: t.damageType,
				data: []
			};
			return e.options.damage.damage.base.filter((e) => e.damageType === n.damageType && e.dieSize === n.dieSize).forEach((e) => n.data.push({
				slug: "base",
				diceNumber: e.diceNumber ?? 0
			})), e.options.damage.damage.dice.filter((e) => e.damageType === n.damageType && e.dieSize === n.dieSize).forEach((e) => n.data.push({
				slug: e.slug,
				diceNumber: e.diceNumber
			})), e.options.critRule === "double-dice" && e.options.degreeOfSuccess === 3 && n.data.forEach((e) => e.diceNumber *= 2), n;
		}
	}
}
function Bt(e, t, n) {
	let r = e.instances.find((e) => e.type === t.damageType && e.persistent === !1);
	if (!r) return [];
	let i = r.dice.find((e) => e.faces === t.dieFaces);
	if (!i) return [];
	let a = ne(t.data, (e) => e.slug === n), o = 0;
	for (let e = 0; e < a; e++) o += t.data[e].diceNumber;
	let s = o + t.data[a].diceNumber;
	return i.results.filter((e) => e.active === !0).slice(o, s);
}
function Vt(e, t, n) {
	if (!It(e.options.damage) || !e.options.critRule) return;
	let r = e.options.degreeOfSuccess === 3, i = e.options.critRule, a = e.options.damage.damage.dice.find((e) => e.slug === t);
	if (a === void 0) return;
	let o = zt(e, a);
	if (!o) return;
	let s = Bt(e, o, t), c = r && !n && i === "double-dice" ? s.slice(0, s.length / 2).reduce((e, t) => e + t.result, 0) : s.reduce((e, t) => e + t.result, 0);
	return r && n && i === "double-damage" && (c *= 2), `{${c}[${a.damageType}]}`;
}
function Ht(e, t) {
	if (!It(e.options.damage) || !e.options.critRule) return;
	let n = e.options.degreeOfSuccess === 3, r = e.options.critRule, i = e.options.damage.damage.base.find((e) => e.category === null);
	if (!i) return;
	let a = zt(e, i);
	if (!a) return;
	let o = Bt(e, a, "base"), s = n && !t && r === "double-dice" ? o.slice(0, o.length / 2).reduce((e, t) => e + t.result, 0) : o.reduce((e, t) => e + t.result, 0);
	return n && t && r === "double-damage" && (s *= 2), `{${s}[${[i.damageType, ...i.materials ?? []].join(",")}]}`;
}
var Ut, Wt = t((() => {
	m(), Ut = {};
}));
//#endregion
//#region node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.js
function x(e, t, n) {
	function r(n, r) {
		if (n._zod || Object.defineProperty(n, "_zod", {
			value: {
				def: r,
				constr: o,
				traits: /* @__PURE__ */ new Set()
			},
			enumerable: !1
		}), n._zod.traits.has(e)) return;
		n._zod.traits.add(e), t(n, r);
		let i = o.prototype, a = Object.keys(i);
		for (let e = 0; e < a.length; e++) {
			let t = a[e];
			t in n || (n[t] = i[t].bind(n));
		}
	}
	let i = n?.Parent ?? Object;
	class a extends i {}
	Object.defineProperty(a, "name", { value: e });
	function o(e) {
		var t;
		let i = n?.Parent ? new a() : this;
		r(i, e), (t = i._zod).deferred ?? (t.deferred = []);
		for (let e of i._zod.deferred) e();
		return i;
	}
	return Object.defineProperty(o, "init", { value: r }), Object.defineProperty(o, Symbol.hasInstance, { value: (t) => n?.Parent && t instanceof n.Parent ? !0 : t?._zod?.traits?.has(e) }), Object.defineProperty(o, "name", { value: e }), o;
}
function S(e) {
	return e && Object.assign(qt, e), qt;
}
var Gt, C, Kt, qt, Jt = t((() => {
	C = class extends Error {
		constructor() {
			super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
		}
	}, Kt = class extends Error {
		constructor(e) {
			super(`Encountered unidirectional transform during encode: ${e}`), this.name = "ZodEncodeError";
		}
	}, (Gt = globalThis).__zod_globalConfig ?? (Gt.__zod_globalConfig = {}), qt = globalThis.__zod_globalConfig;
}));
//#endregion
//#region node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.js
function Yt(e) {
	let t = Object.values(e).filter((e) => typeof e == "number");
	return Object.entries(e).filter(([e, n]) => t.indexOf(+e) === -1).map(([e, t]) => t);
}
function Xt(e, t = "|") {
	return e.map((e) => ln(e)).join(t);
}
function Zt(e, t) {
	return typeof t == "bigint" ? t.toString() : t;
}
function Qt(e) {
	return { get value() {
		{
			let t = e();
			return Object.defineProperty(this, "value", { value: t }), t;
		}
		throw Error("cached value already set");
	} };
}
function $t(e) {
	return e == null;
}
function en(e) {
	let t = +!!e.startsWith("^"), n = e.endsWith("$") ? e.length - 1 : e.length;
	return e.slice(t, n);
}
function tn(e, t) {
	let n = e / t, r = Math.round(n), i = 2 ** -52 * Math.max(Math.abs(n), 1);
	return Math.abs(n - r) < i ? 0 : n - r;
}
function w(e, t, n) {
	let r;
	Object.defineProperty(e, t, {
		get() {
			if (r !== Tn) return r === void 0 && (r = Tn, r = n()), r;
		},
		set(n) {
			Object.defineProperty(e, t, { value: n });
		},
		configurable: !0
	});
}
function T(e, t, n) {
	Object.defineProperty(e, t, {
		value: n,
		writable: !0,
		enumerable: !0,
		configurable: !0
	});
}
function E(...e) {
	let t = {};
	for (let n of e) Object.assign(t, Object.getOwnPropertyDescriptors(n));
	return Object.defineProperties({}, t);
}
function nn(e) {
	return JSON.stringify(e);
}
function rn(e) {
	return e.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
}
function an(e) {
	return typeof e == "object" && !!e && !Array.isArray(e);
}
function on(e) {
	if (an(e) === !1) return !1;
	let t = e.constructor;
	if (t === void 0 || typeof t != "function") return !0;
	let n = t.prototype;
	return !(an(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
}
function sn(e) {
	return on(e) ? { ...e } : Array.isArray(e) ? [...e] : e instanceof Map ? new Map(e) : e instanceof Set ? new Set(e) : e;
}
function cn(e) {
	return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
}
function D(e, t, n) {
	let r = new e._zod.constr(t ?? e._zod.def);
	return (!t || n?.parent) && (r._zod.parent = e), r;
}
function O(e) {
	let t = e;
	if (!t) return {};
	if (typeof t == "string") return { error: () => t };
	if (t?.message !== void 0) {
		if (t?.error !== void 0) throw Error("Cannot specify both `message` and `error` params");
		t.error = t.message;
	}
	return delete t.message, typeof t.error == "string" ? {
		...t,
		error: () => t.error
	} : t;
}
function ln(e) {
	return typeof e == "bigint" ? e.toString() + "n" : typeof e == "string" ? `"${e}"` : `${e}`;
}
function un(e) {
	return Object.keys(e).filter((t) => e[t]._zod.optin === "optional" && e[t]._zod.optout === "optional");
}
function dn(e, t) {
	let n = e._zod.def, r = n.checks;
	if (r && r.length > 0) throw Error(".pick() cannot be used on object schemas containing refinements");
	return D(e, E(e._zod.def, {
		get shape() {
			let e = {};
			for (let r in t) {
				if (!(r in n.shape)) throw Error(`Unrecognized key: "${r}"`);
				t[r] && (e[r] = n.shape[r]);
			}
			return T(this, "shape", e), e;
		},
		checks: []
	}));
}
function fn(e, t) {
	let n = e._zod.def, r = n.checks;
	if (r && r.length > 0) throw Error(".omit() cannot be used on object schemas containing refinements");
	return D(e, E(e._zod.def, {
		get shape() {
			let r = { ...e._zod.def.shape };
			for (let e in t) {
				if (!(e in n.shape)) throw Error(`Unrecognized key: "${e}"`);
				t[e] && delete r[e];
			}
			return T(this, "shape", r), r;
		},
		checks: []
	}));
}
function pn(e, t) {
	if (!on(t)) throw Error("Invalid input to extend: expected a plain object");
	let n = e._zod.def.checks;
	if (n && n.length > 0) {
		let n = e._zod.def.shape;
		for (let e in t) if (Object.getOwnPropertyDescriptor(n, e) !== void 0) throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.");
	}
	return D(e, E(e._zod.def, { get shape() {
		let n = {
			...e._zod.def.shape,
			...t
		};
		return T(this, "shape", n), n;
	} }));
}
function mn(e, t) {
	if (!on(t)) throw Error("Invalid input to safeExtend: expected a plain object");
	return D(e, E(e._zod.def, { get shape() {
		let n = {
			...e._zod.def.shape,
			...t
		};
		return T(this, "shape", n), n;
	} }));
}
function hn(e, t) {
	if (e._zod.def.checks?.length) throw Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");
	return D(e, E(e._zod.def, {
		get shape() {
			let n = {
				...e._zod.def.shape,
				...t._zod.def.shape
			};
			return T(this, "shape", n), n;
		},
		get catchall() {
			return t._zod.def.catchall;
		},
		checks: t._zod.def.checks ?? []
	}));
}
function gn(e, t, n) {
	let r = t._zod.def.checks;
	if (r && r.length > 0) throw Error(".partial() cannot be used on object schemas containing refinements");
	return D(t, E(t._zod.def, {
		get shape() {
			let r = t._zod.def.shape, i = { ...r };
			if (n) for (let t in n) {
				if (!(t in r)) throw Error(`Unrecognized key: "${t}"`);
				n[t] && (i[t] = e ? new e({
					type: "optional",
					innerType: r[t]
				}) : r[t]);
			}
			else for (let t in r) i[t] = e ? new e({
				type: "optional",
				innerType: r[t]
			}) : r[t];
			return T(this, "shape", i), i;
		},
		checks: []
	}));
}
function _n(e, t, n) {
	return D(t, E(t._zod.def, { get shape() {
		let r = t._zod.def.shape, i = { ...r };
		if (n) for (let t in n) {
			if (!(t in i)) throw Error(`Unrecognized key: "${t}"`);
			n[t] && (i[t] = new e({
				type: "nonoptional",
				innerType: r[t]
			}));
		}
		else for (let t in r) i[t] = new e({
			type: "nonoptional",
			innerType: r[t]
		});
		return T(this, "shape", i), i;
	} }));
}
function vn(e, t = 0) {
	if (e.aborted === !0) return !0;
	for (let n = t; n < e.issues.length; n++) if (e.issues[n]?.continue !== !0) return !0;
	return !1;
}
function yn(e, t = 0) {
	if (e.aborted === !0) return !0;
	for (let n = t; n < e.issues.length; n++) if (e.issues[n]?.continue === !1) return !0;
	return !1;
}
function bn(e, t) {
	return t.map((t) => {
		var n;
		return (n = t).path ?? (n.path = []), t.path.unshift(e), t;
	});
}
function xn(e) {
	return typeof e == "string" ? e : e?.message;
}
function k(e, t, n) {
	let r = e.message ? e.message : xn(e.inst?._zod.def?.error?.(e)) ?? xn(t?.error?.(e)) ?? xn(n.customError?.(e)) ?? xn(n.localeError?.(e)) ?? "Invalid input", { inst: i, continue: a, input: o, ...s } = e;
	return s.path ??= [], s.message = r, t?.reportInput && (s.input = o), s;
}
function Sn(e) {
	return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : "unknown";
}
function Cn(e) {
	let t = typeof e;
	switch (t) {
		case "number": return Number.isNaN(e) ? "nan" : "number";
		case "object": {
			if (e === null) return "null";
			if (Array.isArray(e)) return "array";
			let t = e;
			if (t && Object.getPrototypeOf(t) !== Object.prototype && "constructor" in t && t.constructor) return t.constructor.name;
		}
	}
	return t;
}
function wn(...e) {
	let [t, n, r] = e;
	return typeof t == "string" ? {
		message: t,
		code: "custom",
		input: n,
		inst: r
	} : { ...t };
}
var Tn, En, Dn, On, kn, A = t((() => {
	Jt(), Tn = /* @__PURE__ */ Symbol("evaluating"), En = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {}, Dn = /* @__PURE__ */ Qt(() => {
		if (qt.jitless || typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare")) return !1;
		try {
			return Function(""), !0;
		} catch {
			return !1;
		}
	}), On = /* @__PURE__ */ new Set([
		"string",
		"number",
		"symbol"
	]), kn = {
		safeint: [-(2 ** 53 - 1), 2 ** 53 - 1],
		int32: [-2147483648, 2147483647],
		uint32: [0, 4294967295],
		float32: [-34028234663852886e22, 34028234663852886e22],
		float64: [-Number.MAX_VALUE, Number.MAX_VALUE]
	};
}));
//#endregion
//#region node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/errors.js
function An(e, t = (e) => e.message) {
	let n = {}, r = [];
	for (let i of e.issues) i.path.length > 0 ? (n[i.path[0]] = n[i.path[0]] || [], n[i.path[0]].push(t(i))) : r.push(t(i));
	return {
		formErrors: r,
		fieldErrors: n
	};
}
function jn(e, t = (e) => e.message) {
	let n = { _errors: [] }, r = (e, i = []) => {
		for (let a of e.issues) if (a.code === "invalid_union" && a.errors.length) a.errors.map((e) => r({ issues: e }, [...i, ...a.path]));
		else if (a.code === "invalid_key") r({ issues: a.issues }, [...i, ...a.path]);
		else if (a.code === "invalid_element") r({ issues: a.issues }, [...i, ...a.path]);
		else {
			let e = [...i, ...a.path];
			if (e.length === 0) n._errors.push(t(a));
			else {
				let r = n, i = 0;
				for (; i < e.length;) {
					let n = e[i];
					i === e.length - 1 ? (r[n] = r[n] || { _errors: [] }, r[n]._errors.push(t(a))) : r[n] = r[n] || { _errors: [] }, r = r[n], i++;
				}
			}
		}
	};
	return r(e), n;
}
var Mn, Nn, Pn, Fn = t((() => {
	Jt(), A(), Mn = (e, t) => {
		e.name = "$ZodError", Object.defineProperty(e, "_zod", {
			value: e._zod,
			enumerable: !1
		}), Object.defineProperty(e, "issues", {
			value: t,
			enumerable: !1
		}), e.message = JSON.stringify(t, Zt, 2), Object.defineProperty(e, "toString", {
			value: () => e.message,
			enumerable: !1
		});
	}, Nn = x("$ZodError", Mn), Pn = x("$ZodError", Mn, { Parent: Error });
})), In, Ln, Rn, zn, Bn, Vn, Hn, Un, Wn, Gn, Kn, qn, Jn, Yn, Xn = t((() => {
	Jt(), Fn(), A(), In = (e) => (t, n, r, i) => {
		let a = r ? {
			...r,
			async: !1
		} : { async: !1 }, o = t._zod.run({
			value: n,
			issues: []
		}, a);
		if (o instanceof Promise) throw new C();
		if (o.issues.length) {
			let t = new (i?.Err ?? e)(o.issues.map((e) => k(e, a, S())));
			throw En(t, i?.callee), t;
		}
		return o.value;
	}, Ln = (e) => async (t, n, r, i) => {
		let a = r ? {
			...r,
			async: !0
		} : { async: !0 }, o = t._zod.run({
			value: n,
			issues: []
		}, a);
		if (o instanceof Promise && (o = await o), o.issues.length) {
			let t = new (i?.Err ?? e)(o.issues.map((e) => k(e, a, S())));
			throw En(t, i?.callee), t;
		}
		return o.value;
	}, Rn = (e) => (t, n, r) => {
		let i = r ? {
			...r,
			async: !1
		} : { async: !1 }, a = t._zod.run({
			value: n,
			issues: []
		}, i);
		if (a instanceof Promise) throw new C();
		return a.issues.length ? {
			success: !1,
			error: new (e ?? Nn)(a.issues.map((e) => k(e, i, S())))
		} : {
			success: !0,
			data: a.value
		};
	}, zn = /* @__PURE__ */ Rn(Pn), Bn = (e) => async (t, n, r) => {
		let i = r ? {
			...r,
			async: !0
		} : { async: !0 }, a = t._zod.run({
			value: n,
			issues: []
		}, i);
		return a instanceof Promise && (a = await a), a.issues.length ? {
			success: !1,
			error: new e(a.issues.map((e) => k(e, i, S())))
		} : {
			success: !0,
			data: a.value
		};
	}, Vn = /* @__PURE__ */ Bn(Pn), Hn = (e) => (t, n, r) => {
		let i = r ? {
			...r,
			direction: "backward"
		} : { direction: "backward" };
		return In(e)(t, n, i);
	}, Un = (e) => (t, n, r) => In(e)(t, n, r), Wn = (e) => async (t, n, r) => {
		let i = r ? {
			...r,
			direction: "backward"
		} : { direction: "backward" };
		return Ln(e)(t, n, i);
	}, Gn = (e) => async (t, n, r) => Ln(e)(t, n, r), Kn = (e) => (t, n, r) => {
		let i = r ? {
			...r,
			direction: "backward"
		} : { direction: "backward" };
		return Rn(e)(t, n, i);
	}, qn = (e) => (t, n, r) => Rn(e)(t, n, r), Jn = (e) => async (t, n, r) => {
		let i = r ? {
			...r,
			direction: "backward"
		} : { direction: "backward" };
		return Bn(e)(t, n, i);
	}, Yn = (e) => async (t, n, r) => Bn(e)(t, n, r);
}));
//#endregion
//#region node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/regexes.js
function Zn() {
	return new RegExp(dr, "u");
}
function Qn(e) {
	let t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
	return typeof e.precision == "number" ? e.precision === -1 ? `${t}` : e.precision === 0 ? `${t}:[0-5]\\d` : `${t}:[0-5]\\d\\.\\d{${e.precision}}` : `${t}(?::[0-5]\\d(?:\\.\\d+)?)?`;
}
function $n(e) {
	return RegExp(`^${Qn(e)}$`);
}
function er(e) {
	let t = Qn({ precision: e.precision }), n = ["Z"];
	e.local && n.push(""), e.offset && n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");
	let r = `${t}(?:${n.join("|")})`;
	return RegExp(`^${br}T(?:${r})$`);
}
var tr, nr, rr, ir, ar, or, sr, cr, lr, ur, dr, fr, pr, mr, hr, gr, _r, vr, yr, br, xr, Sr, Cr, wr, Tr, Er, Dr, Or = t((() => {
	tr = /^[cC][0-9a-z]{6,}$/, nr = /^[0-9a-z]+$/, rr = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, ir = /^[0-9a-vA-V]{20}$/, ar = /^[A-Za-z0-9]{27}$/, or = /^[a-zA-Z0-9_-]{21}$/, sr = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, cr = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, lr = (e) => e ? RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, ur = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, dr = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$", fr = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, pr = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/, mr = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, hr = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, gr = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, _r = /^[A-Za-z0-9_-]*$/, vr = /^https?$/, yr = /^\+[1-9]\d{6,14}$/, br = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))", xr = /* @__PURE__ */ RegExp(`^${br}$`), Sr = (e) => {
		let t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
		return RegExp(`^${t}$`);
	}, Cr = /^-?\d+$/, wr = /^-?\d+(?:\.\d+)?$/, Tr = /^(?:true|false)$/i, Er = /^[^A-Z]*$/, Dr = /^[^a-z]*$/;
})), j, kr, Ar, jr, Mr, Nr, Pr, Fr, Ir, Lr, Rr, zr, Br, Vr, Hr, Ur, Wr, Gr = t((() => {
	Jt(), Or(), A(), j = /* @__PURE__ */ x("$ZodCheck", (e, t) => {
		var n;
		e._zod ??= {}, e._zod.def = t, (n = e._zod).onattach ?? (n.onattach = []);
	}), kr = {
		number: "number",
		bigint: "bigint",
		object: "date"
	}, Ar = /* @__PURE__ */ x("$ZodCheckLessThan", (e, t) => {
		j.init(e, t);
		let n = kr[typeof t.value];
		e._zod.onattach.push((e) => {
			let n = e._zod.bag, r = (t.inclusive ? n.maximum : n.exclusiveMaximum) ?? Infinity;
			t.value < r && (t.inclusive ? n.maximum = t.value : n.exclusiveMaximum = t.value);
		}), e._zod.check = (r) => {
			(t.inclusive ? r.value <= t.value : r.value < t.value) || r.issues.push({
				origin: n,
				code: "too_big",
				maximum: typeof t.value == "object" ? t.value.getTime() : t.value,
				input: r.value,
				inclusive: t.inclusive,
				inst: e,
				continue: !t.abort
			});
		};
	}), jr = /* @__PURE__ */ x("$ZodCheckGreaterThan", (e, t) => {
		j.init(e, t);
		let n = kr[typeof t.value];
		e._zod.onattach.push((e) => {
			let n = e._zod.bag, r = (t.inclusive ? n.minimum : n.exclusiveMinimum) ?? -Infinity;
			t.value > r && (t.inclusive ? n.minimum = t.value : n.exclusiveMinimum = t.value);
		}), e._zod.check = (r) => {
			(t.inclusive ? r.value >= t.value : r.value > t.value) || r.issues.push({
				origin: n,
				code: "too_small",
				minimum: typeof t.value == "object" ? t.value.getTime() : t.value,
				input: r.value,
				inclusive: t.inclusive,
				inst: e,
				continue: !t.abort
			});
		};
	}), Mr = /* @__PURE__ */ x("$ZodCheckMultipleOf", (e, t) => {
		j.init(e, t), e._zod.onattach.push((e) => {
			var n;
			(n = e._zod.bag).multipleOf ?? (n.multipleOf = t.value);
		}), e._zod.check = (n) => {
			if (typeof n.value != typeof t.value) throw Error("Cannot mix number and bigint in multiple_of check.");
			(typeof n.value == "bigint" ? n.value % t.value === BigInt(0) : tn(n.value, t.value) === 0) || n.issues.push({
				origin: typeof n.value,
				code: "not_multiple_of",
				divisor: t.value,
				input: n.value,
				inst: e,
				continue: !t.abort
			});
		};
	}), Nr = /* @__PURE__ */ x("$ZodCheckNumberFormat", (e, t) => {
		j.init(e, t), t.format = t.format || "float64";
		let n = t.format?.includes("int"), r = n ? "int" : "number", [i, a] = kn[t.format];
		e._zod.onattach.push((e) => {
			let r = e._zod.bag;
			r.format = t.format, r.minimum = i, r.maximum = a, n && (r.pattern = Cr);
		}), e._zod.check = (o) => {
			let s = o.value;
			if (n) {
				if (!Number.isInteger(s)) {
					o.issues.push({
						expected: r,
						format: t.format,
						code: "invalid_type",
						continue: !1,
						input: s,
						inst: e
					});
					return;
				}
				if (!Number.isSafeInteger(s)) {
					s > 0 ? o.issues.push({
						input: s,
						code: "too_big",
						maximum: 2 ** 53 - 1,
						note: "Integers must be within the safe integer range.",
						inst: e,
						origin: r,
						inclusive: !0,
						continue: !t.abort
					}) : o.issues.push({
						input: s,
						code: "too_small",
						minimum: -(2 ** 53 - 1),
						note: "Integers must be within the safe integer range.",
						inst: e,
						origin: r,
						inclusive: !0,
						continue: !t.abort
					});
					return;
				}
			}
			s < i && o.issues.push({
				origin: "number",
				input: s,
				code: "too_small",
				minimum: i,
				inclusive: !0,
				inst: e,
				continue: !t.abort
			}), s > a && o.issues.push({
				origin: "number",
				input: s,
				code: "too_big",
				maximum: a,
				inclusive: !0,
				inst: e,
				continue: !t.abort
			});
		};
	}), Pr = /* @__PURE__ */ x("$ZodCheckMaxLength", (e, t) => {
		var n;
		j.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
			let t = e.value;
			return !$t(t) && t.length !== void 0;
		}), e._zod.onattach.push((e) => {
			let n = e._zod.bag.maximum ?? Infinity;
			t.maximum < n && (e._zod.bag.maximum = t.maximum);
		}), e._zod.check = (n) => {
			let r = n.value;
			if (r.length <= t.maximum) return;
			let i = Sn(r);
			n.issues.push({
				origin: i,
				code: "too_big",
				maximum: t.maximum,
				inclusive: !0,
				input: r,
				inst: e,
				continue: !t.abort
			});
		};
	}), Fr = /* @__PURE__ */ x("$ZodCheckMinLength", (e, t) => {
		var n;
		j.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
			let t = e.value;
			return !$t(t) && t.length !== void 0;
		}), e._zod.onattach.push((e) => {
			let n = e._zod.bag.minimum ?? -Infinity;
			t.minimum > n && (e._zod.bag.minimum = t.minimum);
		}), e._zod.check = (n) => {
			let r = n.value;
			if (r.length >= t.minimum) return;
			let i = Sn(r);
			n.issues.push({
				origin: i,
				code: "too_small",
				minimum: t.minimum,
				inclusive: !0,
				input: r,
				inst: e,
				continue: !t.abort
			});
		};
	}), Ir = /* @__PURE__ */ x("$ZodCheckLengthEquals", (e, t) => {
		var n;
		j.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
			let t = e.value;
			return !$t(t) && t.length !== void 0;
		}), e._zod.onattach.push((e) => {
			let n = e._zod.bag;
			n.minimum = t.length, n.maximum = t.length, n.length = t.length;
		}), e._zod.check = (n) => {
			let r = n.value, i = r.length;
			if (i === t.length) return;
			let a = Sn(r), o = i > t.length;
			n.issues.push({
				origin: a,
				...o ? {
					code: "too_big",
					maximum: t.length
				} : {
					code: "too_small",
					minimum: t.length
				},
				inclusive: !0,
				exact: !0,
				input: n.value,
				inst: e,
				continue: !t.abort
			});
		};
	}), Lr = /* @__PURE__ */ x("$ZodCheckStringFormat", (e, t) => {
		var n, r;
		j.init(e, t), e._zod.onattach.push((e) => {
			let n = e._zod.bag;
			n.format = t.format, t.pattern && (n.patterns ??= /* @__PURE__ */ new Set(), n.patterns.add(t.pattern));
		}), t.pattern ? (n = e._zod).check ?? (n.check = (n) => {
			t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
				origin: "string",
				code: "invalid_format",
				format: t.format,
				input: n.value,
				...t.pattern ? { pattern: t.pattern.toString() } : {},
				inst: e,
				continue: !t.abort
			});
		}) : (r = e._zod).check ?? (r.check = () => {});
	}), Rr = /* @__PURE__ */ x("$ZodCheckRegex", (e, t) => {
		Lr.init(e, t), e._zod.check = (n) => {
			t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
				origin: "string",
				code: "invalid_format",
				format: "regex",
				input: n.value,
				pattern: t.pattern.toString(),
				inst: e,
				continue: !t.abort
			});
		};
	}), zr = /* @__PURE__ */ x("$ZodCheckLowerCase", (e, t) => {
		t.pattern ??= Er, Lr.init(e, t);
	}), Br = /* @__PURE__ */ x("$ZodCheckUpperCase", (e, t) => {
		t.pattern ??= Dr, Lr.init(e, t);
	}), Vr = /* @__PURE__ */ x("$ZodCheckIncludes", (e, t) => {
		j.init(e, t);
		let n = cn(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${n}` : n);
		t.pattern = r, e._zod.onattach.push((e) => {
			let t = e._zod.bag;
			t.patterns ??= /* @__PURE__ */ new Set(), t.patterns.add(r);
		}), e._zod.check = (n) => {
			n.value.includes(t.includes, t.position) || n.issues.push({
				origin: "string",
				code: "invalid_format",
				format: "includes",
				includes: t.includes,
				input: n.value,
				inst: e,
				continue: !t.abort
			});
		};
	}), Hr = /* @__PURE__ */ x("$ZodCheckStartsWith", (e, t) => {
		j.init(e, t);
		let n = RegExp(`^${cn(t.prefix)}.*`);
		t.pattern ??= n, e._zod.onattach.push((e) => {
			let t = e._zod.bag;
			t.patterns ??= /* @__PURE__ */ new Set(), t.patterns.add(n);
		}), e._zod.check = (n) => {
			n.value.startsWith(t.prefix) || n.issues.push({
				origin: "string",
				code: "invalid_format",
				format: "starts_with",
				prefix: t.prefix,
				input: n.value,
				inst: e,
				continue: !t.abort
			});
		};
	}), Ur = /* @__PURE__ */ x("$ZodCheckEndsWith", (e, t) => {
		j.init(e, t);
		let n = RegExp(`.*${cn(t.suffix)}$`);
		t.pattern ??= n, e._zod.onattach.push((e) => {
			let t = e._zod.bag;
			t.patterns ??= /* @__PURE__ */ new Set(), t.patterns.add(n);
		}), e._zod.check = (n) => {
			n.value.endsWith(t.suffix) || n.issues.push({
				origin: "string",
				code: "invalid_format",
				format: "ends_with",
				suffix: t.suffix,
				input: n.value,
				inst: e,
				continue: !t.abort
			});
		};
	}), Wr = /* @__PURE__ */ x("$ZodCheckOverwrite", (e, t) => {
		j.init(e, t), e._zod.check = (e) => {
			e.value = t.tx(e.value);
		};
	});
})), Kr, qr = t((() => {
	Kr = class {
		constructor(e = []) {
			this.content = [], this.indent = 0, this && (this.args = e);
		}
		indented(e) {
			this.indent += 1, e(this), --this.indent;
		}
		write(e) {
			if (typeof e == "function") {
				e(this, { execution: "sync" }), e(this, { execution: "async" });
				return;
			}
			let t = e.split("\n").filter((e) => e), n = Math.min(...t.map((e) => e.length - e.trimStart().length)), r = t.map((e) => e.slice(n)).map((e) => " ".repeat(this.indent * 2) + e);
			for (let e of r) this.content.push(e);
		}
		compile() {
			let e = Function, t = this?.args, n = [...(this?.content ?? [""]).map((e) => `  ${e}`)];
			return new e(...t, n.join("\n"));
		}
	};
})), Jr, Yr = t((() => {
	Jr = {
		major: 4,
		minor: 4,
		patch: 3
	};
}));
//#endregion
//#region node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/schemas.js
function Xr(e) {
	if (e === "") return !0;
	if (/\s/.test(e) || e.length % 4 != 0) return !1;
	try {
		return atob(e), !0;
	} catch {
		return !1;
	}
}
function Zr(e) {
	if (!_r.test(e)) return !1;
	let t = e.replace(/[-_]/g, (e) => e === "-" ? "+" : "/");
	return Xr(t.padEnd(Math.ceil(t.length / 4) * 4, "="));
}
function Qr(e, t = null) {
	try {
		let n = e.split(".");
		if (n.length !== 3) return !1;
		let [r] = n;
		if (!r) return !1;
		let i = JSON.parse(atob(r));
		return !("typ" in i && i?.typ !== "JWT" || !i.alg || t && (!("alg" in i) || i.alg !== t));
	} catch {
		return !1;
	}
}
function $r(e, t, n) {
	e.issues.length && t.issues.push(...bn(n, e.issues)), t.value[n] = e.value;
}
function ei(e, t, n, r, i, a) {
	let o = n in r;
	if (e.issues.length) {
		if (i && a && !o) return;
		t.issues.push(...bn(n, e.issues));
	}
	if (!o && !i) {
		e.issues.length || t.issues.push({
			code: "invalid_type",
			expected: "nonoptional",
			input: void 0,
			path: [n]
		});
		return;
	}
	e.value === void 0 ? o && (t.value[n] = void 0) : t.value[n] = e.value;
}
function ti(e) {
	let t = Object.keys(e.shape);
	for (let n of t) if (!e.shape?.[n]?._zod?.traits?.has("$ZodType")) throw Error(`Invalid element at key "${n}": expected a Zod schema`);
	let n = un(e.shape);
	return {
		...e,
		keys: t,
		keySet: new Set(t),
		numKeys: t.length,
		optionalKeys: new Set(n)
	};
}
function ni(e, t, n, r, i, a) {
	let o = [], s = i.keySet, c = i.catchall._zod, l = c.def.type, u = c.optin === "optional", d = c.optout === "optional";
	for (let i in t) {
		if (i === "__proto__" || s.has(i)) continue;
		if (l === "never") {
			o.push(i);
			continue;
		}
		let a = c.run({
			value: t[i],
			issues: []
		}, r);
		a instanceof Promise ? e.push(a.then((e) => ei(e, n, i, t, u, d))) : ei(a, n, i, t, u, d);
	}
	return o.length && n.issues.push({
		code: "unrecognized_keys",
		keys: o,
		input: t,
		inst: a
	}), e.length ? Promise.all(e).then(() => n) : n;
}
function ri(e, t, n, r) {
	for (let n of e) if (n.issues.length === 0) return t.value = n.value, t;
	let i = e.filter((e) => !vn(e));
	return i.length === 1 ? (t.value = i[0].value, i[0]) : (t.issues.push({
		code: "invalid_union",
		input: t.value,
		inst: n,
		errors: e.map((e) => e.issues.map((e) => k(e, r, S())))
	}), t);
}
function ii(e, t) {
	if (e === t || e instanceof Date && t instanceof Date && +e == +t) return {
		valid: !0,
		data: e
	};
	if (on(e) && on(t)) {
		let n = Object.keys(t), r = Object.keys(e).filter((e) => n.indexOf(e) !== -1), i = {
			...e,
			...t
		};
		for (let n of r) {
			let r = ii(e[n], t[n]);
			if (!r.valid) return {
				valid: !1,
				mergeErrorPath: [n, ...r.mergeErrorPath]
			};
			i[n] = r.data;
		}
		return {
			valid: !0,
			data: i
		};
	}
	if (Array.isArray(e) && Array.isArray(t)) {
		if (e.length !== t.length) return {
			valid: !1,
			mergeErrorPath: []
		};
		let n = [];
		for (let r = 0; r < e.length; r++) {
			let i = e[r], a = t[r], o = ii(i, a);
			if (!o.valid) return {
				valid: !1,
				mergeErrorPath: [r, ...o.mergeErrorPath]
			};
			n.push(o.data);
		}
		return {
			valid: !0,
			data: n
		};
	}
	return {
		valid: !1,
		mergeErrorPath: []
	};
}
function ai(e, t, n) {
	let r = /* @__PURE__ */ new Map(), i;
	for (let n of t.issues) if (n.code === "unrecognized_keys") {
		i ??= n;
		for (let e of n.keys) r.has(e) || r.set(e, {}), r.get(e).l = !0;
	} else e.issues.push(n);
	for (let t of n.issues) if (t.code === "unrecognized_keys") for (let e of t.keys) r.has(e) || r.set(e, {}), r.get(e).r = !0;
	else e.issues.push(t);
	let a = [...r].filter(([, e]) => e.l && e.r).map(([e]) => e);
	if (a.length && i && e.issues.push({
		...i,
		keys: a
	}), vn(e)) return e;
	let o = ii(t.value, n.value);
	if (!o.valid) throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);
	return e.value = o.data, e;
}
function oi(e, t) {
	for (let n = e.length - 1; n >= 0; n--) if (e[n]._zod[t] !== "optional") return n + 1;
	return 0;
}
function si(e, t, n) {
	e.issues.length && t.issues.push(...bn(n, e.issues)), t.value[n] = e.value;
}
function ci(e, t, n, r, i) {
	for (let a = 0; a < n.length; a++) {
		let n = e[a], o = a < r.length;
		if (n.issues.length) {
			if (!o && a >= i) {
				t.value.length = a;
				break;
			}
			t.issues.push(...bn(a, n.issues));
		}
		t.value[a] = n.value;
	}
	for (let e = t.value.length - 1; e >= r.length && n[e]._zod.optout === "optional" && t.value[e] === void 0; e--) t.value.length = e;
	return t;
}
function li(e, t) {
	return t === void 0 && (e.issues.length || e.fallback) ? {
		issues: [],
		value: void 0
	} : e;
}
function di(e, t) {
	return e.value === void 0 && (e.value = t.defaultValue), e;
}
function fi(e, t) {
	return !e.issues.length && e.value === void 0 && e.issues.push({
		code: "invalid_type",
		expected: "nonoptional",
		input: e.value,
		inst: t
	}), e;
}
function pi(e, t, n) {
	return e.issues.length ? (e.aborted = !0, e) : t._zod.run({
		value: e.value,
		issues: e.issues,
		fallback: e.fallback
	}, n);
}
function mi(e) {
	return e.value = Object.freeze(e.value), e;
}
function hi(e, t, n, r) {
	if (!e) {
		let e = {
			code: "custom",
			input: n,
			inst: r,
			path: [...r._zod.def.path ?? []],
			continue: !r._zod.def.abort
		};
		r._zod.def.params && (e.params = r._zod.def.params), t.issues.push(wn(e));
	}
}
var M, gi, N, _i, vi, yi, bi, xi, Si, Ci, wi, Ti, Ei, Di, Oi, ki, Ai, ji, Mi, Ni, Pi, Fi, Ii, Li, Ri, zi, Bi, Vi, Hi, Ui, Wi, Gi, Ki, qi, Ji, Yi, Xi, Zi, Qi, $i, ea, ta, na, ra, ia, aa, oa, sa, ca, la, ua, da = t((() => {
	Gr(), Jt(), qr(), Xn(), Or(), A(), Yr(), M = /* @__PURE__ */ x("$ZodType", (e, t) => {
		var n;
		e ??= {}, e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = Jr;
		let r = [...e._zod.def.checks ?? []];
		e._zod.traits.has("$ZodCheck") && r.unshift(e);
		for (let t of r) for (let n of t._zod.onattach) n(e);
		if (r.length === 0) (n = e._zod).deferred ?? (n.deferred = []), e._zod.deferred?.push(() => {
			e._zod.run = e._zod.parse;
		});
		else {
			let t = (e, t, n) => {
				let r = vn(e), i;
				for (let a of t) {
					if (a._zod.def.when) {
						if (yn(e) || !a._zod.def.when(e)) continue;
					} else if (r) continue;
					let t = e.issues.length, o = a._zod.check(e);
					if (o instanceof Promise && n?.async === !1) throw new C();
					if (i || o instanceof Promise) i = (i ?? Promise.resolve()).then(async () => {
						await o, e.issues.length !== t && (r ||= vn(e, t));
					});
					else {
						if (e.issues.length === t) continue;
						r ||= vn(e, t);
					}
				}
				return i ? i.then(() => e) : e;
			}, n = (n, i, a) => {
				if (vn(n)) return n.aborted = !0, n;
				let o = t(i, r, a);
				if (o instanceof Promise) {
					if (a.async === !1) throw new C();
					return o.then((t) => e._zod.parse(t, a));
				}
				return e._zod.parse(o, a);
			};
			e._zod.run = (i, a) => {
				if (a.skipChecks) return e._zod.parse(i, a);
				if (a.direction === "backward") {
					let t = e._zod.parse({
						value: i.value,
						issues: []
					}, {
						...a,
						skipChecks: !0
					});
					return t instanceof Promise ? t.then((e) => n(e, i, a)) : n(t, i, a);
				}
				let o = e._zod.parse(i, a);
				if (o instanceof Promise) {
					if (a.async === !1) throw new C();
					return o.then((e) => t(e, r, a));
				}
				return t(o, r, a);
			};
		}
		w(e, "~standard", () => ({
			validate: (t) => {
				try {
					let n = zn(e, t);
					return n.success ? { value: n.data } : { issues: n.error?.issues };
				} catch {
					return Vn(e, t).then((e) => e.success ? { value: e.data } : { issues: e.error?.issues });
				}
			},
			vendor: "zod",
			version: 1
		}));
	}), gi = /* @__PURE__ */ x("$ZodString", (e, t) => {
		M.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? Sr(e._zod.bag), e._zod.parse = (n, r) => {
			if (t.coerce) try {
				n.value = String(n.value);
			} catch {}
			return typeof n.value == "string" || n.issues.push({
				expected: "string",
				code: "invalid_type",
				input: n.value,
				inst: e
			}), n;
		};
	}), N = /* @__PURE__ */ x("$ZodStringFormat", (e, t) => {
		Lr.init(e, t), gi.init(e, t);
	}), _i = /* @__PURE__ */ x("$ZodGUID", (e, t) => {
		t.pattern ??= cr, N.init(e, t);
	}), vi = /* @__PURE__ */ x("$ZodUUID", (e, t) => {
		if (t.version) {
			let e = {
				v1: 1,
				v2: 2,
				v3: 3,
				v4: 4,
				v5: 5,
				v6: 6,
				v7: 7,
				v8: 8
			}[t.version];
			if (e === void 0) throw Error(`Invalid UUID version: "${t.version}"`);
			t.pattern ??= lr(e);
		} else t.pattern ??= lr();
		N.init(e, t);
	}), yi = /* @__PURE__ */ x("$ZodEmail", (e, t) => {
		t.pattern ??= ur, N.init(e, t);
	}), bi = /* @__PURE__ */ x("$ZodURL", (e, t) => {
		N.init(e, t), e._zod.check = (n) => {
			try {
				let r = n.value.trim();
				if (!t.normalize && t.protocol?.source === vr.source && !/^https?:\/\//i.test(r)) {
					n.issues.push({
						code: "invalid_format",
						format: "url",
						note: "Invalid URL format",
						input: n.value,
						inst: e,
						continue: !t.abort
					});
					return;
				}
				let i = new URL(r);
				t.hostname && (t.hostname.lastIndex = 0, t.hostname.test(i.hostname) || n.issues.push({
					code: "invalid_format",
					format: "url",
					note: "Invalid hostname",
					pattern: t.hostname.source,
					input: n.value,
					inst: e,
					continue: !t.abort
				})), t.protocol && (t.protocol.lastIndex = 0, t.protocol.test(i.protocol.endsWith(":") ? i.protocol.slice(0, -1) : i.protocol) || n.issues.push({
					code: "invalid_format",
					format: "url",
					note: "Invalid protocol",
					pattern: t.protocol.source,
					input: n.value,
					inst: e,
					continue: !t.abort
				})), t.normalize ? n.value = i.href : n.value = r;
				return;
			} catch {
				n.issues.push({
					code: "invalid_format",
					format: "url",
					input: n.value,
					inst: e,
					continue: !t.abort
				});
			}
		};
	}), xi = /* @__PURE__ */ x("$ZodEmoji", (e, t) => {
		t.pattern ??= Zn(), N.init(e, t);
	}), Si = /* @__PURE__ */ x("$ZodNanoID", (e, t) => {
		t.pattern ??= or, N.init(e, t);
	}), Ci = /* @__PURE__ */ x("$ZodCUID", (e, t) => {
		t.pattern ??= tr, N.init(e, t);
	}), wi = /* @__PURE__ */ x("$ZodCUID2", (e, t) => {
		t.pattern ??= nr, N.init(e, t);
	}), Ti = /* @__PURE__ */ x("$ZodULID", (e, t) => {
		t.pattern ??= rr, N.init(e, t);
	}), Ei = /* @__PURE__ */ x("$ZodXID", (e, t) => {
		t.pattern ??= ir, N.init(e, t);
	}), Di = /* @__PURE__ */ x("$ZodKSUID", (e, t) => {
		t.pattern ??= ar, N.init(e, t);
	}), Oi = /* @__PURE__ */ x("$ZodISODateTime", (e, t) => {
		t.pattern ??= er(t), N.init(e, t);
	}), ki = /* @__PURE__ */ x("$ZodISODate", (e, t) => {
		t.pattern ??= xr, N.init(e, t);
	}), Ai = /* @__PURE__ */ x("$ZodISOTime", (e, t) => {
		t.pattern ??= $n(t), N.init(e, t);
	}), ji = /* @__PURE__ */ x("$ZodISODuration", (e, t) => {
		t.pattern ??= sr, N.init(e, t);
	}), Mi = /* @__PURE__ */ x("$ZodIPv4", (e, t) => {
		t.pattern ??= fr, N.init(e, t), e._zod.bag.format = "ipv4";
	}), Ni = /* @__PURE__ */ x("$ZodIPv6", (e, t) => {
		t.pattern ??= pr, N.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (n) => {
			try {
				new URL(`http://[${n.value}]`);
			} catch {
				n.issues.push({
					code: "invalid_format",
					format: "ipv6",
					input: n.value,
					inst: e,
					continue: !t.abort
				});
			}
		};
	}), Pi = /* @__PURE__ */ x("$ZodCIDRv4", (e, t) => {
		t.pattern ??= mr, N.init(e, t);
	}), Fi = /* @__PURE__ */ x("$ZodCIDRv6", (e, t) => {
		t.pattern ??= hr, N.init(e, t), e._zod.check = (n) => {
			let r = n.value.split("/");
			try {
				if (r.length !== 2) throw Error();
				let [e, t] = r;
				if (!t) throw Error();
				let n = Number(t);
				if (`${n}` !== t || n < 0 || n > 128) throw Error();
				new URL(`http://[${e}]`);
			} catch {
				n.issues.push({
					code: "invalid_format",
					format: "cidrv6",
					input: n.value,
					inst: e,
					continue: !t.abort
				});
			}
		};
	}), Ii = /* @__PURE__ */ x("$ZodBase64", (e, t) => {
		t.pattern ??= gr, N.init(e, t), e._zod.bag.contentEncoding = "base64", e._zod.check = (n) => {
			Xr(n.value) || n.issues.push({
				code: "invalid_format",
				format: "base64",
				input: n.value,
				inst: e,
				continue: !t.abort
			});
		};
	}), Li = /* @__PURE__ */ x("$ZodBase64URL", (e, t) => {
		t.pattern ??= _r, N.init(e, t), e._zod.bag.contentEncoding = "base64url", e._zod.check = (n) => {
			Zr(n.value) || n.issues.push({
				code: "invalid_format",
				format: "base64url",
				input: n.value,
				inst: e,
				continue: !t.abort
			});
		};
	}), Ri = /* @__PURE__ */ x("$ZodE164", (e, t) => {
		t.pattern ??= yr, N.init(e, t);
	}), zi = /* @__PURE__ */ x("$ZodJWT", (e, t) => {
		N.init(e, t), e._zod.check = (n) => {
			Qr(n.value, t.alg) || n.issues.push({
				code: "invalid_format",
				format: "jwt",
				input: n.value,
				inst: e,
				continue: !t.abort
			});
		};
	}), Bi = /* @__PURE__ */ x("$ZodNumber", (e, t) => {
		M.init(e, t), e._zod.pattern = e._zod.bag.pattern ?? wr, e._zod.parse = (n, r) => {
			if (t.coerce) try {
				n.value = Number(n.value);
			} catch {}
			let i = n.value;
			if (typeof i == "number" && !Number.isNaN(i) && Number.isFinite(i)) return n;
			let a = typeof i == "number" ? Number.isNaN(i) ? "NaN" : Number.isFinite(i) ? void 0 : "Infinity" : void 0;
			return n.issues.push({
				expected: "number",
				code: "invalid_type",
				input: i,
				inst: e,
				...a ? { received: a } : {}
			}), n;
		};
	}), Vi = /* @__PURE__ */ x("$ZodNumberFormat", (e, t) => {
		Nr.init(e, t), Bi.init(e, t);
	}), Hi = /* @__PURE__ */ x("$ZodBoolean", (e, t) => {
		M.init(e, t), e._zod.pattern = Tr, e._zod.parse = (n, r) => {
			if (t.coerce) try {
				n.value = !!n.value;
			} catch {}
			let i = n.value;
			return typeof i == "boolean" || n.issues.push({
				expected: "boolean",
				code: "invalid_type",
				input: i,
				inst: e
			}), n;
		};
	}), Ui = /* @__PURE__ */ x("$ZodUnknown", (e, t) => {
		M.init(e, t), e._zod.parse = (e) => e;
	}), Wi = /* @__PURE__ */ x("$ZodNever", (e, t) => {
		M.init(e, t), e._zod.parse = (t, n) => (t.issues.push({
			expected: "never",
			code: "invalid_type",
			input: t.value,
			inst: e
		}), t);
	}), Gi = /* @__PURE__ */ x("$ZodArray", (e, t) => {
		M.init(e, t), e._zod.parse = (n, r) => {
			let i = n.value;
			if (!Array.isArray(i)) return n.issues.push({
				expected: "array",
				code: "invalid_type",
				input: i,
				inst: e
			}), n;
			n.value = Array(i.length);
			let a = [];
			for (let e = 0; e < i.length; e++) {
				let o = i[e], s = t.element._zod.run({
					value: o,
					issues: []
				}, r);
				s instanceof Promise ? a.push(s.then((t) => $r(t, n, e))) : $r(s, n, e);
			}
			return a.length ? Promise.all(a).then(() => n) : n;
		};
	}), Ki = /* @__PURE__ */ x("$ZodObject", (e, t) => {
		if (M.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
			let e = t.shape;
			Object.defineProperty(t, "shape", { get: () => {
				let n = { ...e };
				return Object.defineProperty(t, "shape", { value: n }), n;
			} });
		}
		let n = Qt(() => ti(t));
		w(e._zod, "propValues", () => {
			let e = t.shape, n = {};
			for (let t in e) {
				let r = e[t]._zod;
				if (r.values) {
					n[t] ?? (n[t] = /* @__PURE__ */ new Set());
					for (let e of r.values) n[t].add(e);
				}
			}
			return n;
		});
		let r = an, i = t.catchall, a;
		e._zod.parse = (t, o) => {
			a ??= n.value;
			let s = t.value;
			if (!r(s)) return t.issues.push({
				expected: "object",
				code: "invalid_type",
				input: s,
				inst: e
			}), t;
			t.value = {};
			let c = [], l = a.shape;
			for (let e of a.keys) {
				let n = l[e], r = n._zod.optin === "optional", i = n._zod.optout === "optional", a = n._zod.run({
					value: s[e],
					issues: []
				}, o);
				a instanceof Promise ? c.push(a.then((n) => ei(n, t, e, s, r, i))) : ei(a, t, e, s, r, i);
			}
			return i ? ni(c, s, t, o, n.value, e) : c.length ? Promise.all(c).then(() => t) : t;
		};
	}), qi = /* @__PURE__ */ x("$ZodObjectJIT", (e, t) => {
		Ki.init(e, t);
		let n = e._zod.parse, r = Qt(() => ti(t)), i = (e) => {
			let t = new Kr([
				"shape",
				"payload",
				"ctx"
			]), n = r.value, i = (e) => {
				let t = nn(e);
				return `shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`;
			};
			t.write("const input = payload.value;");
			let a = Object.create(null), o = 0;
			for (let e of n.keys) a[e] = `key_${o++}`;
			t.write("const newResult = {};");
			for (let r of n.keys) {
				let n = a[r], o = nn(r), s = e[r], c = s?._zod?.optin === "optional", l = s?._zod?.optout === "optional";
				t.write(`const ${n} = ${i(r)};`), c && l ? t.write(`
        if (${n}.issues.length) {
          if (${o} in input) {
            payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
              ...iss,
              path: iss.path ? [${o}, ...iss.path] : [${o}]
            })));
          }
        }
        
        if (${n}.value === undefined) {
          if (${o} in input) {
            newResult[${o}] = undefined;
          }
        } else {
          newResult[${o}] = ${n}.value;
        }
        
      `) : c ? t.write(`
        if (${n}.issues.length) {
          payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
            ...iss,
            path: iss.path ? [${o}, ...iss.path] : [${o}]
          })));
        }
        
        if (${n}.value === undefined) {
          if (${o} in input) {
            newResult[${o}] = undefined;
          }
        } else {
          newResult[${o}] = ${n}.value;
        }
        
      `) : t.write(`
        const ${n}_present = ${o} in input;
        if (${n}.issues.length) {
          payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
            ...iss,
            path: iss.path ? [${o}, ...iss.path] : [${o}]
          })));
        }
        if (!${n}_present && !${n}.issues.length) {
          payload.issues.push({
            code: "invalid_type",
            expected: "nonoptional",
            input: undefined,
            path: [${o}]
          });
        }

        if (${n}_present) {
          if (${n}.value === undefined) {
            newResult[${o}] = undefined;
          } else {
            newResult[${o}] = ${n}.value;
          }
        }

      `);
			}
			t.write("payload.value = newResult;"), t.write("return payload;");
			let s = t.compile();
			return (t, n) => s(e, t, n);
		}, a, o = an, s = !qt.jitless, c = s && Dn.value, l = t.catchall, u;
		e._zod.parse = (d, f) => {
			u ??= r.value;
			let ee = d.value;
			return o(ee) ? s && c && f?.async === !1 && f.jitless !== !0 ? (a ||= i(t.shape), d = a(d, f), l ? ni([], ee, d, f, u, e) : d) : n(d, f) : (d.issues.push({
				expected: "object",
				code: "invalid_type",
				input: ee,
				inst: e
			}), d);
		};
	}), Ji = /* @__PURE__ */ x("$ZodUnion", (e, t) => {
		M.init(e, t), w(e._zod, "optin", () => t.options.some((e) => e._zod.optin === "optional") ? "optional" : void 0), w(e._zod, "optout", () => t.options.some((e) => e._zod.optout === "optional") ? "optional" : void 0), w(e._zod, "values", () => {
			if (t.options.every((e) => e._zod.values)) return new Set(t.options.flatMap((e) => Array.from(e._zod.values)));
		}), w(e._zod, "pattern", () => {
			if (t.options.every((e) => e._zod.pattern)) {
				let e = t.options.map((e) => e._zod.pattern);
				return RegExp(`^(${e.map((e) => en(e.source)).join("|")})$`);
			}
		});
		let n = t.options.length === 1 ? t.options[0]._zod.run : null;
		e._zod.parse = (r, i) => {
			if (n) return n(r, i);
			let a = !1, o = [];
			for (let e of t.options) {
				let t = e._zod.run({
					value: r.value,
					issues: []
				}, i);
				if (t instanceof Promise) o.push(t), a = !0;
				else {
					if (t.issues.length === 0) return t;
					o.push(t);
				}
			}
			return a ? Promise.all(o).then((t) => ri(t, r, e, i)) : ri(o, r, e, i);
		};
	}), Yi = /* @__PURE__ */ x("$ZodIntersection", (e, t) => {
		M.init(e, t), e._zod.parse = (e, n) => {
			let r = e.value, i = t.left._zod.run({
				value: r,
				issues: []
			}, n), a = t.right._zod.run({
				value: r,
				issues: []
			}, n);
			return i instanceof Promise || a instanceof Promise ? Promise.all([i, a]).then(([t, n]) => ai(e, t, n)) : ai(e, i, a);
		};
	}), Xi = /* @__PURE__ */ x("$ZodTuple", (e, t) => {
		M.init(e, t);
		let n = t.items;
		e._zod.parse = (r, i) => {
			let a = r.value;
			if (!Array.isArray(a)) return r.issues.push({
				input: a,
				inst: e,
				expected: "tuple",
				code: "invalid_type"
			}), r;
			r.value = [];
			let o = [], s = oi(n, "optin"), c = oi(n, "optout");
			if (!t.rest) {
				if (a.length < s) return r.issues.push({
					code: "too_small",
					minimum: s,
					inclusive: !0,
					input: a,
					inst: e,
					origin: "array"
				}), r;
				a.length > n.length && r.issues.push({
					code: "too_big",
					maximum: n.length,
					inclusive: !0,
					input: a,
					inst: e,
					origin: "array"
				});
			}
			let l = Array(n.length);
			for (let e = 0; e < n.length; e++) {
				let t = n[e]._zod.run({
					value: a[e],
					issues: []
				}, i);
				t instanceof Promise ? o.push(t.then((t) => {
					l[e] = t;
				})) : l[e] = t;
			}
			if (t.rest) {
				let e = n.length - 1, s = a.slice(n.length);
				for (let n of s) {
					e++;
					let a = t.rest._zod.run({
						value: n,
						issues: []
					}, i);
					a instanceof Promise ? o.push(a.then((t) => si(t, r, e))) : si(a, r, e);
				}
			}
			return o.length ? Promise.all(o).then(() => ci(l, r, n, a, c)) : ci(l, r, n, a, c);
		};
	}), Zi = /* @__PURE__ */ x("$ZodEnum", (e, t) => {
		M.init(e, t);
		let n = Yt(t.entries), r = new Set(n);
		e._zod.values = r, e._zod.pattern = RegExp(`^(${n.filter((e) => On.has(typeof e)).map((e) => typeof e == "string" ? cn(e) : e.toString()).join("|")})$`), e._zod.parse = (t, i) => {
			let a = t.value;
			return r.has(a) || t.issues.push({
				code: "invalid_value",
				values: n,
				input: a,
				inst: e
			}), t;
		};
	}), Qi = /* @__PURE__ */ x("$ZodLiteral", (e, t) => {
		if (M.init(e, t), t.values.length === 0) throw Error("Cannot create literal schema with no valid values");
		let n = new Set(t.values);
		e._zod.values = n, e._zod.pattern = RegExp(`^(${t.values.map((e) => typeof e == "string" ? cn(e) : e ? cn(e.toString()) : String(e)).join("|")})$`), e._zod.parse = (r, i) => {
			let a = r.value;
			return n.has(a) || r.issues.push({
				code: "invalid_value",
				values: t.values,
				input: a,
				inst: e
			}), r;
		};
	}), $i = /* @__PURE__ */ x("$ZodTransform", (e, t) => {
		M.init(e, t), e._zod.optin = "optional", e._zod.parse = (n, r) => {
			if (r.direction === "backward") throw new Kt(e.constructor.name);
			let i = t.transform(n.value, n);
			if (r.async) return (i instanceof Promise ? i : Promise.resolve(i)).then((e) => (n.value = e, n.fallback = !0, n));
			if (i instanceof Promise) throw new C();
			return n.value = i, n.fallback = !0, n;
		};
	}), ea = /* @__PURE__ */ x("$ZodOptional", (e, t) => {
		M.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", w(e._zod, "values", () => t.innerType._zod.values ? new Set([...t.innerType._zod.values, void 0]) : void 0), w(e._zod, "pattern", () => {
			let e = t.innerType._zod.pattern;
			return e ? RegExp(`^(${en(e.source)})?$`) : void 0;
		}), e._zod.parse = (e, n) => {
			if (t.innerType._zod.optin === "optional") {
				let r = e.value, i = t.innerType._zod.run(e, n);
				return i instanceof Promise ? i.then((e) => li(e, r)) : li(i, r);
			}
			return e.value === void 0 ? e : t.innerType._zod.run(e, n);
		};
	}), ta = /* @__PURE__ */ x("$ZodExactOptional", (e, t) => {
		ea.init(e, t), w(e._zod, "values", () => t.innerType._zod.values), w(e._zod, "pattern", () => t.innerType._zod.pattern), e._zod.parse = (e, n) => t.innerType._zod.run(e, n);
	}), na = /* @__PURE__ */ x("$ZodNullable", (e, t) => {
		M.init(e, t), w(e._zod, "optin", () => t.innerType._zod.optin), w(e._zod, "optout", () => t.innerType._zod.optout), w(e._zod, "pattern", () => {
			let e = t.innerType._zod.pattern;
			return e ? RegExp(`^(${en(e.source)}|null)$`) : void 0;
		}), w(e._zod, "values", () => t.innerType._zod.values ? new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (e, n) => e.value === null ? e : t.innerType._zod.run(e, n);
	}), ra = /* @__PURE__ */ x("$ZodDefault", (e, t) => {
		M.init(e, t), e._zod.optin = "optional", w(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
			if (n.direction === "backward") return t.innerType._zod.run(e, n);
			if (e.value === void 0) return e.value = t.defaultValue, e;
			let r = t.innerType._zod.run(e, n);
			return r instanceof Promise ? r.then((e) => di(e, t)) : di(r, t);
		};
	}), ia = /* @__PURE__ */ x("$ZodPrefault", (e, t) => {
		M.init(e, t), e._zod.optin = "optional", w(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => (n.direction === "backward" || e.value === void 0 && (e.value = t.defaultValue), t.innerType._zod.run(e, n));
	}), aa = /* @__PURE__ */ x("$ZodNonOptional", (e, t) => {
		M.init(e, t), w(e._zod, "values", () => {
			let e = t.innerType._zod.values;
			return e ? new Set([...e].filter((e) => e !== void 0)) : void 0;
		}), e._zod.parse = (n, r) => {
			let i = t.innerType._zod.run(n, r);
			return i instanceof Promise ? i.then((t) => fi(t, e)) : fi(i, e);
		};
	}), oa = /* @__PURE__ */ x("$ZodCatch", (e, t) => {
		M.init(e, t), e._zod.optin = "optional", w(e._zod, "optout", () => t.innerType._zod.optout), w(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
			if (n.direction === "backward") return t.innerType._zod.run(e, n);
			let r = t.innerType._zod.run(e, n);
			return r instanceof Promise ? r.then((r) => (e.value = r.value, r.issues.length && (e.value = t.catchValue({
				...e,
				error: { issues: r.issues.map((e) => k(e, n, S())) },
				input: e.value
			}), e.issues = [], e.fallback = !0), e)) : (e.value = r.value, r.issues.length && (e.value = t.catchValue({
				...e,
				error: { issues: r.issues.map((e) => k(e, n, S())) },
				input: e.value
			}), e.issues = [], e.fallback = !0), e);
		};
	}), sa = /* @__PURE__ */ x("$ZodPipe", (e, t) => {
		M.init(e, t), w(e._zod, "values", () => t.in._zod.values), w(e._zod, "optin", () => t.in._zod.optin), w(e._zod, "optout", () => t.out._zod.optout), w(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (e, n) => {
			if (n.direction === "backward") {
				let r = t.out._zod.run(e, n);
				return r instanceof Promise ? r.then((e) => pi(e, t.in, n)) : pi(r, t.in, n);
			}
			let r = t.in._zod.run(e, n);
			return r instanceof Promise ? r.then((e) => pi(e, t.out, n)) : pi(r, t.out, n);
		};
	}), ca = /* @__PURE__ */ x("$ZodReadonly", (e, t) => {
		M.init(e, t), w(e._zod, "propValues", () => t.innerType._zod.propValues), w(e._zod, "values", () => t.innerType._zod.values), w(e._zod, "optin", () => t.innerType?._zod?.optin), w(e._zod, "optout", () => t.innerType?._zod?.optout), e._zod.parse = (e, n) => {
			if (n.direction === "backward") return t.innerType._zod.run(e, n);
			let r = t.innerType._zod.run(e, n);
			return r instanceof Promise ? r.then(mi) : mi(r);
		};
	}), la = /* @__PURE__ */ x("$ZodLazy", (e, t) => {
		M.init(e, t), w(e._zod, "innerType", () => {
			let e = t;
			return e._cachedInner ||= t.getter(), e._cachedInner;
		}), w(e._zod, "pattern", () => e._zod.innerType?._zod?.pattern), w(e._zod, "propValues", () => e._zod.innerType?._zod?.propValues), w(e._zod, "optin", () => e._zod.innerType?._zod?.optin ?? void 0), w(e._zod, "optout", () => e._zod.innerType?._zod?.optout ?? void 0), e._zod.parse = (t, n) => e._zod.innerType._zod.run(t, n);
	}), ua = /* @__PURE__ */ x("$ZodCustom", (e, t) => {
		j.init(e, t), M.init(e, t), e._zod.parse = (e, t) => e, e._zod.check = (n) => {
			let r = n.value, i = t.fn(r);
			if (i instanceof Promise) return i.then((t) => hi(t, n, r, e));
			hi(i, n, r, e);
		};
	});
}));
//#endregion
//#region node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/en.js
function fa() {
	return { localeError: pa() };
}
var pa, ma = t((() => {
	A(), pa = () => {
		let e = {
			string: {
				unit: "characters",
				verb: "to have"
			},
			file: {
				unit: "bytes",
				verb: "to have"
			},
			array: {
				unit: "items",
				verb: "to have"
			},
			set: {
				unit: "items",
				verb: "to have"
			},
			map: {
				unit: "entries",
				verb: "to have"
			}
		};
		function t(t) {
			return e[t] ?? null;
		}
		let n = {
			regex: "input",
			email: "email address",
			url: "URL",
			emoji: "emoji",
			uuid: "UUID",
			uuidv4: "UUIDv4",
			uuidv6: "UUIDv6",
			nanoid: "nanoid",
			guid: "GUID",
			cuid: "cuid",
			cuid2: "cuid2",
			ulid: "ULID",
			xid: "XID",
			ksuid: "KSUID",
			datetime: "ISO datetime",
			date: "ISO date",
			time: "ISO time",
			duration: "ISO duration",
			ipv4: "IPv4 address",
			ipv6: "IPv6 address",
			mac: "MAC address",
			cidrv4: "IPv4 range",
			cidrv6: "IPv6 range",
			base64: "base64-encoded string",
			base64url: "base64url-encoded string",
			json_string: "JSON string",
			e164: "E.164 number",
			jwt: "JWT",
			template_literal: "input"
		}, r = { nan: "NaN" };
		return (e) => {
			switch (e.code) {
				case "invalid_type": {
					let t = r[e.expected] ?? e.expected, n = Cn(e.input);
					return `Invalid input: expected ${t}, received ${r[n] ?? n}`;
				}
				case "invalid_value": return e.values.length === 1 ? `Invalid input: expected ${ln(e.values[0])}` : `Invalid option: expected one of ${Xt(e.values, "|")}`;
				case "too_big": {
					let n = e.inclusive ? "<=" : "<", r = t(e.origin);
					return r ? `Too big: expected ${e.origin ?? "value"} to have ${n}${e.maximum.toString()} ${r.unit ?? "elements"}` : `Too big: expected ${e.origin ?? "value"} to be ${n}${e.maximum.toString()}`;
				}
				case "too_small": {
					let n = e.inclusive ? ">=" : ">", r = t(e.origin);
					return r ? `Too small: expected ${e.origin} to have ${n}${e.minimum.toString()} ${r.unit}` : `Too small: expected ${e.origin} to be ${n}${e.minimum.toString()}`;
				}
				case "invalid_format": {
					let t = e;
					return t.format === "starts_with" ? `Invalid string: must start with "${t.prefix}"` : t.format === "ends_with" ? `Invalid string: must end with "${t.suffix}"` : t.format === "includes" ? `Invalid string: must include "${t.includes}"` : t.format === "regex" ? `Invalid string: must match pattern ${t.pattern}` : `Invalid ${n[t.format] ?? e.format}`;
				}
				case "not_multiple_of": return `Invalid number: must be a multiple of ${e.divisor}`;
				case "unrecognized_keys": return `Unrecognized key${e.keys.length > 1 ? "s" : ""}: ${Xt(e.keys, ", ")}`;
				case "invalid_key": return `Invalid key in ${e.origin}`;
				case "invalid_union": return e.options && Array.isArray(e.options) && e.options.length > 0 ? `Invalid discriminator value. Expected ${e.options.map((e) => `'${e}'`).join(" | ")}` : "Invalid input";
				case "invalid_element": return `Invalid value in ${e.origin}`;
				default: return "Invalid input";
			}
		};
	};
}));
//#endregion
//#region node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.js
function ha() {
	return new _a();
}
var ga, _a, va, ya = t((() => {
	_a = class {
		constructor() {
			this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
		}
		add(e, ...t) {
			let n = t[0];
			return this._map.set(e, n), n && typeof n == "object" && "id" in n && this._idmap.set(n.id, e), this;
		}
		clear() {
			return this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map(), this;
		}
		remove(e) {
			let t = this._map.get(e);
			return t && typeof t == "object" && "id" in t && this._idmap.delete(t.id), this._map.delete(e), this;
		}
		get(e) {
			let t = e._zod.parent;
			if (t) {
				let n = { ...this.get(t) ?? {} };
				delete n.id;
				let r = {
					...n,
					...this._map.get(e)
				};
				return Object.keys(r).length ? r : void 0;
			}
			return this._map.get(e);
		}
		has(e) {
			return this._map.has(e);
		}
	}, (ga = globalThis).__zod_globalRegistry ?? (ga.__zod_globalRegistry = ha()), va = globalThis.__zod_globalRegistry;
}));
//#endregion
//#region node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.js
/* @__NO_SIDE_EFFECTS__ */
function ba(e, t) {
	return new e({
		type: "string",
		...O(t)
	});
}
/* @__NO_SIDE_EFFECTS__ */
function xa(e, t) {
	return new e({
		type: "string",
		format: "email",
		check: "string_format",
		abort: !1,
		...O(t)
	});
}
/* @__NO_SIDE_EFFECTS__ */
function Sa(e, t) {
	return new e({
		type: "string",
		format: "guid",
		check: "string_format",
		abort: !1,
		...O(t)
	});
}
/* @__NO_SIDE_EFFECTS__ */
function Ca(e, t) {
	return new e({
		type: "string",
		format: "uuid",
		check: "string_format",
		abort: !1,
		...O(t)
	});
}
/* @__NO_SIDE_EFFECTS__ */
function wa(e, t) {
	return new e({
		type: "string",
		format: "uuid",
		check: "string_format",
		abort: !1,
		version: "v4",
		...O(t)
	});
}
/* @__NO_SIDE_EFFECTS__ */
function Ta(e, t) {
	return new e({
		type: "string",
		format: "uuid",
		check: "string_format",
		abort: !1,
		version: "v6",
		...O(t)
	});
}
/* @__NO_SIDE_EFFECTS__ */
function Ea(e, t) {
	return new e({
		type: "string",
		format: "uuid",
		check: "string_format",
		abort: !1,
		version: "v7",
		...O(t)
	});
}
/* @__NO_SIDE_EFFECTS__ */
function Da(e, t) {
	return new e({
		type: "string",
		format: "url",
		check: "string_format",
		abort: !1,
		...O(t)
	});
}
/* @__NO_SIDE_EFFECTS__ */
function Oa(e, t) {
	return new e({
		type: "string",
		format: "emoji",
		check: "string_format",
		abort: !1,
		...O(t)
	});
}
/* @__NO_SIDE_EFFECTS__ */
function ka(e, t) {
	return new e({
		type: "string",
		format: "nanoid",
		check: "string_format",
		abort: !1,
		...O(t)
	});
}
/* @__NO_SIDE_EFFECTS__ */
function Aa(e, t) {
	return new e({
		type: "string",
		format: "cuid",
		check: "string_format",
		abort: !1,
		...O(t)
	});
}
/* @__NO_SIDE_EFFECTS__ */
function ja(e, t) {
	return new e({
		type: "string",
		format: "cuid2",
		check: "string_format",
		abort: !1,
		...O(t)
	});
}
/* @__NO_SIDE_EFFECTS__ */
function Ma(e, t) {
	return new e({
		type: "string",
		format: "ulid",
		check: "string_format",
		abort: !1,
		...O(t)
	});
}
/* @__NO_SIDE_EFFECTS__ */
function Na(e, t) {
	return new e({
		type: "string",
		format: "xid",
		check: "string_format",
		abort: !1,
		...O(t)
	});
}
/* @__NO_SIDE_EFFECTS__ */
function Pa(e, t) {
	return new e({
		type: "string",
		format: "ksuid",
		check: "string_format",
		abort: !1,
		...O(t)
	});
}
/* @__NO_SIDE_EFFECTS__ */
function Fa(e, t) {
	return new e({
		type: "string",
		format: "ipv4",
		check: "string_format",
		abort: !1,
		...O(t)
	});
}
/* @__NO_SIDE_EFFECTS__ */
function Ia(e, t) {
	return new e({
		type: "string",
		format: "ipv6",
		check: "string_format",
		abort: !1,
		...O(t)
	});
}
/* @__NO_SIDE_EFFECTS__ */
function La(e, t) {
	return new e({
		type: "string",
		format: "cidrv4",
		check: "string_format",
		abort: !1,
		...O(t)
	});
}
/* @__NO_SIDE_EFFECTS__ */
function Ra(e, t) {
	return new e({
		type: "string",
		format: "cidrv6",
		check: "string_format",
		abort: !1,
		...O(t)
	});
}
/* @__NO_SIDE_EFFECTS__ */
function za(e, t) {
	return new e({
		type: "string",
		format: "base64",
		check: "string_format",
		abort: !1,
		...O(t)
	});
}
/* @__NO_SIDE_EFFECTS__ */
function Ba(e, t) {
	return new e({
		type: "string",
		format: "base64url",
		check: "string_format",
		abort: !1,
		...O(t)
	});
}
/* @__NO_SIDE_EFFECTS__ */
function Va(e, t) {
	return new e({
		type: "string",
		format: "e164",
		check: "string_format",
		abort: !1,
		...O(t)
	});
}
/* @__NO_SIDE_EFFECTS__ */
function Ha(e, t) {
	return new e({
		type: "string",
		format: "jwt",
		check: "string_format",
		abort: !1,
		...O(t)
	});
}
/* @__NO_SIDE_EFFECTS__ */
function Ua(e, t) {
	return new e({
		type: "string",
		format: "datetime",
		check: "string_format",
		offset: !1,
		local: !1,
		precision: null,
		...O(t)
	});
}
/* @__NO_SIDE_EFFECTS__ */
function Wa(e, t) {
	return new e({
		type: "string",
		format: "date",
		check: "string_format",
		...O(t)
	});
}
/* @__NO_SIDE_EFFECTS__ */
function Ga(e, t) {
	return new e({
		type: "string",
		format: "time",
		check: "string_format",
		precision: null,
		...O(t)
	});
}
/* @__NO_SIDE_EFFECTS__ */
function Ka(e, t) {
	return new e({
		type: "string",
		format: "duration",
		check: "string_format",
		...O(t)
	});
}
/* @__NO_SIDE_EFFECTS__ */
function qa(e, t) {
	return new e({
		type: "number",
		checks: [],
		...O(t)
	});
}
/* @__NO_SIDE_EFFECTS__ */
function Ja(e, t) {
	return new e({
		type: "number",
		check: "number_format",
		abort: !1,
		format: "safeint",
		...O(t)
	});
}
/* @__NO_SIDE_EFFECTS__ */
function Ya(e, t) {
	return new e({
		type: "boolean",
		...O(t)
	});
}
/* @__NO_SIDE_EFFECTS__ */
function Xa(e) {
	return new e({ type: "unknown" });
}
/* @__NO_SIDE_EFFECTS__ */
function Za(e, t) {
	return new e({
		type: "never",
		...O(t)
	});
}
/* @__NO_SIDE_EFFECTS__ */
function Qa(e, t) {
	return new Ar({
		check: "less_than",
		...O(t),
		value: e,
		inclusive: !1
	});
}
/* @__NO_SIDE_EFFECTS__ */
function $a(e, t) {
	return new Ar({
		check: "less_than",
		...O(t),
		value: e,
		inclusive: !0
	});
}
/* @__NO_SIDE_EFFECTS__ */
function eo(e, t) {
	return new jr({
		check: "greater_than",
		...O(t),
		value: e,
		inclusive: !1
	});
}
/* @__NO_SIDE_EFFECTS__ */
function to(e, t) {
	return new jr({
		check: "greater_than",
		...O(t),
		value: e,
		inclusive: !0
	});
}
/* @__NO_SIDE_EFFECTS__ */
function no(e, t) {
	return new Mr({
		check: "multiple_of",
		...O(t),
		value: e
	});
}
/* @__NO_SIDE_EFFECTS__ */
function ro(e, t) {
	return new Pr({
		check: "max_length",
		...O(t),
		maximum: e
	});
}
/* @__NO_SIDE_EFFECTS__ */
function io(e, t) {
	return new Fr({
		check: "min_length",
		...O(t),
		minimum: e
	});
}
/* @__NO_SIDE_EFFECTS__ */
function ao(e, t) {
	return new Ir({
		check: "length_equals",
		...O(t),
		length: e
	});
}
/* @__NO_SIDE_EFFECTS__ */
function oo(e, t) {
	return new Rr({
		check: "string_format",
		format: "regex",
		...O(t),
		pattern: e
	});
}
/* @__NO_SIDE_EFFECTS__ */
function so(e) {
	return new zr({
		check: "string_format",
		format: "lowercase",
		...O(e)
	});
}
/* @__NO_SIDE_EFFECTS__ */
function co(e) {
	return new Br({
		check: "string_format",
		format: "uppercase",
		...O(e)
	});
}
/* @__NO_SIDE_EFFECTS__ */
function lo(e, t) {
	return new Vr({
		check: "string_format",
		format: "includes",
		...O(t),
		includes: e
	});
}
/* @__NO_SIDE_EFFECTS__ */
function uo(e, t) {
	return new Hr({
		check: "string_format",
		format: "starts_with",
		...O(t),
		prefix: e
	});
}
/* @__NO_SIDE_EFFECTS__ */
function fo(e, t) {
	return new Ur({
		check: "string_format",
		format: "ends_with",
		...O(t),
		suffix: e
	});
}
/* @__NO_SIDE_EFFECTS__ */
function po(e) {
	return new Wr({
		check: "overwrite",
		tx: e
	});
}
/* @__NO_SIDE_EFFECTS__ */
function mo(e) {
	return /* @__PURE__ */ po((t) => t.normalize(e));
}
/* @__NO_SIDE_EFFECTS__ */
function ho() {
	return /* @__PURE__ */ po((e) => e.trim());
}
/* @__NO_SIDE_EFFECTS__ */
function go() {
	return /* @__PURE__ */ po((e) => e.toLowerCase());
}
/* @__NO_SIDE_EFFECTS__ */
function _o() {
	return /* @__PURE__ */ po((e) => e.toUpperCase());
}
/* @__NO_SIDE_EFFECTS__ */
function vo() {
	return /* @__PURE__ */ po((e) => rn(e));
}
/* @__NO_SIDE_EFFECTS__ */
function yo(e, t, n) {
	return new e({
		type: "array",
		element: t,
		...O(n)
	});
}
/* @__NO_SIDE_EFFECTS__ */
function bo(e, t, n) {
	let r = O(n);
	return r.abort ??= !0, new e({
		type: "custom",
		check: "custom",
		fn: t,
		...r
	});
}
/* @__NO_SIDE_EFFECTS__ */
function xo(e, t, n) {
	return new e({
		type: "custom",
		check: "custom",
		fn: t,
		...O(n)
	});
}
/* @__NO_SIDE_EFFECTS__ */
function So(e, t) {
	let n = /* @__PURE__ */ Co((t) => (t.addIssue = (e) => {
		if (typeof e == "string") t.issues.push(wn(e, t.value, n._zod.def));
		else {
			let r = e;
			r.fatal && (r.continue = !1), r.code ??= "custom", r.input ??= t.value, r.inst ??= n, r.continue ??= !n._zod.def.abort, t.issues.push(wn(r));
		}
	}, e(t.value, t)), t);
	return n;
}
/* @__NO_SIDE_EFFECTS__ */
function Co(e, t) {
	let n = new j({
		check: "custom",
		...O(t)
	});
	return n._zod.check = e, n;
}
var wo = t((() => {
	Gr(), A();
}));
//#endregion
//#region node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/to-json-schema.js
function To(e) {
	let t = e?.target ?? "draft-2020-12";
	return t === "draft-4" && (t = "draft-04"), t === "draft-7" && (t = "draft-07"), {
		processors: e.processors ?? {},
		metadataRegistry: e?.metadata ?? va,
		target: t,
		unrepresentable: e?.unrepresentable ?? "throw",
		override: e?.override ?? (() => {}),
		io: e?.io ?? "output",
		counter: 0,
		seen: /* @__PURE__ */ new Map(),
		cycles: e?.cycles ?? "ref",
		reused: e?.reused ?? "inline",
		external: e?.external ?? void 0
	};
}
function P(e, t, n = {
	path: [],
	schemaPath: []
}) {
	var r;
	let i = e._zod.def, a = t.seen.get(e);
	if (a) return a.count++, n.schemaPath.includes(e) && (a.cycle = n.path), a.schema;
	let o = {
		schema: {},
		count: 1,
		cycle: void 0,
		path: n.path
	};
	t.seen.set(e, o);
	let s = e._zod.toJSONSchema?.();
	if (s) o.schema = s;
	else {
		let r = {
			...n,
			schemaPath: [...n.schemaPath, e],
			path: n.path
		};
		if (e._zod.processJSONSchema) e._zod.processJSONSchema(t, o.schema, r);
		else {
			let n = o.schema, a = t.processors[i.type];
			if (!a) throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);
			a(e, t, n, r);
		}
		let a = e._zod.parent;
		a && (o.ref ||= a, P(a, t, r), t.seen.get(a).isParent = !0);
	}
	let c = t.metadataRegistry.get(e);
	return c && Object.assign(o.schema, c), t.io === "input" && F(e) && (delete o.schema.examples, delete o.schema.default), t.io === "input" && "_prefault" in o.schema && ((r = o.schema).default ?? (r.default = o.schema._prefault)), delete o.schema._prefault, t.seen.get(e).schema;
}
function Eo(e, t) {
	let n = e.seen.get(t);
	if (!n) throw Error("Unprocessed schema. This is a bug in Zod.");
	let r = /* @__PURE__ */ new Map();
	for (let t of e.seen.entries()) {
		let n = e.metadataRegistry.get(t[0])?.id;
		if (n) {
			let e = r.get(n);
			if (e && e !== t[0]) throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);
			r.set(n, t[0]);
		}
	}
	let i = (t) => {
		let r = e.target === "draft-2020-12" ? "$defs" : "definitions";
		if (e.external) {
			let n = e.external.registry.get(t[0])?.id, i = e.external.uri ?? ((e) => e);
			if (n) return { ref: i(n) };
			let a = t[1].defId ?? t[1].schema.id ?? `schema${e.counter++}`;
			return t[1].defId = a, {
				defId: a,
				ref: `${i("__shared")}#/${r}/${a}`
			};
		}
		if (t[1] === n) return { ref: "#" };
		let i = `#/${r}/`, a = t[1].schema.id ?? `__schema${e.counter++}`;
		return {
			defId: a,
			ref: i + a
		};
	}, a = (e) => {
		if (e[1].schema.$ref) return;
		let t = e[1], { ref: n, defId: r } = i(e);
		t.def = { ...t.schema }, r && (t.defId = r);
		let a = t.schema;
		for (let e in a) delete a[e];
		a.$ref = n;
	};
	if (e.cycles === "throw") for (let t of e.seen.entries()) {
		let e = t[1];
		if (e.cycle) throw Error(`Cycle detected: #/${e.cycle?.join("/")}/<root>

Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`);
	}
	for (let n of e.seen.entries()) {
		let r = n[1];
		if (t === n[0]) {
			a(n);
			continue;
		}
		if (e.external) {
			let r = e.external.registry.get(n[0])?.id;
			if (t !== n[0] && r) {
				a(n);
				continue;
			}
		}
		if (e.metadataRegistry.get(n[0])?.id) {
			a(n);
			continue;
		}
		if (r.cycle) {
			a(n);
			continue;
		}
		if (r.count > 1 && e.reused === "ref") {
			a(n);
			continue;
		}
	}
}
function Do(e, t) {
	let n = e.seen.get(t);
	if (!n) throw Error("Unprocessed schema. This is a bug in Zod.");
	let r = (t) => {
		let n = e.seen.get(t);
		if (n.ref === null) return;
		let i = n.def ?? n.schema, a = { ...i }, o = n.ref;
		if (n.ref = null, o) {
			r(o);
			let n = e.seen.get(o), s = n.schema;
			if (s.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (i.allOf = i.allOf ?? [], i.allOf.push(s)) : Object.assign(i, s), Object.assign(i, a), t._zod.parent === o) for (let e in i) e === "$ref" || e === "allOf" || e in a || delete i[e];
			if (s.$ref && n.def) for (let e in i) e === "$ref" || e === "allOf" || e in n.def && JSON.stringify(i[e]) === JSON.stringify(n.def[e]) && delete i[e];
		}
		let s = t._zod.parent;
		if (s && s !== o) {
			r(s);
			let t = e.seen.get(s);
			if (t?.schema.$ref && (i.$ref = t.schema.$ref, t.def)) for (let e in i) e === "$ref" || e === "allOf" || e in t.def && JSON.stringify(i[e]) === JSON.stringify(t.def[e]) && delete i[e];
		}
		e.override({
			zodSchema: t,
			jsonSchema: i,
			path: n.path ?? []
		});
	};
	for (let t of [...e.seen.entries()].reverse()) r(t[0]);
	let i = {};
	if (e.target === "draft-2020-12" ? i.$schema = "https://json-schema.org/draft/2020-12/schema" : e.target === "draft-07" ? i.$schema = "http://json-schema.org/draft-07/schema#" : e.target === "draft-04" ? i.$schema = "http://json-schema.org/draft-04/schema#" : e.target, e.external?.uri) {
		let n = e.external.registry.get(t)?.id;
		if (!n) throw Error("Schema is missing an `id` property");
		i.$id = e.external.uri(n);
	}
	Object.assign(i, n.def ?? n.schema);
	let a = e.metadataRegistry.get(t)?.id;
	a !== void 0 && i.id === a && delete i.id;
	let o = e.external?.defs ?? {};
	for (let t of e.seen.entries()) {
		let e = t[1];
		e.def && e.defId && (e.def.id === e.defId && delete e.def.id, o[e.defId] = e.def);
	}
	e.external || Object.keys(o).length > 0 && (e.target === "draft-2020-12" ? i.$defs = o : i.definitions = o);
	try {
		let n = JSON.parse(JSON.stringify(i));
		return Object.defineProperty(n, "~standard", {
			value: {
				...t["~standard"],
				jsonSchema: {
					input: ko(t, "input", e.processors),
					output: ko(t, "output", e.processors)
				}
			},
			enumerable: !1,
			writable: !1
		}), n;
	} catch {
		throw Error("Error converting schema to JSON.");
	}
}
function F(e, t) {
	let n = t ?? { seen: /* @__PURE__ */ new Set() };
	if (n.seen.has(e)) return !1;
	n.seen.add(e);
	let r = e._zod.def;
	if (r.type === "transform") return !0;
	if (r.type === "array") return F(r.element, n);
	if (r.type === "set") return F(r.valueType, n);
	if (r.type === "lazy") return F(r.getter(), n);
	if (r.type === "promise" || r.type === "optional" || r.type === "nonoptional" || r.type === "nullable" || r.type === "readonly" || r.type === "default" || r.type === "prefault") return F(r.innerType, n);
	if (r.type === "intersection") return F(r.left, n) || F(r.right, n);
	if (r.type === "record" || r.type === "map") return F(r.keyType, n) || F(r.valueType, n);
	if (r.type === "pipe") return e._zod.traits.has("$ZodCodec") ? !0 : F(r.in, n) || F(r.out, n);
	if (r.type === "object") {
		for (let e in r.shape) if (F(r.shape[e], n)) return !0;
		return !1;
	}
	if (r.type === "union") {
		for (let e of r.options) if (F(e, n)) return !0;
		return !1;
	}
	if (r.type === "tuple") {
		for (let e of r.items) if (F(e, n)) return !0;
		return !!(r.rest && F(r.rest, n));
	}
	return !1;
}
var Oo, ko, Ao = t((() => {
	ya(), Oo = (e, t = {}) => (n) => {
		let r = To({
			...n,
			processors: t
		});
		return P(e, r), Eo(r, e), Do(r, e);
	}, ko = (e, t, n = {}) => (r) => {
		let { libraryOptions: i, target: a } = r ?? {}, o = To({
			...i ?? {},
			target: a,
			io: t,
			processors: n
		});
		return P(e, o), Eo(o, e), Do(o, e);
	};
})), jo, Mo, No, Po, Fo, Io, Lo, Ro, zo, Bo, Vo, Ho, Uo, Wo, Go, Ko, qo, Jo, Yo, Xo, Zo, Qo, $o, es, ts = t((() => {
	Ao(), A(), jo = {
		guid: "uuid",
		url: "uri",
		datetime: "date-time",
		json_string: "json-string",
		regex: ""
	}, Mo = (e, t, n, r) => {
		let i = n;
		i.type = "string";
		let { minimum: a, maximum: o, format: s, patterns: c, contentEncoding: l } = e._zod.bag;
		if (typeof a == "number" && (i.minLength = a), typeof o == "number" && (i.maxLength = o), s && (i.format = jo[s] ?? s, i.format === "" && delete i.format, s === "time" && delete i.format), l && (i.contentEncoding = l), c && c.size > 0) {
			let e = [...c];
			e.length === 1 ? i.pattern = e[0].source : e.length > 1 && (i.allOf = [...e.map((e) => ({
				...t.target === "draft-07" || t.target === "draft-04" || t.target === "openapi-3.0" ? { type: "string" } : {},
				pattern: e.source
			}))]);
		}
	}, No = (e, t, n, r) => {
		let i = n, { minimum: a, maximum: o, format: s, multipleOf: c, exclusiveMaximum: l, exclusiveMinimum: u } = e._zod.bag;
		typeof s == "string" && s.includes("int") ? i.type = "integer" : i.type = "number";
		let d = typeof u == "number" && u >= (a ?? -Infinity), f = typeof l == "number" && l <= (o ?? Infinity), ee = t.target === "draft-04" || t.target === "openapi-3.0";
		d ? ee ? (i.minimum = u, i.exclusiveMinimum = !0) : i.exclusiveMinimum = u : typeof a == "number" && (i.minimum = a), f ? ee ? (i.maximum = l, i.exclusiveMaximum = !0) : i.exclusiveMaximum = l : typeof o == "number" && (i.maximum = o), typeof c == "number" && (i.multipleOf = c);
	}, Po = (e, t, n, r) => {
		n.type = "boolean";
	}, Fo = (e, t, n, r) => {
		n.not = {};
	}, Io = (e, t, n, r) => {}, Lo = (e, t, n, r) => {
		let i = e._zod.def, a = Yt(i.entries);
		a.every((e) => typeof e == "number") && (n.type = "number"), a.every((e) => typeof e == "string") && (n.type = "string"), n.enum = a;
	}, Ro = (e, t, n, r) => {
		let i = e._zod.def, a = [];
		for (let e of i.values) if (e === void 0) {
			if (t.unrepresentable === "throw") throw Error("Literal `undefined` cannot be represented in JSON Schema");
		} else if (typeof e == "bigint") {
			if (t.unrepresentable === "throw") throw Error("BigInt literals cannot be represented in JSON Schema");
			a.push(Number(e));
		} else a.push(e);
		if (a.length !== 0) if (a.length === 1) {
			let e = a[0];
			n.type = e === null ? "null" : typeof e, t.target === "draft-04" || t.target === "openapi-3.0" ? n.enum = [e] : n.const = e;
		} else a.every((e) => typeof e == "number") && (n.type = "number"), a.every((e) => typeof e == "string") && (n.type = "string"), a.every((e) => typeof e == "boolean") && (n.type = "boolean"), a.every((e) => e === null) && (n.type = "null"), n.enum = a;
	}, zo = (e, t, n, r) => {
		if (t.unrepresentable === "throw") throw Error("Custom types cannot be represented in JSON Schema");
	}, Bo = (e, t, n, r) => {
		if (t.unrepresentable === "throw") throw Error("Transforms cannot be represented in JSON Schema");
	}, Vo = (e, t, n, r) => {
		let i = n, a = e._zod.def, { minimum: o, maximum: s } = e._zod.bag;
		typeof o == "number" && (i.minItems = o), typeof s == "number" && (i.maxItems = s), i.type = "array", i.items = P(a.element, t, {
			...r,
			path: [...r.path, "items"]
		});
	}, Ho = (e, t, n, r) => {
		let i = n, a = e._zod.def;
		i.type = "object", i.properties = {};
		let o = a.shape;
		for (let e in o) i.properties[e] = P(o[e], t, {
			...r,
			path: [
				...r.path,
				"properties",
				e
			]
		});
		let s = new Set(Object.keys(o)), c = new Set([...s].filter((e) => {
			let n = a.shape[e]._zod;
			return t.io === "input" ? n.optin === void 0 : n.optout === void 0;
		}));
		c.size > 0 && (i.required = Array.from(c)), a.catchall?._zod.def.type === "never" ? i.additionalProperties = !1 : a.catchall ? a.catchall && (i.additionalProperties = P(a.catchall, t, {
			...r,
			path: [...r.path, "additionalProperties"]
		})) : t.io === "output" && (i.additionalProperties = !1);
	}, Uo = (e, t, n, r) => {
		let i = e._zod.def, a = i.inclusive === !1, o = i.options.map((e, n) => P(e, t, {
			...r,
			path: [
				...r.path,
				a ? "oneOf" : "anyOf",
				n
			]
		}));
		a ? n.oneOf = o : n.anyOf = o;
	}, Wo = (e, t, n, r) => {
		let i = e._zod.def, a = P(i.left, t, {
			...r,
			path: [
				...r.path,
				"allOf",
				0
			]
		}), o = P(i.right, t, {
			...r,
			path: [
				...r.path,
				"allOf",
				1
			]
		}), s = (e) => "allOf" in e && Object.keys(e).length === 1;
		n.allOf = [...s(a) ? a.allOf : [a], ...s(o) ? o.allOf : [o]];
	}, Go = (e, t, n, r) => {
		let i = n, a = e._zod.def;
		i.type = "array";
		let o = t.target === "draft-2020-12" ? "prefixItems" : "items", s = t.target === "draft-2020-12" || t.target === "openapi-3.0" ? "items" : "additionalItems", c = a.items.map((e, n) => P(e, t, {
			...r,
			path: [
				...r.path,
				o,
				n
			]
		})), l = a.rest ? P(a.rest, t, {
			...r,
			path: [
				...r.path,
				s,
				...t.target === "openapi-3.0" ? [a.items.length] : []
			]
		}) : null;
		t.target === "draft-2020-12" ? (i.prefixItems = c, l && (i.items = l)) : t.target === "openapi-3.0" ? (i.items = { anyOf: c }, l && i.items.anyOf.push(l), i.minItems = c.length, l || (i.maxItems = c.length)) : (i.items = c, l && (i.additionalItems = l));
		let { minimum: u, maximum: d } = e._zod.bag;
		typeof u == "number" && (i.minItems = u), typeof d == "number" && (i.maxItems = d);
	}, Ko = (e, t, n, r) => {
		let i = e._zod.def, a = P(i.innerType, t, r), o = t.seen.get(e);
		t.target === "openapi-3.0" ? (o.ref = i.innerType, n.nullable = !0) : n.anyOf = [a, { type: "null" }];
	}, qo = (e, t, n, r) => {
		let i = e._zod.def;
		P(i.innerType, t, r);
		let a = t.seen.get(e);
		a.ref = i.innerType;
	}, Jo = (e, t, n, r) => {
		let i = e._zod.def;
		P(i.innerType, t, r);
		let a = t.seen.get(e);
		a.ref = i.innerType, n.default = JSON.parse(JSON.stringify(i.defaultValue));
	}, Yo = (e, t, n, r) => {
		let i = e._zod.def;
		P(i.innerType, t, r);
		let a = t.seen.get(e);
		a.ref = i.innerType, t.io === "input" && (n._prefault = JSON.parse(JSON.stringify(i.defaultValue)));
	}, Xo = (e, t, n, r) => {
		let i = e._zod.def;
		P(i.innerType, t, r);
		let a = t.seen.get(e);
		a.ref = i.innerType;
		let o;
		try {
			o = i.catchValue(void 0);
		} catch {
			throw Error("Dynamic catch values are not supported in JSON Schema");
		}
		n.default = o;
	}, Zo = (e, t, n, r) => {
		let i = e._zod.def, a = i.in._zod.traits.has("$ZodTransform"), o = t.io === "input" ? a ? i.out : i.in : i.out;
		P(o, t, r);
		let s = t.seen.get(e);
		s.ref = o;
	}, Qo = (e, t, n, r) => {
		let i = e._zod.def;
		P(i.innerType, t, r);
		let a = t.seen.get(e);
		a.ref = i.innerType, n.readOnly = !0;
	}, $o = (e, t, n, r) => {
		let i = e._zod.def;
		P(i.innerType, t, r);
		let a = t.seen.get(e);
		a.ref = i.innerType;
	}, es = (e, t, n, r) => {
		let i = e._zod.innerType;
		P(i, t, r);
		let a = t.seen.get(e);
		a.ref = i;
	};
})), I = t((() => {
	Jt(), Xn(), Fn(), da(), Gr(), Yr(), A(), Or(), ma(), ya(), qr(), wo(), Ao(), ts(), Ao();
})), ns = t((() => {
	I();
}));
//#endregion
//#region node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/iso.js
function rs(e) {
	return /* @__PURE__ */ Ua(ss, e);
}
function is(e) {
	return /* @__PURE__ */ Wa(cs, e);
}
function as(e) {
	return /* @__PURE__ */ Ga(ls, e);
}
function os(e) {
	return /* @__PURE__ */ Ka(us, e);
}
var ss, cs, ls, us, ds = t((() => {
	I(), Bc(), ss = /* @__PURE__ */ x("ZodISODateTime", (e, t) => {
		Oi.init(e, t), q.init(e, t);
	}), cs = /* @__PURE__ */ x("ZodISODate", (e, t) => {
		ki.init(e, t), q.init(e, t);
	}), ls = /* @__PURE__ */ x("ZodISOTime", (e, t) => {
		Ai.init(e, t), q.init(e, t);
	}), us = /* @__PURE__ */ x("ZodISODuration", (e, t) => {
		ji.init(e, t), q.init(e, t);
	});
})), fs, L, ps = t((() => {
	I(), A(), fs = (e, t) => {
		Nn.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
			format: { value: (t) => jn(e, t) },
			flatten: { value: (t) => An(e, t) },
			addIssue: { value: (t) => {
				e.issues.push(t), e.message = JSON.stringify(e.issues, Zt, 2);
			} },
			addIssues: { value: (t) => {
				e.issues.push(...t), e.message = JSON.stringify(e.issues, Zt, 2);
			} },
			isEmpty: { get() {
				return e.issues.length === 0;
			} }
		});
	}, L = /* @__PURE__ */ x("ZodError", fs, { Parent: Error });
})), ms, hs, gs, _s, vs, ys, bs, xs, Ss, Cs, ws, Ts, Es = t((() => {
	I(), ps(), ms = /* @__PURE__ */ In(L), hs = /* @__PURE__ */ Ln(L), gs = /* @__PURE__ */ Rn(L), _s = /* @__PURE__ */ Bn(L), vs = /* @__PURE__ */ Hn(L), ys = /* @__PURE__ */ Un(L), bs = /* @__PURE__ */ Wn(L), xs = /* @__PURE__ */ Gn(L), Ss = /* @__PURE__ */ Kn(L), Cs = /* @__PURE__ */ qn(L), ws = /* @__PURE__ */ Jn(L), Ts = /* @__PURE__ */ Yn(L);
}));
//#endregion
//#region node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/schemas.js
function Ds(e, t, n) {
	let r = Object.getPrototypeOf(e), i = Js.get(r);
	if (i || (i = /* @__PURE__ */ new Set(), Js.set(r, i)), !i.has(t)) {
		i.add(t);
		for (let e in n) {
			let t = n[e];
			Object.defineProperty(r, e, {
				configurable: !0,
				enumerable: !1,
				get() {
					let n = t.bind(this);
					return Object.defineProperty(this, e, {
						configurable: !0,
						writable: !0,
						enumerable: !0,
						value: n
					}), n;
				},
				set(t) {
					Object.defineProperty(this, e, {
						configurable: !0,
						writable: !0,
						enumerable: !0,
						value: t
					});
				}
			});
		}
	}
}
function R(e) {
	return /* @__PURE__ */ ba(Xs, e);
}
function z(e) {
	return /* @__PURE__ */ qa(gc, e);
}
function Os(e) {
	return /* @__PURE__ */ Ja(_c, e);
}
function B(e) {
	return /* @__PURE__ */ Ya(vc, e);
}
function ks() {
	return /* @__PURE__ */ Xa(yc);
}
function As(e) {
	return /* @__PURE__ */ Za(bc, e);
}
function V(e, t) {
	return /* @__PURE__ */ yo(xc, e, t);
}
function H(e, t) {
	return new Sc({
		type: "object",
		shape: e,
		catchall: As(),
		...O(t)
	});
}
function js(e, t) {
	return new Sc({
		type: "object",
		shape: e,
		catchall: ks(),
		...O(t)
	});
}
function U(e, t) {
	return new Cc({
		type: "union",
		options: e,
		...O(t)
	});
}
function Ms(e, t) {
	return new wc({
		type: "intersection",
		left: e,
		right: t
	});
}
function Ns(e, t, n) {
	let r = t instanceof M;
	return new Tc({
		type: "tuple",
		items: e,
		rest: r ? t : null,
		...O(r ? n : t)
	});
}
function Ps(e, t) {
	return new Ec({
		type: "enum",
		entries: Array.isArray(e) ? Object.fromEntries(e.map((e) => [e, e])) : e,
		...O(t)
	});
}
function W(e, t) {
	return new Dc({
		type: "literal",
		values: Array.isArray(e) ? e : [e],
		...O(t)
	});
}
function Fs(e) {
	return new Oc({
		type: "transform",
		transform: e
	});
}
function Is(e) {
	return new kc({
		type: "optional",
		innerType: e
	});
}
function Ls(e) {
	return new Ac({
		type: "optional",
		innerType: e
	});
}
function Rs(e) {
	return new jc({
		type: "nullable",
		innerType: e
	});
}
function zs(e, t) {
	return new Mc({
		type: "default",
		innerType: e,
		get defaultValue() {
			return typeof t == "function" ? t() : sn(t);
		}
	});
}
function Bs(e, t) {
	return new Nc({
		type: "prefault",
		innerType: e,
		get defaultValue() {
			return typeof t == "function" ? t() : sn(t);
		}
	});
}
function Vs(e, t) {
	return new Pc({
		type: "nonoptional",
		innerType: e,
		...O(t)
	});
}
function Hs(e, t) {
	return new Fc({
		type: "catch",
		innerType: e,
		catchValue: typeof t == "function" ? t : () => t
	});
}
function Us(e, t) {
	return new Ic({
		type: "pipe",
		in: e,
		out: t
	});
}
function Ws(e) {
	return new Lc({
		type: "readonly",
		innerType: e
	});
}
function G(e) {
	return new Rc({
		type: "lazy",
		getter: e
	});
}
function Gs(e, t) {
	return /* @__PURE__ */ bo(zc, e ?? (() => !0), t);
}
function Ks(e, t = {}) {
	return /* @__PURE__ */ xo(zc, e, t);
}
function qs(e, t) {
	return /* @__PURE__ */ So(e, t);
}
var Js, K, Ys, Xs, q, Zs, Qs, $s, ec, tc, nc, rc, ic, ac, oc, sc, cc, lc, uc, dc, fc, pc, mc, hc, gc, _c, vc, yc, bc, xc, Sc, Cc, wc, Tc, Ec, Dc, Oc, kc, Ac, jc, Mc, Nc, Pc, Fc, Ic, Lc, Rc, zc, Bc = t((() => {
	I(), ts(), Ao(), ns(), ds(), Es(), Js = /* @__PURE__ */ new WeakMap(), K = /* @__PURE__ */ x("ZodType", (e, t) => (M.init(e, t), Object.assign(e["~standard"], { jsonSchema: {
		input: ko(e, "input"),
		output: ko(e, "output")
	} }), e.toJSONSchema = Oo(e, {}), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.parse = (t, n) => ms(e, t, n, { callee: e.parse }), e.safeParse = (t, n) => gs(e, t, n), e.parseAsync = async (t, n) => hs(e, t, n, { callee: e.parseAsync }), e.safeParseAsync = async (t, n) => _s(e, t, n), e.spa = e.safeParseAsync, e.encode = (t, n) => vs(e, t, n), e.decode = (t, n) => ys(e, t, n), e.encodeAsync = async (t, n) => bs(e, t, n), e.decodeAsync = async (t, n) => xs(e, t, n), e.safeEncode = (t, n) => Ss(e, t, n), e.safeDecode = (t, n) => Cs(e, t, n), e.safeEncodeAsync = async (t, n) => ws(e, t, n), e.safeDecodeAsync = async (t, n) => Ts(e, t, n), Ds(e, "ZodType", {
		check(...e) {
			let t = this.def;
			return this.clone(E(t, { checks: [...t.checks ?? [], ...e.map((e) => typeof e == "function" ? { _zod: {
				check: e,
				def: { check: "custom" },
				onattach: []
			} } : e)] }), { parent: !0 });
		},
		with(...e) {
			return this.check(...e);
		},
		clone(e, t) {
			return D(this, e, t);
		},
		brand() {
			return this;
		},
		register(e, t) {
			return e.add(this, t), this;
		},
		refine(e, t) {
			return this.check(Ks(e, t));
		},
		superRefine(e, t) {
			return this.check(qs(e, t));
		},
		overwrite(e) {
			return this.check(/* @__PURE__ */ po(e));
		},
		optional() {
			return Is(this);
		},
		exactOptional() {
			return Ls(this);
		},
		nullable() {
			return Rs(this);
		},
		nullish() {
			return Is(Rs(this));
		},
		nonoptional(e) {
			return Vs(this, e);
		},
		array() {
			return V(this);
		},
		or(e) {
			return U([this, e]);
		},
		and(e) {
			return Ms(this, e);
		},
		transform(e) {
			return Us(this, Fs(e));
		},
		default(e) {
			return zs(this, e);
		},
		prefault(e) {
			return Bs(this, e);
		},
		catch(e) {
			return Hs(this, e);
		},
		pipe(e) {
			return Us(this, e);
		},
		readonly() {
			return Ws(this);
		},
		describe(e) {
			let t = this.clone();
			return va.add(t, { description: e }), t;
		},
		meta(...e) {
			if (e.length === 0) return va.get(this);
			let t = this.clone();
			return va.add(t, e[0]), t;
		},
		isOptional() {
			return this.safeParse(void 0).success;
		},
		isNullable() {
			return this.safeParse(null).success;
		},
		apply(e) {
			return e(this);
		}
	}), Object.defineProperty(e, "description", {
		get() {
			return va.get(e)?.description;
		},
		configurable: !0
	}), e)), Ys = /* @__PURE__ */ x("_ZodString", (e, t) => {
		gi.init(e, t), K.init(e, t), e._zod.processJSONSchema = (t, n, r) => Mo(e, t, n, r);
		let n = e._zod.bag;
		e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, Ds(e, "_ZodString", {
			regex(...e) {
				return this.check(/* @__PURE__ */ oo(...e));
			},
			includes(...e) {
				return this.check(/* @__PURE__ */ lo(...e));
			},
			startsWith(...e) {
				return this.check(/* @__PURE__ */ uo(...e));
			},
			endsWith(...e) {
				return this.check(/* @__PURE__ */ fo(...e));
			},
			min(...e) {
				return this.check(/* @__PURE__ */ io(...e));
			},
			max(...e) {
				return this.check(/* @__PURE__ */ ro(...e));
			},
			length(...e) {
				return this.check(/* @__PURE__ */ ao(...e));
			},
			nonempty(...e) {
				return this.check(/* @__PURE__ */ io(1, ...e));
			},
			lowercase(e) {
				return this.check(/* @__PURE__ */ so(e));
			},
			uppercase(e) {
				return this.check(/* @__PURE__ */ co(e));
			},
			trim() {
				return this.check(/* @__PURE__ */ ho());
			},
			normalize(...e) {
				return this.check(/* @__PURE__ */ mo(...e));
			},
			toLowerCase() {
				return this.check(/* @__PURE__ */ go());
			},
			toUpperCase() {
				return this.check(/* @__PURE__ */ _o());
			},
			slugify() {
				return this.check(/* @__PURE__ */ vo());
			}
		});
	}), Xs = /* @__PURE__ */ x("ZodString", (e, t) => {
		gi.init(e, t), Ys.init(e, t), e.email = (t) => e.check(/* @__PURE__ */ xa(Zs, t)), e.url = (t) => e.check(/* @__PURE__ */ Da(ec, t)), e.jwt = (t) => e.check(/* @__PURE__ */ Ha(hc, t)), e.emoji = (t) => e.check(/* @__PURE__ */ Oa(tc, t)), e.guid = (t) => e.check(/* @__PURE__ */ Sa(Qs, t)), e.uuid = (t) => e.check(/* @__PURE__ */ Ca($s, t)), e.uuidv4 = (t) => e.check(/* @__PURE__ */ wa($s, t)), e.uuidv6 = (t) => e.check(/* @__PURE__ */ Ta($s, t)), e.uuidv7 = (t) => e.check(/* @__PURE__ */ Ea($s, t)), e.nanoid = (t) => e.check(/* @__PURE__ */ ka(nc, t)), e.guid = (t) => e.check(/* @__PURE__ */ Sa(Qs, t)), e.cuid = (t) => e.check(/* @__PURE__ */ Aa(rc, t)), e.cuid2 = (t) => e.check(/* @__PURE__ */ ja(ic, t)), e.ulid = (t) => e.check(/* @__PURE__ */ Ma(ac, t)), e.base64 = (t) => e.check(/* @__PURE__ */ za(fc, t)), e.base64url = (t) => e.check(/* @__PURE__ */ Ba(pc, t)), e.xid = (t) => e.check(/* @__PURE__ */ Na(oc, t)), e.ksuid = (t) => e.check(/* @__PURE__ */ Pa(sc, t)), e.ipv4 = (t) => e.check(/* @__PURE__ */ Fa(cc, t)), e.ipv6 = (t) => e.check(/* @__PURE__ */ Ia(lc, t)), e.cidrv4 = (t) => e.check(/* @__PURE__ */ La(uc, t)), e.cidrv6 = (t) => e.check(/* @__PURE__ */ Ra(dc, t)), e.e164 = (t) => e.check(/* @__PURE__ */ Va(mc, t)), e.datetime = (t) => e.check(rs(t)), e.date = (t) => e.check(is(t)), e.time = (t) => e.check(as(t)), e.duration = (t) => e.check(os(t));
	}), q = /* @__PURE__ */ x("ZodStringFormat", (e, t) => {
		N.init(e, t), Ys.init(e, t);
	}), Zs = /* @__PURE__ */ x("ZodEmail", (e, t) => {
		yi.init(e, t), q.init(e, t);
	}), Qs = /* @__PURE__ */ x("ZodGUID", (e, t) => {
		_i.init(e, t), q.init(e, t);
	}), $s = /* @__PURE__ */ x("ZodUUID", (e, t) => {
		vi.init(e, t), q.init(e, t);
	}), ec = /* @__PURE__ */ x("ZodURL", (e, t) => {
		bi.init(e, t), q.init(e, t);
	}), tc = /* @__PURE__ */ x("ZodEmoji", (e, t) => {
		xi.init(e, t), q.init(e, t);
	}), nc = /* @__PURE__ */ x("ZodNanoID", (e, t) => {
		Si.init(e, t), q.init(e, t);
	}), rc = /* @__PURE__ */ x("ZodCUID", (e, t) => {
		Ci.init(e, t), q.init(e, t);
	}), ic = /* @__PURE__ */ x("ZodCUID2", (e, t) => {
		wi.init(e, t), q.init(e, t);
	}), ac = /* @__PURE__ */ x("ZodULID", (e, t) => {
		Ti.init(e, t), q.init(e, t);
	}), oc = /* @__PURE__ */ x("ZodXID", (e, t) => {
		Ei.init(e, t), q.init(e, t);
	}), sc = /* @__PURE__ */ x("ZodKSUID", (e, t) => {
		Di.init(e, t), q.init(e, t);
	}), cc = /* @__PURE__ */ x("ZodIPv4", (e, t) => {
		Mi.init(e, t), q.init(e, t);
	}), lc = /* @__PURE__ */ x("ZodIPv6", (e, t) => {
		Ni.init(e, t), q.init(e, t);
	}), uc = /* @__PURE__ */ x("ZodCIDRv4", (e, t) => {
		Pi.init(e, t), q.init(e, t);
	}), dc = /* @__PURE__ */ x("ZodCIDRv6", (e, t) => {
		Fi.init(e, t), q.init(e, t);
	}), fc = /* @__PURE__ */ x("ZodBase64", (e, t) => {
		Ii.init(e, t), q.init(e, t);
	}), pc = /* @__PURE__ */ x("ZodBase64URL", (e, t) => {
		Li.init(e, t), q.init(e, t);
	}), mc = /* @__PURE__ */ x("ZodE164", (e, t) => {
		Ri.init(e, t), q.init(e, t);
	}), hc = /* @__PURE__ */ x("ZodJWT", (e, t) => {
		zi.init(e, t), q.init(e, t);
	}), gc = /* @__PURE__ */ x("ZodNumber", (e, t) => {
		Bi.init(e, t), K.init(e, t), e._zod.processJSONSchema = (t, n, r) => No(e, t, n, r), Ds(e, "ZodNumber", {
			gt(e, t) {
				return this.check(/* @__PURE__ */ eo(e, t));
			},
			gte(e, t) {
				return this.check(/* @__PURE__ */ to(e, t));
			},
			min(e, t) {
				return this.check(/* @__PURE__ */ to(e, t));
			},
			lt(e, t) {
				return this.check(/* @__PURE__ */ Qa(e, t));
			},
			lte(e, t) {
				return this.check(/* @__PURE__ */ $a(e, t));
			},
			max(e, t) {
				return this.check(/* @__PURE__ */ $a(e, t));
			},
			int(e) {
				return this.check(Os(e));
			},
			safe(e) {
				return this.check(Os(e));
			},
			positive(e) {
				return this.check(/* @__PURE__ */ eo(0, e));
			},
			nonnegative(e) {
				return this.check(/* @__PURE__ */ to(0, e));
			},
			negative(e) {
				return this.check(/* @__PURE__ */ Qa(0, e));
			},
			nonpositive(e) {
				return this.check(/* @__PURE__ */ $a(0, e));
			},
			multipleOf(e, t) {
				return this.check(/* @__PURE__ */ no(e, t));
			},
			step(e, t) {
				return this.check(/* @__PURE__ */ no(e, t));
			},
			finite() {
				return this;
			}
		});
		let n = e._zod.bag;
		e.minValue = Math.max(n.minimum ?? -Infinity, n.exclusiveMinimum ?? -Infinity) ?? null, e.maxValue = Math.min(n.maximum ?? Infinity, n.exclusiveMaximum ?? Infinity) ?? null, e.isInt = (n.format ?? "").includes("int") || Number.isSafeInteger(n.multipleOf ?? .5), e.isFinite = !0, e.format = n.format ?? null;
	}), _c = /* @__PURE__ */ x("ZodNumberFormat", (e, t) => {
		Vi.init(e, t), gc.init(e, t);
	}), vc = /* @__PURE__ */ x("ZodBoolean", (e, t) => {
		Hi.init(e, t), K.init(e, t), e._zod.processJSONSchema = (t, n, r) => Po(e, t, n, r);
	}), yc = /* @__PURE__ */ x("ZodUnknown", (e, t) => {
		Ui.init(e, t), K.init(e, t), e._zod.processJSONSchema = (t, n, r) => Io(e, t, n, r);
	}), bc = /* @__PURE__ */ x("ZodNever", (e, t) => {
		Wi.init(e, t), K.init(e, t), e._zod.processJSONSchema = (t, n, r) => Fo(e, t, n, r);
	}), xc = /* @__PURE__ */ x("ZodArray", (e, t) => {
		Gi.init(e, t), K.init(e, t), e._zod.processJSONSchema = (t, n, r) => Vo(e, t, n, r), e.element = t.element, Ds(e, "ZodArray", {
			min(e, t) {
				return this.check(/* @__PURE__ */ io(e, t));
			},
			nonempty(e) {
				return this.check(/* @__PURE__ */ io(1, e));
			},
			max(e, t) {
				return this.check(/* @__PURE__ */ ro(e, t));
			},
			length(e, t) {
				return this.check(/* @__PURE__ */ ao(e, t));
			},
			unwrap() {
				return this.element;
			}
		});
	}), Sc = /* @__PURE__ */ x("ZodObject", (e, t) => {
		qi.init(e, t), K.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ho(e, t, n, r), w(e, "shape", () => t.shape), Ds(e, "ZodObject", {
			keyof() {
				return Ps(Object.keys(this._zod.def.shape));
			},
			catchall(e) {
				return this.clone({
					...this._zod.def,
					catchall: e
				});
			},
			passthrough() {
				return this.clone({
					...this._zod.def,
					catchall: ks()
				});
			},
			loose() {
				return this.clone({
					...this._zod.def,
					catchall: ks()
				});
			},
			strict() {
				return this.clone({
					...this._zod.def,
					catchall: As()
				});
			},
			strip() {
				return this.clone({
					...this._zod.def,
					catchall: void 0
				});
			},
			extend(e) {
				return pn(this, e);
			},
			safeExtend(e) {
				return mn(this, e);
			},
			merge(e) {
				return hn(this, e);
			},
			pick(e) {
				return dn(this, e);
			},
			omit(e) {
				return fn(this, e);
			},
			partial(...e) {
				return gn(kc, this, e[0]);
			},
			required(...e) {
				return _n(Pc, this, e[0]);
			}
		});
	}), Cc = /* @__PURE__ */ x("ZodUnion", (e, t) => {
		Ji.init(e, t), K.init(e, t), e._zod.processJSONSchema = (t, n, r) => Uo(e, t, n, r), e.options = t.options;
	}), wc = /* @__PURE__ */ x("ZodIntersection", (e, t) => {
		Yi.init(e, t), K.init(e, t), e._zod.processJSONSchema = (t, n, r) => Wo(e, t, n, r);
	}), Tc = /* @__PURE__ */ x("ZodTuple", (e, t) => {
		Xi.init(e, t), K.init(e, t), e._zod.processJSONSchema = (t, n, r) => Go(e, t, n, r), e.rest = (t) => e.clone({
			...e._zod.def,
			rest: t
		});
	}), Ec = /* @__PURE__ */ x("ZodEnum", (e, t) => {
		Zi.init(e, t), K.init(e, t), e._zod.processJSONSchema = (t, n, r) => Lo(e, t, n, r), e.enum = t.entries, e.options = Object.values(t.entries);
		let n = new Set(Object.keys(t.entries));
		e.extract = (e, r) => {
			let i = {};
			for (let r of e) if (n.has(r)) i[r] = t.entries[r];
			else throw Error(`Key ${r} not found in enum`);
			return new Ec({
				...t,
				checks: [],
				...O(r),
				entries: i
			});
		}, e.exclude = (e, r) => {
			let i = { ...t.entries };
			for (let t of e) if (n.has(t)) delete i[t];
			else throw Error(`Key ${t} not found in enum`);
			return new Ec({
				...t,
				checks: [],
				...O(r),
				entries: i
			});
		};
	}), Dc = /* @__PURE__ */ x("ZodLiteral", (e, t) => {
		Qi.init(e, t), K.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ro(e, t, n, r), e.values = new Set(t.values), Object.defineProperty(e, "value", { get() {
			if (t.values.length > 1) throw Error("This schema contains multiple valid literal values. Use `.values` instead.");
			return t.values[0];
		} });
	}), Oc = /* @__PURE__ */ x("ZodTransform", (e, t) => {
		$i.init(e, t), K.init(e, t), e._zod.processJSONSchema = (t, n, r) => Bo(e, t, n, r), e._zod.parse = (n, r) => {
			if (r.direction === "backward") throw new Kt(e.constructor.name);
			n.addIssue = (r) => {
				if (typeof r == "string") n.issues.push(wn(r, n.value, t));
				else {
					let t = r;
					t.fatal && (t.continue = !1), t.code ??= "custom", t.input ??= n.value, t.inst ??= e, n.issues.push(wn(t));
				}
			};
			let i = t.transform(n.value, n);
			return i instanceof Promise ? i.then((e) => (n.value = e, n.fallback = !0, n)) : (n.value = i, n.fallback = !0, n);
		};
	}), kc = /* @__PURE__ */ x("ZodOptional", (e, t) => {
		ea.init(e, t), K.init(e, t), e._zod.processJSONSchema = (t, n, r) => $o(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
	}), Ac = /* @__PURE__ */ x("ZodExactOptional", (e, t) => {
		ta.init(e, t), K.init(e, t), e._zod.processJSONSchema = (t, n, r) => $o(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
	}), jc = /* @__PURE__ */ x("ZodNullable", (e, t) => {
		na.init(e, t), K.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ko(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
	}), Mc = /* @__PURE__ */ x("ZodDefault", (e, t) => {
		ra.init(e, t), K.init(e, t), e._zod.processJSONSchema = (t, n, r) => Jo(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
	}), Nc = /* @__PURE__ */ x("ZodPrefault", (e, t) => {
		ia.init(e, t), K.init(e, t), e._zod.processJSONSchema = (t, n, r) => Yo(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
	}), Pc = /* @__PURE__ */ x("ZodNonOptional", (e, t) => {
		aa.init(e, t), K.init(e, t), e._zod.processJSONSchema = (t, n, r) => qo(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
	}), Fc = /* @__PURE__ */ x("ZodCatch", (e, t) => {
		oa.init(e, t), K.init(e, t), e._zod.processJSONSchema = (t, n, r) => Xo(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
	}), Ic = /* @__PURE__ */ x("ZodPipe", (e, t) => {
		sa.init(e, t), K.init(e, t), e._zod.processJSONSchema = (t, n, r) => Zo(e, t, n, r), e.in = t.in, e.out = t.out;
	}), Lc = /* @__PURE__ */ x("ZodReadonly", (e, t) => {
		ca.init(e, t), K.init(e, t), e._zod.processJSONSchema = (t, n, r) => Qo(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
	}), Rc = /* @__PURE__ */ x("ZodLazy", (e, t) => {
		la.init(e, t), K.init(e, t), e._zod.processJSONSchema = (t, n, r) => es(e, t, n, r), e.unwrap = () => e._zod.def.getter();
	}), zc = /* @__PURE__ */ x("ZodCustom", (e, t) => {
		ua.init(e, t), K.init(e, t), e._zod.processJSONSchema = (t, n, r) => zo(e, t, n, r);
	});
})), Vc, Hc = t((() => {
	I(), (function(e) {})(Vc ||= {});
})), Uc = t((() => {
	I(), Bc(), ns(), ps(), Es(), Hc(), ma(), ts(), ya(), ns(), ds(), Bc(), A(), S(fa());
})), J = t((() => {
	Uc();
})), Wc, Gc, Kc, qc, Jc, Yc, Xc, Zc, Qc, $c, el, tl, nl, rl, il, al, Y, X, ol = t((() => {
	J(), Wc = H({ eq: Ns([R(), U([R(), z()])]) }), Gc = H({ gt: Ns([R(), U([R(), z()])]) }), Kc = H({ gte: Ns([R(), U([R(), z()])]) }), qc = H({ lt: Ns([R(), U([R(), z()])]) }), Jc = H({ lte: Ns([R(), U([R(), z()])]) }), Yc = U([
		Wc,
		Gc,
		Kc,
		qc,
		Jc
	]), Xc = U([R(), Yc]), Zc = H({ and: G(() => V(Y)) }), Qc = H({ or: G(() => V(Y)) }), $c = H({ xor: G(() => V(Y)) }), el = H({ not: G(() => Y) }), tl = H({ nand: G(() => V(Y)) }), nl = H({ nor: G(() => V(Y)) }), rl = H({
		if: G(() => Y),
		then: G(() => Y)
	}), il = H({ iff: G(() => V(Y)) }), al = U([
		Zc,
		Qc,
		$c,
		tl,
		nl,
		el,
		rl,
		il
	]), Y = U([Xc, al]), X = V(Y);
})), sl, cl, ll = t((() => {
	m(), J(), W(!1), sl = Gs((e) => Ce(e)), cl = (e = null) => R().nonempty().transform((t) => game.pf2e.system.sluggify(t, { camel: e })), W(!0);
})), ul, dl, fl = t((() => {
	J(), ol(), ll(), ul = U([
		R(),
		z(),
		B(),
		sl
	]), dl = js({
		key: R(),
		slug: R().optional(),
		label: R().optional(),
		priority: z().optional(),
		ignored: B().optional(),
		predicate: X.optional(),
		requiresEquipped: B().optional(),
		requiresInvestment: B().optional(),
		spinoff: R().optional()
	}), js({
		key: R().nonempty(),
		slug: cl().nullable().default(null),
		label: R().nonempty().optional(),
		priority: Os().default(100),
		ignored: B().default(!1),
		predicate: X.default([]),
		requiresEquipped: B().nullable().default(null),
		requiresInvestment: B().nullable().default(null),
		spinoff: cl().optional()
	});
})), pl, ml, hl, gl, _l, vl, yl, bl = t((() => {
	J(), ol(), ll(), fl(), pl = H({
		value: U([
			R(),
			z(),
			sl
		]),
		label: R(),
		img: R().optional(),
		predicate: X.optional(),
		group: R().optional()
	}), ml = H({
		ownedItems: B(),
		includeHandwraps: B().optional(),
		predicate: X.optional(),
		types: V(R())
	}), hl = H({
		attacks: B().optional(),
		unarmedAttacks: B().optional(),
		predicate: X.optional()
	}), gl = H({
		itemType: R().optional(),
		pack: B().optional(),
		filter: X.optional(),
		slugsAsValues: B().optional()
	}), _l = H({
		config: R(),
		predicate: X.optional()
	}), vl = U([
		ml,
		hl,
		gl,
		_l
	]), yl = dl.extend({
		key: W("ChoiceSet"),
		choices: U([
			V(pl),
			vl,
			R()
		]).optional(),
		selection: ul.optional(),
		prompt: R().optional(),
		adjustName: U([B(), R()]).optional(),
		allowedDrops: H({
			label: R().optional(),
			predicate: X.optional()
		}).optional(),
		flag: R().optional(),
		actorFlag: B().optional(),
		rollOption: R().optional(),
		allowNoSelection: B().optional()
	});
})), xl, Sl = t((() => {
	J(), fl(), xl = dl.extend({
		key: W("TokenMark"),
		slug: R().optional(),
		uuid: R().optional()
	});
}));
//#endregion
//#region src/_zod/type-guards.ts
function Cl(e, t) {
	return t.safeParse(e).success;
}
var wl = t((() => {}));
//#endregion
//#region src/utils/rules.ts
function Tl(e, { flag: t } = {}) {
	return e.system.rules.filter((e) => Cl(e, yl)).find((e) => t === void 0 ? !0 : e.flag === t)?.selection;
}
function El(e, { flag: t, selection: n }) {
	let r = e.system.rules.filter((e) => Cl(e, yl)).find((e) => t === void 0 ? !0 : e.flag === t);
	r && (r.selection = n);
}
function Dl(e, { slug: t, token: n }) {
	let r = e.system.rules.filter((e) => Cl(e, xl)).find((e) => e.slug === t);
	r && (r.uuid = n.uuid);
}
var Ol = t((() => {
	bl(), Sl(), wl();
}));
//#endregion
//#region src/utils/token.ts
function kl(e, t) {
	let n = e instanceof TokenDocument ? e.object : e, r = t instanceof TokenDocument ? t.object : t;
	return p(n) && p(r) && n.isAdjacentTo(r);
}
function Al(e, t, { reach: n } = {}) {
	let r = e instanceof TokenDocument ? e.object : e, i = t instanceof TokenDocument ? t.object : t;
	return p(r) && p(i) ? r.distanceTo(i, { reach: n }) : 0;
}
var jl = t((() => {
	m();
}));
//#endregion
//#region src/utils/scene.ts
function Ml(e, t = {}) {
	return _e(e) ? [] : e.tokens.filter((e) => (p(t.allyOf) ? rt(t.allyOf, e) : !0) && (p(t.enemyOf) ? it(t.enemyOf, e) : !0) && (p(t.adjacentTo) ? kl(t.adjacentTo, e) : !0) && (p(t.distanceTo) ? Al(t.distanceTo.target, e) <= t.distanceTo.distance : !0) && (p(t.predicate) ? t.predicate(e) : !0));
}
var Nl = t((() => {
	m(), at(), jl();
}));
//#endregion
//#region src/utils/system.ts
function Z(...e) {
	return `systems/${game.system.id}/${De(e, "/")}`;
}
function Pl(e, t) {
	return game.system.id === "pf2e" ? e : t;
}
var Fl = t((() => {
	m();
}));
//#endregion
//#region src/utils/user.ts
function Il() {
	return game.user ?? game.data.users.find((e) => e._id === game.userId);
}
function Ll(e = Il()) {
	return Array.from(e.targets ?? []);
}
var Rl = t((() => {})), zl = t((() => {
	nt(), at(), ft(), ht(), vt(), St(), wt(), Ot(), At(), jt(), Wt(), Ol(), Nl(), Fl(), jl(), Rl();
})), Q = t((() => {
	zl();
})), Bl, Vl = t((() => {
	i(), m(), Q(), He(), Bl = class {
		#e = new foundry.utils.Semaphore(1);
		constructor() {
			CONFIG.queries[`${r.id}.addEmbeddedItem`] = this.#r, CONFIG.queries[`${r.id}.createEmbeddedItem`] = this.#i, CONFIG.queries[`${r.id}.deleteEmbeddedItem`] = this.#a, CONFIG.queries[`${r.id}.updateEmbeddedItem`] = this.#o, CONFIG.queries[`${r.id}.decreaseCondition`] = this.#s, CONFIG.queries[`${r.id}.increaseCondition`] = this.#c, CONFIG.queries[`${r.id}.toggleCondition`] = this.#l, CONFIG.queries[`${r.id}.addCondition`] = this.#u, CONFIG.queries[`${r.id}.removeCondition`] = this.#d, CONFIG.queries[`${r.id}.rollSave`] = this.#f, CONFIG.queries[`${r.id}.deleteChatMessage`] = this.#p, CONFIG.queries[`${r.id}.updateChatMessage`] = this.#m, CONFIG.queries[`${r.id}.promptChoice`] = this.#h;
		}
		async #t(e, t, n) {
			let i = Je(e);
			if (i) return i.query(`${r.id}.${t}`, n);
		}
		async #n(e, t) {
			return game.users.activeGM?.query(`${r.id}.${e}`, t);
		}
		async addEffect(e, t, n) {
			let r = await fromUuid(t);
			if (!r?.isOfType("effect")) return [];
			let i = r.toObject(), a = n.item?.uuid ?? null, o = n.item?.isOfType("spell") && n.item.spellcasting ? {
				attribute: {
					type: n.item.attribute,
					mod: n.item.spellcasting.statistic?.attributeModifier?.value ?? 0
				},
				tradition: n.item.spellcasting.tradition
			} : null, s = _(n.origin.actor, n.item), c = {
				actor: n.origin.actor.uuid,
				token: n.origin.token.uuid,
				item: a,
				spellcasting: o,
				rollOptions: s
			}, l = n.target ? {
				actor: n.target.actor.uuid,
				token: n.target.token.uuid
			} : null, u = n.roll?.total && n.roll?.degreeOfSuccess ? {
				total: n.roll.total,
				degreeOfSuccess: n.roll.degreeOfSuccess
			} : null;
			return i.system.context = {
				origin: c,
				target: l,
				roll: u
			}, n.item?.isOfType("spell") && (i.system.level.value = n.item.rank), n.duration && (i.system.duration = n.duration), n.choiceSet && El(i, n.choiceSet), n.tokenMark && Dl(i, n.tokenMark), await this.createEmbeddedItem(e, i);
		}
		async addEmbeddedItem(e, t, n) {
			if (!e.canUserModify(game.user, "update")) return await this.#t(e, "addEmbeddedItem", {
				actorUuid: e.uuid,
				itemUuid: t,
				data: n
			}) ?? [];
			let r = await fromUuid(t);
			if (r) {
				let t = n ? foundry.utils.mergeObject(r.toObject(), n) : r.toObject();
				return (await e.createEmbeddedDocuments("Item", [t])).map((t) => ({
					actor: e.uuid,
					item: t.uuid
				}));
			}
			return [];
		}
		async #r({ actorUuid: e, itemUuid: t, data: n }) {
			let r = await fromUuid(e);
			return r ? await game.assistant.socket.addEmbeddedItem(r, t, n) : [];
		}
		async createEmbeddedItem(e, t) {
			return e.canUserModify(game.user, "update") ? (await e.createEmbeddedDocuments("Item", [t])).map((t) => ({
				actor: e.uuid,
				item: t.uuid
			})) : await this.#t(e, "createEmbeddedItem", {
				actorUuid: e.uuid,
				data: t
			}) ?? [];
		}
		async #i({ actorUuid: e, data: t }) {
			let n = await fromUuid(e);
			return n ? await game.assistant.socket.createEmbeddedItem(n, t) : [];
		}
		async deleteEmbeddedItems(e) {
			let t = [];
			return e.forEach(async (e) => {
				t.push(...await game.assistant.socket.deleteEmbeddedItem(e));
			}), t;
		}
		async deleteEmbeddedItem(e) {
			if (!e.parent) return [];
			if (!e.parent.canUserModify(game.user, "update")) return await this.#t(e.parent, "deleteEmbeddedItem", { itemUuid: e.uuid }) ?? [];
			let t = [{
				actor: e.parent.uuid,
				item: e.toObject()
			}];
			return await e.delete(), t;
		}
		async #a({ itemUuid: e }) {
			let t = await fromUuid(e);
			return t ? await game.assistant.socket.deleteEmbeddedItem(t) : [];
		}
		async updateEmbeddedItem(e, t) {
			if (e.parent) {
				if (!e.parent.canUserModify(game.user, "update")) {
					await this.#t(e.parent, "updateEmbeddedItem", {
						itemUuid: e.uuid,
						data: t
					});
					return;
				}
				await e.update(t);
			}
		}
		async #o({ itemUuid: e, data: t }) {
			let n = await fromUuid(e);
			n && await game.assistant.socket.updateEmbeddedItem(n, t);
		}
		async decreaseCondition(e, t, { value: n, forceRemove: r } = {}) {
			if (!e.canUserModify(game.user, "update")) return await this.#t(e, "decreaseCondition", {
				actorUuid: e.uuid,
				conditionSlug: t,
				options: {
					value: n,
					forceRemove: r
				}
			}) ?? [];
			let i = e.itemTypes.condition.filter((e) => e.slug === t && !e.isLocked);
			if (i.length !== 0) {
				let t = i.map((t) => ({
					actor: e.uuid,
					id: t.id,
					data: t.toObject()
				}));
				for (let t of i) {
					let i = t._source.system.value.value, a = ye(i) ? Math.max(i - (n ?? 1), 0) : null;
					a !== null && !r ? await game.pf2e.ConditionManager.updateConditionValue(t.id, e, a) : await t.delete();
				}
				return t;
			}
			return [];
		}
		async #s({ actorUuid: e, conditionSlug: t, options: n }) {
			let r = await fromUuid(e);
			return r ? await game.assistant.socket.decreaseCondition(r, t, n) : [];
		}
		async increaseCondition(e, t, { value: n, max: r = 2 ** 53 - 1 } = {}) {
			if (!e.canUserModify(game.user, "update")) return await this.#t(e, "increaseCondition", {
				actorUuid: e.uuid,
				conditionSlug: t,
				options: {
					value: n,
					max: r
				}
			}) ?? [];
			let i = e.itemTypes.condition.filter((e) => e.slug === t && !e.isLocked);
			if (i.length !== 0) {
				let t = i.map((t) => ({
					actor: e.uuid,
					id: t.id,
					data: t.toObject()
				}));
				for (let t of i) {
					let i = (() => {
						let e = t._source.system.value.value;
						if (e === null) return null;
						let i = n ?? 1;
						return Math.clamp(e + i, 1, r);
					})();
					i && await game.pf2e.ConditionManager.updateConditionValue(t.id, e, i);
				}
				return t;
			} else {
				let i = game.pf2e.ConditionManager.getCondition(t).toObject(), a = ye(i.system.value.value) ? Math.clamp(i.system.value.value, n ?? 1, r) : null;
				return i.system.value.value = a, (await e.createEmbeddedDocuments("Item", [i])).map((t) => ({
					actor: e.uuid,
					id: t.id
				}));
			}
		}
		async #c({ actorUuid: e, conditionSlug: t, options: n }) {
			let r = await fromUuid(e);
			return r ? await game.assistant.socket.increaseCondition(r, t, n) : [];
		}
		async toggleCondition(e, t, { active: n } = {}) {
			if (!e.canUserModify(game.user, "update")) return await this.#t(e, "toggleCondition", {
				actorUuid: e.uuid,
				conditionSlug: t,
				options: { active: n }
			}) ?? [];
			let r = e.hasCondition(t);
			return n ??= !r, n && !r ? await game.assistant.socket.increaseCondition(e, t) : n ? [] : !n && r ? await game.assistant.socket.decreaseCondition(e, t, { forceRemove: !0 }) : [];
		}
		async #l({ actorUuid: e, conditionSlug: t, options: n }) {
			let r = await fromUuid(e);
			return r ? await game.assistant.socket.toggleCondition(r, t, n) : [];
		}
		async addCondition(e, t, { value: n, persistent: r } = {}) {
			if (!e.canUserModify(game.user, "update")) return await this.#t(e, "addCondition", {
				actorUuid: e.uuid,
				conditionSlug: t,
				options: {
					value: n,
					persistent: r
				}
			}) ?? [];
			if (t === "persistent-damage" && r === void 0) return [];
			let i = game.pf2e.ConditionManager.getCondition(t).toObject(), a = ye(i.system.value.value) ? Math.clamp(i.system.value.value, n ?? 1, 2 ** 53 - 1) : null;
			return i.system.value.value = a, t === "persistent-damage" && (i.system.persistent = r), (await e.createEmbeddedDocuments("Item", [i])).map((t) => ({
				actor: e.uuid,
				id: t.id
			}));
		}
		async #u({ actorUuid: e, conditionSlug: t, options: n }) {
			let r = await fromUuid(e);
			return r ? await game.assistant.socket.addCondition(r, t, n) : [];
		}
		async removeCondition(e, t) {
			if (!e.canUserModify(game.user, "update")) return await this.#t(e, "removeCondition", {
				actorUuid: e.uuid,
				conditionSlug: t
			}) ?? [];
			let n = e.itemTypes.condition.filter((e) => e.slug === t && !e.isLocked), r = n.map((t) => ({
				actor: e.uuid,
				id: t.id,
				data: t.toObject()
			}));
			return n.forEach(async (e) => {
				await e.delete();
			}), r;
		}
		async #d({ actorUuid: e, conditionSlug: t }) {
			let n = await fromUuid(e);
			return n ? await game.assistant.socket.removeCondition(n, t) : [];
		}
		async rollSave(e, t, n) {
			if (!e.canUserModify(game.user, "update")) {
				await this.#t(e, "rollSave", {
					actorUuid: e.uuid,
					save: t,
					args: {
						identifier: n.identifier,
						action: n.action,
						token: n.token?.uuid,
						attackNumber: n.attackNumber,
						target: n.target?.uuid,
						origin: n.origin?.uuid,
						dc: n.dc,
						label: n.label,
						slug: n.slug,
						title: n.title,
						extraRollNodes: n.extraRollNotes,
						extraRollOptions: n.extraRollOptions,
						modifiers: n.modifiers,
						item: n.item?.uuid,
						messageMode: n.messageMode,
						skipDialog: n.skipDialog,
						rollTwice: n.rollTwice,
						traits: n.traits,
						damaging: n.damaging,
						melee: n.melee,
						createMessage: n.createMessage
					}
				});
				return;
			}
			await e.saves?.[t]?.roll({
				identifier: n.identifier,
				action: n.action,
				token: n.token,
				attackNumber: n.attackNumber,
				target: n.target,
				origin: n.origin,
				dc: n.dc,
				label: n.label,
				slug: n.slug,
				title: n.title,
				extraRollNotes: n.extraRollNotes,
				extraRollOptions: n.extraRollOptions,
				modifiers: n.modifiers?.map((e) => new game.pf2e.Modifier(e)),
				item: n.item,
				messageMode: n.messageMode,
				skipDialog: n.skipDialog,
				rollTwice: n.rollTwice,
				traits: n.traits,
				damaging: n.damaging,
				melee: n.melee,
				createMessage: n.createMessage
			});
		}
		async #f({ actorUuid: e, save: t, args: n }) {
			let r = await fromUuid(e);
			r && await game.assistant.socket.rollSave(r, t, {
				identifier: n.identifier,
				action: n.action,
				token: n.token ? await fromUuid(n.token) ?? void 0 : void 0,
				attackNumber: n.attackNumber,
				target: n.target ? await fromUuid(n.target) ?? void 0 : void 0,
				origin: n.origin ? await fromUuid(n.origin) ?? void 0 : void 0,
				dc: n.dc,
				label: n.label,
				slug: n.slug,
				title: n.title,
				extraRollNotes: n.extraRollNotes,
				extraRollOptions: n.extraRollOptions,
				modifiers: n.modifiers,
				item: n.item ? await fromUuid(n.item) ?? void 0 : void 0,
				messageMode: n.messageMode,
				skipDialog: n.skipDialog,
				rollTwice: n.rollTwice,
				traits: n.traits,
				damaging: n.damaging,
				melee: n.melee,
				createMessage: n.createMessage
			});
		}
		async deleteChatMessage(e) {
			e.canUserModify(game.user, "delete") || await this.#n("deleteChatMessage", { chatMessageUuid: e.uuid }), e.flags["pf2e-assistant"]?.process === !1 && await e.delete();
		}
		async #p({ chatMessageUuid: e }) {
			let t = await fromUuid(e);
			t && await game.assistant.socket.deleteChatMessage(t);
		}
		async updateChatMessage(e, t, n) {
			e.canUserModify(game.user, "update") || await this.#n("updateChatMessage", {
				chatMessageUuid: e.uuid,
				tokenId: t,
				reroll: n
			}), this.#e.add(() => {
				e.update({ flags: { "pf2e-assistant": {
					process: !1,
					reroll: { [t]: n }
				} } });
			});
		}
		async #m({ chatMessageUuid: e, tokenId: t, reroll: n }) {
			let r = await fromUuid(e);
			r && await game.assistant.socket.updateChatMessage(r, t, n);
		}
		async promptChoice(e, t) {
			if (!e.canUserModify(game.user, "update")) return await this.#t(e, "promptChoice", {
				actorUuid: e.uuid,
				param: {
					speaker: {
						actor: t.speaker.actor.uuid,
						token: t.speaker.token.uuid
					},
					item: t.item ? t.item.uuid : void 0,
					target: t.target ? {
						actor: t.target.actor.uuid,
						token: t.target.token.uuid
					} : void 0,
					data: t.data
				}
			}) ?? [];
			let n = {
				core: { canPopout: !1 },
				pf2e: {
					context: { target: t.target ? {
						actor: t.target.actor.uuid,
						token: t.target.token.uuid
					} : void 0 },
					origin: t.item ? t.item.getOriginData() : void 0,
					casting: t.item?.isOfType("spell") && t.item.spellcasting?.statistic ? {
						id: t.item.spellcasting.id,
						tradition: t.item.spellcasting.tradition ?? t.item.traditions.first() ?? "arcane",
						embeddedSpell: t.item.parentItem ? t.item.toObject() : void 0
					} : void 0
				},
				"pf2e-assistant": { process: !1 }
			}, r = await ChatMessage.create({
				content: await foundry.applications.handlebars.renderTemplate("modules/pf2e-assistant/templates/chat/prompt-choice.hbs", t.data),
				flags: n,
				speaker: ChatMessage.getSpeaker(t.speaker),
				whisper: game.users.filter((e) => t.speaker.actor.canUserModify(e, "update")).map((e) => e.id)
			});
			return r ? [r.uuid] : [];
		}
		async #h({ actorUuid: e, param: t }) {
			let n = await fromUuid(e);
			if (!n) return [];
			let r = {
				actor: await fromUuid(t.speaker.actor),
				token: await fromUuid(t.speaker.token)
			}, i = t.item ? await fromUuid(t.item) : void 0, a = t.target ? {
				actor: await fromUuid(t.target.actor),
				token: await fromUuid(t.target.token)
			} : void 0, o = t.data;
			return Be(r) ? await game.assistant.socket.promptChoice(n, {
				speaker: r,
				item: i || void 0,
				target: Be(a) ? a : void 0,
				data: o
			}) : [];
		}
	};
})), Hl = /* @__PURE__ */ n({
	actions: () => Wl,
	path: () => Ul
}), Ul, Wl, Gl = t((() => {
	$(), Q(), Ul = ["Actions", "Bon Mot"], Wl = [
		{
			trigger: "skill-check",
			predicate: ["action:bon-mot", "check:outcome:critical-success"],
			process: async (e) => {
				if (!e.speaker || e.targets.length !== 1 || !b(e.roll)) return;
				let t = h();
				return t.removeItem.push(...await game.assistant.socket.addEffect(e.targets[0].actor, "Compendium.pf2e.feat-effects.Item.GoSls6SKCFmSoDxT", {
					origin: e.speaker,
					target: e.targets[0],
					roll: e.roll
				})), t.addItem.push(...await game.assistant.socket.deleteEmbeddedItems(et(e.speaker.actor, ["effect-bon-mot"], {
					origin: e.speaker.actor,
					target: e.targets[0].actor,
					degreeOfSuccess: 0
				}))), t;
			}
		},
		{
			trigger: "skill-check",
			predicate: ["action:bon-mot", "check:outcome:success"],
			process: async (e) => {
				if (!e.speaker || e.targets.length !== 1 || !b(e.roll)) return;
				let t = h();
				return t.removeItem.push(...await game.assistant.socket.addEffect(e.targets[0].actor, "Compendium.pf2e.feat-effects.Item.GoSls6SKCFmSoDxT", {
					origin: e.speaker,
					target: e.targets[0],
					roll: e.roll
				})), t.addItem.push(...await game.assistant.socket.deleteEmbeddedItems(et(e.speaker.actor, ["effect-bon-mot"], {
					origin: e.speaker.actor,
					target: e.targets[0].actor,
					degreeOfSuccess: 0
				}))), t;
			}
		},
		{
			trigger: "skill-check",
			predicate: ["action:bon-mot", "check:outcome:critical-failure"],
			process: async (e) => {
				if (!e.speaker || e.targets.length !== 1 || !b(e.roll)) return;
				let t = h();
				return t.removeItem.push(...await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.feat-effects.Item.GoSls6SKCFmSoDxT", {
					origin: e.speaker,
					target: e.targets[0],
					roll: e.roll
				})), t;
			}
		}
	];
})), Kl = /* @__PURE__ */ n({
	actions: () => Jl,
	path: () => ql
}), ql, Jl, Yl = t((() => {
	$(), Q(), ql = ["Actions", "Demoralize"], Jl = [
		{
			trigger: "skill-check",
			predicate: ["action:demoralize", "check:outcome:critical-success"],
			process: async (e) => {
				if (!e.speaker || e.targets.length !== 1 || !b(e.roll)) return;
				let t = h();
				if (Ze(e.targets[0].actor, "effect-demoralize-immunity", { origin: e.speaker.actor })) {
					ui.notifications.warn(`The target is temporarily immune to further attempts to Demoralize from ${e.speaker.actor.name}.`);
					return;
				}
				return !e.targets[0].actor.traits.has("mindless") && !e.targets[0].actor.attributes.immunities.some((e) => e.type === "mental") && t.updateCondition.push(...await game.assistant.socket.addCondition(e.targets[0].actor, "frightened", { value: 2 }) ?? []), t.removeItem.push(...await game.assistant.socket.createEmbeddedItem(e.targets[0].actor, {
					name: "Effect: Demoralize Immunity",
					type: "effect",
					system: {
						description: { value: "<p>Granted when someone uses @UUID[Compendium.pf2e.actionspf2e.Item.2u915NdUyQan6uKF]{Demoralize} on you, rendering you temporarily immune to further attempts to Demoralize from them for the duration.</p>" },
						slug: "effect-demoralize-immunity",
						publication: {
							title: "Pathfinder Player Core",
							license: "ORC",
							remaster: !0
						},
						duration: {
							value: 10,
							unit: "minutes",
							expiry: "turn-start",
							sustained: !1
						},
						context: {
							origin: {
								actor: e.speaker.actor.uuid,
								token: e.speaker.token.uuid
							},
							target: {
								actor: e.targets[0].actor.uuid,
								token: e.targets[0].token.uuid
							},
							roll: {
								total: e.roll.total,
								degreeOfSuccess: e.roll.degreeOfSuccess
							}
						}
					},
					img: "icons/skills/social/intimidation-impressing.webp"
				})), t;
			}
		},
		{
			trigger: "skill-check",
			predicate: ["action:demoralize", "check:outcome:success"],
			process: async (e) => {
				if (!e.speaker || e.targets.length !== 1 || !b(e.roll)) return;
				let t = h();
				if (Ze(e.targets[0].actor, "effect-demoralize-immunity", { origin: e.speaker.actor })) {
					ui.notifications.warn(`The target is temporarily immune to further attempts to Demoralize from ${e.speaker.actor.name}.`);
					return;
				}
				return !e.targets[0].actor.traits.has("mindless") && !e.targets[0].actor.attributes.immunities.some((e) => e.type === "mental") && t.updateCondition.push(...await game.assistant.socket.addCondition(e.targets[0].actor, "frightened", { value: 1 }) ?? []), t.removeItem.push(...await game.assistant.socket.createEmbeddedItem(e.targets[0].actor, {
					name: "Effect: Demoralize Immunity",
					type: "effect",
					system: {
						description: { value: "<p>Granted when someone uses @UUID[Compendium.pf2e.actionspf2e.Item.2u915NdUyQan6uKF]{Demoralize} on you, rendering you temporarily immune to further attempts to Demoralize from them for the duration.</p>" },
						slug: "effect-demoralize-immunity",
						publication: {
							title: "Pathfinder Player Core",
							license: "ORC",
							remaster: !0
						},
						duration: {
							value: 10,
							unit: "minutes",
							expiry: "turn-start",
							sustained: !1
						},
						context: {
							origin: {
								actor: e.speaker.actor.uuid,
								token: e.speaker.token.uuid
							},
							target: {
								actor: e.targets[0].actor.uuid,
								token: e.targets[0].token.uuid
							},
							roll: {
								total: e.roll.total,
								degreeOfSuccess: e.roll.degreeOfSuccess
							}
						}
					},
					img: "icons/skills/social/intimidation-impressing.webp"
				})), t;
			}
		},
		{
			trigger: "skill-check",
			predicate: ["action:demoralize", { or: ["check:outcome:failure", "check:outcome:critical-failure"] }],
			process: async (e) => {
				if (!e.speaker || e.targets.length !== 1 || !b(e.roll)) return;
				let t = h();
				return t.removeItem.push(...await game.assistant.socket.createEmbeddedItem(e.targets[0].actor, {
					name: "Effect: Demoralize Immunity",
					type: "effect",
					system: {
						description: { value: "<p>Granted when someone uses @UUID[Compendium.pf2e.actionspf2e.Item.2u915NdUyQan6uKF]{Demoralize} on you, rendering you temporarily immune to further attempts to Demoralize from them for the duration.</p>" },
						slug: "effect-demoralize-immunity",
						publication: {
							title: "Pathfinder Player Core",
							license: "ORC",
							remaster: !0
						},
						duration: {
							value: 10,
							unit: "minutes",
							expiry: "turn-start",
							sustained: !1
						},
						context: {
							origin: {
								actor: e.speaker.actor.uuid,
								token: e.speaker.token.uuid
							},
							target: {
								actor: e.targets[0].actor.uuid,
								token: e.targets[0].token.uuid
							},
							roll: {
								total: e.roll.total,
								degreeOfSuccess: e.roll.degreeOfSuccess
							}
						}
					},
					img: "icons/skills/social/intimidation-impressing.webp"
				})), t;
			}
		}
	];
})), Xl = /* @__PURE__ */ n({
	actions: () => Ql,
	path: () => Zl
}), Zl, Ql, $l = t((() => {
	$(), Q(), Zl = ["Actions", "Disarm"], Ql = [{
		trigger: "skill-check",
		predicate: ["action:disarm", "check:outcome:success"],
		process: async (e) => {
			if (!e.speaker || e.targets.length !== 1 || !b(e.roll)) return;
			let t = h();
			return t.removeItem.push(...await game.assistant.socket.addEffect(e.targets[0].actor, "Compendium.pf2e.other-effects.Item.PuDS0DEq0CnaSIFV", {
				origin: e.speaker,
				target: e.targets[0],
				roll: e.roll
			})), t;
		}
	}, {
		trigger: "skill-check",
		predicate: ["action:disarm", "check:outcome:critical-failure"],
		process: async (e) => {
			if (!e.speaker || e.targets.length !== 1 || !b(e.roll)) return;
			let t = h();
			return t.removeItem.push(...await game.assistant.socket.createEmbeddedItem(e.speaker.actor, {
				name: "Effect: Disarm (Critical Failure)",
				type: "effect",
				system: {
					description: { value: `<p>You lose your balance and become @UUID[${Pl("Compendium.pf2e.conditionitems.Item.AJh5ex99aV6VTggg", "Compendium.sf2e.conditions.Item.AJh5ex99aV6VTggg")}]{Off-Guard} until the start of your next turn.</p>` },
					rules: [{
						key: "GrantItem",
						onDeleteActions: { grantee: "restrict" },
						uuid: Pl("Compendium.pf2e.conditionitems.Item.AJh5ex99aV6VTggg", "Compendium.sf2e.conditions.Item.AJh5ex99aV6VTggg")
					}],
					slug: "effect-disarm-critical-failure",
					publication: {
						title: "Pathfinder Player Core",
						license: "ORC",
						remaster: !0
					},
					duration: {
						value: 1,
						unit: "rounds",
						expiry: "turn-start",
						sustained: !1
					},
					context: {
						origin: {
							actor: e.speaker.actor.uuid,
							token: e.speaker.token.uuid
						},
						roll: {
							total: e.roll.total,
							degreeOfSuccess: e.roll.degreeOfSuccess
						}
					}
				},
				img: "icons/skills/melee/unarmed-punch-fist-white.webp"
			})), t;
		}
	}];
})), eu = /* @__PURE__ */ n({
	actions: () => nu,
	path: () => tu
}), tu, nu, ru = t((() => {
	tu = ["Actions", "Drop Prone"], nu = [{
		trigger: "action",
		predicate: ["action:drop-prone"],
		process: async (e) => {
			e.speaker && (e.speaker.actor.hasCondition("prone") || (await game.assistant.socket.addCondition(e.speaker.actor, "prone"), await ChatMessage.create({
				content: "Falls @UUID[Compendium.pf2e.conditionitems.Item.j91X7x0XSomq8d60]{Prone}.",
				flags: {
					pf2e: {},
					"pf2e-assistant": { process: !1 }
				},
				speaker: ChatMessage.getSpeaker(e.speaker)
			})));
		}
	}];
})), iu = /* @__PURE__ */ n({
	actions: () => ou,
	path: () => au
}), au, ou, su = t((() => {
	$(), Q(), au = ["Actions", "Feint"], ou = [
		{
			trigger: "skill-check",
			predicate: ["action:feint", "check:outcome:critical-success"],
			process: async (e) => {
				if (!e.speaker || e.targets.length !== 1 || !b(e.roll)) return;
				let t = h();
				return t.removeItem.push(...await game.assistant.socket.createEmbeddedItem(e.speaker.actor, {
					name: "Effect: Feint (Critical Success)",
					type: "effect",
					system: {
						description: { value: "<p>You throw your enemy's defenses against you entirely off. The target is @UUID[Compendium.pf2e.conditionitems.Item.AJh5ex99aV6VTggg]{Off-Guard} against melee attacks that you attempt against it until the end of your next turn.</p>" },
						rules: [{
							key: "TokenMark",
							slug: "feint",
							uuid: e.targets[0].token.uuid
						}, {
							key: "EphemeralEffect",
							predicate: ["target:mark:feint"],
							selectors: ["melee-attack-roll", "melee-damage"],
							uuid: "Compendium.pf2e.conditionitems.Item.AJh5ex99aV6VTggg"
						}],
						slug: "effect-feint-critical-success",
						publication: {
							title: "Pathfinder Player Core",
							license: "ORC",
							remaster: !0
						},
						duration: {
							value: 1,
							unit: "rounds",
							expiry: "turn-end",
							sustained: !1
						},
						context: null
					},
					img: "icons/skills/social/theft-pickpocket-bribery-brown.webp"
				})), t;
			}
		},
		{
			trigger: "skill-check",
			predicate: ["action:feint", "check:outcome:success"],
			process: async (e) => {
				if (!e.speaker || e.targets.length !== 1 || !b(e.roll)) return;
				let t = h();
				return t.removeItem.push(...await game.assistant.socket.createEmbeddedItem(e.speaker.actor, {
					name: "Effect: Feint (Success)",
					type: "effect",
					system: {
						description: { value: "<p>Your foe is fooled, but only momentarily. The target is @UUID[Compendium.pf2e.conditionitems.Item.AJh5ex99aV6VTggg]{Off-Guard} against the next melee attack that you attempt against it before the end of your current turn.</p>" },
						rules: [{
							key: "TokenMark",
							slug: "feint",
							uuid: e.targets[0].token.uuid
						}, {
							key: "EphemeralEffect",
							predicate: ["target:mark:feint"],
							selectors: ["melee-attack-roll", "melee-damage"],
							uuid: "Compendium.pf2e.conditionitems.Item.AJh5ex99aV6VTggg"
						}],
						slug: "effect-feint-success",
						publication: {
							title: "Pathfinder Player Core",
							license: "ORC",
							remaster: !0
						},
						duration: {
							value: 0,
							unit: "rounds",
							expiry: "turn-end",
							sustained: !1
						},
						context: {
							origin: {
								actor: e.speaker.actor.uuid,
								token: e.speaker.token.uuid
							},
							target: {
								actor: e.targets[0].actor.uuid,
								token: e.targets[0].token.uuid
							},
							roll: {
								total: e.roll.total,
								degreeOfSuccess: e.roll.degreeOfSuccess
							}
						}
					},
					img: "icons/skills/social/theft-pickpocket-bribery-brown.webp"
				})), t;
			}
		},
		{
			trigger: "skill-check",
			predicate: ["action:feint", "check:outcome:critical-failure"],
			process: async (e) => {
				if (!e.speaker || e.targets.length !== 1 || !b(e.roll)) return;
				let t = h();
				return t.removeItem.push(...await game.assistant.socket.createEmbeddedItem(e.targets[0].actor, {
					name: "Effect: Feint (Critical Failure)",
					type: "effect",
					system: {
						description: { value: "<p>Your foe's feint backfired, They are now @UUID[Compendium.pf2e.conditionitems.Item.AJh5ex99aV6VTggg]{Off-Guard} against your melee attacks until the end of their next turn.</p>" },
						rules: [{
							key: "TokenMark",
							slug: "feint",
							uuid: e.speaker.token.uuid
						}, {
							key: "EphemeralEffect",
							predicate: ["target:mark:feint"],
							selectors: ["melee-attack-roll", "melee-damage"],
							uuid: "Compendium.pf2e.conditionitems.Item.AJh5ex99aV6VTggg"
						}],
						slug: "effect-feint-critical-failure",
						publication: {
							title: "Pathfinder Player Core",
							license: "ORC",
							remaster: !0
						},
						duration: {
							value: 1,
							unit: "rounds",
							expiry: "turn-end",
							sustained: !1
						},
						context: {
							origin: {
								actor: e.speaker.actor.uuid,
								token: e.speaker.token.uuid
							},
							target: {
								actor: e.targets[0].actor.uuid,
								token: e.targets[0].token.uuid
							},
							roll: {
								total: e.roll.total,
								degreeOfSuccess: e.roll.degreeOfSuccess
							}
						}
					},
					img: "icons/skills/social/theft-pickpocket-bribery-brown.webp"
				})), t;
			}
		}
	];
})), cu = /* @__PURE__ */ n({
	actions: () => uu,
	path: () => lu
}), lu, uu, du = t((() => {
	$(), Q(), lu = ["Actions", "Grapple"], uu = [
		{
			trigger: "skill-check",
			predicate: ["action:grapple", "check:outcome:critical-success"],
			process: async (e) => {
				if (!e.speaker || e.targets.length !== 1 || !b(e.roll)) return;
				let t = h();
				return t.removeItem.push(...await game.assistant.socket.createEmbeddedItem(e.targets[0].actor, {
					name: "Effect: Grapple (Critical Success)",
					type: "effect",
					system: {
						description: { value: "<p>You are @UUID[Compendium.pf2e.conditionitems.Item.VcDeM8A5oI6VqhbM]{Restrained} until the end of your foe's next turn unless they move or you @UUID[Compendium.pf2e.actionspf2e.Item.SkZAQRkLLkmBQNB9]{Escape}.</p>" },
						rules: [{
							key: "GrantItem",
							onDeleteActions: { grantee: "restrict" },
							uuid: "Compendium.pf2e.conditionitems.Item.VcDeM8A5oI6VqhbM"
						}],
						slug: "effect-grapple-critical-success",
						publication: {
							title: "Pathfinder Player Core",
							license: "ORC",
							remaster: !0
						},
						duration: {
							value: 1,
							unit: "rounds",
							expiry: "turn-end",
							sustained: !1
						},
						context: {
							origin: {
								actor: e.speaker.actor.uuid,
								token: e.speaker.token.uuid,
								rollOptions: e.speaker.actor.getSelfRollOptions("origin")
							},
							target: {
								actor: e.targets[0].actor.uuid,
								token: e.targets[0].token.uuid
							},
							roll: {
								total: e.roll.total,
								degreeOfSuccess: e.roll.degreeOfSuccess
							}
						}
					},
					img: "icons/skills/melee/unarmed-punch-fist-white.webp"
				})), t;
			}
		},
		{
			trigger: "skill-check",
			predicate: ["action:grapple", "check:outcome:success"],
			process: async (e) => {
				if (!e.speaker || e.targets.length !== 1 || !b(e.roll)) return;
				let t = h();
				return t.removeItem.push(...await game.assistant.socket.createEmbeddedItem(e.targets[0].actor, {
					name: "Effect: Grapple (Success)",
					type: "effect",
					system: {
						description: { value: "<p>You are @UUID[Compendium.pf2e.conditionitems.Item.kWc1fhmv9LBiTuei]{Grabbed} until the end of your foe's next turn unless they move or you @UUID[Compendium.pf2e.actionspf2e.Item.SkZAQRkLLkmBQNB9]{Escape}.</p>" },
						rules: [{
							key: "GrantItem",
							onDeleteActions: { grantee: "restrict" },
							uuid: "Compendium.pf2e.conditionitems.Item.kWc1fhmv9LBiTuei"
						}],
						slug: "effect-grapple-success",
						publication: {
							title: "Pathfinder Player Core",
							license: "ORC",
							remaster: !0
						},
						duration: {
							value: 1,
							unit: "rounds",
							expiry: "turn-end",
							sustained: !1
						},
						context: {
							origin: {
								actor: e.speaker.actor.uuid,
								token: e.speaker.token.uuid,
								rollOptions: e.speaker.actor.getSelfRollOptions("origin")
							},
							target: {
								actor: e.targets[0].actor.uuid,
								token: e.targets[0].token.uuid
							},
							roll: {
								total: e.roll.total,
								degreeOfSuccess: e.roll.degreeOfSuccess
							}
						}
					},
					img: "icons/skills/melee/unarmed-punch-fist-white.webp"
				})), t;
			}
		},
		{
			trigger: "skill-check",
			predicate: ["action:grapple", "check:outcome:failure"],
			process: async (e) => {
				if (!e.speaker || e.targets.length !== 1 || !b(e.roll)) return;
				let t = h();
				return t.addItem.push(...await game.assistant.socket.deleteEmbeddedItems(et(e.targets[0].actor, ["effect-grapple-critical-success", "effect-grapple-success"], {
					origin: e.speaker.actor,
					target: e.targets[0].actor
				}))), t;
			}
		},
		{
			trigger: "skill-check",
			predicate: ["action:grapple", "check:outcome:critical-failure"],
			process: async (e) => {
				if (!e.speaker || e.targets.length !== 1 || !b(e.roll)) return;
				let t = h();
				return t.addItem.push(...await game.assistant.socket.deleteEmbeddedItems(et(e.targets[0].actor, ["effect-grapple-critical-success", "effect-grapple-success"], {
					origin: e.speaker.actor,
					target: e.targets[0].actor
				}))), t.deleteChatMessage.push(...await game.assistant.socket.promptChoice(e.targets[0].actor, {
					speaker: {
						actor: e.targets[0].actor,
						token: e.targets[0].token
					},
					target: {
						actor: e.speaker.actor,
						token: e.speaker.token
					},
					data: {
						description: "My foe has critically failed to grapple me, what should I do?",
						choices: [{
							label: "Grab Foe",
							value: "grapple-foe"
						}, {
							label: "Force Foe Prone",
							value: "prone-foe"
						}]
					}
				})), t;
			}
		},
		{
			trigger: "choice",
			predicate: ["choice:grapple-foe"],
			process: async (e) => {
				e.speaker && e.targets.length === 1 && await game.assistant.socket.createEmbeddedItem(e.targets[0].actor, {
					name: "Effect: Grapple (Success)",
					type: "effect",
					system: {
						description: { value: "<p>You are @UUID[Compendium.pf2e.conditionitems.Item.kWc1fhmv9LBiTuei]{Grabbed} until the end of your foe's next turn unless they move or you @UUID[Compendium.pf2e.actionspf2e.Item.SkZAQRkLLkmBQNB9]{Escape}.</p>" },
						rules: [{
							key: "GrantItem",
							onDeleteActions: { grantee: "restrict" },
							uuid: "Compendium.pf2e.conditionitems.Item.kWc1fhmv9LBiTuei"
						}],
						slug: "effect-grapple-success",
						publication: {
							title: "Pathfinder Player Core",
							license: "ORC",
							remaster: !0
						},
						duration: {
							value: 1,
							unit: "rounds",
							expiry: "turn-end",
							sustained: !1
						},
						context: {
							origin: {
								actor: e.speaker.actor.uuid,
								token: e.speaker.token.uuid,
								rollOptions: e.speaker.actor.getSelfRollOptions("origin")
							},
							target: {
								actor: e.targets[0].actor.uuid,
								token: e.targets[0].token.uuid
							}
						}
					},
					img: "icons/skills/melee/unarmed-punch-fist-white.webp"
				});
			}
		},
		{
			trigger: "choice",
			predicate: ["choice:prone-foe"],
			process: async (e) => {
				e.speaker && e.targets.length === 1 && await game.assistant.socket.toggleCondition(e.targets[0].actor, "prone", { active: !0 });
			}
		}
	];
})), fu = /* @__PURE__ */ n({
	actions: () => mu,
	path: () => pu
}), pu, mu, hu = t((() => {
	pu = ["Actions", "Kip Up"], mu = [{
		trigger: "action",
		predicate: ["action:kip-up"],
		process: async (e) => {
			e.speaker && e.speaker.actor.hasCondition("prone") && (await game.assistant.socket.removeCondition(e.speaker.actor, "prone"), await ChatMessage.create({
				content: "Stands up from @UUID[Compendium.pf2e.conditionitems.Item.j91X7x0XSomq8d60]{Prone}. This movement doesn't trigger reactions.",
				flags: {
					pf2e: {},
					"pf2e-assistant": { process: !1 }
				},
				speaker: ChatMessage.getSpeaker(e.speaker)
			}));
		}
	}];
})), gu = /* @__PURE__ */ n({
	actions: () => vu,
	path: () => _u
}), _u, vu, yu = t((() => {
	_u = ["Actions", "Stand"], vu = [{
		trigger: "action",
		predicate: ["action:stand"],
		process: async (e) => {
			e.speaker && e.speaker.actor.hasCondition("prone") && (await game.assistant.socket.removeCondition(e.speaker.actor, "prone"), await ChatMessage.create({
				content: "Stands up from @UUID[Compendium.pf2e.conditionitems.Item.j91X7x0XSomq8d60]{Prone}.",
				flags: {
					pf2e: {},
					"pf2e-assistant": { process: !1 }
				},
				speaker: ChatMessage.getSpeaker(e.speaker)
			}));
		}
	}];
})), bu = /* @__PURE__ */ n({
	actions: () => Su,
	path: () => xu
}), xu, Su, Cu = t((() => {
	$(), Q(), xu = ["Actions", "Trip"], Su = [
		{
			trigger: "skill-check",
			predicate: ["action:trip", "check:outcome:critical-success"],
			process: async (e) => {
				if (!e.speaker || e.targets.length !== 1) return;
				let t = h();
				t.updateCondition.push(...await game.assistant.socket.toggleCondition(e.targets[0].actor, "prone", { active: !0 }) ?? []);
				let n = game.pf2e.settings.metagame.breakdowns || !!e.speaker.actor.hasPlayerOwner, r = await (await new (v())("{1d6[bludgeoning]}", {}, { showBreakdown: n }).evaluate()).toMessage({
					flags: { "pf2e-assistant": { process: !1 } },
					speaker: ChatMessage.getSpeaker({
						actor: e.speaker.actor,
						token: e.speaker.token
					})
				}, { create: !0 });
				return t.deleteChatMessage.push(r.uuid), t;
			}
		},
		{
			trigger: "skill-check",
			predicate: ["action:trip", "check:outcome:success"],
			process: async (e) => {
				if (!e.speaker || e.targets.length !== 1) return;
				let t = h();
				return t.updateCondition.push(...await game.assistant.socket.toggleCondition(e.targets[0].actor, "prone", { active: !0 }) ?? []), t;
			}
		},
		{
			trigger: "skill-check",
			predicate: ["action:trip", "check:outcome:critical-failure"],
			process: async (e) => {
				if (!e.speaker || e.targets.length !== 1) return;
				let t = h();
				return t.updateCondition.push(...await game.assistant.socket.toggleCondition(e.speaker.actor, "prone", { active: !0 }) ?? []), t;
			}
		}
	];
})), wu = /* @__PURE__ */ n({
	actions: () => Eu,
	path: () => Tu
}), Tu, Eu, Du = t((() => {
	Q(), Tu = [
		"Class Features",
		"Champion",
		"Champion's Reaction"
	], Eu = [{
		trigger: "damage-taken",
		predicate: ["self:effect:champions-resistance"],
		process: async (e) => {
			e.speaker && await game.assistant.socket.deleteEmbeddedItems(et(e.speaker.actor, ["effect-champions-resistance"]));
		}
	}];
})), Ou = /* @__PURE__ */ n({
	actions: () => Au,
	path: () => ku
}), ku, Au, ju = t((() => {
	$(), Q(), ku = [
		"Class Features",
		"Monk",
		"Stunning Blows"
	], Au = [
		{
			trigger: "damage-roll",
			predicate: ["stunning-blows"],
			process: async (e) => {
				e.speaker && e.targets.length === 1 && game.assistant.socket.rollSave(e.targets[0].actor, "fortitude", {
					origin: e.speaker.actor,
					dc: g(e.speaker.actor),
					extraRollOptions: [
						"incapacitation",
						"item:trait:incapacitation",
						"stunning-blows"
					]
				});
			}
		},
		{
			trigger: "saving-throw",
			predicate: ["stunning-blows", "check:outcome:failure"],
			process: async (e) => {
				if (!e.speaker || !e.origin) return;
				let t = h();
				return t.updateCondition.push(...await game.assistant.socket.addCondition(e.speaker.actor, "stunned", { value: 1 }) ?? []), t;
			}
		},
		{
			trigger: "saving-throw",
			predicate: ["stunning-blows", "check:outcome:critical-failure"],
			process: async (e) => {
				if (!e.speaker || !e.origin) return;
				let t = h();
				return t.updateCondition.push(...await game.assistant.socket.addCondition(e.speaker.actor, "stunned", { value: 3 }) ?? []), t;
			}
		}
	];
})), Mu = /* @__PURE__ */ n({
	actions: () => Pu,
	path: () => Nu
}), Nu, Pu, Fu = t((() => {
	$(), Q(), Nu = [
		"Class Features",
		"Rogue",
		"Debilitating Strike"
	], Pu = [
		{
			trigger: "damage-roll",
			predicate: [{ or: ["debilitation:bloody", "second-debilitation:bloody"] }, "target:condition:off-guard"],
			selectors: ["strike-damage"],
			process: async (e) => {
				e.speaker && e.targets.length === 1 && await game.assistant.socket.addCondition(e.targets[0].actor, "persistent-damage", { persistent: {
					formula: "3d6",
					damageType: "bleed",
					dc: 15,
					criticalHit: !1
				} });
			}
		},
		{
			trigger: "damage-roll",
			predicate: [{ or: ["debilitation:clumsy", "second-debilitation:clumsy"] }, "target:condition:off-guard"],
			selectors: ["strike-damage"],
			process: async (e) => {
				e.speaker && e.targets.length === 1 && await game.assistant.socket.createEmbeddedItem(e.targets[0].actor, {
					name: "Effect: Vicious Debilitations (Clumsy)",
					type: "effect",
					system: {
						description: { value: "<p>Granted by @UUID[Compendium.pf2e.feats-srd.Item.zt5CWn3UrPViwaB3]{Vicious Debilitations}</p><p>The target becomes @UUID[Compendium.pf2e.conditionitems.Item.i3OJZU2nk64Df3xm]{Clumsy 1}.</p>" },
						publication: {
							title: "Pathfinder Player Core",
							license: "ORC",
							remaster: !0
						},
						rules: [{
							key: "GrantItem",
							onDeleteActions: { grantee: "restrict" },
							uuid: "Compendium.pf2e.conditionitems.Item.i3OJZU2nk64Df3xm"
						}],
						slug: "effect-vicious-debilitations-clumsy",
						duration: {
							value: 1,
							unit: "rounds",
							expiry: "turn-end",
							sustained: !1
						},
						context: {
							origin: {
								actor: e.speaker.actor.uuid,
								token: e.speaker.token.uuid,
								rollOptions: e.speaker.actor.getSelfRollOptions("origin")
							},
							target: {
								actor: e.targets[0].actor.uuid,
								token: e.targets[0].token.uuid
							}
						}
					},
					img: "icons/skills/melee/strike-dagger-white-orange.webp"
				});
			}
		},
		{
			trigger: "damage-roll",
			predicate: [{ or: ["debilitation:critical", "second-debilitation:critical"] }, "target:condition:off-guard"],
			selectors: ["strike-damage"],
			process: async (e) => {
				e.speaker && e.targets.length === 1 && game.assistant.socket.rollSave(e.targets[0].actor, "fortitude", {
					origin: e.speaker.actor,
					dc: g(e.speaker.actor),
					extraRollOptions: ["incapacitation", "critical-debilitation"],
					skipDialog: !0
				});
			}
		},
		{
			trigger: "saving-throw",
			predicate: ["critical-debilitation", "check:outcome:success"],
			process: async (e) => {
				if (!e.speaker || !e.origin || !b(e.roll)) return;
				let t = h();
				return t.removeItem.push(...await game.assistant.socket.createEmbeddedItem(e.speaker.actor, {
					name: "Effect: Critical Debilitations (Success)",
					type: "effect",
					system: {
						description: { value: "<p>Granted by @UUID[Compendium.pf2e.feats-srd.Item.lPTcPIshChHWz4J6]{Critical Debilitation}</p><p>The target is @UUID[Compendium.pf2e.conditionitems.Item.xYTAsEpcJE1Ccni3]{Slowed 1} until the end of your next turn.</p>" },
						publication: {
							title: "Pathfinder Player Core",
							license: "ORC",
							remaster: !0
						},
						rules: [{
							key: "GrantItem",
							onDeleteActions: { grantee: "restrict" },
							uuid: "Compendium.pf2e.conditionitems.Item.xYTAsEpcJE1Ccni3"
						}],
						slug: "effect-critical-debilitations-success",
						duration: {
							value: 1,
							unit: "rounds",
							expiry: "turn-end",
							sustained: !1
						},
						context: {
							origin: {
								actor: e.origin.actor.uuid,
								token: e.origin.token.uuid,
								rollOptions: e.origin.actor.getSelfRollOptions("origin")
							},
							target: {
								actor: e.speaker.actor.uuid,
								token: e.speaker.token.uuid
							},
							roll: {
								total: e.roll.total,
								degreeOfSuccess: e.roll.degreeOfSuccess
							}
						}
					},
					img: "icons/skills/melee/strike-dagger-blood-red.webp"
				})), t;
			}
		},
		{
			trigger: "saving-throw",
			predicate: ["critical-debilitation", "check:outcome:failure"],
			process: async (e) => {
				if (!e.speaker || !e.origin || !b(e.roll)) return;
				let t = h();
				return t.removeItem.push(...await game.assistant.socket.createEmbeddedItem(e.speaker.actor, {
					name: "Effect: Critical Debilitations (Failure)",
					type: "effect",
					system: {
						description: { value: "<p>Granted by @UUID[Compendium.pf2e.feats-srd.Item.lPTcPIshChHWz4J6]{Critical Debilitation}</p><p>The target is @UUID[Compendium.pf2e.conditionitems.Item.xYTAsEpcJE1Ccni3]{Slowed 2} until the end of your next turn.</p>" },
						publication: {
							title: "Pathfinder Player Core",
							license: "ORC",
							remaster: !0
						},
						rules: [{
							alterations: [{
								mode: "override",
								property: "badge-value",
								value: 2
							}],
							key: "GrantItem",
							onDeleteActions: { grantee: "restrict" },
							uuid: "Compendium.pf2e.conditionitems.Item.xYTAsEpcJE1Ccni3"
						}],
						slug: "effect-critical-debilitations-failure",
						duration: {
							value: 1,
							unit: "rounds",
							expiry: "turn-end",
							sustained: !1
						},
						context: {
							origin: {
								actor: e.origin.actor.uuid,
								token: e.origin.token.uuid,
								rollOptions: e.origin.actor.getSelfRollOptions("origin")
							},
							target: {
								actor: e.speaker.actor.uuid,
								token: e.speaker.token.uuid
							},
							roll: {
								total: e.roll.total,
								degreeOfSuccess: e.roll.degreeOfSuccess
							}
						}
					},
					img: "icons/skills/melee/strike-dagger-blood-red.webp"
				})), t;
			}
		},
		{
			trigger: "saving-throw",
			predicate: ["critical-debilitation", "check:outcome:critical-failure"],
			process: async (e) => {
				if (!e.speaker || !e.origin || !b(e.roll)) return;
				let t = h();
				return t.removeItem.push(...await game.assistant.socket.createEmbeddedItem(e.speaker.actor, {
					name: "Effect: Critical Debilitations (Critical Failure)",
					type: "effect",
					system: {
						description: { value: "<p>Granted by @UUID[Compendium.pf2e.feats-srd.Item.lPTcPIshChHWz4J6]{Critical Debilitation}</p><p>The target is @UUID[Compendium.pf2e.conditionitems.Item.6uEgoh53GbXuHpTF]{Paralyzed} until the end of your next turn.</p>" },
						publication: {
							title: "Pathfinder Player Core",
							license: "ORC",
							remaster: !0
						},
						rules: [{
							key: "GrantItem",
							onDeleteActions: { grantee: "restrict" },
							uuid: "Compendium.pf2e.conditionitems.Item.6uEgoh53GbXuHpTF"
						}],
						slug: "effect-critical-debilitations-critical-failure",
						duration: {
							value: 1,
							unit: "rounds",
							expiry: "turn-end",
							sustained: !1
						},
						context: {
							origin: {
								actor: e.origin.actor.uuid,
								token: e.origin.token.uuid,
								rollOptions: e.origin.actor.getSelfRollOptions("origin")
							},
							target: {
								actor: e.speaker.actor.uuid,
								token: e.speaker.token.uuid
							},
							roll: {
								total: e.roll.total,
								degreeOfSuccess: e.roll.degreeOfSuccess
							}
						}
					},
					img: "icons/skills/melee/strike-dagger-blood-red.webp"
				})), t;
			}
		},
		{
			trigger: "damage-roll",
			predicate: [{ or: ["debilitation:enfeebled", "second-debilitation:enfeebled"] }, "target:condition:off-guard"],
			selectors: ["strike-damage"],
			process: async (e) => {
				e.speaker && e.targets.length === 1 && await game.assistant.socket.createEmbeddedItem(e.targets[0].actor, {
					name: "Effect: Debilitating Strike (Enfeebled)",
					type: "effect",
					system: {
						description: { value: "<p>Granted by @UUID[Compendium.pf2e.classfeatures.Item.9SruVg2lZpNaYLOB]{Debilitating Strike}</p><p>The target becomes @UUID[Compendium.pf2e.conditionitems.Item.MIRkyAjyBeXivMa7]{Enfeebled 1}.</p>" },
						publication: {
							title: "Pathfinder Core Rulebook",
							license: "ORC",
							remaster: !0
						},
						rules: [{
							key: "GrantItem",
							onDeleteActions: { grantee: "restrict" },
							uuid: "Compendium.pf2e.conditionitems.Item.MIRkyAjyBeXivMa7"
						}],
						slug: "effect-debilitating-strike-enfeebled",
						duration: {
							value: 1,
							unit: "rounds",
							expiry: "turn-end",
							sustained: !1
						},
						context: {
							origin: {
								actor: e.speaker.actor.uuid,
								token: e.speaker.token.uuid,
								rollOptions: e.speaker.actor.getSelfRollOptions("origin")
							},
							target: {
								actor: e.targets[0].actor.uuid,
								token: e.targets[0].token.uuid
							}
						}
					},
					img: "icons/skills/melee/strike-sword-blood-red.webp"
				});
			}
		},
		{
			trigger: "damage-roll",
			predicate: [{ or: ["debilitation:off-guard", "second-debilitation:off-guard"] }, "target:condition:off-guard"],
			selectors: ["strike-damage"],
			process: async (e) => {
				e.speaker && e.targets.length === 1 && await game.assistant.socket.createEmbeddedItem(e.targets[0].actor, {
					name: "Effect: Precise Debilitations (Off-Guard)",
					type: "effect",
					system: {
						description: { value: "<p>Granted by @UUID[Compendium.pf2e.feats-srd.Item.wvJBIzgS298ZRp6w]{Precise Debilitations}</p><p>The target becomes @UUID[Compendium.pf2e.conditionitems.Item.AJh5ex99aV6VTggg]{Off-Guard}.</p>" },
						publication: {
							title: "Pathfinder Player Core",
							license: "ORC",
							remaster: !0
						},
						rules: [{
							key: "GrantItem",
							onDeleteActions: { grantee: "restrict" },
							uuid: "Compendium.pf2e.conditionitems.Item.AJh5ex99aV6VTggg"
						}],
						slug: "effect-precise-debilitations-off-guard",
						duration: {
							value: 1,
							unit: "rounds",
							expiry: "turn-end"
						},
						context: {
							origin: {
								actor: e.speaker.actor.uuid,
								token: e.speaker.token.uuid,
								rollOptions: e.speaker.actor.getSelfRollOptions("origin")
							},
							target: {
								actor: e.targets[0].actor.uuid,
								token: e.targets[0].token.uuid
							}
						}
					},
					img: "icons/skills/targeting/target-strike-triple-blue.webp"
				});
			}
		},
		{
			trigger: "damage-roll",
			predicate: [{ or: ["debilitation:precision-damage", "second-debilitation:precision-damage"] }, "target:condition:off-guard"],
			selectors: ["strike-damage"],
			process: async (e) => {
				e.speaker && e.targets.length === 1 && await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.feat-effects.Item.ZZXIUvZqqIxkMfYa", {
					origin: e.speaker,
					target: e.targets[0],
					tokenMark: {
						slug: "precise-debilitations",
						token: e.targets[0].token
					}
				});
			}
		},
		{
			trigger: "damage-roll",
			predicate: [{ or: ["debilitation:prevent-flanking", "second-debilitation:prevent-flanking"] }, "target:condition:off-guard"],
			selectors: ["strike-damage"],
			process: async (e) => {
				e.speaker && e.targets.length === 1 && (Qe(e.speaker.actor, "tactical-debilitations") ? await game.assistant.socket.addEffect(e.targets[0].actor, "Compendium.pf2e.feat-effects.Item.JUgx48XHMz4QM4Ir", {
					origin: e.speaker,
					target: e.targets[0]
				}) : await game.assistant.socket.addEffect(e.targets[0].actor, "Compendium.pf2e.feat-effects.Item.emSh1VxHVtTmt925", {
					origin: e.speaker,
					target: e.targets[0]
				}));
			}
		},
		{
			trigger: "damage-roll",
			predicate: [{ or: ["debilitation:prevent-reactions", "second-debilitation:prevent-reactions"] }, "target:condition:off-guard"],
			selectors: ["strike-damage"],
			process: async (e) => {
				e.speaker && e.targets.length === 1 && await game.assistant.socket.createEmbeddedItem(e.targets[0].actor, {
					name: "Effect: Tactical Debilitations (No Reactions)",
					type: "effect",
					system: {
						description: { value: "<p>Granted by @UUID[Compendium.pf2e.feats-srd.Item.Xdmz09kzLjIxWz9C]{Tactical Debilitations}</p><p>The target can't use reactions.</p>" },
						publication: {
							title: "Pathfinder Player Core",
							license: "ORC",
							remaster: !0
						},
						slug: "effect-tactical-debilitations-no-reactions",
						duration: {
							value: 1,
							unit: "rounds",
							expiry: "turn-end",
							sustained: !1
						},
						context: {
							origin: {
								actor: e.speaker.actor.uuid,
								token: e.speaker.token.uuid,
								rollOptions: e.speaker.actor.getSelfRollOptions("origin")
							},
							target: {
								actor: e.targets[0].actor.uuid,
								token: e.targets[0].token.uuid
							}
						}
					},
					img: Z("icons/spells/clairvoyance.webp")
				});
			}
		},
		{
			trigger: "damage-roll",
			predicate: [{ or: ["debilitation:prevent-step", "second-debilitation:prevent-step"] }, "target:condition:off-guard"],
			selectors: ["strike-damage"],
			process: async (e) => {
				e.speaker && e.targets.length === 1 && await game.assistant.socket.createEmbeddedItem(e.targets[0].actor, {
					name: "Effect: Eldritch Debilitations (No Steps)",
					type: "effect",
					system: {
						description: { value: "<p>Granted by @UUID[Compendium.pf2e.feats-srd.Item.kUv9eiP8Zhck70WZ]{Eldritch Debilitations}</p><p>The target can't @UUID[Compendium.pf2e.actionspf2e.Item.UHpkTuCtyaPqiCAB]{Step}.</p>" },
						publication: {
							title: "Pathfinder Advanced Player's Guide",
							license: "OGL",
							remaster: !1
						},
						slug: "effect-eldritch-debilitations-no-steps",
						duration: {
							value: 1,
							unit: "rounds",
							expiry: "turn-end",
							sustained: !1
						},
						context: {
							origin: {
								actor: e.speaker.actor.uuid,
								token: e.speaker.token.uuid,
								rollOptions: e.speaker.actor.getSelfRollOptions("origin")
							},
							target: {
								actor: e.targets[0].actor.uuid,
								token: e.targets[0].token.uuid
							}
						}
					},
					img: "icons/sundries/gaming/rune-card.webp"
				});
			}
		},
		{
			trigger: "damage-roll",
			predicate: [{ or: ["debilitation:reduce-cover", "second-debilitation:reduce-cover"] }, "target:condition:off-guard"],
			selectors: ["strike-damage"],
			process: async (e) => {
				e.speaker && e.targets.length === 1 && await game.assistant.socket.addEffect(e.targets[0].actor, "Compendium.pf2e.feat-effects.Item.4HNPQ6pnMDRe8jaN", {
					origin: e.speaker,
					target: e.targets[0]
				});
			}
		},
		{
			trigger: "damage-roll",
			predicate: [{ or: ["debilitation:speed-penalty", "second-debilitation:speed-penalty"] }, "target:condition:off-guard"],
			selectors: ["strike-damage"],
			process: async (e) => {
				e.speaker && e.targets.length === 1 && await game.assistant.socket.addEffect(e.targets[0].actor, "Compendium.pf2e.feat-effects.Item.yBTASi3FvnReAwHy", {
					origin: e.speaker,
					target: e.targets[0]
				});
			}
		},
		{
			trigger: "damage-roll",
			predicate: [{ or: ["debilitation:stupefied", "second-debilitation:stupefied"] }, "target:condition:off-guard"],
			selectors: ["strike-damage"],
			process: async (e) => {
				e.speaker && e.targets.length === 1 && await game.assistant.socket.createEmbeddedItem(e.targets[0].actor, {
					name: "Effect: Eldritch Debilitations (Stupefied)",
					type: "effect",
					system: {
						description: { value: "<p>Granted by @UUID[Compendium.pf2e.feats-srd.Item.kUv9eiP8Zhck70WZ]{Eldritch Debilitations}</p><p>The target is @UUID[Compendium.pf2e.conditionitems.Item.e1XGnhKNSQIm5IXg]{Stupefied 1}.</p>" },
						publication: {
							title: "Pathfinder Advanced Player's Guide",
							license: "OGL",
							remaster: !1
						},
						rules: [{
							key: "GrantItem",
							onDeleteActions: { grantee: "restrict" },
							uuid: "Compendium.pf2e.conditionitems.Item.e1XGnhKNSQIm5IXg"
						}],
						slug: "effect-eldritch-debilitations-stupefied",
						duration: {
							value: 1,
							unit: "rounds",
							expiry: "turn-end",
							sustained: !1
						},
						context: {
							origin: {
								actor: e.speaker.actor.uuid,
								token: e.speaker.token.uuid,
								rollOptions: e.speaker.actor.getSelfRollOptions("origin")
							},
							target: {
								actor: e.targets[0].actor.uuid,
								token: e.targets[0].token.uuid
							}
						}
					},
					img: "icons/sundries/gaming/rune-card.webp"
				});
			}
		},
		{
			trigger: "damage-roll",
			predicate: [{ or: ["debilitation:weakness", "second-debilitation:weakness"] }, "target:condition:off-guard"],
			selectors: ["strike-damage"],
			process: async (e) => {
				e.speaker && e.targets.length === 1 && await game.assistant.socket.promptChoice(e.targets[0].actor, {
					speaker: {
						actor: e.speaker.actor,
						token: e.speaker.token
					},
					target: {
						actor: e.targets[0].actor,
						token: e.targets[0].token
					},
					data: {
						description: "The target gains weakness 5 to your choice of bludgeoning, piercing, or slashing damage.",
						choices: [
							{
								label: "Bludgeoning",
								value: "vicious-debilitations-bludgeoning"
							},
							{
								label: "Piercing",
								value: "vicious-debilitations-piercing"
							},
							{
								label: "Slashing",
								value: "vicious-debilitations-slashing"
							}
						]
					}
				});
			}
		},
		{
			trigger: "choice",
			predicate: ["choice:vicious-debilitations-bludgeoning"],
			process: async (e) => {
				e.speaker && e.targets.length === 1 && await game.assistant.socket.addEffect(e.targets[0].actor, "Compendium.pf2e.feat-effects.Item.Rgt9hH3W1oh9dvku", {
					origin: e.speaker,
					target: e.targets[0],
					choiceSet: {
						flag: "viciousDebilitations",
						selection: "bludgeoning"
					}
				});
			}
		},
		{
			trigger: "choice",
			predicate: ["choice:vicious-debilitations-piercing"],
			process: async (e) => {
				e.speaker && e.targets.length === 1 && await game.assistant.socket.addEffect(e.targets[0].actor, "Compendium.pf2e.feat-effects.Item.Rgt9hH3W1oh9dvku", {
					origin: e.speaker,
					target: e.targets[0],
					choiceSet: {
						flag: "viciousDebilitations",
						selection: "piercing"
					}
				});
			}
		},
		{
			trigger: "choice",
			predicate: ["choice:vicious-debilitations-slashing"],
			process: async (e) => {
				e.speaker && e.targets.length === 1 && await game.assistant.socket.addEffect(e.targets[0].actor, "Compendium.pf2e.feat-effects.Item.Rgt9hH3W1oh9dvku", {
					origin: e.speaker,
					target: e.targets[0],
					choiceSet: {
						flag: "viciousDebilitations",
						selection: "slashing"
					}
				});
			}
		}
	];
})), Iu = /* @__PURE__ */ n({
	actions: () => Ru,
	path: () => Lu
}), Lu, Ru, zu = t((() => {
	$(), Q(), Lu = [
		"Class Features",
		"Swashbuckler",
		"Panache"
	], Ru = [{
		trigger: "skill-check",
		predicate: [
			"item:trait:bravado",
			{ not: "self:effect:panache" },
			{ or: ["check:outcome:critical-success", "check:outcome:success"] }
		],
		process: async (e) => {
			if (!e.speaker || !b(e.roll)) return;
			let t = h();
			return t.removeItem.push(...await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.feat-effects.Item.uBJsxCzNhje8m8jj", {
				origin: e.speaker,
				target: e.speaker,
				roll: e.roll
			})), t;
		}
	}, {
		trigger: "skill-check",
		predicate: [
			"item:trait:bravado",
			{ not: "self:effect:panache" },
			"check:outcome:failure"
		],
		process: async (e) => {
			if (!e.speaker || !b(e.roll)) return;
			let t = h();
			return t.removeItem.push(...await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.feat-effects.Item.uBJsxCzNhje8m8jj", {
				origin: e.speaker,
				target: e.speaker,
				roll: e.roll,
				duration: {
					expiry: "turn-end",
					sustained: !1,
					unit: "rounds",
					value: 1
				}
			})), t;
		}
	}];
})), Bu = /* @__PURE__ */ n({
	actions: () => Hu,
	path: () => Vu
}), Vu, Hu, Uu = t((() => {
	m(), Vu = ["Conditions", "Frightened"], Hu = [{
		trigger: "end-turn",
		predicate: ["self:condition:frightened"],
		process: async (e) => {
			if (e.speaker && !(game.modules.get("xdy-pf2e-workbench")?.active && game.settings.get("xdy-pf2e-workbench", "decreaseFrightenedConditionEachTurn"))) {
				let t = e.speaker.actor.getCondition("frightened", { all: !0 }), n = Math.max(...t.map((e) => ye(e.badge?.value) ? e.badge.value : 0));
				if (t.filter((e) => n === e.badge?.value).some((e) => e.isLocked)) return;
			}
		}
	}];
})), Wu = /* @__PURE__ */ n({
	actions: () => Ku,
	path: () => Gu
}), Gu, Ku, qu = t((() => {
	Q(), Gu = ["Critical Specializations", "Axe"], Ku = [{
		trigger: "damage-roll",
		predicate: [
			"check:outcome:critical-success",
			"critical-specialization",
			"item:group:axe",
			{ not: "item:rune:property:grievous" }
		],
		process: async (e) => {
			if (!e.speaker || e.targets.length !== 1 || !Ct(e.item) || !y(e.roll) || Ml(e.targets[0].token.scene, {
				enemyOf: e.speaker.actor,
				adjacentTo: e.targets[0].token,
				distanceTo: {
					target: e.speaker.token,
					distance: e.speaker.actor.getReach({
						action: "attack",
						weapon: e.item
					})
				},
				predicate: (t) => t.uuid !== e.targets[0]?.token.uuid
			}).length === 0) return;
			let t = Ht(e.roll, !1);
			t && await (await new (v())(t).evaluate()).toMessage({
				flags: {
					"pf2e-assistant": { process: !1 },
					"pf2e-toolbelt": { targetHelper: { targets: [] } }
				},
				flavor: kt([{
					title: "PF2E.Actor.Creature.CriticalSpecialization",
					text: "PF2E.Item.Weapon.CriticalSpecialization.axe"
				}]),
				speaker: ChatMessage.getSpeaker(e.speaker)
			});
		}
	}, {
		trigger: "damage-roll",
		predicate: [
			"check:outcome:critical-success",
			"critical-specialization",
			"item:group:axe",
			"item:rune:property:grievous"
		],
		process: async (e) => {
			if (!e.speaker || e.targets.length !== 1 || !Ct(e.item) || !y(e.roll) || Ml(e.targets[0].token.scene, {
				enemyOf: e.speaker.actor,
				adjacentTo: e.targets[0].token,
				distanceTo: {
					target: e.speaker.token,
					distance: e.speaker.actor.getReach({
						action: "attack",
						weapon: e.item
					})
				},
				predicate: (t) => t.uuid !== e.targets[0]?.token.uuid
			}).length === 0) return;
			let t = Ht(e.roll, !1);
			t && await (await new (v())(t).evaluate()).toMessage({
				flags: {
					"pf2e-assistant": { process: !1 },
					"pf2e-toolbelt": { targetHelper: { targets: [] } }
				},
				flavor: kt([{
					title: "PF2E.Actor.Creature.CriticalSpecialization",
					text: "PF2E.Item.Weapon.CriticalSpecialization.axe"
				}, {
					title: "PF2E.WeaponPropertyRune.grievous.Name",
					text: "PF2E.WeaponPropertyRune.grievous.Note.Axe"
				}]),
				speaker: ChatMessage.getSpeaker(e.speaker)
			});
		}
	}];
})), Ju = /* @__PURE__ */ n({
	actions: () => Xu,
	path: () => Yu
}), Yu, Xu, Zu = t((() => {
	Yu = ["Critical Specializations", "Bow"], Xu = [{
		trigger: "damage-roll",
		predicate: [
			"check:outcome:critical-success",
			"critical-specialization",
			"item:group:bow",
			{ not: "item:rune:property:grievous" }
		],
		process: async (e) => {
			e.speaker && e.targets.length === 1 && await game.assistant.socket.createEmbeddedItem(e.targets[0].actor, {
				name: "Effect: Critical Specialization (Bow)",
				type: "effect",
				system: {
					description: { value: "<p>The target is @UUID[Compendium.pf2e.conditionitems.Item.eIcWbB5o3pP6OIMe]{Immobilized} and must spend an @UUID[Compendium.pf2e.actionspf2e.Item.pvQ5rY2zrtPI614F]{Interact} action to attempt a @Check[athletics|dc:10|name:Pull the Missile Free|showDC:all] check to pull the missle free; it can't move from its space until it succeeds. The creature doesn't become stuck if it is incorporeal, is liquid, or could otherwise escape without effort.</p>" },
					rules: [{
						key: "GrantItem",
						onDeleteActions: { grantee: "restrict" },
						uuid: "Compendium.pf2e.conditionitems.Item.eIcWbB5o3pP6OIMe"
					}],
					slug: "effect-critical-specialization-bow",
					publication: {
						title: "Pathfinder Player Core",
						license: "ORC",
						remaster: !0
					},
					duration: {
						value: -1,
						unit: "unlimited",
						expiry: null,
						sustained: !1
					},
					context: {
						origin: {
							actor: e.speaker.actor.uuid,
							token: e.speaker.token.uuid,
							rollOptions: e.speaker.actor.getSelfRollOptions("origin")
						},
						target: {
							actor: e.targets[0].actor.uuid,
							token: e.targets[0].token.uuid
						}
					}
				},
				img: "icons/weapons/bows/longbow-recurve-leather-brown.webp"
			});
		}
	}, {
		trigger: "damage-roll",
		predicate: [
			"check:outcome:critical-success",
			"critical-specialization",
			"item:group:bow",
			"item:rune:property:grievous"
		],
		process: async (e) => {
			e.speaker && e.targets.length === 1 && await game.assistant.socket.createEmbeddedItem(e.targets[0].actor, {
				name: "Effect: Critical Specialization (Bow)",
				type: "effect",
				system: {
					description: { value: "<p>The target is @UUID[Compendium.pf2e.conditionitems.Item.eIcWbB5o3pP6OIMe]{Immobilized} and must spend an @UUID[Compendium.pf2e.actionspf2e.Item.pvQ5rY2zrtPI614F]{Interact} action to attempt a @Check[athletics|dc:20|name:Pull the Missile Free|showDC:all] check to pull the missle free; it can't move from its space until it succeeds. The creature doesn't become stuck if it is incorporeal, is liquid, or could otherwise escape without effort.</p>" },
					rules: [{
						key: "GrantItem",
						onDeleteActions: { grantee: "restrict" },
						uuid: "Compendium.pf2e.conditionitems.Item.eIcWbB5o3pP6OIMe"
					}],
					slug: "effect-critical-specialization-bow",
					publication: {
						title: "Pathfinder Player Core",
						license: "ORC",
						remaster: !0
					},
					duration: {
						value: -1,
						unit: "unlimited",
						expiry: null,
						sustained: !1
					},
					context: {
						origin: {
							actor: e.speaker.actor.uuid,
							token: e.speaker.token.uuid,
							rollOptions: e.speaker.actor.getSelfRollOptions("origin")
						},
						target: {
							actor: e.targets[0].actor.uuid,
							token: e.targets[0].token.uuid
						}
					}
				},
				img: "icons/weapons/bows/longbow-recurve-leather-brown.webp"
			});
		}
	}];
})), Qu = /* @__PURE__ */ n({
	actions: () => ed,
	path: () => $u
}), $u, ed, td = t((() => {
	$(), Q(), $u = ["Critical Specializations", "Brawling"], ed = [
		{
			trigger: "damage-roll",
			predicate: [
				"check:outcome:critical-success",
				"critical-specialization",
				"item:group:brawling",
				{ not: "item:rune:property:grievous" }
			],
			process: async (e) => {
				e.speaker && e.targets.length === 1 && game.assistant.socket.rollSave(e.targets[0].actor, "fortitude", {
					origin: e.speaker.actor,
					dc: g(e.speaker.actor),
					extraRollOptions: ["critical-specialization", "item:group:brawling"],
					skipDialog: !0
				});
			}
		},
		{
			trigger: "damage-roll",
			predicate: [
				"check:outcome:critical-success",
				"critical-specialization",
				"item:group:brawling",
				"item:rune:property:grievous"
			],
			process: async (e) => {
				e.speaker && e.targets.length === 1 && game.assistant.socket.rollSave(e.targets[0].actor, "fortitude", {
					origin: e.speaker.actor,
					dc: g(e.speaker.actor),
					extraRollOptions: [
						"critical-specialization",
						"item:group:brawling",
						"grievous"
					],
					modifiers: [{
						label: "Grievous",
						modifier: -4,
						type: "circumstance"
					}],
					skipDialog: !0
				});
			}
		},
		{
			trigger: "saving-throw",
			predicate: [
				{ or: ["check:outcome:failure", "check:outcome:critical-failure"] },
				"critical-specialization",
				"item:group:brawling"
			],
			process: async (e) => {
				if (!e.speaker || !e.origin || !b(e.roll)) return;
				let t = h();
				return t.removeItem.push(...await game.assistant.socket.createEmbeddedItem(e.speaker.actor, {
					name: "Effect: Critical Specialization (Brawling)",
					type: "effect",
					system: {
						description: { value: "<p>You are @UUID[Compendium.pf2e.conditionitems.Item.xYTAsEpcJE1Ccni3]{Slowed 1} until the end of your foe's next turn.</p>" },
						rules: [{
							key: "GrantItem",
							onDeleteActions: { grantee: "restrict" },
							uuid: "Compendium.pf2e.conditionitems.Item.xYTAsEpcJE1Ccni3"
						}],
						slug: "effect-critical-specialization-brawling",
						publication: {
							title: "Pathfinder Player Core",
							license: "ORC",
							remaster: !0
						},
						duration: {
							value: 1,
							unit: "rounds",
							expiry: "turn-end",
							sustained: !1
						},
						context: {
							origin: {
								actor: e.origin.actor.uuid,
								token: e.origin.token.uuid,
								rollOptions: e.origin.actor.getSelfRollOptions("origin")
							},
							target: {
								actor: e.speaker.actor.uuid,
								token: e.speaker.token.uuid
							},
							roll: {
								total: e.roll.total,
								degreeOfSuccess: e.roll.degreeOfSuccess
							}
						}
					},
					img: "icons/weapons/fist/fist-knuckles-brass.webp"
				})), t;
			}
		}
	];
})), nd = /* @__PURE__ */ n({
	actions: () => id,
	path: () => rd
}), rd, id, ad = t((() => {
	rd = ["Critical Specializations", "Crossbow"], id = [{
		trigger: "damage-roll",
		predicate: [
			"check:outcome:critical-success",
			"critical-specialization",
			"item:group:bow",
			"item:rune:property:grievous"
		],
		process: async (e) => {
			e.speaker && e.targets.length === 1 && await game.assistant.socket.createEmbeddedItem(e.targets[0].actor, {
				name: "Effect: Critical Specialization (Crossbow)",
				type: "effect",
				system: {
					description: { value: "<p>The target is @UUID[Compendium.pf2e.conditionitems.Item.eIcWbB5o3pP6OIMe]{Immobilized} and must spend an @UUID[Compendium.pf2e.actionspf2e.Item.pvQ5rY2zrtPI614F]{Interact} action to attempt a @Check[athletics|dc:10|name:Pull the Missile Free|showDC:all] check to pull the missle free; it can't move from its space until it succeeds. The creature doesn't become stuck if it is incorporeal, is liquid, or could otherwise escape without effort.</p>" },
					rules: [{
						key: "GrantItem",
						onDeleteActions: { grantee: "restrict" },
						uuid: "Compendium.pf2e.conditionitems.Item.eIcWbB5o3pP6OIMe"
					}],
					slug: "effect-critical-specialization-crossbow",
					publication: {
						title: "Pathfinder Player Core",
						license: "ORC",
						remaster: !0
					},
					duration: {
						value: -1,
						unit: "unlimited",
						expiry: null,
						sustained: !1
					},
					context: {
						origin: {
							actor: e.speaker.actor.uuid,
							token: e.speaker.token.uuid,
							rollOptions: e.speaker.actor.getSelfRollOptions("origin")
						},
						target: {
							actor: e.targets[0].actor.uuid,
							token: e.targets[0].token.uuid
						}
					}
				},
				img: "icons/weapons/crossbows/crossbow-simple-brown.webp"
			});
		}
	}];
})), od = /* @__PURE__ */ n({
	actions: () => cd,
	path: () => sd
}), sd, cd, ld = t((() => {
	$(), Q(), sd = ["Critical Specializations", "Firearm"], cd = [
		{
			trigger: "damage-roll",
			predicate: [
				"check:outcome:critical-success",
				"critical-specialization",
				"item:group:firearm",
				{ not: "item:rune:property:grievous" }
			],
			process: async (e) => {
				e.speaker && e.targets.length === 1 && game.assistant.socket.rollSave(e.targets[0].actor, "fortitude", {
					origin: e.speaker.actor,
					dc: g(e.speaker.actor),
					extraRollOptions: ["critical-specialization", "item:group:firearm"],
					skipDialog: !0
				});
			}
		},
		{
			trigger: "damage-roll",
			predicate: [
				"check:outcome:critical-success",
				"critical-specialization",
				"item:group:firearm",
				"item:rune:property:grievous"
			],
			process: async (e) => {
				e.speaker && e.targets.length === 1 && game.assistant.socket.rollSave(e.targets[0].actor, "fortitude", {
					origin: e.speaker.actor,
					dc: g(e.speaker.actor),
					extraRollOptions: [
						"critical-specialization",
						"item:group:firearm",
						"grievous"
					],
					modifiers: [{
						label: "Grievous",
						modifier: -4,
						type: "circumstance"
					}],
					skipDialog: !0
				});
			}
		},
		{
			trigger: "saving-throw",
			predicate: [
				{ or: ["check:outcome:failure", "check:outcome:critical-failure"] },
				"critical-specialization",
				"item:group:firearm"
			],
			process: async (e) => {
				if (!e.speaker || !e.origin) return;
				let t = h();
				return t.updateCondition.push(...await game.assistant.socket.addCondition(e.speaker.actor, "stunned", { value: 1 }) ?? []), t;
			}
		}
	];
})), ud = /* @__PURE__ */ n({
	actions: () => fd,
	path: () => dd
}), dd, fd, pd = t((() => {
	$(), Q(), dd = ["Critical Specializations", "Flail"], fd = [{
		trigger: "damage-roll",
		predicate: [
			"check:outcome:critical-success",
			"critical-specialization",
			"item:group:flail"
		],
		process: async (e) => {
			e.speaker && e.targets.length === 1 && game.assistant.socket.rollSave(e.targets[0].actor, "reflex", {
				origin: e.speaker.actor,
				dc: g(e.speaker.actor),
				extraRollOptions: ["critical-specialization", "item:group:flail"]
			});
		}
	}, {
		trigger: "saving-throw",
		predicate: [
			{ or: ["check:outcome:failure", "check:outcome:critical-failure"] },
			"critical-specialization",
			"item:group:flail"
		],
		process: async (e) => {
			if (!e.speaker || !e.origin) return;
			let t = h();
			return t.updateCondition.push(...await game.assistant.socket.toggleCondition(e.speaker.actor, "prone", { active: !0 }) ?? []), t;
		}
	}];
})), md = /* @__PURE__ */ n({
	actions: () => gd,
	path: () => hd
}), hd, gd, _d = t((() => {
	$(), Q(), hd = ["Critical Specializations", "Hammer"], gd = [{
		trigger: "damage-roll",
		predicate: [
			"check:outcome:critical-success",
			"critical-specialization",
			"item:group:hammer"
		],
		process: async (e) => {
			e.speaker && e.targets.length === 1 && game.assistant.socket.rollSave(e.targets[0].actor, "fortitude", {
				origin: e.speaker.actor,
				dc: g(e.speaker.actor),
				extraRollOptions: ["critical-specialization", "item:group:hammer"]
			});
		}
	}, {
		trigger: "saving-throw",
		predicate: [
			{ or: ["check:outcome:failure", "check:outcome:critical-failure"] },
			"critical-specialization",
			"item:group:hammer"
		],
		process: async (e) => {
			if (!e.speaker || !e.origin) return;
			let t = h();
			return t.updateCondition.push(...await game.assistant.socket.toggleCondition(e.speaker.actor, "prone", { active: !0 }) ?? []), t;
		}
	}];
})), vd = /* @__PURE__ */ n({
	actions: () => bd,
	path: () => yd
}), yd, bd, xd = t((() => {
	$(), Q(), yd = ["Critical Specializations", "Sling"], bd = [
		{
			trigger: "damage-roll",
			predicate: [
				"check:outcome:critical-success",
				"critical-specialization",
				"item:group:sling",
				{ not: "item:rune:property:grievous" }
			],
			process: async (e) => {
				e.speaker && e.targets.length === 1 && game.assistant.socket.rollSave(e.targets[0].actor, "reflex", {
					origin: e.speaker.actor,
					dc: g(e.speaker.actor),
					extraRollOptions: ["critical-specialization", "item:group:sling"]
				});
			}
		},
		{
			trigger: "damage-roll",
			predicate: [
				"check:outcome:critical-success",
				"critical-specialization",
				"item:group:sling",
				"item:rune:property:grievous"
			],
			process: async (e) => {
				e.speaker && e.targets.length === 1 && game.assistant.socket.rollSave(e.targets[0].actor, "reflex", {
					origin: e.speaker.actor,
					dc: g(e.speaker.actor),
					extraRollOptions: [
						"critical-specialization",
						"item:group:sling",
						"grievous"
					]
				});
			}
		},
		{
			trigger: "saving-throw",
			predicate: [
				{ or: ["check:outcome:failure", "check:outcome:critical-failure"] },
				"critical-specialization",
				"item:group:sling"
			],
			process: async (e) => {
				if (!e.speaker || !e.origin) return;
				let t = h();
				return t.updateCondition.push(...await game.assistant.socket.addCondition(e.speaker.actor, "stunned", { value: 1 }) ?? []), t;
			}
		},
		{
			trigger: "saving-throw",
			predicate: [
				{ or: ["check:outcome:failure", "check:outcome:critical-failure"] },
				"critical-specialization",
				"item:group:sling",
				"grievous"
			],
			process: async (e) => {
				if (!e.speaker || !e.origin) return;
				let t = h();
				return t.removeItem.push(...await game.assistant.socket.createEmbeddedItem(e.speaker.actor, {
					name: "Effect: Critical Specialization (Sling)",
					type: "effect",
					system: {
						description: { value: "<p>The target also takes a -10-foot status penalty to its Speed for 1 round if it failes the save.</p>" },
						rules: [{
							key: "FlatModifier",
							label: "Effect: Critical Specialization (Sling)",
							selector: ["speed"],
							type: "circumstance",
							value: -10
						}],
						slug: "effect-critical-specialization-sling",
						publication: {
							title: "Pathfinder Player Core",
							license: "ORC",
							remaster: !0
						},
						duration: {
							value: 1,
							unit: "rounds",
							expiry: "turn-start",
							sustained: !1
						},
						context: {
							origin: {
								actor: e.origin.actor.uuid,
								token: e.origin.token.uuid,
								rollOptions: e.origin.actor.getSelfRollOptions("origin")
							},
							target: {
								actor: e.speaker.actor.uuid,
								token: e.speaker.token.uuid
							}
						}
					},
					img: "icons/weapons/slings/slingshot-wood.webp"
				})), t;
			}
		}
	];
})), Sd = /* @__PURE__ */ n({
	actions: () => wd,
	path: () => Cd
}), Cd, wd, Td = t((() => {
	Cd = ["Critical Specializations", "Spear"], wd = [{
		trigger: "damage-roll",
		predicate: [
			"check:outcome:critical-success",
			"critical-specialization",
			"item:group:spear",
			{ not: "item:rune:property:grievous" }
		],
		process: async (e) => {
			e.speaker && e.targets.length === 1 && await game.assistant.socket.createEmbeddedItem(e.targets[0].actor, {
				name: "Effect: Critical Specialization (Spear)",
				type: "effect",
				system: {
					description: { value: "<p>The target is @UUID[Compendium.pf2e.conditionitems.Item.i3OJZU2nk64Df3xm]{Clumsy 1} until the start of your next turn.</p>" },
					rules: [{
						key: "GrantItem",
						onDeleteActions: { grantee: "restrict" },
						uuid: "Compendium.pf2e.conditionitems.Item.i3OJZU2nk64Df3xm"
					}],
					slug: "effect-critical-specialization-spear",
					publication: {
						title: "Pathfinder Player Core",
						license: "ORC",
						remaster: !0
					},
					duration: {
						value: 1,
						unit: "rounds",
						expiry: "turn-start",
						sustained: !1
					},
					context: {
						origin: {
							actor: e.speaker.actor.uuid,
							token: e.speaker.token.uuid,
							rollOptions: e.speaker.actor.getSelfRollOptions("origin")
						},
						target: {
							actor: e.targets[0].actor.uuid,
							token: e.targets[0].token.uuid
						}
					}
				},
				img: "icons/weapons/polearms/spear-flared-steel.webp"
			});
		}
	}, {
		trigger: "damage-roll",
		predicate: [
			"check:outcome:critical-success",
			"critical-specialization",
			"item:group:spear",
			"item:rune:property:grievous"
		],
		process: async (e) => {
			e.speaker && e.targets.length === 1 && await game.assistant.socket.createEmbeddedItem(e.targets[0].actor, {
				name: "Effect: Critical Specialization (Spear)",
				type: "effect",
				system: {
					description: { value: "<p>The target is @UUID[Compendium.pf2e.conditionitems.Item.i3OJZU2nk64Df3xm]{Clumsy 1} for 2 rounds.</p>" },
					rules: [{
						key: "GrantItem",
						onDeleteActions: { grantee: "restrict" },
						uuid: "Compendium.pf2e.conditionitems.Item.i3OJZU2nk64Df3xm"
					}],
					slug: "effect-critical-specialization-spear",
					publication: {
						title: "Pathfinder Player Core",
						license: "ORC",
						remaster: !0
					},
					duration: {
						value: 2,
						unit: "rounds",
						expiry: "turn-start",
						sustained: !1
					},
					context: {
						origin: {
							actor: e.speaker.actor.uuid,
							token: e.speaker.token.uuid,
							rollOptions: e.speaker.actor.getSelfRollOptions("origin")
						},
						target: {
							actor: e.targets[0].actor.uuid,
							token: e.targets[0].token.uuid
						}
					}
				},
				img: "icons/weapons/polearms/spear-flared-steel.webp"
			});
		}
	}];
})), Ed = /* @__PURE__ */ n({
	actions: () => Od,
	path: () => Dd
}), Dd, Od, kd = t((() => {
	Dd = ["Critical Specializations", "Sword"], Od = [{
		trigger: "damage-roll",
		predicate: [
			"check:outcome:critical-success",
			"critical-specialization",
			"item:group:sword",
			{ not: "item:rune:property:grievous" }
		],
		process: async (e) => {
			e.speaker && e.targets.length === 1 && await game.assistant.socket.createEmbeddedItem(e.targets[0].actor, {
				name: "Effect: Critical Specialization (Sword)",
				type: "effect",
				system: {
					description: { value: "<p>The target is made off-balance by your attack, becoming @UUID[Compendium.pf2e.conditionitems.Item.AJh5ex99aV6VTggg]{Off-Guard} until the start of your next turn.</p>" },
					rules: [{
						key: "GrantItem",
						onDeleteActions: { grantee: "restrict" },
						uuid: "Compendium.pf2e.conditionitems.Item.AJh5ex99aV6VTggg"
					}],
					slug: "effect-critical-specialization-sword",
					publication: {
						title: "Pathfinder Player Core",
						license: "ORC",
						remaster: !0
					},
					duration: {
						value: 1,
						unit: "rounds",
						expiry: "turn-start",
						sustained: !1
					},
					context: {
						origin: {
							actor: e.speaker.actor.uuid,
							token: e.speaker.token.uuid,
							rollOptions: e.speaker.actor.getSelfRollOptions("origin")
						},
						target: {
							actor: e.targets[0].actor.uuid,
							token: e.targets[0].token.uuid
						}
					}
				},
				img: "icons/weapons/swords/sword-guard-blue.webp"
			});
		}
	}, {
		trigger: "damage-roll",
		predicate: [
			"check:outcome:critical-success",
			"critical-specialization",
			"item:group:sword",
			"item:rune:property:grievous"
		],
		process: async (e) => {
			e.speaker && e.targets.length === 1 && await game.assistant.socket.createEmbeddedItem(e.targets[0].actor, {
				name: "Effect: Critical Specialization (Sword)",
				type: "effect",
				system: {
					description: { value: "<p>The target is made off-balance by your attack, becoming @UUID[Compendium.pf2e.conditionitems.Item.AJh5ex99aV6VTggg]{Off-Guard} until the end of your next turn.</p>" },
					rules: [{
						key: "GrantItem",
						onDeleteActions: { grantee: "restrict" },
						uuid: "Compendium.pf2e.conditionitems.Item.AJh5ex99aV6VTggg"
					}],
					slug: "effect-critical-specialization-sword",
					publication: {
						title: "Pathfinder Player Core",
						license: "ORC",
						remaster: !0
					},
					duration: {
						value: 1,
						unit: "rounds",
						expiry: "turn-end",
						sustained: !1
					},
					context: {
						origin: {
							actor: e.speaker.actor.uuid,
							token: e.speaker.token.uuid,
							rollOptions: e.speaker.actor.getSelfRollOptions("origin")
						},
						target: {
							actor: e.targets[0].actor.uuid,
							token: e.targets[0].token.uuid
						}
					}
				},
				img: "icons/weapons/swords/sword-guard-blue.webp"
			});
		}
	}];
})), Ad = /* @__PURE__ */ n({
	actions: () => Md,
	path: () => jd
}), jd, Md, Nd = t((() => {
	jd = ["Feats", "Accelerating Touch"], Md = [{
		trigger: "action",
		predicate: [
			"item:lay-on-hands",
			"feat:accelerating-touch",
			{ not: "target:mode:undead" }
		],
		process: async (e) => {
			e.item?.isOfType("spell") && e.speaker && e.targets.length === 1 && await game.assistant.socket.addEffect(e.targets[0].actor, "Compendium.pf2e.feat-effects.Item.BJldFHlx4kwMY3rX", {
				origin: e.speaker,
				item: e.item,
				target: e.targets[0]
			});
		}
	}];
})), Pd = /* @__PURE__ */ n({
	actions: () => Id,
	path: () => Fd
}), Fd, Id, Ld = t((() => {
	Fd = ["Feats", "Aura of Courage"], Id = [{
		trigger: "end-turn",
		predicate: ["champions-aura", "feat:aura-of-courage"],
		process: async (e) => {
			if (!e.speaker || !e.speaker.token.scene) return;
			let t = e.speaker.token.auras.get("champions-aura");
			if (t) {
				let n = e.speaker.token.scene.tokens.filter((t) => t.actor !== null && t.actor.isAllyOf(e.speaker.actor) && t.actor.uuid !== e.speaker.actor.uuid).filter((e) => t.containsToken(e));
				for (let e of n) e.actor && await game.assistant.socket.decreaseCondition(e.actor, "frightened");
			}
		}
	}];
})), Rd = /* @__PURE__ */ n({
	actions: () => Bd,
	path: () => zd
}), zd, Bd, Vd = t((() => {
	Q(), zd = ["Feats", "Crushing Grab"], Bd = [{
		trigger: "skill-check",
		predicate: [
			"action:grapple",
			"feat:crushing-grab",
			{ or: ["check:outcome:success", "check:outcome:critical-success"] }
		],
		process: async (e) => {
			e.speaker && e.targets.length === 1 && b(e.roll) && await (await new (v())(`{${e.speaker.actor.abilities?.str.mod ?? 0}[bludgeoning]}`).evaluate()).toMessage({
				flags: {
					"pf2e-assistant": { process: !1 },
					"pf2e-toolbelt": { targetHelper: { targets: [e.targets[0].token.uuid] } }
				},
				flavor: kt([{
					title: "Crushing Grab",
					text: "Like a powerful constrictor, you crush targets in your unyielding grasp. When you successfully @UUID[Compendium.pf2e.actionspf2e.Item.PMbdMWc2QroouFGD] a creature, you can deal bludgeoning damage to that creature equal to your Strength modifier. You can make this attack nonlethal with no penalty."
				}]),
				speaker: ChatMessage.getSpeaker(e.speaker)
			});
		}
	}];
})), Hd = /* @__PURE__ */ n({
	actions: () => Wd,
	path: () => Ud
}), Ud, Wd, Gd = t((() => {
	$(), Q(), Ud = ["Feats", "Terrified Retreat"], Wd = [{
		trigger: "skill-check",
		predicate: [
			"action:demoralize",
			"feat:terrified-retreat",
			"check:outcome:critical-success",
			{ gt: ["self:level", "target:level"] }
		],
		process: async (e) => {
			if (!e.speaker || e.targets.length !== 1 || !b(e.roll)) return;
			let t = h();
			return t.updateCondition.push(...await game.assistant.socket.addCondition(e.targets[0].actor, "fleeing")), t;
		}
	}];
})), Kd = /* @__PURE__ */ n({
	actions: () => Jd,
	path: () => qd
}), qd, Jd, Yd = t((() => {
	$(), Q(), qd = ["Feats", "Tumble Behind"], Jd = [{
		trigger: "skill-check",
		predicate: [
			"action:tumble-through",
			{ or: ["feat:tumble-behind-rogue", "feat:tumble-behind-swashbuckler"] },
			{ or: ["check:outcome:critical-success", "check:outcome:success"] }
		],
		process: async (e) => {
			if (!e.speaker || e.targets.length !== 1 || !b(e.roll)) return;
			let t = h();
			return t.removeItem.push(...await game.assistant.socket.createEmbeddedItem(e.speaker.actor, {
				name: "Effect: Tumble Behind",
				type: "effect",
				system: {
					description: { value: "<p>Your foe is @UUID[Compendium.pf2e.conditionitems.Item.AJh5ex99aV6VTggg]{Off-Guard} against the next attack you make before the end of your turn.</p>" },
					rules: [{
						key: "TokenMark",
						slug: "tumble-behind",
						uuid: e.targets[0].token.uuid
					}, {
						key: "EphemeralEffect",
						predicate: ["target:mark:tumble-behind"],
						selectors: ["attack-roll", "attack-damage"],
						uuid: "Compendium.pf2e.conditionitems.Item.AJh5ex99aV6VTggg"
					}],
					slug: "effect-tumble-behind",
					publication: {
						title: "Pathfinder Player Core & Pathfinder Player Core 2",
						license: "ORC",
						remaster: !0
					},
					duration: {
						value: 0,
						unit: "rounds",
						expiry: "turn-end",
						sustained: !1
					},
					context: {
						origin: {
							actor: e.speaker.actor.uuid,
							token: e.speaker.token.uuid,
							rollOptions: e.speaker.actor.getSelfRollOptions("origin")
						},
						target: {
							actor: e.targets[0].actor.uuid,
							token: e.targets[0].token.uuid
						},
						roll: {
							total: e.roll.total,
							degreeOfSuccess: e.roll.degreeOfSuccess
						}
					}
				},
				img: "icons/skills/movement/figure-running-gray.webp"
			})), t;
		}
	}];
})), Xd = /* @__PURE__ */ n({
	actions: () => Qd,
	path: () => Zd
}), Zd, Qd, $d = t((() => {
	Zd = [
		"Items",
		"Consumables",
		"Ablative Armor Plating"
	], Qd = [
		{
			trigger: "consumable",
			predicate: ["item:ablative-armor-plating-lesser"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.jlVYoiPVRRVGBj5G", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:ablative-armor-plating-moderate"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.mn39aML7EWKbttKT", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:ablative-armor-plating-greater"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.DlqcczhwjfaEf7G1", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:ablative-armor-plating-major"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.OMW71UJzYCUr4ubh", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:ablative-armor-plating-true"],
			process: async (e) => {
				if (!e.speaker) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.yt8meGTS7wLa6Fg2", {
					origin: e.speaker,
					item: e.item
				});
			}
		}
	];
})), ef = /* @__PURE__ */ n({
	actions: () => nf,
	path: () => tf
}), tf, nf, rf = t((() => {
	tf = [
		"Items",
		"Consumables",
		"Alloy Orb"
	], nf = [
		{
			trigger: "consumable",
			predicate: ["item:alloy-orb-low-grade"],
			process: async (e) => {
				e.speaker && e.item?.isOfType("consumable") && await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.equipment-effects.Item.9MU9d8tmJg3thkSc", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:alloy-orb-standard-grade"],
			process: async (e) => {
				e.speaker && e.item?.isOfType("consumable") && await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.equipment-effects.Item.GXEkmsf4Wre6zqG1", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:alloy-orb-exquisite-standard-grade"],
			process: async (e) => {
				e.speaker && e.item?.isOfType("consumable") && await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.equipment-effects.Item.BjF0eOao5UuOOKMP", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:alloy-orb-high-grade"],
			process: async (e) => {
				e.speaker && e.item?.isOfType("consumable") && await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.equipment-effects.Item.15qCI8sWaEwPkWiQ", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:alloy-orb-exquisite-high-grade"],
			process: async (e) => {
				e.speaker && e.item?.isOfType("consumable") && await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.equipment-effects.Item.o6GSF420m6cdTkZo", {
					origin: e.speaker,
					item: e.item
				});
			}
		}
	];
})), af = /* @__PURE__ */ n({
	actions: () => sf,
	path: () => of
}), of, sf, cf = t((() => {
	of = [
		"Items",
		"Consumables",
		"Amphisbaena Spittle"
	], sf = [{
		trigger: "consumable",
		predicate: ["item:amphisbaena-spittle"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.s0Qfrd9asEgT9wUL", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), lf = /* @__PURE__ */ n({
	actions: () => df,
	path: () => uf
}), uf, df, ff = t((() => {
	uf = [
		"Items",
		"Consumables",
		"Antidote"
	], df = [{
		trigger: "consumable",
		predicate: [{ or: [
			"item:antidote-lesser",
			"item:antidote-moderate",
			"item:antidote-greater",
			"item:antidote-major"
		] }],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.TjBxxlTvb6tJP1jS", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), pf = /* @__PURE__ */ n({
	actions: () => hf,
	path: () => mf
}), mf, hf, gf = t((() => {
	mf = [
		"Items",
		"Consumables",
		"Antifungal Salve"
	], hf = [{
		trigger: "consumable",
		predicate: [{ or: [
			"item:antifungal-salve-lesser",
			"item:antifungal-salve-moderate",
			"item:antifungal-salve-greater",
			"item:antifungal-salve-major"
		] }],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.MN7OSIN1oeRfV0h6", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), _f = /* @__PURE__ */ n({
	actions: () => yf,
	path: () => vf
}), vf, yf, bf = t((() => {
	vf = [
		"Items",
		"Consumables",
		"Antiplague"
	], yf = [{
		trigger: "consumable",
		predicate: [{ or: [
			"item:antiplague-lesser",
			"item:antiplague-moderate",
			"item:antiplague-greater",
			"item:antiplague-major"
		] }],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.mVgLCbZgafIylRzh", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), xf = /* @__PURE__ */ n({
	actions: () => Cf,
	path: () => Sf
}), Sf, Cf, wf = t((() => {
	Sf = [
		"Items",
		"Consumables",
		"Applereed Mutagen"
	], Cf = [
		{
			trigger: "consumable",
			predicate: ["item:applereed-mutagen-lesser"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.xVAdPzFaSvJXPMKv", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:applereed-mutagen-moderate"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.fYjvLx9DHIdCHdDx", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:applereed-mutagen-greater"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.tTBJ33UGtzXjWOJp", {
					origin: e.speaker,
					item: e.item
				});
			}
		}
	];
})), Tf = /* @__PURE__ */ n({
	actions: () => Df,
	path: () => Ef
}), Ef, Df, Of = t((() => {
	Ef = [
		"Items",
		"Consumables",
		"Apricot of Bestial Might"
	], Df = [{
		trigger: "consumable",
		predicate: ["item:apricot-of-bestial-might"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.WQ0DxUzMgAvo0zy9", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), kf = /* @__PURE__ */ n({
	actions: () => jf,
	path: () => Af
}), Af, jf, Mf = t((() => {
	Af = [
		"Items",
		"Consumables",
		"Arbor Wine"
	], jf = [{
		trigger: "consumable",
		predicate: [{ or: ["item:arbor-wine", "item:aged-arbor-wine"] }],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.QCqYiSIR9DVPAHgR", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), Nf = /* @__PURE__ */ n({
	actions: () => Ff,
	path: () => Pf
}), Pf, Ff, If = t((() => {
	Pf = [
		"Items",
		"Consumables",
		"Aromatic Ammunition"
	], Ff = [{
		trigger: "consumable",
		predicate: ["item:aromatic-ammunition"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.0qJEtpXWPb7JJBbY", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), Lf = /* @__PURE__ */ n({
	actions: () => zf,
	path: () => Rf
}), Rf, zf, Bf = t((() => {
	Rf = [
		"Items",
		"Consumables",
		"Ascendant Dragon Spirit"
	], zf = [{
		trigger: "consumable",
		predicate: ["item:ascendant-dragon-spirit"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.vJfRASrNBBYW6MEC", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), Vf = /* @__PURE__ */ n({
	actions: () => Uf,
	path: () => Hf
}), Hf, Uf, Wf = t((() => {
	Hf = [
		"Items",
		"Consumables",
		"Auric Noodles"
	], Uf = [{
		trigger: "consumable",
		predicate: ["item:auric-noodles"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.uijpoXaiKXcCYrSD", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), Gf = /* @__PURE__ */ n({
	actions: () => qf,
	path: () => Kf
}), Kf, qf, Jf = t((() => {
	Kf = [
		"Items",
		"Consumables",
		"Bendy-Arm Mutagen"
	], qf = [
		{
			trigger: "consumable",
			predicate: ["item:bendy-arm-mutagen-lesser"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.FDSl6DFblUjITOgP", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:bendy-arm-mutagen-moderate"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.IBu1RWKW5JX70nse", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:bendy-arm-mutagen-greater"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.HlUL7FmGLyS35Jpp", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:bendy-arm-mutagen-major"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.pZjJv8r28uASg6zp", {
					origin: e.speaker,
					item: e.item
				});
			}
		}
	];
})), Yf = /* @__PURE__ */ n({
	actions: () => Zf,
	path: () => Xf
}), Xf, Zf, Qf = t((() => {
	Xf = [
		"Items",
		"Consumables",
		"Bestial Mutagen"
	], Zf = [
		{
			trigger: "consumable",
			predicate: ["item:bestial-mutagen-lesser"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.fIpzDpuwLdIS4tW5", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:bestial-mutagen-moderate"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.xFQRiVU6h8EA6Lw9", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:bestial-mutagen-greater"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.kwD0wuW5Ndkc9YXB", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:bestial-mutagen-major"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.1ouUo8lLK6H79Rqh", {
					origin: e.speaker,
					item: e.item
				});
			}
		}
	];
})), $f = /* @__PURE__ */ n({
	actions: () => tp,
	path: () => ep
}), ep, tp, np = t((() => {
	ep = [
		"Items",
		"Consumables",
		"Blight Breath"
	], tp = [{
		trigger: "consumable",
		predicate: ["item:blight-breath"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.N2XR9v6Vo13SJZXV", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), rp = /* @__PURE__ */ n({
	actions: () => ap,
	path: () => ip
}), ip, ap, op = t((() => {
	ip = [
		"Items",
		"Consumables",
		"Blood Booster"
	], ap = [{
		trigger: "consumable",
		predicate: [{ or: [
			"item:blood-booster-lesser",
			"item:blood-booster-moderate",
			"item:blood-booster-greater"
		] }],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.LfhCO3rP5ImzPyNY", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), sp = /* @__PURE__ */ n({
	actions: () => lp,
	path: () => cp
}), cp, lp, up = t((() => {
	cp = [
		"Items",
		"Consumables",
		"Bloodhound Mask"
	], lp = [
		{
			trigger: "consumable",
			predicate: ["item:bloodhound-mask-lesser"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.S4MZzALqFoXJsr6o", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:bloodhound-mask-moderate"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.wFF0SZs1Hcf87Kk1", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:bloodhound-mask-greater"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.MI5OCkF9IXmD2lPF", {
					origin: e.speaker,
					item: e.item
				});
			}
		}
	];
})), dp = /* @__PURE__ */ n({
	actions: () => pp,
	path: () => fp
}), fp, pp, mp = t((() => {
	fp = [
		"Items",
		"Consumables",
		"Bomber's Eye Elixir"
	], pp = [{
		trigger: "consumable",
		predicate: [{ or: ["item:bombers-eye-elixir-lesser", "item:bombers-eye-elixir-greater"] }],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.HmpYVsyiCq8XDlop", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), hp = /* @__PURE__ */ n({
	actions: () => _p,
	path: () => gp
}), gp, _p, vp = t((() => {
	$(), Q(), gp = [
		"Items",
		"Consumables",
		"Bottled Lightning"
	], _p = [{
		trigger: "attack-roll",
		predicate: [{ or: ["check:outcome:success", "check:outcome:critical-success"] }, { or: [
			"item:bottled-lightning-lesser",
			"item:bottled-lightning-moderate",
			"item:bottled-lightning-greater",
			"item:bottled-lightning-major"
		] }],
		process: async (e) => {
			if (!e.speaker || e.targets.length !== 1 || !e.item?.isOfType("consumable") || !b(e.roll)) return;
			let t = h();
			return t.removeItem.push(...await game.assistant.socket.createEmbeddedItem(e.targets[0].actor, {
				name: "Effect: Bottled Lightning",
				type: "effect",
				system: {
					description: { value: "<p>Granted by @UUID[Compendium.pf2e.equipment-srd.Item.AFR01HVd7DcZvkpP]{Bottled Lightning (Lesser)}, @UUID[Compendium.pf2e.equipment-srd.Item.97QyNEOAyYLdGaYc]{Bottled Lightning (Moderate)}, @UUID[Compendium.pf2e.equipment-srd.Item.r2iTRbt1zpkAqHj2]{Bottled Lightning (Greater)}, @UUID[Compendium.pf2e.equipment-srd.Item.rpbbfkexLhtadBDV]{Bottled Lightning (Major)}</p><p>You are @UUID[Compendium.pf2e.conditionitems.Item.AJh5ex99aV6VTggg]{Off-Guard} until the start of your foe's next turn.</p>" },
					rules: [{
						key: "GrantItem",
						onDeleteActions: { grantee: "restrict" },
						uuid: "Compendium.pf2e.conditionitems.Item.AJh5ex99aV6VTggg"
					}],
					slug: "effect-bottled-lightning",
					publication: {
						title: "Pathfinder Player Core 2",
						license: "ORC",
						remaster: !0
					},
					duration: {
						value: 1,
						unit: "rounds",
						expiry: "turn-start",
						sustained: !1
					},
					context: {
						origin: {
							actor: e.speaker.actor.uuid,
							token: e.speaker.token.uuid,
							item: e.item.uuid
						},
						target: {
							actor: e.targets[0].actor.uuid,
							token: e.targets[0].token.uuid
						},
						roll: {
							total: e.roll.total,
							degreeOfSuccess: e.roll.degreeOfSuccess
						}
					}
				},
				img: Z("icons/equipment/alchemical-items/alchemical-bombs/bottled-lightning.webp")
			})), t;
		}
	}];
})), yp = /* @__PURE__ */ n({
	actions: () => xp,
	path: () => bp
}), bp, xp, Sp = t((() => {
	bp = [
		"Items",
		"Consumables",
		"Bottled Omen"
	], xp = [{
		trigger: "consumable",
		predicate: ["item:bottled-omen"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.pmWJxDjz3gqL29OM", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), Cp = /* @__PURE__ */ n({
	actions: () => Tp,
	path: () => wp
}), wp, Tp, Ep = t((() => {
	wp = [
		"Items",
		"Consumables",
		"Boulderhead Bock"
	], Tp = [{
		trigger: "consumable",
		predicate: ["item:boulderhead-bock"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.2C1HuKDQDGFZuv7l", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), Dp = /* @__PURE__ */ n({
	actions: () => kp,
	path: () => Op
}), Op, kp, Ap = t((() => {
	Op = [
		"Items",
		"Consumables",
		"Bravo's Brew"
	], kp = [{
		trigger: "consumable",
		predicate: [{ or: [
			"item:bravos-brew-lesser",
			"item:bravos-brew-moderate",
			"item:bravos-brew-greater"
		] }],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.eh7EqmDBDW30ShCu", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), jp = /* @__PURE__ */ n({
	actions: () => Np,
	path: () => Mp
}), Mp, Np, Pp = t((() => {
	Mp = [
		"Items",
		"Consumables",
		"Brewer's Regret"
	], Np = [{
		trigger: "consumable",
		predicate: [{ or: ["item:brewers-regret", "item:brewers-regret-greater"] }],
		process: async (e) => {
			if (!e.speaker) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.9e6iVkPpGqJYwMyb", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), Fp = /* @__PURE__ */ n({
	actions: () => Lp,
	path: () => Ip
}), Ip, Lp, Rp = t((() => {
	Ip = [
		"Items",
		"Consumables",
		"Bronze Bull Pendant"
	], Lp = [{
		trigger: "consumable",
		predicate: ["item:bronze-bull-pendant"],
		process: async (e) => {
			e.speaker && e.item?.isOfType("consumable") && await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.equipment-effects.Item.Cxa7MdgMCUoMqbKm", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), zp = /* @__PURE__ */ n({
	actions: () => Vp,
	path: () => Bp
}), Bp, Vp, Hp = t((() => {
	Q(), Bp = [
		"Items",
		"Consumables",
		"Cat's Eye Elixir"
	], Vp = [{
		trigger: "consumable",
		predicate: ["item:cats-eye-elixir"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.createEmbeddedItem(t.actor, {
				name: "Effect: Cat's Eye Elixir",
				type: "effect",
				system: {
					description: { value: "<p>For the next minute, you reduce the flat check to target @UUID[Compendium.pf2e.conditionitems.Item.iU0fEDdBp3rXpTMC]{Hidden} creatures to @Check[flat|showDC:all|dc:5], and you don't need to attempt a flat check to target @UUID[Compendium.pf2e.conditionitems.Item.DmAIPqOBomZ7H95W]{Concealed} creatures. These benefits apply only against creatures within 30 feet of you.</p>" },
					rules: game.modules.get("pf2e-flatcheck-helper")?.active ? [{
						key: "fc-ModifyFlatDC",
						type: "hidden",
						mode: "override",
						value: 5,
						predicate: [{ lte: ["target:distance", 30] }]
					}, {
						key: "fc-TreatAs",
						condition: "concealed",
						treatAs: "observed",
						mode: "downgrade",
						predicate: [{ lte: ["target:distance", 30] }]
					}] : [],
					slug: "effect-mistform-elixir-greater",
					publication: {
						title: "Pathfinder GM Core",
						license: "ORC",
						remaster: !0
					},
					level: { value: 2 },
					duration: {
						value: 1,
						unit: "minutes",
						expiry: "turn-start",
						sustained: !1
					},
					context: {
						origin: {
							actor: e.speaker.actor.uuid,
							token: e.speaker.token.uuid,
							item: e.item.uuid,
							rollOptions: _(e.speaker.actor, e.item)
						},
						target: {
							actor: t.actor.uuid,
							token: t.token.uuid
						}
					}
				},
				img: "icons/consumables/potions/potion-tube-corked-glowing-red.webp"
			});
		}
	}];
})), Up = /* @__PURE__ */ n({
	actions: () => Gp,
	path: () => Wp
}), Wp, Gp, Kp = t((() => {
	Wp = [
		"Items",
		"Consumables",
		"Cheetah's Elixir"
	], Gp = [
		{
			trigger: "consumable",
			predicate: ["item:cheetahs-elixir-lesser"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.lNWACCNe9RYgaFxb", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:cheetahs-elixir-moderate"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.j9zVZwRBVAcnpEkE", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:cheetahs-elixir-greater"],
			process: async (e) => {
				if (!e.speaker) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.PeuUz7JaabCgl6Yh", {
					origin: e.speaker,
					item: e.item
				});
			}
		}
	];
})), qp = /* @__PURE__ */ n({
	actions: () => Yp,
	path: () => Jp
}), Jp, Yp, Xp = t((() => {
	Jp = [
		"Items",
		"Consumables",
		"Chivalric Emblem"
	], Yp = [{
		trigger: "consumable",
		predicate: ["item:chivalric-emblem"],
		process: async (e) => {
			e.speaker && e.item?.isOfType("consumable") && await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.equipment-effects.Item.iIC9uGfg0rnYSRZ2", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), Zp = /* @__PURE__ */ n({
	actions: () => $p,
	path: () => Qp
}), Qp, $p, em = t((() => {
	Qp = [
		"Items",
		"Consumables",
		"Chromatic Jellyfish Oil"
	], $p = [{
		trigger: "consumable",
		predicate: [{ or: [
			"item:chromatic-jellyfish-oil-lesser",
			"item:chromatic-jellyfish-oil-moderate",
			"item:chromatic-jellyfish-oil-greater"
		] }],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.YUj20zJ4bNAoc0nJ", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), tm = /* @__PURE__ */ n({
	actions: () => rm,
	path: () => nm
}), nm, rm, im = t((() => {
	nm = [
		"Items",
		"Consumables",
		"Cinnamon Seers"
	], rm = [{
		trigger: "consumable",
		predicate: ["item:cinnamon-seers"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.Thd0XXhunYNk6jD7", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), am = /* @__PURE__ */ n({
	actions: () => sm,
	path: () => om
}), om, sm, cm = t((() => {
	om = [
		"Items",
		"Consumables",
		"Cloud Buns"
	], sm = [{
		trigger: "consumable",
		predicate: ["item:cloud-buns"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.YcHGSplvY5Vbqfc8", {
				origin: e.speaker,
				item: e.item
			});
		}
	}, {
		trigger: "consumable",
		predicate: ["item:cloud-buns-greater"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.bDcRrcC6VlkenVK4", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), lm = /* @__PURE__ */ n({
	actions: () => dm,
	path: () => um
}), um, dm, fm = t((() => {
	um = [
		"Items",
		"Consumables",
		"Cognitive Mutagen"
	], dm = [
		{
			trigger: "consumable",
			predicate: ["item:cognitive-mutagen-lesser"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.jaBMZKdoywOTrQvP", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:cognitive-mutagen-moderate"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.ztxW3lBPRcesF7wK", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:cognitive-mutagen-greater"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.qit1mLbJUyRTYcPU", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:cognitive-mutagen-major"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.RT1BxXrbbGgk40Ti", {
					origin: e.speaker,
					item: e.item
				});
			}
		}
	];
})), pm = /* @__PURE__ */ n({
	actions: () => hm,
	path: () => mm
}), mm, hm, gm = t((() => {
	mm = [
		"Items",
		"Consumables",
		"Cold Iron Blanch"
	], hm = [
		{
			trigger: "consumable",
			predicate: ["item:cold-iron-blanch-lesser"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.i5agc4lBE6GfeCXq", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:cold-iron-blanch-moderate"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.uK2vXk4WnleihqYI", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:cold-iron-blanch-greater"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.OFJVaPxdafc4ezWB", {
					origin: e.speaker,
					item: e.item
				});
			}
		}
	];
})), _m = /* @__PURE__ */ n({
	actions: () => ym,
	path: () => vm
}), vm, ym, bm = t((() => {
	vm = [
		"Items",
		"Consumables",
		"Covenant Tea"
	], ym = [{
		trigger: "consumable",
		predicate: ["item:covenant-tea"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.NAWKV7G4kBpPHWqL", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), xm = /* @__PURE__ */ n({
	actions: () => Cm,
	path: () => Sm
}), Sm, Cm, wm = t((() => {
	Sm = [
		"Items",
		"Consumables",
		"Darkvision Elixir"
	], Cm = [
		{
			trigger: "consumable",
			predicate: ["item:darkvision-elixir-lesser"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.7UL8belWmo7U5YGM", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:darkvision-elixir-moderate"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.bcxVvIbuZWOvsKcA", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:darkvision-elixir-greater"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.7vCenP9j6FuHRv5C", {
					origin: e.speaker,
					item: e.item
				});
			}
		}
	];
})), Tm = /* @__PURE__ */ n({
	actions: () => Dm,
	path: () => Em
}), Em, Dm, Om = t((() => {
	Em = [
		"Items",
		"Consumables",
		"Deadweight Mutagen"
	], Dm = [
		{
			trigger: "consumable",
			predicate: ["item:deadweight-mutagen-lesser"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.T7C0HaGu1Cn6Pt5j", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:deadweight-mutagen-moderate"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.xV8fmSn12652usGC", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:deadweight-mutagen-greater"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.IFHqrbQUOT2LzNDB", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:deadweight-mutagen-major"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.7eCUXYunzGVEsaKh", {
					origin: e.speaker,
					item: e.item
				});
			}
		}
	];
})), km = /* @__PURE__ */ n({
	actions: () => jm,
	path: () => Am
}), Am, jm, Mm = t((() => {
	Am = [
		"Items",
		"Consumables",
		"Delve Scale"
	], jm = [{
		trigger: "consumable",
		predicate: ["item:delve-scale"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.rQV8Azb3FeUJJ3fG", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), Nm = /* @__PURE__ */ n({
	actions: () => Fm,
	path: () => Pm
}), Pm, Fm, Im = t((() => {
	Pm = [
		"Items",
		"Consumables",
		"Demortification Oil"
	], Fm = [{
		trigger: "consumable",
		predicate: ["item:demortification-oil"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.U2RNTMsZJqtVryK7", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), Lm = /* @__PURE__ */ n({
	actions: () => zm,
	path: () => Rm
}), Rm, zm, Bm = t((() => {
	Rm = [
		"Items",
		"Consumables",
		"Diplomat's Charcuterie"
	], zm = [{
		trigger: "consumable",
		predicate: ["item:diplomats-charcuterie"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.inqXnzrqYzbUBuOj", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), Vm = /* @__PURE__ */ n({
	actions: () => Um,
	path: () => Hm
}), Hm, Um, Wm = t((() => {
	Hm = [
		"Items",
		"Consumables",
		"Discord Fulu"
	], Um = [{
		trigger: "consumable",
		predicate: ["item:discord-fulu"],
		process: async (e) => {
			e.speaker && e.item?.isOfType("consumable") && await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.equipment-effects.Item.b1y4mJG0CeNIuhc0", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), Gm = /* @__PURE__ */ n({
	actions: () => qm,
	path: () => Km
}), Km, qm, Jm = t((() => {
	Km = [
		"Items",
		"Consumables",
		"Dragon Breath Scale"
	], qm = [{
		trigger: "consumable",
		predicate: ["item:dragon-breath-scale"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.iqbWgT2TTJLGSkTL", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), Ym = /* @__PURE__ */ n({
	actions: () => Zm,
	path: () => Xm
}), Xm, Zm, Qm = t((() => {
	Xm = [
		"Items",
		"Consumables",
		"Dragon Pearl"
	], Zm = [{
		trigger: "consumable",
		predicate: ["item:dragon-pearl"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.APYXxkfZ9xf7HNf9", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), $m = /* @__PURE__ */ n({
	actions: () => th,
	path: () => eh
}), eh, th, nh = t((() => {
	eh = [
		"Items",
		"Consumables",
		"Dragon Throat Scale"
	], th = [{
		trigger: "consumable",
		predicate: ["item:dragon-throat-scale"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.Ou8TRYpigcZZEjC2", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), rh = /* @__PURE__ */ n({
	actions: () => ah,
	path: () => ih
}), ih, ah, oh = t((() => {
	ih = [
		"Items",
		"Consumables",
		"Dragonfly Fulu"
	], ah = [{
		trigger: "consumable",
		predicate: ["item:dragonfly-fulu"],
		process: async (e) => {
			e.speaker && e.item?.isOfType("consumable") && await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.equipment-effects.Item.X82D9UtXUbr4eLyj", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), sh = /* @__PURE__ */ n({
	actions: () => lh,
	path: () => ch
}), ch, lh, uh = t((() => {
	ch = [
		"Items",
		"Consumables",
		"Dragonfly Potion"
	], lh = [{
		trigger: "consumable",
		predicate: ["item:dragonfly-potion"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.9j1uTGBGAc7GIhjm", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), dh = /* @__PURE__ */ n({
	actions: () => ph,
	path: () => fh
}), fh, ph, mh = t((() => {
	fh = [
		"Items",
		"Consumables",
		"Dragon's Blood Pudding"
	], ph = [{
		trigger: "consumable",
		predicate: [{ or: ["item:dragons-blood-pudding-moderate", "item:dragons-blood-pudding-greater"] }],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.nbMEBxeqZIdOgysR", {
				origin: e.speaker,
				item: e.item
			});
		}
	}, {
		trigger: "consumable",
		predicate: ["item:dragons-blood-pudding-major"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.0YbNzbW0HSKtgStQ", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), hh = /* @__PURE__ */ n({
	actions: () => _h,
	path: () => gh
}), gh, _h, vh = t((() => {
	gh = [
		"Items",
		"Consumables",
		"Drakeheart Mutagen"
	], _h = [
		{
			trigger: "consumable",
			predicate: ["item:drakeheart-mutagen-lesser"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.GBBjw61g4ekJymT0", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:drakeheart-mutagen-moderate"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.BV8RPntjc9FUzD3g", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:drakeheart-mutagen-greater"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.qwoLV4awdezlEJ60", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:drakeheart-mutagen-major"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.vFOr2JAJxiVvvn2E", {
					origin: e.speaker,
					item: e.item
				});
			}
		}
	];
})), yh = /* @__PURE__ */ n({
	actions: () => xh,
	path: () => bh
}), bh, xh, Sh = t((() => {
	bh = [
		"Items",
		"Consumables",
		"Drowsy Sun Eye Drops"
	], xh = [{
		trigger: "consumable",
		predicate: ["item:drowsy-sun-eye-drops"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.vX8SE5SXnspdzMYZ", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), Ch = /* @__PURE__ */ n({
	actions: () => Th,
	path: () => wh
}), wh, Th, Eh = t((() => {
	wh = [
		"Items",
		"Consumables",
		"Eagle Eye Elixir"
	], Th = [{
		trigger: "consumable",
		predicate: [{ or: [
			"item:eagle-eye-elixir-lesser",
			"item:eagle-eye-elixir-moderate",
			"item:eagle-eye-elixir-greater",
			"item:eagle-eye-elixir-major"
		] }],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.VOSQ77DV4BnAkP7m", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), Dh = /* @__PURE__ */ n({
	actions: () => kh,
	path: () => Oh
}), Oh, kh, Ah = t((() => {
	Oh = [
		"Items",
		"Consumables",
		"Egg Cream Fizz"
	], kh = [{
		trigger: "consumable",
		predicate: ["item:egg-cream-fizz"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.C3VRrOCZndaBIE1q", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), jh = /* @__PURE__ */ n({
	actions: () => Nh,
	path: () => Mh
}), Mh, Nh, Ph = t((() => {
	Mh = [
		"Items",
		"Consumables",
		"Elixir of Life"
	], Nh = [{
		trigger: "consumable",
		predicate: [{ or: [
			"item:elixir-of-life-minor",
			"item:elixir-of-life-lesser",
			"item:elixir-of-life-moderate",
			"item:elixir-of-life-greater",
			"item:elixir-of-life-major",
			"item:elixir-of-life-true"
		] }],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.lPRuIRbu0rHBkoKY", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), Fh = /* @__PURE__ */ n({
	actions: () => Lh,
	path: () => Ih
}), Ih, Lh, Rh = t((() => {
	Ih = [
		"Items",
		"Consumables",
		"Elysian Dew"
	], Lh = [{
		trigger: "consumable",
		predicate: ["item:elysian-dew"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.jgNp0xehXyEp5CxY", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), zh = /* @__PURE__ */ n({
	actions: () => Vh,
	path: () => Bh
}), Bh, Vh, Hh = t((() => {
	Bh = [
		"Items",
		"Consumables",
		"Energized Cartridge"
	], Vh = [{
		trigger: "consumable",
		predicate: ["item:energized-cartridge"],
		process: async (e) => {
			e.speaker && e.item?.isOfType("consumable") && await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.equipment-effects.Item.UjXwDvLoSe9infGg", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), Uh = /* @__PURE__ */ n({
	actions: () => Gh,
	path: () => Wh
}), Wh, Gh, Kh = t((() => {
	Wh = [
		"Items",
		"Consumables",
		"Energizing Pill"
	], Gh = [{
		trigger: "consumable",
		predicate: ["item:energizing-pill"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.YsgABP1Ya0QJoiKt", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), qh = /* @__PURE__ */ n({
	actions: () => Yh,
	path: () => Jh
}), Jh, Yh, Xh = t((() => {
	Jh = [
		"Items",
		"Consumables",
		"Energizing Tea"
	], Yh = [{
		trigger: "consumable",
		predicate: ["item:energizing-tea"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.AJLURqXGLalmV9wN", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), Zh = /* @__PURE__ */ n({
	actions: () => $h,
	path: () => Qh
}), Qh, $h, eg = t((() => {
	Qh = [
		"Items",
		"Consumables",
		"Energy Mutagen"
	], $h = [
		{
			trigger: "consumable",
			predicate: ["item:energy-mutagen-lesser"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.C9Tnl6Q7Z5Sbw5EY", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:energy-mutagen-moderate"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.na2gf5mSkilFoHXk", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:energy-mutagen-greater"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.JbJykktAYMR4BRav", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:energy-mutagen-major"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.RIozNOntRJok5ZJt", {
					origin: e.speaker,
					item: e.item
				});
			}
		}
	];
})), tg = /* @__PURE__ */ n({
	actions: () => rg,
	path: () => ng
}), ng, rg, ig = t((() => {
	ng = [
		"Items",
		"Consumables",
		"Escape Fulu"
	], rg = [{
		trigger: "consumable",
		predicate: ["item:escape-fulu"],
		process: async (e) => {
			e.speaker && e.item?.isOfType("consumable") && await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.equipment-effects.Item.eWDmS4QTwmwPbBTb", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), ag = /* @__PURE__ */ n({
	actions: () => sg,
	path: () => og
}), og, sg, cg = t((() => {
	og = [
		"Items",
		"Consumables",
		"Ethereal Crescent"
	], sg = [{
		trigger: "consumable",
		predicate: [{ or: ["item:ethereal-crescent", "item:ethereal-crescent-greater"] }],
		process: async (e) => {
			e.speaker && e.item?.isOfType("consumable") && await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.equipment-effects.Item.Vk9Fwo0Xl1EF9fEF", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), lg = /* @__PURE__ */ n({
	actions: () => dg,
	path: () => ug
}), ug, dg, fg = t((() => {
	ug = [
		"Items",
		"Consumables",
		"Featherlight Fletching"
	], dg = [{
		trigger: "consumable",
		predicate: ["item:featherlight-fletching"],
		process: async (e) => {
			e.speaker && e.item?.isOfType("consumable") && await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.equipment-effects.Item.WXVOuzbFCs7rGpF9", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), pg = /* @__PURE__ */ n({
	actions: () => hg,
	path: () => mg
}), mg, hg, gg = t((() => {
	mg = [
		"Items",
		"Consumables",
		"Feyfoul"
	], hg = [
		{
			trigger: "consumable",
			predicate: ["item:feyfoul-lesser"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.Fngb79C1VDGLJ1EQ", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:feyfoul-moderate"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.IlTS2LTwYTyGXY49", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:feyfoul-greater"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.KFnOWk5e7nwXT8IE", {
					origin: e.speaker,
					item: e.item
				});
			}
		}
	];
})), _g = /* @__PURE__ */ n({
	actions: () => yg,
	path: () => vg
}), vg, yg, bg = t((() => {
	vg = [
		"Items",
		"Consumables",
		"Fire and Iceberg"
	], yg = [
		{
			trigger: "consumable",
			predicate: ["item:fire-and-iceberg"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.FOZXp7QQDnny1600", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:fire-and-iceberg-greater"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.VsHhBBLApZsOCJRL", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:fire-and-iceberg-major"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.yP45Rqu4jvCfXBkp", {
					origin: e.speaker,
					item: e.item
				});
			}
		}
	];
})), xg = /* @__PURE__ */ n({
	actions: () => Cg,
	path: () => Sg
}), Sg, Cg, wg = t((() => {
	Sg = [
		"Items",
		"Consumables",
		"Frost Breath"
	], Cg = [{
		trigger: "consumable",
		predicate: ["item:frost-breath"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.r4nq5JzY8U1lXsAY", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), Tg = /* @__PURE__ */ n({
	actions: () => Dg,
	path: () => Eg
}), Eg, Dg, Og = t((() => {
	Eg = [
		"Items",
		"Consumables",
		"Fury Cocktail"
	], Dg = [
		{
			trigger: "consumable",
			predicate: ["item:fury-cocktail-lesser"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.6Ao5NDu2J7qGwZxW", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:fury-cocktail-moderate"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.QaiSmpjSUhORG800", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:fury-cocktail-greater"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.6lzmzeWRo6mv6g2C", {
					origin: e.speaker,
					item: e.item
				});
			}
		}
	];
})), kg = /* @__PURE__ */ n({
	actions: () => jg,
	path: () => Ag
}), Ag, jg, Mg = t((() => {
	Ag = [
		"Items",
		"Consumables",
		"Galvanic Chew"
	], jg = [{
		trigger: "consumable",
		predicate: ["item:galvanic-chew"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.XGnaMNt1iBkOwENY", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), Ng = /* @__PURE__ */ n({
	actions: () => Fg,
	path: () => Pg
}), Pg, Fg, Ig = t((() => {
	Pg = [
		"Items",
		"Consumables",
		"Gecko Potion"
	], Fg = [{
		trigger: "consumable",
		predicate: ["item:gecko-potion"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.buJnkFBzL4e22ASp", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), Lg = /* @__PURE__ */ n({
	actions: () => zg,
	path: () => Rg
}), Rg, zg, Bg = t((() => {
	Rg = [
		"Items",
		"Consumables",
		"Ghost Fowl Porridge"
	], zg = [{
		trigger: "consumable",
		predicate: ["item:ghost-fowl-porridge"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.mq5J4p6vLenAuqsC", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), Vg = /* @__PURE__ */ n({
	actions: () => Ug,
	path: () => Hg
}), Hg, Ug, Wg = t((() => {
	Hg = [
		"Items",
		"Consumables",
		"Ghost Oil"
	], Ug = [{
		trigger: "consumable",
		predicate: ["item:ghost-oil"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.sk5LgfXestDKxCnK", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), Gg = /* @__PURE__ */ n({
	actions: () => qg,
	path: () => Kg
}), Kg, qg, Jg = t((() => {
	Kg = [
		"Items",
		"Consumables",
		"Ghostbane Fulu"
	], qg = [{
		trigger: "consumable",
		predicate: ["item:ghostbane-fulu"],
		process: async (e) => {
			e.speaker && e.item?.isOfType("consumable") && await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.equipment-effects.Item.02LNcIl70TTy9XS1", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), Yg = /* @__PURE__ */ n({
	actions: () => Zg,
	path: () => Xg
}), Xg, Zg, Qg = t((() => {
	Xg = [
		"Items",
		"Consumables",
		"Ginger Chew"
	], Zg = [{
		trigger: "consumable",
		predicate: ["item:ginger-chew"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.Prn00DwJJHbfIp74", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), $g = /* @__PURE__ */ n({
	actions: () => t_,
	path: () => e_
}), e_, t_, n_ = t((() => {
	e_ = [
		"Items",
		"Consumables",
		"Glow Rod"
	], t_ = [{
		trigger: "consumable",
		predicate: ["item:glow-rod"],
		process: async (e) => {
			e.speaker && e.item?.isOfType("consumable") && await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.equipment-effects.Item.BaosUEePGMqw0nWn", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), r_ = /* @__PURE__ */ n({
	actions: () => a_,
	path: () => i_
}), i_, a_, o_ = t((() => {
	i_ = [
		"Items",
		"Consumables",
		"Golden Breath Fulu"
	], a_ = [{
		trigger: "consumable",
		predicate: ["item:golden-breath-fulu"],
		process: async (e) => {
			e.speaker && e.item?.isOfType("consumable") && await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.equipment-effects.Item.hwrH1R1ecWI16liX", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), s_ = /* @__PURE__ */ n({
	actions: () => l_,
	path: () => c_
}), c_, l_, u_ = t((() => {
	c_ = [
		"Items",
		"Consumables",
		"Grindlegrub Steak"
	], l_ = [{
		trigger: "consumable",
		predicate: ["item:grindlegrub-steak"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.Eh4ezYhfUlNc775v", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), d_ = /* @__PURE__ */ n({
	actions: () => p_,
	path: () => f_
}), f_, p_, m_ = t((() => {
	f_ = [
		"Items",
		"Consumables",
		"Hand of Mercy"
	], p_ = [{
		trigger: "consumable",
		predicate: ["item:hand-of-mercy"],
		process: async (e) => {
			e.speaker && e.item?.isOfType("consumable") && await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.equipment-effects.Item.hyyVAOi1My9PKKqo", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), h_ = /* @__PURE__ */ n({
	actions: () => __,
	path: () => g_
}), g_, __, v_ = t((() => {
	g_ = [
		"Items",
		"Consumables",
		"Hydra Mutagen"
	], __ = [{
		trigger: "consumable",
		predicate: ["item:hydra-mutagen"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.jJ038JXfHdvDindo", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), y_ = /* @__PURE__ */ n({
	actions: () => x_,
	path: () => b_
}), b_, x_, S_ = t((() => {
	b_ = [
		"Items",
		"Consumables",
		"Ichthyosis Mutagen"
	], x_ = [{
		trigger: "consumable",
		predicate: ["item:ichthyosis-mutagen"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.hAdyMxuWJu7piQSS", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), C_ = /* @__PURE__ */ n({
	actions: () => T_,
	path: () => w_
}), w_, T_, E_ = t((() => {
	w_ = [
		"Items",
		"Consumables",
		"Impossible Cake"
	], T_ = [
		{
			trigger: "consumable",
			predicate: ["item:impossible-cake"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.H29JukjrSpHe5DXR", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:impossible-cake-greater"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.KAEWiyE8TQwofNj9", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:impossible-cake-major"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.ohMdE8BmQHuLs40b", {
					origin: e.speaker,
					item: e.item
				});
			}
		}
	];
})), D_ = /* @__PURE__ */ n({
	actions: () => k_,
	path: () => O_
}), O_, k_, A_ = t((() => {
	O_ = [
		"Items",
		"Consumables",
		"Insight Coffee"
	], k_ = [{
		trigger: "consumable",
		predicate: [{ or: [
			"item:insight-coffee-lesser",
			"item:insight-coffee-moderate",
			"item:insight-coffee-greater"
		] }],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.2qHgwcYtCg4csC2w", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), j_ = /* @__PURE__ */ n({
	actions: () => N_,
	path: () => M_
}), M_, N_, P_ = t((() => {
	M_ = [
		"Items",
		"Consumables",
		"Iron Medallion"
	], N_ = [{
		trigger: "consumable",
		predicate: ["item:iron-medallion"],
		process: async (e) => {
			e.speaker && e.item?.isOfType("consumable") && await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.equipment-effects.Item.xV9rME2l1f10mnF9", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), F_ = /* @__PURE__ */ n({
	actions: () => L_,
	path: () => I_
}), I_, L_, R_ = t((() => {
	I_ = [
		"Items",
		"Consumables",
		"Iron Wine"
	], L_ = [{
		trigger: "consumable",
		predicate: ["item:iron-wine"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.cUm05scv7getd79d", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), z_ = /* @__PURE__ */ n({
	actions: () => V_,
	path: () => B_
}), B_, V_, H_ = t((() => {
	B_ = [
		"Items",
		"Consumables",
		"Juggernaut Mutagen"
	], V_ = [
		{
			trigger: "consumable",
			predicate: ["item:juggernaut-mutagen-lesser"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.1l139A2Qik4lBHKO", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:juggernaut-mutagen-moderate"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.fUrZ4xcMJz0CfTyG", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:juggernaut-mutagen-greater"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.xLilBqqf34ZJYO9i", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:juggernaut-mutagen-major"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.2PNo8u4wxSbz5WEs", {
					origin: e.speaker,
					item: e.item
				});
			}
		}
	];
})), U_ = /* @__PURE__ */ n({
	actions: () => G_,
	path: () => W_
}), W_, G_, K_ = t((() => {
	W_ = [
		"Items",
		"Consumables",
		"Lastwall Soup"
	], G_ = [{
		trigger: "consumable",
		predicate: [{ or: [
			"item:lastwall-soup",
			"item:lastwall-soup-improved",
			"item:lastwall-soup-greater"
		] }],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.6A8jsLR7upLGuRiv", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), q_ = /* @__PURE__ */ n({
	actions: () => Y_,
	path: () => J_
}), J_, Y_, X_ = t((() => {
	J_ = [
		"Items",
		"Consumables",
		"Life-Boosting Oil"
	], Y_ = [{
		trigger: "consumable",
		predicate: [{ or: [
			"item:life-boosting-oil-lesser",
			"item:life-boosting-oil-moderate",
			"item:life-boosting-oil-greater",
			"item:life-boosting-oil-major"
		] }],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.49e80oS2x19jiGw9", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), Z_ = /* @__PURE__ */ n({
	actions: () => $_,
	path: () => Q_
}), Q_, $_, ev = t((() => {
	Q_ = [
		"Items",
		"Consumables",
		"Malleable Mixture"
	], $_ = [{
		trigger: "consumable",
		predicate: ["item:malleable-mixture-lesser"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.cozi2kUELY40Dcv3", {
				origin: e.speaker,
				item: e.item
			});
		}
	}, {
		trigger: "consumable",
		predicate: ["item:malleable-mixture-greater"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.kMPPl4AqFb6GclOL", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), tv = /* @__PURE__ */ n({
	actions: () => rv,
	path: () => nv
}), nv, rv, iv = t((() => {
	nv = [
		"Items",
		"Consumables",
		"Merciful Balm"
	], rv = [{
		trigger: "consumable",
		predicate: ["item:merciful-balm"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.ycKxoeZwg7g9Ivh5", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), av = /* @__PURE__ */ n({
	actions: () => sv,
	path: () => ov
}), ov, sv, cv = t((() => {
	ov = [
		"Items",
		"Consumables",
		"Mighty Counterweight"
	], sv = [{
		trigger: "consumable",
		predicate: ["item:mighty-counterweight"],
		process: async (e) => {
			e.speaker && e.item?.isOfType("consumable") && await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.equipment-effects.Item.P7cVUjF59y0XHmLw", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), lv = /* @__PURE__ */ n({
	actions: () => dv,
	path: () => uv
}), uv, dv, fv = t((() => {
	Q(), uv = [
		"Items",
		"Consumables",
		"Mistform Elixir"
	], dv = [
		{
			trigger: "consumable",
			predicate: ["item:mistform-elixir-lesser"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.createEmbeddedItem(t.actor, {
					name: "Effect: Mistform Elixir (Lesser)",
					type: "effect",
					system: {
						description: { value: "<p>Granted by @UUID[Compendium.pf2e.equipment-srd.Item.GyO89RBVjAKFxsFm]{Mistform Elixir (Lesser)}</p><p>A faint mist emanates from your skin, making you @UUID[Compendium.pf2e.conditionitems.Item.DmAIPqOBomZ7H95W]{Concealed} for 3 rounds.</p>" },
						rules: [{
							key: "GrantItem",
							onDeleteActions: { grantee: "restrict" },
							uuid: "Compendium.pf2e.conditionitems.Item.DmAIPqOBomZ7H95W"
						}],
						slug: "effect-mistform-elixir-lesser",
						publication: {
							title: "Pathfinder GM Core",
							license: "ORC",
							remaster: !0
						},
						level: { value: 4 },
						duration: {
							value: 3,
							unit: "rounds",
							expiry: "turn-start",
							sustained: !1
						},
						context: { origin: {
							actor: e.speaker.actor.uuid,
							token: e.speaker.token.uuid,
							item: e.item.uuid,
							rollOptions: _(e.speaker.actor, e.item)
						} }
					},
					img: "icons/consumables/potions/bottle-conical-corked-blue.webp"
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:mistform-elixir-moderate"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.createEmbeddedItem(t.actor, {
					name: "Effect: Mistform Elixir (Moderate)",
					type: "effect",
					system: {
						description: { value: "<p>Granted by @UUID[Compendium.pf2e.equipment-srd.Item.Ax8XcBd0rRd1Z7hN]{Mistform Elixir (Moderate)}</p><p>A faint mist emanates from your skin, making you @UUID[Compendium.pf2e.conditionitems.Item.DmAIPqOBomZ7H95W]{Concealed} for 1 minute.</p>" },
						rules: [{
							key: "GrantItem",
							onDeleteActions: { grantee: "restrict" },
							uuid: "Compendium.pf2e.conditionitems.Item.DmAIPqOBomZ7H95W"
						}],
						slug: "effect-mistform-elixir-moderate",
						publication: {
							title: "Pathfinder GM Core",
							license: "ORC",
							remaster: !0
						},
						level: { value: 6 },
						duration: {
							value: 1,
							unit: "minutes",
							expiry: "turn-start",
							sustained: !1
						},
						context: { origin: {
							actor: e.speaker.actor.uuid,
							token: e.speaker.token.uuid,
							item: e.item.uuid,
							rollOptions: _(e.speaker.actor, e.item)
						} }
					},
					img: "icons/consumables/potions/bottle-conical-corked-blue.webp"
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:mistform-elixir-greater"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.createEmbeddedItem(t.actor, {
					name: "Effect: Mistform Elixir (Greater)",
					type: "effect",
					system: {
						description: { value: "<p>Granted by @UUID[Compendium.pf2e.equipment-srd.Item.04giYigfDL5geu5f]{Mistform Elixir (Greater)}</p><p>A faint mist emanates from your skin, making you @UUID[Compendium.pf2e.conditionitems.Item.DmAIPqOBomZ7H95W]{Concealed} for 5 minutes.</p>" },
						rules: [{
							key: "GrantItem",
							onDeleteActions: { grantee: "restrict" },
							uuid: "Compendium.pf2e.conditionitems.Item.DmAIPqOBomZ7H95W"
						}],
						slug: "effect-mistform-elixir-greater",
						publication: {
							title: "Pathfinder GM Core",
							license: "ORC",
							remaster: !0
						},
						level: { value: 10 },
						duration: {
							value: 5,
							unit: "minutes",
							expiry: "turn-start",
							sustained: !1
						},
						context: { origin: {
							actor: e.speaker.actor.uuid,
							token: e.speaker.token.uuid,
							item: e.item.uuid,
							rollOptions: _(e.speaker.actor, e.item)
						} }
					},
					img: "icons/consumables/potions/bottle-conical-corked-blue.webp"
				});
			}
		}
	];
})), pv = /* @__PURE__ */ n({
	actions: () => hv,
	path: () => mv
}), mv, hv, gv = t((() => {
	mv = [
		"Items",
		"Consumables",
		"Morph Jewel"
	], hv = [{
		trigger: "consumable",
		predicate: ["item:morph-jewel"],
		process: async (e) => {
			e.speaker && e.item?.isOfType("consumable") && await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.equipment-effects.Item.ihZsJpB9v90EFQSG", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), _v = /* @__PURE__ */ n({
	actions: () => yv,
	path: () => vv
}), vv, yv, bv = t((() => {
	vv = [
		"Items",
		"Consumables",
		"Mortalis Coin"
	], yv = [{
		trigger: "consumable",
		predicate: ["item:mortalis-coin"],
		process: async (e) => {
			e.speaker && e.item?.isOfType("consumable") && await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.equipment-effects.Item.ocjUbOrpnJeGb3iP", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), xv = /* @__PURE__ */ n({
	actions: () => Cv,
	path: () => Sv
}), Sv, Cv, wv = t((() => {
	Sv = [
		"Items",
		"Consumables",
		"Necrotic Cap"
	], Cv = [{
		trigger: "consumable",
		predicate: [{ or: [
			"item:necrotic-cap-lesser",
			"item:necrotic-cap-moderate",
			"item:necrotic-cap-greater",
			"item:necrotic-cap-major"
		] }],
		process: async (e) => {
			e.speaker && e.item?.isOfType("consumable") && await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.equipment-effects.Item.wQDfwrrvfRxwG5CY", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), Tv = /* @__PURE__ */ n({
	actions: () => Dv,
	path: () => Ev
}), Ev, Dv, Ov = t((() => {
	Ev = [
		"Items",
		"Consumables",
		"Numbing Tonic"
	], Dv = [{
		trigger: "consumable",
		predicate: [{ or: [
			"item:numbing-tonic-minor",
			"item:numbing-tonic-lesser",
			"item:numbing-tonic-moderate",
			"item:numbing-tonic-greater",
			"item:numbing-tonic-major",
			"item:numbing-tonic-true"
		] }],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.rmVyC6Xb8O9WPvZz", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), kv = /* @__PURE__ */ n({
	actions: () => jv,
	path: () => Av
}), Av, jv, Mv = t((() => {
	Av = [
		"Items",
		"Consumables",
		"Ommatophoric Mutagen"
	], jv = [{
		trigger: "consumable",
		predicate: ["item:ommatophoric-mutagen"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.ZxT8Shp8NZaQRjlQ", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), Nv = /* @__PURE__ */ n({
	actions: () => Fv,
	path: () => Pv
}), Pv, Fv, Iv = t((() => {
	Pv = [
		"Items",
		"Consumables",
		"Pallesthetic Mutagen"
	], Fv = [{
		trigger: "consumable",
		predicate: ["item:pallesthetic-mutagen"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.weKnwX64fD5fuPjy", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), Lv = /* @__PURE__ */ n({
	actions: () => zv,
	path: () => Rv
}), Rv, zv, Bv = t((() => {
	Rv = [
		"Items",
		"Consumables",
		"Phasing Trine"
	], zv = [{
		trigger: "consumable",
		predicate: ["item:phasing-trine"],
		process: async (e) => {
			e.speaker && e.item?.isOfType("consumable") && await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.equipment-effects.Item.R5zy2SnV5GSgKeiL", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), Vv = /* @__PURE__ */ n({
	actions: () => Uv,
	path: () => Hv
}), Hv, Uv, Wv = t((() => {
	Hv = [
		"Items",
		"Consumables",
		"Phoenix Flask"
	], Uv = [{
		trigger: "consumable",
		predicate: ["item:phoenix-flask"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.z8FvdsKEY4lB2L8b", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), Gv = /* @__PURE__ */ n({
	actions: () => qv,
	path: () => Kv
}), Kv, qv, Jv = t((() => {
	Kv = [
		"Items",
		"Consumables",
		"Potency Crystal"
	], qv = [{
		trigger: "consumable",
		predicate: [{ or: [
			"item:potency-crystal",
			"item:potency-crystal-greater",
			"item:potency-crystal-major"
		] }],
		process: async (e) => {
			e.speaker && e.item?.isOfType("consumable") && await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.equipment-effects.Item.R5ugeFK3MPwkbv0s", {
				origin: e.speaker,
				item: e.item,
				target: e.speaker
			});
		}
	}];
})), Yv = /* @__PURE__ */ n({
	actions: () => Zv,
	path: () => Xv
}), Xv, Zv, Qv = t((() => {
	Xv = [
		"Items",
		"Consumables",
		"Potion of Acid Resistance"
	], Zv = [{
		trigger: "consumable",
		predicate: [{ or: [
			"item:potion-of-acid-resistance-lesser",
			"item:potion-of-acid-resistance-moderate",
			"item:potion-of-acid-resistance-greater"
		] }],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.k8Gt8zfPOhkYOn1A", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), $v = /* @__PURE__ */ n({
	actions: () => ty,
	path: () => ey
}), ey, ty, ny = t((() => {
	ey = [
		"Items",
		"Consumables",
		"Potion of Cold Resistance"
	], ty = [{
		trigger: "consumable",
		predicate: [{ or: [
			"item:potion-of-cold-resistance-lesser",
			"item:potion-of-cold-resistance-moderate",
			"item:potion-of-cold-resistance-greater"
		] }],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.Iw3CtHFpD3gGVjis", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), ry = /* @__PURE__ */ n({
	actions: () => ay,
	path: () => iy
}), iy, ay, oy = t((() => {
	iy = [
		"Items",
		"Consumables",
		"Potion of Electricity Resistance"
	], ay = [{
		trigger: "consumable",
		predicate: [{ or: [
			"item:potion-of-electricity-resistance-lesser",
			"item:potion-of-electricity-resistance-moderate",
			"item:potion-of-electricity-resistance-greater"
		] }],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.DbUEGIKxH6d1GgVw", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), sy = /* @__PURE__ */ n({
	actions: () => ly,
	path: () => cy
}), cy, ly, uy = t((() => {
	cy = [
		"Items",
		"Consumables",
		"Potion of Emergency Escape"
	], ly = [{
		trigger: "consumable",
		predicate: ["item:potion-of-emergency-escape"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.EZsHuGGSLER67CiM", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), dy = /* @__PURE__ */ n({
	actions: () => py,
	path: () => fy
}), fy, py, my = t((() => {
	fy = [
		"Items",
		"Consumables",
		"Potion of Fire Resistance"
	], py = [{
		trigger: "consumable",
		predicate: [{ or: [
			"item:potion-of-fire-resistance-lesser",
			"item:potion-of-fire-resistance-moderate",
			"item:potion-of-fire-resistance-greater"
		] }],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.34gtdURRTZMS5bDK", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), hy = /* @__PURE__ */ n({
	actions: () => _y,
	path: () => gy
}), gy, _y, vy = t((() => {
	gy = [
		"Items",
		"Consumables",
		"Potion of Flying"
	], _y = [{
		trigger: "consumable",
		predicate: ["item:potion-of-flying-standard"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.Mf9EBLhYmZerf0nS", {
				origin: e.speaker,
				item: e.item
			});
		}
	}, {
		trigger: "consumable",
		predicate: ["item:potion-of-flying-greater"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.Zdh2uO1vVYJmaqld", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), yy = /* @__PURE__ */ n({
	actions: () => xy,
	path: () => by
}), by, xy, Sy = t((() => {
	by = [
		"Items",
		"Consumables",
		"Potion of Minute Echoes"
	], xy = [{
		trigger: "consumable",
		predicate: ["item:potion-of-minute-echoes"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.HaZ5LB1wh1LY5wUy", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), Cy = /* @__PURE__ */ n({
	actions: () => Ty,
	path: () => wy
}), wy, Ty, Ey = t((() => {
	wy = [
		"Items",
		"Consumables",
		"Potion of Quickness"
	], Ty = [{
		trigger: "consumable",
		predicate: ["item:potion-of-quickness"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.spell-effects.Item.ElkXovNrHB0Doi6O", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), Dy = /* @__PURE__ */ n({
	actions: () => ky,
	path: () => Oy
}), Oy, ky, Ay = t((() => {
	Oy = [
		"Items",
		"Consumables",
		"Potion of Sonic Resistance"
	], ky = [{
		trigger: "consumable",
		predicate: [{ or: [
			"item:potion-of-sonic-resistance-lesser",
			"item:potion-of-sonic-resistance-moderate",
			"item:potion-of-sonic-resistance-greater"
		] }],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.nBGodDOQTCWBXjNd", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), jy = /* @__PURE__ */ n({
	actions: () => Ny,
	path: () => My
}), My, Ny, Py = t((() => {
	My = [
		"Items",
		"Consumables",
		"Potion of Stable Form"
	], Ny = [{
		trigger: "consumable",
		predicate: ["item:potion-of-stable-form"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.uVxs1qFMQsGWXNs6", {
				origin: e.speaker,
				item: e.item
			});
		}
	}, {
		trigger: "consumable",
		predicate: ["item:potion-of-stable-form-greater"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.W9tKQlA7tVIcAuzw", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), Fy = /* @__PURE__ */ n({
	actions: () => Ly,
	path: () => Iy
}), Iy, Ly, Ry = t((() => {
	Iy = [
		"Items",
		"Consumables",
		"Potion of Swimming"
	], Ly = [{
		trigger: "consumable",
		predicate: ["item:potion-of-swimming"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.W3xQBLj5hLOtb6Tj", {
				origin: e.speaker,
				item: e.item
			});
		}
	}, {
		trigger: "consumable",
		predicate: ["item:potion-of-swimming-greater"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.ModBoFdCi7YQU4gP", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), zy = /* @__PURE__ */ n({
	actions: () => Vy,
	path: () => By
}), By, Vy, Hy = t((() => {
	By = [
		"Items",
		"Consumables",
		"Predator's Claw"
	], Vy = [{
		trigger: "consumable",
		predicate: ["item:predators-claw"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.Vvl1GFfuvFzvOkbD", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), Uy = /* @__PURE__ */ n({
	actions: () => Gy,
	path: () => Wy
}), Wy, Gy, Ky = t((() => {
	Wy = [
		"Items",
		"Consumables",
		"Prey Mutagen"
	], Gy = [
		{
			trigger: "consumable",
			predicate: ["item:prey-mutagen-lesser"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.HLn9nQY4SAvyhaom", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:prey-mutagen-moderate"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.KUNJk4bsCRDzArdK", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:prey-mutagen-greater"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.JBWZkGkNikSlQfNr", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:prey-mutagen-major"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.JBWZkGkNikSlQfNr", {
					origin: e.speaker,
					item: e.item
				});
			}
		}
	];
})), qy = /* @__PURE__ */ n({
	actions: () => Yy,
	path: () => Jy
}), Jy, Yy, Xy = t((() => {
	Jy = [
		"Items",
		"Consumables",
		"Quicksilver Mutagen"
	], Yy = [
		{
			trigger: "consumable",
			predicate: ["item:quicksilver-mutagen-lesser"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.6PNLBIdlqqWNCFMy", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:quicksilver-mutagen-moderate"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.VPtsrpbP0AE642al", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:quicksilver-mutagen-greater"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.2Bds6d4UGQZqYSZM", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:quicksilver-mutagen-major"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.988f6NpOo4YzFzIr", {
					origin: e.speaker,
					item: e.item
				});
			}
		}
	];
})), Zy = /* @__PURE__ */ n({
	actions: () => $y,
	path: () => Qy
}), Qy, $y, eb = t((() => {
	Qy = [
		"Items",
		"Consumables",
		"Red-Rib Gill Mask"
	], $y = [
		{
			trigger: "consumable",
			predicate: ["item:red-rib-gill-mask-lesser"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.UDfVCATxdLdSzJYJ", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:red-rib-gill-mask-moderate"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.2iR5uP6vgPzgKKNO", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:red-rib-gill-mask-greater"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.QrsPKOFuo3qzgxw5", {
					origin: e.speaker,
					item: e.item
				});
			}
		}
	];
})), tb = /* @__PURE__ */ n({
	actions: () => rb,
	path: () => nb
}), nb, rb, ib = t((() => {
	nb = [
		"Items",
		"Consumables",
		"Sanguine Mutagen"
	], rb = [
		{
			trigger: "consumable",
			predicate: ["item:sanguine-mutagen-lesser"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.5VI5NCEhuorERXTi", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:sanguine-mutagen-moderate"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.sZPXKQACna6YDsVX", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:sanguine-mutagen-greater"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.FtBfE4yrbg9fxtxr", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:sanguine-mutagen-major"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.yY8vPNmDdQQ5d7n6", {
					origin: e.speaker,
					item: e.item
				});
			}
		}
	];
})), ab = /* @__PURE__ */ n({
	actions: () => sb,
	path: () => ob
}), ob, sb, cb = t((() => {
	ob = [
		"Items",
		"Consumables",
		"Sea Touch Elixir"
	], sb = [
		{
			trigger: "consumable",
			predicate: ["item:sea-touch-elixir-lesser"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.thOpQunbQr77XWdF", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:sea-touch-elixir-moderate"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.9keegq0GdS1eSrNr", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:sea-touch-elixir-greater"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.RRusoN3HEGnDO1Dg", {
					origin: e.speaker,
					item: e.item
				});
			}
		}
	];
})), lb = /* @__PURE__ */ n({
	actions: () => db,
	path: () => ub
}), ub, db, fb = t((() => {
	ub = [
		"Items",
		"Consumables",
		"Sense-Dulling Hood"
	], db = [{
		trigger: "consumable",
		predicate: ["item:sense-dulling-hood-lesser"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.L2l6FobAaPv13ypY", {
				origin: e.speaker,
				item: e.item
			});
		}
	}, {
		trigger: "consumable",
		predicate: ["item:sense-dulling-hood-greater"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.VDSJn9vhVRh5V4Kq", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), pb = /* @__PURE__ */ n({
	actions: () => hb,
	path: () => mb
}), mb, hb, gb = t((() => {
	mb = [
		"Items",
		"Consumables",
		"Serene Mutagen"
	], hb = [
		{
			trigger: "consumable",
			predicate: ["item:serene-mutagen-lesser"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.5xgapIXn5DwbXHKh", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:serene-mutagen-moderate"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.yrbz0rZzp8aZEqbv", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:serene-mutagen-greater"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.jw6Tr9FbErjLAFLQ", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:serene-mutagen-major"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.t7VUJHSUT6bkVUjg", {
					origin: e.speaker,
					item: e.item
				});
			}
		}
	];
})), _b = /* @__PURE__ */ n({
	actions: () => yb,
	path: () => vb
}), vb, yb, bb = t((() => {
	vb = [
		"Items",
		"Consumables",
		"Shielding Salve"
	], yb = [{
		trigger: "consumable",
		predicate: ["item:shielding-salve"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.16tOZk4qy329s2aK", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), xb = /* @__PURE__ */ n({
	actions: () => Cb,
	path: () => Sb
}), Sb, Cb, wb = t((() => {
	Q(), Sb = [
		"Items",
		"Consumables",
		"Shining Ammunition"
	], Cb = [{
		trigger: "attack-roll",
		predicate: ["item:ammo:slug:shining-ammunition", { or: ["check:outcome:critical-success", "check:outcome:success"] }],
		process: async (e) => {
			e.speaker && e.targets.length === 1 && b(e.roll) && await game.assistant.socket.addEffect(e.targets[0].actor, "Compendium.pf2e.equipment-effects.Item.Sf6UO6vgCeicggOK", {
				origin: e.speaker,
				item: e.item,
				target: e.targets[0],
				roll: {
					total: e.roll.total,
					degreeOfSuccess: e.roll.degreeOfSuccess
				}
			});
		}
	}];
})), Tb = /* @__PURE__ */ n({
	actions: () => Db,
	path: () => Eb
}), Eb, Db, Ob = t((() => {
	Eb = [
		"Items",
		"Consumables",
		"Shrinking Potion"
	], Db = [{
		trigger: "consumable",
		predicate: ["item:shrinking-potion"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.o0baLY5VdjLhdsS7", {
				origin: e.speaker,
				item: e.item
			});
		}
	}, {
		trigger: "consumable",
		predicate: ["item:shrinking-potion-greater"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.zd85Ny1RS46OL0TD", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), kb = /* @__PURE__ */ n({
	actions: () => jb,
	path: () => Ab
}), Ab, jb, Mb = t((() => {
	Ab = [
		"Items",
		"Consumables",
		"Silver Crescent"
	], jb = [{
		trigger: "consumable",
		predicate: [{ or: [
			"item:silver-crescent-lesser",
			"item:silver-crescent-moderate",
			"item:silver-crescent-greater"
		] }],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.KFq5wnjdzyrycEnB", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), Nb = /* @__PURE__ */ n({
	actions: () => Fb,
	path: () => Pb
}), Pb, Fb, Ib = t((() => {
	Pb = [
		"Items",
		"Consumables",
		"Silver Salve"
	], Fb = [{
		trigger: "consumable",
		predicate: ["item:silver-salve"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.dfnhwI5pJgLtXh2k", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), Lb = /* @__PURE__ */ n({
	actions: () => zb,
	path: () => Rb
}), Rb, zb, Bb = t((() => {
	Rb = [
		"Items",
		"Consumables",
		"Silvertongue Mutagen"
	], zb = [
		{
			trigger: "consumable",
			predicate: ["item:silvertongue-mutagen-lesser"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.dpIrjd1UPY7EnWUD", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:silvertongue-mutagen-moderate"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.v5Ht1V4MZvRKRBjL", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:silvertongue-mutagen-greater"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.oAewXfq9c0ecaSfw", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:silvertongue-mutagen-major"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.9FfFhu2kl2wMTsiI", {
					origin: e.speaker,
					item: e.item
				});
			}
		}
	];
})), Vb = /* @__PURE__ */ n({
	actions: () => Ub,
	path: () => Hb
}), Hb, Ub, Wb = t((() => {
	Hb = [
		"Items",
		"Consumables",
		"Sixfingers Elixir"
	], Ub = [
		{
			trigger: "consumable",
			predicate: ["item:sixfingers-elixir-lesser"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.XrlChFETfe8avLsX", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:sixfingers-elixir-moderate"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.qzRcSQ0HTTp58hV2", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:sixfingers-elixir-greater"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.TkRuKKYyPHTGPfgf", {
					origin: e.speaker,
					item: e.item
				});
			}
		}
	];
})), Gb = /* @__PURE__ */ n({
	actions: () => qb,
	path: () => Kb
}), Kb, qb, Jb = t((() => {
	Kb = [
		"Items",
		"Consumables",
		"Skeptic's Elixir"
	], qb = [
		{
			trigger: "consumable",
			predicate: ["item:skeptics-elixir-lesser"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.5Gof60StUppR2Xn9", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:skeptics-elixir-moderate"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.mG6S6zm6hxaF7Tla", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:skeptics-elixir-greater"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.TsWUTODTVi487SEz", {
					origin: e.speaker,
					item: e.item
				});
			}
		}
	];
})), Yb = /* @__PURE__ */ n({
	actions: () => Zb,
	path: () => Xb
}), Xb, Zb, Qb = t((() => {
	Xb = [
		"Items",
		"Consumables",
		"Soothing Toddy"
	], Zb = [{
		trigger: "consumable",
		predicate: ["item:soothing-toddy"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.kIzYHyIN6xzbocuh", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), $b = /* @__PURE__ */ n({
	actions: () => tx,
	path: () => ex
}), ex, tx, nx = t((() => {
	ex = [
		"Items",
		"Consumables",
		"Soothing Tonic"
	], tx = [{
		trigger: "consumable",
		predicate: [{ or: [
			"item:soothing-tonic-lesser",
			"item:soothing-tonic-moderate",
			"item:soothing-tonic-greater",
			"item:soothing-tonic-major"
		] }],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.p5KpVsJVzhoJ4OrS", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), rx = /* @__PURE__ */ n({
	actions: () => ax,
	path: () => ix
}), ix, ax, ox = t((() => {
	ix = [
		"Items",
		"Consumables",
		"Spiderfoot Brew"
	], ax = [
		{
			trigger: "consumable",
			predicate: ["item:spiderfoot-brew-lesser"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.wNCxSxruzLVGtLE4", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:spiderfoot-brew-moderate"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.YI7QQqXO6nosaAKr", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:spiderfoot-brew-greater"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.4JULykNCgQoypsu8", {
					origin: e.speaker,
					item: e.item
				});
			}
		}
	];
})), sx = /* @__PURE__ */ n({
	actions: () => lx,
	path: () => cx
}), cx, lx, ux = t((() => {
	cx = [
		"Items",
		"Consumables",
		"Star of Cynosure"
	], lx = [{
		trigger: "consumable",
		predicate: ["item:star-of-cynosure"],
		process: async (e) => {
			e.speaker && e.item?.isOfType("consumable") && await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.equipment-effects.Item.TM0LFTy30FG2wwI2", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), dx = /* @__PURE__ */ n({
	actions: () => px,
	path: () => fx
}), fx, px, mx = t((() => {
	fx = [
		"Items",
		"Consumables",
		"Statue Skin Salve"
	], px = [{
		trigger: "consumable",
		predicate: ["item:statue-skin-salve"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.80JoiuYxrzoEPfVw", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), hx = /* @__PURE__ */ n({
	actions: () => _x,
	path: () => gx
}), gx, _x, vx = t((() => {
	gx = [
		"Items",
		"Consumables",
		"Stone Body Mutagen"
	], _x = [
		{
			trigger: "consumable",
			predicate: ["item:stone-body-mutagen-lesser"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.PEPOd38VfVzQMKG5", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:stone-body-mutagen-moderate"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.1xHHvQlW4pRR89qj", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:stone-body-mutagen-greater"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.b9DTIJyBT8kvIBpj", {
					origin: e.speaker,
					item: e.item
				});
			}
		}
	];
})), yx = /* @__PURE__ */ n({
	actions: () => xx,
	path: () => bx
}), bx, xx, Sx = t((() => {
	bx = [
		"Items",
		"Consumables",
		"Stone Fist Elixir"
	], xx = [{
		trigger: "consumable",
		predicate: ["item:stone-fist-elixir"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.AMhUb42NAJ1aisZp", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), Cx = /* @__PURE__ */ n({
	actions: () => Tx,
	path: () => wx
}), wx, Tx, Ex = t((() => {
	wx = [
		"Items",
		"Consumables",
		"Storm Breath"
	], Tx = [{
		trigger: "consumable",
		predicate: ["item:storm-breath"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.CDfixYwjfjoXkOVq", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), Dx = /* @__PURE__ */ n({
	actions: () => kx,
	path: () => Ox
}), Ox, kx, Ax = t((() => {
	Ox = [
		"Items",
		"Consumables",
		"Stormbreaker Fulu"
	], kx = [{
		trigger: "consumable",
		predicate: ["item:stormbreaker-fulu"],
		process: async (e) => {
			e.speaker && e.item?.isOfType("consumable") && await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.equipment-effects.Item.FnCC5RNvnlWB2bmb", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), jx = /* @__PURE__ */ n({
	actions: () => Nx,
	path: () => Mx
}), Mx, Nx, Px = t((() => {
	Mx = [
		"Items",
		"Consumables",
		"Taper of Sanctification"
	], Nx = [{
		trigger: "consumable",
		predicate: ["item:taper-of-sanctification"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.j8dPwfhUuIeDgHYT", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), Fx = /* @__PURE__ */ n({
	actions: () => Lx,
	path: () => Ix
}), Ix, Lx, Rx = t((() => {
	Ix = [
		"Items",
		"Consumables",
		"Thawing Candle"
	], Lx = [{
		trigger: "consumable",
		predicate: ["item:thawing-candle"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.wvzrq1Lh9Y8PpxBs", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), zx = /* @__PURE__ */ n({
	actions: () => Vx,
	path: () => Bx
}), Bx, Vx, Hx = t((() => {
	Bx = [
		"Items",
		"Consumables",
		"Theatrical Mutagen"
	], Vx = [
		{
			trigger: "consumable",
			predicate: ["item:theatrical-mutagen-lesser"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.euBiKyqrcefeuv4H", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:theatrical-mutagen-moderate"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.G1IwG9HRH9CRtHqj", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:theatrical-mutagen-greater"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.o2yteYPGqEjpPAZ5", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:theatrical-mutagen-major"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.bZPjDwwyPT0iKBE9", {
					origin: e.speaker,
					item: e.item
				});
			}
		}
	];
})), Ux = /* @__PURE__ */ n({
	actions: () => Gx,
	path: () => Wx
}), Wx, Gx, Kx = t((() => {
	Wx = [
		"Items",
		"Consumables",
		"Thousand-Year Dragonroot"
	], Gx = [{
		trigger: "consumable",
		predicate: ["item:thousand-year-dragonroot"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.p1pxUzwgWZ9l9jmD", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), qx = /* @__PURE__ */ n({
	actions: () => Yx,
	path: () => Jx
}), Jx, Yx, Xx = t((() => {
	Jx = [
		"Items",
		"Consumables",
		"Tiger Menuki"
	], Yx = [{
		trigger: "consumable",
		predicate: ["item:tiger-menuki"],
		process: async (e) => {
			e.speaker && e.item?.isOfType("consumable") && await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.equipment-effects.Item.ci2oacfcvNyjR1Kn", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), Zx = /* @__PURE__ */ n({
	actions: () => $x,
	path: () => Qx
}), Qx, $x, eS = t((() => {
	Qx = [
		"Items",
		"Consumables",
		"Topology Protoplasm"
	], $x = [{
		trigger: "consumable",
		predicate: ["item:topology-protoplasm"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.vZPyQAt5T2L0Dfmq", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), tS = /* @__PURE__ */ n({
	actions: () => rS,
	path: () => nS
}), nS, rS, iS = t((() => {
	nS = [
		"Items",
		"Consumables",
		"Tracker's Stew"
	], rS = [{
		trigger: "consumable",
		predicate: ["item:trackers-stew"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.sAs4lPQ2wXEh2dPN", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), aS = /* @__PURE__ */ n({
	actions: () => sS,
	path: () => oS
}), oS, sS, cS = t((() => {
	oS = [
		"Items",
		"Consumables",
		"Tricky Liniment"
	], sS = [{
		trigger: "consumable",
		predicate: ["item:tricky-liniment"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.MCny5ohCGf09a7Wl", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), lS = /* @__PURE__ */ n({
	actions: () => dS,
	path: () => uS
}), uS, dS, fS = t((() => {
	uS = [
		"Items",
		"Consumables",
		"Tteokguk of Time Advancement"
	], dS = [{
		trigger: "consumable",
		predicate: ["item:tteokguk-of-time-advancement"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.M0hhLRC86sASVOk7", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), pS = /* @__PURE__ */ n({
	actions: () => hS,
	path: () => mS
}), mS, hS, gS = t((() => {
	mS = [
		"Items",
		"Consumables",
		"Valorous Coin"
	], hS = [{
		trigger: "consumable",
		predicate: ["item:valorous-coin"],
		process: async (e) => {
			e.speaker && e.item?.isOfType("consumable") && await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.equipment-effects.Item.8wGzXqCOUvPw8oMy", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), _S = /* @__PURE__ */ n({
	actions: () => yS,
	path: () => vS
}), vS, yS, bS = t((() => {
	vS = [
		"Items",
		"Consumables",
		"Vapor Sphere"
	], yS = [{
		trigger: "consumable",
		predicate: ["item:vapor-sphere"],
		process: async (e) => {
			e.speaker && e.item?.isOfType("consumable") && await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.equipment-effects.Item.9VBrrYXFR3EdGptG", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), xS = /* @__PURE__ */ n({
	actions: () => CS,
	path: () => SS
}), SS, CS, wS = t((() => {
	SS = [
		"Items",
		"Consumables",
		"Vengeful Demon's Tears"
	], CS = [{
		trigger: "consumable",
		predicate: ["item:vengeful-demons-tears"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.5S2jlx6WZMAF4sxg", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), TS = /* @__PURE__ */ n({
	actions: () => DS,
	path: () => ES
}), ES, DS, OS = t((() => {
	ES = [
		"Items",
		"Consumables",
		"Vermin Repellent Agent"
	], DS = [{
		trigger: "consumable",
		predicate: [{ or: [
			"item:vermin-repellent-agent-lesser",
			"item:vermin-repellent-agent-moderate",
			"item:vermin-repellent-agent-greater",
			"item:vermin-repellent-agent-major"
		] }],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.UhV9TLdFjtSOppog", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), kS = /* @__PURE__ */ n({
	actions: () => jS,
	path: () => AS
}), AS, jS, MS = t((() => {
	AS = [
		"Items",
		"Consumables",
		"Viperous Elixir"
	], jS = [
		{
			trigger: "consumable",
			predicate: ["item:viperous-elixir-lesser"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.zao2sENSQlMLYhyr", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:viperous-elixir-moderate"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.FgwkowiWGfZpnIAc", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:viperous-elixir-greater"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.zW8adCNIRo46mfEH", {
					origin: e.speaker,
					item: e.item
				});
			}
		}
	];
})), NS = /* @__PURE__ */ n({
	actions: () => FS,
	path: () => PS
}), PS, FS, IS = t((() => {
	PS = [
		"Items",
		"Consumables",
		"War Blood Mutagen"
	], FS = [
		{
			trigger: "consumable",
			predicate: ["item:war-blood-mutagen-lesser"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.aIZsC56OdotiGb9M", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:war-blood-mutagen-moderate"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.aIZsC56OdotiGb9M", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:war-blood-mutagen-greater"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.8RNPIAuV7ixaXeq5", {
					origin: e.speaker,
					item: e.item
				});
			}
		},
		{
			trigger: "consumable",
			predicate: ["item:war-blood-mutagen-major"],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("consumable")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.S3Sv7SYwxozbG554", {
					origin: e.speaker,
					item: e.item
				});
			}
		}
	];
})), LS = /* @__PURE__ */ n({
	actions: () => zS,
	path: () => RS
}), RS, zS, BS = t((() => {
	RS = [
		"Items",
		"Consumables",
		"Wemmuth Trinket"
	], zS = [{
		trigger: "consumable",
		predicate: ["item:wemmuth-trinket"],
		process: async (e) => {
			e.speaker && e.item?.isOfType("consumable") && await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.equipment-effects.Item.mS82CkuoGfOfQ9Jt", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), VS = /* @__PURE__ */ n({
	actions: () => US,
	path: () => HS
}), HS, US, WS = t((() => {
	HS = [
		"Items",
		"Consumables",
		"Wine of the Blood"
	], US = [{
		trigger: "consumable",
		predicate: ["item:wine-of-the-blood"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.KkFk8PZ2ZZVUrdgj", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), GS = /* @__PURE__ */ n({
	actions: () => qS,
	path: () => KS
}), KS, qS, JS = t((() => {
	KS = [
		"Items",
		"Consumables",
		"Witch's Finger"
	], qS = [{
		trigger: "consumable",
		predicate: ["item:witchs-finger"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.sHOx852VoPinsQGY", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), YS = /* @__PURE__ */ n({
	actions: () => ZS,
	path: () => XS
}), XS, ZS, QS = t((() => {
	XS = [
		"Items",
		"Consumables",
		"Wounding Oil"
	], ZS = [{
		trigger: "consumable",
		predicate: ["item:wounding-oil"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("consumable")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.equipment-effects.Item.2gRnUwzPylifTrUO", {
				origin: e.speaker,
				item: e.item
			});
		}
	}];
})), $S = /* @__PURE__ */ n({
	actions: () => tC,
	path: () => eC
}), eC, tC, nC = t((() => {
	Q(), eC = [
		"Items",
		"Runes",
		"Bloodthirsty"
	], tC = [{
		trigger: "damage-roll",
		predicate: [
			"check:outcome:critical-success",
			"item:rune:property:bloodthirsty",
			"target:condition:persistent-damage:bleed"
		],
		process: async (e) => {
			e.speaker && e.targets.length === 1 && (Ye(e.targets[0].actor, "drained") || await game.assistant.socket.addCondition(e.targets[0].actor, "drained"));
		}
	}];
})), rC = /* @__PURE__ */ n({
	actions: () => aC,
	path: () => iC
}), iC, aC, oC = t((() => {
	$(), Q(), iC = [
		"Items",
		"Runes",
		"Brilliant"
	], aC = [
		{
			trigger: "damage-roll",
			predicate: ["check:outcome:critical-success", "item:rune:property:brilliant"],
			process: async (e) => {
				e.speaker && e.targets.length === 1 && await game.assistant.socket.rollSave(e.targets[0].actor, "fortitude", {
					origin: e.speaker.actor,
					dc: {
						label: "Brilliant Rune DC",
						value: 29
					},
					extraRollOptions: ["brilliant"],
					skipDialog: !0
				});
			}
		},
		{
			trigger: "damage-roll",
			predicate: ["check:outcome:critical-success", "item:rune:property:greater-brilliant"],
			process: async (e) => {
				e.speaker && e.targets.length === 1 && await game.assistant.socket.rollSave(e.targets[0].actor, "fortitude", {
					origin: e.speaker.actor,
					dc: {
						label: "Greater Brilliant Rune DC",
						value: 41
					},
					extraRollOptions: ["greater-brilliant"],
					skipDialog: !0
				});
			}
		},
		{
			trigger: "saving-throw",
			predicate: [
				"check:statistic:fortitude",
				"brilliant",
				{ or: ["check:outcome:failure", "check:outcome:critical-failure"] }
			],
			process: async (e) => {
				if (!e.speaker || !e.origin) return;
				let t = h();
				return t.removeItem.push(...await game.assistant.socket.createEmbeddedItem(e.speaker.actor, {
					name: "Effect: Brilliant",
					type: "effect",
					system: {
						description: { value: "<p>The target is @UUID[Compendium.pf2e.conditionitems.Item.XgEqL1kFApUbl5Z2]{Blinded} util the end of your next turn.</p>" },
						rules: [{
							key: "GrantItem",
							onDeleteActions: { grantee: "restrict" },
							uuid: "Compendium.pf2e.conditionitems.Item.XgEqL1kFApUbl5Z2"
						}],
						slug: "effect-brilliant",
						publication: {
							title: "Pathfinder Player Core",
							license: "ORC",
							remaster: !0
						},
						duration: {
							value: 1,
							unit: "rounds",
							expiry: "turn-end",
							sustained: !1
						},
						context: {
							origin: {
								actor: e.origin.actor.uuid,
								token: e.origin.token.uuid,
								rollOptions: e.origin.actor.getSelfRollOptions("origin")
							},
							target: {
								actor: e.speaker.actor.uuid,
								token: e.speaker.token.uuid
							}
						}
					},
					img: Z("icons/equipment/runes/weapon-property-runes/weapon-property-runes.webp")
				})), t;
			}
		},
		{
			trigger: "saving-throw",
			predicate: [
				"check:statistic:fortitude",
				"greater-brilliant",
				{ or: ["check:outcome:failure", "check:outcome:critical-failure"] }
			],
			process: async (e) => {
				if (!e.speaker || !e.origin) return;
				let t = h();
				return t.removeItem.push(...await game.assistant.socket.createEmbeddedItem(e.speaker.actor, {
					name: "Effect: Greater Brilliant",
					type: "effect",
					system: {
						description: { value: "<p>The target is @UUID[Compendium.pf2e.conditionitems.Item.XgEqL1kFApUbl5Z2]{Blinded} util the end of your next turn.</p>" },
						rules: [{
							key: "GrantItem",
							onDeleteActions: { grantee: "restrict" },
							uuid: "Compendium.pf2e.conditionitems.Item.XgEqL1kFApUbl5Z2"
						}],
						slug: "effect-greater-brilliant",
						publication: {
							title: "Pathfinder Player Core",
							license: "ORC",
							remaster: !0
						},
						duration: {
							value: 1,
							unit: "rounds",
							expiry: "turn-end",
							sustained: !1
						},
						context: {
							origin: {
								actor: e.origin.actor.uuid,
								token: e.origin.token.uuid,
								rollOptions: e.origin.actor.getSelfRollOptions("origin")
							},
							target: {
								actor: e.speaker.actor.uuid,
								token: e.speaker.token.uuid
							}
						}
					},
					img: Z("icons/equipment/runes/weapon-property-runes/weapon-property-runes.webp")
				})), t;
			}
		}
	];
})), sC = /* @__PURE__ */ n({
	actions: () => lC,
	path: () => cC
}), cC, lC, uC = t((() => {
	Q(), cC = [
		"Items",
		"Runes",
		"Crushing"
	], lC = [{
		trigger: "damage-roll",
		predicate: ["check:outcome:critical-success", "item:rune:property:crushing"],
		process: async (e) => {
			e.speaker && e.targets.length === 1 && y(e.roll) && await game.assistant.socket.addEffect(e.targets[0].actor, "Compendium.pf2e.equipment-effects.Item.zNHvhwHsC8ckhKVp", {
				origin: e.speaker,
				target: e.targets[0]
			});
		}
	}, {
		trigger: "damage-roll",
		predicate: ["check:outcome:critical-success", "item:rune:property:greater-crushing"],
		process: async (e) => {
			e.speaker && e.targets.length === 1 && y(e.roll) && await game.assistant.socket.addEffect(e.targets[0].actor, "Compendium.pf2e.equipment-effects.Item.czdEHtLsrUcZxSDx", {
				origin: e.speaker,
				target: e.targets[0]
			});
		}
	}];
})), dC = /* @__PURE__ */ n({
	actions: () => pC,
	path: () => fC
}), fC, pC, mC = t((() => {
	Q(), fC = [
		"Items",
		"Runes",
		"Fearsome"
	], pC = [{
		trigger: "damage-roll",
		predicate: ["check:outcome:critical-success", "item:rune:property:fearsome"],
		process: async (e) => {
			e.speaker && e.targets.length === 1 && y(e.roll) && await game.assistant.socket.addCondition(e.targets[0].actor, "frightened", { value: 1 });
		}
	}, {
		trigger: "damage-roll",
		predicate: ["check:outcome:critical-success", "item:rune:property:greater-fearsome"],
		process: async (e) => {
			e.speaker && e.targets.length === 1 && y(e.roll) && await game.assistant.socket.addCondition(e.targets[0].actor, "frightened", { value: 2 });
		}
	}];
})), hC = /* @__PURE__ */ n({
	actions: () => _C,
	path: () => gC
}), gC, _C, vC = t((() => {
	$(), Q(), gC = [
		"Items",
		"Runes",
		"Frost"
	], _C = [
		{
			trigger: "damage-roll",
			predicate: ["check:outcome:critical-success", "item:rune:property:frost"],
			process: async (e) => {
				e.speaker && e.targets.length === 1 && await game.assistant.socket.rollSave(e.targets[0].actor, "fortitude", {
					origin: e.speaker.actor,
					dc: {
						label: "Frost Rune DC",
						value: 24
					},
					extraRollOptions: ["frost"],
					skipDialog: !0
				});
			}
		},
		{
			trigger: "damage-roll",
			predicate: ["check:outcome:critical-success", "item:rune:property:greater-frost"],
			process: async (e) => {
				e.speaker && e.targets.length === 1 && await game.assistant.socket.rollSave(e.targets[0].actor, "fortitude", {
					origin: e.speaker.actor,
					dc: {
						label: "Greater Frost Rune DC",
						value: 34
					},
					extraRollOptions: ["greater-frost"],
					skipDialog: !0
				});
			}
		},
		{
			trigger: "saving-throw",
			predicate: [
				"check:statistic:fortitude",
				"frost",
				{ or: ["check:outcome:failure", "check:outcome:critical-failure"] }
			],
			process: async (e) => {
				if (!e.speaker || !e.origin) return;
				let t = h();
				return t.removeItem.push(...await game.assistant.socket.createEmbeddedItem(e.speaker.actor, {
					name: "Effect: Frost",
					type: "effect",
					system: {
						description: { value: "<p>The target is @UUID[Compendium.pf2e.conditionitems.Item.xYTAsEpcJE1Ccni3]{Slowed 1} util the end of your next turn.</p>" },
						rules: [{
							key: "GrantItem",
							onDeleteActions: { grantee: "restrict" },
							uuid: "Compendium.pf2e.conditionitems.Item.xYTAsEpcJE1Ccni3"
						}],
						slug: "effect-frost",
						publication: {
							title: "Pathfinder Player Core",
							license: "ORC",
							remaster: !0
						},
						duration: {
							value: 1,
							unit: "rounds",
							expiry: "turn-end",
							sustained: !1
						},
						context: {
							origin: {
								actor: e.origin.actor.uuid,
								token: e.origin.token.uuid,
								rollOptions: e.origin.actor.getSelfRollOptions("origin")
							},
							target: {
								actor: e.speaker.actor.uuid,
								token: e.speaker.token.uuid
							}
						}
					},
					img: Z("icons/equipment/runes/weapon-property-runes/weapon-property-runes.webp")
				})), t;
			}
		},
		{
			trigger: "saving-throw",
			predicate: [
				"check:statistic:fortitude",
				"greater-frost",
				{ or: ["check:outcome:failure", "check:outcome:critical-failure"] }
			],
			process: async (e) => {
				if (!e.speaker || !e.origin) return;
				let t = h();
				return t.removeItem.push(...await game.assistant.socket.createEmbeddedItem(e.speaker.actor, {
					name: "Effect: Greater Frost",
					type: "effect",
					system: {
						description: { value: "<p>The target is @UUID[Compendium.pf2e.conditionitems.Item.xYTAsEpcJE1Ccni3]{Slowed 1} util the end of your next turn.</p>" },
						rules: [{
							key: "GrantItem",
							onDeleteActions: { grantee: "restrict" },
							uuid: "Compendium.pf2e.conditionitems.Item.xYTAsEpcJE1Ccni3"
						}],
						slug: "effect-greater-frost",
						publication: {
							title: "Pathfinder Player Core",
							license: "ORC",
							remaster: !0
						},
						duration: {
							value: 1,
							unit: "rounds",
							expiry: "turn-end",
							sustained: !1
						},
						context: {
							origin: {
								actor: e.origin.actor.uuid,
								token: e.origin.token.uuid,
								rollOptions: e.origin.actor.getSelfRollOptions("origin")
							},
							target: {
								actor: e.speaker.actor.uuid,
								token: e.speaker.token.uuid
							}
						}
					},
					img: Z("icons/equipment/runes/weapon-property-runes/weapon-property-runes.webp")
				})), t;
			}
		}
	];
})), yC = /* @__PURE__ */ n({
	actions: () => xC,
	path: () => bC
}), bC, xC, SC = t((() => {
	Q(), bC = [
		"Items",
		"Runes",
		"Rooting"
	], xC = [
		{
			trigger: "damage-roll",
			predicate: ["check:outcome:critical-success", "item:rune:property:rooting"],
			process: async (e) => {
				e.speaker && e.targets.length === 1 && await game.assistant.socket.createEmbeddedItem(e.targets[0].actor, {
					name: "Effect: Rooting",
					type: "effect",
					system: {
						description: { value: "<p>The target is @UUID[Compendium.pf2e.conditionitems.Item.eIcWbB5o3pP6OIMe]{Immobiliex} for 1 round ([[/act escape dc=23]]) and @UUID[Compendium.pf2e.conditionitems.Item.i3OJZU2nk64Df3xm]{Clumsy 1} for a long as the immobiization lasts.</p>" },
						rules: [{
							key: "GrantItem",
							onDeleteActions: { grantee: "restrict" },
							uuid: "Compendium.pf2e.conditionitems.Item.eIcWbB5o3pP6OIMe"
						}, {
							key: "GrantItem",
							onDeleteActions: { grantee: "restrict" },
							uuid: "Compendium.pf2e.conditionitems.Item.i3OJZU2nk64Df3xm"
						}],
						slug: "effect-rooting",
						publication: {
							title: "Pathfinder Player Core",
							license: "ORC",
							remaster: !0
						},
						duration: {
							value: 1,
							unit: "rounds",
							expiry: "turn-end",
							sustained: !1
						},
						context: {
							origin: {
								actor: e.speaker.actor.uuid,
								token: e.speaker.token.uuid,
								rollOptions: e.speaker.actor.getSelfRollOptions("origin")
							},
							target: {
								actor: e.targets[0].actor.uuid,
								token: e.targets[0].token.uuid
							}
						}
					},
					img: Z("icons/equipment/runes/weapon-property-runes/weapon-property-runes.webp")
				});
			}
		},
		{
			trigger: "damage-roll",
			predicate: ["check:outcome:critical-success", "item:rune:property:greater-rooting"],
			process: async (e) => {
				e.speaker && e.targets.length === 1 && await game.assistant.socket.createEmbeddedItem(e.targets[0].actor, {
					name: "Effect: Greater Rooting",
					type: "effect",
					system: {
						description: { value: "<p>The target is @UUID[Compendium.pf2e.conditionitems.Item.eIcWbB5o3pP6OIMe]{Immobiliex} for 1 round ([[/act escape dc=28]]) and @UUID[Compendium.pf2e.conditionitems.Item.i3OJZU2nk64Df3xm]{Clumsy 1} for a long as the immobiization lasts.</p>" },
						rules: [{
							key: "GrantItem",
							onDeleteActions: { grantee: "restrict" },
							uuid: "Compendium.pf2e.conditionitems.Item.eIcWbB5o3pP6OIMe"
						}, {
							key: "GrantItem",
							onDeleteActions: { grantee: "restrict" },
							uuid: "Compendium.pf2e.conditionitems.Item.i3OJZU2nk64Df3xm"
						}],
						slug: "effect-greater-rooting",
						publication: {
							title: "Pathfinder Player Core",
							license: "ORC",
							remaster: !0
						},
						duration: {
							value: 1,
							unit: "rounds",
							expiry: "turn-end",
							sustained: !1
						},
						context: {
							origin: {
								actor: e.speaker.actor.uuid,
								token: e.speaker.token.uuid,
								rollOptions: e.speaker.actor.getSelfRollOptions("origin")
							},
							target: {
								actor: e.targets[0].actor.uuid,
								token: e.targets[0].token.uuid
							}
						}
					},
					img: Z("icons/equipment/runes/weapon-property-runes/weapon-property-runes.webp")
				});
			}
		},
		{
			trigger: "damage-roll",
			predicate: ["check:outcome:critical-success", "item:rune:property:major-rooting"],
			process: async (e) => {
				e.speaker && e.targets.length === 1 && await game.assistant.socket.createEmbeddedItem(e.targets[0].actor, {
					name: "Effect: Major Rooting",
					type: "effect",
					system: {
						description: { value: "<p>The target is @UUID[Compendium.pf2e.conditionitems.Item.eIcWbB5o3pP6OIMe]{Immobiliex} for 1 round ([[/act escape dc=34]]) and @UUID[Compendium.pf2e.conditionitems.Item.i3OJZU2nk64Df3xm]{Clumsy 1} for a long as the immobiization lasts.</p>" },
						rules: [{
							key: "GrantItem",
							onDeleteActions: { grantee: "restrict" },
							uuid: "Compendium.pf2e.conditionitems.Item.eIcWbB5o3pP6OIMe"
						}, {
							key: "GrantItem",
							onDeleteActions: { grantee: "restrict" },
							uuid: "Compendium.pf2e.conditionitems.Item.i3OJZU2nk64Df3xm"
						}],
						slug: "effect-major-rooting",
						publication: {
							title: "Pathfinder Player Core",
							license: "ORC",
							remaster: !0
						},
						duration: {
							value: 1,
							unit: "rounds",
							expiry: "turn-end",
							sustained: !1
						},
						context: {
							origin: {
								actor: e.speaker.actor.uuid,
								token: e.speaker.token.uuid,
								rollOptions: e.speaker.actor.getSelfRollOptions("origin")
							},
							target: {
								actor: e.targets[0].actor.uuid,
								token: e.targets[0].token.uuid
							}
						}
					},
					img: Z("icons/equipment/runes/weapon-property-runes/weapon-property-runes.webp")
				});
			}
		},
		{
			trigger: "damage-roll",
			predicate: ["check:outcome:critical-success", "item:rune:property:true-rooting"],
			process: async (e) => {
				e.speaker && e.targets.length === 1 && await game.assistant.socket.createEmbeddedItem(e.targets[0].actor, {
					name: "Effect: True Rooting",
					type: "effect",
					system: {
						description: { value: "<p>The target is @UUID[Compendium.pf2e.conditionitems.Item.eIcWbB5o3pP6OIMe]{Immobiliex} for 1 round ([[/act escape dc=41]]) and @UUID[Compendium.pf2e.conditionitems.Item.i3OJZU2nk64Df3xm]{Clumsy 1} for a long as the immobiization lasts.</p>" },
						rules: [{
							key: "GrantItem",
							onDeleteActions: { grantee: "restrict" },
							uuid: "Compendium.pf2e.conditionitems.Item.eIcWbB5o3pP6OIMe"
						}, {
							key: "GrantItem",
							onDeleteActions: { grantee: "restrict" },
							uuid: "Compendium.pf2e.conditionitems.Item.i3OJZU2nk64Df3xm"
						}],
						slug: "effect-true-rooting",
						publication: {
							title: "Pathfinder Player Core",
							license: "ORC",
							remaster: !0
						},
						duration: {
							value: 1,
							unit: "rounds",
							expiry: "turn-end",
							sustained: !1
						},
						context: {
							origin: {
								actor: e.speaker.actor.uuid,
								token: e.speaker.token.uuid,
								rollOptions: e.speaker.actor.getSelfRollOptions("origin")
							},
							target: {
								actor: e.targets[0].actor.uuid,
								token: e.targets[0].token.uuid
							}
						}
					},
					img: Z("icons/equipment/runes/weapon-property-runes/weapon-property-runes.webp")
				});
			}
		}
	];
})), CC = /* @__PURE__ */ n({
	actions: () => TC,
	path: () => wC
}), wC, TC, EC = t((() => {
	Q(), wC = [
		"Items",
		"Runes",
		"Shock"
	], TC = [{
		trigger: "damage-roll",
		predicate: ["check:outcome:critical-success", "item:rune:property:shock"],
		process: async (e) => {
			if (!e.speaker || e.targets.length !== 1 || !y(e.roll) || Ml(e.targets[0].token.scene, {
				enemyOf: e.speaker.actor,
				distanceTo: {
					target: e.targets[0].token,
					distance: 10
				},
				predicate: (t) => t.uuid !== e.targets[0]?.token.uuid
			}).length === 0) return;
			let t = Vt(e.roll, "shock", !0);
			t && await (await new (v())(t).evaluate()).toMessage({
				flags: {
					"pf2e-assistant": { process: !1 },
					"pf2e-toolbelt": { targetHelper: { targets: [] } }
				},
				flavor: kt([{
					title: "PF2E.WeaponPropertyRune.shock.Name",
					text: "PF2E.WeaponPropertyRune.shock.Note.criticalSuccess"
				}]),
				speaker: ChatMessage.getSpeaker(e.speaker)
			});
		}
	}, {
		trigger: "damage-roll",
		predicate: ["check:outcome:critical-success", "item:rune:property:greater-shock"],
		process: async (e) => {
			if (!e.speaker || e.targets.length !== 1 || !y(e.roll) || Ml(e.targets[0].token.scene, {
				enemyOf: e.speaker.actor,
				distanceTo: {
					target: e.targets[0].token,
					distance: 10
				},
				predicate: (t) => t.uuid !== e.targets[0]?.token.uuid
			}).length === 0) return;
			let t = Vt(e.roll, "greater-shock", !0);
			t && await (await new (v())(t, {}, { bypass: {
				immunity: {
					ignore: [],
					downgrade: [],
					redirect: []
				},
				resistance: {
					ignore: [{
						type: "electricity",
						max: Infinity
					}],
					redirect: []
				}
			} }).evaluate()).toMessage({
				flags: {
					"pf2e-assistant": { process: !1 },
					"pf2e-toolbelt": { targetHelper: { targets: [] } }
				},
				flavor: kt([{
					title: "PF2E.WeaponPropertyRune.greaterShock.Name",
					text: "PF2E.WeaponPropertyRune.greaterShock.Note.criticalSuccess"
				}]),
				speaker: ChatMessage.getSpeaker(e.speaker)
			});
		}
	}];
})), DC = /* @__PURE__ */ n({
	actions: () => kC,
	path: () => OC
}), OC, kC, AC = t((() => {
	$(), Q(), OC = [
		"Items",
		"Runes",
		"Thundering"
	], kC = [
		{
			trigger: "damage-roll",
			predicate: ["check:outcome:critical-success", "item:rune:property:thundering"],
			process: async (e) => {
				e.speaker && e.targets.length === 1 && await game.assistant.socket.rollSave(e.targets[0].actor, "fortitude", {
					origin: e.speaker.actor,
					dc: {
						label: "Thundering Rune DC",
						value: 24
					},
					extraRollOptions: ["thundering"],
					skipDialog: !0
				});
			}
		},
		{
			trigger: "damage-roll",
			predicate: ["check:outcome:critical-success", "item:rune:property:greater-thundering"],
			process: async (e) => {
				e.speaker && e.targets.length === 1 && await game.assistant.socket.rollSave(e.targets[0].actor, "fortitude", {
					origin: e.speaker.actor,
					dc: {
						label: "Greater Thundering Rune DC",
						value: 34
					},
					extraRollOptions: ["greater-thundering"],
					skipDialog: !0
				});
			}
		},
		{
			trigger: "saving-throw",
			predicate: ["thundering", "check:outcome:failure"],
			process: async (e) => {
				if (!e.speaker || !e.origin) return;
				let t = h();
				return t.removeItem.push(...await game.assistant.socket.createEmbeddedItem(e.speaker.actor, {
					name: "Effect: Thundering",
					type: "effect",
					system: {
						description: { value: "<p>The target is @UUID[Compendium.pf2e.conditionitems.Item.9PR9y0bi4JPKnHPR]{Deafened} for 1 minute.</p>" },
						rules: [{
							key: "GrantItem",
							onDeleteActions: { grantee: "restrict" },
							uuid: "Compendium.pf2e.conditionitems.Item.9PR9y0bi4JPKnHPR"
						}],
						slug: "effect-thundering",
						publication: {
							title: "Pathfinder Player Core",
							license: "ORC",
							remaster: !0
						},
						duration: {
							value: 1,
							unit: "minutes",
							expiry: "turn-end",
							sustained: !1
						},
						context: {
							origin: {
								actor: e.origin.actor.uuid,
								token: e.origin.token.uuid,
								rollOptions: e.origin.actor.getSelfRollOptions("origin")
							},
							target: {
								actor: e.speaker.actor.uuid,
								token: e.speaker.token.uuid
							}
						}
					},
					img: Z("icons/equipment/runes/weapon-property-runes/weapon-property-runes.webp")
				})), t;
			}
		},
		{
			trigger: "saving-throw",
			predicate: ["thundering", "check:outcome:critical-failure"],
			process: async (e) => {
				if (!e.speaker || !e.origin) return;
				let t = h();
				return t.removeItem.push(...await game.assistant.socket.createEmbeddedItem(e.speaker.actor, {
					name: "Effect: Thundering",
					type: "effect",
					system: {
						description: { value: "<p>The target is @UUID[Compendium.pf2e.conditionitems.Item.9PR9y0bi4JPKnHPR]{Deafened} for 1 hour.</p>" },
						rules: [{
							key: "GrantItem",
							onDeleteActions: { grantee: "restrict" },
							uuid: "Compendium.pf2e.conditionitems.Item.9PR9y0bi4JPKnHPR"
						}],
						slug: "effect-thundering",
						publication: {
							title: "Pathfinder Player Core",
							license: "ORC",
							remaster: !0
						},
						duration: {
							value: 1,
							unit: "hours",
							expiry: "turn-end",
							sustained: !1
						},
						context: {
							origin: {
								actor: e.origin.actor.uuid,
								token: e.origin.token.uuid,
								rollOptions: e.origin.actor.getSelfRollOptions("origin")
							},
							target: {
								actor: e.speaker.actor.uuid,
								token: e.speaker.token.uuid
							}
						}
					},
					img: Z("icons/equipment/runes/weapon-property-runes/weapon-property-runes.webp")
				})), t;
			}
		},
		{
			trigger: "saving-throw",
			predicate: ["greater-thundering", { or: ["check:outcome:failure", "check:outcome:critical-failure"] }],
			process: async (e) => {
				if (!e.speaker || !e.origin) return;
				let t = h();
				return t.removeItem.push(...await game.assistant.socket.createEmbeddedItem(e.speaker.actor, {
					name: "Effect: Greater Thundering",
					type: "effect",
					system: {
						description: { value: "<p>The target is @UUID[Compendium.pf2e.conditionitems.Item.9PR9y0bi4JPKnHPR]{Deafened} permanently.</p>" },
						rules: [{
							key: "GrantItem",
							onDeleteActions: { grantee: "restrict" },
							uuid: "Compendium.pf2e.conditionitems.Item.9PR9y0bi4JPKnHPR"
						}],
						slug: "effect-greater-thundering",
						publication: {
							title: "Pathfinder Player Core",
							license: "ORC",
							remaster: !0
						},
						duration: {
							value: -1,
							unit: "unlimited",
							expiry: null,
							sustained: !1
						},
						context: {
							origin: {
								actor: e.origin.actor.uuid,
								token: e.origin.token.uuid,
								rollOptions: e.origin.actor.getSelfRollOptions("origin")
							},
							target: {
								actor: e.speaker.actor.uuid,
								token: e.speaker.token.uuid
							}
						}
					},
					img: Z("icons/equipment/runes/weapon-property-runes/weapon-property-runes.webp")
				})), t;
			}
		}
	];
})), jC = /* @__PURE__ */ n({
	actions: () => NC,
	path: () => MC
}), MC, NC, PC = t((() => {
	Q(), MC = [
		"Items",
		"Runes",
		"Vitalizing"
	], NC = [
		{
			trigger: "damage-roll",
			predicate: [
				"check:outcome:critical-success",
				"item:rune:property:disrupting",
				"target:negative-healing"
			],
			process: async (e) => {
				e.speaker && e.targets.length === 1 && y(e.roll) && await game.assistant.socket.createEmbeddedItem(e.targets[0].actor, {
					name: "Effect: Vitalizing",
					type: "effect",
					system: {
						description: { value: "<p>The target is @UUID[Compendium.pf2e.conditionitems.Item.MIRkyAjyBeXivMa7]{Enfeebled 1} until the end of your next turn.</p>" },
						rules: [{
							key: "GrantItem",
							onDeleteActions: { grantee: "restrict" },
							uuid: "Compendium.pf2e.conditionitems.Item.MIRkyAjyBeXivMa7"
						}],
						slug: "effect-vitalizing",
						publication: {
							title: "Pathfinder Player Core",
							license: "ORC",
							remaster: !0
						},
						duration: {
							value: 1,
							unit: "rounds",
							expiry: "turn-end",
							sustained: !1
						},
						context: {
							origin: {
								actor: e.speaker.actor.uuid,
								token: e.speaker.token.uuid,
								rollOptions: e.speaker.actor.getSelfRollOptions("origin")
							},
							target: {
								actor: e.targets[0].actor.uuid,
								token: e.targets[0].token.uuid
							}
						}
					},
					img: Z("icons/equipment/runes/weapon-property-runes/weapon-property-runes.webp")
				});
			}
		},
		{
			trigger: "damage-roll",
			predicate: [
				"check:outcome:critical-success",
				"item:rune:property:greater-disrupting",
				"target:negative-healing"
			],
			process: async (e) => {
				e.speaker && e.targets.length === 1 && y(e.roll) && await game.assistant.socket.createEmbeddedItem(e.targets[0].actor, {
					name: "Effect: Greater Vitalizing",
					type: "effect",
					system: {
						description: { value: "<p>The target is @UUID[Compendium.pf2e.conditionitems.Item.MIRkyAjyBeXivMa7]{Enfeebled 1} and @UUID[Compendium.pf2e.conditionitems.Item.e1XGnhKNSQIm5IXg]{Stupefied 1} as long as it has the persistent damage from this rune.</p>" },
						rules: [{
							key: "GrantItem",
							onDeleteActions: { grantee: "restrict" },
							uuid: "Compendium.pf2e.conditionitems.Item.MIRkyAjyBeXivMa7"
						}, {
							key: "GrantItem",
							onDeleteActions: { grantee: "restrict" },
							uuid: "Compendium.pf2e.conditionitems.Item.e1XGnhKNSQIm5IXg"
						}],
						slug: "effect-greater-vitalizing",
						publication: {
							title: "Pathfinder Player Core",
							license: "ORC",
							remaster: !0
						},
						duration: {
							value: -1,
							unit: "unlimited",
							expiry: null,
							sustained: !1
						},
						context: {
							origin: {
								actor: e.speaker.actor.uuid,
								token: e.speaker.token.uuid,
								rollOptions: e.speaker.actor.getSelfRollOptions("origin")
							},
							target: {
								actor: e.targets[0].actor.uuid,
								token: e.targets[0].token.uuid
							}
						}
					},
					img: Z("icons/equipment/runes/weapon-property-runes/weapon-property-runes.webp")
				});
			}
		},
		{
			trigger: "delete-effect",
			predicate: [
				"item:persistent-damage",
				"item:damage:type:vitality",
				"self:effect:greater-vitalizing"
			],
			process: async (e) => {
				if (e.speaker && !Xe(e.speaker.actor, "vitality")) {
					let t = $e(e.speaker.actor, "effect-greater-vitalizing");
					t && await game.assistant.socket.deleteEmbeddedItem(t);
				}
			}
		}
	];
})), FC = /* @__PURE__ */ n({
	actions: () => LC,
	path: () => IC
}), IC, LC, RC = t((() => {
	Q(), IC = ["Other", "Persistent Damage"], LC = [{
		trigger: "damage-roll",
		predicate: ["condition:persistent-damage"],
		process: async (e) => {
			e.speaker && e.speaker && e.item?.isOfType("condition") && e.item.parent && y(e.roll) && (game.modules.get("xdy-pf2e-workbench")?.active && game.settings.get("xdy-pf2e-workbench", "applyPersistentDamage") || await e.speaker.actor.applyDamage({
				damage: e.roll,
				token: e.speaker.token,
				item: e.item,
				rollOptions: new Set([...e.item.getRollOptions("item"), ...e.speaker.actor.getSelfRollOptions()]),
				skipIWR: !1
			}), game.modules.get("xdy-pf2e-workbench")?.active && game.settings.get("xdy-pf2e-workbench", "applyPersistentDamageRecoveryRoll") || await e.item.rollRecovery());
		}
	}];
})), zC = /* @__PURE__ */ n({
	actions: () => VC,
	path: () => BC
}), BC, VC, HC = t((() => {
	Q(), BC = ["Other", "Persistent Healing"], VC = [{
		trigger: "damage-roll",
		predicate: ["condition:fast-healing"],
		process: async (e) => {
			e.speaker && e.speaker && y(e.roll) && (game.modules.get("xdy-pf2e-workbench")?.active && game.settings.get("xdy-pf2e-workbench", "applyPersistentHealing") || await e.speaker.actor.applyDamage({
				damage: -(e.roll.total ?? 0),
				token: e.speaker.token,
				rollOptions: new Set([...e.speaker.actor.getSelfRollOptions()]),
				skipIWR: !0
			}));
		}
	}];
})), UC = /* @__PURE__ */ n({
	actions: () => GC,
	path: () => WC
}), WC, GC, KC = t((() => {
	Q(), WC = ["Other", "Self-Applied Effects"], GC = [{
		trigger: "self-effect",
		predicate: [],
		process: async (e) => {
			if (game.modules.get("pf2e-toolbelt")?.active && game.settings.get("pf2e-toolbelt", "actionable.apply") || !e.speaker || !e.item || !e.chatMessage) return;
			let t = e.item.isOfType("action", "feat") && e.item.system.selfEffect ? await fromUuid(e.item.system.selfEffect.uuid) : null;
			if (t) {
				let n = e.item.system.traits.value?.filter((e) => e in t.constructor.validTraits) ?? [], r = foundry.utils.mergeObject(t.toObject(), {
					_id: null,
					system: {
						context: {
							origin: {
								actor: e.speaker.actor.uuid,
								token: e.speaker.token.uuid,
								item: e.item.uuid,
								spellcasting: null,
								rollOptions: e.item.getOriginData().rollOptions
							},
							target: {
								actor: e.speaker.actor.uuid,
								token: e.speaker.token.uuid
							},
							roll: null
						},
						traits: { value: n }
					}
				});
				await game.assistant.socket.createEmbeddedItem(e.speaker.actor, r);
				let i = (() => {
					let t = document.createElement("div");
					return t.innerHTML = e.chatMessage.content, t;
				})(), a = bt(i, ".message-buttons");
				if (a) {
					let n = yt("span", { classes: ["effect-applied"] }), r = t.toAnchor({ attrs: { draggable: "true" } });
					n.innerHTML = game.i18n.localize("PF2E.Item.Ability.SelfAppliedEffect.Applied", { effect: r.outerHTML }), bt(a, "button[data-action=apply-effect]")?.replaceWith(n), await e.chatMessage.update({
						flags: { "pf2e-assistant": { process: !1 } },
						content: i.innerHTML
					});
				}
			}
		}
	}];
})), qC = /* @__PURE__ */ n({
	actions: () => YC,
	path: () => JC
}), JC, YC, XC = t((() => {
	JC = [
		"Spells",
		"1st Rank",
		"Agile Feet"
	], YC = [{
		trigger: "spell-cast",
		predicate: ["item:agile-feet"],
		process: async (e) => {
			e.speaker && e.item?.isOfType("spell") && await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.spell-effects.Item.y9PJdDYFemhk6Z5o", {
				origin: e.speaker,
				item: e.item,
				target: e.speaker
			});
		}
	}];
})), ZC = /* @__PURE__ */ n({
	actions: () => $C,
	path: () => QC
}), QC, $C, ew = t((() => {
	QC = [
		"Spells",
		"1st Rank",
		"Angelic Halo"
	], $C = [{
		trigger: "spell-cast",
		predicate: ["item:angelic-halo"],
		process: async (e) => {
			e.speaker && e.item?.isOfType("spell") && await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.spell-effects.Item.jPZXZjetdauqYuEH", {
				origin: e.speaker,
				item: e.item,
				target: e.speaker
			});
		}
	}];
})), tw = /* @__PURE__ */ n({
	actions: () => rw,
	path: () => nw
}), nw, rw, iw = t((() => {
	nw = [
		"Spells",
		"1st Rank",
		"Ant Haul"
	], rw = [{
		trigger: "spell-cast",
		predicate: ["item:ant-haul"],
		process: async (e) => {
			e.speaker && e.targets.length === 1 && e.item?.isOfType("spell") && await game.assistant.socket.addEffect(e.targets[0].actor, "Compendium.pf2e.spell-effects.Item.5yCL7InrJDHpaQjz", {
				origin: e.speaker,
				item: e.item,
				target: e.targets[0]
			});
		}
	}];
})), aw = /* @__PURE__ */ n({
	actions: () => sw,
	path: () => ow
}), ow, sw, cw = t((() => {
	ow = [
		"Spells",
		"1st Rank",
		"Anticipate Peril"
	], sw = [{
		trigger: "spell-cast",
		predicate: ["item:anticipate-peril"],
		process: async (e) => {
			e.speaker && e.targets.length === 1 && e.item?.isOfType("spell") && await game.assistant.socket.addEffect(e.targets[0].actor, "Compendium.pf2e.spell-effects.Item.4ag0OHKfjROmR4Pm", {
				origin: e.speaker,
				item: e.item,
				target: e.targets[0]
			});
		}
	}];
})), lw = /* @__PURE__ */ n({
	actions: () => dw,
	path: () => uw
}), uw, dw, fw = t((() => {
	$(), Q(), uw = [
		"Spells",
		"1st Rank",
		"Aqueous Blast"
	], dw = [{
		trigger: "attack-roll",
		predicate: [
			"item:type:spell",
			"item:aqueous-blast",
			"check:outcome:critical-success"
		],
		process: async (e) => {
			if (!e.speaker || e.targets.length !== 1 || !e.item?.isOfType("spell") || !b(e.roll)) return;
			let t = h();
			return t.updateCondition.push(...await game.assistant.socket.toggleCondition(e.targets[0].actor, "prone", { active: !0 }) ?? []), t;
		}
	}];
})), pw = /* @__PURE__ */ n({
	actions: () => hw,
	path: () => mw
}), mw, hw, gw = t((() => {
	mw = [
		"Spells",
		"1st Rank",
		"Athletic Rush"
	], hw = [{
		trigger: "spell-cast",
		predicate: ["item:athletic-rush"],
		process: async (e) => {
			e.speaker && e.item?.isOfType("spell") && await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.spell-effects.Item.57lnrCzGUcNUBP2O", {
				origin: e.speaker,
				item: e.item,
				target: e.speaker
			});
		}
	}];
})), _w = /* @__PURE__ */ n({
	actions: () => yw,
	path: () => vw
}), vw, yw, bw = t((() => {
	vw = [
		"Spells",
		"1st Rank",
		"Benediction"
	], yw = [{
		trigger: "spell-cast",
		predicate: ["item:benediction"],
		process: async (e) => {
			e.speaker && e.item?.isOfType("spell") && await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.spell-effects.Item.GogALNdgQ7Fn5oMG", {
				origin: e.speaker,
				item: e.item,
				target: e.speaker
			});
		}
	}];
})), xw = /* @__PURE__ */ n({
	actions: () => Cw,
	path: () => Sw
}), Sw, Cw, ww = t((() => {
	Sw = [
		"Spells",
		"1st Rank",
		"Boost Eidolon"
	], Cw = [{
		trigger: "spell-cast",
		predicate: ["item:boost-eidolon"],
		process: async (e) => {
			e.speaker && e.targets.length === 1 && e.item?.isOfType("spell") && await game.assistant.socket.addEffect(e.targets[0].actor, "Compendium.pf2e.spell-effects.Item.h0CKGrgjGNSg21BW", {
				origin: e.speaker,
				item: e.item,
				target: e.targets[0]
			});
		}
	}];
})), Tw = /* @__PURE__ */ n({
	actions: () => Dw,
	path: () => Ew
}), Ew, Dw, Ow = t((() => {
	Ew = [
		"Spells",
		"1st Rank",
		"Bull Horn"
	], Dw = [{
		trigger: "spell-cast",
		predicate: ["item:bullhorn"],
		process: async (e) => {
			e.speaker && e.item?.isOfType("spell") && await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.spell-effects.Item.9yzlmYUdvdQshTDF", {
				origin: e.speaker,
				item: e.item,
				target: e.speaker
			});
		}
	}];
})), kw = /* @__PURE__ */ n({
	actions: () => jw,
	path: () => Aw
}), Aw, jw, Mw = t((() => {
	$(), Q(), Aw = [
		"Spells",
		"1st Rank",
		"Buzzing Bites"
	], jw = [{
		trigger: "saving-throw",
		predicate: [
			"item:type:spell",
			"item:buzzing-bites",
			"check:outcome:critical-failure"
		],
		process: async (e) => {
			if (!e.origin || !e.speaker || !e.item?.isOfType("spell") || !b(e.roll)) return;
			let t = h();
			return t.removeItem.push(...await game.assistant.socket.createEmbeddedItem(e.speaker.actor, {
				name: "Spell Effect: Buzzing Bites",
				type: "effect",
				system: {
					description: { value: "<p>The target is @UUID[Compendium.pf2e.conditionitems.Item.fesd1n5eVhpCSS18]{Sickened 1} by the crawling insects. The sickened value can't be reduced below 1 while the spell is active.</p>" },
					rules: [{
						key: "GrantItem",
						onDeleteActions: { grantee: "restrict" },
						uuid: "Compendium.pf2e.conditionitems.Item.fesd1n5eVhpCSS18"
					}],
					slug: "spell-effect-buzzing-bites",
					publication: {
						license: "ORC",
						remaster: !0,
						title: "Pathfinder Lost Omens Divine Mysteries"
					},
					level: { value: e.item.rank },
					duration: {
						value: -1,
						unit: "unlimited",
						expiry: null,
						sustained: !1
					},
					context: {
						origin: {
							actor: e.origin.actor.uuid,
							token: e.origin.token.uuid,
							item: e.item.uuid,
							spellcasting: {
								attribute: {
									type: e.item.attribute,
									mod: e.item.spellcasting?.statistic?.attributeModifier?.value ?? 0
								},
								tradition: e.item.spellcasting?.tradition
							},
							rollOptions: _(e.origin.actor, e.item)
						},
						target: {
							actor: e.speaker.actor.uuid,
							token: e.speaker.token.uuid
						},
						roll: {
							total: e.roll.total,
							degreeOfSuccess: e.roll.degreeOfSuccess
						}
					}
				},
				img: "icons/creatures/invertebrates/fly-wasp-mosquito-green.webp"
			})), t;
		}
	}];
})), Nw = /* @__PURE__ */ n({
	actions: () => Fw,
	path: () => Pw
}), Pw, Fw, Iw = t((() => {
	Q(), Pw = [
		"Spells",
		"1st Rank",
		"Courageous Anthem"
	], Fw = [{
		trigger: "spell-cast",
		predicate: ["item:courageous-anthem"],
		process: async (e) => {
			if (e.speaker && e.item?.isOfType("spell")) for (let t of e.targets) (rt(e.speaker.actor, t.actor) || e.speaker.actor === t.actor) && await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.spell-effects.Item.beReeFroAx24hj83", {
				origin: e.speaker,
				item: e.item,
				target: t
			});
		}
	}];
})), Lw = /* @__PURE__ */ n({
	actions: () => zw,
	path: () => Rw
}), Rw, zw, Bw = t((() => {
	$(), Rw = [
		"Spells",
		"1st Rank",
		"Daze"
	], zw = [{
		trigger: "saving-throw",
		predicate: [
			"item:type:spell",
			"item:daze",
			"check:outcome:critical-failure"
		],
		process: async (e) => {
			if (!e.speaker) return;
			let t = h();
			return t.updateCondition.push(...await game.assistant.socket.addCondition(e.speaker.actor, "stunned", { value: 1 }) ?? []), t;
		}
	}];
})), Vw = /* @__PURE__ */ n({
	actions: () => Uw,
	path: () => Hw
}), Hw, Uw, Ww = t((() => {
	Hw = [
		"Spells",
		"1st Rank",
		"Eat Fire"
	], Uw = [{
		trigger: "spell-cast",
		predicate: ["item:eat-fire"],
		process: async (e) => {
			e.speaker && e.item?.isOfType("spell") && await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.spell-effects.Item.BGv44XBGtD4zOJBd", {
				origin: e.speaker,
				item: e.item,
				target: e.speaker
			});
		}
	}];
})), Gw = /* @__PURE__ */ n({
	actions: () => qw,
	path: () => Kw
}), Kw, qw, Jw = t((() => {
	Kw = [
		"Spells",
		"1st Rank",
		"Figment"
	], qw = [{
		trigger: "spell-cast",
		predicate: ["item:figment"],
		process: async (e) => {
			e.speaker && e.item?.isOfType("spell") && await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.spell-effects.Item.2Hg3a06gZCSnUgSA", {
				origin: e.speaker,
				item: e.item,
				target: e.speaker
			});
		}
	}];
})), Yw = /* @__PURE__ */ n({
	actions: () => Zw,
	path: () => Xw
}), Xw, Zw, Qw = t((() => {
	Xw = [
		"Spells",
		"1st Rank",
		"Forbidding Ward"
	], Zw = [{
		trigger: "spell-cast",
		predicate: ["item:forbidding-ward"],
		process: async (e) => {
			e.speaker && e.targets.length === 1 && e.item?.isOfType("spell") && await game.assistant.socket.addEffect(e.targets[0].actor, "Compendium.pf2e.spell-effects.Item.ctMxYPGEpstvhW9C", {
				origin: e.speaker,
				item: e.item,
				target: e.targets[0]
			});
		}
	}];
})), $w = /* @__PURE__ */ n({
	actions: () => tT,
	path: () => eT
}), eT, tT, nT = t((() => {
	$(), Q(), eT = [
		"Spells",
		"1st Rank",
		"Frostbite"
	], tT = [{
		trigger: "saving-throw",
		predicate: [
			"item:type:spell",
			"item:frostbite",
			"check:outcome:critical-failure"
		],
		process: async (e) => {
			if (!e.speaker || !e.origin || !e.item?.isOfType("spell") || !b(e.roll)) return;
			let t = h();
			return t.removeItem.push(...await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.spell-effects.Item.DdqWMj7cuf4S1bgr", {
				origin: e.origin,
				item: e.item,
				target: e.speaker,
				roll: e.roll
			})), t;
		}
	}];
})), rT = /* @__PURE__ */ n({
	actions: () => aT,
	path: () => iT
}), iT, aT, oT = t((() => {
	iT = [
		"Spells",
		"1st Rank",
		"Glass Shield"
	], aT = [{
		trigger: "spell-cast",
		predicate: ["item:glass-shield"],
		process: async (e) => {
			e.speaker && e.item?.isOfType("spell") && await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.spell-effects.Item.oDDS6D2KTjpbA491", {
				origin: e.speaker,
				item: e.item,
				target: e.speaker
			});
		}
	}];
})), sT = /* @__PURE__ */ n({
	actions: () => lT,
	path: () => cT
}), cT, lT, uT = t((() => {
	Q(), cT = [
		"Spells",
		"1st Rank",
		"Guidance"
	], lT = [{
		trigger: "spell-cast",
		predicate: ["item:guidance"],
		process: async (e) => {
			if (e.speaker && e.targets.length === 1 && e.item?.isOfType("spell")) {
				if (Ze(e.targets[0].actor, "effect-guidance-immunity")) {
					ui.notifications.warn("The target is temporarily immune to Guidance.");
					return;
				}
				await game.assistant.socket.addEffect(e.targets[0].actor, "Compendium.pf2e.spell-effects.Item.3qHKBDF7lrHw8jFK", {
					origin: e.speaker,
					item: e.item,
					target: e.targets[0]
				}), await game.assistant.socket.addEffect(e.targets[0].actor, "Compendium.pf2e.spell-effects.Item.3LyOkV25p7wA181H", {
					origin: e.speaker,
					item: e.item,
					target: e.targets[0]
				});
			}
		}
	}];
})), dT = /* @__PURE__ */ n({
	actions: () => pT,
	path: () => fT
}), fT, pT, mT = t((() => {
	fT = [
		"Spells",
		"1st Rank",
		"Infectious Enthusiasm"
	], pT = [{
		trigger: "spell-cast",
		predicate: ["item:infectious_enthusiasm"],
		process: async (e) => {
			e.speaker && e.item?.isOfType("spell") && await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.spell-effects.Item.nU4SxAk6XreHUi5h", {
				origin: e.speaker,
				item: e.item,
				target: e.speaker
			});
		}
	}];
})), hT = /* @__PURE__ */ n({
	actions: () => _T,
	path: () => gT
}), gT, _T, vT = t((() => {
	gT = [
		"Spells",
		"1st Rank",
		"Inside Ropes"
	], _T = [{
		trigger: "spell-cast",
		predicate: ["item:inside-ropes", { gte: ["item:rank", 3] }],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("spell")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.spell-effects.Item.T3t9776ataHzrmTs", {
				origin: e.speaker,
				item: e.item,
				target: t
			});
		}
	}];
})), yT = /* @__PURE__ */ n({
	actions: () => xT,
	path: () => bT
}), bT, xT, ST = t((() => {
	bT = [
		"Spells",
		"1st Rank",
		"Lay on Hands"
	], xT = [{
		trigger: "damage-roll",
		predicate: [
			"item:lay-on-hands",
			"target:ally",
			{ not: "target:mode:undead" }
		],
		process: async (e) => {
			e.item?.isOfType("spell") && e.item.damageKinds.has("healing") && e.speaker && e.targets.length === 1 && e.speaker.actor.signature !== e.targets[0].actor.signature && await game.assistant.socket.addEffect(e.targets[0].actor, "Compendium.pf2e.spell-effects.Item.lyLMiauxIVUM3oF1", {
				origin: e.speaker,
				item: e.item,
				target: e.targets[0]
			});
		}
	}];
})), CT = /* @__PURE__ */ n({
	actions: () => TT,
	path: () => wT
}), wT, TT, ET = t((() => {
	wT = [
		"Spells",
		"1st Rank",
		"Light"
	], TT = [{
		trigger: "spell-cast",
		predicate: ["item:light"],
		process: async (e) => {
			e.speaker && e.targets.length === 1 && e.item?.isOfType("spell") && await game.assistant.socket.addEffect(e.targets[0].actor, "Compendium.pf2e.spell-effects.Item.cVVZXNbV0nElVOPZ", {
				origin: e.speaker,
				item: e.item,
				target: e.targets[0]
			});
		}
	}];
})), DT = /* @__PURE__ */ n({
	actions: () => kT,
	path: () => OT
}), OT, kT, AT = t((() => {
	OT = [
		"Spells",
		"1st Rank",
		"Musical Accompaniment"
	], kT = [{
		trigger: "spell-cast",
		predicate: ["item:musical-accompaniment", { lt: ["item:rank", 2] }],
		process: async (e) => {
			e.speaker && e.item?.isOfType("spell") && await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.spell-effects.Item.nLige83aiMBh0ylb", {
				origin: e.speaker,
				item: e.item,
				target: e.speaker
			});
		}
	}, {
		trigger: "spell-cast",
		predicate: ["item:musical-accompaniment", { gte: ["item:rank", 2] }],
		process: async (e) => {
			e.speaker && e.item?.isOfType("spell") && await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.spell-effects.Item.nLige83aiMBh0ylb", {
				origin: e.speaker,
				item: e.item,
				target: e.speaker,
				duration: {
					expiry: "turn-start",
					sustained: !1,
					unit: "minutes",
					value: 10
				}
			});
		}
	}];
})), jT = /* @__PURE__ */ n({
	actions: () => NT,
	path: () => MT
}), MT, NT, PT = t((() => {
	MT = [
		"Spells",
		"1st Rank",
		"Mystic Armor"
	], NT = [{
		trigger: "spell-cast",
		predicate: ["item:mystic-armor"],
		process: async (e) => {
			e.speaker && e.item?.isOfType("spell") && await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.spell-effects.Item.qkwb5DD3zmKwvbk0", {
				origin: e.speaker,
				item: e.item,
				target: e.speaker
			});
		}
	}];
})), FT = /* @__PURE__ */ n({
	actions: () => LT,
	path: () => IT
}), IT, LT, RT = t((() => {
	Q(), IT = [
		"Spells",
		"1st Rank",
		"Precious Gleam"
	], LT = [{
		trigger: "spell-cast",
		predicate: ["item:precious-gleam"],
		process: async (e) => {
			e.speaker && e.targets.length === 1 && e.item?.isOfType("spell") && await game.assistant.socket.addEffect(e.targets[0].actor, "Compendium.pf2e.spell-effects.Item.ojC0jckNHOEIFFtB", {
				origin: e.speaker,
				item: e.item,
				target: e.speaker
			});
		}
	}, {
		trigger: "damage-roll",
		predicate: ["self:effect:precious-gleam"],
		process: async (e) => {
			if (!e.speaker) return;
			let t = et(e.speaker.actor, ["spell-effect-precious-gleam"]);
			for (let n of t) Tl(n._source, { flag: "weapon" }) === e.item?.id && await game.assistant.socket.deleteEmbeddedItem(n);
		}
	}];
})), zT = /* @__PURE__ */ n({
	actions: () => VT,
	path: () => BT
}), BT, VT, HT = t((() => {
	BT = [
		"Spells",
		"1st Rank",
		"Protect Companion"
	], VT = [{
		trigger: "spell-cast",
		predicate: ["item:protect-companion"],
		process: async (e) => {
			e.speaker && e.targets.length === 1 && e.item?.isOfType("spell") && await game.assistant.socket.addEffect(e.targets[0].actor, "Compendium.pf2e.spell-effects.Item.pPMldkAbPVOSOPIF", {
				origin: e.speaker,
				item: e.item,
				target: e.targets[0]
			});
		}
	}];
})), UT = /* @__PURE__ */ n({
	actions: () => GT,
	path: () => WT
}), WT, GT, KT = t((() => {
	$(), Q(), WT = [
		"Spells",
		"1st Rank",
		"Ray of Frost"
	], GT = [{
		trigger: "attack-roll",
		predicate: [
			"item:type:spell",
			"item:ray-of-frost",
			"check:outcome:critical-success"
		],
		process: async (e) => {
			if (!e.speaker || e.targets.length !== 1 || !e.item?.isOfType("spell") || !b(e.roll)) return;
			let t = h();
			return t.removeItem.push(...await game.assistant.socket.addEffect(e.targets[0].actor, "Compendium.pf2e.spell-effects.Item.I4PsUAaYSUJ8pwKC", {
				origin: e.speaker,
				item: e.item,
				target: e.speaker,
				roll: e.roll
			})), t;
		}
	}];
})), qT = /* @__PURE__ */ n({
	actions: () => YT,
	path: () => JT
}), JT, YT, XT = t((() => {
	JT = [
		"Spells",
		"1st Rank",
		"Read Aura"
	], YT = [{
		trigger: "spell-cast",
		predicate: ["item:read-aura"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("spell")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.spell-effects.Item.J6OhRNSN23KzOPRL", {
				origin: e.speaker,
				item: e.item,
				target: t
			});
		}
	}];
})), ZT = /* @__PURE__ */ n({
	actions: () => $T,
	path: () => QT
}), QT, $T, eE = t((() => {
	QT = [
		"Spells",
		"1st Rank",
		"Read the Air"
	], $T = [{
		trigger: "spell-cast",
		predicate: ["item:read-the-air"],
		process: async (e) => {
			e.speaker && e.item?.isOfType("spell") && await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.spell-effects.Item.a3uZckqOY9zQWzZ2", {
				origin: e.speaker,
				item: e.item,
				target: e.speaker
			});
		}
	}];
})), tE = /* @__PURE__ */ n({
	actions: () => rE,
	path: () => nE
}), nE, rE, iE = t((() => {
	nE = [
		"Spells",
		"1st Rank",
		"Rousing Splash"
	], rE = [{
		trigger: "spell-cast",
		predicate: ["item:rousing-splash"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("spell")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.spell-effects.Item.IYvzqymG4xOhqFir", {
				origin: e.speaker,
				item: e.item,
				target: t
			});
		}
	}];
})), aE, oE, sE = t((() => {
	J(), fl(), aE = W([
		"multiply",
		"add",
		"subtract",
		"remove",
		"downgrade",
		"upgrade",
		"override"
	]), oE = W([
		"applyAEs",
		"beforeDerived",
		"afterDerived",
		"beforeRoll"
	]), dl.extend({
		key: W("ActiveEffectLike"),
		testDomains: V(R()).optional(),
		mode: aE.optional(),
		path: R().optional(),
		phase: oE.optional(),
		value: ul.optional(),
		merge: B().optional()
	});
})), cE, lE, uE = t((() => {
	J(), ol(), sE(), fl(), cE = H({
		label: R(),
		value: R(),
		predicate: X.optional()
	}), lE = dl.extend({
		key: W("RollOption"),
		domain: R().optional(),
		option: R().optional(),
		phase: oE.optional(),
		suboptions: U([V(cE), H({
			config: R(),
			predicate: X.optional()
		})]).optional(),
		mergeable: B().optional(),
		value: U([B(), R()]).optional(),
		selection: R().optional(),
		toggleable: U([W("totm"), B()]).optional(),
		placement: R().optional(),
		disabledIf: X.optional(),
		disabledValue: B().optional(),
		alwaysActive: B().optional(),
		count: B().optional(),
		removeAfterRoll: B().optional()
	});
})), dE = /* @__PURE__ */ n({
	actions: () => pE,
	path: () => fE
}), fE, pE, mE = t((() => {
	uE(), wl(), m(), Q(), fE = [
		"Spells",
		"1st Rank",
		"Shield"
	], pE = [
		{
			trigger: "spell-cast",
			predicate: ["item:shield", { not: "item:tag:psi-cantrip" }],
			process: async (e) => {
				if (e.speaker && e.item?.isOfType("spell")) {
					if (Ze(e.speaker.actor, "effect-shield-immunity")) {
						ui.notifications.warn(`${e.speaker.actor.name} is temporarily unable to cast Shield.`);
						return;
					}
					await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.spell-effects.Item.Jemq5UknGdMO7b73", {
						origin: e.speaker,
						item: e.item,
						target: e.speaker
					});
				}
			}
		},
		{
			trigger: "spell-cast",
			predicate: [
				"item:shield",
				"item:tag:psi-cantrip",
				{ not: "item:tag:amped" }
			],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("spell")) return;
				let t = e.targets[0] ?? e.speaker;
				if (Ze(e.speaker.actor, "effect-shield-immunity")) {
					ui.notifications.warn(`${e.speaker.actor.name} is temporarily unable to cast Shield.`);
					return;
				}
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.spell-effects.Item.Jemq5UknGdMO7b73", {
					origin: e.speaker,
					item: e.item,
					target: t
				});
			}
		},
		{
			trigger: "spell-cast",
			predicate: [
				"item:shield",
				"item:tag:psi-cantrip",
				"item:tag:amped"
			],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("spell")) return;
				let t = e.targets[0] ?? e.speaker;
				if (Ze(e.speaker.actor, "effect-shield-immunity")) {
					ui.notifications.warn(`${e.speaker.actor.name} is temporarily unable to cast Shield.`);
					return;
				}
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.spell-effects.Item.N1b28wOrZmuSjN9i", {
					origin: e.speaker,
					item: e.item,
					target: t
				});
			}
		},
		{
			trigger: "damage-taken",
			predicate: ["self:effect:shield", "self:shield:block"],
			process: async (e) => {
				if (!e.speaker) return;
				let t = $e(e.speaker.actor, "spell-effect-shield");
				if (t) {
					let e = t.origin;
					e && await game.assistant.socket.addEmbeddedItem(e, "Compendium.pf2e.spell-effects.Item.QF6RDlCoTvkVHRo4", { system: {
						context: t.system.context ?? null,
						level: t.system.level
					} }), await game.assistant.socket.deleteEmbeddedItem(t);
				}
			}
		},
		{
			trigger: "damage-taken",
			predicate: ["self:effect:shield-amped", "self:shield:block"],
			process: async (e) => {
				if (!e.speaker) return;
				let t = $e(e.speaker.actor, "spell-effect-shield-amped");
				if (t) {
					let e = t.origin, n = t.system.badge?.value, r = t.system.rules.filter((e) => Cl(e, lE)).find((e) => e.option === "shield-block-layers"), i = Number(r?.selection ?? "1");
					p(n) && ye(n) && (n - i === 0 ? (e && await game.assistant.socket.addEmbeddedItem(e, "Compendium.pf2e.spell-effects.Item.QF6RDlCoTvkVHRo4", { system: {
						context: t.system.context ?? null,
						level: t.system.level
					} }), await game.assistant.socket.deleteEmbeddedItem(t)) : await game.assistant.socket.updateEmbeddedItem(t, { system: { badge: { value: n - i } } }));
				}
			}
		}
	];
})), hE = /* @__PURE__ */ n({
	actions: () => _E,
	path: () => gE
}), gE, _E, vE = t((() => {
	Q(), gE = [
		"Spells",
		"1st Rank",
		"Song of Strength"
	], _E = [{
		trigger: "spell-cast",
		predicate: ["item:song-of-strength"],
		process: async (e) => {
			if (e.speaker && e.item?.isOfType("spell")) for (let t of e.targets) (rt(e.speaker.actor, t.actor) || e.speaker.actor === t.actor) && await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.spell-effects.Item.8adLKKzJy49USYJt", {
				origin: e.speaker,
				item: e.item,
				target: t
			});
		}
	}];
})), yE = /* @__PURE__ */ n({
	actions: () => xE,
	path: () => bE
}), bE, xE, SE = t((() => {
	bE = [
		"Spells",
		"1st Rank",
		"Stabilize"
	], xE = [{
		trigger: "spell-cast",
		predicate: ["item:stabilize", "target:condition:dying"],
		process: async (e) => {
			e.speaker && e.targets.length === 1 && e.item?.isOfType("spell") && (await game.assistant.socket.decreaseCondition(e.targets[0].actor, "dying", { forceRemove: !0 }), !(game.modules.get("xdy-pf2e-workbench")?.active && game.settings.get("xdy-pf2e-workbench", "giveUnconsciousIfDyingRemovedAt0HP")) && e.targets[0].actor.hitPoints?.value === 0 && await game.assistant.socket.toggleCondition(e.targets[0].actor, "unconscious", { active: !0 }), game.modules.get("xdy-pf2e-workbench")?.active && game.settings.get("xdy-pf2e-workbench", "giveWoundedWhenDyingRemoved") || await game.assistant.socket.increaseCondition(e.targets[0].actor, "wounded"));
		}
	}];
})), CE = /* @__PURE__ */ n({
	actions: () => TE,
	path: () => wE
}), wE, TE, EE = t((() => {
	wE = [
		"Spells",
		"1st Rank",
		"Tailwind"
	], TE = [{
		trigger: "spell-cast",
		predicate: ["item:tailwind", { lt: ["item:rank", 2] }],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("spell")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.spell-effects.Item.PQHP7Oph3BQX1GhF", {
				origin: e.speaker,
				item: e.item,
				target: t
			});
		}
	}, {
		trigger: "spell-cast",
		predicate: ["item:tailwind", { gte: ["item:rank", 2] }],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("spell")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.spell-effects.Item.7vIUF5zbvHzVcJA0", {
				origin: e.speaker,
				item: e.item,
				target: t
			});
		}
	}];
})), DE = /* @__PURE__ */ n({
	actions: () => kE,
	path: () => OE
}), OE, kE, AE = t((() => {
	OE = [
		"Spells",
		"1st Rank",
		"Take Root"
	], kE = [{
		trigger: "spell-cast",
		predicate: ["item:take-root"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("spell")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.spell-effects.Item.ZGzhNFB3SM8owk85", {
				origin: e.speaker,
				item: e.item,
				target: t
			});
		}
	}];
})), jE = /* @__PURE__ */ n({
	actions: () => NE,
	path: () => ME
}), ME, NE, PE = t((() => {
	$(), Q(), ME = [
		"Spells",
		"1st Rank",
		"Tangle Vine"
	], NE = [
		{
			trigger: "attack-roll",
			predicate: [
				"item:type:spell",
				"item:tangle-vine",
				"check:outcome:success",
				{ lt: ["item:rank", 2] }
			],
			process: async (e) => {
				if (!e.speaker || e.targets.length !== 1 || !e.item?.isOfType("spell") || !b(e.roll)) return;
				let t = h();
				return t.removeItem.push(...await game.assistant.socket.addEffect(e.targets[0].actor, "Compendium.pf2e.spell-effects.Item.TwtUIEyenrtAbeiX", {
					origin: e.speaker,
					item: e.item,
					target: e.speaker,
					roll: e.roll,
					choiceSet: { selection: "success" }
				})), t;
			}
		},
		{
			trigger: "attack-roll",
			predicate: [
				"item:type:spell",
				"item:tangle-vine",
				"check:outcome:critical-success",
				{ lt: ["item:rank", 2] }
			],
			process: async (e) => {
				if (!e.speaker || e.targets.length !== 1 || !e.item?.isOfType("spell") || !b(e.roll)) return;
				let t = h();
				return t.removeItem.push(...await game.assistant.socket.addEffect(e.targets[0].actor, "Compendium.pf2e.spell-effects.Item.TwtUIEyenrtAbeiX", {
					origin: e.speaker,
					item: e.item,
					target: e.speaker,
					roll: e.roll,
					choiceSet: { selection: "critical-success" }
				})), t;
			}
		},
		{
			trigger: "attack-roll",
			predicate: [
				"item:type:spell",
				"item:tangle-vine",
				"check:outcome:success",
				{ gte: ["item:rank", 3] },
				{ lt: ["item:rank", 4] }
			],
			process: async (e) => {
				if (!e.speaker || e.targets.length !== 1 || !e.item?.isOfType("spell") || !b(e.roll)) return;
				let t = h();
				return t.removeItem.push(...await game.assistant.socket.addEffect(e.targets[0].actor, "Compendium.pf2e.spell-effects.Item.TwtUIEyenrtAbeiX", {
					origin: e.speaker,
					item: e.item,
					target: e.speaker,
					roll: e.roll,
					duration: {
						expiry: "turn-start",
						sustained: !1,
						unit: "rounds",
						value: 2
					},
					choiceSet: { selection: "success" }
				})), t;
			}
		},
		{
			trigger: "attack-roll",
			predicate: [
				"item:type:spell",
				"item:tangle-vine",
				"check:outcome:critical-success",
				{ gte: ["item:rank", 3] },
				{ lt: ["item:rank", 4] }
			],
			process: async (e) => {
				if (!e.speaker || e.targets.length !== 1 || !e.item?.isOfType("spell") || !b(e.roll)) return;
				let t = h();
				return t.removeItem.push(...await game.assistant.socket.addEffect(e.targets[0].actor, "Compendium.pf2e.spell-effects.Item.TwtUIEyenrtAbeiX", {
					origin: e.speaker,
					item: e.item,
					target: e.speaker,
					roll: e.roll,
					duration: {
						expiry: "turn-start",
						sustained: !1,
						unit: "rounds",
						value: 2
					},
					choiceSet: { selection: "critical-success" }
				})), t;
			}
		},
		{
			trigger: "attack-roll",
			predicate: [
				"item:type:spell",
				"item:tangle-vine",
				"check:outcome:success",
				{ gte: ["item:rank", 4] }
			],
			process: async (e) => {
				if (!e.speaker || e.targets.length !== 1 || !e.item?.isOfType("spell") || !b(e.roll)) return;
				let t = h();
				return t.removeItem.push(...await game.assistant.socket.addEffect(e.targets[0].actor, "Compendium.pf2e.spell-effects.Item.TwtUIEyenrtAbeiX", {
					origin: e.speaker,
					item: e.item,
					target: e.speaker,
					roll: e.roll,
					duration: {
						expiry: "turn-start",
						sustained: !1,
						unit: "minutes",
						value: 1
					},
					choiceSet: { selection: "success" }
				})), t;
			}
		},
		{
			trigger: "attack-roll",
			predicate: [
				"item:type:spell",
				"item:tangle-vine",
				"check:outcome:critical-success",
				{ gte: ["item:rank", 4] }
			],
			process: async (e) => {
				if (!e.speaker || e.targets.length !== 1 || !e.item?.isOfType("spell") || !b(e.roll)) return;
				let t = h();
				return t.removeItem.push(...await game.assistant.socket.addEffect(e.targets[0].actor, "Compendium.pf2e.spell-effects.Item.TwtUIEyenrtAbeiX", {
					origin: e.speaker,
					item: e.item,
					target: e.speaker,
					roll: e.roll,
					duration: {
						expiry: "turn-start",
						sustained: !1,
						unit: "minutes",
						value: 1
					},
					choiceSet: { selection: "critical-success" }
				})), t;
			}
		}
	];
})), FE = /* @__PURE__ */ n({
	actions: () => LE,
	path: () => IE
}), IE, LE, RE = t((() => {
	IE = [
		"Spells",
		"1st Rank",
		"Warp Step"
	], LE = [{
		trigger: "spell-cast",
		predicate: ["item:warp-step"],
		process: async (e) => {
			e.speaker && e.item?.isOfType("spell") && await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.spell-effects.Item.9Tl9jGUKoj0wS73d", {
				origin: e.speaker,
				item: e.item,
				target: e.speaker
			});
		}
	}];
})), zE = /* @__PURE__ */ n({
	actions: () => VE,
	path: () => BE
}), BE, VE, HE = t((() => {
	BE = [
		"Spells",
		"1st Rank",
		"Weapon Surge"
	], VE = [{
		trigger: "spell-cast",
		predicate: ["item:weapon-surge"],
		process: async (e) => {
			e.speaker && e.item?.isOfType("spell") && await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.spell-effects.Item.qlz0sJIvqc0FdUdr", {
				origin: e.speaker,
				item: e.item,
				target: e.speaker
			});
		}
	}];
})), UE = /* @__PURE__ */ n({
	actions: () => GE,
	path: () => WE
}), WE, GE, KE = t((() => {
	WE = [
		"Spells",
		"1st Rank",
		"Wooden Fists"
	], GE = [{
		trigger: "spell-cast",
		predicate: ["item:wooden-fists"],
		process: async (e) => {
			e.speaker && e.item?.isOfType("spell") && await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.spell-effects.Item.z2PYQCsDDoBZUwR5", {
				origin: e.speaker,
				item: e.item,
				target: e.speaker
			});
		}
	}];
})), qE = /* @__PURE__ */ n({
	actions: () => YE,
	path: () => JE
}), JE, YE, XE = t((() => {
	JE = [
		"Spells",
		"2nd Rank",
		"Darkvision"
	], YE = [
		{
			trigger: "spell-cast",
			predicate: ["item:darkvision", { lt: ["item:rank", 3] }],
			process: async (e) => {
				e.speaker && e.item?.isOfType("spell") && await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.spell-effects.Item.IXS15IQXYCZ8vsmX", {
					origin: e.speaker,
					item: e.item,
					target: e.speaker
				});
			}
		},
		{
			trigger: "spell-cast",
			predicate: [
				"item:darkvision",
				{ gte: ["item:rank", 3] },
				{ lt: ["item:rank", 5] }
			],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("spell")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.spell-effects.Item.IXS15IQXYCZ8vsmX", {
					origin: e.speaker,
					item: e.item,
					target: t
				});
			}
		},
		{
			trigger: "spell-cast",
			predicate: ["item:darkvision", { gte: ["item:rank", 5] }],
			process: async (e) => {
				if (!e.speaker || !e.item?.isOfType("spell")) return;
				let t = e.targets[0] ?? e.speaker;
				await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.spell-effects.Item.inNfTmtWpsxeGBI9", {
					origin: e.speaker,
					item: e.item,
					target: t
				});
			}
		}
	];
})), ZE = /* @__PURE__ */ n({
	actions: () => $E,
	path: () => QE
}), QE, $E, eD = t((() => {
	Q(), QE = [
		"Spells",
		"1st Rank",
		"Rallying Anthem"
	], $E = [{
		trigger: "spell-cast",
		predicate: ["item:rallying-anthem"],
		process: async (e) => {
			if (e.speaker && e.item?.isOfType("spell")) for (let t of e.targets) (rt(e.speaker.actor, t.actor) || e.speaker.actor === t.actor) && await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.spell-effects.Item.DLwTvjjnqs2sNGuG", {
				origin: e.speaker,
				item: e.item,
				target: t
			});
		}
	}];
})), tD = /* @__PURE__ */ n({
	actions: () => rD,
	path: () => nD
}), nD, rD, iD = t((() => {
	nD = [
		"Spells",
		"3rd Rank",
		"Angelic Wings"
	], rD = [{
		trigger: "spell-cast",
		predicate: ["item:angelic-wings", { lt: ["item:rank", 5] }],
		process: async (e) => {
			e.speaker && e.item?.isOfType("spell") && await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.spell-effects.Item.iZYjxY0qYvg5yPP3", {
				origin: e.speaker,
				item: e.item,
				target: e.speaker
			});
		}
	}, {
		trigger: "spell-cast",
		predicate: ["item:angelic-wings", { gte: ["item:rank", 5] }],
		process: async (e) => {
			e.speaker && e.item?.isOfType("spell") && await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.spell-effects.Item.iZYjxY0qYvg5yPP3", {
				origin: e.speaker,
				item: e.item,
				target: e.speaker,
				duration: {
					expiry: "turn-start",
					sustained: !1,
					unit: "minutes",
					value: 1
				}
			});
		}
	}];
})), aD = /* @__PURE__ */ n({
	actions: () => sD,
	path: () => oD
}), oD, sD, cD = t((() => {
	oD = [
		"Spells",
		"3rd Rank",
		"Deep Sight"
	], sD = [{
		trigger: "spell-cast",
		predicate: ["item:deep-sight", { lt: ["item:rank", 6] }],
		process: async (e) => {
			e.speaker && e.item?.isOfType("spell") && await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.spell-effects.Item.UAiaJYUDLtLToRUU", {
				origin: e.speaker,
				item: e.item,
				target: e.speaker
			});
		}
	}, {
		trigger: "spell-cast",
		predicate: ["item:angelic-wings", { gte: ["item:rank", 7] }],
		process: async (e) => {
			e.speaker && e.item?.isOfType("spell") && await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.spell-effects.Item.UAiaJYUDLtLToRUU", {
				origin: e.speaker,
				item: e.item,
				target: e.speaker,
				duration: {
					expiry: "turn-start",
					sustained: !1,
					unit: "days",
					value: 1
				}
			});
		}
	}];
})), lD = /* @__PURE__ */ n({
	actions: () => dD,
	path: () => uD
}), uD, dD, fD = t((() => {
	uD = [
		"Spells",
		"3rd Rank",
		"Haste"
	], dD = [{
		trigger: "spell-cast",
		predicate: ["item:haste"],
		process: async (e) => {
			if (e.speaker && e.targets.length !== 0 && e.item?.isOfType("spell")) for (let t of e.targets) await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.spell-effects.Item.ElkXovNrHB0Doi6O", {
				origin: e.speaker,
				item: e.item,
				target: t
			});
		}
	}];
})), pD = /* @__PURE__ */ n({
	actions: () => hD,
	path: () => mD
}), mD, hD, gD = t((() => {
	mD = [
		"Spells",
		"3rd Rank",
		"Heroism"
	], hD = [{
		trigger: "spell-cast",
		predicate: ["item:heroism"],
		process: async (e) => {
			if (!e.speaker || !e.item?.isOfType("spell")) return;
			let t = e.targets[0] ?? e.speaker;
			await game.assistant.socket.addEffect(t.actor, "Compendium.pf2e.spell-effects.Item.l9HRQggofFGIxEse", {
				origin: e.speaker,
				item: e.item,
				target: t
			});
		}
	}];
})), _D = /* @__PURE__ */ n({
	actions: () => yD,
	path: () => vD
}), vD, yD, bD = t((() => {
	vD = [
		"Spells",
		"4th Rank",
		"Darkened Sight"
	], yD = [{
		trigger: "spell-cast",
		predicate: ["item:darkened-sight"],
		process: async (e) => {
			e.speaker && e.targets.length === 1 && e.item?.isOfType("spell") && await game.assistant.socket.addEffect(e.targets[0].actor, "Compendium.pf2e.spell-effects.Item.znWiM5RYLvf8STmR", {
				origin: e.speaker,
				item: e.item,
				target: e.targets[0]
			});
		}
	}];
})), xD = /* @__PURE__ */ n({
	actions: () => CD,
	path: () => SD
}), SD, CD, wD = t((() => {
	$(), Q(), SD = [
		"Spells",
		"4th Rank",
		"Painful Vibrations"
	], CD = [{
		trigger: "saving-throw",
		predicate: [
			"item:type:spell",
			"item:painful-vibrations",
			"check:outcome:failure"
		],
		process: async (e) => {
			if (!e.speaker || !e.origin || !e.item?.isOfType("spell") || !b(e.roll)) return;
			let t = h();
			return t.updateCondition.push(...await game.assistant.socket.addCondition(e.speaker.actor, "sickened", { value: 1 }) ?? []), t.removeItem.push(...await game.assistant.socket.createEmbeddedItem(e.speaker.actor, {
				name: "Spell Effect: Painful Vibrations",
				type: "effect",
				system: {
					description: { value: "<p>You are @UUID[Compendium.pf2e.conditionitems.Item.9PR9y0bi4JPKnHPR]{Deafened}.</p>" },
					rules: [{
						key: "GrantItem",
						onDeleteActions: { grantee: "restrict" },
						uuid: "Compendium.pf2e.conditionitems.Item.9PR9y0bi4JPKnHPR"
					}],
					slug: "spell-effect-painful-vibrations",
					publication: {
						title: "Pathfinder Secrets of Magic",
						license: "OGL",
						remaster: !1
					},
					level: { value: e.item.rank },
					duration: {
						value: 1,
						unit: "rounds",
						expiry: "turn-start",
						sustained: !1
					},
					context: {
						origin: {
							actor: e.origin.actor.uuid,
							token: e.origin.token.uuid,
							item: e.item.uuid,
							spellcasting: {
								attribute: {
									type: e.item.attribute,
									mod: e.item.spellcasting?.statistic?.attributeModifier?.value ?? 0
								},
								tradition: e.item.spellcasting?.tradition
							},
							rollOptions: _(e.origin.actor, e.item)
						},
						target: {
							actor: e.speaker.actor.uuid,
							token: e.speaker.token.uuid
						},
						roll: {
							total: e.roll.total,
							degreeOfSuccess: e.roll.degreeOfSuccess
						}
					}
				},
				img: Z("icons/spells/painful-vibrations.webp")
			})), t;
		}
	}, {
		trigger: "saving-throw",
		predicate: [
			"item:type:spell",
			"item:painful-vibrations",
			"check:outcome:critical-failure"
		],
		process: async (e) => {
			if (!e.speaker || !e.origin || !e.item?.isOfType("spell") || !b(e.roll)) return;
			let t = h();
			return t.updateCondition.push(...await game.assistant.socket.addCondition(e.speaker.actor, "sickened", { value: 2 })), t.removeItem.push(...await game.assistant.socket.createEmbeddedItem(e.speaker.actor, {
				name: "Spell Effect: Painful Vibrations",
				type: "effect",
				system: {
					description: { value: "<p>You are @UUID[Compendium.pf2e.conditionitems.Item.9PR9y0bi4JPKnHPR]{Deafened}.</p>" },
					rules: [{
						key: "GrantItem",
						onDeleteActions: { grantee: "restrict" },
						uuid: "Compendium.pf2e.conditionitems.Item.9PR9y0bi4JPKnHPR"
					}],
					slug: "spell-effect-painful-vibrations",
					publication: {
						title: "Pathfinder Secrets of Magic",
						license: "OGL",
						remaster: !1
					},
					level: { value: e.item.rank },
					duration: {
						value: 1,
						unit: "minutes",
						expiry: "turn-start",
						sustained: !1
					},
					context: {
						origin: {
							actor: e.origin.actor.uuid,
							token: e.origin.token.uuid,
							item: e.item.uuid,
							spellcasting: {
								attribute: {
									type: e.item.attribute,
									mod: e.item.spellcasting?.statistic?.attributeModifier?.value ?? 0
								},
								tradition: e.item.spellcasting?.tradition
							},
							rollOptions: _(e.origin.actor, e.item)
						},
						target: {
							actor: e.speaker.actor.uuid,
							token: e.origin.token.uuid
						},
						roll: {
							total: e.roll.total,
							degreeOfSuccess: e.roll.degreeOfSuccess
						}
					}
				},
				img: Z("icons/spells/painful-vibrations.webp")
			})), t;
		}
	}];
})), TD = /* @__PURE__ */ n({
	actions: () => DD,
	path: () => ED
}), ED, DD, OD = t((() => {
	ED = [
		"Spells",
		"4th Rank",
		"Traveler's Transit"
	], DD = [{
		trigger: "spell-cast",
		predicate: ["item:travelers-transit"],
		process: async (e) => {
			e.speaker && e.item?.isOfType("spell") && await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.spell-effects.Item.Ig9p2rDXGYHpEuTx", {
				origin: e.speaker,
				item: e.item,
				target: e.speaker
			});
		}
	}];
})), kD = /* @__PURE__ */ n({
	actions: () => jD,
	path: () => AD
}), AD, jD, MD = t((() => {
	$(), Q(), AD = [
		"Spells",
		"4th Rank",
		"Vision of Death"
	], jD = [
		{
			trigger: "saving-throw",
			predicate: [
				"item:type:spell",
				"item:vision-of-death",
				"check:outcome:success"
			],
			process: async (e) => {
				if (!e.speaker || !e.origin || !e.item?.isOfType("spell") || !b(e.roll)) return;
				let t = h();
				return t.updateCondition.push(...await game.assistant.socket.addCondition(e.speaker.actor, "frightened", { value: 1 })), t;
			}
		},
		{
			trigger: "saving-throw",
			predicate: [
				"item:type:spell",
				"item:vision-of-death",
				"check:outcome:failure"
			],
			process: async (e) => {
				if (!e.speaker || !e.origin || !e.item?.isOfType("spell") || !b(e.roll)) return;
				let t = h();
				return t.updateCondition.push(...await game.assistant.socket.addCondition(e.speaker.actor, "frightened", { value: 2 })), t;
			}
		},
		{
			trigger: "saving-throw",
			predicate: [
				"item:type:spell",
				"item:vision-of-death",
				"check:outcome:critical-failure"
			],
			process: async (e) => {
				if (!e.speaker || !e.origin || !e.item?.isOfType("spell") || !b(e.roll)) return;
				let t = h();
				return t.updateCondition.push(...await game.assistant.socket.addCondition(e.speaker.actor, "frightened", { value: 4 })), t.removeItem.push(...await game.assistant.socket.createEmbeddedItem(e.speaker.actor, {
					name: "Spell Effect: Vision of Death",
					type: "effect",
					system: {
						description: { value: "<p>You have become @UUID[Compendium.pf2e.conditionitems.Item.TBSHQspnbcqxsmjL]{Frightened 4} and are also @UUID[Compendium.pf2e.conditionitems.Item.sDPxOjQ9kx2RZE8D]{Fleeing} for as long are you are frightened.</p>" },
						rules: [{
							key: "GrantItem",
							onDeleteActions: { grantee: "restrict" },
							uuid: "Compendium.pf2e.conditionitems.Item.sDPxOjQ9kx2RZE8D"
						}],
						slug: "spell-effect-vision-of-death",
						publication: {
							title: "Pathfinder Player Core",
							license: "ORC",
							remaster: !0
						},
						level: { value: e.item.rank },
						context: {
							origin: {
								actor: e.origin.actor.uuid,
								token: e.origin.token.uuid,
								item: e.item.uuid,
								spellcasting: {
									attribute: {
										type: e.item.attribute,
										mod: e.item.spellcasting?.statistic?.attributeModifier?.value ?? 0
									},
									tradition: e.item.spellcasting?.tradition
								},
								rollOptions: _(e.origin.actor, e.item)
							},
							target: {
								actor: e.speaker.actor.uuid,
								token: e.origin.token.uuid
							},
							roll: {
								total: e.roll.total,
								degreeOfSuccess: e.roll.degreeOfSuccess
							}
						}
					},
					img: Z("icons/spells/phantasmal-killer.webp")
				})), t;
			}
		},
		{
			trigger: "delete-effect",
			predicate: ["item:frightened", "self:effect:vision-of-death"],
			process: async (e) => {
				if (e.speaker && !e.speaker.actor.hasCondition("frightened")) {
					let t = $e(e.speaker.actor, "spell-effect-vision-of-death");
					t && await game.assistant.socket.deleteEmbeddedItem(t);
				}
			}
		}
	];
})), ND = /* @__PURE__ */ n({
	actions: () => FD,
	path: () => PD
}), PD, FD, ID = t((() => {
	m(), PD = [
		"Spells",
		"4th Rank",
		"Vital Beacon"
	], FD = [{
		trigger: "spell-cast",
		predicate: ["item:vital-beacon"],
		process: async (e) => {
			e.speaker && e.item?.isOfType("spell") && await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.spell-effects.Item.WWtSEJGwKY4bQpUn", {
				origin: e.speaker,
				item: e.item,
				target: e.speaker
			});
		}
	}, {
		trigger: "damage-roll",
		predicate: ["item:spell-effect-vital-beacon"],
		selectors: ["spell-effect-vital-beacon-inline-healing"],
		process: async (e) => {
			if (!e.item?.isOfType("effect")) return;
			let t = e.item.system.badge?.value;
			p(t) && ye(t) && (t - 1 == 0 ? await game.assistant.socket.deleteEmbeddedItem(e.item) : await game.assistant.socket.updateEmbeddedItem(e.item, { system: { badge: { value: t - 1 } } }));
		}
	}];
})), LD = /* @__PURE__ */ n({
	actions: () => zD,
	path: () => RD
}), RD, zD, BD = t((() => {
	$(), RD = [
		"Spells",
		"4th Rank",
		"Whispers of the Void"
	], zD = [
		{
			trigger: "saving-throw",
			predicate: [
				"item:type:spell",
				"item:whispers-of-the-void",
				"check:outcome:success"
			],
			process: async (e) => {
				if (!e.speaker || !e.origin || !e.item?.isOfType("spell")) return;
				let t = h();
				return t.updateCondition.push(...await game.assistant.socket.addCondition(e.speaker.actor, "persistent-damage", { persistent: {
					formula: `${Math.floor(e.item.rank / 2)}d8`,
					damageType: "void",
					dc: 15,
					criticalHit: !1
				} })), t;
			}
		},
		{
			trigger: "saving-throw",
			predicate: [
				"item:type:spell",
				"item:whispers-of-the-void",
				"check:outcome:failure"
			],
			process: async (e) => {
				if (!e.speaker || !e.origin || !e.item?.isOfType("spell")) return;
				let t = h();
				return t.updateCondition.push(...await game.assistant.socket.addCondition(e.speaker.actor, "persistent-damage", { persistent: {
					formula: `${Math.floor(e.item.rank / 2) * 2}d8`,
					damageType: "void",
					dc: 15,
					criticalHit: !1
				} })), t.updateCondition.push(...await game.assistant.socket.addCondition(e.speaker.actor, "drained", { value: 1 })), t;
			}
		},
		{
			trigger: "saving-throw",
			predicate: [
				"item:type:spell",
				"item:whispers-of-the-void",
				"check:outcome:critical-failure"
			],
			process: async (e) => {
				if (!e.speaker || !e.origin || !e.item?.isOfType("spell")) return;
				let t = h();
				return t.updateCondition.push(...await game.assistant.socket.addCondition(e.speaker.actor, "persistent-damage", { persistent: {
					formula: `${Math.floor(e.item.rank / 2) * 2}d8`,
					damageType: "void",
					dc: 15,
					criticalHit: !1
				} })), t.updateCondition.push(...await game.assistant.socket.addCondition(e.speaker.actor, "drained", { value: 2 })), t.updateCondition.push(...await game.assistant.socket.addCondition(e.speaker.actor, "doomed", { value: 1 })), t;
			}
		}
	];
})), VD = /* @__PURE__ */ n({
	actions: () => UD,
	path: () => HD
}), HD, UD, WD = t((() => {
	$(), HD = [
		"Spells",
		"5th Rank",
		"Freezing Rain"
	], UD = [{
		trigger: "saving-throw",
		predicate: [
			"item:type:spell",
			"item:freezing-rain",
			"check:outcome:failure"
		],
		process: async (e) => {
			if (!e.speaker || !e.origin || !e.item?.isOfType("spell")) return;
			let t = h();
			return t.updateCondition.push(...await game.assistant.socket.addCondition(e.speaker.actor, "slowed", { value: 1 })), t;
		}
	}, {
		trigger: "saving-throw",
		predicate: [
			"item:type:spell",
			"item:freezing-rain",
			"check:outcome:critical-failure"
		],
		process: async (e) => {
			if (!e.speaker || !e.origin || !e.item?.isOfType("spell")) return;
			let t = h();
			return t.updateCondition.push(...await game.assistant.socket.addCondition(e.speaker.actor, "slowed", { value: 2 })), t;
		}
	}];
})), GD = /* @__PURE__ */ n({
	actions: () => qD,
	path: () => KD
}), KD, qD, JD = t((() => {
	KD = [
		"Spells",
		"5th Rank",
		"Wind Jump"
	], qD = [{
		trigger: "spell-cast",
		predicate: ["item:wind-jump"],
		process: async (e) => {
			e.speaker && e.item?.isOfType("spell") && await game.assistant.socket.addEffect(e.speaker.actor, "Compendium.pf2e.spell-effects.Item.5MI2c9IgxfSeGZQo", {
				origin: e.speaker,
				item: e.item,
				target: e.speaker
			});
		}
	}];
})), YD, XD = t((() => {
	$(), m(), YD = class e {
		#e = [];
		#t = {
			label: "Root",
			children: [],
			entries: []
		};
		#n = game.settings.get("pf2e-assistant", "disabledFiles");
		constructor() {
			let e = /* @__PURE__ */ Object.assign({
				"../data/actions/bon-mot.ts": () => Promise.resolve().then(() => (Gl(), Hl)),
				"../data/actions/demoralize.ts": () => Promise.resolve().then(() => (Yl(), Kl)),
				"../data/actions/disarm.ts": () => Promise.resolve().then(() => ($l(), Xl)),
				"../data/actions/drop-prone.ts": () => Promise.resolve().then(() => (ru(), eu)),
				"../data/actions/feint.ts": () => Promise.resolve().then(() => (su(), iu)),
				"../data/actions/grapple.ts": () => Promise.resolve().then(() => (du(), cu)),
				"../data/actions/kip-up.ts": () => Promise.resolve().then(() => (hu(), fu)),
				"../data/actions/stand.ts": () => Promise.resolve().then(() => (yu(), gu)),
				"../data/actions/trip.ts": () => Promise.resolve().then(() => (Cu(), bu)),
				"../data/class-features/champion/champions-reaction.ts": () => Promise.resolve().then(() => (Du(), wu)),
				"../data/class-features/monk/stunning-blows.ts": () => Promise.resolve().then(() => (ju(), Ou)),
				"../data/class-features/rogue/debilitating-strike.ts": () => Promise.resolve().then(() => (Fu(), Mu)),
				"../data/class-features/swashbuckler/panache.ts": () => Promise.resolve().then(() => (zu(), Iu)),
				"../data/conditions/frightened.ts": () => Promise.resolve().then(() => (Uu(), Bu)),
				"../data/critical-specializations/axe.ts": () => Promise.resolve().then(() => (qu(), Wu)),
				"../data/critical-specializations/bow.ts": () => Promise.resolve().then(() => (Zu(), Ju)),
				"../data/critical-specializations/brawling.ts": () => Promise.resolve().then(() => (td(), Qu)),
				"../data/critical-specializations/crossbow.ts": () => Promise.resolve().then(() => (ad(), nd)),
				"../data/critical-specializations/firearm.ts": () => Promise.resolve().then(() => (ld(), od)),
				"../data/critical-specializations/flail.ts": () => Promise.resolve().then(() => (pd(), ud)),
				"../data/critical-specializations/hammer.ts": () => Promise.resolve().then(() => (_d(), md)),
				"../data/critical-specializations/sling.ts": () => Promise.resolve().then(() => (xd(), vd)),
				"../data/critical-specializations/spear.ts": () => Promise.resolve().then(() => (Td(), Sd)),
				"../data/critical-specializations/sword.ts": () => Promise.resolve().then(() => (kd(), Ed)),
				"../data/feats/accelerating-touch.ts": () => Promise.resolve().then(() => (Nd(), Ad)),
				"../data/feats/aura-of-courages.ts": () => Promise.resolve().then(() => (Ld(), Pd)),
				"../data/feats/crushing-grab.ts": () => Promise.resolve().then(() => (Vd(), Rd)),
				"../data/feats/terrified-retreat.ts": () => Promise.resolve().then(() => (Gd(), Hd)),
				"../data/feats/tumble-behind.ts": () => Promise.resolve().then(() => (Yd(), Kd)),
				"../data/items/consumables/ablative-armor-plating.ts": () => Promise.resolve().then(() => ($d(), Xd)),
				"../data/items/consumables/alloy-orb.ts": () => Promise.resolve().then(() => (rf(), ef)),
				"../data/items/consumables/amphisbaena-spittle.ts": () => Promise.resolve().then(() => (cf(), af)),
				"../data/items/consumables/antidote.ts": () => Promise.resolve().then(() => (ff(), lf)),
				"../data/items/consumables/antifungal-salve.ts": () => Promise.resolve().then(() => (gf(), pf)),
				"../data/items/consumables/antiplague.ts": () => Promise.resolve().then(() => (bf(), _f)),
				"../data/items/consumables/applereed-mutagen.ts": () => Promise.resolve().then(() => (wf(), xf)),
				"../data/items/consumables/apricot-of-bestial-might.ts": () => Promise.resolve().then(() => (Of(), Tf)),
				"../data/items/consumables/arbor-wine.ts": () => Promise.resolve().then(() => (Mf(), kf)),
				"../data/items/consumables/aromatic-ammunition.ts": () => Promise.resolve().then(() => (If(), Nf)),
				"../data/items/consumables/ascendant-dragon-spirit.ts": () => Promise.resolve().then(() => (Bf(), Lf)),
				"../data/items/consumables/auric-noodles.ts": () => Promise.resolve().then(() => (Wf(), Vf)),
				"../data/items/consumables/bendy-arm-mutagen.ts": () => Promise.resolve().then(() => (Jf(), Gf)),
				"../data/items/consumables/bestial-mutagen.ts": () => Promise.resolve().then(() => (Qf(), Yf)),
				"../data/items/consumables/blight-breath.ts": () => Promise.resolve().then(() => (np(), $f)),
				"../data/items/consumables/blood-booster.ts": () => Promise.resolve().then(() => (op(), rp)),
				"../data/items/consumables/bloodhound-mask.ts": () => Promise.resolve().then(() => (up(), sp)),
				"../data/items/consumables/bombers-eye-elixir.ts": () => Promise.resolve().then(() => (mp(), dp)),
				"../data/items/consumables/bottled-lightning.ts": () => Promise.resolve().then(() => (vp(), hp)),
				"../data/items/consumables/bottled-omen.ts": () => Promise.resolve().then(() => (Sp(), yp)),
				"../data/items/consumables/boulderhead-bock.ts": () => Promise.resolve().then(() => (Ep(), Cp)),
				"../data/items/consumables/bravos-brew.ts": () => Promise.resolve().then(() => (Ap(), Dp)),
				"../data/items/consumables/brewers-regret.ts": () => Promise.resolve().then(() => (Pp(), jp)),
				"../data/items/consumables/bronze-bull-pendant.ts": () => Promise.resolve().then(() => (Rp(), Fp)),
				"../data/items/consumables/cats-eye-elixir.ts": () => Promise.resolve().then(() => (Hp(), zp)),
				"../data/items/consumables/cheetahs-elixir.ts": () => Promise.resolve().then(() => (Kp(), Up)),
				"../data/items/consumables/chivalric-emblem.ts": () => Promise.resolve().then(() => (Xp(), qp)),
				"../data/items/consumables/chromatic-jellyfish-oil.ts": () => Promise.resolve().then(() => (em(), Zp)),
				"../data/items/consumables/cinnamon-seers.ts": () => Promise.resolve().then(() => (im(), tm)),
				"../data/items/consumables/cloud-buns.ts": () => Promise.resolve().then(() => (cm(), am)),
				"../data/items/consumables/cognitive-mutagen.ts": () => Promise.resolve().then(() => (fm(), lm)),
				"../data/items/consumables/cold-iron-blanch.ts": () => Promise.resolve().then(() => (gm(), pm)),
				"../data/items/consumables/covenant-tea.ts": () => Promise.resolve().then(() => (bm(), _m)),
				"../data/items/consumables/darkvision-elixir.ts": () => Promise.resolve().then(() => (wm(), xm)),
				"../data/items/consumables/deadweight-mutagen.ts": () => Promise.resolve().then(() => (Om(), Tm)),
				"../data/items/consumables/delve-scale.ts": () => Promise.resolve().then(() => (Mm(), km)),
				"../data/items/consumables/demortification-oil.ts": () => Promise.resolve().then(() => (Im(), Nm)),
				"../data/items/consumables/diplomats-charcuterie.ts": () => Promise.resolve().then(() => (Bm(), Lm)),
				"../data/items/consumables/discord-fulu.ts": () => Promise.resolve().then(() => (Wm(), Vm)),
				"../data/items/consumables/dragon-breath-scale.ts": () => Promise.resolve().then(() => (Jm(), Gm)),
				"../data/items/consumables/dragon-pearl.ts": () => Promise.resolve().then(() => (Qm(), Ym)),
				"../data/items/consumables/dragon-throat-scale.ts": () => Promise.resolve().then(() => (nh(), $m)),
				"../data/items/consumables/dragonfly-fulu.ts": () => Promise.resolve().then(() => (oh(), rh)),
				"../data/items/consumables/dragonfly-potion.ts": () => Promise.resolve().then(() => (uh(), sh)),
				"../data/items/consumables/dragons-blood-pudding.ts": () => Promise.resolve().then(() => (mh(), dh)),
				"../data/items/consumables/drakeheart-mutagen.ts": () => Promise.resolve().then(() => (vh(), hh)),
				"../data/items/consumables/drowsy-sun-eye-drops.ts": () => Promise.resolve().then(() => (Sh(), yh)),
				"../data/items/consumables/eagle-eye-elixir.ts": () => Promise.resolve().then(() => (Eh(), Ch)),
				"../data/items/consumables/egg-cream-fizz.ts": () => Promise.resolve().then(() => (Ah(), Dh)),
				"../data/items/consumables/elixir-of-life.ts": () => Promise.resolve().then(() => (Ph(), jh)),
				"../data/items/consumables/elysian-dew.ts": () => Promise.resolve().then(() => (Rh(), Fh)),
				"../data/items/consumables/energized-cartridge.ts": () => Promise.resolve().then(() => (Hh(), zh)),
				"../data/items/consumables/energizing-pill.ts": () => Promise.resolve().then(() => (Kh(), Uh)),
				"../data/items/consumables/energizing-tea.ts": () => Promise.resolve().then(() => (Xh(), qh)),
				"../data/items/consumables/energy-mutagen.ts": () => Promise.resolve().then(() => (eg(), Zh)),
				"../data/items/consumables/escape-fulu.ts": () => Promise.resolve().then(() => (ig(), tg)),
				"../data/items/consumables/ethereal-crescent.ts": () => Promise.resolve().then(() => (cg(), ag)),
				"../data/items/consumables/featherlight-fletching.ts": () => Promise.resolve().then(() => (fg(), lg)),
				"../data/items/consumables/feyfoul.ts": () => Promise.resolve().then(() => (gg(), pg)),
				"../data/items/consumables/fire-and-iceberg.ts": () => Promise.resolve().then(() => (bg(), _g)),
				"../data/items/consumables/frost-breath.ts": () => Promise.resolve().then(() => (wg(), xg)),
				"../data/items/consumables/fury-cocktail.ts": () => Promise.resolve().then(() => (Og(), Tg)),
				"../data/items/consumables/galvanic-chew.ts": () => Promise.resolve().then(() => (Mg(), kg)),
				"../data/items/consumables/gecko-potion.ts": () => Promise.resolve().then(() => (Ig(), Ng)),
				"../data/items/consumables/ghost-fowl-porridge.ts": () => Promise.resolve().then(() => (Bg(), Lg)),
				"../data/items/consumables/ghost-oil.ts": () => Promise.resolve().then(() => (Wg(), Vg)),
				"../data/items/consumables/ghostbane-fulu.ts": () => Promise.resolve().then(() => (Jg(), Gg)),
				"../data/items/consumables/ginger-chew.ts": () => Promise.resolve().then(() => (Qg(), Yg)),
				"../data/items/consumables/glow-rod.ts": () => Promise.resolve().then(() => (n_(), $g)),
				"../data/items/consumables/golden-breath-fulu.ts": () => Promise.resolve().then(() => (o_(), r_)),
				"../data/items/consumables/grindlegrub-steak.ts": () => Promise.resolve().then(() => (u_(), s_)),
				"../data/items/consumables/hand-of-mercy.ts": () => Promise.resolve().then(() => (m_(), d_)),
				"../data/items/consumables/hydra-mutagen.ts": () => Promise.resolve().then(() => (v_(), h_)),
				"../data/items/consumables/ichthyosis-mutagen.ts": () => Promise.resolve().then(() => (S_(), y_)),
				"../data/items/consumables/impossible-cake.ts": () => Promise.resolve().then(() => (E_(), C_)),
				"../data/items/consumables/insight-coffee.ts": () => Promise.resolve().then(() => (A_(), D_)),
				"../data/items/consumables/iron-medallion.ts": () => Promise.resolve().then(() => (P_(), j_)),
				"../data/items/consumables/iron-wine.ts": () => Promise.resolve().then(() => (R_(), F_)),
				"../data/items/consumables/juggernaut-mutagen.ts": () => Promise.resolve().then(() => (H_(), z_)),
				"../data/items/consumables/lastwall-soup.ts": () => Promise.resolve().then(() => (K_(), U_)),
				"../data/items/consumables/life-boosting-oil.ts": () => Promise.resolve().then(() => (X_(), q_)),
				"../data/items/consumables/malleable-mixture.ts": () => Promise.resolve().then(() => (ev(), Z_)),
				"../data/items/consumables/merciful-balm.ts": () => Promise.resolve().then(() => (iv(), tv)),
				"../data/items/consumables/mighty-counterweight.ts": () => Promise.resolve().then(() => (cv(), av)),
				"../data/items/consumables/mistform-elixir.ts": () => Promise.resolve().then(() => (fv(), lv)),
				"../data/items/consumables/morph-jewel.ts": () => Promise.resolve().then(() => (gv(), pv)),
				"../data/items/consumables/mortalis-coin.ts": () => Promise.resolve().then(() => (bv(), _v)),
				"../data/items/consumables/necrotic-cap.ts": () => Promise.resolve().then(() => (wv(), xv)),
				"../data/items/consumables/numbing-tonic.ts": () => Promise.resolve().then(() => (Ov(), Tv)),
				"../data/items/consumables/ommatophoric-mutagen.ts": () => Promise.resolve().then(() => (Mv(), kv)),
				"../data/items/consumables/pallesthetic-mutagen.ts": () => Promise.resolve().then(() => (Iv(), Nv)),
				"../data/items/consumables/phasing-trine.ts": () => Promise.resolve().then(() => (Bv(), Lv)),
				"../data/items/consumables/phoenix-flask.ts": () => Promise.resolve().then(() => (Wv(), Vv)),
				"../data/items/consumables/potency-crystal.ts": () => Promise.resolve().then(() => (Jv(), Gv)),
				"../data/items/consumables/potion-of-acid-resistance.ts": () => Promise.resolve().then(() => (Qv(), Yv)),
				"../data/items/consumables/potion-of-cold-resistance.ts": () => Promise.resolve().then(() => (ny(), $v)),
				"../data/items/consumables/potion-of-electricity-resistance.ts": () => Promise.resolve().then(() => (oy(), ry)),
				"../data/items/consumables/potion-of-emergency-escape.ts": () => Promise.resolve().then(() => (uy(), sy)),
				"../data/items/consumables/potion-of-fire-resistance.ts": () => Promise.resolve().then(() => (my(), dy)),
				"../data/items/consumables/potion-of-flying.ts": () => Promise.resolve().then(() => (vy(), hy)),
				"../data/items/consumables/potion-of-minute-echoes.ts": () => Promise.resolve().then(() => (Sy(), yy)),
				"../data/items/consumables/potion-of-quickness.ts": () => Promise.resolve().then(() => (Ey(), Cy)),
				"../data/items/consumables/potion-of-sonic-resistance.ts": () => Promise.resolve().then(() => (Ay(), Dy)),
				"../data/items/consumables/potion-of-stable-form.ts": () => Promise.resolve().then(() => (Py(), jy)),
				"../data/items/consumables/potion-of-swimming.ts": () => Promise.resolve().then(() => (Ry(), Fy)),
				"../data/items/consumables/predators-claw.ts": () => Promise.resolve().then(() => (Hy(), zy)),
				"../data/items/consumables/prey-mutagen.ts": () => Promise.resolve().then(() => (Ky(), Uy)),
				"../data/items/consumables/quicksilver-mutagen.ts": () => Promise.resolve().then(() => (Xy(), qy)),
				"../data/items/consumables/red-rib-gill-mask.ts": () => Promise.resolve().then(() => (eb(), Zy)),
				"../data/items/consumables/sanguine-mutagen.ts": () => Promise.resolve().then(() => (ib(), tb)),
				"../data/items/consumables/sea-touch-elixir.ts": () => Promise.resolve().then(() => (cb(), ab)),
				"../data/items/consumables/sense-dulling-hood.ts": () => Promise.resolve().then(() => (fb(), lb)),
				"../data/items/consumables/serene-mutagen.ts": () => Promise.resolve().then(() => (gb(), pb)),
				"../data/items/consumables/shielding-salve.ts": () => Promise.resolve().then(() => (bb(), _b)),
				"../data/items/consumables/shining-ammunition.ts": () => Promise.resolve().then(() => (wb(), xb)),
				"../data/items/consumables/shrinking-potion.ts": () => Promise.resolve().then(() => (Ob(), Tb)),
				"../data/items/consumables/silver-crescent.ts": () => Promise.resolve().then(() => (Mb(), kb)),
				"../data/items/consumables/silver-salve.ts": () => Promise.resolve().then(() => (Ib(), Nb)),
				"../data/items/consumables/silvertongue-mutagen.ts": () => Promise.resolve().then(() => (Bb(), Lb)),
				"../data/items/consumables/sixfingers-elixir.ts": () => Promise.resolve().then(() => (Wb(), Vb)),
				"../data/items/consumables/skeptics-elixir.ts": () => Promise.resolve().then(() => (Jb(), Gb)),
				"../data/items/consumables/soothing-toddy.ts": () => Promise.resolve().then(() => (Qb(), Yb)),
				"../data/items/consumables/soothing-tonic.ts": () => Promise.resolve().then(() => (nx(), $b)),
				"../data/items/consumables/spiderfoot-brew.ts": () => Promise.resolve().then(() => (ox(), rx)),
				"../data/items/consumables/star-of-cynosure.ts": () => Promise.resolve().then(() => (ux(), sx)),
				"../data/items/consumables/statue-skin-salve.ts": () => Promise.resolve().then(() => (mx(), dx)),
				"../data/items/consumables/stone-body-mutagen.ts": () => Promise.resolve().then(() => (vx(), hx)),
				"../data/items/consumables/stone-fist-elixir.ts": () => Promise.resolve().then(() => (Sx(), yx)),
				"../data/items/consumables/storm-breath.ts": () => Promise.resolve().then(() => (Ex(), Cx)),
				"../data/items/consumables/stormbreaker-fulu.ts": () => Promise.resolve().then(() => (Ax(), Dx)),
				"../data/items/consumables/taper-of-sanctification.ts": () => Promise.resolve().then(() => (Px(), jx)),
				"../data/items/consumables/thawing-candle.ts": () => Promise.resolve().then(() => (Rx(), Fx)),
				"../data/items/consumables/theatrical-mutagen.ts": () => Promise.resolve().then(() => (Hx(), zx)),
				"../data/items/consumables/thousand-year-dragonroot.ts": () => Promise.resolve().then(() => (Kx(), Ux)),
				"../data/items/consumables/tiger-menuki.ts": () => Promise.resolve().then(() => (Xx(), qx)),
				"../data/items/consumables/topology-protoplasm.ts": () => Promise.resolve().then(() => (eS(), Zx)),
				"../data/items/consumables/trackers-stew.ts": () => Promise.resolve().then(() => (iS(), tS)),
				"../data/items/consumables/tricky-liniment.ts": () => Promise.resolve().then(() => (cS(), aS)),
				"../data/items/consumables/tteokguk-of-time-advancement.ts": () => Promise.resolve().then(() => (fS(), lS)),
				"../data/items/consumables/valorous-coin.ts": () => Promise.resolve().then(() => (gS(), pS)),
				"../data/items/consumables/vapor-sphere.ts": () => Promise.resolve().then(() => (bS(), _S)),
				"../data/items/consumables/vengeful-demons-tears.ts": () => Promise.resolve().then(() => (wS(), xS)),
				"../data/items/consumables/vermin-repellent-agent.ts": () => Promise.resolve().then(() => (OS(), TS)),
				"../data/items/consumables/viperous-elixir.ts": () => Promise.resolve().then(() => (MS(), kS)),
				"../data/items/consumables/war-blood-mutagen.ts": () => Promise.resolve().then(() => (IS(), NS)),
				"../data/items/consumables/wemmuth-trinket.ts": () => Promise.resolve().then(() => (BS(), LS)),
				"../data/items/consumables/wine-of-the-blood.ts": () => Promise.resolve().then(() => (WS(), VS)),
				"../data/items/consumables/witchs-finger.ts": () => Promise.resolve().then(() => (JS(), GS)),
				"../data/items/consumables/wounding-oil.ts": () => Promise.resolve().then(() => (QS(), YS)),
				"../data/items/runes/bloodthirsty.ts": () => Promise.resolve().then(() => (nC(), $S)),
				"../data/items/runes/brilliant.ts": () => Promise.resolve().then(() => (oC(), rC)),
				"../data/items/runes/crushing.ts": () => Promise.resolve().then(() => (uC(), sC)),
				"../data/items/runes/fearsome.ts": () => Promise.resolve().then(() => (mC(), dC)),
				"../data/items/runes/frost.ts": () => Promise.resolve().then(() => (vC(), hC)),
				"../data/items/runes/rooting.ts": () => Promise.resolve().then(() => (SC(), yC)),
				"../data/items/runes/shock.ts": () => Promise.resolve().then(() => (EC(), CC)),
				"../data/items/runes/thundering.ts": () => Promise.resolve().then(() => (AC(), DC)),
				"../data/items/runes/vitalizing.ts": () => Promise.resolve().then(() => (PC(), jC)),
				"../data/other/persistent-damage.ts": () => Promise.resolve().then(() => (RC(), FC)),
				"../data/other/persistent-healing.ts": () => Promise.resolve().then(() => (HC(), zC)),
				"../data/other/self-effect.ts": () => Promise.resolve().then(() => (KC(), UC)),
				"../data/spells/01/agile-feet.ts": () => Promise.resolve().then(() => (XC(), qC)),
				"../data/spells/01/angelic-halo.ts": () => Promise.resolve().then(() => (ew(), ZC)),
				"../data/spells/01/ant-haul.ts": () => Promise.resolve().then(() => (iw(), tw)),
				"../data/spells/01/anticipate-peril.ts": () => Promise.resolve().then(() => (cw(), aw)),
				"../data/spells/01/aqueous-blast.ts": () => Promise.resolve().then(() => (fw(), lw)),
				"../data/spells/01/athletic-rush.ts": () => Promise.resolve().then(() => (gw(), pw)),
				"../data/spells/01/benediction.ts": () => Promise.resolve().then(() => (bw(), _w)),
				"../data/spells/01/boost-eidolon.ts": () => Promise.resolve().then(() => (ww(), xw)),
				"../data/spells/01/bullhorn.ts": () => Promise.resolve().then(() => (Ow(), Tw)),
				"../data/spells/01/buzzing-bites.ts": () => Promise.resolve().then(() => (Mw(), kw)),
				"../data/spells/01/courageous-anthem.ts": () => Promise.resolve().then(() => (Iw(), Nw)),
				"../data/spells/01/daze.ts": () => Promise.resolve().then(() => (Bw(), Lw)),
				"../data/spells/01/eat-fire.ts": () => Promise.resolve().then(() => (Ww(), Vw)),
				"../data/spells/01/figment.ts": () => Promise.resolve().then(() => (Jw(), Gw)),
				"../data/spells/01/forbidding-ward.ts": () => Promise.resolve().then(() => (Qw(), Yw)),
				"../data/spells/01/frostbite.ts": () => Promise.resolve().then(() => (nT(), $w)),
				"../data/spells/01/glass-shield.ts": () => Promise.resolve().then(() => (oT(), rT)),
				"../data/spells/01/guidance.ts": () => Promise.resolve().then(() => (uT(), sT)),
				"../data/spells/01/infectious-enthusiasm.ts": () => Promise.resolve().then(() => (mT(), dT)),
				"../data/spells/01/inside-ropes.ts": () => Promise.resolve().then(() => (vT(), hT)),
				"../data/spells/01/lay-on-hands.ts": () => Promise.resolve().then(() => (ST(), yT)),
				"../data/spells/01/light.ts": () => Promise.resolve().then(() => (ET(), CT)),
				"../data/spells/01/musical-accompaniment.ts": () => Promise.resolve().then(() => (AT(), DT)),
				"../data/spells/01/mystic-armor.ts": () => Promise.resolve().then(() => (PT(), jT)),
				"../data/spells/01/precious-gleam.ts": () => Promise.resolve().then(() => (RT(), FT)),
				"../data/spells/01/protect-companion.ts": () => Promise.resolve().then(() => (HT(), zT)),
				"../data/spells/01/ray-of-frost.ts": () => Promise.resolve().then(() => (KT(), UT)),
				"../data/spells/01/read-aura.ts": () => Promise.resolve().then(() => (XT(), qT)),
				"../data/spells/01/read-the-air.ts": () => Promise.resolve().then(() => (eE(), ZT)),
				"../data/spells/01/rousing-splash.ts": () => Promise.resolve().then(() => (iE(), tE)),
				"../data/spells/01/shield.ts": () => Promise.resolve().then(() => (mE(), dE)),
				"../data/spells/01/song-of-strength.ts": () => Promise.resolve().then(() => (vE(), hE)),
				"../data/spells/01/stabilize.ts": () => Promise.resolve().then(() => (SE(), yE)),
				"../data/spells/01/tailwind.ts": () => Promise.resolve().then(() => (EE(), CE)),
				"../data/spells/01/take-root.ts": () => Promise.resolve().then(() => (AE(), DE)),
				"../data/spells/01/tangle-vine.ts": () => Promise.resolve().then(() => (PE(), jE)),
				"../data/spells/01/warp-step.ts": () => Promise.resolve().then(() => (RE(), FE)),
				"../data/spells/01/weapon-surge.ts": () => Promise.resolve().then(() => (HE(), zE)),
				"../data/spells/01/wooden-fists.ts": () => Promise.resolve().then(() => (KE(), UE)),
				"../data/spells/02/darkvision.ts": () => Promise.resolve().then(() => (XE(), qE)),
				"../data/spells/02/rallying-anthem.ts": () => Promise.resolve().then(() => (eD(), ZE)),
				"../data/spells/03/angelic-wings.ts": () => Promise.resolve().then(() => (iD(), tD)),
				"../data/spells/03/deep-sight.ts": () => Promise.resolve().then(() => (cD(), aD)),
				"../data/spells/03/haste.ts": () => Promise.resolve().then(() => (fD(), lD)),
				"../data/spells/03/heroism.ts": () => Promise.resolve().then(() => (gD(), pD)),
				"../data/spells/04/darkened-sight.ts": () => Promise.resolve().then(() => (bD(), _D)),
				"../data/spells/04/painful-vibrations.ts": () => Promise.resolve().then(() => (wD(), xD)),
				"../data/spells/04/travelers-transit.ts": () => Promise.resolve().then(() => (OD(), TD)),
				"../data/spells/04/vision-of-death.ts": () => Promise.resolve().then(() => (MD(), kD)),
				"../data/spells/04/vital-beacon.ts": () => Promise.resolve().then(() => (ID(), ND)),
				"../data/spells/04/whispers-of-the-void.ts": () => Promise.resolve().then(() => (BD(), LD)),
				"../data/spells/05/freezing-rain.ts": () => Promise.resolve().then(() => (WD(), VD)),
				"../data/spells/05/wind-jump.ts": () => Promise.resolve().then(() => (JD(), GD))
			});
			for (let t in e) e[t]().then((e) => {
				this.addModule(e, t);
			});
		}
		reset() {
			this.#e = [], this.#t = {
				label: "Root",
				children: [],
				entries: []
			}, this.#n = game.settings.get("pf2e-assistant", "disabledFiles");
		}
		addModule(t, n) {
			e.addFile(this.#t, t.path, n, !this.#n.includes(n)), this.#n.includes(n) || this.#e.push(...t.actions);
		}
		static addFile(t, n, r, i) {
			if (n.length > 1) {
				let a = t.children.find((e) => e.label === n[0]);
				if (!a) {
					a = {
						label: n[0],
						children: [],
						entries: []
					};
					let e = Le(t.children, a, Me("label"));
					t.children.splice(e, 0, a);
				}
				e.addFile(a, n.slice(1), r, i);
			} else if (n.length == 1) {
				let e = {
					enabled: i,
					label: n[0],
					value: r
				}, a = Le(t.entries, e, Me("label"));
				t.entries.splice(a, 0, e);
			}
		}
		getRootFolder() {
			return u(this.#t);
		}
		static filterActions(e, t) {
			return e.trigger !== t.trigger || !game.pf2e.Predicate.test(e.predicate, t.rollOptions) ? !1 : e.selectors ? t.domains ? e.selectors.some((e) => t.domains.includes(e)) : !1 : !0;
		}
		async process(t) {
			let n = h(), r = this.#e.filter((n) => e.filterActions(n, t));
			for (let e of r) {
				let r = await e.process(t);
				r && (n.updateCondition.push(...r.updateCondition), n.addItem.push(...r.addItem), n.removeItem.push(...r.removeItem), n.deleteChatMessage.push(...r.deleteChatMessage));
			}
			return {
				data: t,
				reroll: n
			};
		}
	};
})), ZD = t((() => {
	a(), He(), Ue(), We(), Ge(), qe(), Vl(), XD();
})), $ = t((() => {
	ZD();
})), QD = class e extends foundry.applications.api.HandlebarsApplicationMixin(foundry.applications.api.ApplicationV2) {
	static DEFAULT_OPTIONS = {
		id: "automation-list",
		tag: "form",
		window: {
			contentClasses: ["standard-form"],
			title: "PF2e Assistant - Automation List"
		},
		position: {
			width: 480,
			height: 500
		},
		form: {
			closeOnSubmit: !0,
			handler: e.#e
		},
		actions: { toggle: e.#t }
	};
	static PARTS = {
		form: {
			template: "modules/pf2e-assistant/templates/apps/automation-list.hbs",
			templates: ["modules/pf2e-assistant/templates/apps/automation-file.hbs", "modules/pf2e-assistant/templates/apps/automation-folder.hbs"],
			scrollable: [""]
		},
		footer: { template: "templates/generic/form-footer.hbs" }
	};
	async _prepareContext(e) {
		return {
			rootFolder: game.assistant.storage.getRootFolder(),
			buttons: [{
				type: "submit",
				icon: "fa-solid fa-save",
				label: "Save Changes"
			}]
		};
	}
	static async #e(e, t, n) {
		let r = [], i = t.getElementsByTagName("input");
		for (let e = 0; e < i.length; e++) {
			let t = i[e];
			t.type === "checkbox" && t.checked === !1 && r.push(t.name);
		}
		r.equals(game.settings.get("pf2e-assistant", "disabledFiles")) || (await game.settings.set("pf2e-assistant", "disabledFiles", r), foundry.applications.settings.SettingsConfig.reloadConfirm({ world: !0 }));
	}
	static async #t(e, t) {
		let n = t.querySelector("i");
		n && (n.classList.toggle("fa-caret-right"), n.classList.toggle("fa-caret-down"));
		let r = t.parentElement?.querySelector(".assistant-nested");
		r && (n?.classList.contains("fa-caret-down") && r.style.removeProperty("display"), n?.classList.contains("fa-caret-right") && (r.style.display = "none"));
	}
};
Hooks.once("init", () => {
	game.settings.registerMenu("pf2e-assistant", "automationMenu", {
		name: "Automations",
		label: "Manage Automations",
		hint: "Allows you to manage which automations are enabled/disabled.",
		icon: "fas fa-gears",
		type: QD,
		restricted: !0
	}), game.settings.register("pf2e-assistant", "disabledFiles", {
		name: "Disabled Automations",
		scope: "world",
		config: !1,
		type: Array,
		default: []
	});
}), Q(), Hooks.on("preUpdateActor", (e, t, n, r) => {
	if (game.userId === r && e.isOfType("character") && t.system !== void 0) {
		let n = t.system;
		if (n.exploration) {
			let t = n.exploration.filter((t) => !e.system.exploration.includes(t)), r = e.system.exploration.filter((e) => !n.exploration?.includes(e));
			t.forEach((t) => $D(e, t, "activate-exploration")), r.forEach((t) => $D(e, t, "deactivate-exploration"));
		}
	}
});
function $D(e, t, n) {
	let r = {
		trigger: n,
		rollOptions: [],
		targets: []
	}, i = e.getActiveTokens(!0, !0), a = e.itemTypes.action.find((e) => e.id === t);
	i.length === 1 && a !== void 0 && (r.speaker = {
		actor: e,
		token: i[0]
	}, r.rollOptions.push(...tt(e, "self")), r.item = a, r.rollOptions.push(...a.getRollOptions()), game.assistant.storage.process(r));
}
Q(), Hooks.on("renderChatMessageHTML", function(e, t) {
	for (let n of xt(t, "button[data-action]")) n.addEventListener("click", async (r) => eO(e, r, t, n));
});
async function eO(e, t, n, r) {
	if (r.dataset.action === "choice") {
		let t = {
			trigger: "choice",
			rollOptions: [`choice:${r.value}`],
			targets: []
		};
		e.actor && e.token && (t.speaker = {
			actor: e.actor,
			token: e.token
		}), e.target?.actor && e.target?.token && t.targets.push(e.target), e.item && (t.item = e.item, t.rollOptions.push(...e.item.getRollOptions("item"))), game.assistant.storage.process(t), game.assistant.socket.deleteChatMessage(e);
	}
}
i(), Q(), Hooks.on("createChatMessage", (e) => {
	e.isAuthor && e.getFlag(r.id, "process") !== !1 && tO(e).then((e) => game.assistant.storage.process(e)).then(({ data: e, reroll: t }) => nO(e, t)).catch((e) => {});
});
async function tO(e) {
	let t = e.flags[game.system.id], n = {
		trigger: t.context?.type,
		rollOptions: t.context?.options ? Array.from(t.context.options) : [],
		chatMessage: e,
		targets: []
	};
	if (t.context?.domains && (n.domains = t.context.domains), n.trigger === void 0) if (e.item?.isOfType("condition") && e.item.slug === "persistent-damage") n.trigger = "damage-roll";
	else if (e.item?.isOfType("spell")) n.trigger = "spell-cast";
	else if (ot(e)) {
		let e = await fromUuid(t.origin.uuid);
		n.trigger = "consumable", n.item = e ?? void 0;
	} else e.isDamageRoll && ct(e) && (n.trigger = "damage-roll", n.rollOptions.push("self:condition:fast-healing"));
	n.trigger === "damage-taken" && lt(e) && n.rollOptions.push("self:shield:block"), e.item && (n.item = e.item);
	let r = t.context?.outcome;
	if (r && n.rollOptions.push(`check:outcome:${game.pf2e.system.sluggify(r)}`), e.actor && e.token && (n.speaker = {
		actor: e.actor,
		token: e.token
	}), e.target) n.targets.push({
		actor: e.target.actor,
		token: e.target.token
	});
	else {
		let e = Ll();
		if (n.trigger !== "spell-cast") {
			let t = e[0];
			t && t.actor && t.document && n.targets.push({
				actor: t.actor,
				token: t.document
			});
		} else for (let t of e) t.actor && t.document && n.targets.push({
			actor: t.actor,
			token: t.document
		});
	}
	if (n.targets.length === 1 && (n.rollOptions.push(...tt(n.targets[0].actor, "target")), n.speaker)) {
		let e = n.targets[0].actor.alliance === n.speaker.actor.alliance ? "ally" : "enemy";
		n.rollOptions.push(`target:${e}`);
	}
	if (st(t.context)) {
		let e = t.context;
		if (e.origin) {
			let t = fromUuidSync(e.origin.actor), r = fromUuidSync(e.origin.token ?? "");
			t && r && (n.origin = {
				actor: t,
				token: r
			});
		}
	}
	if ((e.isCheckRoll || e.isDamageRoll) && (n.roll = e.rolls.at(0)), n.speaker && n.rollOptions.push(...tt(n.speaker.actor, "self")), n.origin && (n.rollOptions.push(...tt(n.origin.actor, "origin")), n.speaker)) {
		let e = n.origin.actor.alliance === n.speaker.actor.alliance ? "ally" : "enemy";
		n.rollOptions.push(`origin:${e}`);
	}
	return n.item && n.rollOptions.push(...n.item.getRollOptions("item")), n.trigger === void 0 ? Promise.reject("Undefined Trigger") : (n.rollOptions = [...new Set(n.rollOptions)].sort((e, t) => e.localeCompare(t)), n.domains = [...new Set(n.domains)].sort((e, t) => e.localeCompare(t)), n);
}
async function nO(e, t) {
	e.chatMessage && e.speaker && Object.values(t).some((e) => e.length !== 0) && await game.assistant.socket.updateChatMessage(e.chatMessage, e.speaker.token.id, t);
}
Hooks.on("pf2e.startTurn", (e) => {
	e.token === null || e.actor === null || game.assistant.storage.process({
		trigger: "start-turn",
		rollOptions: e.actor.getRollOptions(),
		speaker: {
			actor: e.actor,
			token: e.token
		},
		targets: []
	});
}), Hooks.on("pf2e.endTurn", (e) => {
	e.token === null || e.actor === null || game.assistant.storage.process({
		trigger: "end-turn",
		rollOptions: e.actor.getRollOptions(),
		speaker: {
			actor: e.actor,
			token: e.token
		},
		targets: []
	});
}), Hooks.on("combatStart", (e) => {
	for (let t of e.combatants) {
		if (t.token === null || t.actor === null) continue;
		let e = {
			trigger: "combat-start",
			rollOptions: t.actor.getRollOptions(),
			speaker: {
				actor: t.actor,
				token: t.token
			},
			targets: []
		};
		if (t.actor.isOfType("character")) {
			let n = t.actor.system.exploration, r = t.actor.itemTypes.action.filter((e) => n.includes(e.id));
			e.rollOptions.push(...r.map((e) => `${e.type}:${e.slug ?? game.pf2e.system.sluggify(e.name)}`));
		}
		game.assistant.storage.process(e);
	}
}), Hooks.on("createItem", (e) => {
	if (!(e.isOfType("effect") || e.isOfType("condition")) || !e.actor) return;
	let t = e.actor.getActiveTokens(!0, !0);
	t.length === 1 && game.assistant.storage.process({
		trigger: "create-effect",
		rollOptions: [...e.actor.getRollOptions(), ...e.getRollOptions("item")],
		speaker: {
			actor: e.actor,
			token: t[0]
		},
		targets: []
	});
}), Hooks.on("deleteItem", (e) => {
	if (!(e.isOfType("effect") || e.isOfType("condition")) || !e.actor) return;
	let t = e.actor.getActiveTokens(!0, !0);
	t.length === 1 && game.assistant.storage.process({
		trigger: "delete-effect",
		rollOptions: [...e.actor.getRollOptions(), ...e.getRollOptions("item")],
		speaker: {
			actor: e.actor,
			token: t[0]
		},
		targets: []
	});
}), $(), m(), Q(), Hooks.on("pf2e-toolbelt.rollSave", (e) => {
	rO(e.message, e.roll, e.target, e.data).then((e) => game.assistant.storage.process(e)).then((e) => iO(e.data, e.reroll));
}), Hooks.on("pf2e-toolbelt.rerollSave", (e) => {
	let t = Me(e.message.flags, "pf2e-assistant", "reroll");
	p(t) ? Ke(t[e.target.id]).then(() => rO(e.message, e.keptRoll, e.target, e.data)).then((e) => game.assistant.storage.process(e)).then((e) => iO(e.data, e.reroll)) : rO(e.message, e.keptRoll, e.target, e.data).then((e) => game.assistant.storage.process(e)).then((e) => iO(e.data, e.reroll));
});
async function rO(e, t, n, r) {
	let i = {
		trigger: "saving-throw",
		rollOptions: [`check:outcome:${game.pf2e.system.sluggify(r.success)}`],
		chatMessage: e,
		roll: t,
		targets: []
	};
	if (e.item && (i.item = e.item), e.actor && e.token && (i.origin = {
		actor: e.actor,
		token: e.token
	}), Ve(n) && n.actor && (i.speaker = {
		actor: n.actor,
		token: n
	}), i.speaker && i.rollOptions.push(...tt(i.speaker.actor, "self")), i.origin && (i.rollOptions.push(...tt(i.origin.actor, "origin")), i.speaker)) {
		let e = i.origin.actor.alliance === i.speaker.actor.alliance ? "ally" : "enemy";
		i.rollOptions.push(`origin:${e}`);
	}
	return i.item && i.rollOptions.push(...i.item.getRollOptions("item")), i;
}
async function iO(e, t) {
	e.chatMessage && e.speaker && Object.values(t).some((e) => e.length !== 0) && await game.assistant.socket.updateChatMessage(e.chatMessage, e.speaker.token.id, t);
}
$(), m(), Q(), Hooks.once("ready", async () => {
	libWrapper.register("pf2e-assistant", "game.pf2e.Check.rerollFromMessage", async function(e, t = {}) {
		if (!(e.isAuthor || game.user.isGM)) return;
		let n = e.actor;
		if (!n) return;
		let r = n.isOfType("familiar") ? n.master : n, i = t.resource, a = r?.getResource(i ?? "");
		if (a && r?.isOfType("character") && a && a.value == 0 || !st(e.flags.pf2e.context)) return;
		let o = Me(e.flags, "pf2e-assistant", "reroll");
		p(o) && e.token !== null && await Ke(o[e.token.id]);
	}, "LISTENER");
}), i(), $(), Q(), Hooks.once("ready", async function() {
	if (game.assistant = {
		socket: new Bl(),
		storage: new YD(),
		extractPack: Tt,
		generateReadme: Et
	}, game.user.isGM) {
		let e = game.modules.get(r.id), t = e?.relationships.systems.find((e) => e.id === game.system.id);
		e && t && game.system.version !== t.compatibility.minimum && foundry.ui.notifications.warn(`${e.title} v${e.version} was built for ${game.system.title} v${t.compatibility.minimum}. It appears that you are currently running ${game.system.title} v${game.system.version} which might not be compatible.`), game.macros.find((e) => e.name === "Use Action" && e.type === "script") || Macro.create({
			name: "Use Action",
			type: "script",
			img: Z("icons/actions/OneAction.webp"),
			scope: "global",
			command: "if (actor === null || token === null) {\n    ui.notifications.warn(\"Missing Actor/Token Information! Make sure you are using this on a character.\");\n    return;\n}\n\nif (scope.item === undefined) {\n    ui.notifications.warn(\"Missing Item Information! Macro must be attached to a action/feat that can be used.\");\n    return;\n}\n\ngame.assistant.storage.process({\n    trigger: \"action\",\n    rollOptions: [...actor.getRollOptions(), ...scope.item.getRollOptions(\"action\")],\n    item: scope.item,\n    speaker: { actor: actor, token: token.document }\n});",
			ownership: { default: CONST.DOCUMENT_OWNERSHIP_LEVELS.LIMITED }
		});
	}
});
//#endregion

//# sourceMappingURL=pf2e-assistant.js.map