!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};t.SENTRY_RELEASE={id:"substack@538433c"};var e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="74aefb9d-8458-401c-8d26-6f1ef5a0a0be",t._sentryDebugIdIdentifier="sentry-dbid-74aefb9d-8458-401c-8d26-6f1ef5a0a0be")}catch(t){}}(),(self.webpackChunksubstack=self.webpackChunksubstack||[]).push([["29810"],{52482:function(t,e,s){t.exports=s(74808)},74808:function(t,e,s){"use strict";e.__esModule=!0,e.tokenize=e.test=e.scanner=e.parser=e.options=e.inherits=e.find=void 0;var i=s(9773),o=p(s(85747)),n=p(s(39741)),r=p(s(99472));function p(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e.default=t,e}Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)});var u=function(t){return r.run(n.run(t))};e.find=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=u(t),i=[],o=0;o1&&void 0!==arguments[1]?arguments[1]:null,s=u(t);return 1===s.length&&s[0].isLink&&(!e||s[0].type===e)},e.tokenize=u},31521:function(t,e,s){var i=s(77556),o=s(28754),n=s(23875),r=s(63912),p=s(13222),u=s(31800);t.exports=function(t,e,s){if((t=p(t))&&(s||void 0===e))return t.slice(0,u(t)+1);if(!t||!(e=i(e)))return t;var l=r(t),a=n(l,r(e))+1;return o(l,0,a).join("")}},16571:function(t,e,s){"use strict";s.d(e,{Ay:()=>r,Rg:()=>r});var i=s(88285);let o="textStyle",n=/^\s*([-+*])\s$/,r=i.bP.create({name:"bulletList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML:()=>[{tag:"ul"}],renderHTML({HTMLAttributes:t}){return["ul",(0,i.KV)(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleBulletList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes("listItem",this.editor.getAttributes(o)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let t=(0,i.tG)({find:n,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(t=(0,i.tG)({find:n,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(o),editor:this.editor})),[t]}})},34688:function(t,e,s){"use strict";s.d(e,{Ay:()=>r,_J:()=>r});var i=s(88285);let o="textStyle",n=/^(\d+)\.\s$/,r=i.bP.create({name:"orderedList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes:()=>({start:{default:1,parseHTML:t=>t.hasAttribute("start")?parseInt(t.getAttribute("start")||"",10):1},type:{default:null,parseHTML:t=>t.getAttribute("type")}}),parseHTML:()=>[{tag:"ol"}],renderHTML({HTMLAttributes:t}){let{start:e,...s}=t;return 1===e?["ol",(0,i.KV)(this.options.HTMLAttributes,s),0]:["ol",(0,i.KV)(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleOrderedList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes("listItem",this.editor.getAttributes(o)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let t=(0,i.tG)({find:n,type:this.type,getAttributes:t=>({start:+t[1]}),joinPredicate:(t,e)=>e.childCount+e.attrs.start===+t[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(t=(0,i.tG)({find:n,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:t=>({start:+t[1],...this.editor.getAttributes(o)}),joinPredicate:(t,e)=>e.childCount+e.attrs.start===+t[1],editor:this.editor})),[t]}})},35933:function(t,e,s){"use strict";s.d(e,{A:()=>o,E:()=>o});var i=s(88285);let o=i.CU.create({name:"subscript",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"sub"},{style:"vertical-align",getAttrs:t=>"sub"===t&&null}],renderHTML({HTMLAttributes:t}){return["sub",(0,i.KV)(this.options.HTMLAttributes,t),0]},addCommands(){return{setSubscript:()=>({commands:t})=>t.setMark(this.name),toggleSubscript:()=>({commands:t})=>t.toggleMark(this.name),unsetSubscript:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-,":()=>this.editor.commands.toggleSubscript()}}})},41002:function(t,e,s){"use strict";s.d(e,{A:()=>o,Z:()=>o});var i=s(88285);let o=i.CU.create({name:"superscript",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"sup"},{style:"vertical-align",getAttrs:t=>"super"===t&&null}],renderHTML({HTMLAttributes:t}){return["sup",(0,i.KV)(this.options.HTMLAttributes,t),0]},addCommands(){return{setSuperscript:()=>({commands:t})=>t.setMark(this.name),toggleSuperscript:()=>({commands:t})=>t.toggleMark(this.name),unsetSuperscript:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-.":()=>this.editor.commands.toggleSuperscript()}}})},80829:function(t,e,s){"use strict";s.d(e,{n:()=>i});let i=s(88285).YY.create({name:"textAlign",addOptions:()=>({types:[],alignments:["left","center","right","justify"],defaultAlignment:null}),addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:t=>{let e=t.style.textAlign;return this.options.alignments.includes(e)?e:this.options.defaultAlignment},renderHTML:t=>t.textAlign?{style:`text-align: ${t.textAlign}`}:{}}}}]},addCommands(){return{setTextAlign:t=>({commands:e})=>!!this.options.alignments.includes(t)&&this.options.types.map(s=>e.updateAttributes(s,{textAlign:t})).every(t=>t),unsetTextAlign:()=>({commands:t})=>this.options.types.map(e=>t.resetAttributes(e,"textAlign")).every(t=>t),toggleTextAlign:t=>({editor:e,commands:s})=>!!this.options.alignments.includes(t)&&(e.isActive({textAlign:t})?s.unsetTextAlign():s.setTextAlign(t))}},addKeyboardShortcuts(){return{"Mod-Shift-l":()=>this.editor.commands.setTextAlign("left"),"Mod-Shift-e":()=>this.editor.commands.setTextAlign("center"),"Mod-Shift-r":()=>this.editor.commands.setTextAlign("right"),"Mod-Shift-j":()=>this.editor.commands.setTextAlign("justify")}}})},71979:function(t,e,s){"use strict";s.d(e,{Ay:()=>o});var i=s(88285);let o=i.YY.create({name:"typography",addOptions:()=>({closeDoubleQuote:"”",closeSingleQuote:"’",copyright:"\xa9",ellipsis:"…",emDash:"—",laquo:"\xab",leftArrow:"←",multiplication:"\xd7",notEqual:"≠",oneHalf:"\xbd",oneQuarter:"\xbc",openDoubleQuote:"“",openSingleQuote:"‘",plusMinus:"\xb1",raquo:"\xbb",registeredTrademark:"\xae",rightArrow:"→",servicemark:"℠",superscriptThree:"\xb3",superscriptTwo:"\xb2",threeQuarters:"\xbe",trademark:"™"}),addInputRules(){let t,e,s,o,n,r,p,u,l,a,h,d,c,g,f,m,b,A,k,y,M,T,L=[];return!1!==this.options.emDash&&L.push((t=this.options.emDash,(0,i.Yp)({find:/--$/,replace:null!=t?t:"—"}))),!1!==this.options.ellipsis&&L.push((e=this.options.ellipsis,(0,i.Yp)({find:/\.\.\.$/,replace:null!=e?e:"…"}))),!1!==this.options.openDoubleQuote&&L.push((s=this.options.openDoubleQuote,(0,i.Yp)({find:/(?:^|[\s{[(<'"\u2018\u201C])(")$/,replace:null!=s?s:"“"}))),!1!==this.options.closeDoubleQuote&&L.push((o=this.options.closeDoubleQuote,(0,i.Yp)({find:/"$/,replace:null!=o?o:"”"}))),!1!==this.options.openSingleQuote&&L.push((n=this.options.openSingleQuote,(0,i.Yp)({find:/(?:^|[\s{[(<'"\u2018\u201C])(')$/,replace:null!=n?n:"‘"}))),!1!==this.options.closeSingleQuote&&L.push((r=this.options.closeSingleQuote,(0,i.Yp)({find:/'$/,replace:null!=r?r:"’"}))),!1!==this.options.leftArrow&&L.push((p=this.options.leftArrow,(0,i.Yp)({find:/<-$/,replace:null!=p?p:"←"}))),!1!==this.options.rightArrow&&L.push((u=this.options.rightArrow,(0,i.Yp)({find:/->$/,replace:null!=u?u:"→"}))),!1!==this.options.copyright&&L.push((l=this.options.copyright,(0,i.Yp)({find:/\(c\)$/,replace:null!=l?l:"\xa9"}))),!1!==this.options.trademark&&L.push((a=this.options.trademark,(0,i.Yp)({find:/\(tm\)$/,replace:null!=a?a:"™"}))),!1!==this.options.servicemark&&L.push((h=this.options.servicemark,(0,i.Yp)({find:/\(sm\)$/,replace:null!=h?h:"℠"}))),!1!==this.options.registeredTrademark&&L.push((d=this.options.registeredTrademark,(0,i.Yp)({find:/\(r\)$/,replace:null!=d?d:"\xae"}))),!1!==this.options.oneHalf&&L.push((c=this.options.oneHalf,(0,i.Yp)({find:/(?:^|\s)(1\/2)\s$/,replace:null!=c?c:"\xbd"}))),!1!==this.options.plusMinus&&L.push((g=this.options.plusMinus,(0,i.Yp)({find:/\+\/-$/,replace:null!=g?g:"\xb1"}))),!1!==this.options.notEqual&&L.push((f=this.options.notEqual,(0,i.Yp)({find:/!=$/,replace:null!=f?f:"≠"}))),!1!==this.options.laquo&&L.push((m=this.options.laquo,(0,i.Yp)({find:/<<$/,replace:null!=m?m:"\xab"}))),!1!==this.options.raquo&&L.push((b=this.options.raquo,(0,i.Yp)({find:/>>$/,replace:null!=b?b:"\xbb"}))),!1!==this.options.multiplication&&L.push((A=this.options.multiplication,(0,i.Yp)({find:/\d+\s?([*x])\s?\d+$/,replace:null!=A?A:"\xd7"}))),!1!==this.options.superscriptTwo&&L.push((k=this.options.superscriptTwo,(0,i.Yp)({find:/\^2$/,replace:null!=k?k:"\xb2"}))),!1!==this.options.superscriptThree&&L.push((y=this.options.superscriptThree,(0,i.Yp)({find:/\^3$/,replace:null!=y?y:"\xb3"}))),!1!==this.options.oneQuarter&&L.push((M=this.options.oneQuarter,(0,i.Yp)({find:/(?:^|\s)(1\/4)\s$/,replace:null!=M?M:"\xbc"}))),!1!==this.options.threeQuarters&&L.push((T=this.options.threeQuarters,(0,i.Yp)({find:/(?:^|\s)(3\/4)\s$/,replace:null!=T?T:"\xbe"}))),L}})},75820:function(t,e,s){"use strict";s.d(e,{A:()=>T});var i=s(88285),o=s(76229),n=s(93993),r=s(16571),p=s(55895),u=s(55679),l=s(31707),a=s(23317),h=s(74011),d=s(16233),c=s(96436),g=s(96282),f=s(58521),m=s(18708),b=s(60526),A=s(34688),k=s(61292),y=s(6142),M=s(39001);let T=i.YY.create({name:"starterKit",addExtensions(){let t=[];return!1!==this.options.bold&&t.push(n.yN.configure(this.options.bold)),!1!==this.options.blockquote&&t.push(o.Cv.configure(this.options.blockquote)),!1!==this.options.bulletList&&t.push(r.Rg.configure(this.options.bulletList)),!1!==this.options.code&&t.push(p.Cy.configure(this.options.code)),!1!==this.options.codeBlock&&t.push(u.NG.configure(this.options.codeBlock)),!1!==this.options.document&&t.push(l.y.configure(this.options.document)),!1!==this.options.dropcursor&&t.push(a.Q.configure(this.options.dropcursor)),!1!==this.options.gapcursor&&t.push(h.v.configure(this.options.gapcursor)),!1!==this.options.hardBreak&&t.push(d.B.configure(this.options.hardBreak)),!1!==this.options.heading&&t.push(c.D.configure(this.options.heading)),!1!==this.options.history&&t.push(g.B.configure(this.options.history)),!1!==this.options.horizontalRule&&t.push(f.d.configure(this.options.horizontalRule)),!1!==this.options.italic&&t.push(m.J2.configure(this.options.italic)),!1!==this.options.listItem&&t.push(b.c.configure(this.options.listItem)),!1!==this.options.orderedList&&t.push(A._J.configure(this.options.orderedList)),!1!==this.options.paragraph&&t.push(k.f.configure(this.options.paragraph)),!1!==this.options.strike&&t.push(y.n.configure(this.options.strike)),!1!==this.options.text&&t.push(M.E.configure(this.options.text)),t}})}}]);