!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"substack@538433c"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="2caa46b7-d151-4e09-acfa-cfebb9504a24",e._sentryDebugIdIdentifier="sentry-dbid-2caa46b7-d151-4e09-acfa-cfebb9504a24")}catch(e){}}();"use strict";(self.webpackChunksubstack=self.webpackChunksubstack||[]).push([["74390"],{44080:function(e,t,n){n.d(t,{A:()=>l});let l=(0,n(81315).A)("chart-line",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]])},28541:function(e,t,n){n.d(t,{A:()=>l});let l=(0,n(81315).A)("cross",[["path",{d:"M4 9a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2h4a1 1 0 0 1 1 1v4a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2v-4a1 1 0 0 1 1-1h4a2 2 0 0 0 2-2v-2a2 2 0 0 0-2-2h-4a1 1 0 0 1-1-1V4a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2v4a1 1 0 0 1-1 1z",key:"1xbrqy"}]])},94796:function(e,t,n){n.d(t,{A:()=>l});let l=(0,n(81315).A)("upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]])},42216:function(e,t,n){n.d(t,{UO:()=>v,wE:()=>p});var l=n(17402),r=Object.defineProperty,a=Object.defineProperties,o=Object.getOwnPropertyDescriptors,i=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,c=(e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,d=l.createContext({}),p=l.forwardRef((e,t)=>{let n;var r,p,v,g,m,{value:b,onChange:w,maxLength:y,textAlign:S="left",pattern:E,placeholder:k,inputMode:M="numeric",onComplete:C,pushPasswordManagerStrategy:P="increase-width",pasteTransformer:x,containerClassName:A,noScriptCSSFallback:W=h,render:D,children:R}=e,T=((e,t)=>{var n={};for(var l in e)u.call(e,l)&&0>t.indexOf(l)&&(n[l]=e[l]);if(null!=e&&i)for(var l of i(e))0>t.indexOf(l)&&s.call(e,l)&&(n[l]=e[l]);return n})(e,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]);let[O,_]=l.useState("string"==typeof T.defaultValue?T.defaultValue:""),I=null!=b?b:O,j=(n=l.useRef(),l.useEffect(()=>{n.current=I}),n.current),B=l.useCallback(e=>{null==w||w(e),_(e)},[w]),F=l.useMemo(()=>E?"string"==typeof E?new RegExp(E):E:null,[E]),z=l.useRef(null),H=l.useRef(null),L=l.useRef({value:I,onChange:B,isIOS:"undefined"!=typeof window&&(null==(p=null==(r=null==window?void 0:window.CSS)?void 0:r.supports)?void 0:p.call(r,"-webkit-touch-callout","none"))}),$=l.useRef({prev:[null==(v=z.current)?void 0:v.selectionStart,null==(g=z.current)?void 0:g.selectionEnd,null==(m=z.current)?void 0:m.selectionDirection]});l.useImperativeHandle(t,()=>z.current,[]),l.useEffect(()=>{let e=z.current,t=H.current;if(!e||!t)return;function n(){if(document.activeElement!==e){Y(null),K(null);return}let t=e.selectionStart,n=e.selectionEnd,l=e.selectionDirection,r=e.maxLength,a=e.value,o=$.current.prev,i=-1,u=-1,s;if(0!==a.length&&null!==t&&null!==n){let e=t===n,l=t===a.length&&a.length1&&a.length>1){let e=0;if(null!==o[0]&&null!==o[1]){s=t{t&&t.style.setProperty("--root-height",`${e.clientHeight}px`)};l();let r=new ResizeObserver(l);return r.observe(e),()=>{document.removeEventListener("selectionchange",n,{capture:!0}),r.disconnect()}},[]);let[N,G]=l.useState(!1),[V,q]=l.useState(!1),[U,Y]=l.useState(null),[J,K]=l.useState(null);l.useEffect(()=>{var e;setTimeout(e=()=>{var e,t,n,l;null==(e=z.current)||e.dispatchEvent(new Event("input"));let r=null==(t=z.current)?void 0:t.selectionStart,a=null==(n=z.current)?void 0:n.selectionEnd,o=null==(l=z.current)?void 0:l.selectionDirection;null!==r&&null!==a&&(Y(r),K(a),$.current.prev=[r,a,o])},0),setTimeout(e,10),setTimeout(e,50)},[I,V]),l.useEffect(()=>{void 0!==j&&I!==j&&j.length"none"!==n&&("increase-width"===n||"experimental-no-flickering"===n)&&a&&i,[a,i,n]),p=l.useCallback(()=>{let l=e.current,r=t.current;if(!l||!r||s||"none"===n)return;let a=l.getBoundingClientRect().left+l.offsetWidth,i=l.getBoundingClientRect().top+l.offsetHeight/2;0===document.querySelectorAll('[data-lastpass-icon-root],com-1password-button,[data-dashlanecreated],[style$="2147483647 !important;"]').length&&document.elementFromPoint(a-18,i)===l||(o(!0),c(!0))},[e,t,s,n]);return l.useEffect(()=>{let t=e.current;if(!t||"none"===n)return;function l(){u(window.innerWidth-t.getBoundingClientRect().right>=40)}l();let r=setInterval(l,1e3);return()=>{clearInterval(r)}},[e,n]),l.useEffect(()=>{let e=r||document.activeElement===t.current;if("none"===n||!e)return;let l=setTimeout(p,0),a=setTimeout(p,2e3),o=setTimeout(p,5e3),i=setTimeout(()=>{c(!0)},6e3);return()=>{clearTimeout(l),clearTimeout(a),clearTimeout(o),clearTimeout(i)}},[t,r,n,p]),{hasPWMBadge:a,willPushPWMBadge:d,PWM_BADGE_SPACE_WIDTH:"40px"}}({containerRef:H,inputRef:z,pushPasswordManagerStrategy:P,isFocused:V}),X=l.useCallback(e=>{let t=e.currentTarget.value.slice(0,y);t.length>0&&F&&!F.test(t)?e.preventDefault():("string"==typeof j&&t.length{var e;if(z.current){let t=Math.min(z.current.value.length,y-1),n=z.current.value.length;null==(e=z.current)||e.setSelectionRange(t,n),Y(t),K(n)}q(!0)},[y]),ee=l.useCallback(e=>{var t,n;let l=z.current;if(!x&&(!L.current.isIOS||!e.clipboardData||!l))return;let r=e.clipboardData.getData("text/plain"),a=x?x(r):r;console.log({_content:r,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?I.slice(0,o)+a+I.slice(i):I.slice(0,o)+a+I.slice(o)).slice(0,y);if(u.length>0&&F&&!F.test(u))return;l.value=u,B(u);let s=Math.min(u.length,y-1),c=u.length;l.setSelectionRange(s,c),Y(s),K(c)},[y,B,F,I]),et=l.useMemo(()=>({position:"relative",cursor:T.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[T.disabled]),en=l.useMemo(()=>({position:"absolute",inset:0,width:Q.willPushPWMBadge?`calc(100% + ${Q.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:Q.willPushPWMBadge?`inset(0 ${Q.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:S,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"}),[Q.PWM_BADGE_SPACE_WIDTH,Q.willPushPWMBadge,S]),el=l.useMemo(()=>l.createElement("input",a(((e,t)=>{for(var n in t||(t={}))u.call(t,n)&&c(e,n,t[n]);if(i)for(var n of i(t))s.call(t,n)&&c(e,n,t[n]);return e})({autoComplete:T.autoComplete||"one-time-code"},T),o({"data-input-otp":!0,"data-input-otp-placeholder-shown":0===I.length||void 0,"data-input-otp-mss":U,"data-input-otp-mse":J,inputMode:M,pattern:null==F?void 0:F.source,"aria-placeholder":k,style:en,maxLength:y,value:I,ref:z,onPaste:e=>{var t;ee(e),null==(t=T.onPaste)||t.call(T,e)},onChange:X,onMouseOver:e=>{var t;G(!0),null==(t=T.onMouseOver)||t.call(T,e)},onMouseLeave:e=>{var t;G(!1),null==(t=T.onMouseLeave)||t.call(T,e)},onFocus:e=>{var t;Z(),null==(t=T.onFocus)||t.call(T,e)},onBlur:e=>{var t;q(!1),null==(t=T.onBlur)||t.call(T,e)}}))),[X,Z,ee,M,en,y,J,U,T,null==F?void 0:F.source,I]),er=l.useMemo(()=>({slots:Array.from({length:y}).map((e,t)=>{var n;let l=V&&null!==U&&null!==J&&(U===J&&t===U||t>=U&&tD?D(er):l.createElement(d.Provider,{value:er},R),[R,er,D]);return l.createElement(l.Fragment,null,null!==W&&l.createElement("noscript",null,l.createElement("style",null,W)),l.createElement("div",{ref:H,"data-input-otp-container":!0,style:et,className:A},ea,l.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},el)))});function f(e,t){try{e.insertRule(t)}catch(e){console.error("input-otp could not insert CSS rule:",t)}}p.displayName="Input";var h=` [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; } }`,v="^\\d+$"},82764:function(e,t,n){function l(e){return"v"in e||"e"in e}function r(e){if("e"in e)throw e.e;return e.v}n.d(t,{MO:()=>i,ff:()=>D});let a=new WeakMap;function o(e){var t;return u(e)&&!!(null==(t=a.get(e))?void 0:t[0])}function i(e,t){let n=a.get(e);if(!n){n=[!0,new Set],a.set(e,n);let t=()=>{n[0]=!1};e.then(t,t)}n[1].add(t)}function u(e){return"function"==typeof(null==e?void 0:e.then)}function s(e,t,n){if(!n.p.has(e)){n.p.add(e);let l=()=>n.p.delete(e);t.then(l,l)}}function c(e,t,n){var l;let r=new Set;for(let t of(null==(l=n.get(e))?void 0:l.t)||[])n.has(t)&&r.add(t);for(let e of t.p)r.add(e);return r}let d=(e,t,...n)=>t.read(...n),p=(e,t,...n)=>t.write(...n),f=(e,t)=>{var n;return null==(n=t.unstable_onInit)?void 0:n.call(t,e)},h=(e,t,n)=>{var l;return null==(l=t.onMount)?void 0:l.call(t,n)},v=(e,t)=>{let n=W(e),l=n[0],r=n[9],a=l.get(t);return a||(a={d:new Map,p:new Set,n:0},l.set(t,a),null==r||r(e,t)),a},g=e=>{let t=W(e),n=t[1],l=t[3],r=t[4],a=t[5],o=t[6],i=t[13],u=[],s=e=>{try{e()}catch(e){u.push(e)}};do{o.f&&s(o.f);let t=new Set,u=t.add.bind(t);l.forEach(e=>{var t;return null==(t=n.get(e))?void 0:t.l.forEach(u)}),l.clear(),a.forEach(u),a.clear(),r.forEach(u),r.clear(),t.forEach(s),l.size&&i(e)}while(l.size||a.size||r.size);if(u.length)throw AggregateError(u)},m=e=>{let t=W(e),n=t[1],l=t[2],r=t[3],a=t[11],o=t[14],i=t[17],u=[],s=new WeakSet,d=new WeakSet,p=Array.from(r);for(;p.length;){let t=p[p.length-1],r=a(e,t);if(d.has(t)){p.pop();continue}if(s.has(t)){l.get(t)===r.n&&u.push([t,r]),d.add(t),p.pop();continue}for(let e of(s.add(t),c(t,r,n)))s.has(e)||p.push(e)}for(let t=u.length-1;t>=0;--t){let[n,a]=u[t],s=!1;for(let e of a.d.keys())if(e!==n&&r.has(e)){s=!0;break}s&&(o(e,n),i(e,n)),l.delete(n)}},b=(e,t)=>{var n,a;let c,d,p=W(e),f=p[1],h=p[2],v=p[3],g=p[6],m=p[7],b=p[11],w=p[12],y=p[13],S=p[14],E=p[16],k=p[17],C=b(e,t);if(l(C)&&(f.has(t)&&h.get(t)!==C.n||Array.from(C.d).every(([t,n])=>S(e,t).n===n)))return C;C.d.clear();let P=!0;function x(){f.has(t)&&(k(e,t),y(e),w(e))}let A=C.n;try{let a=m(e,t,function(n){var a;if(n===t){let t=b(e,n);if(!l(t))if("init"in n)M(e,n,n.init);else throw Error("no atom init");return r(t)}let i=S(e,n);try{return r(i)}finally{C.d.set(n,i.n),o(C.v)&&s(t,C.v,i),null==(a=f.get(n))||a.t.add(t),P||x()}},{get signal(){return c||(c=new AbortController),c.signal},get setSelf(){return!d&&t.write&&(d=(...n)=>{if(!P)try{return E(e,t,...n)}finally{y(e),w(e)}}),d}});return M(e,t,a),u(a)&&(i(a,()=>null==c?void 0:c.abort()),a.then(x,x)),null==(n=g.r)||n.call(g,t),C}catch(e){return delete C.v,C.e=e,++C.n,C}finally{P=!1,A!==C.n&&h.get(t)===A&&(h.set(t,C.n),v.add(t),null==(a=g.c)||a.call(g,t))}},w=(e,t)=>{let n=W(e),l=n[1],r=n[2],a=n[11],o=[t];for(;o.length;){let t=o.pop(),n=a(e,t);for(let i of c(t,n,l)){let t=a(e,i);r.set(i,t.n),o.push(i)}}},y=(e,t,...n)=>{let l=W(e),a=l[3],o=l[6],i=l[8],u=l[11],s=l[12],c=l[13],d=l[14],p=l[15],f=l[17],h=!0;try{return i(e,t,t=>r(d(e,t)),(n,...l)=>{var r;let i=u(e,n);try{if(n!==t)return y(e,n,...l);{if(!("init"in n))throw Error("atom not writable");let t=i.n,u=l[0];M(e,n,u),f(e,n),t!==i.n&&(a.add(n),null==(r=o.c)||r.call(o,n),p(e,n));return}}finally{h||(c(e),s(e))}},...n)}finally{h=!1}},S=(e,t)=>{var n;let l=W(e),r=l[1],a=l[3],i=l[6],u=l[11],s=l[15],c=l[18],d=l[19],p=u(e,t),f=r.get(t);if(f&&!o(p.v)){for(let[l,r]of p.d)if(!f.d.has(l)){let o=u(e,l);c(e,l).t.add(t),f.d.add(l),r!==o.n&&(a.add(l),null==(n=i.c)||n.call(i,l),s(e,l))}for(let n of f.d||[])if(!p.d.has(n)){f.d.delete(n);let l=d(e,n);null==l||l.t.delete(t)}}},E=(e,t)=>{var n;let l=W(e),r=l[1],a=l[4],o=l[6],i=l[10],u=l[11],s=l[12],c=l[13],d=l[14],p=l[16],f=u(e,t),h=r.get(t);if(!h){for(let n of(d(e,t),f.d.keys()))E(e,n).t.add(t);h={l:new Set,d:new Set(f.d.keys()),t:new Set},r.set(t,h),null==(n=o.m)||n.call(o,t),t.write&&a.add(()=>{let n=!0;try{let l=i(e,t,(...l)=>{try{return p(e,t,...l)}finally{n||(c(e),s(e))}});l&&(h.u=()=>{n=!0;try{l()}finally{n=!1}})}finally{n=!1}})}return h},k=(e,t)=>{var n;let l=W(e),r=l[1],a=l[5],o=l[6],i=l[11],u=l[19],s=i(e,t),c=r.get(t);if(c&&!c.l.size&&!Array.from(c.t).some(e=>{var n;return null==(n=r.get(e))?void 0:n.d.has(t)})){for(let l of(c.u&&a.add(c.u),c=void 0,r.delete(t),null==(n=o.u)||n.call(o,t),s.d.keys())){let n=u(e,l);null==n||n.t.delete(t)}return}return c},M=(e,t,n)=>{let l=W(e)[11],r=l(e,t),o="v"in r,i=r.v;if(u(n))for(let a of r.d.keys())s(t,n,l(e,a));if(r.v=n,delete r.e,!o||!Object.is(i,r.v)){let e;++r.n,u(i)&&(null==(e=a.get(i))?void 0:e[0])&&(e[0]=!1,e[1].forEach(e=>e()))}},C=(e,t)=>r((0,W(e)[14])(e,t)),P=(e,t,...n)=>{let l=W(e),r=l[12],a=l[13],o=l[16];try{return o(e,t,...n)}finally{a(e),r(e)}},x=(e,t,n)=>{let l=W(e),r=l[12],a=l[18],o=l[19],i=a(e,t).l;return i.add(n),r(e),()=>{i.delete(n),o(e,t),r(e)}},A=new WeakMap,W=e=>A.get(e);function D(...e){let t={get:e=>(0,W(t)[21])(t,e),set:(e,...n)=>(0,W(t)[22])(t,e,...n),sub:(e,n)=>(0,W(t)[23])(t,e,n)},n=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},d,p,f,h,v,g,m,b,w,y,S,E,k,M,C,P,x,void 0].map((t,n)=>e[n]||t);return A.set(t,Object.freeze(n)),t}}}]);