!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 n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="4244c850-9cf6-498d-9781-cdd408da4a45",e._sentryDebugIdIdentifier="sentry-dbid-4244c850-9cf6-498d-9781-cdd408da4a45")}catch(e){}}(),(self.webpackChunksubstack=self.webpackChunksubstack||[]).push([["76053"],{32485:function(e){!/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */function(){"use strict";var n={}.hasOwnProperty;function t(){for(var e=[],r=0;r0&&i(_)?t>1?e(_,t-1,i,u,a):r(a,_):u||(a[a.length]=_)}return a}},5128:function(e,n,t){var r=t(80909),o=t(64894);e.exports=function(e,n){var t=-1,i=o(e)?Array(e.length):[];return r(e,function(e,r,o){i[++t]=n(e,r,o)}),i}},46155:function(e,n,t){var r=t(34932),o=t(47422),i=t(15389),u=t(5128),a=t(73937),c=t(27301),f=t(43714),_=t(83488),l=t(56449);e.exports=function(e,n,t){n=n.length?r(n,function(e){return l(e)?function(n){return o(n,1===e.length?e[0]:e)}:e}):[_];var s=-1;return n=r(n,c(i)),a(u(e,function(e,t,o){return{criteria:r(n,function(n){return n(e)}),index:++s,value:e}}),function(e,n){return f(e,n,t)})}},76001:function(e,n,t){var r=t(97420),o=t(80631);e.exports=function(e,n){return r(e,n,function(n,t){return o(e,t)})}},97420:function(e,n,t){var r=t(47422),o=t(73170),i=t(31769);e.exports=function(e,n,t){for(var u=-1,a=n.length,c={};++un||u&&a&&f&&!c&&!_||o&&a&&f||!t&&f||!i)return 1;if(!o&&!u&&!_&&e=c)return f;return f*("desc"==t[o]?-1:1)}}return e.index-n.index}},38816:function(e,n,t){var r=t(35970),o=t(56757),i=t(32865);e.exports=function(e){return i(o(e,void 0,r),e+"")}},45891:function(e,n,t){var r=t(51873),o=t(72428),i=t(56449),u=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(u&&e&&e[u])}},31800:function(e){var n=/\s/;e.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},44394:function(e,n,t){var r=t(72552),o=t(40346);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},10124:function(e,n,t){var r=t(9325);e.exports=function(){return r.Date.now()}},42877:function(e,n,t){var r=t(46155),o=t(56449);e.exports=function(e,n,t,i){return null==e?[]:(o(n)||(n=null==n?[]:[n]),o(t=i?void 0:t)||(t=null==t?[]:[t]),r(e,n,t))}},99374:function(e,n,t){var r=t(54128),o=t(23805),i=t(44394),u=0/0,a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,f=/^0o[0-7]+$/i,_=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return u;if(o(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=o(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var t=c.test(e);return t||f.test(e)?_(e.slice(2),t?2:8):a.test(e)?u:+e}},13222:function(e,n,t){var r=t(77556);e.exports=function(e){return null==e?"":r(e)}},86241:function(e,n,t){"use strict";t.d(n,{A:()=>r});let r=(0,t(81315).A)("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]])},14858:function(e,n,t){"use strict";t.r(n),t.d(n,{addHookName:()=>i});var r,o=t(50172);function i(e,n){return o.options.__a&&o.options.__a(n),e}null!=(r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0)&&r.__PREACT_DEVTOOLS__&&r.__PREACT_DEVTOOLS__.attachPreact("10.26.5",o.options,{Fragment:o.Fragment,Component:o.Component})},45994:function(e,n,t){"use strict";t.d(n,{Bi:()=>A,J0:()=>y,Kr:()=>x,MN:()=>C,Md:()=>T,NT:()=>O,Nf:()=>N,WO:()=>g,Yn:()=>E,hb:()=>k,li:()=>w,vJ:()=>b});var r,o,i,u,a=t(50172),c=0,f=[],_=a.options,l=_.__b,s=_.__r,d=_.diffed,p=_.__c,v=_.unmount,m=_.__;function h(e,n){_.__h&&_.__h(o,e,c||n),c=0;var t=o.__H||(o.__H={__:[],__h:[]});return e>=t.__.length&&t.__.push({}),t.__[e]}function y(e){return c=1,g(I,e)}function g(e,n,t){var i=h(r++,2);if(i.t=e,!i.__c&&(i.__=[t?t(n):I(void 0,n),function(e){var n=i.__N?i.__N[0]:i.__[0],t=i.t(n,e);n!==t&&(i.__N=[t,i.__[1]],i.__c.setState({}))}],i.__c=o,!o.__f)){var u=function(e,n,t){if(!i.__c.__H)return!0;var r=i.__c.__H.__.filter(function(e){return!!e.__c});if(r.every(function(e){return!e.__N}))return!a||a.call(this,e,n,t);var o=i.__c.props!==e;return r.forEach(function(e){if(e.__N){var n=e.__[0];e.__=e.__N,e.__N=void 0,n!==e.__[0]&&(o=!0)}}),a&&a.call(this,e,n,t)||o};o.__f=!0;var a=o.shouldComponentUpdate,c=o.componentWillUpdate;o.componentWillUpdate=function(e,n,t){if(this.__e){var r=a;a=void 0,u(e,n,t),a=r}c&&c.call(this,e,n,t)},o.shouldComponentUpdate=u}return i.__N||i.__}function b(e,n){var t=h(r++,3);!_.__s&&H(t.__H,n)&&(t.__=e,t.u=n,o.__H.__h.push(t))}function N(e,n){var t=h(r++,4);!_.__s&&H(t.__H,n)&&(t.__=e,t.u=n,o.__h.push(t))}function w(e){return c=5,x(function(){return{current:e}},[])}function E(e,n,t){c=6,N(function(){if("function"==typeof e){var t=e(n());return function(){e(null),t&&"function"==typeof t&&t()}}if(e)return e.current=n(),function(){return e.current=null}},null==t?t:t.concat(e))}function x(e,n){var t=h(r++,7);return H(t.__H,n)&&(t.__=e(),t.__H=n,t.__h=e),t.__}function k(e,n){return c=8,x(function(){return e},n)}function O(e){var n=o.context[e.__c],t=h(r++,9);return t.c=e,n?(null==t.__&&(t.__=!0,n.sub(o)),n.props.value):e.__}function C(e,n){_.useDebugValue&&_.useDebugValue(n?n(e):e)}function T(e){var n=h(r++,10),t=y();return n.__=e,o.componentDidCatch||(o.componentDidCatch=function(e,r){n.__&&n.__(e,r),t[1](e)}),[t[0],function(){t[1](void 0)}]}function A(){var e=h(r++,11);if(!e.__){for(var n=o.__v;null!==n&&!n.__m&&null!==n.__;)n=n.__;var t=n.__m||(n.__m=[0,0]);e.__="P"+t[0]+"-"+t[1]++}return e.__}function R(){for(var e;e=f.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(P),e.__H.__h.forEach(D),e.__H.__h=[]}catch(n){e.__H.__h=[],_.__e(n,e.__v)}}_.__b=function(e){o=null,l&&l(e)},_.__=function(e,n){e&&n.__k&&n.__k.__m&&(e.__m=n.__k.__m),m&&m(e,n)},_.__r=function(e){s&&s(e),r=0;var n=(o=e.__c).__H;n&&(i===o?(n.__h=[],o.__h=[],n.__.forEach(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(n.__h.forEach(P),n.__h.forEach(D),n.__h=[],r=0)),i=o},_.diffed=function(e){d&&d(e);var n=e.__c;n&&n.__H&&(n.__H.__h.length&&(1!==f.push(n)&&u===_.requestAnimationFrame||((u=_.requestAnimationFrame)||function(e){var n,t=function(){clearTimeout(r),S&&cancelAnimationFrame(n),setTimeout(e)},r=setTimeout(t,100);S&&(n=requestAnimationFrame(t))})(R)),n.__H.__.forEach(function(e){e.u&&(e.__H=e.u),e.u=void 0})),i=o=null},_.__c=function(e,n){n.some(function(e){try{e.__h.forEach(P),e.__h=e.__h.filter(function(e){return!e.__||D(e)})}catch(t){n.some(function(e){e.__h&&(e.__h=[])}),n=[],_.__e(t,e.__v)}}),p&&p(e,n)},_.unmount=function(e){v&&v(e);var n,t=e.__c;t&&t.__H&&(t.__H.__.forEach(function(e){try{P(e)}catch(e){n=e}}),t.__H=void 0,n&&_.__e(n,t.__v))};var S="function"==typeof requestAnimationFrame;function P(e){var n=o,t=e.__c;"function"==typeof t&&(e.__c=void 0,t()),o=n}function D(e){var n=o;e.__c=e.__(),o=n}function H(e,n){return!e||e.length!==n.length||n.some(function(n,t){return n!==e[t]})}function I(e,n){return"function"==typeof n?n(e):n}},87951:function(e,n,t){"use strict";t.d(n,{C1:()=>T,bL:()=>O});var r=t(17402);function o(e,n){if("function"==typeof e)return e(n);null!=e&&(e.current=n)}function i(...e){return n=>{let t=!1,r=e.map(e=>{let r=o(e,n);return t||"function"!=typeof r||(t=!0),r});if(t)return()=>{for(let n=0;n{},d=e=>{var n;let t,o,{present:i,children:a}=e,c=function(e){var n,t;let[o,i]=r.useState(),u=r.useRef(null),a=r.useRef(e),c=r.useRef("none"),[f,_]=(n=e?"mounted":"unmounted",t={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,n)=>t[e][n]??e,n));return r.useEffect(()=>{let e=p(u.current);c.current="mounted"===f?e:"none"},[f]),s(()=>{let n=u.current,t=a.current;if(t!==e){let r=c.current,o=p(n);e?_("MOUNT"):"none"===o||n?.display==="none"?_("UNMOUNT"):t&&r!==o?_("ANIMATION_OUT"):_("UNMOUNT"),a.current=e}},[e,_]),s(()=>{if(o){let e,n=o.ownerDocument.defaultView??window,t=t=>{let r=p(u.current).includes(CSS.escape(t.animationName));if(t.target===o&&r&&(_("ANIMATION_END"),!a.current)){let t=o.style.animationFillMode;o.style.animationFillMode="forwards",e=n.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=t)})}},r=e=>{e.target===o&&(c.current=p(u.current))};return o.addEventListener("animationstart",r),o.addEventListener("animationcancel",t),o.addEventListener("animationend",t),()=>{n.clearTimeout(e),o.removeEventListener("animationstart",r),o.removeEventListener("animationcancel",t),o.removeEventListener("animationend",t)}}_("ANIMATION_END")},[o,_]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:r.useCallback(e=>{u.current=e?getComputedStyle(e):null,i(e)},[])}}(i),f="function"==typeof a?a({present:c.isPresent}):r.Children.only(a),_=u(c.ref,(n=f,(o=(t=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?n.ref:(o=(t=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?n.props.ref:n.props.ref||n.ref));return"function"==typeof a||c.isPresent?r.cloneElement(f,{ref:_}):null};function p(e){return e?.animationName||"none"}d.displayName="Presence";var v=Symbol("radix.slottable");function m(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===v}var h=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,n)=>{var t,o;let u,c,f,_=(o=t=`Primitive.${n}`,(u=r.forwardRef((e,n)=>{let{children:t,...o}=e;if(r.isValidElement(t)){var u;let e,a,c=(u=t,(a=(e=Object.getOwnPropertyDescriptor(u.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?u.ref:(a=(e=Object.getOwnPropertyDescriptor(u,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?u.props.ref:u.props.ref||u.ref),f=function(e,n){let t={...n};for(let r in n){let o=e[r],i=n[r];/^on[A-Z]/.test(r)?o&&i?t[r]=(...e)=>{let n=i(...e);return o(...e),n}:o&&(t[r]=o):"style"===r?t[r]={...o,...i}:"className"===r&&(t[r]=[o,i].filter(Boolean).join(" "))}return{...e,...t}}(o,t.props);return t.type!==r.Fragment&&(f.ref=n?i(n,c):c),r.cloneElement(t,f)}return r.Children.count(t)>1?r.Children.only(null):null})).displayName=`${o}.SlotClone`,c=u,(f=r.forwardRef((e,n)=>{let{children:t,...o}=e,i=r.Children.toArray(t),u=i.find(m);if(u){let e=u.props.children,t=i.map(n=>n!==u?n:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,a.Y)(c,{...o,ref:n,children:r.isValidElement(e)?r.cloneElement(e,void 0,t):null})}return(0,a.Y)(c,{...o,ref:n,children:t})})).displayName=`${t}.Slot`,f),l=r.forwardRef((e,t)=>{let{asChild:r,...o}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.Y)(r?_:n,{...o,ref:t})});return l.displayName=`Primitive.${n}`,{...e,[n]:l}},{}),y="Checkbox",[g,b]=function(e,n=[]){let t=[],o=()=>{let n=t.map(e=>r.createContext(e));return function(t){let o=t?.[e]||n;return r.useMemo(()=>({[`__scope${e}`]:{...t,[e]:o}}),[t,o])}};return o.scopeName=e,[function(n,o){let i=r.createContext(o),u=t.length;t=[...t,o];let c=n=>{let{scope:t,children:o,...c}=n,f=t?.[e]?.[u]||i,_=r.useMemo(()=>c,Object.values(c));return(0,a.Y)(f.Provider,{value:_,children:o})};return c.displayName=n+"Provider",[c,function(t,a){let c=a?.[e]?.[u]||i,f=r.useContext(c);if(f)return f;if(void 0!==o)return o;throw Error(`\`${t}\` must be used within \`${n}\``)}]},function(...e){let n=e[0];if(1===e.length)return n;let t=()=>{let t=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=t.reduce((n,{useScope:t,scopeName:r})=>{let o=t(e)[`__scope${r}`];return{...n,...o}},{});return r.useMemo(()=>({[`__scope${n.scopeName}`]:o}),[o])}};return t.scopeName=n.scopeName,t}(o,...n)]}(y),[N,w]=g(y);function E(e){let{__scopeCheckbox:n,checked:t,children:o,defaultChecked:i,disabled:u,form:c,name:_,onCheckedChange:l,required:s,value:d="on",internal_do_not_use_render:p}=e,[v,m]=(0,f.i)({prop:t,defaultProp:i??!1,onChange:l,caller:y}),[h,g]=r.useState(null),[b,w]=r.useState(null),E=r.useRef(!1),x=!h||!!c||!!h.closest("form"),k={checked:v,disabled:u,setChecked:m,control:h,setControl:g,name:_,form:c,value:d,hasConsumerStoppedPropagationRef:E,required:s,defaultChecked:!S(i)&&i,isFormControl:x,bubbleInput:b,setBubbleInput:w};return(0,a.Y)(N,{scope:n,...k,children:"function"==typeof p?p(k):o})}var x="CheckboxTrigger",k=r.forwardRef(({__scopeCheckbox:e,onKeyDown:n,onClick:t,...o},i)=>{let{control:f,value:_,disabled:l,checked:s,required:d,setControl:p,setChecked:v,hasConsumerStoppedPropagationRef:m,isFormControl:y,bubbleInput:g}=w(x,e),b=u(i,p),N=r.useRef(s);return r.useEffect(()=>{let e=f?.form;if(e){let n=()=>v(N.current);return e.addEventListener("reset",n),()=>e.removeEventListener("reset",n)}},[f,v]),(0,a.Y)(h.button,{type:"button",role:"checkbox","aria-checked":S(s)?"mixed":s,"aria-required":d,"data-state":P(s),"data-disabled":l?"":void 0,disabled:l,value:_,...o,ref:b,onKeyDown:c(n,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:c(t,e=>{v(e=>!!S(e)||!e),g&&y&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())})})});k.displayName=x;var O=r.forwardRef((e,n)=>{let{__scopeCheckbox:t,name:r,checked:o,defaultChecked:i,required:u,disabled:c,value:f,onCheckedChange:_,form:l,...s}=e;return(0,a.Y)(E,{__scopeCheckbox:t,checked:o,defaultChecked:i,disabled:c,required:u,onCheckedChange:_,name:r,form:l,value:f,internal_do_not_use_render:({isFormControl:e})=>(0,a.FD)(a.FK,{children:[(0,a.Y)(k,{...s,ref:n,__scopeCheckbox:t}),e&&(0,a.Y)(R,{__scopeCheckbox:t})]})})});O.displayName=y;var C="CheckboxIndicator",T=r.forwardRef((e,n)=>{let{__scopeCheckbox:t,forceMount:r,...o}=e,i=w(C,t);return(0,a.Y)(d,{present:r||S(i.checked)||!0===i.checked,children:(0,a.Y)(h.span,{"data-state":P(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:n,style:{pointerEvents:"none",...e.style}})})});T.displayName=C;var A="CheckboxBubbleInput",R=r.forwardRef(({__scopeCheckbox:e,...n},t)=>{let{control:o,hasConsumerStoppedPropagationRef:i,checked:c,defaultChecked:f,required:s,disabled:d,name:p,value:v,form:m,bubbleInput:y,setBubbleInput:g}=w(A,e),b=u(t,g),N=(0,_.Z)(c),E=(0,l.X)(o);r.useEffect(()=>{if(!y)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,n=!i.current;if(N!==c&&e){let t=new Event("click",{bubbles:n});y.indeterminate=S(c),e.call(y,!S(c)&&c),y.dispatchEvent(t)}},[y,N,c,i]);let x=r.useRef(!S(c)&&c);return(0,a.Y)(h.input,{type:"checkbox","aria-hidden":!0,defaultChecked:f??x.current,required:s,disabled:d,name:p,value:v,form:m,...n,tabIndex:-1,ref:b,style:{...n.style,...E,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function S(e){return"indeterminate"===e}function P(e){return S(e)?"indeterminate":e?"checked":"unchecked"}R.displayName=A},4006:function(e,n,t){"use strict";t.d(n,{FD:()=>i,Y:()=>i,FK:()=>r.Fragment}),t(17402);var r=t(50172),o=0;function i(e,n,t,i,u,a){n||(n={});var c,f,_=n;if("ref"in _)for(f in _={},n)"ref"==f?c=n[f]:_[f]=n[f];var l={type:e,props:_,key:t,ref:c,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--o,__i:-1,__u:0,__source:u,__self:a};if("function"==typeof e&&(c=e.defaultProps))for(f in c)void 0===_[f]&&(_[f]=c[f]);return r.options.vnode&&r.options.vnode(l),l}}}]);