<div class="vt" data-vt-cat="work-visas" data-vt-code="CW-1"> <div class="vt-crumbs"><nav class="vt-wrap" aria-label="Breadcrumb"><a href="/">Home</a><span>›</span><a href="/work-visas">Work & business</a><span>›</span><span>CW-1</span></nav></div> <section class="vt-dhead"><div class="vt-wrap"> <div class="vt-badges"><span>Nonimmigrant</span><span>CNMI only</span><span>Annual cap</span><span>Ends Dec 31, 2029</span><span>Form I-129CW</span></div> <h1><span>CW-1</span> CNMI-Only Transitional Worker</h1> <p class="vt-lede">Lets employers in the Northern Mariana Islands hire foreign workers who are not eligible for other work visas. The cap shrinks each year, and the program ends December 31, 2029.</p> <div class="vt-dmeta"><span>Last reviewed <strong>Oct 1, 2026</strong></span><span>Sources: USCIS · eCFR</span><a href="/corrections?page=/visa/cw-1">Report an error</a></div> </div></section> <section class="vt-dbody"> <nav class="vt-jump" aria-label="On this page"><a href="#overview">Overview</a><a href="#qualify">Who qualifies</a><a href="#duration">Duration</a><a href="#fees">Fees</a><a href="#processing">Processing</a><a href="#steps">Steps</a><a href="#documents">Documents</a><a href="#dependents">Dependents</a><a href="#greencard">Green card</a><a href="#related">Related</a><a href="#faq">FAQ</a><a href="#sources">Sources</a><a href="#changes">Changes</a></nav> <nav class="vt-toc" aria-label="On this page"><div class="h">On this page</div><ul><li><a href="#overview">Overview</a></li><li><a href="#qualify">Who qualifies</a></li><li><a href="#duration">Duration & extensions</a></li><li><a href="#fees">Fees</a></li><li><a href="#processing">Processing time</a></li><li><a href="#steps">Application steps</a></li><li><a href="#documents">Required documents</a></li><li><a href="#dependents">Dependents & family</a></li><li><a href="#greencard">Path to a green card</a></li><li><a href="#related">Related visas</a></li><li><a href="#faq">Common questions</a></li><li><a href="#sources">Official sources</a></li><li><a href="#changes">Recent changes</a></li></ul></nav> <article class="vt-art"> <div class="vt-glance"><h2>At a glance</h2><dl><div><dt>Where valid</dt><dd>CNMI only (Saipan, Tinian, Rota and other islands)</dd></div><div><dt>Cap, FY 2027 (Oct 1, 2026 – Sept 30, 2027)</dt><dd>7,000</dd></div><div><dt>Petition validity</dt><dd>Up to 1 year (3 years for long-term workers)</dd></div><div><dt>Program end</dt><dd>December 31, 2029</dd></div><div><dt>Employer requirements</dt><dd>DOL temporary labor certification and E-Verify</dd></div><div><dt>Dependents</dt><dd>CW-2 spouse and children under 18; no work</dd></div></dl></div> <div class="vt-callout"><strong>Shrinking cap, fixed end date.</strong> Under the Northern Mariana Islands U.S. Workforce Act of 2018, the <a href="https://www.uscis.gov/working-in-the-united-states/temporary-workers/cw-1-cnmi-only-transitional-worker/the-cnmi-only-transitional-worker-cw-1-cap" target="_blank" rel="noopener">CW-1 cap</a> falls from 8,000 in fiscal year 2026 to 7,000 in FY 2027, 6,000 in FY 2028, 5,000 in FY 2029 and 1,000 for the first quarter of FY 2030. The program ends December 31, 2029. A bill to extend it to December 31, 2039 or later (<a href="https://www.govinfo.gov/content/pkg/BILLS-119hr9787ih/html/BILLS-119hr9787ih.htm" target="_blank" rel="noopener">H.R. 9787</a>) was introduced July 20, 2026 and, as of October 1, 2026, has only been referred to committee.</div> <h2 id="overview" class="s">Overview</h2> <p class="b">The CW-1 classification lets employers in the Commonwealth of the Northern Mariana Islands (CNMI) temporarily employ foreign workers who are not eligible for any other employment-based nonimmigrant status. It was created by the Consolidated Natural Resources Act of 2008 and extended and revised by the Northern Mariana Islands U.S. Workforce Act of 2018 (Public Law 115-218) (<a href="https://www.uscis.gov/working-in-the-united-states/temporary-workers/cw-1-cnmi-only-transitional-worker" target="_blank" rel="noopener">USCIS</a>).</p> <p class="b">Before petitioning USCIS on Form I-129CW, the employer must get a temporary labor certification from the Department of Labor, which requires a prevailing wage determination and recruitment of U.S. workers. The employer must also use E-Verify. Construction and extraction occupations are excluded unless the worker is a “long-term worker,” meaning someone who held CW-1 status in fiscal years 2015 through 2018 (<a href="https://www.ecfr.gov/current/title-8/chapter-I/subchapter-B/part-214/section-214.2" target="_blank" rel="noopener">8 CFR 214.2(w)</a>).</p> <p class="b">CW-1 status is valid only in the CNMI, and the worker may work only for the petitioning employer. Each fiscal year has a numerical limit, and the program is scheduled to end on <a href="https://www.uscis.gov/working-in-the-united-states/temporary-workers/cw-1-cnmi-only-transitional-worker/the-cnmi-only-transitional-worker-cw-1-cap" target="_blank" rel="noopener">December 31, 2029</a>. After that, no one can be admitted in CW-1 or CW-2 status.</p> <h2 id="qualify" class="s">Who qualifies</h2> <h3 class="s">The worker must</h3> <ul class="b"><li>Be ineligible for any other employment-based nonimmigrant classification</li><li>Be coming to work in an occupational category designated as needing foreign workers</li><li>Not be present anywhere in the U.S. other than the CNMI, and be lawfully present if in the CNMI</li><li>Not work in a construction or extraction occupation (SOC 47-0000) unless a long-term worker</li><li>Be admissible or have a waiver</li></ul> <h3 class="s">The employer must</h3> <ul class="b"><li>Be a legitimate business doing business in the CNMI</li><li>Obtain a DOL temporary labor certification and consider all available U.S. workers</li><li>Participate in E-Verify and follow federal and CNMI employment laws</li><li>Pay reasonable return transportation costs if the worker is involuntarily dismissed</li><li>File a semiannual report (Form I-129CWR)</li></ul> <h2 id="duration" class="s">Duration & extensions</h2> <table class="vt-kv"><tbody><tr><th scope="row">Petition validity</th><td>Up to 1 year; up to 3 years for long-term workers (<a href="https://www.ecfr.gov/current/title-8/chapter-I/subchapter-B/part-214/section-214.2" target="_blank" rel="noopener">8 CFR 214.2(w)(13)</a>)</td></tr><tr><th scope="row">Admission</th><td>Petition validity plus up to 10 days before and 10 days after</td></tr><tr><th scope="row">Extensions</th><td>Up to 1 year at a time (3 for long-term workers) until the program ends, subject to the cap</td></tr><tr><th scope="row">Departure rule</th><td>After 3 consecutive petition validity periods, a worker who is not a long-term worker must spend at least 30 days outside the U.S.</td></tr><tr><th scope="row">Program end</th><td>December 31, 2029</td></tr></tbody></table> <h2 id="fees" class="s">Fees</h2> <p class="vt-feesintro">Amounts are from the <a href="https://www.uscis.gov/g-1055" target="_blank" rel="noopener">USCIS fee schedule (G-1055, edition 10/01/26)</a> and the Form I-129CW instructions.</p> <div class="vt-scroll"><table class="vt-fees"><thead><tr><th>Fee</th><th class="amt">Amount</th><th>Who pays</th><th>Notes</th></tr></thead><tbody> <tr><td>Form I-129CW filing fee</td><td class="amt"><a href="https://www.uscis.gov/g-1055" target="_blank" rel="noopener">$1,015</a></td><td>Employer</td><td>Small employers and nonprofits pay $510; fee waiver possible for some petitioners.</td></tr> <tr><td>Asylum Program Fee</td><td class="amt"><a href="https://www.uscis.gov/g-1055" target="_blank" rel="noopener">$600</a></td><td>Employer</td><td>$300 for small employers; $0 for nonprofits.</td></tr> <tr><td>CNMI education funding fee</td><td class="amt"><a href="https://www.uscis.gov/g-1055" target="_blank" rel="noopener">$210 per worker per year</a></td><td>Employer</td><td>Charged for each year or partial year of requested validity; not waivable.</td></tr> <tr><td>Fraud prevention and detection fee</td><td class="amt"><a href="https://www.uscis.gov/g-1055" target="_blank" rel="noopener">$50 per petition</a></td><td>Employer</td><td>Not waivable.</td></tr> <tr><td>Form I-129CWR semiannual report</td><td class="amt"><a href="https://www.uscis.gov/g-1055" target="_blank" rel="noopener">$0</a></td><td>Employer</td><td>Required filing.</td></tr> <tr><td>Form I-539 (CW-2 in the CNMI)</td><td class="amt"><a href="https://www.uscis.gov/g-1055" target="_blank" rel="noopener">$470 paper / $420 online</a></td><td>Dependent</td><td>For CW-2 grants or extensions inside the CNMI.</td></tr> </tbody></table></div> <p class="vt-foot">Workers outside the CNMI also pay a consular visa application fee. Public Law 119-21 (signed July 4, 2025), section 100007, requires a <a href="https://www.govinfo.gov/content/pkg/PLAW-119publ21/html/PLAW-119publ21.htm" target="_blank" rel="noopener">Visa Integrity Fee</a> of at least $250 when a nonimmigrant visa is issued. As of October 1, 2026, the State Department’s fee schedule (<a href="https://www.ecfr.gov/current/title-22/chapter-I/subchapter-C/part-22/section-22.1" target="_blank" rel="noopener">22 CFR 22.1</a>) lists no Visa Integrity Fee and no implementing notice has been published in the Federal Register, so the amount actually collected at visa issuance should be confirmed with the consulate.</p> <h2 id="processing" class="s">Processing time</h2> <dl class="vt-cards"><div><dt>FY 2027 cap</dt><dd>7,000</dd><dd class="n">Set by statute; see the <a href="https://www.uscis.gov/working-in-the-united-states/temporary-workers/cw-1-cnmi-only-transitional-worker/the-cnmi-only-transitional-worker-cw-1-cap" target="_blank" rel="noopener">USCIS cap page</a>.</dd></div><div><dt>Filing window</dt><dd>120 / 180 days</dd><dd class="n">New petitions up to 120 days before the start date; extensions up to 180 days before the current petition expires, and in both cases only after DOL approves the labor certification (<a href="https://www.uscis.gov/i-129cw" target="_blank" rel="noopener">Form I-129CW instructions</a>).</dd></div></dl> <h3 class="s">Key dates</h3><div class="vt-cal"><div><b>October 1</b>New fiscal year cap opens (FY 2027 began October 1, 2026)</div><div><b>Every 6 months</b>Employers with petitions approved for 6 months or more file Form I-129CWR around each 6-month anniversary of the petition start date</div><div><b>December 31, 2029</b>CW program ends</div></div> <p class="b">CW-1 is not listed among the classifications eligible for <a href="https://www.uscis.gov/forms/all-forms/how-do-i-request-premium-processing" target="_blank" rel="noopener">premium processing</a>. Regular processing times vary; check <a href="https://egov.uscis.gov/processing-times/" target="_blank" rel="noopener">USCIS processing times</a>.</p> <h2 id="steps" class="s">Application steps</h2> <ol class="vt-steps"><li><span class="num">1</span><div><div class="tt">Prevailing wage and labor certification</div><div class="tx">Get a prevailing wage determination and apply to the Department of Labor for a CW-1 temporary labor certification, recruiting U.S. workers as required.</div></div></li><li><span class="num">2</span><div><div class="tt">Enroll in E-Verify</div><div class="tx">The employer must take part in E-Verify.</div></div></li><li><span class="num">3</span><div><div class="tt">File Form I-129CW</div><div class="tx">File with USCIS with the approved labor certification and fees, no more than 120 days before the start date (180 days before the current petition expires, for extensions).</div></div></li><li><span class="num">4</span><div><div class="tt">Visa or grant of status</div><div class="tx">Workers outside the CNMI apply for a CW-1 visa as directed in the approval notice. For workers lawfully in the CNMI, the approved petition grants CW-1 status.</div></div></li><li><span class="num">5</span><div><div class="tt">Work and report</div><div class="tx">The worker works only for the petitioner in the CNMI. The employer files semiannual reports.</div></div></li><li><span class="num">6</span><div><div class="tt">Renew before expiration</div><div class="tx">Extend while the current petition is valid. After 3 consecutive periods, a worker who is not a long-term worker must spend 30 days outside the U.S.</div></div></li></ol> <h2 id="documents" class="s">Required documents</h2> <div class="vt-docs"><div><h3>From the employer</h3><ul><li><span>Approved DOL temporary labor certification</span></li><li><span>Signed attestations (no displacement of U.S. workers, legitimate business, eligible employer)</span></li><li><span>Evidence of E-Verify participation and business legitimacy</span></li></ul></div><div><h3>About the worker</h3><ul><li><span>Passport and, if in the CNMI, proof of lawful presence</span></li><li><span>Evidence of qualifications for the position</span></li><li><span>For long-term workers: evidence of CW-1 status in fiscal years 2015–2018</span></li></ul></div></div> <h2 id="dependents" class="s">Dependents & family</h2> <p class="b">The spouse and minor children (under 18) of a CW-1 worker may hold <a href="https://www.ecfr.gov/current/title-8/chapter-I/subchapter-B/part-214/section-214.2" target="_blank" rel="noopener">CW-2 status</a> for the same period. A child’s status ends at 18, and CW-2 status ends when the related CW-1 status ends.</p> <p class="b">CW-2 dependents <a href="https://www.uscis.gov/working-in-the-united-states/temporary-workers/cw-1-cnmi-only-transitional-worker" target="_blank" rel="noopener">are not authorized to work</a>. In the CNMI, they apply on Form I-539, which cannot be approved until the CW-1 petition is approved.</p> <h2 id="greencard" class="s">Path to a green card</h2> <p class="b">The State Department treats CW applicants as able to have dual intent (<a href="https://fam.state.gov/fam/09FAM/09FAM040218.html" target="_blank" rel="noopener">9 FAM 402.18</a>). A filed or approved green card case does not by itself bar CW-1 status, but CW-1 does not lead to permanent residence.</p> <div class="vt-gsteps"><div><div class="k">Step 1</div><div class="tt">Separate petition</div><div class="tx">A green card requires a separate employment-based or family-based immigrant petition.</div></div></div> <p class="b">With the program ending December 31, 2029 under current law, workers and employers should plan for other statuses.</p> <h2 id="related" class="s">Related visas</h2> <div class="vt-rel"><a href="/visa/e-2c"><div class="c">E-2C</div><div class="n">CNMI-only investor</div><div class="tx">The CNMI’s parallel investor status, also ending in 2029.</div></a><a href="/visa/h-2b"><div class="c">H-2B</div><div class="n">Temporary non-agricultural worker</div><div class="tx">Seasonal or temporary non-farm work across the U.S.</div></a><a href="/visa/h-1b"><div class="c">H-1B</div><div class="n">Specialty occupation</div><div class="tx">For degree-level roles; CW-1 applicants must be ineligible for this.</div></a><a href="/visa/eb-3"><div class="c">EB-3</div><div class="n">Skilled and other workers</div><div class="tx">Employer-sponsored green card route.</div></a></div> <h2 id="faq" class="s">Common questions</h2> <div class="vt-faq"><details><summary>What is the CW-1 cap this year?</summary><p>7,000 for fiscal year 2027, which runs October 1, 2026 to September 30, 2027. It drops to 6,000 in FY 2028 and 5,000 in FY 2029.</p></details><details><summary>When does the CW-1 program end?</summary><p>December 31, 2029 under current law. A bill introduced July 20, 2026 (H.R. 9787) would extend it to at least December 31, 2039, but it has not been enacted as of October 1, 2026.</p></details><details><summary>Can a CW-1 worker travel to Guam or the U.S. mainland?</summary><p>CW-1 status is valid only in the CNMI. Guam may be used only for direct transit between the CNMI and a foreign place. Other travel requires a separate visa.</p></details><details><summary>Can CW-1 be used for construction jobs?</summary><p>Generally no. Construction and extraction occupations are excluded unless the worker is a long-term worker who held CW-1 status in fiscal years 2015 through 2018.</p></details><details><summary>Can a CW-2 spouse work?</summary><p>No. CW-2 spouses and children are not authorized to work.</p></details></div> <h2 id="sources" class="s">Official sources</h2> <ul class="vt-src"><li><a href="https://www.uscis.gov/working-in-the-united-states/temporary-workers/cw-1-cnmi-only-transitional-worker" target="_blank" rel="noopener"><span><strong>USCIS</strong> · CW-1 CNMI-Only Transitional Worker</span><span>uscis.gov ↗</span></a></li><li><a href="https://www.uscis.gov/working-in-the-united-states/temporary-workers/cw-1-cnmi-only-transitional-worker/the-cnmi-only-transitional-worker-cw-1-cap" target="_blank" rel="noopener"><span><strong>USCIS</strong> · The CNMI-Only Transitional Worker (CW-1) Cap</span><span>uscis.gov ↗</span></a></li><li><a href="https://www.uscis.gov/i-129cw" target="_blank" rel="noopener"><span><strong>USCIS</strong> · Form I-129CW, Petition for a CNMI-Only Nonimmigrant Transitional Worker</span><span>uscis.gov ↗</span></a></li><li><a href="https://www.ecfr.gov/current/title-8/chapter-I/subchapter-B/part-214/section-214.2" target="_blank" rel="noopener"><span><strong>eCFR</strong> · 8 CFR 214.2(w) — CNMI-Only Transitional Worker</span><span>ecfr.gov ↗</span></a></li><li><a href="https://fam.state.gov/fam/09FAM/09FAM040218.html" target="_blank" rel="noopener"><span><strong>Department of State</strong> · 9 FAM 402.18 — Nonimmigrant visas for the CNMI</span><span>state.gov ↗</span></a></li><li><a href="https://www.uscis.gov/g-1055" target="_blank" rel="noopener"><span><strong>USCIS</strong> · Fee Schedule (G-1055)</span><span>uscis.gov ↗</span></a></li><li><a href="https://www.govinfo.gov/content/pkg/BILLS-119hr9787ih/html/BILLS-119hr9787ih.htm" target="_blank" rel="noopener"><span><strong>Congress (GovInfo)</strong> · H.R. 9787 — Northern Mariana Islands Labor Stabilization Act (introduced text)</span><span>govinfo.gov ↗</span></a></li></ul> <h2 id="changes" class="s">Recent changes</h2> <ul class="vt-chg"><li><span class="d">Aug 24, 2026</span><div class="x"><strong>Court enjoins USCIS hold memos.</strong> In Red Eagle Law v. Edlow (N.D. Cal.), the court ordered USCIS to process applications from nationals of the countries covered by PM-602-0192 and PM-602-0194 in the normal course. USCIS said it will comply pending possible further review. <a href="https://www.uscis.gov/newsroom/alerts/recent-court-order-on-hold-policies" target="_blank" rel="noopener">Source ↗</a></div></li><li><span class="d">Jun 5, 2026</span><div class="x"><strong>Court vacates USCIS hold memos.</strong> In Dorcas v. USCIS (D.R.I.), the court vacated PM-602-0192, PM-602-0194 and PA-2025-26, with final judgment on June 11, 2026. <a href="https://www.uscis.gov/newsroom/alerts/court-order-on-hold-policies" target="_blank" rel="noopener">Source ↗</a></div></li><li><span class="d">Jan 1, 2026</span><div class="x"><strong>Proclamation 10998 expands entry restrictions.</strong> Signed December 16, 2025 and effective January 1, 2026, it continues the June 2025 restrictions and adds more countries. Nationals of fully restricted countries are barred from entry on any visa unless an exception applies; for partially restricted countries, consular officers are told to shorten the validity of nonimmigrant visas other than B, F, M and J. <a href="https://www.federalregister.gov/documents/2025/12/19/2025-23570/restricting-and-limiting-the-entry-of-foreign-nationals-to-protect-the-security-of-the-united-states" target="_blank" rel="noopener">Source ↗</a></div></li><li><span class="d">Jan 1, 2026</span><div class="x"><strong>USCIS hold on benefit requests expanded (PM-602-0194).</strong> Extends the December 2, 2025 hold (PM-602-0192) on final decisions for pending benefit requests, including extensions and changes of status, filed by nationals of countries named in the travel-restriction proclamations. The memo says the hold stays in place until the USCIS Director lifts or changes it. A federal court vacated this memo on June 5, 2026 (Dorcas v. USCIS, D.R.I.), and another court enjoined it on August 24, 2026 (Red Eagle Law v. Edlow, N.D. Cal.); USCIS says it is following both orders. <a href="https://www.uscis.gov/laws-and-policy/policy-memoranda" target="_blank" rel="noopener">Source ↗</a></div></li><li><span class="d">Jul 4, 2025</span><div class="x"><strong>Visa Integrity Fee enacted.</strong> Public Law 119-21 created a non-waivable Visa Integrity Fee of at least $250, due when a nonimmigrant visa is issued. As of October 1, 2026, the State Department’s fee schedule does not list it. <a href="https://www.govinfo.gov/content/pkg/PLAW-119publ21/html/PLAW-119publ21.htm" target="_blank" rel="noopener">Source ↗</a></div></li><li><span class="d">Jun 9, 2025</span><div class="x"><strong>Proclamation 10949 travel restrictions take effect.</strong> Signed June 4, 2025, it fully or partially suspended entry for nationals of 19 countries, effective June 9, 2025. <a href="https://www.federalregister.gov/documents/2025/06/10/2025-10669/restricting-the-entry-of-foreign-nationals-to-protect-the-united-states-from-foreign-terrorists-and" target="_blank" rel="noopener">Source ↗</a></div></li><li><span class="d">Apr 1, 2024</span><div class="x"><strong>New USCIS fee schedule and Asylum Program Fee.</strong> The USCIS fee rule published January 31, 2024 took effect April 1, 2024. It set separate Form I-129 fees for each classification, created reduced fees for small employers and nonprofits, and added an Asylum Program Fee to I-129 petitions. <a href="https://www.federalregister.gov/documents/2024/01/31/2024-01427/us-citizenship-and-immigration-services-fee-schedule-and-changes-to-certain-other-immigration" target="_blank" rel="noopener">Source ↗</a></div></li></ul> <div class="vt-disc">This page is general reference material compiled from the official sources above and is not legal advice. Eligibility depends on individual facts; rules and fees change, so confirm with the agency before you file. VisaTypes.com is not affiliated with USCIS, the Department of State or any government agency. Spotted an error? <a href="/corrections?page=/visa/cw-1">Tell us</a>.</div> </article></section></div> <script type="application/ld+json">[{"\u0040context": "https://schema.org", "\u0040type": "BreadcrumbList", "itemListElement": [{"\u0040type": "ListItem", "position": 1, "name": "Home", "item": "https://visatypes.com/"}, {"\u0040type": "ListItem", "position": 2, "name": "Work & business", "item": "https://visatypes.com/work-visas"}, {"\u0040type": "ListItem", "position": 3, "name": "CW-1", "item": "https://visatypes.com/visa/cw-1"}]}, {"\u0040context": "https://schema.org", "\u0040type": "FAQPage", "mainEntity": [{"\u0040type": "Question", "name": "What is the CW-1 cap this year?", "acceptedAnswer": {"\u0040type": "Answer", "text": "7,000 for fiscal year 2027, which runs October 1, 2026 to September 30, 2027. It drops to 6,000 in FY 2028 and 5,000 in FY 2029."}}, {"\u0040type": "Question", "name": "When does the CW-1 program end?", "acceptedAnswer": {"\u0040type": "Answer", "text": "December 31, 2029 under current law. A bill introduced July 20, 2026 (H.R. 9787) would extend it to at least December 31, 2039, but it has not been enacted as of October 1, 2026."}}, {"\u0040type": "Question", "name": "Can a CW-1 worker travel to Guam or the U.S. mainland?", "acceptedAnswer": {"\u0040type": "Answer", "text": "CW-1 status is valid only in the CNMI. Guam may be used only for direct transit between the CNMI and a foreign place. Other travel requires a separate visa."}}, {"\u0040type": "Question", "name": "Can CW-1 be used for construction jobs?", "acceptedAnswer": {"\u0040type": "Answer", "text": "Generally no. Construction and extraction occupations are excluded unless the worker is a long-term worker who held CW-1 status in fiscal years 2015 through 2018."}}, {"\u0040type": "Question", "name": "Can a CW-2 spouse work?", "acceptedAnswer": {"\u0040type": "Answer", "text": "No. CW-2 spouses and children are not authorized to work."}}]}]</script> <script>(function(){var l=[].slice.call(document.querySelectorAll('.vt-toc a'));if(!l.length||!window.IntersectionObserver)return;var m={};l.forEach(function(a){m[a.getAttribute('href').slice(1)]=a});var cur=null;function on(id){if(cur)cur.classList.remove('on');cur=m[id];if(cur)cur.classList.add('on')}on(l[0].getAttribute('href').slice(1));var io=new IntersectionObserver(function(es){es.forEach(function(x){if(x.isIntersecting)on(x.target.id)})},{rootMargin:'0px 0px -70% 0px'});Object.keys(m).forEach(function(id){var el=document.getElementById(id);el&&io.observe(el)})})();</script>