2 large Granny Smith apples (peeled, cored and cut into 1/4-inch dice -- about 3 cups)
2 large Gala apples (peeled, cored and cut into 1/4-inch dice -- about 3 cups)
1 1/2 cups (packed) light brown sugar
3/4 cup apple cider vinegar
1 cup golden raisins
1 large yellow onion (cut into 1/4-inch dice, about 1 cup)
2 tablespoons fresh ginger (peeled and grated)
2 tablespoons fresh lemon juice
1 1/2 teaspoons salt
1/4 teaspoon red pepper flakes (or more to taste)
2 whole cloves
2 whole allspice berries
1 star anise pod
1 bay leaf