(self.webpackChunksubstack=self.webpackChunksubstack||[]).push([["7233"],{42441:function(t){!function(e,i,s){if(e){for(var o,n={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},r={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},a={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},p={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},u=1;u<20;++u)n[111+u]="f"+u;for(u=0;u<=9;++u)n[u+96]=u.toString();f.prototype.bind=function(t,e,i){return t=t instanceof Array?t:[t],this._bindMultiple.call(this,t,e,i),this},f.prototype.unbind=function(t,e){return this.bind.call(this,t,function(){},e)},f.prototype.trigger=function(t,e){return this._directMap[t+":"+e]&&this._directMap[t+":"+e]({},t),this},f.prototype.reset=function(){return this._callbacks={},this._directMap={},this},f.prototype.stopCallback=function(t,e){return!((" "+e.className+" ").indexOf(" mousetrap ")>-1||function t(e,s){return null!==e&&e!==i&&(e===s||t(e.parentNode,s))}(e,this.target))&&("INPUT"==e.tagName||"SELECT"==e.tagName||"TEXTAREA"==e.tagName||e.isContentEditable)},f.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)},f.addKeycodes=function(t){for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);o=null},f.init=function(){var t=f(i);for(var e in t)"_"!==e.charAt(0)&&(f[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e))},f.init(),e.Mousetrap=f,t.exports&&(t.exports=f),"function"==typeof define&&define.amd&&define(function(){return f})}function l(t,e,i){if(t.addEventListener){t.addEventListener(e,i,!1);return}t.attachEvent("on"+e,i)}function h(t){if("keypress"==t.type){var e=String.fromCharCode(t.which);return t.shiftKey||(e=e.toLowerCase()),e}return n[t.which]?n[t.which]:r[t.which]?r[t.which]:String.fromCharCode(t.which).toLowerCase()}function d(t){return"shift"==t||"ctrl"==t||"alt"==t||"meta"==t}function c(t,e){var i,s,r,u,l,h,c=[];for(h=0,u="+"===(i=t)?["+"]:(i=i.replace(/\+{2}/g,"+plus")).split("+");h95)||!(t<112))&&n.hasOwnProperty(t)&&(o[n[t]]=t);return o}()[s]?"keydown":"keypress"),"keypress"==r&&c.length&&(r="keydown"),{key:l,modifiers:c,action:e=r}}function f(t){var e,s=this;if(t=t||i,!(s instanceof f))return new f(t);s.target=t,s._callbacks={},s._directMap={};var o={},n=!1,r=!1,a=!1;function p(t){t=t||{};var e,i=!1;for(e in o){if(t[e]){i=!0;continue}o[e]=0}i||(a=!1)}function u(t,e,i,n,r,a){var p,u,l=[],h=i.type;if(!s._callbacks[t])return[];for("keyup"==h&&d(t)&&(e=[t]),p=0;p1){!function(i,s,r,u){function l(t){m(r,t,i),"keyup"!==u&&(n=h(t)),setTimeout(p,10)}o[i]=0;for(var d=0;da,ZP:()=>a});var s=i(88897);let o=s.NB.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:t}){return["li",(0,s.P1)(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),n=s.vc.create({name:"textStyle",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"span",getAttrs:t=>!!t.hasAttribute("style")&&{}}],renderHTML({HTMLAttributes:t}){return["span",(0,s.P1)(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:e})=>!!Object.entries((0,s.Jo)(t,this.type)).some(([,t])=>!!t)||e.unsetMark(this.name)}}}),r=/^\s*([-+*])\s$/,a=s.NB.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,s.P1)(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(o.name,this.editor.getAttributes(n.name)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let t=(0,s.S0)({find:r,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(t=(0,s.S0)({find:r,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(n.name),editor:this.editor})),[t]}})},32018:function(t,e,i){"use strict";i.d(e,{GS:()=>a,ZP:()=>a});var s=i(88897);let o=s.NB.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:t}){return["li",(0,s.P1)(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),n=s.vc.create({name:"textStyle",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"span",getAttrs:t=>!!t.hasAttribute("style")&&{}}],renderHTML({HTMLAttributes:t}){return["span",(0,s.P1)(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:e})=>!!Object.entries((0,s.Jo)(t,this.type)).some(([,t])=>!!t)||e.unsetMark(this.name)}}}),r=/^(\d+)\.\s$/,a=s.NB.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}}),parseHTML:()=>[{tag:"ol"}],renderHTML({HTMLAttributes:t}){let{start:e,...i}=t;return 1===e?["ol",(0,s.P1)(this.options.HTMLAttributes,i),0]:["ol",(0,s.P1)(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(o.name,this.editor.getAttributes(n.name)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let t=(0,s.S0)({find:r,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,s.S0)({find:r,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:t=>({start:+t[1],...this.editor.getAttributes(n.name)}),joinPredicate:(t,e)=>e.childCount+e.attrs.start===+t[1],editor:this.editor})),[t]}})},94886:function(t,e,i){"use strict";i.d(e,{Z:()=>o,a:()=>o});var s=i(88897);let o=s.vc.create({name:"subscript",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"sub"},{style:"vertical-align",getAttrs:t=>"sub"===t&&null}],renderHTML({HTMLAttributes:t}){return["sub",(0,s.P1)(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()}}})},99218:function(t,e,i){"use strict";i.d(e,{$:()=>o,Z:()=>o});var s=i(88897);let o=s.vc.create({name:"superscript",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"sup"},{style:"vertical-align",getAttrs:t=>"super"===t&&null}],renderHTML({HTMLAttributes:t}){return["sup",(0,s.P1)(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()}}})},89290:function(t,e,i){"use strict";i.d(e,{ZP:()=>H});var s=i(88897);let o=t=>(0,s.DS)({find:/--$/,replace:null!=t?t:"—"}),n=t=>(0,s.DS)({find:/\.\.\.$/,replace:null!=t?t:"…"}),r=t=>(0,s.DS)({find:/(?:^|[\s{[(<'"\u2018\u201C])(")$/,replace:null!=t?t:"“"}),a=t=>(0,s.DS)({find:/"$/,replace:null!=t?t:"”"}),p=t=>(0,s.DS)({find:/(?:^|[\s{[(<'"\u2018\u201C])(')$/,replace:null!=t?t:"‘"}),u=t=>(0,s.DS)({find:/'$/,replace:null!=t?t:"’"}),l=t=>(0,s.DS)({find:/<-$/,replace:null!=t?t:"←"}),h=t=>(0,s.DS)({find:/->$/,replace:null!=t?t:"→"}),d=t=>(0,s.DS)({find:/\(c\)$/,replace:null!=t?t:"\xa9"}),c=t=>(0,s.DS)({find:/\(tm\)$/,replace:null!=t?t:"™"}),f=t=>(0,s.DS)({find:/\(sm\)$/,replace:null!=t?t:"℠"}),m=t=>(0,s.DS)({find:/\(r\)$/,replace:null!=t?t:"\xae"}),g=t=>(0,s.DS)({find:/(?:^|\s)(1\/2)$/,replace:null!=t?t:"\xbd"}),b=t=>(0,s.DS)({find:/\+\/-$/,replace:null!=t?t:"\xb1"}),k=t=>(0,s.DS)({find:/!=$/,replace:null!=t?t:"≠"}),y=t=>(0,s.DS)({find:/<<$/,replace:null!=t?t:"\xab"}),v=t=>(0,s.DS)({find:/>>$/,replace:null!=t?t:"\xbb"}),M=t=>(0,s.DS)({find:/\d+\s?([*x])\s?\d+$/,replace:null!=t?t:"\xd7"}),L=t=>(0,s.DS)({find:/\^2$/,replace:null!=t?t:"\xb2"}),T=t=>(0,s.DS)({find:/\^3$/,replace:null!=t?t:"\xb3"}),S=t=>(0,s.DS)({find:/(?:^|\s)(1\/4)$/,replace:null!=t?t:"\xbc"}),A=t=>(0,s.DS)({find:/(?:^|\s)(3\/4)$/,replace:null!=t?t:"\xbe"}),H=s.hj.create({name:"typography",addInputRules(){let t=[];return!1!==this.options.emDash&&t.push(o(this.options.emDash)),!1!==this.options.ellipsis&&t.push(n(this.options.ellipsis)),!1!==this.options.openDoubleQuote&&t.push(r(this.options.openDoubleQuote)),!1!==this.options.closeDoubleQuote&&t.push(a(this.options.closeDoubleQuote)),!1!==this.options.openSingleQuote&&t.push(p(this.options.openSingleQuote)),!1!==this.options.closeSingleQuote&&t.push(u(this.options.closeSingleQuote)),!1!==this.options.leftArrow&&t.push(l(this.options.leftArrow)),!1!==this.options.rightArrow&&t.push(h(this.options.rightArrow)),!1!==this.options.copyright&&t.push(d(this.options.copyright)),!1!==this.options.trademark&&t.push(c(this.options.trademark)),!1!==this.options.servicemark&&t.push(f(this.options.servicemark)),!1!==this.options.registeredTrademark&&t.push(m(this.options.registeredTrademark)),!1!==this.options.oneHalf&&t.push(g(this.options.oneHalf)),!1!==this.options.plusMinus&&t.push(b(this.options.plusMinus)),!1!==this.options.notEqual&&t.push(k(this.options.notEqual)),!1!==this.options.laquo&&t.push(y(this.options.laquo)),!1!==this.options.raquo&&t.push(v(this.options.raquo)),!1!==this.options.multiplication&&t.push(M(this.options.multiplication)),!1!==this.options.superscriptTwo&&t.push(L(this.options.superscriptTwo)),!1!==this.options.superscriptThree&&t.push(T(this.options.superscriptThree)),!1!==this.options.oneQuarter&&t.push(S(this.options.oneQuarter)),!1!==this.options.threeQuarters&&t.push(A(this.options.threeQuarters)),t}})},2799:function(t,e,i){"use strict";i.d(e,{Z:()=>L});var s=i(88897),o=i(19512),n=i(56070),r=i(18490),a=i(24717),p=i(56782),u=i(43557),l=i(59687),h=i(85856),d=i(99961),c=i(18e3),f=i(51127),m=i(67338),g=i(75481),b=i(55786),k=i(32018),y=i(91077),v=i(87597),M=i(55963);let L=s.hj.create({name:"starterKit",addExtensions(){var t,e,i,s,L,T,S,A,H,w,D,$,C,N,P,K,_,E;let I=[];return!1!==this.options.blockquote&&I.push(o.V6.configure(null===(t=this.options)||void 0===t?void 0:t.blockquote)),!1!==this.options.bold&&I.push(n.d8.configure(null===(e=this.options)||void 0===e?void 0:e.bold)),!1!==this.options.bulletList&&I.push(r.DY.configure(null===(i=this.options)||void 0===i?void 0:i.bulletList)),!1!==this.options.code&&I.push(a.EK.configure(null===(s=this.options)||void 0===s?void 0:s.code)),!1!==this.options.codeBlock&&I.push(p.dn.configure(null===(L=this.options)||void 0===L?void 0:L.codeBlock)),!1!==this.options.document&&I.push(u.B.configure(null===(T=this.options)||void 0===T?void 0:T.document)),!1!==this.options.dropcursor&&I.push(l.m.configure(null===(S=this.options)||void 0===S?void 0:S.dropcursor)),!1!==this.options.gapcursor&&I.push(h.f.configure(null===(A=this.options)||void 0===A?void 0:A.gapcursor)),!1!==this.options.hardBreak&&I.push(d.U.configure(null===(H=this.options)||void 0===H?void 0:H.hardBreak)),!1!==this.options.heading&&I.push(c.X.configure(null===(w=this.options)||void 0===w?void 0:w.heading)),!1!==this.options.history&&I.push(f.A.configure(null===(D=this.options)||void 0===D?void 0:D.history)),!1!==this.options.horizontalRule&&I.push(m.b.configure(null===($=this.options)||void 0===$?void 0:$.horizontalRule)),!1!==this.options.italic&&I.push(g.Tx.configure(null===(C=this.options)||void 0===C?void 0:C.italic)),!1!==this.options.listItem&&I.push(b.H.configure(null===(N=this.options)||void 0===N?void 0:N.listItem)),!1!==this.options.orderedList&&I.push(k.GS.configure(null===(P=this.options)||void 0===P?void 0:P.orderedList)),!1!==this.options.paragraph&&I.push(y.n.configure(null===(K=this.options)||void 0===K?void 0:K.paragraph)),!1!==this.options.strike&&I.push(v.Re.configure(null===(_=this.options)||void 0===_?void 0:_.strike)),!1!==this.options.text&&I.push(M.x.configure(null===(E=this.options)||void 0===E?void 0:E.text)),I}})}}]);