Lines 1-60javascript
1var so=Object.defineProperty;var oo=(e,n,t)=>n in e?so(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var c=(e,n,t)=>oo(e,typeof n!="symbol"?n+"":n,t);const _e=e=>Array.isArray(e)?e:[e],ao=(e,n)=>{const t=[[],[]];for(const r of e)n(r)?t[0].push(r):t[1].push(r);return t},ni=Array,X=(e,n)=>e.includes(n),lo=(e,n=0)=>[...new Array(e)].map((t,r)=>r+n),N=(e,n,t)=>e===void 0?n===void 0?[]:Array.isArray(n)?n:[n]:(Array.isArray(n)?e.push(...n):e.push(n),e),fe=(e,n)=>n==null?e??[]:e==null?_e(n):e.concat(n),co=(...e)=>e.reduce(fe,[]),me=(e,n,t)=>{if(e===void 0)return Array.isArray(n)?n:[ ...
3 Source: (${e.slice(0,-1)}) => {
5 }`)}}};class ue{constructor(n,...[t]){return Object.assign(Object.setPrototypeOf(n.bind((t==null?void 0:t.bind)??this),this.constructor.prototype),t==null?void 0:t.attach)}}const qo=Ro(()=>{try{return new Function("return false")()}catch{return!0}});class Q{constructor(){}}const Co=()=>{var e,n,t;try{return(((t=(((n=(e=new Error().stack)==null?void 0:e.split(`
6`)[2])==null?void 0:n.trim())||"").match(/\(?(.+?)(?::\d+:\d+)?\)?$/))==null?void 0:t[1])||"unknown").replace(/^file:\/\//,"")}catch{return"unknown"}};var Ur;const Mo=((Ur=globalThis.process)==null?void 0:Ur.env)??{},Do={fileName:Co,env:Mo},Bo=e=>e[0].toUpperCase()+e.slice(1),Ko=e=>e[0].toLowerCase()+e.slice(1),hi=e=>new RegExp(zo(e),typeof e=="string"?"":e.flags),zo=e=>`^(?:${typeof e=="string"?e:e.source})$`,ae={negativeLookahead:e=>`(?!${e})`,nonCapturingGroup:e=>`(?:${e})`},je="\\",vt={" ":1,"\n":1," ":1},Eo=/^-0\.?0*$/.source,di=/[1-9]\d*/.source,Po=/\.\d+/.source,To=/\.\d*[1-9]/.source,p ...
9${t}]`:`[${o}]`}const i=((s=e.constructor)==null?void 0:s.name)??"Object";if(i==="Object"){const o=ct(e).map(([a,l])=>{const u=typeof a=="symbol"?Oe.onSymbol(a):
12${t}}`:`{${o.join(", ")}}`}return e instanceof Date?He(e):"expression"in e&&typeof e.expression=="string"?e.expression:i},Oe={onCycle:()=>"(cycle)",onSymbol:e=>`Symbol(${Zt(e)})`,onFunction:
13`,this}const(t,r){return this.line(`const ${t} = ${r}`),this}let(t,r){return this.line(`let ${t} = ${r}`)}set(t,r){return this.line(`${t} = ${r}`)}if(t,r){return this.block(`if (${t})`,r)}elseIf(t,r){return this.block(`else if (${t})`,r)}else(t){return this.block("else",t)}for(t,r,i=0){return this.block(`for (let i = ${i}; ${t}; i++)`,r)}forIn(t,r){return this.block(`for (const k in ${t})`,r)}block(t,r,i=""){return this.line(`${t} {`),this.indent(),r(this),this.dedent(),this.line(`}${i}`)}return(t=""){return this.line(`return ${t}`)}write(t="anonymous",r=0){return`${t}(${this.argNames.join(
14`).map(i=>" ".repeat(r)+`${i}`).join(`
15`):this.body} }`}compile(){return new Oo(...this.argNames,this.body)}}const Ce=e=>ye(e,"object")||typeof e=="symbol"?F(e):yn(e),wi=(e,n=!1)=>typeof e=="string"&&Ue(e)?`${n?"?":""}.${e}`:vi
16`)}addAncestorPaths(t){for(const r of t.path.stringifyAncestors())this.byAncestorPath[r]=N(this.byAncestorPath[r],t)}}class ga extends Error{constructor(t){var n=(...Fd)=>(super(...Fd),c(this,"name","TraversalError"
17`+t.map(r=>` • ${ba(r)}`).join(`
18`)),Object.defineProperty(this,"arkErrors",{value:t,enumerable:!1})}}const ba=e=>e.toString().split(`
20 `);class we{constructor(n,t){c(this,"path",[]);c(this,"errors",new ce(this));c(this,"root");c(this,"config");c(this,"queuedMorphs",[]);c(this
21• ${this.map(({path:n,l:t,r})=>`${n}: ${Hn(t,r)}`).join(`
22• `)}`}throw(){return f(this.describeReasons())}invert(){const n=this.map(t=>({...t,l:t.r,r:t.l}));return n instanceof y?n:new y(...n)}withPrefixKey(n,t){return this.map(r=>({...r,path:[n,...r.path],optional:r.optional||t==="optional"}))}toNeverIfDisjoint(){return g.intrinsic.never}}const Hn=(e,n)=>`${Yt(e)} and ${Yt(n)}`,Yt=e=>j(e)?e.expression:L(e)?e.map(Yt).join(" | ")||"never":String(e),Mi=e=>`${e} results in an unsatisfiable type`,xe={},re=(e,n,t)=>P(e,n,{$:t,invert:!1,pipe:!1}),Xt=(e,n,t)=>P(e,n,{$:t,invert:!1,pipe:!0}),P=((e,n,t)=>{const r=t.pipe?"|>":"&",i=`${e.hash}${r}${n.hash}`;if(x ...
24`})}})),this);return this.$.finalize(r)}to(t){return this.$.finalize(this.toNode(this.$.parseDefinition(t)))}toNode(t){const r=Xt(this,t,this.$);return r instanceof y?r.throw():r}rawPipeOnce
25${e}`,Xn=(e,n)=>`${e} operand must be an object (was ${n})`,Qe=(e,n)=>R(xn(e),(t,r)=>[r,n]),bl=e=>typeof e=="string"?{reference:e}:e,er=e=>
26Seen: [${i.join("->")}]
27Resolution: ${I(r)}`)}get resolutionId(){if(this.reference.includes("&")||this.reference.includes("=>"))return this.resolution.id;if(this.reference[0]!=="$")return this.reference;const t=this.reference.slice(1),r=this.$.resolutions[t];return typeof r=="string"?r:k(r,"root")?r.id:B(`Unexpected resolution for reference ${this.reference}: ${I(r)}`)}get defaultShortDescription(){return ee.object}innerToJsonSchema(t){return this.resolution.toJsonSchemaRecurse(t)}compile(t){const r=this.resolutionId;t.if(`ctx.seen.${r} && ctx.seen.${r}.includes(data)`,()=>t.return(!0)),t.if(`!ctx.seen.${r}`,()=>t.li ...
28 ◦ `)}`,problem:e=>`(${e.actual}) must be...
29${e.expected}`},intersections:{intersection:(e,n,t)=>tr(e.inner,n.inner,t),...Qe("intersection",(e,n,t)=>{var l;if(e.children.length===0)return n;const{domain:r,proto:i,...s}=e.inner,o=i??r,a=o?P(o,n,t):n;return a instanceof y?a:(l=e==null?void 0:e.basis)!=null&&l.equals(a)?e:e.$.node("intersection",{...s,[a.kind]:a},{prereduced:!0})})}});class Sl extends We{constructor(){super(...arguments);c(this,"basis",this.inner.domain??this.inner.proto??null);c(this,"prestructurals",[]);c(this,"refinements",this.children.filter(t=>t.isRefinement()?(X(Ai,t.kind)&&this.prestructurals.push(t),!0):!1));c(thi ...
31Right: ${n}`,Ol=M({kind:"proto",hasAssociatedError:!0,collapsibleKey:"proto",keys:{proto:{serialize:e=>gn(e)??ge(e)},dateAllowsInvalid:{}},normalize:e=>{const n=typeof e=="string"?{proto:Re[e]}:typeof e=="function"?j(e)?e:{proto:e}:typeof e.proto
36 meta: ${this.compiledMeta}
37})`)}compileIndiscriminable(t){if(t.traversalKind==="Apply"){t.const("errors","[]");for(const r of this.branches)t.line("ctx.pushBranch()").line(t.invoke(r)).if("!ctx.hasError()",()=>t.return(r.includesTransform?"ctx.queuedMorphs.push(...ctx.popBranch().queuedMorphs)":"ctx.popBranch()")).line("errors.push(ctx.popBranch().error)");t.line(`ctx.errorFromNodeContext({ code: "union", errors, meta: ${this.compiledMeta} })`)}else{const{optimistic:r}=t;t.optimistic=!1;for(const i of this.branches)t.if(`${t.invoke(i)}`,()=>t.return(r?i.contextFreeMorph?`${F(i.contextFreeMorph)}(data)`:"data":!0));t.ret ...
39Right: ${n}`,Jl=(e,n)=>`The intersection of two ordered unions is indeterminate:
41Right: ${n}`,_l=M({kind:"unit",hasAssociatedError:!0,keys:{unit:{preserveUndefined:!0,serialize:e=>e instanceof Date?e.toISOString():ge(e)}},normalize:e=>e,defaults:{description:e=>I(e.unit),problem:({expected:e,actual:n
42${o},
MediumDynamic Require
Package source references dynamic require/import behavior.
frontend-dist/_app/immutable/chunks/SrseV9LB.jsView on unpkg · L40 43`;if(!t.hasKind("union"))return a;const l=new Kt({kind:"Allows",optimistic:!0}).indent();t.compile(l);const u=l.write(`${t.id}Optimistic`);return`${a}${u},
45`)+"}");class ms{constructor(n,t){c(this,"config");c(this,"resolvedConfig");c(this,"name");c(this,"referencesById",{});c(this,"references",[]);c(this,"resolutions",{});c(this,"exportedNames",[]);c(this,"aliases",{});c(this,"resolved",!1);c(this,"nodesByHash",{});c(this,"intrinsic");c(this,"_json");c(this,"generic",(...n)=>{const t=this;return(r,i)=>new mt(n,i?new Di(r):r,t,t,i??null)});c(this,"units",(n,t)=>{const r=[];for(const s of n)r.includes(s)||r.push(s);const i=r.map(s=>this.node("unit",{unit:s},t));return this.node("union",i,{...t,prereduced:!0})});c(this,"lazyResolutions",[]);c(this," ...
46fn("string", ":", "number")(s => s.length)`;class ou extends ue{constructor(t){super((...r)=>new it(t)(...r),{bind:t});c(this,"$");this.$=t}in(t){return new it(this.$,t===void 0?void 0:this.$.parse(t))}at(t,r){return new it(this.$).at(t,r)}case(t,r){return new it(this.$).case(t,r)}}class it extends ue{constructor(t,r){super(i=>this.caseEntries(Object.entries(i).map(([s,o])=>s==="default"?[s,o]:[this.$.parse(s),o])));c(this,"$");c(this,"in");c(this,"key");c(this,"branches",[]);this.$=t,this.in=r}at(t,r){return this.key&&f(lu),this.branches.length&&f(au),this.key=t,r?this.match(r):this}case(t,r) ...
47]`).replace("lheading",Qs).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},cd=/^\\(
48`),t=n.length-1;for(;t>=0&&T.blankLine.test(n[t]);)t--;return n.length-t<=2?e:n.slice(0,t+1).join(`
49`)}function Dd(e,n){if(e.indexOf(n[1])===-1)return-1;let t=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===n[0])t++;else if(e[r]===n[1]&&(t--,t<0))return r;return t>0?-2:-1}function Bd(e,n=0){let t=n,r="";for(let i of e)if(i===" "){let s=4-t%4;r+=" ".repeat(s),t+=s}else r+=i,t++;return r}function Fr(e,n,t,r,i){let s=n.href,o=n.title||null,a=e[1].replace(i.other.outputLinkReplace,"$1");r.state.inLink=!0;let l={type:e[0].charAt(0)==="!"?"image":"link",raw:t,href:s,title:o,text:a,tokens:r.inlineTokens(a)};return r.state.inLink=!1,l}function Kd(e,n,t){let r=e.match(t.other.indentCod ...
50`).map(s=>{let o=s.match(t.other.beginningSpace);if(o===null)return s;let[a]=o;return a.length>=i.length?s.slice(i.length):s}).join(`
51`)}var xt=class{constructor(e){c(this,"options");c(this,"rules");c(this,"lexer");this.options=e||ke}space(e){let n=this.rules.block.newline.exec(e);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(e){let n=this.rules.block.code.exec(e);if(n){let t=this.options.pedantic?n[0]:jr(n[0]),r=t.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t,codeBlockStyle:"indented",text:r}}}fences(e){let n=this.rules.block.fences.exec(e);if(n){let t=n[0],r=Kd(t,n[3]||"",this.rules);return{type:"code",raw:t,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:r}} ...
52`),depth:n[1].length,text:t,tokens:this.lexer.inline(t)}}}hr(e){let n=this.rules.block.hr.exec(e);if(n)return{type:"hr",raw:se(n[0],`
53`)}}blockquote(e){let n=this.rules.block.blockquote.exec(e);if(n){let t=se(n[0],`
55`),r="",i="",s=[];for(;t.length>0;){let o=!1,a=[],l;for(l=0;l<t.length;l++)if(this.rules.other.blockquoteStart.test(t[l]))a.push(t[l]),o=!0;else if(!o)a.
56`),h=u.replace(this.rules.other.blockquoteSetextReplace,`
57 $1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
59${h}`:h;let d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(h,s,!0),this.lexer.state.top=d,t.length===0)break;let m=s.at(-1);if((m==null?void 0:
Long lines were clipped for display.