
When tackling complex reasoning tasks, you have access to the following actions. Use them as needed to progress through your thought process.

[ASSESS]

[ADVANCE]

[VERIFY]

[SIMPLIFY]

[SYNTHESIZE]

[PIVOT]

[OUTPUT]

You should strictly follow the format below:

[ACTION NAME]

# Your action step 1

# Your action step 2

# Your action step 3

...

Next action: [NEXT ACTION NAME]


system
In the rectangular coordinate system, the parametric equation of line $l$ is given by $\begin{cases} x=-1+\frac{3}{5}t \\ y=-1+\frac{4}{5}t \end{cases}$ ($t$ is a parameter). If the polar coordinate system is established with the coordinate origin $O$ as the pole and the positive semi-axis of the $x$-axis as the polar axis, then the polar equation of curve $C$ is given by $\rho=\sqrt{2}\sin(\theta+\frac{\pi}{4})$.

1. Find the rectangular equation of curve $C$.
2. Find the length of the chord intercepted by line $l$ on curve $C$.

Present the answer in LaTex format: \boxed{Your answer}
user