"use strict";(self.webpackChunksubstack=self.webpackChunksubstack||[]).push([["707"],{4675:function(e,t,n){n.d(t,{Z:()=>r});/**
* @license lucide-preact v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/let r=(0,n(36150).Z)("ArrowLeftRight",[["path",{d:"M8 3 4 7l4 4",key:"9rb6wj"}],["path",{d:"M4 7h16",key:"6tx8e3"}],["path",{d:"m16 21 4-4-4-4",key:"siv7j2"}],["path",{d:"M20 17H4",key:"h6l3hr"}]])},60484:function(e,t,n){n.d(t,{Z:()=>r});/**
* @license lucide-preact v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/let r=(0,n(36150).Z)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},66298:function(e,t,n){n.d(t,{Z:()=>r});/**
* @license lucide-preact v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/let r=(0,n(36150).Z)("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]])},79774:function(e,t,n){n.d(t,{Z:()=>r});/**
* @license lucide-preact v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/let r=(0,n(36150).Z)("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]])},17876:function(e,t,n){n.d(t,{Z:()=>r});/**
* @license lucide-preact v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/let r=(0,n(36150).Z)("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]])},77600:function(e,t,n){n.d(t,{Z:()=>r});/**
* @license lucide-preact v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/let r=(0,n(36150).Z)("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]])},65207:function(e,t,n){n.d(t,{Z:()=>r});/**
* @license lucide-preact v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/let r=(0,n(36150).Z)("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]])},77951:function(e,t,n){n.d(t,{Z:()=>r});/**
* @license lucide-preact v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/let r=(0,n(36150).Z)("FileVolume",[["path",{d:"M11 11a5 5 0 0 1 0 6",key:"193qb2"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M4 6.765V4a2 2 0 0 1 2-2h9l5 5v13a2 2 0 0 1-2 2H6a2 2 0 0 1-.93-.23",key:"ifyjnl"}],["path",{d:"M7 10.51a.5.5 0 0 0-.826-.38l-1.893 1.628A1 1 0 0 1 3.63 12H2.5a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h1.129a1 1 0 0 1 .652.242l1.893 1.63a.5.5 0 0 0 .826-.38z",key:"mk8rxu"}]])},95951:function(e,t,n){n.d(t,{Z:()=>r});/**
* @license lucide-preact v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/let r=(0,n(36150).Z)("Milestone",[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M12 3v3",key:"1n5kay"}],["path",{d:"M4 6a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h13a2 2 0 0 0 1.152-.365l3.424-2.317a1 1 0 0 0 0-1.635l-3.424-2.318A2 2 0 0 0 17 6z",key:"1btarq"}]])},67791:function(e,t,n){n.d(t,{Z:()=>r});/**
* @license lucide-preact v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/let r=(0,n(36150).Z)("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]])},24830:function(e,t,n){n.d(t,{Z:()=>r});/**
* @license lucide-preact v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/let r=(0,n(36150).Z)("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},59278:function(e,t,n){n.d(t,{r:()=>w});var r=n(98661),l=n(57319),a=n(28842),o=n(76396),i=n(16457),u=n(45514),c=n(16653),s=n(57820),d=n(17714),p=n(42800),h=n(4470),f=n(76576),m=n(35521),v=n(98790);let g=(0,r.createContext)(null),y=Object.assign((0,h.yV)(function(e,t){let n=(0,i.M)(),{id:l=`headlessui-label-${n}`,passive:a=!1,...o}=e,u=function e(){let t=(0,r.useContext)(g);if(null===t){let t=Error("You used a component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return t}(),s=(0,c.T)(t);(0,v.e)(()=>u.register(l),[l,u.register]);let d={ref:s,...u.props,id:l};return a&&("onClick"in d&&(delete d.htmlFor,delete d.onClick),"onClick"in o&&delete o.onClick),(0,h.sY)({ourProps:d,theirProps:o,slot:u.slot||{},defaultTag:"label",name:u.name||"Label"})}),{}),b=(0,r.createContext)(null);b.displayName="GroupContext";let k=r.Fragment,w=Object.assign((0,h.yV)(function(e,t){var n;let f=(0,i.M)(),{id:v=`headlessui-switch-${f}`,checked:g,defaultChecked:y=!1,onChange:k,disabled:w=!1,name:E,value:M,form:S,...C}=e,x=(0,r.useContext)(b),P=(0,r.useRef)(null),T=(0,c.T)(P,t,null===x?null:x.setSwitch),[R,A]=(0,l.q)(g,k,y),D=(0,o.z)(()=>null==A?void 0:A(!R)),j=(0,o.z)(e=>{if((0,d.P)(e.currentTarget))return e.preventDefault();e.preventDefault(),D()}),O=(0,o.z)(e=>{e.key===m.R.Space?(e.preventDefault(),D()):e.key===m.R.Enter&&(0,p.g)(e.currentTarget)}),Z=(0,o.z)(e=>e.preventDefault()),L=(0,r.useMemo)(()=>({checked:R}),[R]),z={id:v,ref:T,role:"switch",type:(0,u.f)(e,P),tabIndex:-1===e.tabIndex?0:null!=(n=e.tabIndex)?n:0,"aria-checked":R,"aria-labelledby":null==x?void 0:x.labelledby,"aria-describedby":null==x?void 0:x.describedby,disabled:w,onClick:j,onKeyUp:O,onKeyPress:Z},W=(0,a.G)();return(0,r.useEffect)(()=>{var e;let t=null==(e=P.current)?void 0:e.closest("form");t&&void 0!==y&&W.addEventListener(t,"reset",()=>{A(y)})},[P,A]),r.default.createElement(r.default.Fragment,null,null!=E&&R&&r.default.createElement(s._,{features:s.A.Hidden,...(0,h.oA)({as:"input",type:"checkbox",hidden:!0,readOnly:!0,disabled:w,form:S,checked:R,name:E,value:M})}),(0,h.sY)({ourProps:z,theirProps:C,slot:L,defaultTag:"button",name:"Switch"}))}),{Group:function(e){var t;let[n,l]=(0,r.useState)(null),[a,i]=function(){let[e,t]=(0,r.useState)([]);return[e.length>0?e.join(" "):void 0,(0,r.useMemo)(()=>function(e){let n=(0,o.z)(e=>(t(t=>[...t,e]),()=>t(t=>{let n=t.slice(),r=n.indexOf(e);return -1!==r&&n.splice(r,1),n}))),l=(0,r.useMemo)(()=>({register:n,slot:e.slot,name:e.name,props:e.props}),[n,e.slot,e.name,e.props]);return r.default.createElement(g.Provider,{value:l},e.children)},[t])]}(),[u,c]=(0,f.f)(),s=(0,r.useMemo)(()=>({switch:n,setSwitch:l,labelledby:a,describedby:u}),[n,l,a,u]);return r.default.createElement(c,{name:"Switch.Description"},r.default.createElement(i,{name:"Switch.Label",props:{htmlFor:null==(t=s.switch)?void 0:t.id,onClick(e){n&&("LABEL"===e.currentTarget.tagName&&e.preventDefault(),n.click(),n.focus({preventScroll:!0}))}}},r.default.createElement(b.Provider,{value:s},(0,h.sY)({ourProps:{},theirProps:e,defaultTag:k,name:"Switch.Group"}))))},Label:y,Description:f.d})},57319:function(e,t,n){n.d(t,{q:()=>a});var r=n(98661),l=n(76396);function a(e,t,n){let[a,o]=(0,r.useState)(n),i=void 0!==e,u=(0,r.useRef)(i),c=(0,r.useRef)(!1),s=(0,r.useRef)(!1);return!i||u.current||c.current?i||!u.current||s.current||(s.current=!0,u.current=i,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(c.current=!0,u.current=i,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[i?e:a,(0,l.z)(e=>(i||o(e),null==t?void 0:t(e)))]}},92002:function(e,t,n){n.d(t,{_:()=>r});function r(){return(r=Object.assign||function(e){for(var t=1;tr});function r(e){if(null==e)throw TypeError("Cannot destructure "+e);return e}},70871:function(e,t,n){n.d(t,{Ww:()=>y,uZ:()=>m});var r=n(98661),l=Object.defineProperty,a=Object.defineProperties,o=Object.getOwnPropertyDescriptors,i=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,s=(e,t,n)=>t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,d=(e,t)=>{for(var n in t||(t={}))u.call(t,n)&&s(e,n,t[n]);if(i)for(var n of i(t))c.call(t,n)&&s(e,n,t[n]);return e},p=(e,t)=>a(e,o(t)),h=(e,t)=>{var n={};for(var r in e)u.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&i)for(var r of i(e))0>t.indexOf(r)&&c.call(e,r)&&(n[r]=e[r]);return n},f=r.createContext({}),m=r.forwardRef((e,t)=>{let n;var l,a,o,i,u,{value:c,onChange:s,maxLength:m,textAlign:y="left",pattern:b,placeholder:k,inputMode:w="numeric",onComplete:E,pushPasswordManagerStrategy:M="increase-width",pasteTransformer:S,containerClassName:C,noScriptCSSFallback:x=g,render:P,children:T}=e,R=h(e,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]);let[A,D]=r.useState("string"==typeof R.defaultValue?R.defaultValue:""),j=null!=c?c:A,O=(n=r.useRef(),r.useEffect(()=>{n.current=j}),n.current),Z=r.useCallback(e=>{null==s||s(e),D(e)},[s]),L=r.useMemo(()=>b?"string"==typeof b?new RegExp(b):b:null,[b]),z=r.useRef(null),W=r.useRef(null),B=r.useRef({value:j,onChange:Z,isIOS:"undefined"!=typeof window&&(null==(a=null==(l=null==window?void 0:window.CSS)?void 0:l.supports)?void 0:a.call(l,"-webkit-touch-callout","none"))}),F=r.useRef({prev:[null==(o=z.current)?void 0:o.selectionStart,null==(i=z.current)?void 0:i.selectionEnd,null==(u=z.current)?void 0:u.selectionDirection]});r.useImperativeHandle(t,()=>z.current,[]),r.useEffect(()=>{let e=z.current,t=W.current;if(!e||!t)return;function n(){if(document.activeElement!==e){G(null),N(null);return}let t=e.selectionStart,n=e.selectionEnd,r=e.selectionDirection,l=e.maxLength,a=e.value,o=F.current.prev,i=-1,u=-1,c;if(0!==a.length&&null!==t&&null!==n){let e=t===n,r=t===a.length&&a.length1&&a.length>1){let e=0;if(null!==o[0]&&null!==o[1]){c=t{t&&t.style.setProperty("--root-height",`${e.clientHeight}px`)};r();let l=new ResizeObserver(r);return l.observe(e),()=>{document.removeEventListener("selectionchange",n,{capture:!0}),l.disconnect()}},[]);let[_,H]=r.useState(!1),[I,q]=r.useState(!1),[$,G]=r.useState(null),[V,N]=r.useState(null);r.useEffect(()=>{var e;setTimeout(e=()=>{var e,t,n,r;null==(e=z.current)||e.dispatchEvent(new Event("input"));let l=null==(t=z.current)?void 0:t.selectionStart,a=null==(n=z.current)?void 0:n.selectionEnd,o=null==(r=z.current)?void 0:r.selectionDirection;null!==l&&null!==a&&(G(l),N(a),F.current.prev=[l,a,o])},0),setTimeout(e,10),setTimeout(e,50)},[j,I]),r.useEffect(()=>{void 0!==O&&j!==O&&O.length"none"!==n&&("increase-width"===n||"experimental-no-flickering"===n)&&a&&i,[a,i,n]),p=r.useCallback(()=>{let r=e.current,l=t.current;if(!r||!l||c||"none"===n)return;let a=r.getBoundingClientRect().left+r.offsetWidth,i=r.getBoundingClientRect().top+r.offsetHeight/2;0===document.querySelectorAll('[data-lastpass-icon-root],com-1password-button,[data-dashlanecreated],[style$="2147483647 !important;"]').length&&document.elementFromPoint(a-18,i)===r||(o(!0),s(!0))},[e,t,c,n]);return r.useEffect(()=>{let t=e.current;if(!t||"none"===n)return;function r(){u(window.innerWidth-t.getBoundingClientRect().right>=40)}r();let l=setInterval(r,1e3);return()=>{clearInterval(l)}},[e,n]),r.useEffect(()=>{let e=l||document.activeElement===t.current;if("none"===n||!e)return;let r=setTimeout(p,0),a=setTimeout(p,2e3),o=setTimeout(p,5e3),i=setTimeout(()=>{s(!0)},6e3);return()=>{clearTimeout(r),clearTimeout(a),clearTimeout(o),clearTimeout(i)}},[t,l,n,p]),{hasPWMBadge:a,willPushPWMBadge:d,PWM_BADGE_SPACE_WIDTH:"40px"}}({containerRef:W,inputRef:z,pushPasswordManagerStrategy:M,isFocused:I}),U=r.useCallback(e=>{let t=e.currentTarget.value.slice(0,m);if(t.length>0&&L&&!L.test(t)){e.preventDefault();return}"string"==typeof O&&t.length{var e;if(z.current){let t=Math.min(z.current.value.length,m-1),n=z.current.value.length;null==(e=z.current)||e.setSelectionRange(t,n),G(t),N(n)}q(!0)},[m]),X=r.useCallback(e=>{var t,n;let r=z.current;if(!S&&(!B.current.isIOS||!e.clipboardData||!r))return;let l=e.clipboardData.getData("text/plain"),a=S?S(l):l;console.log({_content:l,content:a}),e.preventDefault();let o=null==(t=z.current)?void 0:t.selectionStart,i=null==(n=z.current)?void 0:n.selectionEnd,u=(o!==i?j.slice(0,o)+a+j.slice(i):j.slice(0,o)+a+j.slice(o)).slice(0,m);if(u.length>0&&L&&!L.test(u))return;r.value=u,Z(u);let c=Math.min(u.length,m-1),s=u.length;r.setSelectionRange(c,s),G(c),N(s)},[m,Z,L,j]),J=r.useMemo(()=>({position:"relative",cursor:R.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[R.disabled]),Q=r.useMemo(()=>({position:"absolute",inset:0,width:Y.willPushPWMBadge?`calc(100% + ${Y.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:Y.willPushPWMBadge?`inset(0 ${Y.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:y,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[Y.PWM_BADGE_SPACE_WIDTH,Y.willPushPWMBadge,y]),ee=r.useMemo(()=>r.createElement("input",p(d({autoComplete:R.autoComplete||"one-time-code"},R),{"data-input-otp":!0,"data-input-otp-placeholder-shown":0===j.length||void 0,"data-input-otp-mss":$,"data-input-otp-mse":V,inputMode:w,pattern:null==L?void 0:L.source,"aria-placeholder":k,style:Q,maxLength:m,value:j,ref:z,onPaste:e=>{var t;X(e),null==(t=R.onPaste)||t.call(R,e)},onChange:U,onMouseOver:e=>{var t;H(!0),null==(t=R.onMouseOver)||t.call(R,e)},onMouseLeave:e=>{var t;H(!1),null==(t=R.onMouseLeave)||t.call(R,e)},onFocus:e=>{var t;K(),null==(t=R.onFocus)||t.call(R,e)},onBlur:e=>{var t;q(!1),null==(t=R.onBlur)||t.call(R,e)}})),[U,K,X,w,Q,m,V,$,R,null==L?void 0:L.source,j]),et=r.useMemo(()=>({slots:Array.from({length:m}).map((e,t)=>{var n;let r=I&&null!==$&&null!==V&&($===V&&t===$||t>=$&&tP?P(et):r.createElement(f.Provider,{value:et},T),[T,et,P]);return r.createElement(r.Fragment,null,null!==x&&r.createElement("noscript",null,r.createElement("style",null,x)),r.createElement("div",{ref:W,"data-input-otp-container":!0,style:J,className:C},en,r.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},ee)))});function v(e,t){try{e.insertRule(t)}catch(e){console.error("input-otp could not insert CSS rule:",t)}}m.displayName="Input";var g=`
[data-input-otp] {
--nojs-bg: white !important;
--nojs-fg: black !important;
background-color: var(--nojs-bg) !important;
color: var(--nojs-fg) !important;
caret-color: var(--nojs-fg) !important;
letter-spacing: .25em !important;
text-align: center !important;
border: 1px solid var(--nojs-fg) !important;
border-radius: 4px !important;
width: 100% !important;
}
@media (prefers-color-scheme: dark) {
[data-input-otp] {
--nojs-bg: black !important;
--nojs-fg: white !important;
}
}`,y="^\\d+$"}}]);
//# sourceMappingURL=707.e9e211c8.js.map