{
  "_comment": "展示与规则配置。人工维护，抓取程序不会改动此文件。控制下拉框中出现哪些业务类别、它们的标签与顺序、各自对应的移民局记录，以及各自的起诉门槛。中英两站共用这一个文件：门槛与解析规则是法律和数据事实，与语言无关，复制成两份只会让它们悄悄不一致。语言只影响显示，见 'label' / 'labelEn' / 'codeEn'。",
  "rules": {
    "pendingThresholdMonths": 12,
    "consularPendingThresholdMonths": 6,
    "_rules_note": "全局兜底门槛。条件 1（拖延不合理）在下列任一情形下成立：已等待月数超过官方公布的处理时间，或达到门槛月数。类别自带 'thresholdMonths' 时，以该值优先，全局值只在类别没写时使用。"
  },
  "_forms_note": "每一条是一个业务类别，不一定等于单一表格。'uscisForm'（没写时退回 'code'）指向 uscis-processing-times.json 里的表格号；'formType' 是该类别在移民局数据里的类别代码（只有一个时写在这里），类别不止一个时写 'subtypes'：[{formType, label, labelEn, uscisForm?}]，用户在第二个下拉框里选，subtype 自带 uscisForm 时覆盖类别的（EB-5 的 I-526 / I-526E / I-829 就是这样）。办公室不写死：一个 (uscisForm, formType) 在数据里有几个办公室，前端就列几个让用户选，只有一个时自动选。解析不到记录时退回 'months'。'months' 是写死的兜底处理时长，只在确有对应表格时填写。'thresholdMonths' 是我们自己的起诉门槛（多久算等够了），与官方公布时长是两回事，不要混用。只要 'months' 与 'thresholdMonths' 至少有一个，该类别就会出现在下拉框中。",
  "_visa_queue_note": "visaQueue 只标在『批准本身被签证名额挡住』的类别上 —— 目前是 I-485 和职业移民绿卡。优先日期没到，移民局在法律上不能批准，那不是拖延，法院也找不到可以命令的东西，所以自测的结论必须带一句提醒。I-130 不标：排期挡的是签证名额，I-130 申请本身照批，催办仍然有意义（优先日期按递交日锁定，争取到的是确定性），见 /delay/i-130。EB-5 的三个子类是 I-526/I-526E/I-829，都不是 I-485，同样不标。",
  "_display_note": "'code' 是记录用的键，不是文案：它是下拉框 option 的 value，会原样进 GA4 的 Case type 维度和后台 lead 表的 case_type 列：GA4 的维度值根本回填不了，lead 表也只能手工对生产库 UPDATE 既有的行，所以 code 一经使用就不再改动。'label' / 'labelEn' 是下拉框里看得见的文本。'codeEn' 只写给那三个 code 本身就是中文的类别（庇护 I-589、职业移民绿卡、U 签证 / VAWA）—— 判决文案会把这个名字回读给用户，没有它英文页会出现『Your 职业移民绿卡 has been pending for 14 months』。其余类别的 code 本来就是语言中立的表格号，不需要 codeEn。 label / labelEn 里的 '{threshold}' 由前端换成这一条的 thresholdMonths（没写时用 rules 里的全局门槛）：门槛只在 thresholdMonths 一处维护，标签不另写数字，改门槛时下拉框就不会和判断结果对不上。N-400 的标签不提面谈：自测从收据日期算，不问面谈日期，标签说『面谈后 4 个月』（§ 1447(b)）就和算法讲的不是一回事。",
  "forms": [
    {
      "code": "N-400",
      "uscisForm": "N-400",
      "label": "N-400 入籍申请 —— 迟迟没有决定",
      "labelEn": "N-400 naturalisation — still no decision",
      "months": 8,
      "thresholdMonths": 12,
      "formType": "160A",
      "_note": "§ 1447(b) 的承重事实是『面谈后满 120 天』，而本表单收集的是收据日期。此处 thresholdMonths 仍按收据日期计算，只作粗筛；是否落入 § 1447(b)，需由律师按面谈日期确认。"
    },
    {
      "code": "I-485",
      "uscisForm": "I-485",
      "label": "I-485 境内调整身份 人在美国，等满 {threshold} 个月",
      "labelEn": "I-485 adjustment of status — in the U.S., pending {threshold}+ months",
      "months": 13,
      "thresholdMonths": 12,
      "formType": "131A-FAM",
      "visaQueue": true
    },
    {
      "code": "I-130",
      "uscisForm": "I-130",
      "label": "I-130 亲属移民申请 —— 配偶 / 子女 / 父母",
      "labelEn": "I-130 family petition — spouse / child / parent",
      "months": 14,
      "thresholdMonths": 12,
      "subtypes": [
        {
          "formType": "134A-IR",
          "label": "公民为配偶、父母或未满 21 岁子女申请",
          "labelEn": "U.S. citizen filing for a spouse, parent, or child under 21"
        },
        {
          "formType": "134A-F21",
          "label": "绿卡持有人为配偶或未满 21 岁子女申请",
          "labelEn": "Permanent resident filing for a spouse or child under 21"
        },
        {
          "formType": "134B-F11",
          "label": "公民为 21 岁以上未婚子女申请",
          "labelEn": "U.S. citizen filing for an unmarried son or daughter 21 or older"
        },
        {
          "formType": "134B-F24",
          "label": "绿卡持有人为 21 岁以上未婚子女申请",
          "labelEn": "Permanent resident filing for an unmarried son or daughter 21 or older"
        },
        {
          "formType": "134B-F31",
          "label": "公民为已婚子女申请",
          "labelEn": "U.S. citizen filing for a married son or daughter"
        },
        {
          "formType": "134B-F41",
          "label": "公民为兄弟姐妹申请",
          "labelEn": "U.S. citizen filing for a brother or sister"
        }
      ]
    },
    {
      "code": "221(g)",
      "label": "221(g) 领事行政审理 —— 面谈后卡在 administrative processing",
      "labelEn": "221(g) consular review — stuck in administrative processing after the interview",
      "thresholdMonths": 6,
      "source": "manual",
      "consular": true,
      "_note": "12 个月是有力门槛；若有健康、重大经济损失等紧急因素，6 个月即可行动。"
    },
    {
      "code": "庇护 I-589",
      "codeEn": "asylum (I-589)",
      "uscisForm": "I-589",
      "label": "庇护申请拖延（I-589，USCIS 庇护办公室）",
      "labelEn": "Asylum delay (I-589, USCIS asylum office)",
      "thresholdMonths": 48,
      "source": "manual",
      "_note": "视辖区不同，4–5 年为常见门槛。已面谈但 2–3 个月无决定的情形，本表单按收据日期算不出来，需人工判断。"
    },
    {
      "code": "EB-5",
      "uscisForm": "I-526",
      "label": "EB-5 投资移民（I-526 / I-485 / I-829）",
      "labelEn": "EB-5 investor (I-526 / I-485 / I-829)",
      "thresholdMonths": 12,
      "source": "manual",
      "_note": "2022 年之后递交的案件，等满 1 年通常即可提起。",
      "subtypes": [
        {
          "uscisForm": "I-526E",
          "formType": "526IP",
          "label": "I-526E 区域中心投资移民申请",
          "labelEn": "I-526E regional center investor petition"
        },
        {
          "uscisForm": "I-526",
          "formType": "133IP",
          "label": "I-526 直接投资移民申请",
          "labelEn": "I-526 standalone investor petition"
        },
        {
          "uscisForm": "I-829",
          "formType": "148C",
          "label": "I-829 解除绿卡条件",
          "labelEn": "I-829 removal of conditions (investors)"
        }
      ]
    },
    {
      "code": "职业移民绿卡",
      "codeEn": "employment-based green card",
      "uscisForm": "I-485",
      "label": "职业移民绿卡（EB-1 / EB-2 / EB-3 的 I-485）",
      "labelEn": "Employment-based green card (I-485 for EB-1 / EB-2 / EB-3)",
      "months": 13,
      "thresholdMonths": 12,
      "formType": "131A",
      "visaQueue": true
    },
    {
      "code": "H-1B / L-1",
      "uscisForm": "I-129",
      "label": "H-1B、L-1 等雇主担保签证 —— 卡在领事馆或移民局",
      "labelEn": "H-1B, L-1 and other employer-sponsored visas — stuck at the consulate or USCIS",
      "thresholdMonths": 12,
      "source": "manual",
      "_note": "请愿人是雇主，所以 § 1391(e) 的『原告居住地』指向公司所在地，而不是受益人住处 —— 两者可能在不同辖区，这是这一类独有的选择。不要写成『绕开华盛顿特区的积压』：D.C. 只是永远可选，从来不是必选，而且比较法院快慢是 content/README.md 禁止的结果类主张。",
      "subtypes": [
        {
          "formType": "137-H1B2",
          "label": "H-1B 境内转身份",
          "labelEn": "H-1B — change of status in the U.S."
        },
        {
          "formType": "137-H1B3",
          "label": "H-1B 境内延期",
          "labelEn": "H-1B — extension of stay in the U.S."
        },
        {
          "formType": "137-H1B1",
          "label": "H-1B 境外领馆签发",
          "labelEn": "H-1B — visa to be issued abroad"
        },
        {
          "formType": "137-L",
          "label": "L-1 跨国公司调派",
          "labelEn": "L-1 intracompany transferee"
        },
        {
          "formType": "137-O",
          "label": "O-1 杰出人才",
          "labelEn": "O-1 extraordinary ability"
        },
        {
          "formType": "137-TN",
          "label": "TN（美墨加协定专业人员）",
          "labelEn": "TN (USMCA professional)"
        }
      ]
    },
    {
      "code": "I-765",
      "uscisForm": "I-765",
      "label": "I-765 工卡（EAD）—— 含 U 签证 / VAWA / 庇护关联工卡",
      "labelEn": "I-765 work permit (EAD) — including U visa / VAWA / asylum-based",
      "months": 4,
      "thresholdMonths": 6,
      "subtypes": [
        {
          "formType": "147-C9",
          "label": "基于待审的 I-485 (c)(9)",
          "labelEn": "Based on a pending I-485 (c)(9)"
        },
        {
          "formType": "147-C8",
          "label": "基于待审的庇护申请 (c)(8)，续期／补办",
          "labelEn": "Based on a pending asylum application (c)(8), renewal / replacement"
        },
        {
          "formType": "147-A5",
          "label": "基于已批准的庇护 (a)(5)",
          "labelEn": "Based on an approved asylum application (a)(5)"
        },
        {
          "formType": "147-C3",
          "label": "F-1 学生 OPT／STEM OPT (c)(3)",
          "labelEn": "F-1 student OPT / STEM OPT (c)(3)"
        },
        {
          "formType": "147-539C26",
          "label": "H-4 配偶，随 I-539 一起递交 (c)(26)",
          "labelEn": "H-4 spouse, filed with I-539 (c)(26)"
        },
        {
          "formType": "147-C26",
          "label": "H-4 配偶，单独递交 (c)(26)",
          "labelEn": "H-4 spouse, filed on its own (c)(26)"
        },
        {
          "formType": "147-OTH",
          "label": "其他类别的工卡",
          "labelEn": "All other work-permit categories"
        }
      ]
    },
    {
      "code": "U 签证 / VAWA",
      "codeEn": "U visa / VAWA",
      "uscisForm": "I-918",
      "label": "U 签证 BFD 与 VAWA（I-360）",
      "labelEn": "U visa bona fide determination and VAWA (I-360)",
      "thresholdMonths": 6,
      "source": "manual",
      "_note": "U 签证善意认定（BFD）等满 6 个月即可起诉；VAWA I-360 通常需 1.5–2 年（18–24 个月）。两者门槛不同，此处取较低值粗筛，由律师区分。",
      "subtypes": [
        {
          "uscisForm": "I-918",
          "formType": "918ABFD",
          "label": "U 签证 I-918 善意认定（BFD）",
          "labelEn": "U visa I-918 bona fide determination (BFD)"
        },
        {
          "uscisForm": "I-360",
          "formType": "135C",
          "label": "VAWA 自我申请 I-360",
          "labelEn": "VAWA self-petition I-360"
        }
      ]
    },
    {
      "code": "I-601A",
      "uscisForm": "I-601A",
      "label": "I-601A 临时豁免 —— 目前 USCIS 最慢的申请之一",
      "labelEn": "I-601A provisional waiver — one of the slowest USCIS filings right now",
      "thresholdMonths": 24,
      "source": "manual",
      "_note": "以『极端困难』与拖延的不合理性为论点，挑战多年不决。",
      "formType": "144AC"
    }
  ],
  "_subtypes_note": "subtypes 的取舍：和 egov.uscis.gov 官网下拉框的分类一致（同一个 formType 代码、同样的划分），但只列当事人常见的几个，不照抄官网那几十项。label 是中文站显示、labelEn 是英文站显示；formType 必须在 uscis-processing-times.json 里存在，tools/fetch-uscis-times.mjs 会校验。"
}
