Frequency-guided few-shot pattern inpainting for Ming Dynasty rank badges restoration | Synapse