/*! For license information please see 9931.eb824b53.js.LICENSE.txt */ (self.webpackChunksubstack=self.webpackChunksubstack||[]).push([["9931"],{56743:function(t,e,i){"use strict";i.d(e,{Z:()=>s});let s=(0,i(36150).Z)("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},887:function(t,e,i){"use strict";i.d(e,{Z:()=>s});let s=(0,i(36150).Z)("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]])},47976:function(t,e,i){"use strict";i.d(e,{Z:()=>s});let s=(0,i(36150).Z)("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]])},27194:function(t,e,i){"use strict";i.d(e,{Z:()=>s});let s=(0,i(36150).Z)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},57560:function(t,e,i){"use strict";i.d(e,{Z:()=>s});let s=(0,i(36150).Z)("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"}]])},42441:function(t){!function(e,i,s){if(e){for(var n,r={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"},o={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)r[111+u]="f"+u;for(u=0;u<=9;++u)r[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)&&(r[e]=t[e]);n=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 r[t.which]?r[t.which]:o[t.which]?o[t.which]:String.fromCharCode(t.which).toLowerCase()}function c(t){return"shift"==t||"ctrl"==t||"alt"==t||"meta"==t}function d(t,e){var i,s,o,u,l,h,d=[];for(h=0,u="+"===(i=t)?["+"]:(i=i.replace(/\+{2}/g,"+plus")).split("+");h95)||!(t<112))&&r.hasOwnProperty(t)&&(n[r[t]]=t);return n}()[s]?"keydown":"keypress"),"keypress"==o&&d.length&&(o="keydown"),{key:l,modifiers:d,action:e=o}}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 n={},r=!1,o=!1,a=!1;function p(t){t=t||{};var e,i=!1;for(e in n){if(t[e]){i=!0;continue}n[e]=0}i||(a=!1)}function u(t,e,i,r,o,a){var p,u,l=[],h=i.type;if(!s._callbacks[t])return[];for("keyup"==h&&c(t)&&(e=[t]),p=0;p1){!function(i,s,o,u){function l(t){m(o,t,i),"keyup"!==u&&(r=h(t)),setTimeout(p,10)}n[i]=0;for(var c=0;ca,ZP:()=>a});var s=i(88897);let n=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)}}}),r=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)}}}),o=/^\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(n.name,this.editor.getAttributes(r.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:o,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(t=(0,s.S0)({find:o,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(r.name),editor:this.editor})),[t]}})},32018:function(t,e,i){"use strict";i.d(e,{GS:()=>a,ZP:()=>a});var s=i(88897);let n=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)}}}),r=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)}}}),o=/^(\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(n.name,this.editor.getAttributes(r.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:o,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:o,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:t=>({start:+t[1],...this.editor.getAttributes(r.name)}),joinPredicate:(t,e)=>e.childCount+e.attrs.start===+t[1],editor:this.editor})),[t]}})},89290:function(t,e,i){"use strict";i.d(e,{ZP:()=>w});var s=i(88897);let n=t=>(0,s.DS)({find:/--$/,replace:null!=t?t:"—"}),r=t=>(0,s.DS)({find:/\.\.\.$/,replace:null!=t?t:"…"}),o=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:"→"}),c=t=>(0,s.DS)({find:/\(c\)$/,replace:null!=t?t:"\xa9"}),d=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"}),y=t=>(0,s.DS)({find:/(?:^|\s)(1\/2)$/,replace:null!=t?t:"\xbd"}),k=t=>(0,s.DS)({find:/\+\/-$/,replace:null!=t?t:"\xb1"}),b=t=>(0,s.DS)({find:/!=$/,replace:null!=t?t:"≠"}),g=t=>(0,s.DS)({find:/<<$/,replace:null!=t?t:"\xab"}),M=t=>(0,s.DS)({find:/>>$/,replace:null!=t?t:"\xbb"}),T=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"}),v=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"}),w=s.hj.create({name:"typography",addInputRules(){let t=[];return!1!==this.options.emDash&&t.push(n(this.options.emDash)),!1!==this.options.ellipsis&&t.push(r(this.options.ellipsis)),!1!==this.options.openDoubleQuote&&t.push(o(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(c(this.options.copyright)),!1!==this.options.trademark&&t.push(d(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(y(this.options.oneHalf)),!1!==this.options.plusMinus&&t.push(k(this.options.plusMinus)),!1!==this.options.notEqual&&t.push(b(this.options.notEqual)),!1!==this.options.laquo&&t.push(g(this.options.laquo)),!1!==this.options.raquo&&t.push(M(this.options.raquo)),!1!==this.options.multiplication&&t.push(T(this.options.multiplication)),!1!==this.options.superscriptTwo&&t.push(L(this.options.superscriptTwo)),!1!==this.options.superscriptThree&&t.push(v(this.options.superscriptThree)),!1!==this.options.oneQuarter&&t.push(S(this.options.oneQuarter)),!1!==this.options.threeQuarters&&t.push(A(this.options.threeQuarters)),t}})}}]);