Mid-infrared extinction curve for protostellar envelopes from JWST-detected embedded jet emission: The case of TMC1A | Synapse