!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@f4164de"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="1100d1c5-1343-47f9-bb8b-f319b31d0d9f",e._sentryDebugIdIdentifier="sentry-dbid-1100d1c5-1343-47f9-bb8b-f319b31d0d9f")}catch(e){}}();"use strict";(self.webpackChunksubstack=self.webpackChunksubstack||[]).push([["31023"],{16176:function(e,t,n){n.d(t,{A:()=>i});let i=(0,n(81315).A)("flip-horizontal-2",[["path",{d:"m3 7 5 5-5 5V7",key:"couhi7"}],["path",{d:"m21 7-5 5 5 5V7",key:"6ouia7"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 14v2",key:"8jcxud"}],["path",{d:"M12 8v2",key:"1woqiv"}],["path",{d:"M12 2v2",key:"tus03m"}]])},28761:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let i=n(5243);i.__exportStar(n(77187),t),i.__exportStar(n(17778),t)},17778:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.fixParsedWebmDuration=void 0;let i=n(19103);t.fixParsedWebmDuration=(e,t,n={})=>{let a=n.logger;void 0===a?a=e=>console.debug(e):a||(a=()=>{});let o=e.getSectionById(0x8538067);if(!o)return a("[fix-webm-duration] Segment section is missing"),!1;let p=o.getSectionById(0x549a966);if(!p)return a("[fix-webm-duration] Info section is missing"),!1;let y=p.getSectionById(710577);if(!y)return a("[fix-webm-duration] TimecodeScale section is missing"),!1;let r=p.getSectionById(1161);if(r)if(!(0>=r.getValue()))return a(`[fix-webm-duration] Duration section is present, and the value is ${r.getValue()}`),!1;else a(`[fix-webm-duration] Duration section is present, but the value is ${r.getValue()}`),r.setValue(t);else a("[fix-webm-duration] Duration section is missing"),(r=new i.WebmFloat("Duration")).setValue(t),p.data.push({id:1161,data:r});return y.setValue(1e6),p.updateByData(),o.updateByData(),e.updateByData(),!0}},77187:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.fixWebmDuration=void 0;let i=n(5243),a=n(19103),o=n(17778);t.fixWebmDuration=(e,t,n)=>i.__awaiter(void 0,void 0,void 0,function*(){try{let i=yield a.WebmFile.fromBlob(e);if((0,o.fixParsedWebmDuration)(i,t,n))return i.toBlob(e.type)}catch(e){}return e})},19103:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let i=n(5243);i.__exportStar(n(85455),t),i.__exportStar(n(27239),t),i.__exportStar(n(83456),t),i.__exportStar(n(70094),t),i.__exportStar(n(60063),t),i.__exportStar(n(1794),t),i.__exportStar(n(31496),t),i.__exportStar(n(9573),t),i.__exportStar(n(64303),t)},9573:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},31496:function(e,t){var n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.SectionType=void 0,(i=n||(t.SectionType=n={})).Container="Container",i.Uint="Uint",i.Int="Int",i.Float="Float",i.String="String",i.Date="Date",i.Binary="Binary"},85455:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.WebmBase=void 0,t.WebmBase=class{constructor(e="Unknown",t=0){this.name=e,this.start=t}getType(){return"Unknown"}updateBySource(){}setSource(e){this.source=e,this.updateBySource()}updateByData(){}setData(e){this.data=e,this.updateByData()}getValue(){return this.data}setValue(e){this.setData(e)}}},27239:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.WebmContainer=void 0;let i=n(85455),a=n(64303),o=n(31496),p=n(1794),y=n(70094),r=n(60063);class c extends i.WebmBase{constructor(e,t=!1,n=0){super(e,n),this.isInfinite=t,this.offset=0}getType(){return"Container"}readByte(){return this.source[this.offset++]}readUint(){let e=this.readByte(),t=8-e.toString(2).length,n=e-(1<<7-t);for(let e=0;e=0&&(t=Math.min(this.offset+l,t));let u=this.source.slice(this.offset,t);switch(s){case o.SectionType.Container:n=new c(T,l<0,S);break;case o.SectionType.Uint:n=new p.WebmUint(T,S);break;case o.SectionType.Float:n=new y.WebmFloat(T,S);break;case o.SectionType.String:n=new r.WebmString(T,S);break;default:n=new i.WebmBase(T,S)}n.setSource(u),this.data.push({id:m,idHex:m.toString(16),data:n})}}writeUint(e,t=!1){let n;for(n=1;(e<0||e>=1<<7*n)&&n<8;n++);if(!t){for(let t=0;t>8*(n-1-t)&255;this.source[this.offset]&=(1<<8-n)-1,this.source[this.offset]|=1<<8-n}this.offset+=n}writeSections(e=!1){this.offset=0;for(let t=0;t{try{let i=new FileReader;i.onloadend=()=>{try{t(new Uint8Array(i.result))}catch(e){n(e)}},i.readAsArrayBuffer(e)}catch(e){n(e)}})}static fromBlob(e){return i.__awaiter(this,void 0,void 0,function*(){let t=yield o.blobToArray(e);return new o(t)})}}t.WebmFile=o},70094:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.WebmFloat=void 0;let i=n(85455);class a extends i.WebmBase{constructor(e,t=0){super(e,t)}getType(){return"Float"}getFloatArrayType(){return this.source&&4===this.source.length?Float32Array:Float64Array}updateBySource(){let e=this.source.reverse(),t=new(this.getFloatArrayType())(e.buffer);this.data=t[0]}updateByData(){let e=new Uint8Array(new(this.getFloatArrayType())([this.data]).buffer);this.source=e.reverse()}}t.WebmFloat=a},60063:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.WebmString=void 0;let i=n(85455);class a extends i.WebmBase{constructor(e,t=0){super(e,t)}getType(){return"String"}updateBySource(){this.data=this.source}updateByData(){this.source=this.data}getValue(){let e="";return this.source.forEach(t=>{e+=String.fromCharCode(t)}),e}}t.WebmString=a},1794:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.WebmUint=void 0;let i=n(85455);function a(e){return e.length%2==1?"0"+e:e}class o extends i.WebmBase{constructor(e,t=0){super(e,t)}getType(){return"Uint"}updateBySource(){this.data="";for(let e=0;e