fn(arguments$0) =>
let remote$1 = match @definy.json-get-string(value: $0, key: "remote") {
#some(text$2) =>
@definy.string-trim(value: $2),
#none(_) =>
""
};
match @core.equal(left: $1, right: "") {
true =>
"https://definy-html-narumincho.fly.dev",
false =>
let length$3 = @core.string-length(value: $1);
match @core.equal(left: @core.string-slice(value: $1, start: @core.minus(left: $3, right: 1), end: $3), right: "/") {
true =>
@core.string-slice(value: $1, start: 0, end: @core.minus(left: $3, right: 1)),
false =>
$1
}
}