Led Christmas string lights plug.

I have a male plug on a set of C9 LED string lights that cooked. Inside it has a circuit board with 2 resistors and 2 diodes. Is this a part that may be available or is the string toast? I tried searching for it but came up empty. Any suggestion as to how to salvage the lights appreciated. Thanks

After a exhaustive search of LED Christmas light drivers I found this repair.

Merry Christmas BLF