fn(segment$0) =>
let bytes$1 = @core.string-to-bytes(value: $0);
let high$2 = @html-ui.hex-at(bytes: $1, index: 0);
let low$3 = @html-ui.hex-at(bytes: $1, index: 1);
match @core.or(left: @core.less-than(left: $2, right: 0), right: @core.less-than(left: $3, right: 0)) {
true =>
@core.list-concat(left: [37], right: $1),
false =>
@core.list-concat(
left: [@core.plus(left: @core.multiply(left: $2, right: 16), right: $3)],
right: @core.string-to-bytes(value: @core.string-slice(value: $0, start: 2, end: @core.string-length(value: $0)))
)
}