The Jalaali calendar is a solar calendar with an irregular leap year pattern. This function
follows an algorithm based on equinox calculations to accurately determine the Jalaali date
for each given Gregorian date.
**Conversion Process:**
- The function first ensures that the input is of class `Date`.
- It estimates the Jalaali year by subtracting 621 from the Gregorian year.
- Leap year information for relevant Jalaali years is obtained using `jalLeap`.
- The function then determines the first day of the Jalaali year in the Gregorian calendar.
- Using cumulative day counts, it calculates the Jalaali month and day.
- If the input date falls before the start of the Jalaali year (before March 21), an adjustment
is made to account for the previous year.
The function efficiently handles both single and multiple date inputs, returning either a numeric
vector (for a single date) or a well-structured data frame.