1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2761],{2354:function(e,t,n){"use strict";n.d(t,{_:function(){return l}});var r=n(5893),a=n(7294);function i(){return(0,r.jsxs)("svg",{viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5","aria-hidden":"true",children:[(0,r.jsx)("rect",{x:"6",y:"6",width:"7",height:"7",rx:"1.4"}),(0,r.jsx)("path",{d:"M3 10V4.4C3 3.6 3.6 3 4.4 3H10"})]})}function o(e){let{command:t}=e,[n,o]=(0,a.useState)("idle"),l=(0,a.useCallback)(async()=>{try{if("undefined"==typeof navigator||!navigator.clipboard)throw Error("clipboard unavailable");await navigator.clipboard.writeText(t),o("copied"),window.setTimeout(()=>o("idle"),2500)}catch(e){o("error"),window.setTimeout(()=>o("idle"),2500)}},[t]);return(0,r.jsxs)("button",{className:"agent-skills-copy",type:"button",onClick:l,"aria-live":"polite",children:[(0,r.jsx)("span",{className:"agent-skills-copy-icon",children:(0,r.jsx)(i,{})}),(0,r.jsx)("span",{children:"copied"===n?"Copied":"error"===n?"Copy didn't work":"Copy command"})]})}function l(e){let{isOpen:t,skills:n,browseHref:i,close:l,onBackdropClick:c}=e,s=(0,a.useMemo)(()=>Object.fromEntries(n.map(e=>[e.slug,!0])),[n]),[u,d]=(0,a.useState)(s);return(0,a.useEffect)(()=>{d(s)},[s]),(0,r.jsx)("div",{"aria-hidden":t?"false":"true",className:"source-sheet-backdrop agent-skills-modal-backdrop".concat(t?" is-open":""),"data-agent-skills-modal-backdrop":!0,onClick:c,children:(0,r.jsxs)("div",{"aria-labelledby":"agent-skills-modal-title","aria-modal":"true",className:"agent-skills-modal",role:"dialog",tabIndex:-1,children:[(0,r.jsxs)("div",{className:"agent-skills-modal-header",children:[(0,r.jsx)("h2",{className:"agent-skills-modal-title",id:"agent-skills-modal-title",children:"Install agent skills"}),(0,r.jsx)("button",{"aria-label":"Close",className:"agent-skills-modal-close","data-agent-skills-modal-close":!0,onClick:()=>l(!0),type:"button",children:"\xd7"})]}),(0,r.jsx)("div",{className:"agent-skills-modal-body",children:(0,r.jsx)("ul",{className:"agent-skills-list",children:n.map(e=>{var t;let n=null===(t=u[e.slug])||void 0===t||t;return(0,r.jsxs)("li",{className:"agent-skills-item".concat(n?"":" agent-skills-item--muted"),children:[(0,r.jsxs)("div",{className:"agent-skills-check",children:[(0,r.jsx)("input",{type:"checkbox",checked:n,"aria-label":"Install ".concat(e.name),onChange:t=>d(n=>({...n,[e.slug]:t.target.checked}))}),(0,r.jsxs)("a",{href:e.sourceHref,target:"_blank",rel:"noopener",children:[e.name," ",(0,r.jsx)("span",{"aria-hidden":"true",children:"â"})]})]}),(0,r.jsx)("p",{children:e.description}),(0,r.jsxs)("div",{className:"agent-skills-command",children:[(0,r.jsx)("pre",{tabIndex:0,children:(0,r.jsx)("code",{children:e.installCommand})}),(0,r.jsx)(o,{command:e.installCommand})]})]},e.slug)})})}),(0,r.jsx)("div",{className:"agent-skills-modal-footer",children:(0,r.jsx)("a",{href:i,children:"Browse all skills â"})})]})})}},5553:function(e,t,n){"use strict";n.d(t,{H:function(){return d}});var r=n(5893),a=n(7294),i=n(6154),o=n(7946),l=n.n(o);function c(e,t,n){return Math.min(Math.max(e,t),n)}let s="citation-source-preview-title";function u(e){let{label:t}=e;return(0,r.jsxs)("div",{className:"citation-preview-label","data-citation-preview-label":!0,id:s,children:[(0,r.jsxs)("span",{className:"citation-preview-kind",children:[t.tier?(0,r.jsx)("span",{"aria-hidden":"true",className:"citation-preview-swatch","data-authority-tier":t.tier}):null,(0,r.jsx)("span",{className:"citation-preview-kind-text",children:t.group?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("b",{children:t.group})," \xb7 ",t.kind]}):t.kind})]}),t.ref?(0,r.jsx)("span",{className:"citation-preview-ref",children:t.ref}):null]})}function d(e){var t,n,o,d,m,h;let{isOpen:p,content:f,anchorRect:v,closeSourceModal:g}=e,y=(0,a.useRef)(null),[w,b]=(0,a.useState)(null);(0,a.useEffect)(()=>{if(!p||!f||!v){b(null);return}let e=y.current;if(!e)return;let t=window.innerWidth,n=window.innerHeight,r=e.getBoundingClientRect(),a=e.querySelector("[data-citation-popover-body]"),i=Math.min(a?e.offsetHeight-a.clientHeight+a.scrollHeight:e.scrollHeight||r.height,520),o=n-v.bottom-10-8,l=v.top-10-8,s=o>=Math.min(i,220)||o>=l?"below":"above",u=Math.max(120,Math.min(520,"below"===s?o:l)),d=Math.min(i,u),m="below"===s?c(v.bottom+10,8,n-8-d):c(v.top-10-d,8,n-8-d),h=v.left+v.width/2,g=c(h-r.width/2,8,Math.max(8,t-8-r.width)),w=c(h-g,20,r.width-20),x={top:m,left:g,maxHeight:u,arrowLeft:w,placement:s};b(e=>
1e===x||e&&x&&e.top===x.top&&e.left===x.left&&e.maxHeight===x.maxHeight&&e.arrowLeft===x.arrowLeft&&e.placement===x.placement?e:x)},[v,f,p]);let x={top:null!==(t=null==w?void 0:w.top)&&void 0!==t?t:0,left:null!==(n=null==w?void 0:w.left)&&void 0!==n?n:0,maxHeight:null==w?void 0:w.maxHeight,visibility:w?"visible":"hidden","--citation-arrow-left":"".concat(null!==(o=null==w?void 0:w.arrowLeft)&&void 0!==o?o:24,"px")};return(0,r.jsx)("div",{"aria-hidden":p?"false":"true",className:"".concat(l().layer).concat(p?" ".concat(l().open):""),"data-citation-preview-layer":!0,"data-citation-trigger":null==f?void 0:f.citationTrigger,"data-source-sheet-backdrop":!0,children:(0,r.jsxs)("section",{"aria-labelledby":s,className:l().popover,"data-citation-popover":!0,"data-placement":null!==(d=null==w?void 0:w.placement)&&void 0!==d?d:"below",id:i.TB,ref:y,role:"dialog",style:x,tabIndex:-1,children:[(0,r.jsxs)("header",{className:l().header,children:[(null==f?void 0:f.label)?(0,r.jsx)(u,{label:f.label}):(0,r.jsx)("p",{className:l().title,id:s,children:null!==(m=null==f?void 0:f.title)&&void 0!==m?m:"Source"}),(0,r.jsx)("button",{"aria-label":"Close source preview",className:l().close,"data-citation-popover-close":!0,"data-source-sheet-close":!0,onClick:()=>g(!0),type:"button",children:(0,r.jsx)("span",{"aria-hidden":"true",children:"\xd7"})})]}),(0,r.jsx)("div",{className:l().body,"data-citation-popover-body":!0,"data-source-sheet-body":!0,dangerouslySetInnerHTML:{__html:null!==(h=null==f?void 0:f.html)&&void 0!==h?h:""}})]})})}},2761:function(e,t,n){"use strict";n.d(t,{f:function(){return B}});var r=n(5893),a=JSON.parse('{"openagreements-employment-offer-letter-new-york":[{"slug":"openagreements-wage-notice-new-york-exempt","label":"New York wage notice for overtime-exempt employees"}],"openagreements-wage-notice-new-york-exempt":[{"slug":"openagreements-employment-offer-letter-new-york","label":"New York employment offer letter"}]}'),i=JSON.parse('{"openagreements-confidentiality-invention-assignment-agreement":{"title":"California drafting note","text":"A post-employment personnel nonsolicitation clause carries substantial enforceability risk in California. âTo the extent permittedâ does not guarantee validity. Review whether to omit that clause and the separate future-employer notice provision before signing; confidentiality and invention assignment can remain.","href":"/practice-guides/non-compete/us/california#employee-nonsolicitation","linkLabel":"Read the California employee nonsolicitation guide"},"openagreements-employment-offer-letter":{"title":"Choose terms for the employeeâs work location","text":"The blank download includes optional clauses, including a California-specific section. It does not select governing law for you. Review those clauses for the employeeâs circumstances or use a dedicated state offer.","href":"/templates?category=employment","linkLabel":"Browse employment templates"}}'),o=n(7294),l=n(8782),c=n(983),s=n(8929),u=n(9128),d=n(148),m=n(9039),h=n(4440),p=n(3769),f=n(5919),v=n(858),g=n(4756),y=n(6578);function w(){return(0,o.useEffect)(()=>{function e(){var e;let t=window.location.hash;if(!t||!t.startsWith("#note-")&&!t.startsWith("#benchmark-"))return;let n=decodeURIComponent(t.slice(1)),r=document.getElementById(n),a=(null==r?void 0:r.tagName)==="DETAILS"?r:(null==r?void 0:null===(e=r.nextElementSibling)||void 0===e?void 0:e.tagName)==="DETAILS"?r.nextElementSibling:null;a&&(a.open=!0,requestAnimationFrame(()=>{(null!=r?r:a).scrollIntoView({behavior:"auto",block:"start"})}))}return e(),window.addEventListener("hashchange",e),()=>{window.removeEventListener("hashchange",e)}},[]),null}var b=n(1664),x=n.n(b),k=n(2075),j=n.n(k);function _(e){let{block:t}=e;return(0,r.jsxs)("section",{className:j().block,"aria-labelledby":"state-law-heading",children:[(0,r.jsx)("h2",{id:"state-law-heading",className:j().heading,children:"State invention-assignment law"}),(0,r.jsxs)("p",{className:j().intro,children:["This agreement is written to hold up across 50 states, D.C., and 5 U.S. territories. In"," ",t.divergentCount," jurisdictions a statute or unsettled case law tightens what an invention-assignment form may do â the practice guide for each explains how."]}),(0,r.jsx)("div",{className:j().buckets,children:t.buckets.map(e=>(0,r.jsxs)("div",{className:j().bucket,children:[(0,r.jsx)("p",{className:j().bucketLabel,children:e.label}),(0,r.jsx)("p",{className:j().states,children:e.states.map((e,t)=>(0,r.jsxs)(o.Fragment,{children:[t>0?", ":"",(0,r.jsx)(x(),{href:e.href,children:e.name}),e.formHref?(0,r.jsxs)(r.Fragment,{children:[" ","(",(0,r.jsx)(x(),{href:e.formHref,children:"state-specific form"}),")"]}):null]},e.slug))})]},e.label))}),(0,r.jsxs)("p",{className:j().links,children:[(0,r.jsx)(x(),{href:t.surveyHref,children:"State-by-state law survey"})," \xb7"," ",(0,r.jsx)(x(),{href:t.conformanceHref,children:"How this form conforms in every state"})]})]})}function N(e){let{benchmark:t}=e;return(0,r.jsx)("section",{className:"benchmark-cards",hidden:!0,"aria-hidden":"true",children:t.entries.map(e=>(0,r.jsxs)("article",{id:"src-benchmark-".concat(e.reqId),"data-benchmark-card":"","data-source-id":"benchmark-".concat(e.reqId),"data-modal-title":"Benchmarked provision",children:[(0,r.jsx)("p",{className:"source-kicker",children:"Compared across published forms"}),(0,r.jsx)("p",{className:"source-title",children:e.label}),(0,r.jsx)("p",{className:"source-proposition",children:e.description}),(0,r.jsx)("p",{className:"benchmark-card-presence",children:e.presentIn}),(0,r.jsxs)("p",{className:"benchmark-card-links",children:[(0,r.jsx)("a",{href:e.rowHref,children:"See how each form handles this â"}),e.practiceGuideHref?(0,r.jsx)("a",{href:e.practiceGuideHref,children:"Practice guide"}):null]})]},e.reqId))})}function E(e,t,n){return Math.min(Math.max(e,t),n)}function C(){var e,t,n,a;let[i,l]=(0,o.useState)(null),[c,s]=(0,o.useState)(null),u=(0,o.useRef)(null),d=(0,o.useRef)(null),m=(0,o.useRef)(null),h=(0,o.useCallback)(function(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];null===(e=m.current)||void 0===e||e.setAttribute("aria-expanded","fal
1se"),n&&(null===(t=m.current)||void 0===t||t.focus()),m.current=null,d.current=null,l(null),s(null)},[]),p=(0,o.useCallback)((e,t)=>{var n,r,a;let o=e.getAttribute("data-benchmark-target");if(!o)return;if((null==i?void 0:i.targetId)===o){h(!0);return}let c=document.getElementById(o);if(!(null==c?void 0:c.hasAttribute("data-benchmark-evidence-card")))return;null===(n=m.current)||void 0===n||n.setAttribute("aria-expanded","false");let u=null!==(r=null!=t?t:e.querySelector("[data-benchmark-evidence-trigger]"))&&void 0!==r?r:e;u.setAttribute("aria-expanded","true"),m.current=u,d.current=e,s(null),l({title:null!==(a=c.getAttribute("data-modal-title"))&&void 0!==a?a:"Source examples",html:c.innerHTML,targetId:o})},[h,null==i?void 0:i.targetId]);if((0,o.useEffect)(()=>{function e(e){let t=e.target;if(!t)return;let n=t.closest("[data-benchmark-evidence-trigger]");if(n){let t=n.closest("[data-benchmark-evidence-row]");if(!t)return;e.preventDefault(),p(t,n);return}let r=t.closest("[data-benchmark-evidence-row]");!r||t.closest("a, button")||p(r)}return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},[p]),(0,o.useEffect)(()=>{if(!i)return;function e(){let e=d.current,t=u.current;if(!(null==e?void 0:e.isConnected)||!t){h(!1);return}let n=e.getBoundingClientRect();if(n.bottom<-12||n.top>window.innerHeight+12){h(!1);return}let r=t.getBoundingClientRect(),a=window.innerWidth,i=window.innerHeight,o=Math.min(t.scrollHeight||r.height,440),l=i-n.bottom-10-8,c=n.top-10-8,m=l>=Math.min(o,220)||l>=c?"below":"above",p=Math.max(140,Math.min(440,"below"===m?l:c)),f=Math.min(o,p),v=r.width,g=n.left+n.width/2,y=E(g-v/2,8,Math.max(8,a-8-v));s({top:"below"===m?E(n.bottom+10,8,i-8-f):E(n.top-10-f,8,i-8-f),left:y,maxHeight:p,arrowLeft:E(g-y,22,v-22),placement:m})}let t=window.requestAnimationFrame(e);return window.addEventListener("resize",e),document.addEventListener("scroll",e,!0),()=>{window.cancelAnimationFrame(t),window.removeEventListener("resize",e),document.removeEventListener("scroll",e,!0)}},[h,i]),(0,o.useEffect)(()=>{if(i)return document.addEventListener("pointerdown",e,!0),document.addEventListener("keydown",t),()=>{document.removeEventListener("pointerdown",e,!0),document.removeEventListener("keydown",t)};function e(e){var t,n;let r=e.target;if(r){if((null===(t=u.current)||void 0===t?void 0:t.contains(r))||(null===(n=d.current)||void 0===n?void 0:n.contains(r)))return;h(!1)}}function t(e){"Escape"===e.key&&(e.preventDefault(),h(!0))}},[h,i]),!i)return null;let f={top:null!==(e=null==c?void 0:c.top)&&void 0!==e?e:0,left:null!==(t=null==c?void 0:c.left)&&void 0!==t?t:0,maxHeight:null==c?void 0:c.maxHeight,visibility:c?"visible":"hidden","--benchmark-arrow-left":"".concat(null!==(n=null==c?void 0:c.arrowLeft)&&void 0!==n?n:24,"px")};return(0,r.jsxs)("section",{"aria-labelledby":"benchmark-evidence-popover-title",className:"benchmark-evidence-popover","data-placement":null!==(a=null==c?void 0:c.placement)&&void 0!==a?a:"below",id:"benchmark-evidence-popover",ref:u,role:"dialog",style:f,children:[(0,r.jsxs)("header",{className:"benchmark-evidence-popover-header",children:[(0,r.jsx)("p",{id:"benchmark-evidence-popover-title",children:i.title}),(0,r.jsx)("button",{"aria-label":"Close source examples",className:"benchmark-evidence-popover-close",onClick:()=>h(!0),type:"button",children:(0,r.jsx)("span",{"aria-hidden":"true",children:"\xd7"})})]}),(0,r.jsx)("div",{className:"benchmark-evidence-popover-body",dangerouslySetInnerHTML:{__html:i.html}})]})}var L=n(5553),S=n(7456);function M(e){let{links:t}=e,n=Math.ceil(t.length/2),a=[t.slice(0,n),t.slice(n)].filter(e=>e.length>0);return(0,r.jsx)("div",{className:"agreement-evidence-list-columns",children:a.map((e,t)=>(0,r.jsx)("ol",{className:"agreement-evidence-list",start:0===t?1:n+1,children:e.map(e=>(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:e.href,children:e.title})},e.href))},e[0].href))})}function A(e){let{model:t}=e,n=t.jurisdiction.toLowerCase().replaceAll(/[^a-z0-9]+/g,"-"),a="".concat(n,"-drafting-notes"),i="".concat(n,"-market-data");return(0,r.jsxs)("section",{className:"agreement-evidence","aria-label":"".concat(t.jurisdiction," agreement evidence"),children:[(0,r.jsxs)("section",{className:"agreement-evidence-section","aria-labelledby":a,children:[(0,r.jsxs)("h2",{id:a,children:["How this form is adapted for ",t.jurisdiction]}),(0,r.jsxs)("p",{children:["This form has been specifically adapted for ",t.jurisdiction,". The drafting notes linked below are embedded in the form and explain how its provisions are tailored to"," ",t.jurisdiction," law."]}),(0,r.jsx)(M,{links:t.draftingNotes})]}),t.marketData.length>0?(0,r.jsxs)("section",{className:"agreement-evidence-section","aria-labelledby":i,children:[(0,r.jsx)("h2",{id:i,children:"Supporting market data"}),(0,r.jsx)("p",{children:"EDGAR data supporting the default values used in this form."}),(0,r.jsx)(M,{links:t.marketData})]}):null]})}var T=n(221),q=n(5762),H=n(5420);function B(e){var t,n,b;let{slug:x,title:k,description:j,readerNote:E,mainHtml:M,tocItems:B,downloadFormats:I=[],upstreamSha:R,upstreamCommittedAt:U,attribution:D,attributionText:F,category:O,categoryLabel:W,source:z,license:V,sectionNav:P,stateLawBlock:G,benchmark:J,sourceHref:Y,sourceLabel:Z,externalDownload:$,sourceDocument:K,agentSkills:X,exportMenu:Q,socialImage:ee=u.H,lead:et,downloadOverrides:en,agreementEvidence:er,robots:ea,versions:ei}=e,eo="".concat(s.E.canonicalHost,"/templates/").concat(x),el=(0,c.b)({legalName:null!==(n=null==D?void 0:D.legalName)&&void 0!==n?n:"OpenAgreements contributors",title:k,dateModified:U.slice(0,10),canonicalUrl:eo},"html"),ec="/templates/".concat(x),es=K?(0,H.k9)(K):void 0,eu=K?(0,H.Er)(K):void 0,ed=null!==(b=null==en?void 0:en.viewMarkdownHref)&&void 0!==b?b:(0,T.Cc)(x),em=(0,m.Iy)(O,W,k),eh=K?"".concat(k," â Download from ").concat(K.publisher||"the publisher"):"".concat(k," â Free Template").concat(I.length?" (".concat(I.join(" + "),")"):"");!function(e){let{slug:t,category:n}=e;o.useEffect(()=>{let e=e=>{var r;let a;let i=e.target,o=null==i?void 0:null===(r=i.closest)||void 0===r?void 0:r.call(i,"a[data-publisher-download]"),c=null==o?void 0:o.getAttribute("href");if(c){try{a=new URL(c).hostname}catch(e){return}(0,l.j)({name:"outbound_click",doc_type:"template",category:n,slug:t,source_url_host:a,link_url:c})}};return document.addEventListener("click",e,{capture:!0,passive:!0}),()=>document.removeEventListener("click",e,{capture:!0})},[t,n])}({slug:x,category:O});let ep=(0,d.ck)((0,d.zT)({"@context":"https://schema.org","@graph":[(0,d.Lc)({title:k,description:j,canonical:eo,downloadFormats:I,...K?{sourceDocument:K}
1:{}})]},em,ec));(0,o.useEffect)(()=>{let e,t=[];function n(){t=Array.from(document.querySelectorAll(".template-body .field[data-tooltip]"))}function r(){let e=window.innerHeight;for(let n of t){let{bottom:t}=n.getBoundingClientRect();n.dataset.tooltipPosition=e<=0?"below":t>.7*e?"above":"below"}}n(),r(),window.addEventListener("scroll",r,{passive:!0}),window.addEventListener("resize",r,{passive:!0});let a=document.querySelector(".template-body");return a&&"undefined"!=typeof MutationObserver&&(e=new MutationObserver(()=>{n(),r()})).observe(a,{childList:!0,subtree:!0}),()=>{null==e||e.disconnect(),window.removeEventListener("scroll",r),window.removeEventListener("resize",r)}},[]);let ef=(0,S.zq)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(q.G,{pageTitle:eh,description:j,...ea?{robots:ea}:{},canonical:eo,markdownHref:ed,socialImage:ee,title:k,jsonLd:ep}),(0,r.jsx)("a",{className:"skip-link",href:"#content",children:"Skip to content"}),(0,r.jsx)(h.H,{breadcrumbs:em}),(0,r.jsx)(w,{}),(0,r.jsxs)("div",{className:B.length>0?"layout template-layout":"layout layout--no-section-nav template-layout",children:[B.length>0?(0,r.jsx)(v.o,{tocItems:B}):null,(0,r.jsx)(f.k,{items:B}),(0,r.jsxs)("main",{id:"content",className:"template-main",children:[null!=et?et:null,(()=>{let e=null!=E?E:i[x];return e?(0,r.jsxs)("aside",{className:"template-companions","aria-label":e.title,children:[(0,r.jsx)("strong",{children:e.title}),(0,r.jsx)("p",{children:e.text}),(0,r.jsx)("a",{href:e.href,children:e.linkLabel})]}):null})(),(null===(t=a[x])||void 0===t?void 0:t.length)?(0,r.jsxs)("aside",{"aria-label":"Companion templates",className:"template-companions",children:[(0,r.jsx)("strong",{children:"Companion templates"}),(0,r.jsx)("ul",{children:a[x].map(e=>(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"/templates/".concat(e.slug),children:e.label})},e.slug))})]}):null,er?(0,r.jsx)(A,{model:er}):null,(0,r.jsx)(g.b,{source:{href:ed},viewHref:ed}),(0,r.jsx)("article",{className:"template-body",dangerouslySetInnerHTML:{__html:M}}),G?(0,r.jsx)(_,{block:G}):null,J?(0,r.jsx)(N,{benchmark:J}):null]}),(0,r.jsx)(y.p,{slug:x,title:k,...P?{sectionNav:P}:{},upstreamSha:R,upstreamCommittedAt:U,category:O,...z?{source:z}:{},...V?{license:V}:{},...Y?{sourceHref:Y}:{},...Z?{sourceLabel:Z}:{},...$?{externalDownload:$}:{},...es?{licenseScope:es}:{},...eu?{sourceCtaScope:eu}:{},...X?{agentSkills:X}:{},...Q?{exportMenu:Q}:{},...en?{downloadOverrides:en}:{},...ei&&ei.length>0?{versions:ei}:{}})]}),(0,r.jsx)("div",{className:"template-attribution-strip",children:(0,r.jsx)("p",{className:"template-attribution-text",children:F})}),J?(0,r.jsx)(L.H,{...ef}):null,(0,r.jsx)(C,{}),(0,r.jsx)(p.n,{citeAs:el,...es?{licenseScope:es}:{}})]})}},4756:function(e,t,n){"use strict";n.d(t,{b:function(){return o}});var r=n(5893);n(7294);var a=n(6712),i=n(8500);function o(e){let{source:t,viewHref:n}=e,{copyState:o,onCopyPage:l}=(0,a.d)(t);return(0,r.jsxs)("div",{className:"markdown-twin-controls markdown-twin-controls--mobile",role:"toolbar","aria-label":"Page actions",children:[(0,r.jsxs)("button",{className:"markdown-twin-controls__action",type:"button",onClick:l,"aria-live":"polite","data-markdown-twin-copy":!0,children:[(0,r.jsx)("span",{className:"markdown-twin-controls__icon",children:(0,r.jsx)(i.T,{})}),(0,r.jsx)("span",{children:a.l[o]})]}),(0,r.jsx)("span",{className:"markdown-twin-controls__divider",role:"separator","aria-hidden":"true"}),(0,r.jsxs)("a",{className:"markdown-twin-controls__action",href:n,"data-markdown-twin-view":!0,children:[(0,r.jsx)("span",{className:"markdown-twin-controls__icon markdown-twin-controls__icon--markdown",children:(0,r.jsx)(i.B,{})}),(0,r.jsx)("span",{children:"View as Markdown"})]})]})}},6154:function(e,t,n){"use strict";n.d(t,{TB:function(){return o},cb:function(){return a},tA:function(){return r},uN:function(){return i}});let r="page-title",a="sources-toggle",i="authority-snapshot",o="citation-source-preview"},8500:function(e,t,n){"use strict";n.d(t,{B:function(){return i},T:function(){return a}});var r=n(5893);function a(){return(0,r.jsxs)("svg",{viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5","aria-hidden":"true",children:[(0,r.jsx)("rect",{x:"5.2",y:"5.2",width:"8.3",height:"8.3"}),(0,r.jsx)("path",{d:"M10.8 5.2V4a1.8 1.8 0 0 0-1.8-1.8H4.2A1.8 1.8 0 0 0 2.4 4v4.8a1.8 1.8 0 0 0 1.8 1.8h1"})]})}function i(){return(0,r.jsxs)("svg",{viewBox:"0 0 208 128","aria-hidden":"true",children:[(0,r.jsx)("rect",{x:"7",y:"7",width:"194",height:"114",fill:"none",stroke:"currentColor",strokeWidth:"13"}),(0,r.jsx)("path",{d:"M30 98V30h20l20 25 20-25h20v68H90V59L70 84 50 59v39H30zm125 0-30-33h20V30h20v35h20z",fill:"
1currentColor"})]})}n(7294)},6712:function(e,t,n){"use strict";n.d(t,{d:function(){return i},l:function(){return a}});var r=n(7294);let a={idle:"Copy for LLM",copied:"Copied for LLM â",error:"Copy didn't work"};function i(e){let[t,n]=(0,r.useState)("idle"),a="markdown"in e?e.markdown:null,i="href"in e?e.href:null;return{copyState:t,onCopyPage:(0,r.useCallback)(async()=>{let e=e=>{n(e),window.setTimeout(()=>n("idle"),2500)};try{var t,r,o;if(null!==a){if(!(null===(t=navigator.clipboard)||void 0===t?void 0:t.writeText))throw Error("clipboard unavailable");await navigator.clipboard.writeText(a)}else{let e=async()=>{let e=await fetch(i);if(!e.ok)throw Error("twin fetch failed: ".concat(e.status));return e.text()};if("undefined"!=typeof ClipboardItem&&(null===(r=navigator.clipboard)||void 0===r?void 0:r.write)){let t=e().then(e=>new Blob([e],{type:"text/plain"}));await navigator.clipboard.write([new ClipboardItem({"text/plain":t})])}else if(null===(o=navigator.clipboard)||void 0===o?void 0:o.writeText)await navigator.clipboard.writeText(await e());else throw Error("clipboard unavailable")}e("copied")}catch(t){e("error")}},[a,i])}}},5919:function(e,t,n){"use strict";n.d(t,{k:function(){return d}});var r=n(5893),a=n(7294),i=n(9033),o=n(491),l=n(5388);function c(e){let{items:t,activeId:n,railRef:c,syncOffsets:s,label:u="On this page"}=e,d=(0,l.cq)(t,n),m=(0,a.useCallback)(()=>{var e,t;let n=c.current;if(!n)return;let r=n.querySelector(":scope > summary");if(!r)return;let a=window.visualViewport,i=null!==(e=null==a?void 0:a.height)&&void 0!==e?e:window.innerHeight,o=null!==(t=null==a?void 0:a.offsetTop)&&void 0!==t?t:0,l=Math.max(0,i-Math.max(0,r.getBoundingClientRect().top-o)-r.offsetHeight-16);n.style.setProperty("--mobile-toc-body-max-height","".concat(l,"px"))},[c]);return(0,a.useEffect)(()=>{var e;function t(e){let t=c.current;(null==t?void 0:t.open)&&e.target instanceof Node&&!t.contains(e.target)&&(t.open=!1)}function n(e){let t=c.current;(null==t?void 0:t.open)&&"Escape"===e.key&&(t.open=!1)}function r(){var e;(null===(e=c.current)||void 0===e?void 0:e.open)&&m()}return document.addEventListener("click",t),document.addEventListener("keydown",n),window.addEventListener("resize",r),null===(e=window.visualViewport)||void 0===e||e.addEventListener("resize",r),()=>{var e;document.removeEventListener("click",t),document.removeEventListener("keydown",n),window.removeEventListener("resize",r),null===(e=window.visualViewport)||void 0===e||e.removeEventListener("resize",r)}},[c,m]),(0,r.jsxs)("details",{className:"mobile-toc-rail",ref:c,children:[(0,r.jsx)("summary",{onClick:()=>{var e;return!(null===(e=c.current)||void 0===e?void 0:e.open)&&m()},children:(0,r.jsxs)("span",{className:"mobile-toc-rail-summary-copy",children:[(0,r.jsx)("span",{className:"mobile-toc-rail-summary-label",children:u}),(0,r.jsx)("span",{className:"mobile-toc-rail-summary-current",children:d?(0,r.jsx)(i.W,{item:d}):""})]})}),(0,r.jsx)("nav",{"aria-label":"In-page navigation",className:"mobile-toc-rail-body",children:(0,r.jsx)(o.U,{items:t,activeId:n,onItemClick:function(e,t){var n;e.preventDefault();let r=document.getElementById(t.id);if(!r)return;c.current&&(c.current.open=!1);let a=r.getClientRects().length>0,i=window.location.href;history.pushState(null,"","#".concat(t.id)),window.dispatchEvent((n=window.location.href,"function"==typeof HashChangeEvent?new HashChangeEvent("hashchange",{oldURL:i,newURL:n}):new Event("hashchange"))),function e(t,n,r){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:20;if(!r&&0===t.getClientRects().length){if(a<=0||"function"!=typeof requestAnimationFrame)return;requestAnimationFrame(()=>e(t,n,!1,a-1));return}let{articleScrollOffset:i}=n(),o=window.scrollY+t.getBoundingClientRect().top-i;window.scrollTo({top:Math.max(0,o),behavior:r?"smooth":"instant"})}(r,s,a)}})})]})}var s=n(6914);function u(e){return"".concat(Math.max(0,Math.ceil(e)),"px")}function d(e){let{items:t,label:n}=e,i=(0,a.useRef)(null),{articleScrollOffset:o,syncOffsets:l}=function(e){let[t,n]=(0,a.useState)({headerOffset:0,articleScrollOffset:24}),r=(0,a.useCallback)(()=>{var t,r;let a=(t=document.querySelector("header.site-header"))&&"static"!==window.getComputedStyle(t).position?Math.ceil(t.getBoundingClientRect().height):0,i={headerOffset:a,articleScrollOffset:a+((r=e.current)&&"none"!==window.getComputedStyle(r).display?Math.ceil(r.getBoundingClientRect().height):0)+24};return document.documentElement.style.setProperty("--header-offset",u(i.headerOffset)),document.documentElement.style.setProperty("--article-scroll-offset",u(i.articleScrollOffset)),n(i),i},[e]);return(0,a.useEffect)(()=>{r();let t=document.querySelector("header.site-header"),n=e.current,a=()=>r();window.addEventListener("resize",a),null==n||n.addEventListener("toggle",a);let i=window.ResizeObserver,o=i?new i(a):null;return o&&t&&o.observe(t),o&&n&&o.observe(n),()=>{window.removeEventListener("resize",a),null==n||n.removeEventListener("toggle",a),null==o||o.disconnect()}},[e,r]),{...t,syncOffsets:r}}(i),d=(0,s.HF)(t,o);return(0,r.jsx)(c,{items:t,activeId:d,railRef:i,syncOffsets:l,...n?{label:n}:{}})}},1355:function(e,t,n){"use strict";n.d(t,{F:function(){return i}});var r=n(5893),a=n(7294);function i(e){var t,n,i,l,c,s,u,d;let{data:m}
1=e,[h,p]=a.useState(!1),f=m.fullJurisdictions.length>m.jurisdictions.length,v=h?m.fullJurisdictions:m.jurisdictions,g=null!==(t=m.surveyLabel)&&void 0!==t?t:"Survey: All ".concat(m.surveyCount," ").concat(m.surveyCountNoun),y=null!==(n=m.allJurisdictionsHref)&&void 0!==n?n:m.surveyHref,w=null!==(i=m.allJurisdictionsLabel)&&void 0!==i?i:"All States...",b=null!==(l=m.otherSurveysLabel)&&void 0!==l?l:"Other Surveys",x=null!==(c=m.moreLinks)&&void 0!==c?c:[{label:"Templates",href:"/templates"},{label:"Reviewer Checklists",href:"/checklists/non-compete/us"}];return(0,r.jsxs)(r.Fragment,{children:[m.topicEyebrow?(0,r.jsx)("p",{className:"section-nav-topic",children:m.topicEyebrow}):null,m.hideSurvey?null:m.surveyActive?(0,r.jsx)("span",{className:"section-nav-survey active","aria-current":"page",children:g}):(0,r.jsxs)("a",{className:"section-nav-survey",href:m.surveyHref,children:[g,(0,r.jsx)("span",{"aria-hidden":"true",children:" â"})]}),m.benchmark?(0,r.jsxs)("div",{className:"section-nav-benchmark-card",children:[(0,r.jsx)("p",{className:"section-nav-group",children:m.benchmark.heading}),(0,r.jsx)("p",{className:"section-nav-benchmark-stat",children:m.benchmark.statLine}),(0,r.jsx)("p",{className:"section-nav-benchmark-reviewed",children:m.benchmark.reviewedLine}),(0,r.jsx)("a",{className:"section-nav-item section-nav-resource",href:m.benchmark.href,children:m.benchmark.linkLabel})]}):null,m.resources&&m.resources.length>0?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{className:"section-nav-group",children:null!==(s=m.resourcesLabel)&&void 0!==s?s:"Related"}),m.resources.map(e=>(0,r.jsx)("a",{className:"section-nav-item section-nav-resource",href:e.href,children:e.label},e.href))]}):null,m.relatedChecklists&&m.relatedChecklists.length>0?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{className:"section-nav-group",children:null!==(u=m.relatedChecklistsLabel)&&void 0!==u?u:"Related"}),m.relatedChecklists.map(e=>(0,r.jsx)("a",{className:"section-nav-item section-nav-resource",href:e.href,children:e.label},e.href))]}):null,m.fullJurisdictions.length>0?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{className:"section-nav-group",children:null!==(d=m.jurisdictionGroupLabel)&&void 0!==d?d:"Jurisdictions"}),(0,r.jsx)("div",{id:"section-nav-jurisdictions",children:v.map(e=>(0,r.jsx)(o,{item:e},e.href))}),f?(0,r.jsx)("button",{type:"button",className:"section-nav-item section-nav-toggle","aria-expanded":h,"aria-controls":"section-nav-jurisdictions",onClick:()=>p(e=>!e),children:h?"- Show fewer":"+ Show all ".concat(m.fullJurisdictions.length," ").concat(m.surveyCountNoun)}):null,m.allJurisdictionsHidden?null:(0,r.jsx)("a",{className:"section-nav-item",href:y,children:(0,r.jsx)("span",{className:"section-nav-more",children:w})})]}):null,m.otherSurveys.length>0?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{className:"section-nav-group",children:b}),m.otherSurveys.map(e=>(0,r.jsx)("a",{className:"section-nav-item".concat(e.active?" active":""),href:e.href,"aria-current":e.active?"page":void 0,children:e.label},e.href))]}):null,x.length>0?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{className:"section-nav-group",children:"More From OpenAgreements"}),x.map(e=>(0,r.jsx)("a",{className:"section-nav-item",href:e.href,children:e.label},e.href))]}):null]})}function o(e){let{item:t}=e,n=t.detail?(0,r.jsx)("span",{className:"section-nav-item-detail",children:t.detail}):null;return t.active?(0,r.jsxs)("span",{className:"section-nav-item active","aria-current":"page",children:[t.label,n]}):(0,r.jsxs)("a",{className:"section-nav-item",href:t.href,children:[t.label,n]})}},9033:function(e,t,n){"use strict";n.d(t,{W:function(){return l},X:function(){return o}});var r=n(5893);n(7294);var a=n(9879);function i(e){let{sectionId:t}=e,n=(0,a.VM)();if(!n)return null;let{checked:i,total:o}=n.sectionProgress(t);return 0===o?null:(0,r.jsxs)("span",{className:"toc-check-count",children:[" ","(",i," / ",function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"".concat(t,"s");return"".concat(e," ").concat(1===e?t:n)}(o,"check"),")"]})}function o(e){return("section"===e.kind||"defterm"===e.kind)&&e.number?e.number:null}function l(e){let{item:t}=e,n=o(t);return(0,r.jsxs)(r.Fragment,{children:["note"===t.kind?(0,r.jsx)("span",{className:"toc-note-prefix",children:"Drafting Note: "}):null,n?(0,r.jsxs)("span",{className:"toc-link-number",children:[n,"."]}):null,(0,r.jsxs)("span",{children:[t.label,"section"===t.kind&&t.checklist?(0,r.jsx)(i,{sectionId:t.id}
1):null,"section"===t.kind&&t.changed?(0,r.jsx)("span",{className:"tpv2-toc-chg",children:"changed"}):null]})]})}},491:function(e,t,n){"use strict";n.d(t,{U:function(){return l}});var r=n(5893),a=n(7294),i=n(9033),o=n(5388);function l(e){let{items:t,activeId:n,onItemClick:l,renderAfterItem:c}=e;return(0,r.jsx)(r.Fragment,{children:t.map(e=>{var t;let s=e.id===n,u=(0,i.X)(e),d={className:"toc-link ".concat((0,o.U9)(e)).concat(u?" toc-link-numbered":"").concat(s?" active":""),href:(0,o.Zi)(e),onClick:t=>null==l?void 0:l(t,e)},m=(0,r.jsx)(i.W,{item:e}),h=s?(0,r.jsx)("a",{"aria-current":"location",...d,children:m}):(0,r.jsx)("a",{...d,children:m});return(0,r.jsxs)(a.Fragment,{children:[h,null!==(t=null==c?void 0:c(e))&&void 0!==t?t:null]},e.id)})})}},858:function(e,t,n){"use strict";n.d(t,{o:function(){return c}});var r=n(5893),a=n(7294),i=n(491),o=n(6914);function l(e){let{tocItems:t,label:n="On this page",renderAfterItem:l,scrollable:c=!0,scrollSpyOffset:s=90}=e,u=(0,o.HF)(t,s),d=(0,a.useRef)(null),[m,h]=(0,a.useState)({top:!1,bottom:!1});(0,a.useEffect)(()=>{if(!c)return;let e=d.current;if(!e)return;let t=()=>{let t=e.scrollTop>1,n=e.scrollTop+e.clientHeight<e.scrollHeight-1;h(e=>e.top===t&&e.bottom===n?e:{top:t,bottom:n})};t(),e.addEventListener("scroll",t,{passive:!0}),window.addEventListener("resize",t);let n=new ResizeObserver(t);return n.observe(e),()=>{e.removeEventListener("scroll",t),window.removeEventListener("resize",t),n.disconnect()}},[t,c]),(0,a.useEffect)(()=>{if(!c)return;let e=d.current;if(!e||!u)return;let t=e.querySelector("a.active");if(!t)return;let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();r.top<n.top+28?e.scrollBy({top:r.top-n.top-28,behavior:"smooth"}):r.bottom>n.bottom-28&&e.scrollBy({top:r.bottom-n.bottom+28,behavior:"smooth"})},[u,c]);let p=c?"utility-rail-toc-list".concat(m.top?" toc-fade-top":"").concat(m.bottom?" toc-fade-bottom":""):"utility-rail-toc-list utility-rail-toc-list--page-scroll";return(0,r.jsxs)("nav",{"aria-label":n,className:"utility-rail-toc".concat(c?"":" utility-rail-toc--page-scroll"),children:[(0,r.jsx)("p",{className:"utility-rail-label",children:n}),(0,r.jsx)("div",{ref:d,className:p,children:(0,r.jsx)(i.U,{items:t,activeId:u,renderAfterItem:l})})]})}function c(e){let{tocItems:t,label:n}=e,a=null!=n?n:"On this page";return(0,r.jsx)("aside",{"aria-label":a,className:"toc-rail",children:(0,r.jsx)("div",{className:"toc-rail-inner",children:(0,r.jsx)(l,{tocItems:t,...n?{label:n}:{}})})})}},4685:function(e,t,n){"use strict";n.d(t,{i:function(){return i}});var r=n(5893);n(7294);var a=n(8929);function i(e){let{methodologyLinkLabel:t,licenseScope:n}=e;return(0,r.jsxs)("div",{className:"utility-rail-foot",children:[(0,r.jsxs)("span",{children:["Licensed"," ",(0,r.jsx)("a",{href:"https://creativecommons.org/licenses/by/4.0/",rel:"noopener",target:"_blank",children:"CC BY 4.0"})]}),n?(0,r.jsx)("span",{className:"rail-license-scope",children:n}):null,(0,r.jsxs)("span",{children:["Maintained by ",(0,r.jsx)("a",{href:a.E.canonicalHost,children:a.E.publisher})]}),t?(0,r.jsx)("span",{children:(0,r.jsx)("a",{href:"/methodology",children:t})}):null]})}},8697:function(e,t,n){"use strict";n.d(t,{m:function(){return a}});var r=n(5893);function a(e){let{ariaLabel:t,children:n}=e;return(0,r.jsx)("aside",{"aria-label":t,className:"utility-rail",children:(0,r.jsx)("div",{className:"utility-rail-inner",children:n})})}n(7294)},9072:function(e,t,n){"use strict";n.d(t,{CQ:function(){return c},DE:function(){return l},PE:function(){return i},_8:function(){return a},h_:function(){return o},sd:function(){return s}});var r=n(5893);function a(){return(0,r.jsxs)("svg",{viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5","aria-hidden":"true",children:[(0,r.jsx)("path",{d:"M13.5 10.5v2.2H2.5v-2.2"}),(0,r.jsx)("path",{d:"M8 2.5v7"}),(0,r.jsx)("path",{d:"M5.4 7.4 8 10l2.6-2.6"})]})}function i(){return(0,r.jsx)("svg",{viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5","aria-hidden":"true",children:(0,r.jsx)("path",{d:"M3 9.5c0-3 1.6-5.2 4-6.2M9 9.5c0-3 1.6-5.2 4-6.2M3 9.5h3v3.2H3zM9 9.5h3v3.2H9z"})})}function o(){return(0,r.jsx)("svg",{viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,r.jsx)("path",{d:"M12.67 9.33c.99-.97 2-2.14 2-3.67A3.67 3.67 0 0 0 11 2c-1.17 0-2 .33-3 1.33-1-1-1.83-1.33-3-1.33A3.67 3.67 0 0 0 1.33 5.67c0 1.53.99 2.69 2 3.67L8 14l4.67-4.67Z"})})}function l(){return(0,r.jsx)("svg",{viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5","aria-hidden":"true",children:(0,r.jsx)("path",{d:"M3 4.2h10M3 8h10M3 11.8h6.4"})})}function c(){return(0,r.jsxs)("svg",{viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5","aria-hidden":"true",children:[(0,r.jsx)("path",{d:"M4.5 2.8h7l1.8 1.8v8.6H4.5z"}),(0,r.jsx)("path",{d:"M11.5 2.8v2h1.8"}),(0,r.jsx)("path",{d:"M2.7 5.2v8h7.8"}),(0,r.jsx)("path",{d:"M6.6 8.2h4.4M6.6 10.4h3"})]})}function s(){return(0,r.jsxs)("svg",{viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5","aria-hidden":"true",children:[(0,r.jsx)("path",{d:"M6 1.8v3M10 1.8v3"}),(0,r.jsx)("path",{d:"M3.8 4.8h8.4v2.4a4.2 4.2 0 0 1-8.4 0z"}),(0,r.jsx)("path",{d:"M8 11.4V14"})]})}n(7294)},9441:function(e,t,n){"use strict";n.d(t,{EN:function(){return g},Ld:function(){return v},Qp:function(){return m},jz:function(){return f},o7:function(){return d},uP:function(){return h},vx:function(){return p}});var r=n(5893);n(7294);var a=n(1664),i=n.n(a),o=n(8929),l=n(6712),c=n(8500),s=n(9072);function u(e){return e?{[e]:""}:{}}function d(e){let{source:t,promoted:n,dataAttr:a}=e,{copyState:i,onCopyPage:o}=(0,l.d)(t);return(0,r.jsx)("li",{className:n?"quiet-action-li--promoted":void 0,children:(0,r.jsxs)("button",{className:"quiet-action",type:"button",onClick:o,"aria-live":"polite",...u(a),children:[(0,r.jsx)("span",{className:"quiet-action-icon",children:(0,r.jsx)(c.T,{})}),(0,r.jsx)("span",{children:l.l[i]})]})})}function m(e){let{href:t,promoted:n,dataAttr:a}=e;return(0,r.jsx)("li",{className:n?"quiet-action-li--promoted":void 0,children:(0,r.jsxs)("a",{className:"quiet-action",href:t,...u(a),children:[(0,r.jsx)("span",{className:"quiet-action-icon quiet-action-icon--markdown",children:(0,r.jsx)(c.B,{})}),(0,r.jsx)("span",{children:"View as Markdown"})]})})}function h(e){let{href:t,downloadName:n,onClick:a,dataAttr:i,label:o="Download Word (.docx)"}=e;return(0,r.jsx)("li",{children:(0,r.jsxs)("a",{className:"quiet-action",href:t,download:null==n||n,onClick:a,...u(i),children:[(0,r.jsx)("span",{className:"quiet-action-icon",children:(0,r.jsx)(s._8,{})}),(0,r.jsx)("span",{children:o})]})})}function p(e){let{onOpen:t}=e;return(0,r.jsx)("li",{children:(0,r.jsxs)("button",{className:"quiet-action",type:"button",onClick:e=>t(e.currentTarget),children:[(0,r.jsx)("span",{className:"quiet-action-icon",children:(0,r.jsx)(s.CQ,{})}),(0,r.jsx)("span",{children:"Install agent skills"})]})})}function f(e){let{slug:t,title:n}=e;return(0,r.jsx)("li",{children:(0,r.jsxs)(i(),{className:"quiet-action",href:{pathname:"/mcp",query:{template:t,title:n}},children:[(0,r.jsx)("span",{className:"quiet-action-icon",children:(0,r.jsx)(s.sd,{})}),(0,r.jsx)("span",{children:"Connect via MCP"})]})})}function v(){return(0,r.jsx)("li",{children:(0,r.jsxs)("a",{className:"quiet-action",href:o.E.feedbackUrl,rel:"noopener",target:"_blank",children:[(0,r.jsx)("span",{className:"quiet-action-icon",children:(0,r.jsx)(s.h_,{})}),(0,r.jsxs)("span",{children:["Give feedback ",(0,r.jsx)("span",{"aria-hidden":"true",className:"utility-ext",children:"âï¸"})]})]})})}function g(){return(0,r.jsx)("li",{children:(0,r.jsxs)("a",{className:"quiet-action",href:o.E.errataUrl,rel:"noopener",target:"_blank",children:[(0,r.jsx)("span",{className:"quiet-action-icon",children:(0,r.jsx)(s.DE,{})}),(0,r.jsx)("span",{children:"View reported errata"})]})})}},5388:function(e,t,n){"use strict";function r(e){return"#".concat(e.id)}function a(e){return"toc-item-".concat(e.kind)}function i(e,t){var n;return t&&null!==(n=e.find(e=>e.id===t))&&void 0!==n?n:null}n.d(t,{U9:function(){return a},Zi:function(){return r},cq:function(){return i}})},6914:function(e,t,n){"use strict";n.d(t,{HF:function(){return a}});var r=n(7294);function a(e,t){var n;let a=(0,r.useMemo)(()=>e.map(e=>e.id),[e]),[i,o]=(0,r.useState)(null!==(n=a[0])&&void 0!==n?n:null);return(0,r.useEffect)(()=>
1{if(!a.length){o(null);return}let e=a.map(e=>document.getElementById(e)).filter(e=>!!e);if(!e.length){o(null);return}function n(){var n,r;if(n=window.scrollY,window.innerHeight+n>=document.documentElement.scrollHeight-1){o(null!==(r=a[a.length-1])&&void 0!==r?r:null);return}o(function(e,t){var n,r;let a=null!==(r=null===(n=e[0])||void 0===n?void 0:n.id)&&void 0!==r?r:null;for(let n of e)if(n.top<=t)a=n.id;else break;return a}(e.map(e=>({id:e.id,top:e.getBoundingClientRect().top})),t))}let r=new IntersectionObserver(n,{root:null,rootMargin:"-".concat(Math.max(0,Math.ceil(t)),"px 0px -65% 0px"),threshold:[0,1]});return e.forEach(e=>r.observe(e)),n(),window.addEventListener("scroll",n,{passive:!0}),window.addEventListener("resize",n),()=>{r.disconnect(),window.removeEventListener("scroll",n),window.removeEventListener("resize",n)}},[t,a]),i}},1028:function(e,t,n){"use strict";n.d(t,{S:function(){return o},q:function(){return l}});var r=n(8782);let a=null;function i(){return"undefined"!=typeof performance&&"function"==typeof performance.now?performance.now():Date.now()}function o(e,t,n,r){a=0===n.length?null:{trigger:e,activationId:t,openedAt:i(),cards:n,openBuffered:r}}function l(e){let t=a;if(!t||!e||t.trigger!==e||(a=null,t.openBuffered&&(0,r.TW)()))return;let n=Math.max(0,Math.round(i()-t.openedAt));for(let e of t.cards)(0,r.j)({name:"source_card_close",...e,citation_activation_id:t.activationId,dwell_ms:n})}},9021:function(e,t,n){"use strict";n.d(t,{j3:function(){return l},$t:function(){return c}});let r=["inline_chip","source_run","quote_ref","display_text","law_change_history"],a=["jurisdiction","category","doc_type","slug"],i={page_view:{payload:[...a,"last_reviewed","authoring_license"],summary:"Explicit current-page view after consent resolution and on completed navigation; automatic GA4 page views are disabled. GA4 captures utm_* and referrer natively â do not duplicate them here."},content_view:{payload:[...a,"last_reviewed","authoring_license","citation_count"],summary:"Semantic content view when ArticleLayout mounts. Carries `citation_count` â the number of source cards the page renders â so opens-per-available-card is computable per page without auditing content files (#2155)."},workflow_bundle_impression:{payload:[...a],summary:"An ordered, source-backed legal-workflow bundle becomes visible."},scroll:{payload:[...a,"depth"],summary:"Fires at 25/50/75/100% scroll depth on article pages. Reuses dev-website depth dimension."},ai_referral:{payload:["source"],summary:"Browser visit referred by a known AI assistant surface."},pull_quote_click:{payload:[...a,"pull_quote_id","source_id","question_slug","citation_activation_id"],summary:"User clicks a chip referencing a source quote."},source_card_open:{payload:[...a,"source_id","source_authority_type","source_url_host","question_slug","citation_activation_id","citation_trigger"],summary:"User opens a source-card modal or expands the inline disclosure. Carries `citation_trigger` â which affordance the reader activated (inline_chip | source_run | quote_ref | display_text | law_change_history) â so per-surface engagement is comparable (#2156)."},source_card_close:{payload:[...a,"source_id","source_authority_type","source_url_host","question_slug","citation_activation_id","citation_trigger","dwell_ms"],summary:'The source preview a reader opened is dismissed â by re-clicking the trigger, Escape, an outside press, opening a different citation, the trigger scrolling out of view, or the article unmounting (#2157). Mirrors its `source_card_open` row for row (one per card revealed) and repeats that open\'s `citation_activation_id`, so the pair joins on (session, activation, source). `dwell_ms` is how long the card was open, which is what separates "readers glanced at a citation" from "readers read the authority". An open the reader never closes writes NO close row â pairing is optional, never assumed.'},citation_hover:{payload:[...a,"source_id","source_authority_type","source_url_host","question_slug","citation_trigger"],summary:"A fine-pointer reader dwells on a citation long enough for its source preview to open. Short pointer passes are excluded."},question_expand:{payload:[...a,"question_slug"],summary:"User expands a question disclosure block."},cta_related_form_click:{payload:[...a,"cta_target"],summary:"User clicks the relatedForm CTA."},outbound_click:{payload:[...a,"source_url_host","source_id","source_authority_type","link_url","citation_trigger"],summary:"User clicks any external link. Always carries the destination (`link_url`). When the clicked anchor is ITSELF a stamped citation trigger â today only the uncarded law-change-timeline chip, which links out because it has no source card â it also carries `citation_trigger`, so timeline engagement that lands in this event is still attributable to the timeline (#2156). When the click originates inside a rendered source card â the drawer card, the inline citation preview, or the authorities panel â it also carries the citation it belongs to (`source_id`, `source_authority_type`), so a click out to an authority resolves to WHICH authority rather than only to its host, and `link_url` is that card's authored URL minus only our own scroll-to-quote text fragment. An ordinary prose link carries neither citation field, and its `link_url` has campaign and click-id query parameters removed while keeping the path, addressing query and fragment;
1 see spec/OBSERVABILITY.md#observability-outbound-citation-attribution."},document_download:{payload:[...a,"download_format"],summary:"User clicks a document download link (PDF/DOCX) from the article/checklist rail; this does not prove a file was saved. First-party event â deliberately NOT GA4 Enhanced-Measurement `file_download` (manual reuse of that name would double-count against GA4 auto-collection)."},github_star_link_click:{payload:["source","doc_type"],summary:"User clicks the header link to the public OpenAgreements GitHub repository; this does not prove they starred it."},copy_text:{payload:[...a],summary:"User copies a verbatim quote (selection lands inside a quoted span)."},share:{payload:[...a],summary:"User triggers a share (native share API or share button)."},select_content:{payload:[...a,"content_type","item_id"],summary:"Generic content-selection event for surfaces that do not fit above."},template_category_filter:{payload:["tmpl_category","tmpl_results_count","source","doc_type"],summary:"User clicks a category filter pill on the templates catalog; includes prospective result count."},template_card_click:{payload:["tmpl_slug","tmpl_title","tmpl_category","doc_type","tmpl_from_search_query","tmpl_from_category_filter"],summary:"User clicks a template card on the templates catalog."},research_card_click:{payload:["paper_slug","paper_category"],summary:"User clicks a research-paper card on the /research index."},template_download:{payload:["tmpl_slug","tmpl_category","tmpl_source","tmpl_license","download_format","annotation_variant","doc_type"],summary:"User clicks a template-page document download link (DOCX or a markdown twin); this does not prove a file was saved. `annotation_variant` records annotated vs clean for the markdown twins (#797). External publisher links are outside this event."},guide_helpfulness:{payload:[...a,"helpfulness_response"],summary:"Reader selects Yes or No at the end of a practice guide; consent-aware and once per mounted guide."},guide_helpfulness_reason:{payload:[...a,"feedback_reason"],summary:"Reader optionally selects a reason after a No helpfulness response."},library_search_open:{payload:["source","autofocused","doc_type"],summary:"The header search input gains focus for the first time in a page view; `autofocused` is true when the homepage placed the cursor there rather than the reader."},library_search:{payload:["query","results_count","source","content_type","doc_type"],summary:"Observed library search after debounce, including normalized query text and result context."},library_search_commit:{payload:["query","results_count","source","content_type","doc_type"],summary:"Reader commits a library search, including normalized query text and result context."},library_search_no_results:{payload:["query","results_count","source","content_type","doc_type"],summary:"Committed library search has no matches across any content type; includes normalized query text."},library_search_result_click:{payload:["query","results_count","source","content_type","doc_type","slug","category"],summary:"Reader opens a typed result from library search."},library_request:{payload:["query","results_count","slug","source","content_type","doc_type"],summary:'Reader clicks "Request this" on a library search with no matches (query) or "Request a template for this" on a topic page with no template (slug). Records demand; promises nothing.'},note_search_commit:{payload:["query","results_count","source","doc_type"],summary:"Reader commits a guide-index query; distinguishes demand from partial typing."},note_search:{payload:["query","results_count","source","doc_type"],summary:"User searches the practice-note index after debounce or commits a homepage guide search."},note_search_no_results:{payload:["query","source","doc_type"],summary:"Reader commits a guide query with no matches across any family; never emitted from a typing pause."},note_category_filter:{payload:["category","results_count","source","doc_type"],summary:"User clicks a practice-note family rail link; includes prospective result count."},note_link_click:{payload:["slug","category","doc_type","from_search_query","from_category_filter"],summary:"User clicks a practice-note link from the legal index."},checklist_item_toggle:{payload:[...a,"item_id"],summary:"User checks or unchecks a review-checklist item. Consent-gated like other article engagement events."},consent_changed:{payload:["consent_state"],summary:"The c15t bridge reports a consent state change."}};Object.keys(i),Object.fromEntries(Object.entries(i).map(e=>{let[t,n]=e;return[t,n.payload]}));let o="data-citation-trigger";function l(e){return{[o]:e}}function c(e){var t,n;let a=null===(n=e.getAttribute)||void 0===n?void 0:null===(t=n.call(e,o))||void 0===t?void 0:t.trim();return r.includes(null!=a?a:"")?a:void 0}},2899:function(e,t,n){"use strict";n.d(t,{$f:function(){return r},Pt:function(){return l},TM:function(){return a},ht:function(){return o}});let r="data-source-run-ids";function a(){return"function"!=typeof window.matchMedia||window.matchMedia("(hover: hover) and (pointer: fine)").matches}let i=new WeakMap;function o(e,t){i.set(e,t)}function l(e){return i.get(e)}},5762:function(e,t,n){"use strict";n.d(t,{G:function(){return u}});var r=n(5893);n(7294);var a=n(9008),i=n.n(a),o=n(8929),l=n(9128),c=n(148),s=n(221);function u(e){var t;let{pageTitle:n,description:a,robots:u,canonical:d,markdownHref:m,socialImage:h,title:p,jsonLd:f}=e,v=(0,l.c)(h.url),g=null!==(t=h.alt)&&void 0!==t?t:p;return(0,r.jsxs)(i(),{children:[(0,r.jsx)("title",{children:"".concat(n," | ").concat(o.E.publisher)}),(0,r.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),(0,r.jsx)("meta",{name:"description",content:a}),u?(0,r.jsx)("meta",{name:"robots",content:u}):null,(0,r.jsx)("link",{rel:"canonical",href:d}),m?(0,r.jsx)("link",{rel:"alternate",type:s.jV,href:m}):null,(0,r.jsx)("meta",{property:"og:title",content:n}),(0,r.jsx)("meta",{property:"og:description",content:a}),(0,r.jsx)("meta",{property:"og:site_name",content:o.E.publisher}),(0,r.jsx)("meta",{property:"og:url",content:d}),(0,r.jsx)("meta",{property:"og:type",content:"article"}),(0,r.jsx)("meta",{property:"og:image",content:v}),(0,r.jsx)("meta",{property:"og:image:width",content:"".concat(h.width)}),(0,r.jsx)("meta",{property:"og:image:height",content:"".concat(h.height)}),(0,r.jsx)("meta",{property:"og:image:alt",content:g}),(0,r.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,r.jsx)("meta",{name:"twitter:title",content:n}),(0,r.jsx)("meta",{name:"twitter:description",content:a}),(0,r.jsx)("meta",{name:"twitter:image",content:v}),(0,r.jsx)("meta",{name:"twitter:image:alt",content:g}),(0,r.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:(0,c.BJ)(f)}})]})}},6578:function(e,t,n){"use strict";n.d(t,{p:function(){return g}});var r=n(5893);function a(e){let{groups:t}=e;return 0===t.length?null:(0,r.jsxs)("nav",{className:"template-versions","aria-label":"Versions",children:[(0,r.jsx)("p",{className:"section-nav-group",children:"Versions"}),t.map(e=>(0,r.jsxs)("div",{className:"template-versions-group",children:[(0,r.jsx)("p",{className:"template-versions-label",children:e.label}),(0,r.jsx)("ul",{className:"template-versions-list",children:e.links.map(e=>(0,r.jsx)("li",{children:e.current?(0,r.jsx)("span",{className:"section-nav-item active","aria-current":"page",children:e.label}):(0,r.jsx)("a",{className:"section-nav-item",href:e.href,children:e.label})},e.href))})]},e.label))]})}n(7294);var i=n(8782),o=n(5556),l=n(221),c=n(2354),s=n(2132),u=n(8697),d=n(1355),m=n(4685),h=n(9441);let p=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"long",day:"numeric",timeZone:"UTC"});function f(){return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,r.jsx)("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),(0,r.jsx)("polyline",{points:"7 10 12 15 17 10"}),(0,r.jsx)("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]})}function v(){return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,r.jsx)("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),(0,r.jsx)("path",{d:"M7 15V9l2.5 3L12 9v6"}),(0,r.jsx)("path",{d:"M16 9v4M16 13l-1.5-1.5M16 13l1.5-1.5"})]})}function g(e){var t,n,g,y,w;
1let{slug:b,title:x,sectionNav:k,upstreamSha:j,upstreamCommittedAt:_,category:N,source:E,license:C,sourceHref:L,sourceLabel:S,externalDownload:M,licenseScope:A,sourceCtaScope:T,agentSkills:q,exportMenu:H,downloadOverrides:B,versions:I}=e,R=(0,s.W)(),U=null!==(t=null==B?void 0:B.docxHref)&&void 0!==t?t:"/templates/".concat(b,"/template.docx"),D=null!==(n=null==B?void 0:B.docxFileName)&&void 0!==n?n:"".concat(b,".docx"),F=null!==(g=null==B?void 0:B.annotatedFileName)&&void 0!==g?g:"".concat(b,"-annotated.md"),O=null!==(y=null==B?void 0:B.cleanFileName)&&void 0!==y?y:"".concat(b,".md"),W=null!==(w=null==B?void 0:B.viewMarkdownHref)&&void 0!==w?w:(0,l.Cc)(b),z=function(e){if(!e)return null;let t=new Date(e);return Number.isNaN(t.getTime())?null:p.format(t)}(_),V=null!=L?L:j?"https://github.com/open-agreements/open-agreements/tree/".concat(j):null,P=L?null!=S?S:"standard terms":z?"".concat(z," version"):null,G=e=>{let t=(0,o.er)({slug:b,category:N,source:E,license:C,externalDownload:M,downloadFormat:e.downloadFormat,...e.annotationVariant?{annotationVariant:e.annotationVariant}:{}});t&&(0,i.j)({name:"template_download",...t})},J=!!(null==q?void 0:q.length),Y=(null==q?void 0:q[0])?"/skills#".concat(q[0].slug):"/skills";return(0,r.jsxs)(u.m,{ariaLabel:"Template actions",children:[(0,r.jsxs)("div",{className:"template-rail-download",children:[M?(0,r.jsx)("a",{className:"button template-action-download",href:M.href,target:"_blank",rel:"noopener noreferrer","data-publisher-download":null!=E?E:"",children:M.label}):(0,r.jsxs)("a",{className:"button template-action-download",href:U,download:D,onClick:()=>G({downloadFormat:"docx"}),children:[(0,r.jsx)(f,{}),"Download Word (.docx)",(0,r.jsxs)("span",{className:"visually-hidden",children:[" for ",x]})]}),M&&T?(0,r.jsx)("p",{className:"template-rail-download-scope",children:T}):null]}),H?(0,r.jsxs)("details",{className:"template-export",children:[(0,r.jsxs)("summary",{className:"template-export-summary",children:[(0,r.jsx)(v,{}),(0,r.jsx)("span",{children:"Export as Markdown"}),(0,r.jsxs)("span",{"aria-hidden":"true",className:"template-export-caret",children:[" ","â¾"]})]}),(0,r.jsxs)("ul",{className:"template-export-list",children:[(0,r.jsx)("li",{className:"template-export-item",children:(0,r.jsxs)("a",{className:"template-export-link",href:H.annotatedHref,download:F,onClick:()=>G({downloadFormat:"md",annotationVariant:"annotated"}),children:["Annotated",(0,r.jsx)("span",{className:"template-export-default-badge",children:"Default"}),(0,r.jsx)("span",{className:"template-export-item-sub",children:"Fill-in guidance + field markers"})]})}),(0,r.jsx)("li",{className:"template-export-item",children:(0,r.jsxs)("a",{className:"template-export-link",href:H.cleanHref,download:O,onClick:()=>G({downloadFormat:"md",annotationVariant:"clean"}),children:["Clean",(0,r.jsx)("span",{className:"template-export-item-sub",children:"Token-only, no annotations"})]})})]})]}):null,I&&I.length>0?(0,r.jsx)(a,{groups:I}):null,k?(0,r.jsx)("div",{className:"utility-rail-related",children:(0,r.jsx)(d.F,{data:k})}):null,(0,r.jsx)("div",{className:"utility-rail-actions",children:(0,r.jsxs)("ul",{className:"quiet-actions",children:[(0,r.jsx)(h.o7,{source:{href:W},promoted:!0,dataAttr:"data-utility-copy-page"}),(0,r.jsx)(h.Qp,{href:W,promoted:!0,dataAttr:"data-utility-view-markdown"}),J?(0,r.jsx)(h.vx,{onOpen:R.open}):null,(0,r.jsx)(h.jz,{slug:b,title:x}),(0,r.jsx)(h.Ld,{})]})}),V&&P?(0,r.jsxs)("p",{className:"template-upstream-provenance",children:["View source:"," ",(0,r.jsxs)("a",{href:V,rel:"noopener",target:"_blank",children:[P,(0,r.jsxs)("span",{"aria-hidden":"true",className:"template-external-arrow",children:[" ","âï¸"]})]})]}):null,(0,r.jsx)(m.i,{...A?{licenseScope:A}:{}}),J?(0,r.jsx)(c._,{skills:null!=q?q:[],browseHref:Y,isOpen:R.isOpen,close:R.close,onBackdropClick:R.onBackdropClick}):null]})}},2132:function(e,t,n){"use strict";n.d(t,{W:function(){return a}});var r=n(7294);function a(){let[e,t]=(0,r.useState)(!1),n=(0,r.useRef)(null),a=(0,r.useRef)({htmlOverflow:""}),i=(0,r.useCallback)(()=>{document.documentElement.style.overflow=a.current.htmlOverflow},[]),o=(0,r.useCallback)(function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];t(t=>t?(i(),window.setTimeout(()=>{var t;e&&(null===(t=n.current)||void 0===t||t.focus()),n.current=null},0),!1):t)},[i]),l=(0,r.useCallback)(e=>{n.current=e,a.current={htmlOverflow:document.documentElement.style.overflow},document.documentElement.style.overflow="hidden",t(!0)},[]);(0,r.useEffect)(()=>
1{if(!e)return;let t=document.querySelector("[data-agent-skills-modal-close]");window.setTimeout(()=>null==t?void 0:t.focus(),0)},[e]),(0,r.useEffect)(()=>{function t(t){if(!e)return;if("Escape"===t.key){t.preventDefault(),o(!0);return}if("Tab"!==t.key)return;let n=function(){let e=document.querySelector(".agent-skills-modal");return e?Array.from(e.querySelectorAll('a[href], button:not([disabled]), input:not([disabled]), [tabindex]:not([tabindex="-1"])')):[]}();if(!n.length)return;let r=n[0],a=n[n.length-1];t.shiftKey&&document.activeElement===r?(t.preventDefault(),a.focus()):t.shiftKey||document.activeElement!==a||(t.preventDefault(),r.focus())}return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}},[o,e]),(0,r.useEffect)(()=>()=>o(!1),[o]);let c=(0,r.useCallback)(e=>{e.target===e.currentTarget&&o(!0)},[o]);return{isOpen:e,open:l,close:o,onBackdropClick:c}}},9879:function(e,t,n){"use strict";n.d(t,{EI:function(){return m},VM:function(){return d},fM:function(){return u},wM:function(){return s}});var r=n(5893),a=n(7294),i=n(8782),o=n(2448);let l=a.createContext(null),c=/\.(md|docx|json)$/;function s(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}function u(e){let{sections:t,states:n,storageKey:c,analytics:u,initialChecked:d,initialStateFilter:m,children:h}=e,[p,f]=a.useState(()=>new Set(null!=d?d:[])),v=void 0!==m,[g,y]=(0,o.SK)({state:(0,o.y)("state",n.map(e=>s(e)))}),[w,b]=a.useState(null!=m?m:"all"),x=v?w:g.state,k=a.useRef(y);k.current=y;let j=a.useCallback(e=>{v?b(e):k.current("state",e)},[v]),[_,N]=a.useState(!1),[E,C]=a.useState(!1);a.useEffect(()=>{if(!c||d){N(!0);return}try{let e=window.localStorage.getItem(c);if(e){let t=JSON.parse(e);Array.isArray(t)&&f(new Set(t.filter(e=>"string"==typeof e)))}}catch(e){}finally{N(!0)}},[d,c]),a.useEffect(()=>{if(c&&_)try{window.localStorage.setItem(c,JSON.stringify([...p].sort())),C(!1)}catch(e){C(!0)}},[p,_,c]);let L=a.useMemo(()=>{let e=new Map(t.map(e=>[e.id,e.itemIds]));return{isChecked:e=>p.has(e),toggle:e=>f(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),u&&(0,i.j)({name:"checklist_item_toggle",category:u.category,doc_type:u.doc_type,slug:u.slug,item_id:e}),n}),sectionProgress:t=>{var n;let r=null!==(n=e.get(t))&&void 0!==n?n:[];return{checked:r.filter(e=>p.has(e)).length,total:r.length}},stateFilter:x,setStateFilter:j,states:n,persistenceFailed:E}},[u,p,E,t,j,x,n]);return(0,r.jsx)(l.Provider,{value:L,children:h})}function d(){return a.useContext(l)}function m(e){let t=d(),n=null==t?void 0:t.stateFilter;return a.useMemo(()=>(function(e,t){let n=t?s(t):"";if(!n||"all"===n)return e;let r=e.match(c);if(!r)return e;let a=r[0],i=e.slice(0,-a.length);return"/checklists/non-compete/us"!==i?e:"".concat(i,"/").concat(n).concat(a)})(e,n),[e,n])}},7456:function(e,t,n){"use strict";n.d(t,{wT:function(){return f},Wt:function(){return v},zq:function(){return j}});var r=n(7294),a=n(6154),i=n(2899),o=n(3310),l=n(1028),c=n(9021);function s(e){return e.hasAttribute("data-benchmark-card")}function u(e){var t,n,r;let a=null!==(t=e.getAttribute("data-authority-type"))&&void 0!==t?t:"",i=e.getAttribute("data-authority-tier"),l=i&&(0,o.Yl)(i)?i:null,c=a in o.B2?(0,o.h9)(a):null;return{tier:l&&!h(e)?l:null,group:l&&null!==(n=null==c?void 0:c.group)&&void 0!==n?n:null,kind:null!==(r=null==c?void 0:c.kind)&&void 0!==r?r:a in o.B2?o.B2[a]:"Commentary",ref:m(e)}}function d(e){let t=e.getAttribute("data-source-id"),n=e.id.replace(/^src-/,"");return null!=t?t:n||null}function m(e){var t;return(null===(t=e.getAttribute("data-ref"))||void 0===t?void 0:t.trim())||null}function h(e){return!!e.closest(".for-labs-body")}function p(e){let t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height}}let f='[data-source-link][href^="#src-"], [data-source-link][data-source-id]';function v(e){var t,n;let r=null===(t=e.getAttribute("data-source-id"))||void 0===t?void 0:t.trim();if(r)return[r];let a=null!==(n=e.getAttribute("href"))&&void 0!==n?n:"";return a.startsWith("#src-")?[a.slice(5)]:[]}let g="data-source-scope";function y(e){var t;return(null!==(t=e.getAttribute(i.$f))&&void 0!==t?t:"").trim().split(/\s+/).filter(
1Boolean)}function w(e,t){let n=e.closest("[".concat(i.$f,"]"));if(n&&"pointer"===t&&!(0,i.TM)()){let e=y(n);if(e.length>0)return e}return v(e)}function b(e,t){var n;let r=null!==(n=null==t?void 0:t.closest("[".concat(g,"]")))&&void 0!==n?n:null;return e.map(e=>{let t="src-".concat(e);return r?r.querySelector('[id="'.concat(t.replace(/"/g,'\\"'),'"]')):document.getElementById(t)}).filter(e=>e instanceof HTMLElement)}function x(e){var t,n;let r=e.closest("[".concat(g,"]"));return null!==(n=null==r?void 0:null===(t=r.getAttribute(g))||void 0===t?void 0:t.trim())&&void 0!==n?n:""}function k(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return t?"#sources=".concat(e.map(encodeURIComponent).join(","),"&scope=").concat(encodeURIComponent(t)):1===e.length?"#src-".concat(e[0]):"#sources=".concat(e.map(encodeURIComponent).join(","))}function j(){let e=function(){let[e,t]=(0,r.useState)(null),[n,o]=(0,r.useState)(null),[f,v]=(0,r.useState)(!1),g=(0,r.useRef)(!1),y=(0,r.useRef)(null),w=(0,r.useRef)(null),b=(0,r.useRef)(null),x=(0,r.useCallback)(function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];if(!g.current)return;g.current=!1;let n=y.current;null==n||n.setAttribute("aria-expanded","false"),(0,l.q)(n),v(!1),t(null),o(null),b.current=null,(window.location.hash.startsWith("#src-")||window.location.hash.startsWith("#sources="))&&window.history.replaceState(null,"","".concat(window.location.pathname).concat(window.location.search)),e&&window.setTimeout(()=>null==n?void 0:n.focus(),0),y.current=null},[]),k=(0,r.useCallback)((e,n)=>{var r,f;let w=function(e){let t=Array.isArray(e)?e:[e],n=new Set;return t.filter(e=>!n.has(e)&&(n.add(e),!0))}(n);if(0===w.length)return;if(y.current&&y.current!==e){let e=y.current;e.setAttribute("aria-expanded","false"),(0,l.q)(e)}y.current=e,e.setAttribute("aria-controls",a.TB),e.setAttribute("aria-expanded","true"),e.setAttribute("aria-haspopup","dialog");let x=w.map(d).filter(e=>!!e);(0,i.ht)(e,x);let k=function(e){if(1!==e.length)return null;let[t]=e;return s(t)||t.hasAttribute("data-modal-title")?null:u(t)}(w);t({title:function(e,t){if(1===t.length){var n,r,a;return t[0].getAttribute("data-modal-title")||"Source ".concat(null!==(a=null!==(r=m(t[0]))&&void 0!==r?r:null===(n=e.textContent)||void 0===n?void 0:n.trim())&&void 0!==a?a:"")}return"".concat(t.length," sources")}(e,w),html:function(e,t){let n=document.createElement("div");return n.className="citation-preview-group",e.forEach((e,r)=>{let a=document.createElement("section");a.className="citation-preview-source",a.setAttribute("data-preview-source-index",String(r+1));let i=d(e);i&&a.setAttribute("data-preview-source-id",i);let o=m(e);o&&a.setAttribute("aria-label","Source ".concat(o));let l=h(e),c=e.getAttribute("data-authority-tier");c&&!l&&a.setAttribute("data-authority-tier",c),a.innerHTML=function(e,t){if(s(e))return e.innerHTML;let n=document.createElement("div");return t&&n.appendChild(function(e){let t=document.createElement("div");t.className="citation-preview-label",t.setAttribute("data-citation-preview-label","");let n=document.createElement("span");if(n.className="citation-preview-kind",e.tier){let t=document.createElement("span");t.className="citation-preview-swatch",t.setAttribute("aria-hidden","true"),t.setAttribute("data-authority-tier",e.tier),n.appendChild(t)}let r=document.createElement("span");if(r.className="citation-preview-kind-text",e.group){let t=document.createElement("b");t.textContent=e.group,r.append(t," \xb7 ".concat(e.kind))}else r.textContent=e.kind;if(n.appendChild(r),t.appendChild(n),e.ref){let n=document.createElement("span");n.className="citation-preview-ref",n.textContent=e.ref,t.appendChild(n)}return t}(u(e))),[".source-title",".source-proposition","blockquote",".source-quote-paraphrase",".source-citation"].forEach(t=>{let r=e.querySelector(t);if(!r)return;let a=r.cloneNode(!0);"blockquote"===t&&function(e,t){var n,r;let a=null===(n=t.querySelector("a.source-title"))||void 0===n?void 0:n.getAttribute("href");if(!a||!(null===(r=e.textContent)||void 0===r?void 0:r.trim()))return;let i=document.createElement("a");for(i.className="source-quote-link",i.setAttribute("href",a),i.setAttribute("rel","noopener"),i.setAttribute("target","_blank");e.firstChild;)i.appendChild(e.firstChild);let o=document.createElement("span");o.className="source-quote-arrow",o.setAttribute("aria-hidden","true"),o.textContent=" âï¸",i.appendChild(o),e.appendChild(i)}(a,e),n.appendChild(a)}),n.innerHTML}
1(e,!t),l&&a.querySelectorAll("[data-authority-tier]").forEach(e=>e.removeAttribute("data-authority-tier")),n.appendChild(a)}),n.innerHTML}(w,k),sourceId:null!==(r=x[0])&&void 0!==r?r:null,sourceIds:x,citationTrigger:null!==(f=(0,c.$t)(e))&&void 0!==f?f:"unknown",label:k});let j=p(e);b.current=j,o(j),g.current=!0,v(!0)},[]),j=(0,r.useCallback)(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(g.current&&y.current===e){let e=w.current;return w.current=null,!!(!n.viaHover&&null!==e&&Date.now()-e<800)||(x(!0),!1)}return k(e,t),w.current=n.viaHover?Date.now():null,!0},[x,k]);(0,r.useEffect)(()=>{if(!f)return;let e=0,t=()=>{window.cancelAnimationFrame(e),e=window.requestAnimationFrame(()=>{var e;let t=y.current;if(!(null==t?void 0:t.isConnected)){x(!1);return}let n=t.getBoundingClientRect();if(n.bottom<-12||n.top>window.innerHeight+12){x(!1);return}let r=p(t);(e=b.current)===r||e&&r&&e.top===r.top&&e.right===r.right&&e.bottom===r.bottom&&e.left===r.left&&e.width===r.width&&e.height===r.height||(b.current=r,o(r))})},n=e=>{let n=e.target,r=document.getElementById(a.TB);n&&r&&(r===n||r.contains(n))||t()};return window.addEventListener("resize",t),document.addEventListener("scroll",n,!0),()=>{window.cancelAnimationFrame(e),window.removeEventListener("resize",t),document.removeEventListener("scroll",n,!0)}},[x,f]),(0,r.useEffect)(()=>{if(f)return document.addEventListener("pointerdown",e,!0),document.addEventListener("keydown",t),()=>{document.removeEventListener("pointerdown",e,!0),document.removeEventListener("keydown",t)};function e(e){var t,n;let r=e.target;if(!r)return;let o=document.getElementById(a.TB);if((null==o?void 0:o.contains(r))||(null===(t=y.current)||void 0===t?void 0:t.contains(r)))return;let l=null===(n=y.current)||void 0===n?void 0:n.closest("[".concat(i.$f,"]"));(null==l||!l.contains(r)||(0,i.TM)())&&x(!1)}function t(e){"Escape"===e.key&&(e.preventDefault(),x(!0))}},[x,f]),(0,r.useEffect)(()=>{let e;if(!f)return;let t=!1,n=y.current,r=!0,i=!1,o=()=>{window.clearTimeout(e),e=void 0},l=()=>{y.current!==n&&(n=y.current,r=!0,i=!1,o())},c=e=>{var t;if(!(e instanceof Node))return!1;let n=document.getElementById(a.TB);return!!((null==n?void 0:n.contains(e))||(null===(t=y.current)||void 0===t?void 0:t.contains(e)))},s=()=>{var e,t;let n=document.activeElement;if(!n||n===document.body)return!1;if(null===(e=document.getElementById(a.TB))||void 0===e?void 0:e.contains(n))return!0;if(!(null===(t=y.current)||void 0===t?void 0:t.contains(n)))return!1;try{return n.matches(":focus-visible")}catch(e){return!1}},u=()=>!g.current||null===w.current||r||i||s();function d(){if(l(),t||void 0!==e||u())return;let n=y.current;e=window.setTimeout(()=>{e=void 0,y.current!==n||u()||x(!1)},500)}function m(e){"touch"!==e.pointerType&&(l(),c(e.target)?(r=!0,o()):0===e.buttons&&(i=!1,r=!1,d()))}function h(e){if("touch"!==e.pointerType&&(l(),!(!c(e.target)||c(e.relatedTarget)))){if(r=!1,0!==e.buttons){i=!0;return}d()}}function p(e){"touch"!==e.pointerType&&i&&(i=!1,d())}function v(){window.setTimeout(d,0)}function b(e){var t;e.target instanceof Node&&(null===(t=document.getElementById(a.TB))||void 0===t?void 0:t.contains(e.target))&&(w.current=null,o())}return document.addEventListener("pointerover",m,!0),document.addEventListener("pointerout",h,!0),document.addEventListener("pointerup",p,!0),document.addEventListener("pointercancel",p,!0),document.addEventListener("focusout",v,!0),document.addEventListener("pointerdown",b,!0),()=>{t=!0,o(),document.removeEventListener("pointerover",m,!0),document.removeEventListener("pointerout",h,!0),document.removeEventListener("pointerup",p,!0),document.removeEventListener("pointercancel",p,!0),document.removeEventListener("focusout",v,!0),document.removeEventListener("pointerdown",b,!0)}},[x,f]),(0,r.useEffect)(()=>()=>x(!1),[x]);let _=(0,r.useCallback)(e=>{e.target===e.currentTarget&&x(!0)},[x]);return{isOpen:f,content:e,anchorRect:n,closeSourceModal:x,maybeOpenSourceModal:j,onBackdropClick:_,onDialogTouchStart:(0,r.useCallback)(e=>{},[]),onDialogTouchEnd:(0,r.useCallback)(e=>{},[])}}(),{maybeOpenSourceModal:t}=e;return(0,r.useEffect)(()=>{let e=document.getElementById(a.uN),n=document.getElementById(a.cb),r=new Map,o=new WeakSet;function l(){var t;t=!(e instanceof HTMLDetailsElement?e.open:!!e&&!e.hidden),e&&n&&(e instanceof HTMLDetailsElement?e.open=t:e.hidden=!t,n.setAttribute("aria-expanded",t?"true":"false"),n.textContent=t?"Hide sources":"Sources",t&&e.scrollIntoView({block:"nearest",behavior:"smooth"}))}function c(e){let n=e.currentTarget;if(!n)return;e.preventDefault(),e.stopPropagation();let a=r.get(n);void 0!==a&&window.clearTimeout(a),r.delete(n);let l="keydown"===e.type||o.has(n)?"keyboard":"pointer";o.delete(n);let c=function(e,t){var n;if("pointer"!==t||(0,i.TM)())return e;let r=e.closest("[".concat(i.$f,"]"));return null!==(n=null==r?void 0:r.querySelector('[data-source-link][aria-expanded="true"]'))&&void 0!==n?n:e}(n,l),s=w(c,l),u=b(s,c);if(0!==u.length&&t(c,1===u.length?u[0]:u)&&history.replaceState){var d;let e=null!==(d=(0,i.Pt)(c))&&void 0!==d?d:s;history.replaceState(null,"",k(e,x(c)))}}function s(e){("Enter"===e.key||" "===e.key)&&c(e)}function u(e){("Enter"===e.key||" "===e.key)&&o.add(e.currentTarget)}function d(e){o.delete(e.currentTarget)}null==n||n.addEventListener("click",l);let m=document.querySelectorAll(f);function h(e){let n=e.currentTarget;if(!(0,i.TM)()||"true"===n.getAttribute("aria-expanded"))return;let a=window.setTimeout(()=>{r.delete(n),n.isConnected&&"true"!==n.getAttribute("aria-expanded")&&function(e){let n=w(e,"hover"),r=b(n,e);if(0===r.length)return!1;let a=t(e,1===r.length?r[0]:r,{viaHover:!0});if(a&&history.replaceState){var o;let t=null!==(o=(0,i.Pt)(e))&&void 0!==o?o:n;history.replaceState(null,"",k(t,x(e)))}return a}(n)&&n.dispatchEvent(new CustomEvent("citation-hover-open",{bubbles:!0}))},450);r.set(n,a)}function p(e){let t=e.currentTarget,n=r.get(t);void 0!==n&&window.clearTimeout(n),r.delete(t)}
1return m.forEach(e=>{e.addEventListener("click",c),e.addEventListener("pointerenter",h),e.addEventListener("pointerleave",p),e.addEventListener("pointerdown",d),"A"!==e.tagName&&"BUTTON"!==e.tagName?e.addEventListener("keydown",s):e.addEventListener("keydown",u)}),()=>{null==n||n.removeEventListener("click",l),m.forEach(e=>{let t=r.get(e);void 0!==t&&window.clearTimeout(t),e.removeEventListener("click",c),e.removeEventListener("pointerenter",h),e.removeEventListener("pointerleave",p),e.removeEventListener("keydown",s),e.removeEventListener("keydown",u),e.removeEventListener("pointerdown",d)})}},[t]),(0,r.useEffect)(()=>{let{sourceIds:e,scopeId:n}=function(e){if(e.startsWith("#sources=")){let[t,...n]=e.slice(9).split("&"),r="";for(let e of n)if(e.startsWith("scope="))try{r=decodeURIComponent(e.slice(6))}catch(e){r=""}return{sourceIds:t.split(",").map(e=>{try{return decodeURIComponent(e)}catch(e){return""}}).filter(Boolean),scopeId:r}}if(e.startsWith("#src-")){let t=e.slice(5);try{return{sourceIds:[decodeURIComponent(t)],scopeId:""}}catch(e){}}return{sourceIds:[],scopeId:""}}(window.location.hash);if(0===e.length)return;let r=function(e){var t,n,r;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=document;if(a){let e=null!==(t=Array.from(document.querySelectorAll("[".concat(g,"]"))).find(e=>e.getAttribute(g)===a))&&void 0!==t?t:null;if(!e)return null;o=e}let l=Array.from(o.querySelectorAll("[data-source-link]")),c=l.find(t=>{let n=v(t);return n.length===e.length&&n.every((t,n)=>t===e[n])});if(c)return c;if(e.length>1){let t=Array.from(o.querySelectorAll("[".concat(i.$f,"]"))).find(t=>{let n=y(t);return n.length===e.length&&n.every((t,n)=>t===e[n])});return null!==(n=null==t?void 0:t.querySelector("[data-source-link]"))&&void 0!==n?n:null}return 1===e.length&&null!==(r=l.find(t=>v(t).includes(e[0])))&&void 0!==r?r:null}(e,n);if(!r)return;let a=b(e,r);0!==a.length&&t(r,1===a.length?a[0]:a)},[]),e}},9039:function(e,t,n){"use strict";n.d(t,{BE:function(){return a},Iy:function(){return l},RK:function(){return i},sC:function(){return o}});var r=n(16);function a(e){return[{label:"Home",href:"/"},{label:e}]}function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[{label:"Home",href:"/"},{label:"Practice Guides",href:"/practice-guides"},...t,{label:e}]}function o(e,t){return[{label:"Home",href:"/"},{label:"Surveys",href:"/surveys"},{label:(0,r.mP)(e),href:"/practice-guides/".concat(e)},{label:t}]}function l(e,t,n){return[{label:"Home",href:"/"},{label:"Templates",href:"/templates"},{label:t,href:"/templates#group-".concat(e)},{label:n}]}},983:function(e,t,n){"use strict";n.d(t,{a:function(){return a},b:function(){return i}});var r=n(4952);function a(e){var t;let n=(0,r.k)(e.lastReviewed);return{bluebook:"".concat(e.author.legalName,", <em>").concat(e.title,"</em>, OpenAgreements (").concat(n,"), ").concat(e.canonicalUrl,"."),mla:"".concat(function(e){let t=e.trim().split(/\s+/);if(t.length<2)return e;let n=t[t.length-1],r=t.slice(0,-1).join(" ");return"".concat(n,", ").concat(r)}(e.author.legalName),". “").concat(e.title,".” <em>OpenAgreements</em>, ").concat(function(e){let[t,n,r]=e.split("-").map(e=>Number.parseInt(e,10)),a=new Date(Date.UTC(t,n-1,r));return new Intl.DateTimeFormat("en-US",{day:"numeric",month:"long",year:"numeric",timeZone:"UTC"}).format(a)}(e.lastReviewed),", ").concat(e.canonicalUrl.replace(/^https?:\/\//,""),"."),apa:"".concat(function(e){let t=e.trim().split(/\s+/);if(t.length<2)return e;let n=t[t.length-1],r=t.slice(0,-1).map(e=>"".concat(e.charAt(0),".")).join(" ");return"".concat(n,", ").concat(r)}(e.author.legalName)," (").concat(function(e){let[t,n,r]=e.split("-").map(e=>Number.parseInt(e,10)),a=new Date(Date.UTC(t,n-1,r)),i=new Intl.DateTimeFormat("en-US",{month:"long",timeZone:"UTC"}).format(a);return"".concat(t,", ").concat(i," ").concat(r)}(e.lastReviewed),"). <em>").concat((t=e.title)?"".concat(t.charAt(0)).concat(t.slice(1).replace(/^./,e=>e.toLowerCase())):t,"</em>. OpenAgreements. ").concat(e.canonicalUrl)}}function i(e,t){let n="markdown"===t?"*".concat(e.title,"*"):"<em>".concat(e.title,"</em>"),a=(0,r.k)(e.dateModified);return"CC BY 4.0. Cite as ".concat(e.legalName,", ").concat(n,", OpenAgreements (last updated ").concat(a,"), ").concat(e.canonicalUrl,".")}},3310:function(e,t,n){"use strict";n.d(t,{B2:function(){return a},TD:function(){return r},Xe:function(){return l},Yl:function(){return m},_7:function(){return u},dG:function(){return s},h9:function(){return d},of:function(){return o}});let r=["primary-law","case-law","regulation","agency-guidance","law-firm-commentary","vendor-documentation","commentary","technical-standard","scholarship","data-
1provider","internet-resource","standard-form","sec-filing"],a={"primary-law":"Primary law","case-law":"Case law",regulation:"Regulation","agency-guidance":"Agency guidance","law-firm-commentary":"Law-firm commentary","vendor-documentation":"Vendor documentation",commentary:"Commentary","technical-standard":"Technical standard",scholarship:"Scholarship","data-provider":"Data provider","internet-resource":"Internet resource","standard-form":"Standard form","sec-filing":"SEC filing"},i=["primary-source-backed","official-source-backed","market-benchmark-backed","lawyer-judgment-backed"],o={"primary-source-backed":"Primary source","official-source-backed":"Official source","market-benchmark-backed":"Market benchmark","lawyer-judgment-backed":"Lawyer commentary"},l={"primary-law":"primary-source-backed","case-law":"primary-source-backed",regulation:"primary-source-backed","agency-guidance":"official-source-backed","law-firm-commentary":"lawyer-judgment-backed",commentary:"lawyer-judgment-backed",scholarship:"lawyer-judgment-backed","vendor-documentation":"market-benchmark-backed","data-
1provider":"market-benchmark-backed","technical-standard":"market-benchmark-backed","internet-resource":"market-benchmark-backed","standard-form":"market-benchmark-backed","sec-filing":"market-benchmark-backed"},c=new Set(["vendor-documentation","technical-standard","scholarship","data-provider","internet-resource"]),s=[{bucket:"primary",tier:"primary-source-backed",label:"Primary source",singular:"primary source",plural:"primary sources"},{bucket:"market",tier:"market-benchmark-backed",label:"Market benchmark",singular:"market benchmark",plural:"market benchmarks"},{bucket:"other",tier:"lawyer-judgment-backed",label:"Secondary source",singular:"secondary source",plural:"secondary sources"}],u={"primary-source-backed":"primary","market-benchmark-backed":"market","official-source-backed":"other","lawyer-judgment-backed":"other"};function d(e){var t,n;let r=u[l[e]];return{group:c.has(e)?null:null!==(n=null===(t=s.find(e=>e.bucket===r))||void 0===t?void 0:t.label)&&void 0!==n?n:null,kind:a[e]}}function m(e){return i.includes(e)}},5556:function(e,t,n){"use strict";function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=null==e?void 0:e.trim();if(n)return n.slice(0,t)}function a(e,t){return e.reduce((e,n)=>e+n.entries.filter(e=>"all"===t||e.category===t).length,0)}function i(e,t){return{tmpl_category:r(e),tmpl_results_count:t,source:"templates_page",doc_type:"template"}}function o(e,t){return{tmpl_slug:r(e.slug),tmpl_title:r(e.name),tmpl_category:r(e.category),doc_type:"template",tmpl_from_category_filter:"all"!==t?r(t):void 0}}function l(e){var t;return e.externalDownload?null:{tmpl_slug:r(e.slug),tmpl_category:r(e.category),tmpl_source:r(e.source),tmpl_license:r(e.license),download_format:null!==(t=e.downloadFormat)&&void 0!==t?t:"docx",...e.annotationVariant?{annotation_variant:e.annotationVariant}:{},doc_type:"template"}}n.d(t,{KB:function(){return a},ZY:function(){return o},er:function(){return l},iU:function(){return i}})},2448:function(e,t,n){"use strict";n.d(t,{DR:function(){return i},SK:function(){return o},y:function(){return a}});var r=n(7294);function a(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"all",r=new Set(t);return{key:e,default:n,parse:e=>r.has(e)?e:n}}function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"q",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e;return{key:e,default:"",parse:e=>t(e),isDefault:e=>""===e.trim()}}function o(e){let t=r.useMemo(()=>Object.keys(e),[e]),n=r.useMemo(()=>{let n={};for(let r of t)n[r]=e[r].default;return n},[t]),[a,i]=r.useState(n),o=r.useRef(e);o.current=e;let l=r.useRef(a);return l.current=a,r.useEffect(()=>{i(function(e,t,n){let r=new URLSearchParams(n),a={};for(let n of t){let t=r.get(e[n].key);a[n]=null===t?e[n].default:e[n].parse(t)}return a}(o.current,t,window.location.search))},[]),[a,r.useCallback((e,n)=>{let r={...l.current,[e]:n};l.current=r,i(r);let a=new URLSearchParams(window.location.search);for(let e of t){var c;let t=o.current[e];(c=r[e],t.isDefault?t.isDefault(c):c===t.default)?a.delete(t.key):a.set(t.key,r[e])}a.sort();let s=a.toString(),u="".concat(window.location.pathname).concat(s?"?".concat(s):"").concat(window.location.hash);window.history.replaceState(window.history.state,"",u)},[t])]}},7946:function(e){e.exports={layer:"SourceModal_layer__EpZ34",open:"SourceModal_open__Y21JM",popover:"SourceModal_popover__NXBwj",header:"SourceModal_header__nl3ZF",title:"SourceModal_title__d464R",body:"SourceModal_body__8PthW",close:"SourceModal_close__Di64y"}},2075:function(e){e.exports={block:"TemplateStateLawBlock_block___DMuC",heading:"TemplateStateLawBlock_heading__dIe30",intro:"TemplateStateLawBlock_intro__KhxJk",buckets:"TemplateStateLawBlock_buckets___vAsZ",bucket:"TemplateStateLawBlock_bucket__Zvzjj",bucketLabel:"TemplateStateLawBlock_bucketLabel__0ldYb",states:"TemplateStateLawBlock_states__r0rtv",links:"TemplateStateLawBlock_links__DhOGv"}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.