@nil-/xit 0.1.11 → 0.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/assets/bundler.js CHANGED
@@ -56,7 +56,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
56
56
  `?IA=!0:oA!=="\r"&&IA&&(IA=!1,sA===QA.start||(this._splitChunk(QA,sA),QA=QA.next),QA.prependRight(AA))}sA+=1}sA=QA.end,QA=QA.next}return this.outro=this.outro.replace(gA,BA),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(AA,tA){return warned$1.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),warned$1.insertLeft=!0),this.appendLeft(AA,tA)}insertRight(AA,tA){return warned$1.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),warned$1.insertRight=!0),this.prependRight(AA,tA)}move(AA,tA,gA){if(gA>=AA&&gA<=tA)throw new Error("Cannot move a selection inside itself");this._split(AA),this._split(tA),this._split(gA);const iA=this.byStart[AA],IA=this.byEnd[tA],BA=iA.previous,sA=IA.next,QA=this.byStart[gA];if(!QA&&IA===this.lastChunk)return this;const CA=QA?QA.previous:this.lastChunk;return BA&&(BA.next=sA),sA&&(sA.previous=BA),CA&&(CA.next=iA),QA&&(QA.previous=IA),iA.previous||(this.firstChunk=IA.next),IA.next||(this.lastChunk=iA.previous,this.lastChunk.next=null),iA.previous=CA,IA.next=QA||null,CA||(this.firstChunk=iA),QA||(this.lastChunk=IA),this}overwrite(AA,tA,gA,iA){return iA=iA||{},this.update(AA,tA,gA,{...iA,overwrite:!iA.contentOnly})}update(AA,tA,gA,iA){if(typeof gA!="string")throw new TypeError("replacement content must be a string");if(this.original.length!==0){for(;AA<0;)AA+=this.original.length;for(;tA<0;)tA+=this.original.length}if(tA>this.original.length)throw new Error("end is out of bounds");if(AA===tA)throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");this._split(AA),this._split(tA),iA===!0&&(warned$1.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),warned$1.storeName=!0),iA={storeName:!0});const IA=iA!==void 0?iA.storeName:!1,BA=iA!==void 0?iA.overwrite:!1;if(IA){const CA=this.original.slice(AA,tA);Object.defineProperty(this.storedNames,CA,{writable:!0,value:!0,enumerable:!0})}const sA=this.byStart[AA],QA=this.byEnd[tA];if(sA){let CA=sA;for(;CA!==QA;){if(CA.next!==this.byStart[CA.end])throw new Error("Cannot overwrite across a split point");CA=CA.next,CA.edit("",!1)}sA.edit(gA,IA,!BA)}else{const CA=new Chunk(AA,tA,"").edit(gA,IA);QA.next=CA,CA.previous=QA}return this}prepend(AA){if(typeof AA!="string")throw new TypeError("outro content must be a string");return this.intro=AA+this.intro,this}prependLeft(AA,tA){if(typeof tA!="string")throw new TypeError("inserted content must be a string");this._split(AA);const gA=this.byEnd[AA];return gA?gA.prependLeft(tA):this.intro=tA+this.intro,this}prependRight(AA,tA){if(typeof tA!="string")throw new TypeError("inserted content must be a string");this._split(AA);const gA=this.byStart[AA];return gA?gA.prependRight(tA):this.outro=tA+this.outro,this}remove(AA,tA){if(this.original.length!==0){for(;AA<0;)AA+=this.original.length;for(;tA<0;)tA+=this.original.length}if(AA===tA)return this;if(AA<0||tA>this.original.length)throw new Error("Character is out of bounds");if(AA>tA)throw new Error("end must be greater than start");this._split(AA),this._split(tA);let gA=this.byStart[AA];for(;gA;)gA.intro="",gA.outro="",gA.edit(""),gA=tA>gA.end?this.byStart[gA.end]:null;return this}reset(AA,tA){if(this.original.length!==0){for(;AA<0;)AA+=this.original.length;for(;tA<0;)tA+=this.original.length}if(AA===tA)return this;if(AA<0||tA>this.original.length)throw new Error("Character is out of bounds");if(AA>tA)throw new Error("end must be greater than start");this._split(AA),this._split(tA);let gA=this.byStart[AA];for(;gA;)gA.reset(),gA=tA>gA.end?this.byStart[gA.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let AA=this.lastChunk;do{if(AA.outro.length)return AA.outro[AA.outro.length-1];if(AA.content.length)return AA.content[AA.content.length-1];if(AA.intro.length)return AA.intro[AA.intro.length-1]}while(AA=AA.previous);return this.intro.length?this.intro[this.intro.length-1]:""}lastLine(){let AA=this.outro.lastIndexOf(n$1);if(AA!==-1)return this.outro.substr(AA+1);let tA=this.outro,gA=this.lastChunk;do{if(gA.outro.length>0){if(AA=gA.outro.lastIndexOf(n$1),AA!==-1)return gA.outro.substr(AA+1)+tA;tA=gA.outro+tA}if(gA.content.length>0){if(AA=gA.content.lastIndexOf(n$1),AA!==-1)return gA.content.substr(AA+1)+tA;tA=gA.content+tA}if(gA.intro.length>0){if(AA=gA.intro.lastIndexOf(n$1),AA!==-1)return gA.intro.substr(AA+1)+tA;tA=gA.intro+tA}}while(gA=gA.previous);return AA=this.intro.lastIndexOf(n$1),AA!==-1?this.intro.substr(AA+1)+tA:this.intro+tA}slice(AA=0,tA=this.original.length){if(this.original.length!==0){for(;AA<0;)AA+=this.original.length;for(;tA<0;)tA+=this.original.length}let gA="",iA=this.firstChunk;for(;iA&&(iA.start>AA||iA.end<=AA);){if(iA.start<tA&&iA.end>=tA)return gA;iA=iA.next}if(iA&&iA.edited&&iA.start!==AA)throw new Error(`Cannot use replaced character ${AA} as slice start anchor.`);const IA=iA;for(;iA;){iA.intro&&(IA!==iA||iA.start===AA)&&(gA+=iA.intro);const BA=iA.start<tA&&iA.end>=tA;if(BA&&iA.edited&&iA.end!==tA)throw new Error(`Cannot use replaced character ${tA} as slice end anchor.`);const sA=IA===iA?AA-iA.start:0,QA=BA?iA.content.length+tA-iA.end:iA.content.length;if(gA+=iA.content.slice(sA,QA),iA.outro&&(!BA||iA.end===tA)&&(gA+=iA.outro),BA)break;iA=iA.next}return gA}snip(AA,tA){const gA=this.clone();return gA.remove(0,AA),gA.remove(tA,gA.original.length),gA}_split(AA){if(this.byStart[AA]||this.byEnd[AA])return;let tA=this.lastSearchedChunk;const gA=AA>tA.end;for(;tA;){if(tA.contains(AA))return this._splitChunk(tA,AA);tA=gA?this.byStart[tA.end]:this.byEnd[tA.start]}}_splitChunk(AA,tA){if(AA.edited&&AA.content.length){const iA=getLocator(this.original)(tA);throw new Error(`Cannot split a chunk that has already been edited (${iA.line}:${iA.column} – "${AA.original}")`)}const gA=AA.split(tA);return this.byEnd[tA]=AA,this.byStart[tA]=gA,this.byEnd[gA.end]=gA,AA===this.lastChunk&&(this.lastChunk=gA),this.lastSearchedChunk=AA,!0}toString(){let AA=this.intro,tA=this.firstChunk;for(;tA;)AA+=tA.toString(),tA=tA.next;return AA+this.outro}isEmpty(){let AA=this.firstChunk;do if(AA.intro.length&&AA.intro.trim()||AA.content.length&&AA.content.trim()||AA.outro.length&&AA.outro.trim())return!1;while(AA=AA.next);return!0}length(){let AA=this.firstChunk,tA=0;do tA+=AA.intro.length+AA.content.length+AA.outro.length;while(AA=AA.next);return tA}trimLines(){return this.trim("[\\r\\n]")}trim(AA){return this.trimStart(AA).trimEnd(AA)}trimEndAborted(AA){const tA=new RegExp((AA||"\\s")+"+$");if(this.outro=this.outro.replace(tA,""),this.outro.length)return!0;let gA=this.lastChunk;do{const iA=gA.end,IA=gA.trimEnd(tA);if(gA.end!==iA&&(this.lastChunk===gA&&(this.lastChunk=gA.next),this.byEnd[gA.end]=gA,this.byStart[gA.next.start]=gA.next,this.byEnd[gA.next.end]=gA.next),IA)return!0;gA=gA.previous}while(gA);return!1}trimEnd(AA){return this.trimEndAborted(AA),this}trimStartAborted(AA){const tA=new RegExp("^"+(AA||"\\s")+"+");if(this.intro=this.intro.replace(tA,""),this.intro.length)return!0;let gA=this.firstChunk;do{const iA=gA.end,IA=gA.trimStart(tA);if(gA.end!==iA&&(gA===this.lastChunk&&(this.lastChunk=gA.next),this.byEnd[gA.end]=gA,this.byStart[gA.next.start]=gA.next,this.byEnd[gA.next.end]=gA.next),IA)return!0;gA=gA.next}while(gA);return!1}trimStart(AA){return this.trimStartAborted(AA),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(AA,tA){function gA(IA,BA){return typeof tA=="string"?tA.replace(/\$(\$|&|\d+)/g,(sA,QA)=>QA==="$"?"$":QA==="&"?IA[0]:+QA<IA.length?IA[+QA]:`$${QA}`):tA(...IA,IA.index,BA,IA.groups)}function iA(IA,BA){let sA;const QA=[];for(;sA=IA.exec(BA);)QA.push(sA);return QA}if(AA.global)iA(AA,this.original).forEach(BA=>{if(BA.index!=null){const sA=gA(BA,this.original);sA!==BA[0]&&this.overwrite(BA.index,BA.index+BA[0].length,sA)}});else{const IA=this.original.match(AA);if(IA&&IA.index!=null){const BA=gA(IA,this.original);BA!==IA[0]&&this.overwrite(IA.index,IA.index+IA[0].length,BA)}}return this}_replaceString(AA,tA){const{original:gA}=this,iA=gA.indexOf(AA);return iA!==-1&&this.overwrite(iA,iA+AA.length,tA),this}replace(AA,tA){return typeof AA=="string"?this._replaceString(AA,tA):this._replaceRegexp(AA,tA)}_replaceAllString(AA,tA){const{original:gA}=this,iA=AA.length;for(let IA=gA.indexOf(AA);IA!==-1;IA=gA.indexOf(AA,IA+iA))gA.slice(IA,IA+iA)!==tA&&this.overwrite(IA,IA+iA,tA);return this}replaceAll(AA,tA){if(typeof AA=="string")return this._replaceAllString(AA,tA);if(!AA.global)throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");return this._replaceRegexp(AA,tA)}}var remapping_umd={exports:{}},traceMapping_umd={exports:{}},resolveUri_umd={exports:{}},hasRequiredResolveUri_umd;function requireResolveUri_umd(){return hasRequiredResolveUri_umd||(hasRequiredResolveUri_umd=1,function(eA,AA){(function(tA,gA){eA.exports=gA()})(commonjsGlobal,function(){const tA=/^[\w+.-]+:\/\//,gA=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,iA=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function IA(DA){return tA.test(DA)}function BA(DA){return DA.startsWith("//")}function sA(DA){return DA.startsWith("/")}function QA(DA){return DA.startsWith("file:")}function CA(DA){return/^[.?#]/.test(DA)}function oA(DA){const wA=gA.exec(DA);return nA(wA[1],wA[2]||"",wA[3],wA[4]||"",wA[5]||"/",wA[6]||"",wA[7]||"")}function EA(DA){const wA=iA.exec(DA),RA=wA[2];return nA("file:","",wA[1]||"","",sA(RA)?RA:"/"+RA,wA[3]||"",wA[4]||"")}function nA(DA,wA,RA,GA,yA,LA,KA){return{scheme:DA,user:wA,host:RA,port:GA,path:yA,query:LA,hash:KA,type:7}}function cA(DA){if(BA(DA)){const RA=oA("http:"+DA);return RA.scheme="",RA.type=6,RA}if(sA(DA)){const RA=oA("http://foo.com"+DA);return RA.scheme="",RA.host="",RA.type=5,RA}if(QA(DA))return EA(DA);if(IA(DA))return oA(DA);const wA=oA("http://foo.com/"+DA);return wA.scheme="",wA.host="",wA.type=DA?DA.startsWith("?")?3:DA.startsWith("#")?2:4:1,wA}function uA(DA){if(DA.endsWith("/.."))return DA;const wA=DA.lastIndexOf("/");return DA.slice(0,wA+1)}function lA(DA,wA){hA(wA,wA.type),DA.path==="/"?DA.path=wA.path:DA.path=uA(wA.path)+DA.path}function hA(DA,wA){const RA=wA<=4,GA=DA.path.split("/");let yA=1,LA=0,KA=!1;for(let SA=1;SA<GA.length;SA++){const MA=GA[SA];if(!MA){KA=!0;continue}if(KA=!1,MA!=="."){if(MA===".."){LA?(KA=!0,LA--,yA--):RA&&(GA[yA++]=MA);continue}GA[yA++]=MA,LA++}}let bA="";for(let SA=1;SA<yA;SA++)bA+="/"+GA[SA];(!bA||KA&&!bA.endsWith("/.."))&&(bA+="/"),DA.path=bA}function dA(DA,wA){if(!DA&&!wA)return"";const RA=cA(DA);let GA=RA.type;if(wA&&GA!==7){const LA=cA(wA),KA=LA.type;switch(GA){case 1:RA.hash=LA.hash;case 2:RA.query=LA.query;case 3:case 4:lA(RA,LA);case 5:RA.user=LA.user,RA.host=LA.host,RA.port=LA.port;case 6:RA.scheme=LA.scheme}KA>GA&&(GA=KA)}hA(RA,GA);const yA=RA.query+RA.hash;switch(GA){case 2:case 3:return yA;case 4:{const LA=RA.path.slice(1);return LA?CA(wA||DA)&&!CA(LA)?"./"+LA+yA:LA+yA:yA||"."}case 5:return RA.path+yA;default:return RA.scheme+"//"+RA.user+RA.host+RA.port+RA.path+yA}}return dA})}(resolveUri_umd)),resolveUri_umd.exports}var hasRequiredTraceMapping_umd;function requireTraceMapping_umd(){return hasRequiredTraceMapping_umd||(hasRequiredTraceMapping_umd=1,function(eA,AA){(function(tA,gA){gA(AA,sourcemapCodec_umdExports,requireResolveUri_umd())})(commonjsGlobal,function(tA,gA,iA){function IA(_A,VA){return VA&&!VA.endsWith("/")&&(VA+="/"),iA(_A,VA)}function BA(_A){if(!_A)return"";const VA=_A.lastIndexOf("/");return _A.slice(0,VA+1)}const sA=0,QA=1,CA=2,oA=3,EA=4,nA=1,cA=2;function uA(_A,VA){const OA=lA(_A,0);if(OA===_A.length)return _A;VA||(_A=_A.slice());for(let jA=OA;jA<_A.length;jA=lA(_A,jA+1))_A[jA]=dA(_A[jA],VA);return _A}function lA(_A,VA){for(let OA=VA;OA<_A.length;OA++)if(!hA(_A[OA]))return OA;return _A.length}function hA(_A){for(let VA=1;VA<_A.length;VA++)if(_A[VA][sA]<_A[VA-1][sA])return!1;return!0}function dA(_A,VA){return VA||(_A=_A.slice()),_A.sort(DA)}function DA(_A,VA){return _A[sA]-VA[sA]}let wA=!1;function RA(_A,VA,OA,jA){for(;OA<=jA;){const XA=OA+(jA-OA>>1),zA=_A[XA][sA]-VA;if(zA===0)return wA=!0,XA;zA<0?OA=XA+1:jA=XA-1}return wA=!1,OA-1}function GA(_A,VA,OA){for(let jA=OA+1;jA<_A.length&&_A[jA][sA]===VA;OA=jA++);return OA}function yA(_A,VA,OA){for(let jA=OA-1;jA>=0&&_A[jA][sA]===VA;OA=jA--);return OA}function LA(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function KA(_A,VA,OA,jA){const{lastKey:XA,lastNeedle:zA,lastIndex:tg}=OA;let Cg=0,gg=_A.length-1;if(jA===XA){if(VA===zA)return wA=tg!==-1&&_A[tg][sA]===VA,tg;VA>=zA?Cg=tg===-1?0:tg:gg=tg}return OA.lastKey=jA,OA.lastNeedle=VA,OA.lastIndex=RA(_A,VA,Cg,gg)}function bA(_A,VA){const OA=VA.map(MA);for(let jA=0;jA<_A.length;jA++){const XA=_A[jA];for(let zA=0;zA<XA.length;zA++){const tg=XA[zA];if(tg.length===1)continue;const Cg=tg[QA],gg=tg[CA],Qg=tg[oA],Dg=OA[Cg],ng=Dg[gg]||(Dg[gg]=[]),Eg=VA[Cg];let dg=GA(ng,Qg,KA(ng,Qg,Eg,gg));Eg.lastIndex=++dg,SA(ng,dg,[Qg,jA,tg[sA]])}}return OA}function SA(_A,VA,OA){for(let jA=_A.length;jA>VA;jA--)_A[jA]=_A[jA-1];_A[VA]=OA}function MA(){return{__proto__:null}}const NA=function(_A,VA){const OA=FA(_A);if(!("sections"in OA))return new JA(OA,VA);const jA=[],XA=[],zA=[],tg=[],Cg=[];qA(OA,VA,jA,XA,zA,tg,Cg,0,0,1/0,1/0);const gg={version:3,file:OA.file,names:tg,sources:XA,sourcesContent:zA,mappings:jA,ignoreList:Cg};return sg(gg)};function FA(_A){return typeof _A=="string"?JSON.parse(_A):_A}function qA(_A,VA,OA,jA,XA,zA,tg,Cg,gg,Qg,Dg){const{sections:ng}=_A;for(let Eg=0;Eg<ng.length;Eg++){const{map:dg,offset:Mg}=ng[Eg];let Jg=Qg,bg=Dg;if(Eg+1<ng.length){const Ug=ng[Eg+1].offset;Jg=Math.min(Qg,Cg+Ug.line),Jg===Qg?bg=Math.min(Dg,gg+Ug.column):Jg<Qg&&(bg=gg+Ug.column)}UA(dg,VA,OA,jA,XA,zA,tg,Cg+Mg.line,gg+Mg.column,Jg,bg)}}function UA(_A,VA,OA,jA,XA,zA,tg,Cg,gg,Qg,Dg){const ng=FA(_A);if("sections"in ng)return qA(...arguments);const Eg=new JA(ng,VA),dg=jA.length,Mg=zA.length,Jg=vA(Eg),{resolvedSources:bg,sourcesContent:Ug,ignoreList:Kg}=Eg;if(mA(jA,bg),mA(zA,Eg.names),Ug)mA(XA,Ug);else for(let fg=0;fg<bg.length;fg++)XA.push(null);if(Kg)for(let fg=0;fg<Kg.length;fg++)tg.push(Kg[fg]+dg);for(let fg=0;fg<Jg.length;fg++){const vg=Cg+fg;if(vg>Qg)return;const $g=aA(OA,vg),tI=fg===0?gg:0,zg=Jg[fg];for(let _g=0;_g<zg.length;_g++){const Lg=zg[_g],xg=tI+Lg[sA];if(vg===Qg&&xg>=Dg)return;if(Lg.length===1){$g.push([xg]);continue}const Zg=dg+Lg[QA],Wg=Lg[CA],Xg=Lg[oA];$g.push(Lg.length===4?[xg,Zg,Wg,Xg]:[xg,Zg,Wg,Xg,Mg+Lg[EA]])}}}function mA(_A,VA){for(let OA=0;OA<VA.length;OA++)_A.push(VA[OA])}function aA(_A,VA){for(let OA=_A.length;OA<=VA;OA++)_A[OA]=[];return _A[VA]}const rA="`line` must be greater than 0 (lines start at line 1)",pA="`column` must be greater than or equal to 0 (columns start at column 0)",fA=-1,kA=1;class JA{constructor(VA,OA){const jA=typeof VA=="string";if(!jA&&VA._decodedMemo)return VA;const XA=jA?JSON.parse(VA):VA,{version:zA,file:tg,names:Cg,sourceRoot:gg,sources:Qg,sourcesContent:Dg}=XA;this.version=zA,this.file=tg,this.names=Cg||[],this.sourceRoot=gg,this.sources=Qg,this.sourcesContent=Dg,this.ignoreList=XA.ignoreList||XA.x_google_ignoreList||void 0;const ng=IA(gg||"",BA(OA));this.resolvedSources=Qg.map(dg=>IA(dg||"",ng));const{mappings:Eg}=XA;typeof Eg=="string"?(this._encoded=Eg,this._decoded=void 0):(this._encoded=void 0,this._decoded=uA(Eg,jA)),this._decodedMemo=LA(),this._bySources=void 0,this._bySourceMemos=void 0}}function YA(_A){return _A}function xA(_A){var VA,OA;return(VA=(OA=_A)._encoded)!==null&&VA!==void 0?VA:OA._encoded=gA.encode(_A._decoded)}function vA(_A){var VA;return(VA=_A)._decoded||(VA._decoded=gA.decode(_A._encoded))}function HA(_A,VA,OA){const jA=vA(_A);if(VA>=jA.length)return null;const XA=jA[VA],zA=og(XA,_A._decodedMemo,VA,OA,kA);return zA===-1?null:XA[zA]}function PA(_A,VA){let{line:OA,column:jA,bias:XA}=VA;if(OA--,OA<0)throw new Error(rA);if(jA<0)throw new Error(pA);const zA=vA(_A);if(OA>=zA.length)return hg(null,null,null,null);const tg=zA[OA],Cg=og(tg,_A._decodedMemo,OA,jA,XA||kA);if(Cg===-1)return hg(null,null,null,null);const gg=tg[Cg];if(gg.length===1)return hg(null,null,null,null);const{names:Qg,resolvedSources:Dg}=_A;return hg(Dg[gg[QA]],gg[CA]+1,gg[oA],gg.length===5?Qg[gg[EA]]:null)}function $A(_A,VA){const{source:OA,line:jA,column:XA,bias:zA}=VA;return Fg(_A,OA,jA,XA,zA||kA,!1)}function TA(_A,VA){const{source:OA,line:jA,column:XA,bias:zA}=VA;return Fg(_A,OA,jA,XA,zA||fA,!0)}function WA(_A,VA){const OA=vA(_A),{names:jA,resolvedSources:XA}=_A;for(let zA=0;zA<OA.length;zA++){const tg=OA[zA];for(let Cg=0;Cg<tg.length;Cg++){const gg=tg[Cg],Qg=zA+1,Dg=gg[0];let ng=null,Eg=null,dg=null,Mg=null;gg.length!==1&&(ng=XA[gg[1]],Eg=gg[2]+1,dg=gg[3]),gg.length===5&&(Mg=jA[gg[4]]),VA({generatedLine:Qg,generatedColumn:Dg,source:ng,originalLine:Eg,originalColumn:dg,name:Mg})}}}function ZA(_A,VA){const{sources:OA,resolvedSources:jA}=_A;let XA=OA.indexOf(VA);return XA===-1&&(XA=jA.indexOf(VA)),XA}function Ag(_A,VA){const{sourcesContent:OA}=_A;if(OA==null)return null;const jA=ZA(_A,VA);return jA===-1?null:OA[jA]}function eg(_A,VA){const{ignoreList:OA}=_A;if(OA==null)return!1;const jA=ZA(_A,VA);return jA===-1?!1:OA.includes(jA)}function sg(_A,VA){const OA=new JA(pg(_A,[]),VA);return OA._decoded=_A.mappings,OA}function ug(_A){return pg(_A,vA(_A))}function yg(_A){return pg(_A,xA(_A))}function pg(_A,VA){return{version:_A.version,file:_A.file,names:_A.names,sourceRoot:_A.sourceRoot,sources:_A.sources,sourcesContent:_A.sourcesContent,mappings:VA,ignoreList:_A.ignoreList||_A.x_google_ignoreList}}function hg(_A,VA,OA,jA){return{source:_A,line:VA,column:OA,name:jA}}function wg(_A,VA){return{line:_A,column:VA}}function og(_A,VA,OA,jA,XA){let zA=KA(_A,jA,VA,OA);return wA?zA=(XA===fA?GA:yA)(_A,jA,zA):XA===fA&&zA++,zA===-1||zA===_A.length?-1:zA}function kg(_A,VA,OA,jA,XA){let zA=og(_A,VA,OA,jA,kA);if(!wA&&XA===fA&&zA++,zA===-1||zA===_A.length)return[];const tg=wA?jA:_A[zA][sA];wA||(zA=yA(_A,tg,zA));const Cg=GA(_A,tg,zA),gg=[];for(;zA<=Cg;zA++){const Qg=_A[zA];gg.push(wg(Qg[nA]+1,Qg[cA]))}return gg}function Fg(_A,VA,OA,jA,XA,zA){var tg;if(OA--,OA<0)throw new Error(rA);if(jA<0)throw new Error(pA);const{sources:Cg,resolvedSources:gg}=_A;let Qg=Cg.indexOf(VA);if(Qg===-1&&(Qg=gg.indexOf(VA)),Qg===-1)return zA?[]:wg(null,null);const ng=((tg=_A)._bySources||(tg._bySources=bA(vA(_A),_A._bySourceMemos=Cg.map(LA))))[Qg][OA];if(ng==null)return zA?[]:wg(null,null);const Eg=_A._bySourceMemos[Qg];if(zA)return kg(ng,Eg,OA,jA,XA);const dg=og(ng,Eg,OA,jA,XA);if(dg===-1)return wg(null,null);const Mg=ng[dg];return wg(Mg[nA]+1,Mg[cA])}tA.AnyMap=NA,tA.GREATEST_LOWER_BOUND=kA,tA.LEAST_UPPER_BOUND=fA,tA.TraceMap=JA,tA.allGeneratedPositionsFor=TA,tA.decodedMap=ug,tA.decodedMappings=vA,tA.eachMapping=WA,tA.encodedMap=yg,tA.encodedMappings=xA,tA.generatedPositionFor=$A,tA.isIgnored=eg,tA.originalPositionFor=PA,tA.presortedDecodedMap=sg,tA.sourceContentFor=Ag,tA.traceSegment=HA})}(traceMapping_umd,traceMapping_umd.exports)),traceMapping_umd.exports}var genMapping_umd={exports:{}},setArray_umd={exports:{}},hasRequiredSetArray_umd;function requireSetArray_umd(){return hasRequiredSetArray_umd||(hasRequiredSetArray_umd=1,function(eA,AA){(function(tA,gA){gA(AA)})(commonjsGlobal,function(tA){class gA{constructor(){this._indexes={__proto__:null},this.array=[]}}function iA(CA){return CA}function IA(CA,oA){return CA._indexes[oA]}function BA(CA,oA){const EA=IA(CA,oA);if(EA!==void 0)return EA;const{array:nA,_indexes:cA}=CA,uA=nA.push(oA);return cA[oA]=uA-1}function sA(CA){const{array:oA,_indexes:EA}=CA;if(oA.length===0)return;const nA=oA.pop();EA[nA]=void 0}function QA(CA,oA){const EA=IA(CA,oA);if(EA===void 0)return;const{array:nA,_indexes:cA}=CA;for(let uA=EA+1;uA<nA.length;uA++){const lA=nA[uA];nA[uA-1]=lA,cA[lA]--}cA[oA]=void 0,nA.pop()}tA.SetArray=gA,tA.get=IA,tA.pop=sA,tA.put=BA,tA.remove=QA,Object.defineProperty(tA,"__esModule",{value:!0})})}(setArray_umd,setArray_umd.exports)),setArray_umd.exports}var hasRequiredGenMapping_umd;function requireGenMapping_umd(){return hasRequiredGenMapping_umd||(hasRequiredGenMapping_umd=1,function(eA,AA){(function(tA,gA){gA(AA,requireSetArray_umd(),sourcemapCodec_umdExports,requireTraceMapping_umd())})(commonjsGlobal,function(tA,gA,iA,IA){class nA{constructor({file:rA,sourceRoot:pA}={}){this._names=new gA.SetArray,this._sources=new gA.SetArray,this._sourcesContent=[],this._mappings=[],this.file=rA,this.sourceRoot=pA,this._ignoreList=new gA.SetArray}}function cA(aA){return aA}function uA(aA,rA,pA,fA,kA,JA,YA,xA){return KA(!1,aA,rA,pA,fA,kA,JA,YA,xA)}function lA(aA,rA){return mA(!1,aA,rA)}const hA=(aA,rA,pA,fA,kA,JA,YA,xA)=>KA(!0,aA,rA,pA,fA,kA,JA,YA,xA),dA=(aA,rA)=>mA(!0,aA,rA);function DA(aA,rA,pA){const{_sources:fA,_sourcesContent:kA}=aA,JA=gA.put(fA,rA);kA[JA]=pA}function wA(aA,rA,pA=!0){const{_sources:fA,_sourcesContent:kA,_ignoreList:JA}=aA,YA=gA.put(fA,rA);YA===kA.length&&(kA[YA]=null),pA?gA.put(JA,YA):gA.remove(JA,YA)}function RA(aA){const{_mappings:rA,_sources:pA,_sourcesContent:fA,_names:kA,_ignoreList:JA}=aA;return NA(rA),{version:3,file:aA.file||void 0,names:kA.array,sourceRoot:aA.sourceRoot||void 0,sources:pA.array,sourcesContent:fA,mappings:rA,ignoreList:JA.array}}function GA(aA){const rA=RA(aA);return Object.assign(Object.assign({},rA),{mappings:iA.encode(rA.mappings)})}function yA(aA){const rA=new IA.TraceMap(aA),pA=new nA({file:rA.file,sourceRoot:rA.sourceRoot});return FA(pA._names,rA.names),FA(pA._sources,rA.sources),pA._sourcesContent=rA.sourcesContent||rA.sources.map(()=>null),pA._mappings=IA.decodedMappings(rA),rA.ignoreList&&FA(pA._ignoreList,rA.ignoreList),pA}function LA(aA){const rA=[],{_mappings:pA,_sources:fA,_names:kA}=aA;for(let JA=0;JA<pA.length;JA++){const YA=pA[JA];for(let xA=0;xA<YA.length;xA++){const vA=YA[xA],HA={line:JA+1,column:vA[0]};let PA,$A,TA;vA.length!==1&&(PA=fA.array[vA[1]],$A={line:vA[2]+1,column:vA[3]},vA.length===5&&(TA=kA.array[vA[4]])),rA.push({generated:HA,source:PA,original:$A,name:TA})}}return rA}function KA(aA,rA,pA,fA,kA,JA,YA,xA,vA){const{_mappings:HA,_sources:PA,_sourcesContent:$A,_names:TA}=rA,WA=bA(HA,pA),ZA=SA(WA,fA);if(!kA)return aA&&qA(WA,ZA)?void 0:MA(WA,ZA,[fA]);const Ag=gA.put(PA,kA),eg=xA?gA.put(TA,xA):-1;if(Ag===$A.length&&($A[Ag]=vA??null),!(aA&&UA(WA,ZA,Ag,JA,YA,eg)))return MA(WA,ZA,xA?[fA,Ag,JA,YA,eg]:[fA,Ag,JA,YA])}function bA(aA,rA){for(let pA=aA.length;pA<=rA;pA++)aA[pA]=[];return aA[rA]}function SA(aA,rA){let pA=aA.length;for(let fA=pA-1;fA>=0;pA=fA--){const kA=aA[fA];if(rA>=kA[0])break}return pA}function MA(aA,rA,pA){for(let fA=aA.length;fA>rA;fA--)aA[fA]=aA[fA-1];aA[rA]=pA}function NA(aA){const{length:rA}=aA;let pA=rA;for(let fA=pA-1;fA>=0&&!(aA[fA].length>0);pA=fA,fA--);pA<rA&&(aA.length=pA)}function FA(aA,rA){for(let pA=0;pA<rA.length;pA++)gA.put(aA,rA[pA])}function qA(aA,rA){return rA===0?!0:aA[rA-1].length===1}function UA(aA,rA,pA,fA,kA,JA){if(rA===0)return!1;const YA=aA[rA-1];return YA.length===1?!1:pA===YA[1]&&fA===YA[2]&&kA===YA[3]&&JA===(YA.length===5?YA[4]:-1)}function mA(aA,rA,pA){const{generated:fA,source:kA,original:JA,name:YA,content:xA}=pA;return kA?KA(aA,rA,fA.line-1,fA.column,kA,JA.line-1,JA.column,YA,xA):KA(aA,rA,fA.line-1,fA.column,null,null,null,null,null)}tA.GenMapping=nA,tA.addMapping=lA,tA.addSegment=uA,tA.allMappings=LA,tA.fromMap=yA,tA.maybeAddMapping=dA,tA.maybeAddSegment=hA,tA.setIgnore=wA,tA.setSourceContent=DA,tA.toDecodedMap=RA,tA.toEncodedMap=GA,Object.defineProperty(tA,"__esModule",{value:!0})})}(genMapping_umd,genMapping_umd.exports)),genMapping_umd.exports}(function(eA,AA){(function(tA,gA){eA.exports=gA(requireTraceMapping_umd(),requireGenMapping_umd())})(commonjsGlobal,function(tA,gA){const iA=BA("",-1,-1,"",null,!1),IA=[];function BA(dA,DA,wA,RA,GA,yA){return{source:dA,line:DA,column:wA,name:RA,content:GA,ignore:yA}}function sA(dA,DA,wA,RA,GA){return{map:dA,sources:DA,source:wA,content:RA,ignore:GA}}function QA(dA,DA){return sA(dA,DA,"",null,!1)}function CA(dA,DA,wA){return sA(null,IA,dA,DA,wA)}function oA(dA){const DA=new gA.GenMapping({file:dA.map.file}),{sources:wA,map:RA}=dA,GA=RA.names,yA=tA.decodedMappings(RA);for(let LA=0;LA<yA.length;LA++){const KA=yA[LA];for(let bA=0;bA<KA.length;bA++){const SA=KA[bA],MA=SA[0];let NA=iA;if(SA.length!==1){const pA=wA[SA[1]];if(NA=EA(pA,SA[2],SA[3],SA.length===5?GA[SA[4]]:""),NA==null)continue}const{column:FA,line:qA,name:UA,content:mA,source:aA,ignore:rA}=NA;gA.maybeAddSegment(DA,LA,MA,aA,qA,FA,UA),aA&&mA!=null&&gA.setSourceContent(DA,aA,mA),rA&&gA.setIgnore(DA,aA,!0)}}return DA}function EA(dA,DA,wA,RA){if(!dA.map)return BA(dA.source,DA,wA,RA,dA.content,dA.ignore);const GA=tA.traceSegment(dA.map,DA,wA);return GA==null?null:GA.length===1?iA:EA(dA.sources[GA[1]],GA[2],GA[3],GA.length===5?dA.map.names[GA[4]]:RA)}function nA(dA){return Array.isArray(dA)?dA:[dA]}function cA(dA,DA){const wA=nA(dA).map(yA=>new tA.TraceMap(yA,"")),RA=wA.pop();for(let yA=0;yA<wA.length;yA++)if(wA[yA].sources.length>1)throw new Error(`Transformation map ${yA} must have exactly one source file.
57
57
  Did you specify these with the most recent transformation maps first?`);let GA=uA(RA,DA,"",0);for(let yA=wA.length-1;yA>=0;yA--)GA=QA(wA[yA],[GA]);return GA}function uA(dA,DA,wA,RA){const{resolvedSources:GA,sourcesContent:yA,ignoreList:LA}=dA,KA=RA+1,bA=GA.map((SA,MA)=>{const NA={importer:wA,depth:KA,source:SA||"",content:void 0,ignore:void 0},FA=DA(NA.source,NA),{source:qA,content:UA,ignore:mA}=NA;if(FA)return uA(new tA.TraceMap(FA,qA),DA,qA,KA);const aA=UA!==void 0?UA:yA?yA[MA]:null,rA=mA!==void 0?mA:LA?LA.includes(MA):!1;return CA(qA,aA,rA)});return QA(dA,bA)}class lA{constructor(DA,wA){const RA=wA.decodedMappings?gA.toDecodedMap(DA):gA.toEncodedMap(DA);this.version=RA.version,this.file=RA.file,this.mappings=RA.mappings,this.names=RA.names,this.ignoreList=RA.ignoreList,this.sourceRoot=RA.sourceRoot,this.sources=RA.sources,wA.excludeContent||(this.sourcesContent=RA.sourcesContent)}toString(){return JSON.stringify(this)}}function hA(dA,DA,wA){const RA=typeof wA=="object"?wA:{excludeContent:!!wA,decodedMappings:!1},GA=cA(dA,DA);return new lA(oA(GA),RA)}return hA})})(remapping_umd);var remapping_umdExports=remapping_umd.exports,remapping=getDefaultExportFromCjs(remapping_umdExports);const b64enc=typeof window<"u"&&typeof btoa=="function"?eA=>btoa(unescape(encodeURIComponent(eA))):eA=>Buffer.from(eA).toString("base64");function combine_sourcemaps(eA,AA){if(AA.length==0)return null;let tA=1;const gA=AA.slice(0,-1).find(iA=>iA.sources.length!==1)===void 0?remapping(AA,()=>null,!0):remapping(AA[0],iA=>iA===eA&&AA[tA]?AA[tA++]:null,!0);return gA.file||delete gA.file,gA.sources.length||(gA.sources=[eA]),gA}function apply_preprocessor_sourcemap(eA,AA,tA){if(!AA||!tA)return AA;const gA=typeof tA=="string"?JSON.parse(tA):tA,iA=combine_sourcemaps(eA,[AA,gA]);return Object.defineProperties(iA,{toString:{enumerable:!1,value:function(){return JSON.stringify(this)}},toUrl:{enumerable:!1,value:function(){return"data:application/json;charset=utf-8;base64,"+b64enc(this.toString())}}}),iA}function merge_with_preprocessor_map(eA,AA,tA){if(AA.sourcemap){const gA=get_basename(AA.filename);eA.map.sources=[gA],eA.map=apply_preprocessor_sourcemap(gA,eA.map,AA.sourcemap),gA!==tA&&(eA.map.sources=eA.map.sources.map(iA=>get_relative_path(tA,iA)))}}function get_relative_path(eA,AA){const tA=eA.split(/[/\\]/),gA=AA.split(/[/\\]/);for(tA.pop();tA[0]===gA[0];)tA.shift(),gA.shift();if(tA.length){let iA=tA.length;for(;iA--;)tA[iA]=".."}return tA.concat(gA).join("/")}function get_basename(eA){return eA.split(/[/\\]/).pop()}function get_source_name(eA,AA,tA){return AA?get_relative_path(AA,eA):get_basename(eA)}function render_stylesheet(eA,AA,tA){const gA=new MagicString(eA),iA={code:gA,hash:AA.css.hash,selector:`.${AA.css.hash}`,keyframes:AA.css.keyframes,specificity:{bumped:!1}},IA=AA.css.ast;walk(IA,iA,visitors$1),gA.remove(0,IA.content.start),gA.remove(IA.content.end,eA.length);const BA={code:gA.toString(),map:gA.generateMap({includeContent:!0,source:tA.filename,file:tA.cssOutputFilename||tA.filename})};return merge_with_preprocessor_map(BA,tA,BA.map.sources[0]),dev&&tA.css==="injected"&&BA.code&&(BA.code+=`
58
58
  /*# sourceMappingURL=${BA.map.toUrl()} */`),BA}const visitors$1={_:(eA,AA)=>{AA.state.code.addSourcemapLocation(eA.start),AA.state.code.addSourcemapLocation(eA.end),AA.next()},Atrule(eA,{state:AA,next:tA}){if(is_keyframes_node(eA)){let gA=eA.start+eA.name.length+1;for(;AA.code.original[gA]===" ";)gA+=1;let iA=gA;for(;AA.code.original[iA]!=="{"&&AA.code.original[iA]!==" ";)iA+=1;eA.prelude.startsWith("-global-")?AA.code.remove(gA,gA+8):AA.code.prependRight(gA,`${AA.hash}-`);return}tA()},Declaration(eA,{state:AA}){const tA=eA.property&&remove_css_prefix(eA.property.toLowerCase());if(tA==="animation"||tA==="animation-name"){let gA=eA.start+eA.property.length+1,iA="";for(;gA<AA.code.original.length;){const IA=AA.code.original[gA];if(regex_css_name_boundary.test(IA)){if(AA.keyframes.includes(iA)&&AA.code.prependRight(gA-iA.length,`${AA.hash}-`),IA===";"||IA==="}")break;iA=""}else iA+=IA;gA++}}},Rule(eA,{state:AA,next:tA,visit:gA}){if(!dev&&is_empty(eA)){AA.code.prependRight(eA.start,"/* (empty) "),AA.code.appendLeft(eA.end,"*/"),escape_comment_close(eA,AA.code);return}if(!is_used(eA)){AA.code.prependRight(eA.start,"/* (unused) "),AA.code.appendLeft(eA.end,"*/"),escape_comment_close(eA,AA.code);return}if(eA.metadata.is_global_block){const iA=eA.prelude.children[0];if(iA.children.length===1&&iA.children[0].selectors.length===1){AA.code.prependRight(eA.start,"/* "),AA.code.appendLeft(eA.block.start+1,"*/"),AA.code.prependRight(eA.block.end-1,"/*"),AA.code.appendLeft(eA.block.end,"*/");return}gA(eA.prelude);return}tA()},SelectorList(eA,{state:AA,next:tA,path:gA}){if(!gA.find(BA=>BA.type==="ComplexSelector"&&!BA.metadata.used)){let BA=!1,sA=eA.children[0].start;for(let QA=0;QA<eA.children.length;QA+=1){const CA=eA.children[QA];if(CA.metadata.used===BA){if(BA){let oA=CA.start;for(;AA.code.original[oA]!==",";)oA--;AA.code.overwrite(oA,oA+1,"*/")}else QA===0?AA.code.prependRight(CA.start,"/* (unused) "):AA.code.overwrite(sA,CA.start," /* (unused) ");BA=!BA}sA=CA.end}BA&&AA.code.appendLeft(sA,"*/")}let iA=AA.specificity,IA=gA.at(-1);if((IA==null?void 0:IA.type)==="Rule"){iA={bumped:!1};let BA=IA.metadata.parent_rule;for(;BA;){if(BA.metadata.has_local_selectors){iA={bumped:!0};break}BA=BA.metadata.parent_rule}}tA({...AA,specificity:iA})},ComplexSelector(eA,AA){var iA;const tA=AA.state.specificity.bumped;function gA(IA,BA){if(IA.args===null){let sA=IA.start;if((BA==null?void 0:BA.name)===" ")for(;/\s/.test(AA.state.code.original[sA-1]);)sA--;AA.state.code.remove(sA,IA.start+7)}else AA.state.code.remove(IA.start,IA.start+8).remove(IA.end-1,IA.end)}for(const IA of eA.children){if(IA.metadata.is_global){const BA=IA.selectors[0];gA(BA,IA.combinator),(iA=eA.metadata.rule)!=null&&iA.metadata.parent_rule&&BA.args===null&&IA.combinator===null&&AA.state.code.prependRight(BA.start,"&");continue}if(IA.metadata.scoped){if(IA.selectors.length===1){const QA=IA.selectors[0];if(QA.type==="PseudoClassSelector"&&(QA.name==="is"||QA.name==="where"))continue}for(const QA of IA.selectors)QA.type==="PseudoClassSelector"&&QA.name==="global"&&gA(QA,null);if(IA.selectors.some(QA=>QA.type==="NestingSelector"))continue;let BA=AA.state.selector;AA.state.specificity.bumped&&(BA=`:where(${BA})`),AA.state.specificity.bumped=!0;let sA=IA.selectors.length;for(;sA--;){const QA=IA.selectors[sA];if(QA.type==="PseudoElementSelector"||QA.type==="PseudoClassSelector"){QA.name!=="root"&&QA.name!=="host"&&sA===0&&AA.state.code.prependRight(QA.start,BA);continue}QA.type==="TypeSelector"&&QA.name==="*"?AA.state.code.update(QA.start,QA.end,BA):AA.state.code.appendLeft(QA.end,BA);break}}}AA.next(),AA.state.specificity.bumped=tA},PseudoClassSelector(eA,AA){(eA.name==="is"||eA.name==="where"||eA.name==="has"||eA.name==="not")&&AA.next()}};function is_empty(eA){if(eA.metadata.is_global_block)return eA.block.children.length===0;for(const AA of eA.block.children)if(AA.type==="Declaration"||AA.type==="Rule"&&is_used(AA)&&!is_empty(AA)||AA.type==="Atrule"&&(AA.block===null||AA.block.children.length>0))return!1;return!0}function is_used(eA){return eA.prelude.children.some(AA=>AA.metadata.used)}function escape_comment_close(eA,AA){let tA=!1,gA=!1;for(let iA=eA.start;iA<eA.end;iA++)if(tA)tA=!1;else{const IA=AA.original[iA];gA?IA==="*"&&AA.original[iA+1]==="/"&&(AA.prependRight(++iA,"\\"),gA=!1):IA==="\\"?tA=!0:IA==="/"&&AA.original[++iA]==="*"&&(gA=!0)}}function visit_assignment_expression(eA,AA,tA){if(eA.left.type==="ArrayPattern"||eA.left.type==="ObjectPattern"||eA.left.type==="RestElement"){const gA=AA.visit(eA.right),iA=gA.type!=="Identifier",IA=iA?id$1("$$value"):gA;let BA=!1;const sA=extract_paths(eA.left).map(oA=>{var cA;const EA=(cA=oA.expression)==null?void 0:cA.call(oA,IA);let nA=tA("=",oA.node,EA,AA);return nA!==null&&(BA=!0),nA??assignment("=",AA.visit(oA.node),AA.visit(EA))});if(!BA)return null;const QA=AA.path.at(-1).type.endsWith("Statement"),CA=sequence$1(sA);if(QA||CA.expressions.push(IA),iA){const oA=arrow([IA],CA);return is_expression_async(gA)||sA.some(nA=>is_expression_async(nA))?await_builder(call(async(oA),gA)):call(oA,gA)}return CA}if(eA.left.type!=="Identifier"&&eA.left.type!=="MemberExpression")throw new Error(`Unexpected assignment type ${eA.left.type}`);return tA(eA.operator,eA.left,eA.right,AA)}function AssignmentExpression$1(eA,AA){return visit_assignment_expression(eA,AA,build_assignment$1)??AA.next()}function build_assignment$1(eA,AA,tA,gA){let iA=AA;for(;iA.type==="MemberExpression";)iA=iA.object;if(iA.type!=="Identifier"||!is_store_name(iA.name))return null;const IA=iA.name.slice(1);if(!gA.state.scope.get(IA))return null;if(iA===AA){let BA=gA.visit(build_assignment_value(eA,AA,tA));return call("$.store_set",id$1(IA),BA)}return call("$.store_mutate",assignment("??=",id$1("$$store_subs"),object$2([])),literal(iA.name),id$1(IA),assignment(eA,gA.visit(AA),gA.visit(tA)))}function is_store_name(eA){return eA[0]==="$"&&/[A-Za-z_]/.test(eA[1])}const ATTR_REGEX=/[&"<]/g,CONTENT_REGEX=/[&<]/g;function escape_html(eA,AA){const tA=String(eA??""),gA=AA?ATTR_REGEX:CONTENT_REGEX;gA.lastIndex=0;let iA="",IA=0;for(;gA.test(tA);){const BA=gA.lastIndex-1,sA=tA[BA];iA+=tA.substring(IA,BA)+(sA==="&"?"&amp;":sA==='"'?"&quot;":"&lt;"),IA=BA+1}return iA+tA.substring(IA)}const BLOCK_OPEN=`<!--${HYDRATION_START}-->`,BLOCK_OPEN_ELSE=`<!--${HYDRATION_START_ELSE}-->`,BLOCK_CLOSE=`<!--${HYDRATION_END}-->`,EMPTY_COMMENT="<!---->",block_open=literal(BLOCK_OPEN),block_close=literal(BLOCK_CLOSE),empty_comment=literal(EMPTY_COMMENT);function process_children$1(eA,{visit:AA,state:tA}){let gA=[];function iA(){let IA=quasi("",!1);const BA=[IA],sA=[];for(let QA=0;QA<gA.length;QA++){const CA=gA[QA];CA.type==="Text"||CA.type==="Comment"?IA.value.cooked+=CA.type==="Comment"?`<!--${CA.data}-->`:escape_html(CA.data):CA.type==="ExpressionTag"&&CA.expression.type==="Literal"?CA.expression.value!=null&&(IA.value.cooked+=escape_html(CA.expression.value+"")):(sA.push(call("$.escape",AA(CA.expression))),IA=quasi("",QA+1===gA.length),BA.push(IA))}for(const QA of BA)QA.value.raw=sanitize_template_string(QA.value.cooked);tA.template.push(template(BA,sA))}for(let IA=0;IA<eA.length;IA+=1){const BA=eA[IA];BA.type==="Text"||BA.type==="Comment"||BA.type==="ExpressionTag"?gA.push(BA):(gA.length>0&&(iA(),gA=[]),AA(BA,{...tA}))}gA.length>0&&iA()}function is_statement(eA){return eA.type.endsWith("Statement")||eA.type.endsWith("Declaration")}function build_template(eA,AA=id$1("$$payload.out"),tA="+="){let gA=[],iA=[];const IA=[],BA=()=>{IA.push(stmt(assignment(tA,AA,template(gA.map((sA,QA)=>quasi(sA,QA===gA.length-1)),iA)))),gA=[],iA=[]};for(let sA=0;sA<eA.length;sA++){const QA=eA[sA];is_statement(QA)?(gA.length!==0&&BA(),IA.push(QA)):(gA.length===0&&gA.push(""),QA.type==="Literal"?gA[gA.length-1]+=QA.value:QA.type==="TemplateLiteral"?(gA[gA.length-1]+=QA.quasis[0].value.cooked,gA.push(...QA.quasis.slice(1).map(CA=>CA.value.cooked)),iA.push(...QA.expressions)):(iA.push(QA),gA.push("")))}return gA.length!==0&&BA(),IA}function build_attribute_value$1(eA,AA,tA=!1,gA=!1){if(eA===!0)return true_instance;if(!Array.isArray(eA)||eA.length===1){const sA=Array.isArray(eA)?eA[0]:eA;if(sA.type==="Text"){const QA=tA?sA.data.replace(regex_whitespaces_strict," ").trim():sA.data;return literal(gA?QA:escape_html(QA,!0))}return AA.visit(sA.expression)}let iA=quasi("",!1);const IA=[iA],BA=[];for(let sA=0;sA<eA.length;sA++){const QA=eA[sA];QA.type==="Text"?iA.value.raw+=tA?QA.data.replace(regex_whitespaces_strict," "):QA.data:(BA.push(call("$.stringify",AA.visit(QA.expression))),iA=quasi("",sA+1===eA.length),IA.push(iA))}return template(IA,BA)}function build_getter(eA,AA){const tA=AA.scope.get(eA.name);if(tA===null||eA===tA.node)return eA;if(tA.kind==="store_sub"){const gA=id$1(eA.name.slice(1));return call("$.store_get",assignment("??=",id$1("$$store_subs"),object$2([])),literal(eA.name),build_getter(gA,AA))}return eA}function AwaitBlock$1(eA,AA){AA.state.template.push(empty_comment,stmt(call("$.await",AA.visit(eA.expression),thunk(eA.pending?AA.visit(eA.pending):block([])),arrow(eA.value?[AA.visit(eA.value)]:[],eA.then?AA.visit(eA.then):block([])),arrow(eA.error?[AA.visit(eA.error)]:[],eA.catch?AA.visit(eA.catch):block([])))),empty_comment)}function is_hoisted_function(eA){var AA;return eA.type==="ArrowFunctionExpression"||eA.type==="FunctionExpression"||eA.type==="FunctionDeclaration"?((AA=eA.metadata)==null?void 0:AA.hoisted)===!0:!1}function sort_const_tags(eA,AA){const tA=[],gA=new Map;for(const QA of eA)if(QA.type==="ConstTag"){const CA=QA.declaration.declarations[0],oA=extract_identifiers(CA.id).map(nA=>AA.scope.get(nA.name)),EA=new Set;walk(CA.init,AA,{_:set_scope,Identifier(nA,cA){const uA=cA.path.at(-1);if(is_reference(nA,uA)){const lA=cA.state.scope.get(nA.name);lA&&EA.add(lA)}}});for(const nA of oA)gA.set(nA,{node:QA,deps:EA})}else tA.push(QA);if(gA.size===0)return eA;const iA=[];for(const[QA,CA]of gA)for(const oA of CA.deps)gA.has(oA)&&iA.push([QA,oA]);const IA=check_graph_for_cycles(iA);if(IA!=null&&IA.length){const QA=gA.get(IA[0]);const_tag_cycle(QA.node,IA.map(CA=>CA.node.name).join(" → "))}const BA=[];function sA(QA){if(!BA.includes(QA.node)){for(const CA of QA.deps){const oA=gA.get(CA);oA&&sA(oA)}BA.push(QA.node)}}for(const QA of gA.values())sA(QA);return[...BA,...tA]}function clean_nodes(eA,AA,tA,gA="html",iA,IA,BA){iA.analysis.runes||(AA=sort_const_tags(AA,iA));const sA=[],QA=[];for(const EA of AA)EA.type==="Comment"&&!BA||(EA.type==="ConstTag"||EA.type==="DebugTag"||EA.type==="SvelteBody"||EA.type==="SvelteWindow"||EA.type==="SvelteDocument"||EA.type==="SvelteHead"||EA.type==="TitleElement"||EA.type==="SnippetBlock"?sA.push(EA):QA.push(EA));let CA=QA;if(!IA){CA=[];let EA,nA;for(;(EA=QA[0])&&EA.type==="Text"&&!regex_not_whitespace.test(EA.data);)QA.shift();for((EA==null?void 0:EA.type)==="Text"&&(EA.raw=EA.raw.replace(regex_starts_with_whitespaces,""),EA.data=EA.data.replace(regex_starts_with_whitespaces,""));(nA=QA.at(-1))&&nA.type==="Text"&&!regex_not_whitespace.test(nA.data);)QA.pop();(nA==null?void 0:nA.type)==="Text"&&(nA.raw=nA.raw.replace(regex_ends_with_whitespaces,""),nA.data=nA.data.replace(regex_ends_with_whitespaces,""));const cA=gA==="svg"&&(eA.type!=="RegularElement"||eA.name!=="text")&&!tA.some(uA=>uA.type==="RegularElement"&&uA.name==="text")||eA.type==="RegularElement"&&(eA.name==="select"||eA.name==="tr"||eA.name==="table"||eA.name==="tbody"||eA.name==="thead"||eA.name==="tfoot"||eA.name==="colgroup"||eA.name==="datalist");for(let uA=0;uA<QA.length;uA++){const lA=QA[uA-1],hA=QA[uA],dA=QA[uA+1];if(hA.type==="Text"){if((lA==null?void 0:lA.type)!=="ExpressionTag"){const DA=(lA==null?void 0:lA.type)==="Text"&&regex_ends_with_whitespaces.test(lA.data);hA.data=hA.data.replace(regex_starts_with_whitespaces,DA?"":" "),hA.raw=hA.raw.replace(regex_starts_with_whitespaces,DA?"":" ")}(dA==null?void 0:dA.type)!=="ExpressionTag"&&(hA.data=hA.data.replace(regex_ends_with_whitespaces," "),hA.raw=hA.raw.replace(regex_ends_with_whitespaces," ")),hA.data&&(hA.data!==" "||!cA)&&CA.push(hA)}else CA.push(hA)}}var oA=CA[0];return CA.length===1&&oA.type==="RegularElement"&&oA.name==="script"&&CA.push({type:"Comment",data:"",parent:oA.parent,start:-1,end:-1}),{hoisted:sA,trimmed:CA,is_standalone:CA.length===1&&(oA.type==="RenderTag"&&!oA.metadata.dynamic||oA.type==="Component"&&!iA.options.hmr&&!oA.metadata.dynamic&&!oA.attributes.some(EA=>EA.type==="Attribute"&&EA.name.startsWith("--"))),is_text_first:(eA.type==="Fragment"||eA.type==="SnippetBlock"||eA.type==="EachBlock"||eA.type==="SvelteComponent"||eA.type==="Component"||eA.type==="SvelteSelf")&&oA&&((oA==null?void 0:oA.type)==="Text"||(oA==null?void 0:oA.type)==="ExpressionTag")}}function infer_namespace(eA,AA,tA){if(AA.type==="RegularElement"&&AA.name==="foreignObject")return"html";if(AA.type==="RegularElement"||AA.type==="SvelteElement")return AA.metadata.svg?"svg":AA.metadata.mathml?"mathml":"html";if(AA.type==="Fragment"||AA.type==="Root"||AA.type==="Component"||AA.type==="SvelteComponent"||AA.type==="SvelteFragment"||AA.type==="SnippetBlock"||AA.type==="SlotElement"){const gA=check_nodes_for_namespace(tA,"keep");if(gA!=="keep"&&gA!=="maybe_html")return gA}return eA}function check_nodes_for_namespace(eA,AA){const tA=(gA,{stop:iA})=>{!gA.metadata.svg&&!gA.metadata.mathml?(AA="html",iA()):AA==="keep"&&(AA=gA.metadata.svg?"svg":"mathml")};for(const gA of eA)if(walk(gA,{},{_(iA,{next:IA}){(iA.type==="EachBlock"||iA.type==="IfBlock"||iA.type==="AwaitBlock"||iA.type==="Fragment"||iA.type==="KeyBlock"||iA.type==="RegularElement"||iA.type==="SvelteElement"||iA.type==="Text")&&IA()},SvelteElement:tA,RegularElement:tA,Text(iA){iA.data.trim()!==""&&(AA="maybe_html")}}),AA==="html")return AA;return AA}function determine_namespace_for_children(eA,AA){return eA.name==="foreignObject"?"html":eA.metadata.svg?"svg":eA.metadata.mathml?"mathml":"html"}function transform_inspect_rune(eA,AA){const{state:tA,visit:gA}=AA,iA=tA.options.generate==="client";if(!dev)return empty;if(eA.callee.type==="MemberExpression"){const BA=eA.callee.object.arguments.map(QA=>gA(QA)),sA=gA(eA.arguments[0]);return call("$.inspect",iA?thunk(array(BA)):array(BA),sA)}else{const IA=eA.arguments.map(BA=>gA(BA));return call("$.inspect",iA?thunk(array(IA)):array(IA))}}function CallExpression$1(eA,AA){const tA=get_rune(eA,AA.state.scope);if(tA==="$host")return id$1("undefined");if(tA==="$effect.tracking")return literal(!1);if(tA==="$effect.root")return arrow([],block([]));if(tA==="$state.snapshot")return call("$.snapshot",AA.visit(eA.arguments[0]),is_ignored(eA,"state_snapshot_uncloneable")&&true_instance);if(tA==="$inspect"||tA==="$inspect().with")return transform_inspect_rune(eA,AA);AA.next()}function ClassBody$1(eA,AA){var sA,QA;if(!AA.state.analysis.runes){AA.next();return}const tA=new Map,gA=new Map,iA=[];for(const CA of eA.body)if(CA.type==="PropertyDefinition"&&(CA.key.type==="Identifier"||CA.key.type==="PrivateIdentifier")){const{type:oA,name:EA}=CA.key,nA=oA==="PrivateIdentifier";if(nA&&iA.push(EA),((sA=CA.value)==null?void 0:sA.type)==="CallExpression"){const cA=get_rune(CA.value,AA.state.scope);if(cA==="$derived"||cA==="$derived.by"){const uA={kind:cA==="$derived.by"?"derived_by":"derived",id:nA?CA.key:null};nA?gA.set(EA,uA):tA.set(EA,uA)}}}for(const[CA,oA]of tA){let EA=CA;for(;iA.includes(EA);)EA="_"+EA;iA.push(EA),oA.id=private_id(EA)}const IA=[],BA={...AA.state,private_derived:gA};for(const CA of eA.body){if(CA.type==="PropertyDefinition"&&(CA.key.type==="Identifier"||CA.key.type==="PrivateIdentifier")){const oA=CA.key.name,EA=CA.key.type==="PrivateIdentifier",nA=(EA?gA:tA).get(oA);if(((QA=CA.value)==null?void 0:QA.type)==="CallExpression"&&nA!==void 0){const cA=AA.visit(CA.value.arguments[0],BA),uA=nA.kind==="derived_by"?call("$.once",cA):call("$.once",thunk(cA));if(EA)IA.push(prop_def(nA.id,uA));else{const lA=member(this_instance,nA.id);IA.push(prop_def(nA.id,uA)),IA.push(method("get",CA.key,[],[return_builder(call(lA))])),dev&&(nA.kind==="derived"||nA.kind==="derived_by")&&IA.push(method("set",CA.key,[id$1("_")],[throw_error$1(`Cannot update a derived property ('${oA}')`)]))}continue}}IA.push(AA.visit(CA,BA))}return{...eA,body:IA}}function build_inline_component(eA,AA,tA){const gA=[],iA=[],IA={default:[]},BA={...tA.state,scope:eA.metadata.scopes.default},sA={},QA=eA.attributes.some(hA=>hA.type==="Attribute"&&hA.name==="slot");let CA=!1;function oA(hA){const dA=gA.at(-1),DA=Array.isArray(dA),wA=DA?dA:[];wA.push(hA),DA||gA.push(wA)}for(const hA of eA.attributes)if(hA.type==="LetDirective")QA||IA.default.push(hA);else if(hA.type==="SpreadAttribute")gA.push(tA.visit(hA));else if(hA.type==="Attribute"){if(hA.name.startsWith("--")){const DA=build_attribute_value$1(hA.value,tA,!1,!0);iA.push(init(hA.name,DA));continue}hA.name==="children"&&(CA=!0);const dA=build_attribute_value$1(hA.value,tA,!1,!0);oA(prop("init",key$2(hA.name),dA))}else hA.type==="BindDirective"&&hA.name!=="this"&&(oA(get(hA.name,[return_builder(tA.visit(hA.expression))])),oA(set(hA.name,[stmt(tA.visit(assignment("=",hA.expression,id$1("$$value")))),stmt(assignment("=",id$1("$$settled"),false_instance))])));const EA=[],nA=[];for(const hA of eA.fragment.nodes){if(hA.type==="SnippetBlock"){tA.visit(hA,{...tA.state,init:EA}),oA(prop("init",hA.expression,hA.expression)),nA.push(init(hA.expression.name==="children"?"default":hA.expression.name,true_instance));continue}let dA="default";if(is_element_node(hA)){const DA=hA.attributes.find(wA=>wA.type==="Attribute"&&wA.name==="slot");DA!==void 0?(dA=DA.value[0].data,IA[dA]=hA.attributes.filter(wA=>wA.type==="LetDirective")):hA.type==="SvelteFragment"&&IA.default.push(...hA.attributes.filter(wA=>wA.type==="LetDirective"))}sA[dA]=sA[dA]||[],sA[dA].push(hA)}for(const hA of Object.keys(sA)){const dA=tA.visit({...eA.fragment,nodes:sA[hA]},hA==="default"?BA:{...tA.state,scope:eA.metadata.scopes[hA]});if(dA.body.length===0)continue;const DA=[id$1("$$payload")];if(IA[hA].length>0){const RA=object_pattern(IA[hA].map(GA=>GA.expression===null?init(GA.name,id$1(GA.name)):GA.expression.type==="ObjectExpression"?init(GA.name,object_pattern(GA.expression.properties)):GA.expression.type==="ArrayExpression"?init(GA.name,array_pattern(GA.expression.elements)):init(GA.name,GA.expression)));DA.push(RA)}const wA=arrow(DA,block(dA.body));hA==="default"&&!CA?IA.default.length===0&&sA.default.every(RA=>RA.type!=="SvelteFragment"||!RA.attributes.some(GA=>GA.type==="LetDirective"))?(oA(prop("init",id$1("children"),wA)),nA.push(init(hA,true_instance))):(nA.push(init(hA,wA)),oA(init("children",id$1("$.invalid_default_snippet")))):nA.push(init(hA,wA))}nA.length>0&&oA(prop("init",id$1("$$slots"),object$2(nA)));const cA=gA.length===0||gA.length===1&&Array.isArray(gA[0])?object$2(gA[0]||[]):call("$.spread_props",array(gA.map(hA=>Array.isArray(hA)?object$2(hA):hA)));let uA=stmt((eA.type==="SvelteComponent"?maybe_call:call)(AA,id$1("$$payload"),cA));EA.length>0&&(uA=block([...EA,uA]));const lA=eA.type==="SvelteComponent"||eA.type==="Component"&&eA.metadata.dynamic;iA.length>0?tA.state.template.push(stmt(call("$.css_props",id$1("$$payload"),literal(tA.state.namespace!=="svg"),object$2(iA),thunk(block([uA])),lA&&true_instance))):(lA&&tA.state.template.push(empty_comment),tA.state.template.push(uA),tA.state.skip_hydration_boundaries||tA.state.template.push(empty_comment))}function Component$1(eA,AA){build_inline_component(eA,id$1(eA.name),AA)}function ConstTag$1(eA,AA){const tA=eA.declaration.declarations[0],gA=AA.visit(tA.id),iA=AA.visit(tA.init);AA.state.init.push(const_builder(gA,iA))}function DebugTag$1(eA,AA){AA.state.template.push(stmt(call("console.log",object$2(eA.identifiers.map(tA=>prop("init",tA,AA.visit(tA)))))),debugger_builder)}function EachBlock$1(eA,AA){const tA=AA.state,gA=eA.metadata,iA=AA.visit(eA.expression),IA=gA.contains_group_binding||!eA.index?gA.index:id$1(eA.index),BA=tA.scope.root.unique("each_array");tA.init.push(const_builder(BA,call("$.ensure_array_like",iA)));const sA=[let_builder(eA.context,member(BA,IA,!0))];IA.name!==eA.index&&eA.index!=null&&sA.push(let_builder(eA.index,IA)),sA.push(...AA.visit(eA.body).body);const QA=for_builder(declaration("let",[declarator(IA,literal(0)),declarator("$$length",member(BA,"length"))]),binary("<",IA,id$1("$$length")),update("++",IA,!1),block(sA));if(eA.fallback){const CA=stmt(assignment("+=",id$1("$$payload.out"),block_open)),oA=AA.visit(eA.fallback);oA.body.unshift(stmt(assignment("+=",id$1("$$payload.out"),literal(BLOCK_OPEN_ELSE)))),tA.template.push(if_builder(binary("!==",member(BA,"length"),literal(0)),block([CA,QA]),oA),block_close)}else tA.template.push(block_open,QA,block_close)}function ExpressionStatement$1(eA,AA){const tA=get_rune(eA.expression,AA.state.scope);if(tA==="$effect"||tA==="$effect.pre"||tA==="$effect.root")return empty;AA.next()}function Fragment$1(eA,AA){const tA=AA.path.at(-1)??eA,gA=infer_namespace(AA.state.namespace,tA,eA.nodes),{hoisted:iA,trimmed:IA,is_standalone:BA,is_text_first:sA}=clean_nodes(tA,eA.nodes,AA.path,gA,AA.state,AA.state.preserve_whitespace,AA.state.options.preserveComments),QA={...AA.state,init:[],template:[],namespace:gA,skip_hydration_boundaries:BA};for(const CA of iA)AA.visit(CA,QA);return sA&&QA.template.push(empty_comment),process_children$1(IA,{...AA,state:QA}),block([...QA.init,...build_template(QA.template)])}function HtmlTag$1(eA,AA){const tA=AA.visit(eA.expression);AA.state.template.push(call("$.html",tA))}function Identifier$1(eA,AA){if(is_reference(eA,AA.path.at(-1)))return eA.name==="$$props"?id$1("$$sanitized_props"):build_getter(eA,AA.state)}function IfBlock$1(eA,AA){const tA=AA.visit(eA.test),gA=AA.visit(eA.consequent),iA=eA.alternate?AA.visit(eA.alternate):block([]);gA.body.unshift(stmt(assignment("+=",id$1("$$payload.out"),block_open))),iA.body.unshift(stmt(assignment("+=",id$1("$$payload.out"),literal(BLOCK_OPEN_ELSE)))),AA.state.template.push(if_builder(tA,gA,iA),block_close)}function KeyBlock$1(eA,AA){AA.state.template.push(empty_comment,AA.visit(eA.fragment),empty_comment)}function LabeledStatement$1(eA,AA){if(!(AA.state.analysis.runes||AA.path.length>1||eA.label.name!=="$"))return AA.state.legacy_reactive_statements.set(eA,labeled("$",AA.visit(eA.body))),empty}function MemberExpression$1(eA,AA){if(AA.state.analysis.runes&&eA.object.type==="ThisExpression"&&eA.property.type==="PrivateIdentifier"&&AA.state.private_derived.get(eA.property.name))return call(eA);AA.next()}function PropertyDefinition(eA,AA){if(AA.state.analysis.runes&&eA.value!=null&&eA.value.type==="CallExpression"){const tA=get_rune(eA.value,AA.state.scope);if(tA==="$state"||tA==="$state.raw"||tA==="$derived")return{...eA,value:eA.value.arguments.length===0?null:AA.visit(eA.value.arguments[0])};if(tA==="$derived.by")return{...eA,value:eA.value.arguments.length===0?null:call(AA.visit(eA.value.arguments[0]))}}AA.next()}const WHITESPACE_INSENSITIVE_ATTRIBUTES=["class","style"];function build_element_attributes(eA,AA){const tA=[],gA=[],iA=[];let IA=null,BA=!1,sA=-1,QA=-1,CA=new Set;for(const oA of eA.attributes)if(oA.type==="Attribute")oA.name==="value"?eA.name==="textarea"?(oA.value!==!0&&Array.isArray(oA.value)&&oA.value[0].type==="Text"&&regex_starts_with_newline.test(oA.value[0].data)&&(oA.value[0].data=`
59
- `+oA.value[0].data),IA=call("$.escape",build_attribute_value$1(oA.value,AA))):eA.name!=="select"&&tA.push(oA):is_event_attribute(oA)?(oA.name==="onload"||oA.name==="onerror")&&is_load_error_element(eA.name)&&CA.add(oA.name):(oA.name==="class"?sA=tA.length:oA.name==="style"&&(QA=tA.length),tA.push(oA));else if(oA.type==="BindDirective"){if(oA.name==="value"&&eA.name==="select"||oA.name==="value"&&tA.some(nA=>nA.type==="Attribute"&&nA.name==="type"&&is_text_attribute(nA)&&nA.value[0].data==="file")||oA.name==="this")continue;const EA=binding_properties[oA.name];if(EA!=null&&EA.omit_in_ssr)continue;if(is_content_editable_binding(oA.name))IA=AA.visit(oA.expression);else if(oA.name==="value"&&eA.name==="textarea")IA=call("$.escape",AA.visit(oA.expression));else if(oA.name==="group"){const nA=eA.attributes.find(uA=>uA.type==="Attribute"&&uA.name==="value");if(!nA)continue;const cA=eA.attributes.some(uA=>uA.type==="Attribute"&&uA.name==="type"&&is_text_attribute(uA)&&uA.value[0].data==="checkbox");tA.push(create_attribute("checked",-1,-1,[{type:"ExpressionTag",start:-1,end:-1,parent:oA,expression:cA?call(member(oA.expression,"includes"),build_attribute_value$1(nA.value,AA)):binary("===",oA.expression,build_attribute_value$1(nA.value,AA)),metadata:{expression:create_expression_metadata()}}]))}else tA.push(create_attribute(oA.name,-1,-1,[{type:"ExpressionTag",start:-1,end:-1,parent:oA,expression:oA.expression,metadata:{expression:create_expression_metadata()}}]))}else oA.type==="SpreadAttribute"?(tA.push(oA),BA=!0,is_load_error_element(eA.name)&&(CA.add("onload"),CA.add("onerror"))):oA.type==="UseDirective"?is_load_error_element(eA.name)&&(CA.add("onload"),CA.add("onerror")):oA.type==="ClassDirective"?gA.push(oA):oA.type==="StyleDirective"?iA.push(oA):oA.type==="LetDirective"||AA.visit(oA);if(gA.length>0&&!BA){const oA=build_class_directives$1(gA,tA[sA]??null);sA===-1&&tA.push(oA)}if(iA.length>0&&!BA&&(build_style_directives$1(iA,tA[QA]??null,AA),QA>-1&&tA.splice(QA,1)),BA)build_element_spread_attributes(eA,tA,iA,gA,AA);else for(const oA of tA){if(oA.value===!0||is_text_attribute(oA)){const cA=get_attribute_name$1(eA,oA),uA=build_attribute_value$1(oA.value,AA,WHITESPACE_INSENSITIVE_ATTRIBUTES.includes(cA)).value;(cA!=="class"||uA)&&AA.state.template.push(literal(` ${oA.name}${is_boolean_attribute(cA)&&uA===!0?"":`="${uA===!0?"":String(uA)}"`}`));continue}const EA=get_attribute_name$1(eA,oA),nA=build_attribute_value$1(oA.value,AA,WHITESPACE_INSENSITIVE_ATTRIBUTES.includes(EA));AA.state.template.push(call("$.attr",literal(EA),nA,is_boolean_attribute(EA)&&true_instance))}if(CA.size!==0)for(const oA of CA)AA.state.template.push(literal(` ${oA}="this.__e=event"`));return IA}function get_attribute_name$1(eA,AA){let tA=AA.name;return!eA.metadata.svg&&!eA.metadata.mathml&&(tA=tA.toLowerCase()),tA}function build_element_spread_attributes(eA,AA,tA,gA,iA){let IA,BA,sA=0;if(gA.length>0||iA.state.analysis.css.hash){const oA=gA.map(EA=>init(EA.name,EA.expression.type==="Identifier"&&EA.expression.name===EA.name?id$1(EA.name):iA.visit(EA.expression)));iA.state.analysis.css.hash&&oA.unshift(init(iA.state.analysis.css.hash,literal(!0))),IA=object$2(oA)}if(tA.length>0){const oA=tA.map(EA=>init(EA.name,EA.value===!0?id$1(EA.name):build_attribute_value$1(EA.value,iA,!0)));BA=object$2(oA)}eA.metadata.svg||eA.metadata.mathml?sA|=ELEMENT_IS_NAMESPACED|ELEMENT_PRESERVE_ATTRIBUTE_CASE:is_custom_element_node(eA)&&(sA|=ELEMENT_PRESERVE_ATTRIBUTE_CASE);const CA=[object$2(AA.map(oA=>{if(oA.type==="Attribute"){const EA=get_attribute_name$1(eA,oA),nA=build_attribute_value$1(oA.value,iA,WHITESPACE_INSENSITIVE_ATTRIBUTES.includes(EA));return prop("init",key$2(EA),nA)}return spread(iA.visit(oA))})),IA,BA,sA?literal(sA):void 0];iA.state.template.push(call("$.spread_attributes",...CA))}function build_class_directives$1(eA,AA){const tA=eA.map(IA=>conditional(IA.expression,literal(IA.name),literal("")));AA===null&&(AA=create_attribute("class",-1,-1,[]));const gA=get_attribute_chunks(AA.value),iA=gA.at(-1);return(iA==null?void 0:iA.type)==="Text"?(iA.data+=" ",iA.raw+=" "):iA&&gA.push({type:"Text",start:-1,end:-1,parent:AA,data:" ",raw:" "}),gA.push({type:"ExpressionTag",start:-1,end:-1,parent:AA,expression:call(member(call(member(array(tA),"filter"),id$1("Boolean")),id$1("join")),literal(" ")),metadata:{expression:create_expression_metadata()}}),AA.value=gA,AA}function build_style_directives$1(eA,AA,tA){const gA=eA.map(IA=>{let BA=IA.value===!0?id$1(IA.name):build_attribute_value$1(IA.value,tA,!0);return IA.modifiers.includes("important")&&(BA=binary("+",BA,literal(" !important"))),init(IA.name,BA)}),iA=AA===null?object$2(gA):call("$.merge_styles",build_attribute_value$1(AA.value,tA,!0),object$2(gA));tA.state.template.push(call("$.add_styles",iA))}function RegularElement$1(eA,AA){const tA=determine_namespace_for_children(eA,AA.state.namespace),gA={...AA.state,namespace:tA,preserve_whitespace:AA.state.preserve_whitespace||eA.name==="pre"||eA.name==="textarea"};AA.state.template.push(literal(`<${eA.name}`));const iA=build_element_attributes(eA,{...AA,state:gA});if(AA.state.template.push(literal(">")),(eA.name==="script"||eA.name==="style")&&eA.fragment.nodes.length===1){AA.state.template.push(literal(eA.fragment.nodes[0].data),literal(`</${eA.name}>`));return}const{hoisted:IA,trimmed:BA}=clean_nodes(eA,eA.fragment.nodes,AA.path,tA,{...gA,scope:gA.scopes.get(eA.fragment)},gA.preserve_whitespace,gA.options.preserveComments);for(const sA of IA)AA.visit(sA,gA);if(dev){const sA=locator(eA.start);gA.template.push(stmt(call("$.push_element",id$1("$$payload"),literal(eA.name),literal(sA.line),literal(sA.column))))}if(iA===null)process_children$1(BA,{...AA,state:gA});else{let sA=iA;iA.type!=="Identifier"&&(sA=id$1(gA.scope.generate("$$body")),gA.template.push(const_builder(sA,iA)));const QA={...gA,template:[],init:[]};process_children$1(BA,{...AA,state:QA}),gA.template.push(if_builder(sA,block(build_template([sA])),block([...QA.init,...build_template(QA.template)])))}is_void(eA.name)||gA.template.push(literal(`</${eA.name}>`)),dev&&gA.template.push(stmt(call("$.pop_element")))}function RenderTag$1(eA,AA){const tA=unwrap_optional(eA.expression).callee,gA=unwrap_optional(eA.expression).arguments,iA=AA.visit(tA),IA=gA.map(BA=>AA.visit(BA));AA.state.template.push(stmt((eA.expression.type==="CallExpression"?call:maybe_call)(iA,id$1("$$payload"),...IA))),AA.state.skip_hydration_boundaries||AA.state.template.push(empty_comment)}function SlotElement$1(eA,AA){const tA=[],gA=[];let iA=literal("default");for(const QA of eA.attributes)if(QA.type==="SpreadAttribute")gA.push(AA.visit(QA));else if(QA.type==="Attribute"){const CA=build_attribute_value$1(QA.value,AA,!1,!0);QA.name==="name"?iA=CA:QA.name!=="slot"&&tA.push(init(QA.name,CA))}const IA=gA.length===0?object$2(tA):call("$.spread_props",array([object$2(tA),...gA])),BA=eA.fragment.nodes.length===0?literal(null):thunk(AA.visit(eA.fragment)),sA=call("$.slot",id$1("$$payload"),id$1("$$props"),iA,IA,BA);AA.state.template.push(empty_comment,stmt(sA),empty_comment)}function SnippetBlock$1(eA,AA){const tA=function_declaration(eA.expression,[id$1("$$payload"),...eA.parameters],AA.visit(eA.body));tA.___snippet=!0,AA.state.init.push(tA)}function SpreadAttribute$1(eA,AA){return AA.visit(eA.expression)}function SvelteComponent$1(eA,AA){build_inline_component(eA,AA.visit(eA.expression),AA)}function SvelteElement$1(eA,AA){let tA=AA.visit(eA.tag);if(tA.type!=="Identifier"){const BA=AA.state.scope.generate("$$tag");AA.state.init.push(const_builder(BA,tA)),tA=id$1(BA)}dev&&(eA.fragment.nodes.length>0&&AA.state.init.push(stmt(call("$.validate_void_dynamic_element",thunk(tA)))),AA.state.init.push(stmt(call("$.validate_dynamic_element_tag",thunk(tA)))));const gA={...AA.state,namespace:determine_namespace_for_children(eA,AA.state.namespace),template:[],init:[]};if(build_element_attributes(eA,{...AA,state:gA}),dev){const BA=locator(eA.start);AA.state.template.push(stmt(call("$.push_element",id$1("$$payload"),tA,literal(BA.line),literal(BA.column))))}const iA=block([...gA.init,...build_template(gA.template)]),IA=AA.visit(eA.fragment,gA);AA.state.template.push(stmt(call("$.element",id$1("$$payload"),tA,iA.body.length>0&&thunk(iA),IA.body.length>0&&thunk(IA)))),dev&&AA.state.template.push(stmt(call("$.pop_element")))}function SvelteFragment$1(eA,AA){AA.state.template.push(AA.visit(eA.fragment))}function SvelteHead$1(eA,AA){const tA=AA.visit(eA.fragment);AA.state.template.push(stmt(call("$.head",id$1("$$payload"),arrow([id$1("$$payload")],tA))))}function SvelteSelf$1(eA,AA){build_inline_component(eA,id$1(AA.state.analysis.name),AA)}function TitleElement$1(eA,AA){const tA=[literal("<title>")];process_children$1(eA.fragment.nodes,{...AA,state:{...AA.state,template:tA}}),tA.push(literal("</title>")),AA.state.init.push(...build_template(tA,id$1("$$payload.title"),"="))}function UpdateExpression$1(eA,AA){var gA;const tA=eA.argument;return tA.type==="Identifier"&&((gA=AA.state.scope.get(tA.name))==null?void 0:gA.kind)==="store_sub"?call(eA.prefix?"$.update_store_pre":"$.update_store",assignment("??=",id$1("$$store_subs"),object$2([])),literal(tA.name),id$1(tA.name.slice(1)),eA.operator==="--"&&literal(-1)):AA.next()}function VariableDeclaration$1(eA,AA){var gA;const tA=[];if(AA.state.analysis.runes)for(const iA of eA.declarations){const IA=iA.init,BA=get_rune(IA,AA.state.scope);if(!BA||BA==="$effect.tracking"||BA==="$inspect"||BA==="$effect.root"){tA.push(AA.visit(iA));continue}if(BA==="$props"){let CA=!1,oA=walk(iA.id,null,{RestElement(EA,nA){nA.path.at(-1)===iA.id&&(CA=!0)},AssignmentPattern(EA){if(EA.right.type==="CallExpression"&&get_rune(EA.right,AA.state.scope)==="$bindable"){const nA=EA.right.arguments.length?AA.visit(EA.right.arguments[0]):id$1("undefined");return assignment_pattern(EA.left,nA)}}});oA.type==="ObjectPattern"&&CA?oA.properties.splice(oA.properties.length-1,0,prop("init",id$1("$$slots"),id$1("$$slots")),prop("init",id$1("$$events"),id$1("$$events"))):oA.type==="Identifier"&&(oA=object_pattern([prop("init",id$1("$$slots"),id$1("$$slots")),prop("init",id$1("$$events"),id$1("$$events")),rest(id$1(oA.name))])),tA.push(declarator(AA.visit(oA),id$1("$$props")));continue}const sA=IA.arguments,QA=sA.length===0?id$1("undefined"):AA.visit(sA[0]);if(BA==="$derived.by"){tA.push(declarator(AA.visit(iA.id),call(QA)));continue}if(iA.id.type==="Identifier"){tA.push(declarator(iA.id,QA));continue}if(BA==="$derived"){tA.push(declarator(AA.visit(iA.id),QA));continue}tA.push(...create_state_declarators$1(iA,AA.state.scope,QA))}else for(const iA of eA.declarations){const IA=AA.state.scope.get_bindings(iA),BA=IA.some(QA=>QA.kind==="state"),sA=IA.some(QA=>QA.kind==="bindable_prop");if(!BA&&!sA){tA.push(AA.visit(iA));continue}if(sA){if(iA.id.type!=="Identifier"){const EA=AA.state.scope.generate("tmp"),nA=extract_paths(iA.id);tA.push(declarator(id$1(EA),AA.visit(iA.init)));for(const cA of nA){const uA=(gA=cA.expression)==null?void 0:gA.call(cA,id$1(EA)),lA=cA.node.name,hA=AA.state.scope.get(lA),dA=member(id$1("$$props"),literal(hA.prop_alias??lA),!0);tA.push(declarator(cA.node,build_fallback(dA,uA)))}continue}const QA=AA.state.scope.get(iA.id.name),CA=member(id$1("$$props"),literal(QA.prop_alias??iA.id.name),!0);let oA=CA;if(iA.init){const EA=AA.visit(iA.init);oA=build_fallback(CA,EA)}tA.push(declarator(iA.id,oA));continue}tA.push(...create_state_declarators$1(iA,AA.state.scope,iA.init&&AA.visit(iA.init)))}return{...eA,declarations:tA}}function create_state_declarators$1(eA,AA,tA){if(eA.id.type==="Identifier")return[declarator(eA.id,tA)];const gA=AA.generate("tmp"),iA=extract_paths(eA.id);return[declarator(id$1(gA),tA),...iA.map(IA=>{var sA;const BA=(sA=IA.expression)==null?void 0:sA.call(IA,id$1(gA));return declarator(IA.node,BA)})]}const global_visitors={_:set_scope,AssignmentExpression:AssignmentExpression$1,CallExpression:CallExpression$1,ClassBody:ClassBody$1,ExpressionStatement:ExpressionStatement$1,Identifier:Identifier$1,LabeledStatement:LabeledStatement$1,MemberExpression:MemberExpression$1,PropertyDefinition,UpdateExpression:UpdateExpression$1,VariableDeclaration:VariableDeclaration$1},template_visitors={AwaitBlock:AwaitBlock$1,Component:Component$1,ConstTag:ConstTag$1,DebugTag:DebugTag$1,EachBlock:EachBlock$1,Fragment:Fragment$1,HtmlTag:HtmlTag$1,IfBlock:IfBlock$1,KeyBlock:KeyBlock$1,RegularElement:RegularElement$1,RenderTag:RenderTag$1,SlotElement:SlotElement$1,SnippetBlock:SnippetBlock$1,SpreadAttribute:SpreadAttribute$1,SvelteComponent:SvelteComponent$1,SvelteElement:SvelteElement$1,SvelteFragment:SvelteFragment$1,SvelteHead:SvelteHead$1,SvelteSelf:SvelteSelf$1,TitleElement:TitleElement$1};function server_component(eA,AA){const tA={analysis:eA,options:AA,scope:eA.module.scope,scopes:eA.module.scopes,hoisted:[import_all("$","svelte/internal/server")],legacy_reactive_statements:new Map,init:null,template:null,namespace:AA.namespace,preserve_whitespace:AA.preserveWhitespace,private_derived:new Map,skip_hydration_boundaries:!1},gA=walk(eA.module.ast,tA,global_visitors),iA=walk(eA.instance.ast,{...tA,scopes:eA.instance.scopes},{...global_visitors,ImportDeclaration(cA){return tA.hoisted.push(cA),empty},ExportNamedDeclaration(cA,uA){return cA.declaration?uA.visit(cA.declaration):empty}}),IA=walk(eA.template.ast,{...tA,scopes:eA.template.scopes},{...global_visitors,...template_visitors}),BA=[];for(const[cA]of eA.reactive_statements){const uA=[...tA.legacy_reactive_statements].find(([lA])=>lA===cA);if(uA===void 0)throw new Error("Could not find reactive statement");if(cA.body.type==="ExpressionStatement"&&cA.body.expression.type==="AssignmentExpression")for(const lA of extract_identifiers(cA.body.expression.left)){const hA=eA.instance.scope.get(lA.name);(hA==null?void 0:hA.kind)==="legacy_reactive"&&BA.push(declarator(lA))}iA.body.push(uA[1])}if(BA.length>0&&iA.body.unshift({type:"VariableDeclaration",kind:"let",declarations:BA}),eA.uses_component_bindings){const cA=IA.body.filter(lA=>lA.type==="FunctionDeclaration"&&lA.___snippet),uA=IA.body.filter(lA=>lA.type!=="FunctionDeclaration"||!lA.___snippet);IA.body=[...cA,let_builder("$$settled",true_instance),let_builder("$$inner_payload"),stmt(function_builder(id$1("$$render_inner"),[id$1("$$payload")],block(uA))),do_while(unary("!",id$1("$$settled")),block([stmt(assignment("=",id$1("$$settled"),true_instance)),stmt(assignment("=",id$1("$$inner_payload"),call("$.copy_payload",id$1("$$payload")))),stmt(call("$$render_inner",id$1("$$inner_payload")))])),stmt(call("$.assign_payload",id$1("$$payload"),id$1("$$inner_payload")))]}[...eA.instance.scope.declarations.values()].some(cA=>cA.kind==="store_sub")&&(iA.body.unshift(var_builder("$$store_subs")),IA.body.push(if_builder(id$1("$$store_subs"),stmt(call("$.unsubscribe_stores",id$1("$$store_subs"))))));const sA=[];for(const[cA,uA]of eA.instance.scope.declarations)uA.kind==="bindable_prop"&&!cA.startsWith("$$")&&sA.push(init(uA.prop_alias??cA,id$1(cA)));for(const{name:cA,alias:uA}of eA.exports)sA.push(init(uA??cA,id$1(cA)));sA.length>0&&IA.body.push(stmt(call("$.bind_props",id$1("$$props"),object$2(sA))));const QA=block([...iA.body,...IA.body]);let CA=dev||eA.needs_context;if(CA&&(QA.body.unshift(stmt(call("$.push",dev&&id$1(eA.name)))),QA.body.push(stmt(call("$.pop")))),eA.uses_rest_props){const cA=eA.exports.map(({name:uA,alias:lA})=>lA??uA);for(const[uA,lA]of eA.instance.scope.declarations)lA.kind==="bindable_prop"&&cA.push(lA.prop_alias??uA);QA.body.unshift(const_builder("$$restProps",call("$.rest_props",id$1("$$sanitized_props"),array(cA.map(uA=>literal(uA))))))}(eA.uses_props||eA.uses_rest_props)&&QA.body.unshift(const_builder("$$sanitized_props",call("$.sanitize_props",id$1("$$props")))),eA.uses_slots&&QA.body.unshift(const_builder("$$slots",call("$.sanitize_slots",id$1("$$props"))));const oA=[...tA.hoisted,...gA.body];if(eA.css.ast!==null&&AA.css==="injected"&&!AA.customElement){const cA=literal(eA.css.hash),uA=literal(render_stylesheet(eA.source,eA,AA).code);oA.push(const_builder("$$css",object$2([init("hash",cA),init("code",uA)]))),QA.body.unshift(stmt(call("$$payload.css.add",id$1("$$css"))))}let EA=CA||sA.length>0||eA.needs_props||eA.uses_props||eA.uses_rest_props||eA.uses_slots||eA.slot_names.size>0;const nA=function_declaration(id$1(eA.name),EA?[id$1("$$payload"),id$1("$$props")]:[id$1("$$payload")],QA);return AA.compatibility.componentApi===4?(oA.unshift(imports([["render","$$_render"]],"svelte/server")),oA.push(nA,stmt(assignment("=",member_id(`${eA.name}.render`),function_builder(null,[id$1("$$props"),id$1("$$opts")],block([return_builder(call("$$_render",id$1(eA.name),object$2([init("props",id$1("$$props")),init("context",member(id$1("$$opts"),"context",!1,!0))])))])))),export_default(id$1(eA.name)))):dev?oA.push(nA,stmt(assignment("=",member_id(`${eA.name}.render`),function_builder(null,[],block([throw_error$1("Component.render(...) is no longer valid in Svelte 5. See https://svelte-5-preview.vercel.app/docs/breaking-changes#components-are-no-longer-classes for more information")])))),export_default(id$1(eA.name))):oA.push(export_default(nA)),dev&&oA.unshift(stmt(assignment("=",member(id$1(eA.name),"$.FILENAME",!0),literal(filename)))),{type:"Program",sourceType:"module",body:oA}}function server_module(eA,AA){const tA={analysis:eA,options:AA,scope:eA.module.scope,scopes:eA.module.scopes,legacy_reactive_statements:new Map,private_derived:new Map},gA=walk(eA.module.ast,tA,global_visitors);return{type:"Program",sourceType:"module",body:[import_all("$","svelte/internal/server"),...gA.body]}}function get_states_and_calls(eA){let AA=0,tA=0;for(let gA=0;gA<eA.length;gA++){const iA=eA[gA];iA.type==="ExpressionTag"&&(iA.metadata.expression.has_call&&tA++,iA.metadata.expression.has_state&&AA++)}return{states:AA,calls:tA}}function build_template_literal(eA,AA,tA){const gA=[];let iA=quasi("");const IA=[iA],{states:BA,calls:sA}=get_states_and_calls(eA);let QA=sA>0,CA=BA>0,oA=sA>1;for(let nA=0;nA<eA.length;nA++){const cA=eA[nA];if(cA.type==="Text")iA.value.cooked+=cA.data;else if(cA.type==="ExpressionTag"&&cA.expression.type==="Literal")cA.expression.value!=null&&(iA.value.cooked+=cA.expression.value+"");else{if(oA){const uA=id$1(tA.scope.generate("stringified_text"));tA.init.push(const_builder(uA,create_derived(tA,thunk(logical("??",AA(cA.expression,tA),literal("")))))),gA.push(call("$.get",uA))}else{if(eA.length===1)return{value:AA(cA.expression,tA),has_state:CA,has_call:QA};gA.push(logical("??",AA(cA.expression,tA),literal("")))}iA=quasi("",nA+1===eA.length),IA.push(iA)}}for(const nA of IA)nA.value.raw=sanitize_template_string(nA.value.cooked);return{value:template(IA,gA),has_state:CA,has_call:QA}}function build_update(eA){const AA=eA.type==="ExpressionStatement"?eA.expression:block([eA]);return stmt(call("$.template_effect",thunk(AA)))}function build_render_statement(eA){return eA.length===1?build_update(eA[0]):stmt(call("$.template_effect",thunk(block(eA))))}function parse_directive_name(eA){const AA=eA.split(".");let tA=AA.shift(),gA=id$1(tA);for(;tA=AA.shift();){const iA=!regex_is_valid_identifier.test(tA);gA=member(gA,iA?literal(tA):id$1(tA),iA)}return gA}function build_update_assignment(eA,AA,tA,gA,iA){eA.init.push(var_builder(AA,tA)),eA.update.push(if_builder(binary("!==",id$1(AA),assignment("=",id$1(AA),gA)),block([iA])))}function build_bind_this(eA,AA,{state:tA,visit:gA}){const iA=[],IA=[],BA=[],sA={...tA.transform};walk(eA,null,{Identifier(nA,{path:cA}){if(BA.includes(nA.name))return;BA.push(nA.name);const uA=cA.at(-1);if(!is_reference(nA,uA))return;const lA=tA.scope.get(nA.name);if(lA){for(const[hA,dA]of tA.scopes)if(hA.type==="EachBlock"&&dA===lA.scope){iA.push(nA),IA.push(gA(nA)),sA[nA.name]&&(sA[nA.name]={...sA[nA.name],read:DA=>DA});break}}}});const QA={...tA,transform:sA},CA=gA(eA,QA),oA=gA(assignment("=",eA,id$1("$$value")),QA);let EA=CA;for(;EA.type==="MemberExpression";)EA.optional=!0,EA=EA.object;return call("$.bind_this",AA,arrow([id$1("$$value"),...iA],oA),arrow([...iA],CA),IA.length>0&&thunk(array(IA)))}function validate_binding(eA,AA,tA){const gA=object$1(AA.expression),iA=gA&&eA.scope.get(gA.name);if((iA==null?void 0:iA.kind)==="store_sub")return;const IA=locator(AA.start);eA.init.push(stmt(call("$.validate_binding",literal(eA.analysis.source.slice(AA.start,AA.end)),thunk(tA.object),thunk(tA.computed?tA.property:literal(tA.property.name)),IA&&literal(IA.line),IA&&literal(IA.column))))}function AnimateDirective(eA,AA){const tA=eA.expression===null?literal(null):thunk(AA.visit(eA.expression));AA.state.after_update.push(stmt(call("$.animation",AA.state.node,thunk(AA.visit(parse_directive_name(eA.name))),tA)))}const visit_function=(eA,AA)=>{const tA=eA.metadata;let gA={...AA.state,in_constructor:!1};if(eA.type==="FunctionExpression"){const iA=AA.path.at(-1);gA.in_constructor=iA.type==="MethodDefinition"&&iA.kind==="constructor"}if((tA==null?void 0:tA.hoisted)===!0){const iA=build_hoisted_params(eA,AA);return{...eA,params:iA,body:AA.visit(eA.body,gA)}}AA.next(gA)};function ArrowFunctionExpression(eA,AA){return visit_function(eA,AA)}function AssignmentExpression(eA,AA){const tA=visit_assignment_expression(eA,AA,build_assignment)??AA.next();return is_ignored(eA,"ownership_invalid_mutation")?call("$.skip_ownership_validation",thunk(tA)):tA}function build_assignment(eA,AA,tA,gA){if(gA.state.analysis.runes&&AA.type==="MemberExpression"&&AA.object.type==="ThisExpression"&&AA.property.type==="PrivateIdentifier"){const sA=gA.state.private_state.get(AA.property.name);if(sA!==void 0){let QA=!1,CA=gA.visit(build_assignment_value(eA,AA,tA));if(should_proxy(CA,gA.state.scope)&&(QA=!0,CA=sA.kind==="raw_state"?CA:build_proxy_reassignment(CA,member(this_instance,sA.id))),gA.state.in_constructor){if(QA)return assignment(eA,gA.visit(AA),CA)}else return call("$.set",AA,CA)}}let iA=AA;for(;iA.type==="MemberExpression";)iA=iA.object;if(iA.type!=="Identifier")return null;const IA=gA.state.scope.get(iA.name);if(!IA)return null;const BA=Object.hasOwn(gA.state.transform,iA.name)?gA.state.transform[iA.name]:null;if(iA===AA&&(BA!=null&&BA.assign)){let sA=gA.visit(build_assignment_value(eA,AA,tA));const QA=gA.path.map(oA=>oA.type);return!(QA.at(-1)==="BindDirective"&&QA.at(-2)==="RegularElement")&&IA.kind!=="prop"&&IA.kind!=="bindable_prop"&&gA.state.analysis.runes&&should_proxy(sA,gA.state.scope)&&(sA=IA.kind==="raw_state"?sA:build_proxy_reassignment(sA,iA)),BA.assign(iA,sA)}return BA!=null&&BA.mutate?BA.mutate(iA,assignment(eA,gA.visit(AA),gA.visit(tA))):null}function visit_event_attribute(eA,AA){let tA=!1,gA=eA.name.slice(2);is_capture_event(gA)&&(gA=gA.slice(0,-7),tA=!0);const iA=Array.isArray(eA.value)?eA.value[0]:eA.value;let IA=build_event_handler(iA.expression,iA.metadata.expression,AA);if(eA.metadata.delegated){let BA;if(AA.state.events.has(gA)||AA.state.events.add(gA),eA.metadata.delegated.hoisted){if(eA.metadata.delegated.function===iA.expression){const CA=AA.state.scope.root.unique("on_"+gA);AA.state.hoisted.push(var_builder(CA,IA)),IA=CA}const sA=eA.metadata.delegated.function.metadata.hoisted_params,QA=[IA,...sA];BA=array(QA)}else BA=IA;AA.state.init.push(stmt(assignment("=",member(AA.state.node,"__"+gA),BA)))}else{const BA=stmt(build_event(gA,AA.state.node,IA,tA,is_passive_event(gA)?!0:void 0)),sA=AA.path.at(-1).type;sA==="SvelteDocument"||sA==="SvelteWindow"||sA==="SvelteBody"?AA.state.init.push(BA):AA.state.after_update.push(BA)}}function build_event(eA,AA,tA,gA,iA){return call("$.event",literal(eA),AA,tA,gA&&true_instance,iA===void 0?void 0:literal(iA))}function build_event_handler(eA,AA,tA){var IA;if(eA===null)return function_builder(null,[id$1("$$arg")],block([stmt(call("$.bubble_event.call",this_instance,id$1("$$props"),id$1("$$arg")))]));let gA=tA.visit(eA);if(gA.type==="ArrowFunctionExpression"||gA.type==="FunctionExpression"||gA.type==="Identifier"&&((IA=tA.state.scope.get(gA.name))==null?void 0:IA.declaration_kind)!=="import")return gA;if(AA.has_call){const BA=id$1(tA.state.scope.generate("event_handler"));tA.state.init.push(var_builder(BA,call("$.derived",thunk(gA)))),gA=call("$.get",BA)}let iA=call(member(gA,"apply",!1,!0),this_instance,id$1("$$args"));if(dev){const BA=locator(eA.start),sA=eA.type==="CallExpression"&&eA.arguments.length===0&&eA.callee.type==="Identifier";iA=call("$.apply",thunk(gA),this_instance,id$1("$$args"),id$1(tA.state.analysis.name),BA&&array([literal(BA.line),literal(BA.column)]),has_side_effects(eA)&&true_instance,sA&&true_instance)}return function_builder(null,[rest(id$1("$$args"))],block([stmt(iA)]))}function has_side_effects(eA){return eA.type==="CallExpression"||eA.type==="NewExpression"||eA.type==="AssignmentExpression"||eA.type==="UpdateExpression"?!0:eA.type==="SequenceExpression"?eA.expressions.some(has_side_effects):!1}function Attribute(eA,AA){is_event_attribute(eA)&&visit_event_attribute(eA,AA)}function AwaitBlock(eA,AA){AA.state.template.push("<!>");const tA=thunk(AA.visit(eA.expression));let gA,iA;if(eA.then){const IA={...AA,state:{...AA.state,transform:{...AA.state.transform}}},BA=eA.value&&create_derived_block_argument(eA.value,IA),sA=[id$1("$$anchor")];BA&&sA.push(BA.id);const QA=(BA==null?void 0:BA.declarations)??[],CA=IA.visit(eA.then,IA.state);gA=arrow(sA,block([...QA,...CA.body]))}if(eA.catch){const IA={...AA,state:{...AA.state}},BA=eA.error&&create_derived_block_argument(eA.error,IA),sA=[id$1("$$anchor")];BA&&sA.push(BA.id);const QA=(BA==null?void 0:BA.declarations)??[],CA=IA.visit(eA.catch,IA.state);iA=arrow(sA,block([...QA,...CA.body]))}AA.state.init.push(stmt(call("$.await",AA.state.node,tA,eA.pending?arrow([id$1("$$anchor")],AA.visit(eA.pending)):literal(null),gA,iA)))}function BinaryExpression(eA,AA){if(dev){const tA=eA.operator;if(tA==="==="||tA==="!==")return call("$.strict_equals",AA.visit(eA.left),AA.visit(eA.right),tA==="!=="&&literal(!1));if(tA==="=="||tA==="!=")return call("$.equals",AA.visit(eA.left),AA.visit(eA.right),tA==="!="&&literal(!1))}AA.next()}function build_set_attributes(eA,AA,tA,gA,iA,IA,BA,sA){let QA=!1;const CA=[];for(const EA of eA)if(EA.type==="Attribute"){const{value:nA}=build_attribute_value(EA.value,AA);if(is_event_attribute(EA)&&(nA.type==="ArrowFunctionExpression"||nA.type==="FunctionExpression")){const cA=AA.state.scope.generate("event_handler");AA.state.init.push(var_builder(cA,nA)),CA.push(init(EA.name,id$1(cA)))}else CA.push(init(EA.name,nA));QA||(QA=EA.metadata.expression.has_state)}else{QA=!0;let nA=AA.visit(EA);if(EA.metadata.expression.has_call){const cA=id$1(sA.scope.generate("spread_with_call"));sA.init.push(const_builder(cA,create_derived(sA,thunk(nA)))),nA=call("$.get",cA)}CA.push(spread(nA))}const oA=call("$.set_attributes",gA,QA?iA:literal(null),object$2(CA),AA.state.analysis.css.hash!==""&&literal(AA.state.analysis.css.hash),IA,BA,is_ignored(tA,"hydration_attribute_changed")&&true_instance);if(QA){AA.state.init.push(let_builder(iA));const EA=stmt(assignment("=",iA,oA));return AA.state.update.push(EA),!0}return AA.state.init.push(stmt(oA)),!1}function build_style_directives(eA,AA,tA,gA){const iA=tA.state;for(const IA of eA){const{has_state:BA,has_call:sA}=IA.metadata.expression;let QA=IA.value===!0?build_getter$1({name:IA.name,type:"Identifier"},tA.state):build_attribute_value(IA.value,tA).value;if(sA){const oA=id$1(iA.scope.generate("style_directive"));iA.init.push(const_builder(oA,create_derived(iA,thunk(QA)))),QA=call("$.get",oA)}const CA=stmt(call("$.set_style",AA,literal(IA.name),QA,IA.modifiers.includes("important")?true_instance:void 0));!gA&&sA?iA.init.push(build_update(CA)):gA||BA||sA?iA.update.push(CA):iA.init.push(CA)}}function build_class_directives(eA,AA,tA,gA){const iA=tA.state;for(const IA of eA){const{has_state:BA,has_call:sA}=IA.metadata.expression;let QA=tA.visit(IA.expression);if(sA){const oA=id$1(iA.scope.generate("class_directive"));iA.init.push(const_builder(oA,create_derived(iA,thunk(QA)))),QA=call("$.get",oA)}const CA=stmt(call("$.toggle_class",AA,literal(IA.name),QA));!gA&&sA?iA.init.push(build_update(CA)):gA||BA||sA?iA.update.push(CA):iA.init.push(CA)}}function build_attribute_value(eA,AA){if(eA===!0)return{has_state:!1,has_call:!1,value:literal(!0)};if(!Array.isArray(eA)||eA.length===1){const tA=Array.isArray(eA)?eA[0]:eA;return tA.type==="Text"?{has_state:!1,has_call:!1,value:literal(tA.data)}:{has_state:tA.metadata.expression.has_state,has_call:tA.metadata.expression.has_call,value:AA.visit(tA.expression)}}return build_template_literal(eA,AA.visit,AA.state)}function get_attribute_name(eA,AA){return!eA.metadata.svg&&!eA.metadata.mathml?normalize_attribute(AA.name):AA.name}function BindDirective(eA,AA){var QA;const tA=eA.expression,gA=binding_properties[eA.name],iA=AA.path.at(-1);dev&&AA.state.analysis.runes&&tA.type==="MemberExpression"&&(eA.name!=="this"||AA.path.some(({type:CA})=>CA==="IfBlock"||CA==="EachBlock"||CA==="AwaitBlock"||CA==="KeyBlock"))&&!is_ignored(eA,"binding_property_non_reactive")&&validate_binding(AA.state,eA,AA.visit(tA));const IA=thunk(AA.visit(tA));let BA=unthunk(arrow([id$1("$$value")],AA.visit(assignment("=",tA,id$1("$$value")))));IA===BA&&(BA=void 0);let sA;if(gA!=null&&gA.event)sA=call("$.bind_property",literal(eA.name),literal(gA.event),AA.state.node,BA??IA,gA.bidirectional&&IA);else switch(eA.name){case"online":sA=call("$.bind_online",BA??IA);break;case"scrollX":case"scrollY":sA=call("$.bind_window_scroll",literal(eA.name==="scrollX"?"x":"y"),IA,BA);break;case"innerWidth":case"innerHeight":case"outerWidth":case"outerHeight":sA=call("$.bind_window_size",literal(eA.name),BA??IA);break;case"activeElement":sA=call("$.bind_active_element",BA??IA);break;case"muted":sA=call("$.bind_muted",AA.state.node,IA,BA);break;case"paused":sA=call("$.bind_paused",AA.state.node,IA,BA);break;case"volume":sA=call("$.bind_volume",AA.state.node,IA,BA);break;case"playbackRate":sA=call("$.bind_playback_rate",AA.state.node,IA,BA);break;case"currentTime":sA=call("$.bind_current_time",AA.state.node,IA,BA);break;case"buffered":sA=call("$.bind_buffered",AA.state.node,BA??IA);break;case"played":sA=call("$.bind_played",AA.state.node,BA??IA);break;case"seekable":sA=call("$.bind_seekable",AA.state.node,BA??IA);break;case"seeking":sA=call("$.bind_seeking",AA.state.node,BA??IA);break;case"ended":sA=call("$.bind_ended",AA.state.node,BA??IA);break;case"readyState":sA=call("$.bind_ready_state",AA.state.node,BA??IA);break;case"contentRect":case"contentBoxSize":case"borderBoxSize":case"devicePixelContentBoxSize":sA=call("$.bind_resize_observer",AA.state.node,literal(eA.name),BA??IA);break;case"clientWidth":case"clientHeight":case"offsetWidth":case"offsetHeight":sA=call("$.bind_element_size",AA.state.node,literal(eA.name),BA??IA);break;case"value":{(iA==null?void 0:iA.type)==="RegularElement"&&iA.name==="select"?sA=call("$.bind_select_value",AA.state.node,IA,BA):sA=call("$.bind_value",AA.state.node,IA,BA);break}case"files":sA=call("$.bind_files",AA.state.node,IA,BA);break;case"this":sA=build_bind_this(tA,AA.state.node,AA);break;case"textContent":case"innerHTML":case"innerText":sA=call("$.bind_content_editable",literal(eA.name),AA.state.node,IA,BA);break;case"checked":sA=call("$.bind_checked",AA.state.node,IA,BA);break;case"focused":sA=call("$.bind_focused",AA.state.node,BA??IA);break;case"group":{const CA=eA.metadata.parent_each_blocks.map(EA=>EA.metadata.keyed&&EA.index?call("$.get",EA.metadata.index):EA.metadata.index);let oA=IA;if((iA==null?void 0:iA.type)==="RegularElement"){const EA=(QA=iA.attributes.find(nA=>nA.type==="Attribute"&&nA.name==="value"&&!is_text_attribute(nA)&&nA.value!==!0))==null?void 0:QA.value;EA!==void 0&&(oA=thunk(block([stmt(build_attribute_value(EA,AA).value),return_builder(AA.visit(tA))])))}sA=call("$.bind_group",eA.metadata.binding_group_name,array(CA),AA.state.node,oA,BA??IA);break}default:throw new Error("unknown binding "+eA.name)}if(eA.name==="this")AA.state.init.push(stmt(sA));else{const CA=iA.type==="RegularElement"&&iA.attributes.find(oA=>oA.type==="UseDirective");AA.state.after_update.push(stmt(CA?call("$.effect",thunk(sA)):sA))}}function BlockStatement(eA,AA){add_state_transformers(AA),AA.next()}function BreakStatement(eA,AA){if(AA.state.analysis.runes||!eA.label||eA.label.name!=="$")return;if(AA.path[1].type==="LabeledStatement"&&AA.path[1].label.name==="$")return return_builder()}function CallExpression(eA,AA){switch(get_rune(eA,AA.state.scope)){case"$host":return id$1("$$props.$$host");case"$effect.tracking":return call("$.effect_tracking");case"$state.snapshot":return call("$.snapshot",AA.visit(eA.arguments[0]),is_ignored(eA,"state_snapshot_uncloneable")&&true_instance);case"$effect.root":return call("$.effect_root",...eA.arguments.map(tA=>AA.visit(tA)));case"$inspect":case"$inspect().with":return transform_inspect_rune(eA,AA)}if(dev&&eA.callee.type==="MemberExpression"&&eA.callee.object.type==="Identifier"&&eA.callee.object.name==="console"&&AA.state.scope.get("console")===null&&eA.callee.property.type==="Identifier"&&["debug","dir","error","group","groupCollapsed","info","log","trace","warn"].includes(eA.callee.property.name))return call(eA.callee,spread(call("$.log_if_contains_state",literal(eA.callee.property.name),...eA.arguments.map(tA=>AA.visit(tA)))));AA.next()}function ClassBody(eA,AA){var sA,QA;if(!AA.state.analysis.runes){AA.next();return}const tA=new Map,gA=new Map,iA=[];for(const CA of eA.body)if(CA.type==="PropertyDefinition"&&(CA.key.type==="Identifier"||CA.key.type==="PrivateIdentifier"||CA.key.type==="Literal")){const oA=CA.key.type,EA=get_name(CA.key);if(!EA)continue;const nA=oA==="PrivateIdentifier";if(nA&&iA.push(EA),((sA=CA.value)==null?void 0:sA.type)==="CallExpression"){const cA=get_rune(CA.value,AA.state.scope);if(cA==="$state"||cA==="$state.raw"||cA==="$derived"||cA==="$derived.by"){const uA={kind:cA==="$state"?"state":cA==="$state.raw"?"raw_state":cA==="$derived.by"?"derived_by":"derived",id:nA?CA.key:null};nA?gA.set(EA,uA):tA.set(EA,uA)}}}for(const[CA,oA]of tA){let EA=CA;for(;iA.includes(EA);)EA="_"+EA;iA.push(EA),oA.id=private_id(EA)}const IA=[],BA={...AA.state,public_state:tA,private_state:gA};for(const CA of eA.body){if(CA.type==="PropertyDefinition"&&(CA.key.type==="Identifier"||CA.key.type==="PrivateIdentifier"||CA.key.type==="Literal")){const oA=get_name(CA.key);if(!oA)continue;const EA=CA.key.type==="PrivateIdentifier",nA=(EA?gA:tA).get(oA);if(((QA=CA.value)==null?void 0:QA.type)==="CallExpression"&&nA!==void 0){let cA=null;if(CA.value.arguments.length>0){const uA=AA.visit(CA.value.arguments[0],BA);cA=nA.kind==="state"?call("$.state",should_proxy(uA,AA.state.scope)?call("$.proxy",uA):uA):nA.kind==="raw_state"?call("$.state",uA):nA.kind==="derived_by"?call("$.derived",uA):call("$.derived",thunk(uA))}else cA=call("$.state");if(EA)IA.push(prop_def(nA.id,cA));else{const uA=member(this_instance,nA.id);if(IA.push(prop_def(nA.id,cA)),IA.push(method("get",CA.key,[],[return_builder(call("$.get",uA))])),nA.kind==="state"){const lA=id$1("value"),hA=member(this_instance,nA.id);IA.push(method("set",CA.key,[lA],[stmt(call("$.set",uA,build_proxy_reassignment(lA,hA)))]))}if(nA.kind==="raw_state"){const lA=id$1("value");IA.push(method("set",CA.key,[lA],[stmt(call("$.set",uA,lA))]))}dev&&(nA.kind==="derived"||nA.kind==="derived_by")&&IA.push(method("set",CA.key,[id$1("_")],[throw_error$1(`Cannot update a derived property ('${oA}')`)]))}continue}}IA.push(AA.visit(CA,BA))}return dev&&tA.size>0&&IA.push(method("method",id$1("$.ADD_OWNER"),[id$1("owner")],Array.from(tA.keys()).map(CA=>stmt(call("$.add_owner",call("$.get",member(this_instance,private_id(CA))),id$1("owner"),literal(!1),is_ignored(eA,"ownership_invalid_binding")&&true_instance))),!0)),{...eA,body:IA}}function get_name(eA){var AA;return eA.type==="Literal"?(AA=eA.value)==null?void 0:AA.toString().replace(regex_invalid_identifier_chars,"_"):eA.name}function Comment(eA,AA){AA.state.template.push(`<!--${eA.data}-->`)}function build_component(eA,AA,tA,gA=tA.state.node){var RA,GA;const iA=[],IA=[],BA={default:{...tA.state,scope:eA.metadata.scopes.default,transform:{...tA.state.transform}}},sA={},QA={},CA=[];let oA=null;const EA=[];let nA=!!determine_slot(eA),cA=!1;function uA(yA){const LA=iA.at(-1),KA=Array.isArray(LA),bA=KA?LA:[];bA.push(yA),KA||iA.push(bA)}if(nA)for(const yA of eA.attributes)yA.type==="LetDirective"&&IA.push(tA.visit(yA));for(const yA of eA.attributes)if(yA.type==="LetDirective")nA||IA.push(tA.visit(yA,BA.default));else if(yA.type==="OnDirective"){yA.expression||(tA.state.analysis.needs_props=!0);let LA=build_event_handler(yA.expression,yA.metadata.expression,tA);yA.modifiers.includes("once")&&(LA=call("$.once",LA)),(QA[RA=yA.name]||(QA[RA]=[])).push(LA)}else if(yA.type==="SpreadAttribute"){const LA=tA.visit(yA);if(yA.metadata.expression.has_state){let KA=LA;if(yA.metadata.expression.has_call){const bA=id$1(tA.state.scope.generate("spread_element"));tA.state.init.push(var_builder(bA,call("$.derived",thunk(KA)))),KA=call("$.get",bA)}iA.push(thunk(KA))}else iA.push(LA)}else if(yA.type==="Attribute"){if(yA.name.startsWith("--")){CA.push(init(yA.name,build_attribute_value(yA.value,tA).value));continue}yA.name==="slot"&&(nA=!0),yA.name==="children"&&(cA=!0);const{value:LA}=build_attribute_value(yA.value,tA);if(yA.metadata.expression.has_state){let KA=LA;if(get_attribute_chunks(yA.value).some(SA=>SA.type==="ExpressionTag"&&SA.expression.type!=="Identifier"&&SA.expression.type!=="MemberExpression")){const SA=id$1(tA.state.scope.generate(yA.name));tA.state.init.push(var_builder(SA,create_derived(tA.state,thunk(LA)))),KA=call("$.get",SA)}uA(get(yA.name,[return_builder(KA)]))}else uA(init(yA.name,LA))}else if(yA.type==="BindDirective"){const LA=tA.visit(yA.expression);if(dev&&LA.type==="MemberExpression"&&tA.state.analysis.runes&&!is_ignored(eA,"binding_property_non_reactive")&&validate_binding(tA.state,yA,LA),yA.name==="this")oA=yA.expression;else{dev&&EA.push(stmt(call(id$1("$.add_owner_effect"),thunk(LA),id$1(AA),is_ignored(eA,"ownership_invalid_binding")&&true_instance)));const KA=yA.expression.type==="Identifier"&&((GA=tA.state.scope.get(yA.expression.name))==null?void 0:GA.kind)==="store_sub";uA(KA?get(yA.name,[stmt(call("$.mark_store_binding")),return_builder(LA)]):get(yA.name,[return_builder(LA)]));const bA=assignment("=",yA.expression,id$1("$$value"));uA(set(yA.name,[stmt(tA.visit(bA))]))}}if(nA&&tA.state.init.push(...IA),Object.keys(QA).length>0){const yA=object$2(Object.keys(QA).map(LA=>init(LA,QA[LA].length>1?array(QA[LA]):QA[LA][0])));uA(init("$$events",yA))}const lA=[],hA=[];for(const yA of eA.fragment.nodes){if(yA.type==="SnippetBlock"){tA.visit(yA,{...tA.state,init:lA}),uA(prop("init",yA.expression,yA.expression)),hA.push(init(yA.expression.name==="children"?"default":yA.expression.name,true_instance));continue}let LA=determine_slot(yA)??"default";(sA[LA]||(sA[LA]=[])).push(yA)}for(const yA of Object.keys(sA)){const LA=tA.visit({...eA.fragment,nodes:sA[yA]},yA==="default"?nA?tA.state:BA.default:{...tA.state,scope:eA.metadata.scopes[yA],transform:{...tA.state.transform}});if(LA.body.length===0)continue;const KA=arrow([id$1("$$anchor"),id$1("$$slotProps")],block([...yA==="default"&&!nA?IA:[],...LA.body]));yA==="default"&&!cA?IA.length===0&&sA.default.every(bA=>bA.type!=="SvelteFragment"||!bA.attributes.some(SA=>SA.type==="LetDirective"))?(uA(init("children",dev?call("$.wrap_snippet",id$1(tA.state.analysis.name),KA):KA)),hA.push(init(yA,true_instance))):(hA.push(init(yA,KA)),uA(init("children",id$1("$.invalid_default_snippet")))):hA.push(init(yA,KA))}hA.length>0&&uA(init("$$slots",object$2(hA))),!tA.state.analysis.runes&&eA.attributes.some(yA=>yA.type==="BindDirective")&&uA(init("$$legacy",true_instance));const dA=iA.length===0||iA.length===1&&Array.isArray(iA[0])?object$2(iA[0]||[]):call("$.spread_props",...iA.map(yA=>Array.isArray(yA)?object$2(yA):yA));let DA=yA=>call(eA.type==="SvelteComponent"?AA:tA.visit(member_id(AA)),yA,dA);if(oA!==null){const yA=DA;DA=LA=>build_bind_this(oA,yA(LA),tA)}const wA=[...lA];if(eA.type==="SvelteComponent"){const yA=DA;DA=LA=>call("$.component",LA,thunk(tA.visit(eA.expression)),arrow([id$1("$$anchor"),id$1(AA)],block([...EA,stmt(yA(id$1("$$anchor")))])))}else wA.push(...EA);return Object.keys(CA).length>0?(tA.state.template.push(tA.state.metadata.namespace==="svg"?"<g><!></g>":'<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>'),wA.push(stmt(call("$.css_props",gA,thunk(object$2(CA)))),stmt(DA(member(gA,"lastChild"))),stmt(call("$.reset",gA)))):(tA.state.template.push("<!>"),wA.push(stmt(DA(gA)))),wA.length>1?block(wA):wA[0]}function Component(eA,AA){if(eA.metadata.dynamic){const gA=build_component(eA,"$$component",AA,id$1("$$anchor"));AA.state.init.push(stmt(call("$.component",AA.state.node,thunk(AA.visit(member_id(eA.name))),arrow([id$1("$$anchor"),id$1("$$component")],block([gA])))));return}const tA=build_component(eA,eA.name,AA);AA.state.init.push(tA)}function ConstTag(eA,AA){const tA=eA.declaration.declarations[0];if(tA.id.type==="Identifier")AA.state.init.push(const_builder(tA.id,create_derived(AA.state,thunk(AA.visit(tA.init))))),AA.state.transform[tA.id.name]={read:get_value},dev&&AA.state.init.push(stmt(call("$.get",tA.id)));else{const gA=extract_identifiers(tA.id),iA=id$1(AA.state.scope.generate("computed_const")),IA={...AA.state.transform};for(const QA of gA)delete IA[QA.name];const BA={...AA.state,transform:IA},sA=arrow([],block([const_builder(AA.visit(tA.id,BA),AA.visit(tA.init,BA)),return_builder(object$2(gA.map(QA=>prop("init",QA,QA))))]));AA.state.init.push(const_builder(iA,create_derived(AA.state,sA))),dev&&AA.state.init.push(stmt(call("$.get",iA)));for(const QA of gA)AA.state.transform[QA.name]={read:CA=>member(call("$.get",iA),CA)}}}function DebugTag(eA,AA){const tA=object$2(eA.identifiers.map(iA=>{const IA=call("$.snapshot",AA.visit(iA));return prop("init",iA,AA.state.analysis.runes?IA:call("$.untrack",thunk(IA)))})),gA=call("console.log",tA);AA.state.init.push(stmt(call("$.template_effect",thunk(block([stmt(gA),debugger_builder])))))}function EachBlock(eA,AA){var yA,LA;const tA=eA.metadata,gA=AA.visit(eA.expression,{...AA.state,scope:AA.state.scope.parent});tA.is_controlled||AA.state.template.push("<!>"),tA.array_name!==null&&AA.state.init.push(const_builder(tA.array_name,thunk(gA)));let iA=0;eA.metadata.keyed&&eA.index&&(iA|=EACH_INDEX_REACTIVE);const IA=((yA=eA.key)==null?void 0:yA.type)==="Identifier"&&eA.context.type==="Identifier"&&eA.context.name===eA.key.name;let BA;for(const KA of eA.metadata.expression.dependencies)if(KA.kind==="store_sub"){BA=!0;break}for(const KA of eA.metadata.expression.dependencies)if(!(KA.scope.function_depth>=AA.state.scope.function_depth)&&(!AA.state.analysis.runes||!IA||BA)){iA|=EACH_ITEM_REACTIVE;break}AA.state.analysis.runes&&!BA&&(iA|=EACH_ITEM_IMMUTABLE),eA.key&&eA.body.nodes.some(KA=>KA.type!=="RegularElement"&&KA.type!=="SvelteElement"?!1:KA.attributes.some(bA=>bA.type==="AnimateDirective"))&&(iA|=EACH_IS_ANIMATED),tA.is_controlled&&(iA|=EACH_IS_CONTROLLED);let sA="";if(eA.expression.type==="Identifier"||eA.expression.type==="MemberExpression"){const KA=object$1(eA.expression);if(KA){const bA=AA.state.scope.get(KA.name);(bA==null?void 0:bA.kind)==="store_sub"&&(sA=KA.name)}}const QA=collect_parent_each_blocks(AA).flatMap(KA=>{const bA=AA.visit(KA.expression),SA=build_transitive_dependencies(KA.metadata.expression.dependencies,AA);return[bA,...SA]});if(tA.array_name)QA.push(call(tA.array_name));else{QA.push(gA);const KA=build_transitive_dependencies(tA.expression.dependencies,AA);QA.push(...KA)}const CA={...AA.state,transform:{...AA.state.transform}},oA={...AA.state,transform:{...AA.state.transform}},EA=tA.contains_group_binding||!eA.index?tA.index:id$1(eA.index),nA=eA.context.type==="Identifier"?eA.context:id$1("$$item");let cA=tA.contains_group_binding,uA=!1;eA.index&&(CA.transform[eA.index]={read:KA=>(cA=!0,iA&EACH_INDEX_REACTIVE?get_value(KA):KA)},oA.transform[eA.index]={read:KA=>(uA=!0,KA)});const lA=[],hA=call("$.invalidate_inner_signals",thunk(sequence$1(QA))),dA=sA?call("$.invalidate_store",id$1("$$stores"),literal(sA)):void 0,DA=[];if(AA.state.analysis.runes||DA.push(hA),dA&&DA.push(dA),eA.context.type==="Identifier"){const KA=AA.state.scope.get(eA.context.name);CA.transform[eA.context.name]={read:bA=>KA.reassigned?member(tA.array_name?call(tA.array_name):gA,EA,!0):iA&EACH_ITEM_REACTIVE?get_value(bA):bA,assign:(bA,SA)=>{cA=!0;const MA=member(tA.array_name?call(tA.array_name):gA,EA,!0);return sequence$1([assignment("=",MA,SA),...DA])},mutate:(bA,SA)=>sequence$1([SA,...DA])},delete oA.transform[eA.context.name]}else{const KA=iA&EACH_ITEM_REACTIVE?call("$.get",nA):nA;for(const bA of extract_paths(eA.context)){const SA=bA.node.name,MA=bA.has_default_value,NA=thunk(AA.visit((LA=bA.expression)==null?void 0:LA.call(bA,KA),CA));lA.push(let_builder(bA.node,MA?call("$.derived_safe_equal",NA):NA));const FA=MA?get_value:call;CA.transform[SA]={read:FA,assign:(qA,UA)=>{const mA=bA.update_expression(KA);return sequence$1([assignment("=",mA,UA),...DA])},mutate:(qA,UA)=>sequence$1([UA,...DA])},dev&&lA.push(stmt(FA(id$1(SA)))),delete oA.transform[SA]}}const wA=AA.visit(eA.body,CA);let RA=id$1("$.index");if(eA.metadata.keyed){const KA=AA.visit(eA.key,oA);RA=arrow(uA?[eA.context,EA]:[eA.context],KA)}eA.index&&tA.contains_group_binding&&lA.push(let_builder(eA.index,EA)),dev&&eA.metadata.keyed&&AA.state.init.push(stmt(call("$.validate_each_keys",thunk(gA),RA)));const GA=[AA.state.node,literal(iA),tA.array_name?tA.array_name:thunk(gA),RA,arrow(cA?[id$1("$$anchor"),nA,EA]:[id$1("$$anchor"),nA],block(lA.concat(wA.body)))];eA.fallback&&GA.push(arrow([id$1("$$anchor")],AA.visit(eA.fallback))),AA.state.init.push(stmt(call("$.each",...GA)))}function collect_parent_each_blocks(eA){return eA.path.filter(AA=>AA.type==="EachBlock")}function build_transitive_dependencies(eA,AA){const tA=new Set;for(const gA of eA){const iA=collect_transitive_dependencies(gA);for(const IA of iA)tA.add(IA)}return[...tA].map(gA=>build_getter$1({...gA.node},AA.state))}function collect_transitive_dependencies(eA,AA=new Set){if(eA.kind!=="legacy_reactive")return[];for(const tA of eA.legacy_dependencies)if(!AA.has(tA)){AA.add(tA);for(const gA of collect_transitive_dependencies(tA,AA))AA.add(gA)}return[...AA]}function ExportNamedDeclaration(eA,AA){return AA.state.is_instance?eA.declaration?AA.visit(eA.declaration):empty:AA.next()}function ExpressionStatement(eA,AA){if(eA.expression.type==="CallExpression"){const tA=get_rune(eA.expression,AA.state.scope);if(tA==="$effect"||tA==="$effect.pre"){const gA=tA==="$effect"?"$.user_effect":"$.user_pre_effect",iA=AA.visit(eA.expression.arguments[0]),IA=call(gA,iA);return IA.callee.loc=eA.expression.callee.loc,stmt(IA)}}AA.next()}function process_children(eA,AA,tA,{visit:gA,state:iA}){const IA=iA.metadata.bound_contenteditable;let BA=AA,sA=0,QA=[];function CA(nA){return sA===0?BA(nA):call("$.sibling",BA(!1),(nA||sA!==1)&&literal(sA),nA&&true_instance)}function oA(nA,cA){const uA=CA(nA);let lA=uA;return lA.type!=="Identifier"&&(lA=id$1(iA.scope.generate(cA)),iA.init.push(var_builder(lA,uA))),BA=()=>lA,sA=1,lA}function EA(nA){if(nA.every(wA=>wA.type==="Text")){sA+=1,iA.template.push(nA.map(wA=>wA.raw).join(""));return}iA.template.push(" ");const{has_state:cA,has_call:uA,value:lA}=build_template_literal(nA,gA,iA),hA=nA.length===1,dA=oA(hA,"text"),DA=stmt(call("$.set_text",dA,lA));uA&&!IA?iA.init.push(build_update(DA)):cA&&!IA?iA.update.push(DA):iA.init.push(stmt(assignment("=",member(dA,"nodeValue"),lA)))}for(const nA of eA)if(nA.type==="Text"||nA.type==="ExpressionTag")QA.push(nA);else{QA.length>0&&(EA(QA),QA=[]);let cA=iA;if(is_static_element(nA))sA+=1;else if(nA.type==="EachBlock"&&eA.length===1&&tA)nA.metadata.is_controlled=!0;else{const uA=oA(!1,nA.type==="RegularElement"?nA.name:"node");cA={...iA,node:uA}}gA(nA,cA)}QA.length>0&&EA(QA),sA>1&&(sA-=1,iA.init.push(stmt(call("$.next",sA!==1&&literal(sA)))))}function is_static_element(eA){if(eA.type!=="RegularElement"||eA.fragment.metadata.dynamic)return!1;for(const AA of eA.attributes)if(AA.type!=="Attribute"||is_event_attribute(AA)||AA.value!==!0&&!is_text_attribute(AA)||AA.name==="autofocus"||AA.name==="muted"||eA.name==="option"&&AA.name==="value"||eA.name.includes("-"))return!1;return!0}function Fragment(eA,AA){const tA=AA.path.at(-1)??eA,gA=infer_namespace(AA.state.metadata.namespace,tA,eA.nodes),{hoisted:iA,trimmed:IA,is_standalone:BA,is_text_first:sA}=clean_nodes(tA,eA.nodes,AA.path,gA,AA.state,AA.state.preserve_whitespace,AA.state.options.preserveComments);if(iA.length===0&&IA.length===0)return block([]);const QA=IA.length===1&&IA[0].type==="RegularElement",CA=IA.length===1&&(IA[0].type==="SvelteFragment"||IA[0].type==="TitleElement"),oA=AA.state.scope.root.unique("root"),EA=[];let nA;const cA={...AA.state,before_init:[],init:[],update:[],after_update:[],template:[],locations:[],transform:{...AA.state.transform},metadata:{context:{template_needs_import_node:!1,template_contains_script_tag:!1},namespace:gA,bound_contenteditable:AA.state.metadata.bound_contenteditable}};for(const lA of iA)AA.visit(lA,cA);sA&&EA.push(stmt(call("$.next")));const uA=(lA,hA)=>{let dA=call(get_template_function(gA,cA),...hA);dev&&(dA=call("$.add_locations",dA,member(id$1(AA.state.analysis.name),"$.FILENAME",!0),build_locations(cA.locations))),AA.state.hoisted.push(var_builder(lA,dA))};if(QA){const lA=IA[0],hA=id$1(AA.state.scope.generate(lA.name));AA.visit(lA,{...cA,node:hA});const dA=[join_template(cA.template)];cA.metadata.context.template_needs_import_node&&dA.push(literal(TEMPLATE_USE_IMPORT_NODE)),uA(oA,dA),EA.push(var_builder(hA,call(oA)),...cA.before_init,...cA.init),nA=stmt(call("$.append",id$1("$$anchor"),hA))}else if(CA)AA.visit(IA[0],cA),EA.push(...cA.before_init,...cA.init);else if(IA.length===1&&IA[0].type==="Text"){const lA=id$1(AA.state.scope.generate("text"));EA.push(var_builder(lA,call("$.text",literal(IA[0].data))),...cA.before_init,...cA.init),nA=stmt(call("$.append",id$1("$$anchor"),lA))}else if(IA.length>0){const lA=id$1(AA.state.scope.generate("fragment"));if(IA.some(dA=>dA.type==="ExpressionTag")&&IA.every(dA=>dA.type==="Text"||dA.type==="ExpressionTag")){const dA=id$1(AA.state.scope.generate("text"));process_children(IA,()=>dA,!1,{...AA,state:cA}),EA.push(var_builder(dA,call("$.text")),...cA.before_init,...cA.init),nA=stmt(call("$.append",id$1("$$anchor"),dA))}else{if(BA)process_children(IA,()=>id$1("$$anchor"),!1,{...AA,state:cA});else{process_children(IA,wA=>call("$.first_child",lA,wA&&true_instance),!1,{...AA,state:cA});let DA=TEMPLATE_FRAGMENT;cA.metadata.context.template_needs_import_node&&(DA|=TEMPLATE_USE_IMPORT_NODE),cA.template.length===1&&cA.template[0]==="<!>"?EA.push(var_builder(lA,call("$.comment"))):(uA(oA,[join_template(cA.template),literal(DA)]),EA.push(var_builder(lA,call(oA)))),nA=stmt(call("$.append",id$1("$$anchor"),lA))}EA.push(...cA.before_init,...cA.init)}}else EA.push(...cA.before_init,...cA.init);return cA.update.length>0&&EA.push(build_render_statement(cA.update)),EA.push(...cA.after_update),nA!==void 0&&EA.push(nA),block(EA)}function join_template(eA){let AA=quasi("");const tA=template([AA],[]);for(const gA of eA)typeof gA=="string"?AA.value.cooked+=gA:(tA.expressions.push(gA),tA.quasis.push(AA=quasi("")));for(const gA of tA.quasis)gA.value.raw=sanitize_template_string(gA.value.cooked);return AA.tail=!0,tA}function get_template_function(eA,AA){const tA=AA.metadata.context.template_contains_script_tag;return eA==="svg"?tA?"$.svg_template_with_script":"$.ns_template":eA==="mathml"?"$.mathml_template":tA?"$.template_with_script":"$.template"}function build_locations(eA){return array(eA.map(AA=>{const tA=array([literal(AA[0]),literal(AA[1])]);return AA.length===3&&tA.elements.push(build_locations(AA[2])),tA}))}function FunctionDeclaration(eA,AA){var gA;const tA={...AA.state,in_constructor:!1};if(((gA=eA.metadata)==null?void 0:gA.hoisted)===!0){const iA=build_hoisted_params(eA,AA),IA=AA.visit(eA.body,tA);return AA.state.hoisted.push({...eA,params:iA,body:IA}),empty}AA.next(tA)}function FunctionExpression(eA,AA){return visit_function(eA,AA)}function HtmlTag(eA,AA){AA.state.template.push("<!>"),AA.state.init.push(stmt(call("$.html",AA.state.node,thunk(AA.visit(eA.expression)),literal(AA.state.metadata.namespace==="svg"),literal(AA.state.metadata.namespace==="mathml"),is_ignored(eA,"hydration_html_changed")&&true_instance)))}function Identifier(eA,AA){const tA=AA.path.at(-1);if(is_reference(eA,tA)){if(eA.name==="$$props")return id$1("$$sanitized_props");const gA=AA.state.scope.get(eA.name);if(AA.state.analysis.runes&&gA!==null&&eA!==gA.node&&gA.kind==="rest_prop"){const iA=AA.path.at(-2);if((tA==null?void 0:tA.type)==="MemberExpression"&&!tA.computed&&(iA==null?void 0:iA.type)!=="AssignmentExpression"&&(iA==null?void 0:iA.type)!=="UpdateExpression")return id$1("$$props")}return build_getter$1(eA,AA.state)}}function IfBlock(eA,AA){AA.state.template.push("<!>");const tA=AA.visit(eA.consequent),gA=[AA.state.node,thunk(AA.visit(eA.test)),arrow([id$1("$$anchor")],tA)];(eA.alternate||eA.elseif)&&gA.push(eA.alternate?arrow([id$1("$$anchor")],AA.visit(eA.alternate)):literal(null)),eA.elseif&&gA.push(literal(!0)),AA.state.init.push(stmt(call("$.if",...gA)))}function ImportDeclaration(eA,AA){if("hoisted"in AA.state)return AA.state.hoisted.push(eA),empty;AA.next()}function KeyBlock(eA,AA){AA.state.template.push("<!>");const tA=AA.visit(eA.expression),gA=AA.visit(eA.fragment);AA.state.init.push(stmt(call("$.key",AA.state.node,thunk(tA),arrow([id$1("$$anchor")],gA))))}function LabeledStatement(eA,AA){if(AA.state.analysis.runes||AA.path.length>1||eA.label.name!=="$"){AA.next();return}const tA=AA.state.analysis.reactive_statements.get(eA);if(!tA)return;let gA=AA.visit(eA.body);gA.type!=="BlockStatement"&&(gA=block([gA]));const iA=gA.body,IA=[];for(const BA of tA.dependencies){if(BA.kind==="normal"&&BA.declaration_kind!=="import")continue;const sA=BA.node.name;let QA=build_getter$1(id$1(sA),AA.state);(sA==="$$props"||sA==="$$restProps"||BA.kind==="bindable_prop")&&(QA=call("$.deep_read_state",QA)),IA.push(QA)}return AA.state.legacy_reactive_statements.set(eA,stmt(call("$.legacy_pre_effect",IA.length>0?thunk(sequence$1(IA)):thunk(block([])),thunk(block(iA))))),empty}function LetDirective(eA,AA){if(eA.expression&&eA.expression.type!=="Identifier"){const tA=AA.state.scope.generate(eA.name),gA=AA.state.scope.get_bindings(eA);for(const iA of gA)AA.state.transform[iA.node.name]={read:IA=>member(call("$.get",id$1(tA)),IA)};return const_builder(tA,call("$.derived",thunk(block([let_builder(eA.expression.type==="ObjectExpression"?object_pattern(eA.expression.properties):array_pattern(eA.expression.elements),member(id$1("$$slotProps"),eA.name)),return_builder(object$2(gA.map(iA=>init(iA.node.name,iA.node))))]))))}else{const tA=eA.expression===null?eA.name:eA.expression.name;return AA.state.transform[tA]={read:gA=>call("$.get",gA)},const_builder(tA,create_derived(AA.state,thunk(member(id$1("$$slotProps"),eA.name))))}}function MemberExpression(eA,AA){if(eA.property.type==="PrivateIdentifier"&&AA.state.private_state.get(eA.property.name))return AA.state.in_constructor?member(eA,"v"):call("$.get",eA);AA.next()}const modifiers=["stopPropagation","stopImmediatePropagation","preventDefault","self","trusted","once"];function OnDirective(eA,AA){eA.expression||(AA.state.analysis.needs_props=!0);let tA=build_event_handler(eA.expression,eA.metadata.expression,AA);for(const IA of modifiers)eA.modifiers.includes(IA)&&(tA=call("$."+IA,tA));const gA=eA.modifiers.includes("capture"),iA=eA.modifiers.includes("passive")||(eA.modifiers.includes("nonpassive")?!1:void 0);return build_event(eA.name,AA.state.node,tA,gA,iA)}function Program(eA,AA){if(!AA.state.analysis.runes){AA.state.transform.$$props={read:tA=>({...tA,name:"$$sanitized_props"})};for(const[tA,gA]of AA.state.scope.declarations)if(gA.declaration_kind==="import"&&gA.mutated){const{start:iA,end:IA}=AA.state.analysis.instance.ast,BA=gA.initial;if(BA.start>iA&&BA.end<IA){const QA=id$1("$$_import_"+tA);AA.state.transform[tA]={read:CA=>call(QA),mutate:(CA,oA)=>call(QA,oA)},AA.state.legacy_reactive_imports.push(var_builder(QA,call("$.reactive_import",thunk(id$1(tA)))))}}}for(const[tA,gA]of AA.state.scope.declarations){if(gA.kind==="store_sub"){let iA;const IA=()=>iA??(iA=AA.visit(id$1(tA.slice(1))));AA.state.transform[tA]={read:call,assign:(BA,sA)=>call("$.store_set",IA(),sA),mutate:(BA,sA)=>{const QA=call("$.untrack",BA);function CA(oA){return oA.type==="MemberExpression"?{...oA,object:CA(oA.object),property:oA.property}:QA}return call("$.store_mutate",IA(),assignment(sA.operator,CA(sA.left),sA.right),QA)},update:BA=>call(BA.prefix?"$.update_pre_store":"$.update_store",build_getter$1(id$1(tA.slice(1)),AA.state),call(BA.argument),BA.operator==="--"&&literal(-1))}}if(gA.kind==="prop"||gA.kind==="bindable_prop")if(is_prop_source(gA,AA.state))AA.state.transform[tA]={read:call,assign:(iA,IA)=>call(iA,IA),mutate:(iA,IA)=>gA.kind==="bindable_prop"?call(iA,IA,true_instance):IA,update:iA=>call(iA.prefix?"$.update_pre_prop":"$.update_prop",iA.argument,iA.operator==="--"&&literal(-1))};else if(gA.prop_alias){const iA=key$2(gA.prop_alias);AA.state.transform[tA]={read:IA=>member(id$1("$$props"),iA,iA.type==="Literal")}}else AA.state.transform[tA]={read:iA=>member(id$1("$$props"),iA)}}add_state_transformers(AA),AA.next()}function RegularElement(eA,AA){let tA=[-1,-1];if(dev){const yA=locator(eA.start);yA&&(tA[0]=yA.line,tA[1]=yA.column,AA.state.locations.push(tA))}if(eA.name==="noscript"){AA.state.template.push("<noscript></noscript>");return}const gA=is_custom_element_node(eA);gA&&(AA.state.metadata.context.template_needs_import_node=!0),eA.name==="script"&&(AA.state.metadata.context.template_contains_script_tag=!0),AA.state.template.push(`<${eA.name}`);const iA=[],IA=[],BA=[],sA=[],QA=[],CA=new Map,oA=new Map;let EA=eA.metadata.has_spread,nA=!1;for(const yA of eA.attributes)switch(yA.type){case"AnimateDirective":sA.push(yA);break;case"Attribute":if(yA.name==="is"&&AA.state.metadata.namespace==="html"){const{value:LA}=build_attribute_value(yA.value,AA);if(LA.type==="Literal"&&typeof LA.value=="string"){AA.state.template.push(` is="${escape_html(LA.value,!0)}"`);continue}}iA.push(yA),CA.set(yA.name,yA);break;case"BindDirective":oA.set(yA.name,yA),sA.push(yA);break;case"ClassDirective":IA.push(yA);break;case"LetDirective":QA.push(AA.visit(yA));break;case"OnDirective":sA.push(yA);break;case"SpreadAttribute":iA.push(yA);break;case"StyleDirective":BA.push(yA);break;case"TransitionDirective":sA.push(yA);break;case"UseDirective":nA=!0,sA.push(yA);break}const cA={...AA.state,after_update:[]};for(const yA of sA)if(yA.type==="OnDirective"){const LA=AA.visit(yA);cA.after_update.push(stmt(nA?call("$.effect",thunk(LA)):LA))}else AA.visit(yA,cA);if(eA.name==="input"&&(EA||oA.has("value")||oA.has("checked")||oA.has("group")||iA.some(yA=>yA.type==="Attribute"&&(yA.name==="value"||yA.name==="checked")&&!is_text_attribute(yA)))&&AA.state.init.push(stmt(call("$.remove_input_defaults",AA.state.node))),eA.name==="textarea"){const yA=CA.get("value")??CA.get("checked"),LA=yA&&!is_text_attribute(yA);(EA||oA.has("value")||LA)&&AA.state.init.push(stmt(call("$.remove_textarea_child",AA.state.node)))}eA.name==="select"&&oA.has("value")&&setup_select_synchronization(oA.get("value"),AA),AA.state.init.push(...QA);const uA=AA.state.node;let lA=EA;if(EA){const yA=id$1(AA.state.scope.generate("attributes"));build_set_attributes(iA,AA,eA,uA,yA,(eA.metadata.svg||eA.metadata.mathml||is_custom_element_node(eA))&&true_instance,eA.name.includes("-")&&true_instance,AA.state),eA.name==="select"&&!oA.has("value")&&(AA.state.init.push(stmt(call("$.init_select",uA,thunk(member(yA,"value"))))),AA.state.update.push(if_builder(binary("in",literal("value"),yA),block([stmt(call("$.select_option",uA,member(yA,"value")))]))))}else{const yA=eA.name==="option"||eA.name==="select"||oA.has("group")||oA.has("checked");for(const LA of iA){if(is_event_attribute(LA)){visit_event_attribute(LA,AA);continue}if(yA&&LA.name==="value"){build_element_special_value_attribute(eA.name,uA,LA,AA);continue}if(!gA&&LA.name!=="autofocus"&&LA.name!=="muted"&&(LA.value===!0||is_text_attribute(LA))){const bA=get_attribute_name(eA,LA),SA=is_text_attribute(LA)?LA.value[0].data:!0;(bA!=="class"||SA)&&AA.state.template.push(` ${LA.name}${is_boolean_attribute(bA)&&SA===!0?"":`="${SA===!0?"":escape_html(SA,!0)}"`}`);continue}(gA?build_custom_element_attribute_update_assignment(uA,LA,AA):build_element_attribute_update_assignment(eA,uA,LA,AA))&&(lA=!0)}}build_class_directives(IA,uA,AA,lA),build_style_directives(BA,uA,AA,lA),eA.name==="img"&&(EA||CA.has("loading"))&&AA.state.after_update.push(stmt(call("$.handle_lazy_img",uA))),is_load_error_element(eA.name)&&(EA||nA||CA.has("onload")||CA.has("onerror"))&&AA.state.after_update.push(stmt(call("$.replay_events",uA))),AA.state.template.push(">");const hA={...AA.state.metadata,namespace:determine_namespace_for_children(eA,AA.state.metadata.namespace)};if(oA.has("innerHTML")||oA.has("innerText")||oA.has("textContent")){const yA=CA.get("contenteditable");yA&&(yA.value===!0||is_text_attribute(yA)&&yA.value[0].data==="true")&&(hA.bound_contenteditable=!0)}const dA={...AA.state,metadata:hA,locations:[],scope:AA.state.scopes.get(eA.fragment),preserve_whitespace:AA.state.preserve_whitespace||eA.name==="pre"||eA.name==="textarea"},{hoisted:DA,trimmed:wA}=clean_nodes(eA,eA.fragment.nodes,AA.path,dA.metadata.namespace,dA,eA.name==="script"||dA.preserve_whitespace,dA.options.preserveComments),RA={...dA,init:[],update:[],after_update:[]};for(const yA of DA)AA.visit(yA,RA);const GA=wA.every(yA=>yA.type==="Text"||yA.type==="ExpressionTag")&&wA.some(yA=>yA.type==="ExpressionTag")&&get_states_and_calls(wA);if(GA&&GA.states===0)RA.init.push(stmt(assignment("=",member(AA.state.node,"textContent"),build_template_literal(wA,AA.visit,RA).value)));else{let yA=AA.state.node,LA=wA.some(KA=>KA.type!=="Text");eA.name==="template"&&(LA=!0,RA.init.push(stmt(call("$.hydrate_template",yA))),yA=member(yA,"content")),process_children(wA,KA=>call("$.child",yA,KA&&true_instance),!0,{...AA,state:RA}),LA&&RA.init.push(stmt(call("$.reset",AA.state.node)))}if(eA.fragment.nodes.some(yA=>yA.type==="SnippetBlock")?AA.state.init.push(block([...RA.init,RA.update.length>0?build_render_statement(RA.update):empty,...RA.after_update,...cA.after_update])):eA.fragment.metadata.dynamic?(AA.state.init.push(...RA.init),AA.state.update.push(...RA.update),AA.state.after_update.push(...RA.after_update,...cA.after_update)):AA.state.after_update.push(...cA.after_update),CA.has("dir")){const yA=member(uA,"dir");AA.state.update.push(stmt(assignment("=",yA,yA)))}dA.locations.length>0&&tA.push(dA.locations),is_void(eA.name)||AA.state.template.push(`</${eA.name}>`)}function setup_select_synchronization(eA,AA){if(AA.state.analysis.runes)return;let tA=eA.expression;for(;tA.type==="MemberExpression";)tA=tA.object;const gA=[];for(const[IA,BA]of AA.state.scope.references)BA.length>0&&IA!==tA.name&&gA.push(IA);const iA=call("$.invalidate_inner_signals",thunk(block(gA.map(IA=>{const BA=build_getter$1(id$1(IA),AA.state);return stmt(BA)}))));AA.state.init.push(stmt(call("$.template_effect",thunk(block([stmt(AA.visit(eA.expression)),stmt(iA)])))))}function build_element_attribute_update_assignment(eA,AA,tA,gA){const iA=gA.state,IA=get_attribute_name(eA,tA),BA=gA.state.metadata.namespace==="svg"||eA.name==="svg",sA=gA.state.metadata.namespace==="mathml";let{has_call:QA,value:CA}=build_attribute_value(tA.value,gA);if(IA==="autofocus")return iA.init.push(stmt(call("$.autofocus",AA,CA))),!1;if(IA==="muted")return iA.init.push(stmt(assignment("=",member(AA,id$1("muted")),CA))),!1;let oA;if(IA==="class"){if(tA.metadata.expression.has_state&&QA){const nA=id$1(iA.scope.generate("class_derived"));iA.init.push(const_builder(nA,create_derived(iA,thunk(CA)))),CA=call("$.get",nA),QA=!1}oA=stmt(call(BA?"$.set_svg_class":sA?"$.set_mathml_class":"$.set_class",AA,CA))}else if(IA==="value")oA=stmt(call("$.set_value",AA,CA));else if(IA==="checked")oA=stmt(call("$.set_checked",AA,CA));else if(is_dom_property(IA))oA=stmt(assignment("=",member(AA,IA),CA));else{if(IA==="style"&&tA.metadata.expression.has_state&&QA){const cA=id$1(iA.scope.generate("style_derived"));iA.init.push(const_builder(cA,create_derived(iA,thunk(CA)))),CA=call("$.get",cA),QA=!1}const nA=IA.startsWith("xlink")?"$.set_xlink_attribute":"$.set_attribute";oA=stmt(call(nA,AA,literal(IA),CA,is_ignored(eA,"hydration_attribute_changed")&&true_instance))}const EA=tA.value===!0?!1:is_inlinable_expression(Array.isArray(tA.value)?tA.value:[tA.value],gA.state);return tA.metadata.expression.has_state?(QA?iA.init.push(build_update(oA)):iA.update.push(oA),!0):(EA?gA.state.template.push(` ${IA}="`,CA,'"'):iA.init.push(oA),!1)}function is_inlinable_expression(eA,AA){var gA;let tA=!1;for(let iA of eA)if(iA.type==="ExpressionTag"){if(iA.expression.type==="Identifier"){const IA=(gA=AA.scope.owner(iA.expression.name))==null?void 0:gA.declarations.get(iA.expression.name);if(!can_inline_variable(IA))return!1}else return!1;tA=!0}return tA}function build_custom_element_attribute_update_assignment(eA,AA,tA){const gA=tA.state,iA=AA.name;let{has_call:IA,value:BA}=build_attribute_value(AA.value,tA);const sA=stmt(call("$.set_custom_element_data",eA,literal(iA),BA));return AA.metadata.expression.has_state?(IA?gA.init.push(build_update(sA)):gA.update.push(sA),!0):(gA.init.push(sA),!1)}function build_element_special_value_attribute(eA,AA,tA,gA){const iA=gA.state,{value:IA}=build_attribute_value(tA.value,gA),BA=assignment("=",member(AA,"value"),conditional(binary("==",literal(null),assignment("=",member(AA,"__value"),IA)),literal(""),IA)),sA=eA==="select"&&tA.value!==!0&&!is_text_attribute(tA),QA=stmt(sA?sequence$1([BA,call("$.select_option",AA,IA)]):BA);if(sA&&iA.init.push(stmt(call("$.init_select",AA,thunk(IA)))),tA.metadata.expression.has_state){const CA=iA.scope.generate(`${AA.name}_value`);return build_update_assignment(iA,CA,eA==="option"?object$2([]):void 0,IA,QA),!0}else return iA.init.push(QA),!1}function RenderTag(eA,AA){AA.state.template.push("<!>");const tA=unwrap_optional(eA.expression).callee,gA=unwrap_optional(eA.expression).arguments;let iA=[];for(let BA=0;BA<gA.length;BA++){const sA=gA[BA],QA=AA.visit(sA);if(eA.metadata.args_with_call_expression.has(BA)){const CA=id$1(AA.state.scope.generate("render_arg"));AA.state.init.push(var_builder(CA,call("$.derived_safe_equal",thunk(QA)))),iA.push(thunk(call("$.get",CA)))}else iA.push(thunk(QA))}let IA=AA.visit(tA);eA.metadata.dynamic?(eA.expression.type==="ChainExpression"&&(IA=logical("??",IA,id$1("$.noop"))),AA.state.init.push(stmt(call("$.snippet",AA.state.node,thunk(IA),...iA)))):AA.state.init.push(stmt((eA.expression.type==="CallExpression"?call:maybe_call)(IA,AA.state.node,...iA)))}function SlotElement(eA,AA){AA.state.template.push("<!>");const tA=[],gA=[],iA=[];let IA=literal("default");for(const CA of eA.attributes)if(CA.type==="SpreadAttribute")gA.push(thunk(AA.visit(CA)));else if(CA.type==="Attribute"){const{value:oA}=build_attribute_value(CA.value,AA);CA.name==="name"?IA=oA:CA.name!=="slot"&&(CA.metadata.expression.has_state?tA.push(get(CA.name,[return_builder(oA)])):tA.push(init(CA.name,oA)))}else CA.type==="LetDirective"&&iA.push(AA.visit(CA));AA.state.init.push(...iA);const BA=gA.length===0?object$2(tA):call("$.spread_props",object$2(tA),...gA),sA=eA.fragment.nodes.length===0?literal(null):arrow([id$1("$$anchor")],AA.visit(eA.fragment)),QA=call("$.slot",AA.state.node,id$1("$$props"),IA,BA,sA);AA.state.init.push(stmt(QA))}function SnippetBlock(eA,AA){var CA;const tA=[id$1("$$anchor")];let gA;const iA=[],IA={...AA.state.transform},BA={...AA.state,transform:IA};for(let oA=0;oA<eA.parameters.length;oA++){const EA=eA.parameters[oA];if(!EA)continue;if(EA.type==="Identifier"){tA.push({type:"AssignmentPattern",left:EA,right:id$1("$.noop")}),IA[EA.name]={read:call};continue}let nA=`$$arg${oA}`;tA.push(id$1(nA));const cA=extract_paths(EA);for(const uA of cA){const lA=uA.node.name,hA=uA.has_default_value,dA=thunk(AA.visit((CA=uA.expression)==null?void 0:CA.call(uA,maybe_call(id$1(nA)))));iA.push(let_builder(uA.node,hA?call("$.derived_safe_equal",dA):dA)),IA[lA]={read:hA?get_value:call},dev&&iA.push(stmt(IA[lA].read(id$1(lA))))}}gA=block([...iA,...AA.visit(eA.body,BA).body]);let sA=arrow(tA,gA);dev&&(sA=call("$.wrap_snippet",id$1(AA.state.analysis.name),sA));const QA=const_builder(eA.expression,sA);AA.path.length===1&&AA.path[0].type==="Fragment"?AA.state.analysis.top_level_snippets.push(QA):AA.state.init.push(QA)}function SpreadAttribute(eA,AA){return AA.visit(eA.expression)}function visit_special_element(eA,AA,tA){const gA={...tA.state,node:id$1(AA)};for(const iA of eA.attributes)iA.type==="OnDirective"?tA.state.init.push(stmt(tA.visit(iA,gA))):tA.visit(iA,gA)}function SvelteBody(eA,AA){visit_special_element(eA,"$.document.body",AA)}function SvelteComponent(eA,AA){const tA=build_component(eA,"$$component",AA);AA.state.init.push(tA)}function SvelteDocument(eA,AA){visit_special_element(eA,"$.document",AA)}function SvelteElement(eA,AA){AA.state.template.push("<!>");const tA=[];let gA;const iA=[],IA=[],BA=[],sA=id$1(AA.state.scope.generate("$$element")),QA={...AA,state:{...AA.state,node:sA,before_init:[],init:[],update:[],after_update:[]}};for(const cA of eA.attributes)if(cA.type==="Attribute")cA.name==="xmlns"&&!is_text_attribute(cA)&&(gA=cA.value),tA.push(cA);else if(cA.type==="SpreadAttribute")tA.push(cA);else if(cA.type==="ClassDirective")iA.push(cA);else if(cA.type==="StyleDirective")IA.push(cA);else if(cA.type==="LetDirective")BA.push(AA.visit(cA));else if(cA.type==="OnDirective"){const uA=AA.visit(cA,QA.state);QA.state.after_update.push(stmt(uA))}else AA.visit(cA,QA.state);AA.state.init.push(...BA);let CA=!1;if(tA.length===0)AA.state.analysis.css.hash&&QA.state.init.push(stmt(call("$.set_class",sA,literal(AA.state.analysis.css.hash))));else{const cA=id$1(AA.state.scope.generate("attributes"));CA=build_set_attributes(tA,QA,eA,sA,cA,binary("===",member(sA,"namespaceURI"),id$1("$.NAMESPACE_SVG")),call(member(member(sA,"nodeName"),"includes"),literal("-")),AA.state)}build_class_directives(iA,sA,QA,CA),build_style_directives(IA,sA,QA,CA);const oA=thunk(AA.visit(eA.tag));dev&&(eA.fragment.nodes.length>0&&AA.state.init.push(stmt(call("$.validate_void_dynamic_element",oA))),AA.state.init.push(stmt(call("$.validate_dynamic_element_tag",oA))));const EA=QA.state.init;QA.state.update.length>0&&EA.push(build_render_statement(QA.state.update)),EA.push(...QA.state.after_update),EA.push(...AA.visit(eA.fragment,{...AA.state,metadata:{...AA.state.metadata,namespace:determine_namespace_for_children(eA,AA.state.metadata.namespace)}}).body);const nA=dev&&locator(eA.start);AA.state.init.push(stmt(call("$.element",AA.state.node,oA,eA.metadata.svg||eA.metadata.mathml?true_instance:false_instance,EA.length>0&&arrow([sA,id$1("$$anchor")],block(EA)),gA&&thunk(build_attribute_value(gA,AA).value),nA&&array([literal(nA.line),literal(nA.column)]))))}function SvelteFragment(eA,AA){for(const tA of eA.attributes)tA.type==="LetDirective"&&AA.state.init.push(AA.visit(tA));AA.state.init.push(...AA.visit(eA.fragment).body)}function SvelteHead(eA,AA){AA.state.init.push(stmt(call("$.head",arrow([id$1("$$anchor")],AA.visit(eA.fragment)))))}function SvelteSelf(eA,AA){const tA=build_component(eA,AA.state.analysis.name,AA);AA.state.init.push(tA)}function SvelteWindow(eA,AA){visit_special_element(eA,"$.window",AA)}function TitleElement(eA,AA){const{has_state:tA,value:gA}=build_template_literal(eA.fragment.nodes,AA.visit,AA.state),iA=stmt(assignment("=",id$1("$.document.title"),gA));tA?AA.state.update.push(iA):AA.state.init.push(iA)}function TransitionDirective(eA,AA){let tA=eA.modifiers.includes("global")?TRANSITION_GLOBAL:0;eA.intro&&(tA|=TRANSITION_IN),eA.outro&&(tA|=TRANSITION_OUT);const gA=[literal(tA),AA.state.node,thunk(AA.visit(parse_directive_name(eA.name)))];eA.expression&&gA.push(thunk(AA.visit(eA.expression))),AA.state.after_update.push(stmt(call("$.transition",...gA)))}function UpdateExpression(eA,AA){var QA;const tA=eA.argument;if(tA.type==="MemberExpression"&&tA.object.type==="ThisExpression"&&tA.property.type==="PrivateIdentifier"&&AA.state.private_state.has(tA.property.name)){let CA="$.update";eA.prefix&&(CA+="_pre");const oA=[tA];return eA.operator==="--"&&oA.push(literal(-1)),call(CA,...oA)}if(tA.type!=="Identifier"&&tA.type!=="MemberExpression")throw new Error("An impossible state was reached");const gA=object$1(tA);if(gA===null)return AA.next();if(gA===tA){const CA=AA.state.transform,oA=(QA=CA[gA.name])==null?void 0:QA.update;if(oA&&Object.hasOwn(CA,gA.name))return oA(eA)}const iA=AA.visit(assignment(eA.operator==="++"?"+=":"-=",tA,literal(1))),BA=AA.path.at(-1).type==="ExpressionStatement",sA=eA.prefix||BA?iA:binary(eA.operator==="++"?"-":"+",iA,literal(1));return is_ignored(eA,"ownership_invalid_mutation")?call("$.skip_ownership_validation",thunk(sA)):sA}function UseDirective(eA,AA){const tA=[id$1("$$node")];eA.expression&&tA.push(id$1("$$action_arg"));const gA=[AA.state.node,arrow(tA,call(AA.visit(parse_directive_name(eA.name)),...tA))];eA.expression&&gA.push(thunk(AA.visit(eA.expression))),AA.state.after_update.push(stmt(call("$.action",...gA))),AA.next()}function VariableDeclaration(eA,AA){var gA;const tA=[];if(AA.state.analysis.runes)for(const iA of eA.declarations){const IA=iA.init,BA=get_rune(IA,AA.state.scope);if(!BA||BA==="$effect.tracking"||BA==="$effect.root"||BA==="$inspect"||BA==="$state.snapshot"||BA==="$host"){if(IA!=null&&is_hoisted_function(IA)){AA.state.hoisted.push(const_builder(iA.id,AA.visit(IA)));continue}tA.push(AA.visit(iA));continue}if(BA==="$props"){const CA=["$$slots","$$events","$$legacy"];if(AA.state.analysis.custom_element&&CA.push("$$host"),iA.id.type==="Identifier"){const oA=[id$1("$$props"),array(CA.map(EA=>literal(EA)))];dev&&oA.push(literal(iA.id.name)),tA.push(declarator(iA.id,call("$.rest_props",...oA)))}else{equal(iA.id.type,"ObjectPattern");for(const oA of iA.id.properties)if(oA.type==="Property"){const EA=oA.key,nA=EA.type==="Identifier"?EA.name:EA.value;CA.push(nA);let cA=oA.value.type==="AssignmentPattern"?oA.value.left:oA.value;equal(cA.type,"Identifier");const uA=AA.state.scope.get(cA.name);let lA=uA.initial&&AA.visit(uA.initial);lA&&uA.kind==="bindable_prop"&&should_proxy(lA,AA.state.scope)&&(lA=call("$.proxy",lA)),is_prop_source(uA,AA.state)&&tA.push(declarator(cA,get_prop_source(uA,AA.state,nA,lA)))}else{const EA=[id$1("$$props"),array(CA.map(nA=>literal(nA)))];dev&&EA.push(literal(oA.argument.name)),tA.push(declarator(oA.argument,call("$.rest_props",...EA)))}}continue}const sA=IA.arguments,QA=sA.length===0?id$1("undefined"):AA.visit(sA[0]);if(BA==="$state"||BA==="$state.raw"){const CA=(oA,EA)=>{const nA=AA.state.scope.get(oA.name);return BA==="$state"&&should_proxy(EA,AA.state.scope)&&(EA=call("$.proxy",EA)),is_state_source(nA,AA.state.analysis)&&(EA=call("$.state",EA)),EA};if(iA.id.type==="Identifier")tA.push(declarator(iA.id,CA(iA.id,QA)));else{const oA=AA.state.scope.generate("tmp"),EA=extract_paths(iA.id);tA.push(declarator(id$1(oA),QA),...EA.map(nA=>{var lA;const cA=(lA=nA.expression)==null?void 0:lA.call(nA,id$1(oA)),uA=AA.state.scope.get(nA.node.name);return declarator(nA.node,(uA==null?void 0:uA.kind)==="state"||(uA==null?void 0:uA.kind)==="raw_state"?CA(uA.node,cA):cA)}))}continue}if(BA==="$derived"||BA==="$derived.by"){if(iA.id.type==="Identifier")tA.push(declarator(iA.id,call("$.derived",BA==="$derived.by"?QA:thunk(QA))));else{const CA=extract_paths(iA.id),oA=iA.init;let EA,nA=QA;BA==="$derived"&&oA.arguments[0].type==="Identifier"?EA=oA.arguments[0]:(EA=id$1(AA.state.scope.generate("$$d")),nA=call("$.get",EA),tA.push(declarator(EA,call("$.derived",BA==="$derived.by"?QA:thunk(QA)))));for(let cA=0;cA<CA.length;cA++){const uA=CA[cA];tA.push(declarator(uA.node,call("$.derived",thunk(uA.expression(nA)))))}}continue}}else for(const iA of eA.declarations){const IA=AA.state.scope.get_bindings(iA),BA=IA.some(QA=>QA.kind==="state"),sA=IA.some(QA=>QA.kind==="bindable_prop");if(!BA&&!sA){const QA=iA.init;if(QA!=null&&is_hoisted_function(QA)){AA.state.hoisted.push(const_builder(iA.id,AA.visit(QA)));continue}tA.push(AA.visit(iA));continue}if(sA){if(iA.id.type!=="Identifier"){const CA=AA.state.scope.generate("tmp"),oA=extract_paths(iA.id);tA.push(declarator(id$1(CA),AA.visit(iA.init)));for(const EA of oA){const nA=EA.node.name,cA=AA.state.scope.get(nA),uA=(gA=EA.expression)==null?void 0:gA.call(EA,id$1(CA));tA.push(declarator(EA.node,cA.kind==="bindable_prop"?get_prop_source(cA,AA.state,cA.prop_alias??nA,uA):uA))}continue}const QA=AA.state.scope.get(iA.id.name);tA.push(declarator(iA.id,get_prop_source(QA,AA.state,QA.prop_alias??iA.id.name,iA.init&&AA.visit(iA.init))));continue}tA.push(...create_state_declarators(iA,AA.state,iA.init&&AA.visit(iA.init)))}return tA.length===0?empty:{...eA,declarations:tA}}function create_state_declarators(eA,{scope:AA,analysis:tA},gA){if(eA.id.type==="Identifier")return[declarator(eA.id,call("$.mutable_state",gA,tA.immutable?true_instance:void 0))];const iA=AA.generate("tmp"),IA=extract_paths(eA.id);return[declarator(id$1(iA),gA),...IA.map(BA=>{var CA;const sA=(CA=BA.expression)==null?void 0:CA.call(BA,id$1(iA)),QA=AA.get(BA.node.name);return declarator(BA.node,(QA==null?void 0:QA.kind)==="state"?call("$.mutable_state",sA,tA.immutable?true_instance:void 0):sA)})]}const visitors={_:function eA(AA,{next:tA,state:gA}){const iA=gA.scopes.get(AA);if(iA&&iA!==gA.scope){const IA={...gA.transform};for(const[BA,sA]of iA.declarations)(sA.kind==="normal"||sA.kind==="state"&&!is_state_source(sA,gA.analysis))&&delete IA[BA];tA({...gA,transform:IA,scope:iA})}else tA()},AnimateDirective,ArrowFunctionExpression,AssignmentExpression,Attribute,AwaitBlock,BinaryExpression,BindDirective,BlockStatement,BreakStatement,CallExpression,ClassBody,Comment,Component,ConstTag,DebugTag,EachBlock,ExportNamedDeclaration,ExpressionStatement,Fragment,FunctionDeclaration,FunctionExpression,HtmlTag,Identifier,IfBlock,ImportDeclaration,KeyBlock,LabeledStatement,LetDirective,MemberExpression,OnDirective,Program,RegularElement,RenderTag,SlotElement,SnippetBlock,SpreadAttribute,SvelteBody,SvelteComponent,SvelteDocument,SvelteElement,SvelteFragment,SvelteHead,SvelteSelf,SvelteWindow,TitleElement,TransitionDirective,UpdateExpression,UseDirective,VariableDeclaration};function client_component(eA,AA){var wA,RA;const tA={analysis:eA,options:AA,scope:eA.module.scope,scopes:eA.module.scopes,is_instance:!1,hoisted:[import_all("$","svelte/internal/client")],node:null,legacy_reactive_imports:[],legacy_reactive_statements:new Map,metadata:{context:{template_needs_import_node:!1,template_contains_script_tag:!1},namespace:AA.namespace,bound_contenteditable:!1},events:new Set,preserve_whitespace:AA.preserveWhitespace,public_state:new Map,private_state:new Map,transform:{},in_constructor:!1,before_init:null,init:null,update:null,after_update:null,template:null,locations:null},gA=walk(eA.module.ast,tA,visitors),iA={...tA,transform:{...tA.transform},scope:eA.instance.scope,scopes:eA.instance.scopes,is_instance:!0},IA=walk(eA.instance.ast,iA,visitors),BA=walk(eA.template.ast,{...tA,transform:iA.transform,scope:eA.instance.scope,scopes:eA.template.scopes},visitors);gA.body.unshift(...tA.legacy_reactive_imports);const sA=[],QA=[];for(const[GA,yA]of eA.instance.scope.declarations)if(yA.kind==="legacy_reactive"&&QA.push(const_builder(GA,call("$.mutable_state",void 0,eA.immutable?true_instance:void 0))),yA.kind==="store_sub"){sA.length===0&&sA.push(const_builder("$$stores",call("$.setup_stores")));const LA=build_getter$1(id$1(GA.slice(1)),iA),KA=call("$.store_get",LA,literal(GA),id$1("$$stores"));sA.push(const_builder(yA.node,thunk(dev?sequence$1([call("$.validate_store",LA,literal(GA.slice(1))),KA]):KA)))}for(const[GA]of eA.reactive_statements){const yA=[...tA.legacy_reactive_statements].find(([LA])=>LA===GA);if(yA===void 0)throw new Error("Could not find reactive statement");IA.body.push(yA[1])}eA.reactive_statements.size>0&&IA.body.push(stmt(call("$.legacy_pre_effect_reset")));const CA=[];for(const GA of eA.binding_groups.values())CA.push(const_builder(GA.name,array([])));const oA=eA.exports.flatMap(({name:GA,alias:yA})=>{const LA=iA.scope.get(GA),KA=build_getter$1(id$1(GA),iA),bA=get(yA??GA,[return_builder(KA)]);if(KA.type==="Identifier"){if((LA==null?void 0:LA.declaration_kind)==="let"||(LA==null?void 0:LA.declaration_kind)==="var")return[bA,set(yA??GA,[stmt(assignment("=",KA,id$1("$$value")))])];if(!dev)return init(yA??GA,KA)}if((LA==null?void 0:LA.kind)==="prop"||(LA==null?void 0:LA.kind)==="bindable_prop")return[bA,set(yA??GA,[stmt(call(GA,id$1("$$value")))])];if((LA==null?void 0:LA.kind)==="state"||(LA==null?void 0:LA.kind)==="raw_state"){const SA=LA.kind==="state"?call("$.proxy",id$1("$$value")):id$1("$$value");return[bA,set(yA??GA,[stmt(call("$.set",id$1(GA),SA))])]}return bA}),EA=[...eA.instance.scope.declarations].filter(([GA,yA])=>(yA.kind==="prop"||yA.kind==="bindable_prop")&&!GA.startsWith("$$"));if(dev&&eA.runes){const GA=eA.exports.map(({name:LA,alias:KA})=>literal(KA??LA)),yA=[];for(const[LA,KA]of EA)KA.kind==="bindable_prop"&&yA.push(literal(KA.prop_alias??LA));IA.body.unshift(stmt(call("$.validate_prop_bindings",id$1("$$props"),array(yA),array(GA),id$1(`${eA.name}`))))}if(eA.accessors)for(const[GA,yA]of EA){const LA=yA.prop_alias??GA,KA=get(LA,[return_builder(call(id$1(GA)))]),bA=set(LA,[stmt(call(id$1(GA),id$1("$$value"))),stmt(call("$.flush_sync"))]);eA.runes&&yA.initial&&(bA.value.params[0]={type:"AssignmentPattern",left:id$1("$$value"),right:yA.initial}),oA.push(KA,bA)}AA.compatibility.componentApi===4?oA.push(init("$set",id$1("$.update_legacy_props")),init("$on",arrow([id$1("$$event_name"),id$1("$$event_cb")],call("$.add_legacy_event_listener",id$1("$$props"),id$1("$$event_name"),id$1("$$event_cb"))))):dev&&oA.push(spread(call(id$1("$.legacy_api"))));const nA=[id$1("$$props"),literal(eA.runes)];dev&&nA.push(id$1(eA.name));const cA=block([...sA,...QA,...CA,...eA.top_level_snippets,...IA.body,eA.runes||!eA.needs_context?empty:stmt(call("$.init",eA.immutable?true_instance:void 0)),...BA.body]);if(!eA.runes)for(const{name:GA,alias:yA}of eA.exports)cA.body.push(stmt(call("$.bind_prop",id$1("$$props"),literal(yA??GA),build_getter$1(id$1(GA),iA))));if(eA.css.ast!==null&&eA.inject_styles){const GA=literal(eA.css.hash),yA=literal(render_stylesheet(eA.source,eA,AA).code);tA.hoisted.push(const_builder("$$css",object$2([init("hash",GA),init("code",yA)]))),cA.body.unshift(stmt(call("$.append_styles",id$1("$$anchor"),id$1("$$css"))))}const uA=dev||eA.needs_context||eA.reactive_statements.size>0||oA.length>0;if(uA&&(cA.body.unshift(stmt(call("$.push",...nA))),cA.body.push(oA.length>0?return_builder(call("$.pop",object$2(oA))):stmt(call("$.pop")))),eA.uses_rest_props){const GA=eA.exports.map(({name:yA,alias:LA})=>LA??yA);for(const[yA,LA]of eA.instance.scope.declarations)LA.kind==="bindable_prop"&&GA.push(LA.prop_alias??yA);cA.body.unshift(const_builder("$$restProps",call("$.legacy_rest_props",id$1("$$sanitized_props"),array(GA.map(yA=>literal(yA))))))}if(eA.uses_props||eA.uses_rest_props){const GA=[literal("children"),literal("$$slots"),literal("$$events"),literal("$$legacy")];eA.custom_element&&GA.push(literal("$$host")),cA.body.unshift(const_builder("$$sanitized_props",call("$.legacy_rest_props",id$1("$$props"),array(GA))))}eA.uses_slots&&cA.body.unshift(const_builder("$$slots",call("$.sanitize_slots",id$1("$$props"))));let lA=uA||eA.needs_props||eA.uses_props||eA.uses_rest_props||eA.uses_slots||eA.slot_names.size>0;const hA=[];let dA=[];for(const GA of[...gA.body,...tA.hoisted])GA.type==="ImportDeclaration"?hA.push(GA):dA.push(GA);dA=[...hA,...dA];const DA=function_declaration(id$1(eA.name),lA?[id$1("$$anchor"),id$1("$$props")]:[id$1("$$anchor")],cA);if(AA.hmr){const GA=id$1(eA.name),yA=id$1("$.HMR"),LA=member(GA,yA,!0),KA=member(id$1("module.default"),yA,!0),bA=[stmt(assignment("=",member(KA,"source"),member(LA,"source"))),stmt(call("$.set",member(LA,"source"),member(KA,"original")))];eA.css.hash&&bA.unshift(stmt(call("$.cleanup_styles",literal(eA.css.hash))));const SA=block([stmt(assignment("=",GA,call("$.hmr",GA,thunk(member(LA,"source"))))),stmt(call("import.meta.hot.accept",arrow([id$1("module")],block(bA))))]);dA.push(DA,if_builder(id$1("import.meta.hot"),SA),export_default(id$1(eA.name)))}else dA.push(export_default(DA));if(dev&&(dA.unshift(stmt(assignment("=",member(id$1(eA.name),"$.FILENAME",!0),literal(filename)))),dA.unshift(stmt(call(id$1("$.mark_module_start")))),dA.push(stmt(call(id$1("$.mark_module_end"),id$1(eA.name))))),AA.discloseVersion&&dA.unshift(imports([],"svelte/internal/disclose-version")),AA.compatibility.componentApi===4?(dA.unshift(imports([["createClassComponent","$$_createClassComponent"]],"svelte/legacy")),cA.body.unshift(if_builder(id$1("new.target"),return_builder(call("$$_createClassComponent",object$2([init("component",id$1(eA.name)),spread(id$1("$$anchor"))])))))):dev&&cA.body.unshift(stmt(call("$.check_target",id$1("new.target")))),tA.events.size>0&&dA.push(stmt(call("$.delegate",array(Array.from(tA.events).map(GA=>literal(GA)))))),eA.custom_element){const GA=eA.custom_element,yA=[];for(const[MA,NA]of EA){const FA=NA.prop_alias??MA,qA=typeof GA=="boolean"?{}:((wA=GA.props)==null?void 0:wA[FA])||{};!qA.type&&((RA=NA.initial)==null?void 0:RA.type)==="Literal"&&typeof NA.initial.value=="boolean"&&(qA.type="Boolean");const UA=object$2([qA.attribute?init("attribute",literal(qA.attribute)):void 0,qA.reflect?init("reflect",literal(!0)):void 0,qA.type?init("type",literal(qA.type)):void 0].filter(Boolean));yA.push(init(FA,UA))}const LA=array([...eA.slot_names.keys()].map(MA=>literal(MA))),KA=array(eA.exports.map(({name:MA,alias:NA})=>literal(NA??MA))),bA=typeof GA=="boolean"||GA.shadow!=="none",SA=call("$.create_custom_element",id$1(eA.name),object$2(yA),LA,KA,literal(bA),typeof GA!="boolean"?GA.extend:void 0);if(typeof GA!="boolean"&&typeof GA.tag=="string"){const MA=stmt(call("customElements.define",literal(GA.tag),SA));AA.hmr?dA.push(if_builder(binary("==",call("customElements.get",literal(GA.tag)),null_instane),MA)):dA.push(MA)}else dA.push(stmt(SA))}return{type:"Program",sourceType:"module",body:dA}}function client_module(eA,AA){const tA={analysis:eA,options:AA,scope:eA.module.scope,scopes:eA.module.scopes,public_state:new Map,private_state:new Map,transform:{},in_constructor:!1},gA=walk(eA.module.ast,tA,visitors);return{type:"Program",sourceType:"module",body:[import_all("$","svelte/internal/client"),...gA.body]}}function transform_component(eA,AA,tA){if(tA.generate===!1)return{js:null,css:null,warnings,metadata:{runes:eA.runes},ast:null};const gA=tA.generate==="server"?server_component(eA,tA):client_component(eA,tA),iA=get_source_name(tA.filename,tA.outputFilename),IA=print(gA,{sourceMapContent:AA,sourceMapSource:iA});merge_with_preprocessor_map(IA,tA,iA);const BA=eA.css.ast&&!eA.inject_styles?render_stylesheet(AA,eA,tA):null;return{js:IA,css:BA,warnings,metadata:{runes:eA.runes},ast:null}}function transform_module(eA,AA,tA){if(tA.generate===!1)return{js:null,css:null,warnings,metadata:{runes:!0},ast:null};const gA=tA.generate==="server"?server_module(eA,tA):client_module(eA,tA),iA=tA.filename.split(/[/\\]/).at(-1);return gA.body.length>0&&(gA.body[0].leadingComments=[{type:"Block",value:` ${iA} generated by Svelte v${VERSION} `}]),{js:print(gA,{sourceMapContent:AA,sourceMapSource:get_source_name(tA.filename,void 0)}),css:null,metadata:{runes:!0},warnings,ast:null}}var process={};const common={filename:string("(unknown)"),rootDir:string(typeof process<"u"?(jg=process.cwd)==null?void 0:jg.call(process):void 0),dev:boolean(!1),generate:validator("client",(eA,AA)=>eA==="dom"||eA==="ssr"?(warn_once(options_renamed_ssr_dom),eA==="dom"?"client":"server"):(eA!=="client"&&eA!=="server"&&eA!==!1&&throw_error(`${AA} must be "client", "server" or false`),eA))},validate_module_options=object({...common}),validate_component_options=object({...common,accessors:deprecate(options_deprecated_accessors,boolean(!1)),css:validator("external",eA=>((eA===!0||eA===!1)&&throw_error('The boolean options have been removed from the css option. Use "external" instead of false and "injected" instead of true'),eA==="none"&&throw_error('css: "none" is no longer a valid option. If this was crucial for you, please open an issue on GitHub with your use case.'),eA!=="external"&&eA!=="injected"&&throw_error('css should be either "external" (default, recommended) or "injected"'),eA)),cssHash:fun(({css:eA,hash:AA})=>`svelte-${AA(eA)}`),cssOutputFilename:string(void 0),customElement:boolean(!1),discloseVersion:boolean(!0),immutable:deprecate(options_deprecated_immutable,boolean(!1)),legacy:removed("The legacy option has been removed. If you are using this because of legacy.componentApi, use compatibility.componentApi instead"),compatibility:object({componentApi:list([4,5],5)}),loopGuardTimeout:warn_removed(options_removed_loop_guard_timeout),name:string(void 0),namespace:list(["html","mathml","svg"]),modernAst:boolean(!1),outputFilename:string(void 0),preserveComments:boolean(!1),preserveWhitespace:boolean(!1),runes:boolean(void 0),hmr:boolean(!1),warningFilter:fun(()=>!0),sourcemap:validator(void 0,eA=>eA),enableSourcemap:warn_removed(options_removed_enable_sourcemap),hydratable:warn_removed(options_removed_hydratable),format:removed('The format option has been removed in Svelte 4, the compiler only outputs ESM now. Remove "format" from your compiler options. If you did not set this yourself, bump the version of your bundler plugin (vite-plugin-svelte/rollup-plugin-svelte/svelte-loader)'),tag:removed('The tag option has been removed in Svelte 5. Use `<svelte:options customElement="tag-name" />` inside the component instead. If that does not solve your use case, please open an issue on GitHub with details.'),sveltePath:removed("The sveltePath option has been removed in Svelte 5. If this option was crucial for you, please open an issue on GitHub with your use case."),errorMode:removed("The errorMode option has been removed. If you are using this through svelte-preprocess with TypeScript, use the https://www.typescriptlang.org/tsconfig#verbatimModuleSyntax setting instead"),varsReport:removed("The vars option has been removed. If you are using this through svelte-preprocess with TypeScript, use the https://www.typescriptlang.org/tsconfig#verbatimModuleSyntax setting instead")});function removed(eA){return AA=>{AA!==void 0&&options_removed(null,eA)}}const warned=new Set;function warn_once(eA){warned.has(eA)||(warned.add(eA),eA(null))}function warn_removed(eA){return AA=>{AA!==void 0&&warn_once(eA)}}function deprecate(eA,AA){return(tA,gA)=>(tA!==void 0&&warn_once(eA),AA(tA,gA))}function object(eA,AA=!1){return(tA,gA)=>{const iA={};(tA&&typeof tA!="object"||Array.isArray(tA))&&throw_error(`${gA} should be an object`);for(const IA in tA)IA in eA||(AA?iA[IA]=tA[IA]:options_unrecognised(null,`${gA?`${gA}.${IA}`:IA}`));for(const IA in eA){const BA=eA[IA];iA[IA]=BA(tA&&tA[IA],gA?`${gA}.${IA}`:IA)}return iA}}function validator(eA,AA){return(tA,gA)=>tA===void 0?eA:AA(tA,gA)}function string(eA,AA=!0){return validator(eA,(tA,gA)=>(typeof tA!="string"&&throw_error(`${gA} should be a string, if specified`),!AA&&tA===""&&throw_error(`${gA} cannot be empty`),tA))}function boolean(eA){return validator(eA,(AA,tA)=>(typeof AA!="boolean"&&throw_error(`${tA} should be true or false, if specified`),AA))}function list(eA,AA=eA[0]){return validator(AA,(tA,gA)=>{if(!eA.includes(tA)){const iA=eA.length>2?`${gA} should be one of ${eA.slice(0,-1).map(IA=>`"${IA}"`).join(", ")} or "${eA[eA.length-1]}"`:`${gA} should be either "${eA[0]}" or "${eA[1]}"`;throw_error(iA)}return tA})}function fun(eA){return validator(eA,(AA,tA)=>(typeof AA!="function"&&throw_error(`${tA} should be a function, if specified`),AA))}function throw_error(eA){options_invalid_value(null,eA)}function compile(eA,AA){eA=remove_bom(eA),reset_warning_filter(AA.warningFilter);const tA=validate_component_options(AA,"");reset(eA,tA);let gA=parse(eA);const{customElement:iA,...IA}=gA.options||{},BA={...tA,...IA,customElementOptions:iA};gA.metadata.ts&&(gA={...gA,fragment:gA.fragment&&remove_typescript_nodes(gA.fragment),instance:gA.instance&&remove_typescript_nodes(gA.instance),module:gA.module&&remove_typescript_nodes(gA.module)});const sA=analyze_component(gA,eA,BA),QA=transform_component(sA,eA,BA);return QA.ast=to_public_ast(eA,gA,AA.modernAst),QA}function compileModule(eA,AA){eA=remove_bom(eA),reset_warning_filter(AA.warningFilter);const tA=validate_module_options(AA,"");reset(eA,tA);const gA=analyze_module(parse$1(eA,!1),tA);return transform_module(gA,eA,tA)}function to_public_ast(eA,AA,tA){var gA;if(tA){const iA=IA=>{delete IA.metadata,delete IA.parent};return(gA=AA.options)==null||gA.attributes.forEach(IA=>{iA(IA),iA(IA.value),Array.isArray(IA.value)&&IA.value.forEach(iA)}),walk(AA,null,{_(IA,{next:BA}){iA(IA),BA()}})}return convert(eA,AA)}function remove_bom(eA){return eA.charCodeAt(0)===65279?eA.slice(1):eA}const transform=()=>{const eA=new Set;return{input:(AA,tA)=>({code:AA,id:tA}),hook:(AA,tA)=>{if(!eA.has(tA))eA.add(tA);else return null;return tA.endsWith(".svelte")?{code:compile(AA,{generate:"dom",dev:!1,filename:tA,css:"injected"}).js.code,map:null}:tA.endsWith(".svelte.js")?{code:compileModule(AA,{generate:"client",dev:!1,filename:tA}).js.code,map:null}:tA.endsWith(".json")?{code:`export default ${AA};`,map:null}:null}}},load=(eA,AA,tA)=>{const gA=new Set;return{input:iA=>({resolved:iA}),hook:async iA=>{if(!gA.has(iA))gA.add(iA);else return null;if(iA==="<nil_xit_internal>/index.js")return AA;if(iA.startsWith(USER_TAG)){const IA=iA.substring(USER_TAG.length),BA=concat([header(nil_xit_proto.MessageType.MessageType_FileRequest),nil_xit_proto.FileRequest.encode({target:IA}).finish()]),{content:sA,metadata:QA}=await service_fetch(eA,BA,(CA,oA)=>{if(CA===nil_xit_proto.MessageType.MessageType_FileResponse){const EA=nil_xit_proto.FileResponse.decode(oA);if(EA.target===IA)return EA}});return tA&&tA(IA,QA),sA}if(iA.startsWith(RESOURCE_TAG))return await(await fetch(iA.slice(RESOURCE_TAG.length))).text();throw`unknown file: ${iA}`}}},debug_verbose=!1,hook_up=(eA,{hook:AA,input:tA})=>AA,warning=eA=>debug_verbose,encode=eA=>{const AA=new TextEncoder().encode(eA),gA=new Uint8Array(AA).reduce((iA,IA)=>iA+String.fromCharCode(IA),"");return btoa(gA)},transform_import=eA=>{const AA=eA.map(iA=>iA.split(" ")),tA=AA.map(iA=>{const IA=iA.slice(1,iA.length-2).join(" ");return IA.startsWith("* as ")?IA.slice(5):IA}),gA=AA.map(iA=>iA[iA.length-1]).map(iA=>`import_map[${iA}]()`);return`const [${tA.join(", ")}] = await Promise.all([${gA.join(", ")}])`},wrap_fe=eA=>{const AA=eA.code.replace("export {","return {"),tA=AA.indexOf(`;
59
+ `+oA.value[0].data),IA=call("$.escape",build_attribute_value$1(oA.value,AA))):eA.name!=="select"&&tA.push(oA):is_event_attribute(oA)?(oA.name==="onload"||oA.name==="onerror")&&is_load_error_element(eA.name)&&CA.add(oA.name):(oA.name==="class"?sA=tA.length:oA.name==="style"&&(QA=tA.length),tA.push(oA));else if(oA.type==="BindDirective"){if(oA.name==="value"&&eA.name==="select"||oA.name==="value"&&tA.some(nA=>nA.type==="Attribute"&&nA.name==="type"&&is_text_attribute(nA)&&nA.value[0].data==="file")||oA.name==="this")continue;const EA=binding_properties[oA.name];if(EA!=null&&EA.omit_in_ssr)continue;if(is_content_editable_binding(oA.name))IA=AA.visit(oA.expression);else if(oA.name==="value"&&eA.name==="textarea")IA=call("$.escape",AA.visit(oA.expression));else if(oA.name==="group"){const nA=eA.attributes.find(uA=>uA.type==="Attribute"&&uA.name==="value");if(!nA)continue;const cA=eA.attributes.some(uA=>uA.type==="Attribute"&&uA.name==="type"&&is_text_attribute(uA)&&uA.value[0].data==="checkbox");tA.push(create_attribute("checked",-1,-1,[{type:"ExpressionTag",start:-1,end:-1,parent:oA,expression:cA?call(member(oA.expression,"includes"),build_attribute_value$1(nA.value,AA)):binary("===",oA.expression,build_attribute_value$1(nA.value,AA)),metadata:{expression:create_expression_metadata()}}]))}else tA.push(create_attribute(oA.name,-1,-1,[{type:"ExpressionTag",start:-1,end:-1,parent:oA,expression:oA.expression,metadata:{expression:create_expression_metadata()}}]))}else oA.type==="SpreadAttribute"?(tA.push(oA),BA=!0,is_load_error_element(eA.name)&&(CA.add("onload"),CA.add("onerror"))):oA.type==="UseDirective"?is_load_error_element(eA.name)&&(CA.add("onload"),CA.add("onerror")):oA.type==="ClassDirective"?gA.push(oA):oA.type==="StyleDirective"?iA.push(oA):oA.type==="LetDirective"||AA.visit(oA);if(gA.length>0&&!BA){const oA=build_class_directives$1(gA,tA[sA]??null);sA===-1&&tA.push(oA)}if(iA.length>0&&!BA&&(build_style_directives$1(iA,tA[QA]??null,AA),QA>-1&&tA.splice(QA,1)),BA)build_element_spread_attributes(eA,tA,iA,gA,AA);else for(const oA of tA){if(oA.value===!0||is_text_attribute(oA)){const cA=get_attribute_name$1(eA,oA),uA=build_attribute_value$1(oA.value,AA,WHITESPACE_INSENSITIVE_ATTRIBUTES.includes(cA)).value;(cA!=="class"||uA)&&AA.state.template.push(literal(` ${oA.name}${is_boolean_attribute(cA)&&uA===!0?"":`="${uA===!0?"":String(uA)}"`}`));continue}const EA=get_attribute_name$1(eA,oA),nA=build_attribute_value$1(oA.value,AA,WHITESPACE_INSENSITIVE_ATTRIBUTES.includes(EA));AA.state.template.push(call("$.attr",literal(EA),nA,is_boolean_attribute(EA)&&true_instance))}if(CA.size!==0)for(const oA of CA)AA.state.template.push(literal(` ${oA}="this.__e=event"`));return IA}function get_attribute_name$1(eA,AA){let tA=AA.name;return!eA.metadata.svg&&!eA.metadata.mathml&&(tA=tA.toLowerCase()),tA}function build_element_spread_attributes(eA,AA,tA,gA,iA){let IA,BA,sA=0;if(gA.length>0||iA.state.analysis.css.hash){const oA=gA.map(EA=>init(EA.name,EA.expression.type==="Identifier"&&EA.expression.name===EA.name?id$1(EA.name):iA.visit(EA.expression)));iA.state.analysis.css.hash&&oA.unshift(init(iA.state.analysis.css.hash,literal(!0))),IA=object$2(oA)}if(tA.length>0){const oA=tA.map(EA=>init(EA.name,EA.value===!0?id$1(EA.name):build_attribute_value$1(EA.value,iA,!0)));BA=object$2(oA)}eA.metadata.svg||eA.metadata.mathml?sA|=ELEMENT_IS_NAMESPACED|ELEMENT_PRESERVE_ATTRIBUTE_CASE:is_custom_element_node(eA)&&(sA|=ELEMENT_PRESERVE_ATTRIBUTE_CASE);const CA=[object$2(AA.map(oA=>{if(oA.type==="Attribute"){const EA=get_attribute_name$1(eA,oA),nA=build_attribute_value$1(oA.value,iA,WHITESPACE_INSENSITIVE_ATTRIBUTES.includes(EA));return prop("init",key$2(EA),nA)}return spread(iA.visit(oA))})),IA,BA,sA?literal(sA):void 0];iA.state.template.push(call("$.spread_attributes",...CA))}function build_class_directives$1(eA,AA){const tA=eA.map(IA=>conditional(IA.expression,literal(IA.name),literal("")));AA===null&&(AA=create_attribute("class",-1,-1,[]));const gA=get_attribute_chunks(AA.value),iA=gA.at(-1);return(iA==null?void 0:iA.type)==="Text"?(iA.data+=" ",iA.raw+=" "):iA&&gA.push({type:"Text",start:-1,end:-1,parent:AA,data:" ",raw:" "}),gA.push({type:"ExpressionTag",start:-1,end:-1,parent:AA,expression:call(member(call(member(array(tA),"filter"),id$1("Boolean")),id$1("join")),literal(" ")),metadata:{expression:create_expression_metadata()}}),AA.value=gA,AA}function build_style_directives$1(eA,AA,tA){const gA=eA.map(IA=>{let BA=IA.value===!0?id$1(IA.name):build_attribute_value$1(IA.value,tA,!0);return IA.modifiers.includes("important")&&(BA=binary("+",BA,literal(" !important"))),init(IA.name,BA)}),iA=AA===null?object$2(gA):call("$.merge_styles",build_attribute_value$1(AA.value,tA,!0),object$2(gA));tA.state.template.push(call("$.add_styles",iA))}function RegularElement$1(eA,AA){const tA=determine_namespace_for_children(eA,AA.state.namespace),gA={...AA.state,namespace:tA,preserve_whitespace:AA.state.preserve_whitespace||eA.name==="pre"||eA.name==="textarea"};AA.state.template.push(literal(`<${eA.name}`));const iA=build_element_attributes(eA,{...AA,state:gA});if(AA.state.template.push(literal(">")),(eA.name==="script"||eA.name==="style")&&eA.fragment.nodes.length===1){AA.state.template.push(literal(eA.fragment.nodes[0].data),literal(`</${eA.name}>`));return}const{hoisted:IA,trimmed:BA}=clean_nodes(eA,eA.fragment.nodes,AA.path,tA,{...gA,scope:gA.scopes.get(eA.fragment)},gA.preserve_whitespace,gA.options.preserveComments);for(const sA of IA)AA.visit(sA,gA);if(dev){const sA=locator(eA.start);gA.template.push(stmt(call("$.push_element",id$1("$$payload"),literal(eA.name),literal(sA.line),literal(sA.column))))}if(iA===null)process_children$1(BA,{...AA,state:gA});else{let sA=iA;iA.type!=="Identifier"&&(sA=id$1(gA.scope.generate("$$body")),gA.template.push(const_builder(sA,iA)));const QA={...gA,template:[],init:[]};process_children$1(BA,{...AA,state:QA}),gA.template.push(if_builder(sA,block(build_template([sA])),block([...QA.init,...build_template(QA.template)])))}is_void(eA.name)||gA.template.push(literal(`</${eA.name}>`)),dev&&gA.template.push(stmt(call("$.pop_element")))}function RenderTag$1(eA,AA){const tA=unwrap_optional(eA.expression).callee,gA=unwrap_optional(eA.expression).arguments,iA=AA.visit(tA),IA=gA.map(BA=>AA.visit(BA));AA.state.template.push(stmt((eA.expression.type==="CallExpression"?call:maybe_call)(iA,id$1("$$payload"),...IA))),AA.state.skip_hydration_boundaries||AA.state.template.push(empty_comment)}function SlotElement$1(eA,AA){const tA=[],gA=[];let iA=literal("default");for(const QA of eA.attributes)if(QA.type==="SpreadAttribute")gA.push(AA.visit(QA));else if(QA.type==="Attribute"){const CA=build_attribute_value$1(QA.value,AA,!1,!0);QA.name==="name"?iA=CA:QA.name!=="slot"&&tA.push(init(QA.name,CA))}const IA=gA.length===0?object$2(tA):call("$.spread_props",array([object$2(tA),...gA])),BA=eA.fragment.nodes.length===0?literal(null):thunk(AA.visit(eA.fragment)),sA=call("$.slot",id$1("$$payload"),id$1("$$props"),iA,IA,BA);AA.state.template.push(empty_comment,stmt(sA),empty_comment)}function SnippetBlock$1(eA,AA){const tA=function_declaration(eA.expression,[id$1("$$payload"),...eA.parameters],AA.visit(eA.body));tA.___snippet=!0,AA.state.init.push(tA)}function SpreadAttribute$1(eA,AA){return AA.visit(eA.expression)}function SvelteComponent$1(eA,AA){build_inline_component(eA,AA.visit(eA.expression),AA)}function SvelteElement$1(eA,AA){let tA=AA.visit(eA.tag);if(tA.type!=="Identifier"){const BA=AA.state.scope.generate("$$tag");AA.state.init.push(const_builder(BA,tA)),tA=id$1(BA)}dev&&(eA.fragment.nodes.length>0&&AA.state.init.push(stmt(call("$.validate_void_dynamic_element",thunk(tA)))),AA.state.init.push(stmt(call("$.validate_dynamic_element_tag",thunk(tA)))));const gA={...AA.state,namespace:determine_namespace_for_children(eA,AA.state.namespace),template:[],init:[]};if(build_element_attributes(eA,{...AA,state:gA}),dev){const BA=locator(eA.start);AA.state.template.push(stmt(call("$.push_element",id$1("$$payload"),tA,literal(BA.line),literal(BA.column))))}const iA=block([...gA.init,...build_template(gA.template)]),IA=AA.visit(eA.fragment,gA);AA.state.template.push(stmt(call("$.element",id$1("$$payload"),tA,iA.body.length>0&&thunk(iA),IA.body.length>0&&thunk(IA)))),dev&&AA.state.template.push(stmt(call("$.pop_element")))}function SvelteFragment$1(eA,AA){AA.state.template.push(AA.visit(eA.fragment))}function SvelteHead$1(eA,AA){const tA=AA.visit(eA.fragment);AA.state.template.push(stmt(call("$.head",id$1("$$payload"),arrow([id$1("$$payload")],tA))))}function SvelteSelf$1(eA,AA){build_inline_component(eA,id$1(AA.state.analysis.name),AA)}function TitleElement$1(eA,AA){const tA=[literal("<title>")];process_children$1(eA.fragment.nodes,{...AA,state:{...AA.state,template:tA}}),tA.push(literal("</title>")),AA.state.init.push(...build_template(tA,id$1("$$payload.title"),"="))}function UpdateExpression$1(eA,AA){var gA;const tA=eA.argument;return tA.type==="Identifier"&&((gA=AA.state.scope.get(tA.name))==null?void 0:gA.kind)==="store_sub"?call(eA.prefix?"$.update_store_pre":"$.update_store",assignment("??=",id$1("$$store_subs"),object$2([])),literal(tA.name),id$1(tA.name.slice(1)),eA.operator==="--"&&literal(-1)):AA.next()}function VariableDeclaration$1(eA,AA){var gA;const tA=[];if(AA.state.analysis.runes)for(const iA of eA.declarations){const IA=iA.init,BA=get_rune(IA,AA.state.scope);if(!BA||BA==="$effect.tracking"||BA==="$inspect"||BA==="$effect.root"){tA.push(AA.visit(iA));continue}if(BA==="$props"){let CA=!1,oA=walk(iA.id,null,{RestElement(EA,nA){nA.path.at(-1)===iA.id&&(CA=!0)},AssignmentPattern(EA){if(EA.right.type==="CallExpression"&&get_rune(EA.right,AA.state.scope)==="$bindable"){const nA=EA.right.arguments.length?AA.visit(EA.right.arguments[0]):id$1("undefined");return assignment_pattern(EA.left,nA)}}});oA.type==="ObjectPattern"&&CA?oA.properties.splice(oA.properties.length-1,0,prop("init",id$1("$$slots"),id$1("$$slots")),prop("init",id$1("$$events"),id$1("$$events"))):oA.type==="Identifier"&&(oA=object_pattern([prop("init",id$1("$$slots"),id$1("$$slots")),prop("init",id$1("$$events"),id$1("$$events")),rest(id$1(oA.name))])),tA.push(declarator(AA.visit(oA),id$1("$$props")));continue}const sA=IA.arguments,QA=sA.length===0?id$1("undefined"):AA.visit(sA[0]);if(BA==="$derived.by"){tA.push(declarator(AA.visit(iA.id),call(QA)));continue}if(iA.id.type==="Identifier"){tA.push(declarator(iA.id,QA));continue}if(BA==="$derived"){tA.push(declarator(AA.visit(iA.id),QA));continue}tA.push(...create_state_declarators$1(iA,AA.state.scope,QA))}else for(const iA of eA.declarations){const IA=AA.state.scope.get_bindings(iA),BA=IA.some(QA=>QA.kind==="state"),sA=IA.some(QA=>QA.kind==="bindable_prop");if(!BA&&!sA){tA.push(AA.visit(iA));continue}if(sA){if(iA.id.type!=="Identifier"){const EA=AA.state.scope.generate("tmp"),nA=extract_paths(iA.id);tA.push(declarator(id$1(EA),AA.visit(iA.init)));for(const cA of nA){const uA=(gA=cA.expression)==null?void 0:gA.call(cA,id$1(EA)),lA=cA.node.name,hA=AA.state.scope.get(lA),dA=member(id$1("$$props"),literal(hA.prop_alias??lA),!0);tA.push(declarator(cA.node,build_fallback(dA,uA)))}continue}const QA=AA.state.scope.get(iA.id.name),CA=member(id$1("$$props"),literal(QA.prop_alias??iA.id.name),!0);let oA=CA;if(iA.init){const EA=AA.visit(iA.init);oA=build_fallback(CA,EA)}tA.push(declarator(iA.id,oA));continue}tA.push(...create_state_declarators$1(iA,AA.state.scope,iA.init&&AA.visit(iA.init)))}return{...eA,declarations:tA}}function create_state_declarators$1(eA,AA,tA){if(eA.id.type==="Identifier")return[declarator(eA.id,tA)];const gA=AA.generate("tmp"),iA=extract_paths(eA.id);return[declarator(id$1(gA),tA),...iA.map(IA=>{var sA;const BA=(sA=IA.expression)==null?void 0:sA.call(IA,id$1(gA));return declarator(IA.node,BA)})]}const global_visitors={_:set_scope,AssignmentExpression:AssignmentExpression$1,CallExpression:CallExpression$1,ClassBody:ClassBody$1,ExpressionStatement:ExpressionStatement$1,Identifier:Identifier$1,LabeledStatement:LabeledStatement$1,MemberExpression:MemberExpression$1,PropertyDefinition,UpdateExpression:UpdateExpression$1,VariableDeclaration:VariableDeclaration$1},template_visitors={AwaitBlock:AwaitBlock$1,Component:Component$1,ConstTag:ConstTag$1,DebugTag:DebugTag$1,EachBlock:EachBlock$1,Fragment:Fragment$1,HtmlTag:HtmlTag$1,IfBlock:IfBlock$1,KeyBlock:KeyBlock$1,RegularElement:RegularElement$1,RenderTag:RenderTag$1,SlotElement:SlotElement$1,SnippetBlock:SnippetBlock$1,SpreadAttribute:SpreadAttribute$1,SvelteComponent:SvelteComponent$1,SvelteElement:SvelteElement$1,SvelteFragment:SvelteFragment$1,SvelteHead:SvelteHead$1,SvelteSelf:SvelteSelf$1,TitleElement:TitleElement$1};function server_component(eA,AA){const tA={analysis:eA,options:AA,scope:eA.module.scope,scopes:eA.module.scopes,hoisted:[import_all("$","svelte/internal/server")],legacy_reactive_statements:new Map,init:null,template:null,namespace:AA.namespace,preserve_whitespace:AA.preserveWhitespace,private_derived:new Map,skip_hydration_boundaries:!1},gA=walk(eA.module.ast,tA,global_visitors),iA=walk(eA.instance.ast,{...tA,scopes:eA.instance.scopes},{...global_visitors,ImportDeclaration(cA){return tA.hoisted.push(cA),empty},ExportNamedDeclaration(cA,uA){return cA.declaration?uA.visit(cA.declaration):empty}}),IA=walk(eA.template.ast,{...tA,scopes:eA.template.scopes},{...global_visitors,...template_visitors}),BA=[];for(const[cA]of eA.reactive_statements){const uA=[...tA.legacy_reactive_statements].find(([lA])=>lA===cA);if(uA===void 0)throw new Error("Could not find reactive statement");if(cA.body.type==="ExpressionStatement"&&cA.body.expression.type==="AssignmentExpression")for(const lA of extract_identifiers(cA.body.expression.left)){const hA=eA.instance.scope.get(lA.name);(hA==null?void 0:hA.kind)==="legacy_reactive"&&BA.push(declarator(lA))}iA.body.push(uA[1])}if(BA.length>0&&iA.body.unshift({type:"VariableDeclaration",kind:"let",declarations:BA}),eA.uses_component_bindings){const cA=IA.body.filter(lA=>lA.type==="FunctionDeclaration"&&lA.___snippet),uA=IA.body.filter(lA=>lA.type!=="FunctionDeclaration"||!lA.___snippet);IA.body=[...cA,let_builder("$$settled",true_instance),let_builder("$$inner_payload"),stmt(function_builder(id$1("$$render_inner"),[id$1("$$payload")],block(uA))),do_while(unary("!",id$1("$$settled")),block([stmt(assignment("=",id$1("$$settled"),true_instance)),stmt(assignment("=",id$1("$$inner_payload"),call("$.copy_payload",id$1("$$payload")))),stmt(call("$$render_inner",id$1("$$inner_payload")))])),stmt(call("$.assign_payload",id$1("$$payload"),id$1("$$inner_payload")))]}[...eA.instance.scope.declarations.values()].some(cA=>cA.kind==="store_sub")&&(iA.body.unshift(var_builder("$$store_subs")),IA.body.push(if_builder(id$1("$$store_subs"),stmt(call("$.unsubscribe_stores",id$1("$$store_subs"))))));const sA=[];for(const[cA,uA]of eA.instance.scope.declarations)uA.kind==="bindable_prop"&&!cA.startsWith("$$")&&sA.push(init(uA.prop_alias??cA,id$1(cA)));for(const{name:cA,alias:uA}of eA.exports)sA.push(init(uA??cA,id$1(cA)));sA.length>0&&IA.body.push(stmt(call("$.bind_props",id$1("$$props"),object$2(sA))));const QA=block([...iA.body,...IA.body]);let CA=dev||eA.needs_context;if(CA&&(QA.body.unshift(stmt(call("$.push",dev&&id$1(eA.name)))),QA.body.push(stmt(call("$.pop")))),eA.uses_rest_props){const cA=eA.exports.map(({name:uA,alias:lA})=>lA??uA);for(const[uA,lA]of eA.instance.scope.declarations)lA.kind==="bindable_prop"&&cA.push(lA.prop_alias??uA);QA.body.unshift(const_builder("$$restProps",call("$.rest_props",id$1("$$sanitized_props"),array(cA.map(uA=>literal(uA))))))}(eA.uses_props||eA.uses_rest_props)&&QA.body.unshift(const_builder("$$sanitized_props",call("$.sanitize_props",id$1("$$props")))),eA.uses_slots&&QA.body.unshift(const_builder("$$slots",call("$.sanitize_slots",id$1("$$props"))));const oA=[...tA.hoisted,...gA.body];if(eA.css.ast!==null&&AA.css==="injected"&&!AA.customElement){const cA=literal(eA.css.hash),uA=literal(render_stylesheet(eA.source,eA,AA).code);oA.push(const_builder("$$css",object$2([init("hash",cA),init("code",uA)]))),QA.body.unshift(stmt(call("$$payload.css.add",id$1("$$css"))))}let EA=CA||sA.length>0||eA.needs_props||eA.uses_props||eA.uses_rest_props||eA.uses_slots||eA.slot_names.size>0;const nA=function_declaration(id$1(eA.name),EA?[id$1("$$payload"),id$1("$$props")]:[id$1("$$payload")],QA);return AA.compatibility.componentApi===4?(oA.unshift(imports([["render","$$_render"]],"svelte/server")),oA.push(nA,stmt(assignment("=",member_id(`${eA.name}.render`),function_builder(null,[id$1("$$props"),id$1("$$opts")],block([return_builder(call("$$_render",id$1(eA.name),object$2([init("props",id$1("$$props")),init("context",member(id$1("$$opts"),"context",!1,!0))])))])))),export_default(id$1(eA.name)))):dev?oA.push(nA,stmt(assignment("=",member_id(`${eA.name}.render`),function_builder(null,[],block([throw_error$1("Component.render(...) is no longer valid in Svelte 5. See https://svelte-5-preview.vercel.app/docs/breaking-changes#components-are-no-longer-classes for more information")])))),export_default(id$1(eA.name))):oA.push(export_default(nA)),dev&&oA.unshift(stmt(assignment("=",member(id$1(eA.name),"$.FILENAME",!0),literal(filename)))),{type:"Program",sourceType:"module",body:oA}}function server_module(eA,AA){const tA={analysis:eA,options:AA,scope:eA.module.scope,scopes:eA.module.scopes,legacy_reactive_statements:new Map,private_derived:new Map},gA=walk(eA.module.ast,tA,global_visitors);return{type:"Program",sourceType:"module",body:[import_all("$","svelte/internal/server"),...gA.body]}}function get_states_and_calls(eA){let AA=0,tA=0;for(let gA=0;gA<eA.length;gA++){const iA=eA[gA];iA.type==="ExpressionTag"&&(iA.metadata.expression.has_call&&tA++,iA.metadata.expression.has_state&&AA++)}return{states:AA,calls:tA}}function build_template_literal(eA,AA,tA){const gA=[];let iA=quasi("");const IA=[iA],{states:BA,calls:sA}=get_states_and_calls(eA);let QA=sA>0,CA=BA>0,oA=sA>1;for(let nA=0;nA<eA.length;nA++){const cA=eA[nA];if(cA.type==="Text")iA.value.cooked+=cA.data;else if(cA.type==="ExpressionTag"&&cA.expression.type==="Literal")cA.expression.value!=null&&(iA.value.cooked+=cA.expression.value+"");else{if(oA){const uA=id$1(tA.scope.generate("stringified_text"));tA.init.push(const_builder(uA,create_derived(tA,thunk(logical("??",AA(cA.expression,tA),literal("")))))),gA.push(call("$.get",uA))}else{if(eA.length===1)return{value:AA(cA.expression,tA),has_state:CA,has_call:QA};gA.push(logical("??",AA(cA.expression,tA),literal("")))}iA=quasi("",nA+1===eA.length),IA.push(iA)}}for(const nA of IA)nA.value.raw=sanitize_template_string(nA.value.cooked);return{value:template(IA,gA),has_state:CA,has_call:QA}}function build_update(eA){const AA=eA.type==="ExpressionStatement"?eA.expression:block([eA]);return stmt(call("$.template_effect",thunk(AA)))}function build_render_statement(eA){return eA.length===1?build_update(eA[0]):stmt(call("$.template_effect",thunk(block(eA))))}function parse_directive_name(eA){const AA=eA.split(".");let tA=AA.shift(),gA=id$1(tA);for(;tA=AA.shift();){const iA=!regex_is_valid_identifier.test(tA);gA=member(gA,iA?literal(tA):id$1(tA),iA)}return gA}function build_update_assignment(eA,AA,tA,gA,iA){eA.init.push(var_builder(AA,tA)),eA.update.push(if_builder(binary("!==",id$1(AA),assignment("=",id$1(AA),gA)),block([iA])))}function build_bind_this(eA,AA,{state:tA,visit:gA}){const iA=[],IA=[],BA=[],sA={...tA.transform};walk(eA,null,{Identifier(nA,{path:cA}){if(BA.includes(nA.name))return;BA.push(nA.name);const uA=cA.at(-1);if(!is_reference(nA,uA))return;const lA=tA.scope.get(nA.name);if(lA){for(const[hA,dA]of tA.scopes)if(hA.type==="EachBlock"&&dA===lA.scope){iA.push(nA),IA.push(gA(nA)),sA[nA.name]&&(sA[nA.name]={...sA[nA.name],read:DA=>DA});break}}}});const QA={...tA,transform:sA},CA=gA(eA,QA),oA=gA(assignment("=",eA,id$1("$$value")),QA);let EA=CA;for(;EA.type==="MemberExpression";)EA.optional=!0,EA=EA.object;return call("$.bind_this",AA,arrow([id$1("$$value"),...iA],oA),arrow([...iA],CA),IA.length>0&&thunk(array(IA)))}function validate_binding(eA,AA,tA){const gA=object$1(AA.expression),iA=gA&&eA.scope.get(gA.name);if((iA==null?void 0:iA.kind)==="store_sub")return;const IA=locator(AA.start);eA.init.push(stmt(call("$.validate_binding",literal(eA.analysis.source.slice(AA.start,AA.end)),thunk(tA.object),thunk(tA.computed?tA.property:literal(tA.property.name)),IA&&literal(IA.line),IA&&literal(IA.column))))}function AnimateDirective(eA,AA){const tA=eA.expression===null?literal(null):thunk(AA.visit(eA.expression));AA.state.after_update.push(stmt(call("$.animation",AA.state.node,thunk(AA.visit(parse_directive_name(eA.name))),tA)))}const visit_function=(eA,AA)=>{const tA=eA.metadata;let gA={...AA.state,in_constructor:!1};if(eA.type==="FunctionExpression"){const iA=AA.path.at(-1);gA.in_constructor=iA.type==="MethodDefinition"&&iA.kind==="constructor"}if((tA==null?void 0:tA.hoisted)===!0){const iA=build_hoisted_params(eA,AA);return{...eA,params:iA,body:AA.visit(eA.body,gA)}}AA.next(gA)};function ArrowFunctionExpression(eA,AA){return visit_function(eA,AA)}function AssignmentExpression(eA,AA){const tA=visit_assignment_expression(eA,AA,build_assignment)??AA.next();return is_ignored(eA,"ownership_invalid_mutation")?call("$.skip_ownership_validation",thunk(tA)):tA}function build_assignment(eA,AA,tA,gA){if(gA.state.analysis.runes&&AA.type==="MemberExpression"&&AA.object.type==="ThisExpression"&&AA.property.type==="PrivateIdentifier"){const sA=gA.state.private_state.get(AA.property.name);if(sA!==void 0){let QA=!1,CA=gA.visit(build_assignment_value(eA,AA,tA));if(should_proxy(CA,gA.state.scope)&&(QA=!0,CA=sA.kind==="raw_state"?CA:build_proxy_reassignment(CA,member(this_instance,sA.id))),gA.state.in_constructor){if(QA)return assignment(eA,gA.visit(AA),CA)}else return call("$.set",AA,CA)}}let iA=AA;for(;iA.type==="MemberExpression";)iA=iA.object;if(iA.type!=="Identifier")return null;const IA=gA.state.scope.get(iA.name);if(!IA)return null;const BA=Object.hasOwn(gA.state.transform,iA.name)?gA.state.transform[iA.name]:null;if(iA===AA&&(BA!=null&&BA.assign)){let sA=gA.visit(build_assignment_value(eA,AA,tA));const QA=gA.path.map(oA=>oA.type);return!(QA.at(-1)==="BindDirective"&&QA.at(-2)==="RegularElement")&&IA.kind!=="prop"&&IA.kind!=="bindable_prop"&&gA.state.analysis.runes&&should_proxy(sA,gA.state.scope)&&(sA=IA.kind==="raw_state"?sA:build_proxy_reassignment(sA,iA)),BA.assign(iA,sA)}return BA!=null&&BA.mutate?BA.mutate(iA,assignment(eA,gA.visit(AA),gA.visit(tA))):null}function visit_event_attribute(eA,AA){let tA=!1,gA=eA.name.slice(2);is_capture_event(gA)&&(gA=gA.slice(0,-7),tA=!0);const iA=Array.isArray(eA.value)?eA.value[0]:eA.value;let IA=build_event_handler(iA.expression,iA.metadata.expression,AA);if(eA.metadata.delegated){let BA;if(AA.state.events.has(gA)||AA.state.events.add(gA),eA.metadata.delegated.hoisted){if(eA.metadata.delegated.function===iA.expression){const CA=AA.state.scope.root.unique("on_"+gA);AA.state.hoisted.push(var_builder(CA,IA)),IA=CA}const sA=eA.metadata.delegated.function.metadata.hoisted_params,QA=[IA,...sA];BA=array(QA)}else BA=IA;AA.state.init.push(stmt(assignment("=",member(AA.state.node,"__"+gA),BA)))}else{const BA=stmt(build_event(gA,AA.state.node,IA,tA,is_passive_event(gA)?!0:void 0)),sA=AA.path.at(-1).type;sA==="SvelteDocument"||sA==="SvelteWindow"||sA==="SvelteBody"?AA.state.init.push(BA):AA.state.after_update.push(BA)}}function build_event(eA,AA,tA,gA,iA){return call("$.event",literal(eA),AA,tA,gA&&true_instance,iA===void 0?void 0:literal(iA))}function build_event_handler(eA,AA,tA){var IA;if(eA===null)return function_builder(null,[id$1("$$arg")],block([stmt(call("$.bubble_event.call",this_instance,id$1("$$props"),id$1("$$arg")))]));let gA=tA.visit(eA);if(gA.type==="ArrowFunctionExpression"||gA.type==="FunctionExpression"||gA.type==="Identifier"&&((IA=tA.state.scope.get(gA.name))==null?void 0:IA.declaration_kind)!=="import")return gA;if(AA.has_call){const BA=id$1(tA.state.scope.generate("event_handler"));tA.state.init.push(var_builder(BA,call("$.derived",thunk(gA)))),gA=call("$.get",BA)}let iA=call(member(gA,"apply",!1,!0),this_instance,id$1("$$args"));if(dev){const BA=locator(eA.start),sA=eA.type==="CallExpression"&&eA.arguments.length===0&&eA.callee.type==="Identifier";iA=call("$.apply",thunk(gA),this_instance,id$1("$$args"),id$1(tA.state.analysis.name),BA&&array([literal(BA.line),literal(BA.column)]),has_side_effects(eA)&&true_instance,sA&&true_instance)}return function_builder(null,[rest(id$1("$$args"))],block([stmt(iA)]))}function has_side_effects(eA){return eA.type==="CallExpression"||eA.type==="NewExpression"||eA.type==="AssignmentExpression"||eA.type==="UpdateExpression"?!0:eA.type==="SequenceExpression"?eA.expressions.some(has_side_effects):!1}function Attribute(eA,AA){is_event_attribute(eA)&&visit_event_attribute(eA,AA)}function AwaitBlock(eA,AA){AA.state.template.push("<!>");const tA=thunk(AA.visit(eA.expression));let gA,iA;if(eA.then){const IA={...AA,state:{...AA.state,transform:{...AA.state.transform}}},BA=eA.value&&create_derived_block_argument(eA.value,IA),sA=[id$1("$$anchor")];BA&&sA.push(BA.id);const QA=(BA==null?void 0:BA.declarations)??[],CA=IA.visit(eA.then,IA.state);gA=arrow(sA,block([...QA,...CA.body]))}if(eA.catch){const IA={...AA,state:{...AA.state}},BA=eA.error&&create_derived_block_argument(eA.error,IA),sA=[id$1("$$anchor")];BA&&sA.push(BA.id);const QA=(BA==null?void 0:BA.declarations)??[],CA=IA.visit(eA.catch,IA.state);iA=arrow(sA,block([...QA,...CA.body]))}AA.state.init.push(stmt(call("$.await",AA.state.node,tA,eA.pending?arrow([id$1("$$anchor")],AA.visit(eA.pending)):literal(null),gA,iA)))}function BinaryExpression(eA,AA){if(dev){const tA=eA.operator;if(tA==="==="||tA==="!==")return call("$.strict_equals",AA.visit(eA.left),AA.visit(eA.right),tA==="!=="&&literal(!1));if(tA==="=="||tA==="!=")return call("$.equals",AA.visit(eA.left),AA.visit(eA.right),tA==="!="&&literal(!1))}AA.next()}function build_set_attributes(eA,AA,tA,gA,iA,IA,BA,sA){let QA=!1;const CA=[];for(const EA of eA)if(EA.type==="Attribute"){const{value:nA}=build_attribute_value(EA.value,AA);if(is_event_attribute(EA)&&(nA.type==="ArrowFunctionExpression"||nA.type==="FunctionExpression")){const cA=AA.state.scope.generate("event_handler");AA.state.init.push(var_builder(cA,nA)),CA.push(init(EA.name,id$1(cA)))}else CA.push(init(EA.name,nA));QA||(QA=EA.metadata.expression.has_state)}else{QA=!0;let nA=AA.visit(EA);if(EA.metadata.expression.has_call){const cA=id$1(sA.scope.generate("spread_with_call"));sA.init.push(const_builder(cA,create_derived(sA,thunk(nA)))),nA=call("$.get",cA)}CA.push(spread(nA))}const oA=call("$.set_attributes",gA,QA?iA:literal(null),object$2(CA),AA.state.analysis.css.hash!==""&&literal(AA.state.analysis.css.hash),IA,BA,is_ignored(tA,"hydration_attribute_changed")&&true_instance);if(QA){AA.state.init.push(let_builder(iA));const EA=stmt(assignment("=",iA,oA));return AA.state.update.push(EA),!0}return AA.state.init.push(stmt(oA)),!1}function build_style_directives(eA,AA,tA,gA){const iA=tA.state;for(const IA of eA){const{has_state:BA,has_call:sA}=IA.metadata.expression;let QA=IA.value===!0?build_getter$1({name:IA.name,type:"Identifier"},tA.state):build_attribute_value(IA.value,tA).value;if(sA){const oA=id$1(iA.scope.generate("style_directive"));iA.init.push(const_builder(oA,create_derived(iA,thunk(QA)))),QA=call("$.get",oA)}const CA=stmt(call("$.set_style",AA,literal(IA.name),QA,IA.modifiers.includes("important")?true_instance:void 0));!gA&&sA?iA.init.push(build_update(CA)):gA||BA||sA?iA.update.push(CA):iA.init.push(CA)}}function build_class_directives(eA,AA,tA,gA){const iA=tA.state;for(const IA of eA){const{has_state:BA,has_call:sA}=IA.metadata.expression;let QA=tA.visit(IA.expression);if(sA){const oA=id$1(iA.scope.generate("class_directive"));iA.init.push(const_builder(oA,create_derived(iA,thunk(QA)))),QA=call("$.get",oA)}const CA=stmt(call("$.toggle_class",AA,literal(IA.name),QA));!gA&&sA?iA.init.push(build_update(CA)):gA||BA||sA?iA.update.push(CA):iA.init.push(CA)}}function build_attribute_value(eA,AA){if(eA===!0)return{has_state:!1,has_call:!1,value:literal(!0)};if(!Array.isArray(eA)||eA.length===1){const tA=Array.isArray(eA)?eA[0]:eA;return tA.type==="Text"?{has_state:!1,has_call:!1,value:literal(tA.data)}:{has_state:tA.metadata.expression.has_state,has_call:tA.metadata.expression.has_call,value:AA.visit(tA.expression)}}return build_template_literal(eA,AA.visit,AA.state)}function get_attribute_name(eA,AA){return!eA.metadata.svg&&!eA.metadata.mathml?normalize_attribute(AA.name):AA.name}function BindDirective(eA,AA){var QA;const tA=eA.expression,gA=binding_properties[eA.name],iA=AA.path.at(-1);dev&&AA.state.analysis.runes&&tA.type==="MemberExpression"&&(eA.name!=="this"||AA.path.some(({type:CA})=>CA==="IfBlock"||CA==="EachBlock"||CA==="AwaitBlock"||CA==="KeyBlock"))&&!is_ignored(eA,"binding_property_non_reactive")&&validate_binding(AA.state,eA,AA.visit(tA));const IA=thunk(AA.visit(tA));let BA=unthunk(arrow([id$1("$$value")],AA.visit(assignment("=",tA,id$1("$$value")))));IA===BA&&(BA=void 0);let sA;if(gA!=null&&gA.event)sA=call("$.bind_property",literal(eA.name),literal(gA.event),AA.state.node,BA??IA,gA.bidirectional&&IA);else switch(eA.name){case"online":sA=call("$.bind_online",BA??IA);break;case"scrollX":case"scrollY":sA=call("$.bind_window_scroll",literal(eA.name==="scrollX"?"x":"y"),IA,BA);break;case"innerWidth":case"innerHeight":case"outerWidth":case"outerHeight":sA=call("$.bind_window_size",literal(eA.name),BA??IA);break;case"activeElement":sA=call("$.bind_active_element",BA??IA);break;case"muted":sA=call("$.bind_muted",AA.state.node,IA,BA);break;case"paused":sA=call("$.bind_paused",AA.state.node,IA,BA);break;case"volume":sA=call("$.bind_volume",AA.state.node,IA,BA);break;case"playbackRate":sA=call("$.bind_playback_rate",AA.state.node,IA,BA);break;case"currentTime":sA=call("$.bind_current_time",AA.state.node,IA,BA);break;case"buffered":sA=call("$.bind_buffered",AA.state.node,BA??IA);break;case"played":sA=call("$.bind_played",AA.state.node,BA??IA);break;case"seekable":sA=call("$.bind_seekable",AA.state.node,BA??IA);break;case"seeking":sA=call("$.bind_seeking",AA.state.node,BA??IA);break;case"ended":sA=call("$.bind_ended",AA.state.node,BA??IA);break;case"readyState":sA=call("$.bind_ready_state",AA.state.node,BA??IA);break;case"contentRect":case"contentBoxSize":case"borderBoxSize":case"devicePixelContentBoxSize":sA=call("$.bind_resize_observer",AA.state.node,literal(eA.name),BA??IA);break;case"clientWidth":case"clientHeight":case"offsetWidth":case"offsetHeight":sA=call("$.bind_element_size",AA.state.node,literal(eA.name),BA??IA);break;case"value":{(iA==null?void 0:iA.type)==="RegularElement"&&iA.name==="select"?sA=call("$.bind_select_value",AA.state.node,IA,BA):sA=call("$.bind_value",AA.state.node,IA,BA);break}case"files":sA=call("$.bind_files",AA.state.node,IA,BA);break;case"this":sA=build_bind_this(tA,AA.state.node,AA);break;case"textContent":case"innerHTML":case"innerText":sA=call("$.bind_content_editable",literal(eA.name),AA.state.node,IA,BA);break;case"checked":sA=call("$.bind_checked",AA.state.node,IA,BA);break;case"focused":sA=call("$.bind_focused",AA.state.node,BA??IA);break;case"group":{const CA=eA.metadata.parent_each_blocks.map(EA=>EA.metadata.keyed&&EA.index?call("$.get",EA.metadata.index):EA.metadata.index);let oA=IA;if((iA==null?void 0:iA.type)==="RegularElement"){const EA=(QA=iA.attributes.find(nA=>nA.type==="Attribute"&&nA.name==="value"&&!is_text_attribute(nA)&&nA.value!==!0))==null?void 0:QA.value;EA!==void 0&&(oA=thunk(block([stmt(build_attribute_value(EA,AA).value),return_builder(AA.visit(tA))])))}sA=call("$.bind_group",eA.metadata.binding_group_name,array(CA),AA.state.node,oA,BA??IA);break}default:throw new Error("unknown binding "+eA.name)}if(eA.name==="this")AA.state.init.push(stmt(sA));else{const CA=iA.type==="RegularElement"&&iA.attributes.find(oA=>oA.type==="UseDirective");AA.state.after_update.push(stmt(CA?call("$.effect",thunk(sA)):sA))}}function BlockStatement(eA,AA){add_state_transformers(AA),AA.next()}function BreakStatement(eA,AA){if(AA.state.analysis.runes||!eA.label||eA.label.name!=="$")return;if(AA.path[1].type==="LabeledStatement"&&AA.path[1].label.name==="$")return return_builder()}function CallExpression(eA,AA){switch(get_rune(eA,AA.state.scope)){case"$host":return id$1("$$props.$$host");case"$effect.tracking":return call("$.effect_tracking");case"$state.snapshot":return call("$.snapshot",AA.visit(eA.arguments[0]),is_ignored(eA,"state_snapshot_uncloneable")&&true_instance);case"$effect.root":return call("$.effect_root",...eA.arguments.map(tA=>AA.visit(tA)));case"$inspect":case"$inspect().with":return transform_inspect_rune(eA,AA)}if(dev&&eA.callee.type==="MemberExpression"&&eA.callee.object.type==="Identifier"&&eA.callee.object.name==="console"&&AA.state.scope.get("console")===null&&eA.callee.property.type==="Identifier"&&["debug","dir","error","group","groupCollapsed","info","log","trace","warn"].includes(eA.callee.property.name))return call(eA.callee,spread(call("$.log_if_contains_state",literal(eA.callee.property.name),...eA.arguments.map(tA=>AA.visit(tA)))));AA.next()}function ClassBody(eA,AA){var sA,QA;if(!AA.state.analysis.runes){AA.next();return}const tA=new Map,gA=new Map,iA=[];for(const CA of eA.body)if(CA.type==="PropertyDefinition"&&(CA.key.type==="Identifier"||CA.key.type==="PrivateIdentifier"||CA.key.type==="Literal")){const oA=CA.key.type,EA=get_name(CA.key);if(!EA)continue;const nA=oA==="PrivateIdentifier";if(nA&&iA.push(EA),((sA=CA.value)==null?void 0:sA.type)==="CallExpression"){const cA=get_rune(CA.value,AA.state.scope);if(cA==="$state"||cA==="$state.raw"||cA==="$derived"||cA==="$derived.by"){const uA={kind:cA==="$state"?"state":cA==="$state.raw"?"raw_state":cA==="$derived.by"?"derived_by":"derived",id:nA?CA.key:null};nA?gA.set(EA,uA):tA.set(EA,uA)}}}for(const[CA,oA]of tA){let EA=CA;for(;iA.includes(EA);)EA="_"+EA;iA.push(EA),oA.id=private_id(EA)}const IA=[],BA={...AA.state,public_state:tA,private_state:gA};for(const CA of eA.body){if(CA.type==="PropertyDefinition"&&(CA.key.type==="Identifier"||CA.key.type==="PrivateIdentifier"||CA.key.type==="Literal")){const oA=get_name(CA.key);if(!oA)continue;const EA=CA.key.type==="PrivateIdentifier",nA=(EA?gA:tA).get(oA);if(((QA=CA.value)==null?void 0:QA.type)==="CallExpression"&&nA!==void 0){let cA=null;if(CA.value.arguments.length>0){const uA=AA.visit(CA.value.arguments[0],BA);cA=nA.kind==="state"?call("$.state",should_proxy(uA,AA.state.scope)?call("$.proxy",uA):uA):nA.kind==="raw_state"?call("$.state",uA):nA.kind==="derived_by"?call("$.derived",uA):call("$.derived",thunk(uA))}else cA=call("$.state");if(EA)IA.push(prop_def(nA.id,cA));else{const uA=member(this_instance,nA.id);if(IA.push(prop_def(nA.id,cA)),IA.push(method("get",CA.key,[],[return_builder(call("$.get",uA))])),nA.kind==="state"){const lA=id$1("value"),hA=member(this_instance,nA.id);IA.push(method("set",CA.key,[lA],[stmt(call("$.set",uA,build_proxy_reassignment(lA,hA)))]))}if(nA.kind==="raw_state"){const lA=id$1("value");IA.push(method("set",CA.key,[lA],[stmt(call("$.set",uA,lA))]))}dev&&(nA.kind==="derived"||nA.kind==="derived_by")&&IA.push(method("set",CA.key,[id$1("_")],[throw_error$1(`Cannot update a derived property ('${oA}')`)]))}continue}}IA.push(AA.visit(CA,BA))}return dev&&tA.size>0&&IA.push(method("method",id$1("$.ADD_OWNER"),[id$1("owner")],Array.from(tA.keys()).map(CA=>stmt(call("$.add_owner",call("$.get",member(this_instance,private_id(CA))),id$1("owner"),literal(!1),is_ignored(eA,"ownership_invalid_binding")&&true_instance))),!0)),{...eA,body:IA}}function get_name(eA){var AA;return eA.type==="Literal"?(AA=eA.value)==null?void 0:AA.toString().replace(regex_invalid_identifier_chars,"_"):eA.name}function Comment(eA,AA){AA.state.template.push(`<!--${eA.data}-->`)}function build_component(eA,AA,tA,gA=tA.state.node){var RA,GA;const iA=[],IA=[],BA={default:{...tA.state,scope:eA.metadata.scopes.default,transform:{...tA.state.transform}}},sA={},QA={},CA=[];let oA=null;const EA=[];let nA=!!determine_slot(eA),cA=!1;function uA(yA){const LA=iA.at(-1),KA=Array.isArray(LA),bA=KA?LA:[];bA.push(yA),KA||iA.push(bA)}if(nA)for(const yA of eA.attributes)yA.type==="LetDirective"&&IA.push(tA.visit(yA));for(const yA of eA.attributes)if(yA.type==="LetDirective")nA||IA.push(tA.visit(yA,BA.default));else if(yA.type==="OnDirective"){yA.expression||(tA.state.analysis.needs_props=!0);let LA=build_event_handler(yA.expression,yA.metadata.expression,tA);yA.modifiers.includes("once")&&(LA=call("$.once",LA)),(QA[RA=yA.name]||(QA[RA]=[])).push(LA)}else if(yA.type==="SpreadAttribute"){const LA=tA.visit(yA);if(yA.metadata.expression.has_state){let KA=LA;if(yA.metadata.expression.has_call){const bA=id$1(tA.state.scope.generate("spread_element"));tA.state.init.push(var_builder(bA,call("$.derived",thunk(KA)))),KA=call("$.get",bA)}iA.push(thunk(KA))}else iA.push(LA)}else if(yA.type==="Attribute"){if(yA.name.startsWith("--")){CA.push(init(yA.name,build_attribute_value(yA.value,tA).value));continue}yA.name==="slot"&&(nA=!0),yA.name==="children"&&(cA=!0);const{value:LA}=build_attribute_value(yA.value,tA);if(yA.metadata.expression.has_state){let KA=LA;if(get_attribute_chunks(yA.value).some(SA=>SA.type==="ExpressionTag"&&SA.expression.type!=="Identifier"&&SA.expression.type!=="MemberExpression")){const SA=id$1(tA.state.scope.generate(yA.name));tA.state.init.push(var_builder(SA,create_derived(tA.state,thunk(LA)))),KA=call("$.get",SA)}uA(get(yA.name,[return_builder(KA)]))}else uA(init(yA.name,LA))}else if(yA.type==="BindDirective"){const LA=tA.visit(yA.expression);if(dev&&LA.type==="MemberExpression"&&tA.state.analysis.runes&&!is_ignored(eA,"binding_property_non_reactive")&&validate_binding(tA.state,yA,LA),yA.name==="this")oA=yA.expression;else{dev&&EA.push(stmt(call(id$1("$.add_owner_effect"),thunk(LA),id$1(AA),is_ignored(eA,"ownership_invalid_binding")&&true_instance)));const KA=yA.expression.type==="Identifier"&&((GA=tA.state.scope.get(yA.expression.name))==null?void 0:GA.kind)==="store_sub";uA(KA?get(yA.name,[stmt(call("$.mark_store_binding")),return_builder(LA)]):get(yA.name,[return_builder(LA)]));const bA=assignment("=",yA.expression,id$1("$$value"));uA(set(yA.name,[stmt(tA.visit(bA))]))}}if(nA&&tA.state.init.push(...IA),Object.keys(QA).length>0){const yA=object$2(Object.keys(QA).map(LA=>init(LA,QA[LA].length>1?array(QA[LA]):QA[LA][0])));uA(init("$$events",yA))}const lA=[],hA=[];for(const yA of eA.fragment.nodes){if(yA.type==="SnippetBlock"){tA.visit(yA,{...tA.state,init:lA}),uA(prop("init",yA.expression,yA.expression)),hA.push(init(yA.expression.name==="children"?"default":yA.expression.name,true_instance));continue}let LA=determine_slot(yA)??"default";(sA[LA]||(sA[LA]=[])).push(yA)}for(const yA of Object.keys(sA)){const LA=tA.visit({...eA.fragment,nodes:sA[yA]},yA==="default"?nA?tA.state:BA.default:{...tA.state,scope:eA.metadata.scopes[yA],transform:{...tA.state.transform}});if(LA.body.length===0)continue;const KA=arrow([id$1("$$anchor"),id$1("$$slotProps")],block([...yA==="default"&&!nA?IA:[],...LA.body]));yA==="default"&&!cA?IA.length===0&&sA.default.every(bA=>bA.type!=="SvelteFragment"||!bA.attributes.some(SA=>SA.type==="LetDirective"))?(uA(init("children",dev?call("$.wrap_snippet",id$1(tA.state.analysis.name),KA):KA)),hA.push(init(yA,true_instance))):(hA.push(init(yA,KA)),uA(init("children",id$1("$.invalid_default_snippet")))):hA.push(init(yA,KA))}hA.length>0&&uA(init("$$slots",object$2(hA))),!tA.state.analysis.runes&&eA.attributes.some(yA=>yA.type==="BindDirective")&&uA(init("$$legacy",true_instance));const dA=iA.length===0||iA.length===1&&Array.isArray(iA[0])?object$2(iA[0]||[]):call("$.spread_props",...iA.map(yA=>Array.isArray(yA)?object$2(yA):yA));let DA=yA=>call(eA.type==="SvelteComponent"?AA:tA.visit(member_id(AA)),yA,dA);if(oA!==null){const yA=DA;DA=LA=>build_bind_this(oA,yA(LA),tA)}const wA=[...lA];if(eA.type==="SvelteComponent"){const yA=DA;DA=LA=>call("$.component",LA,thunk(tA.visit(eA.expression)),arrow([id$1("$$anchor"),id$1(AA)],block([...EA,stmt(yA(id$1("$$anchor")))])))}else wA.push(...EA);return Object.keys(CA).length>0?(tA.state.template.push(tA.state.metadata.namespace==="svg"?"<g><!></g>":'<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>'),wA.push(stmt(call("$.css_props",gA,thunk(object$2(CA)))),stmt(DA(member(gA,"lastChild"))),stmt(call("$.reset",gA)))):(tA.state.template.push("<!>"),wA.push(stmt(DA(gA)))),wA.length>1?block(wA):wA[0]}function Component(eA,AA){if(eA.metadata.dynamic){const gA=build_component(eA,"$$component",AA,id$1("$$anchor"));AA.state.init.push(stmt(call("$.component",AA.state.node,thunk(AA.visit(member_id(eA.name))),arrow([id$1("$$anchor"),id$1("$$component")],block([gA])))));return}const tA=build_component(eA,eA.name,AA);AA.state.init.push(tA)}function ConstTag(eA,AA){const tA=eA.declaration.declarations[0];if(tA.id.type==="Identifier")AA.state.init.push(const_builder(tA.id,create_derived(AA.state,thunk(AA.visit(tA.init))))),AA.state.transform[tA.id.name]={read:get_value},dev&&AA.state.init.push(stmt(call("$.get",tA.id)));else{const gA=extract_identifiers(tA.id),iA=id$1(AA.state.scope.generate("computed_const")),IA={...AA.state.transform};for(const QA of gA)delete IA[QA.name];const BA={...AA.state,transform:IA},sA=arrow([],block([const_builder(AA.visit(tA.id,BA),AA.visit(tA.init,BA)),return_builder(object$2(gA.map(QA=>prop("init",QA,QA))))]));AA.state.init.push(const_builder(iA,create_derived(AA.state,sA))),dev&&AA.state.init.push(stmt(call("$.get",iA)));for(const QA of gA)AA.state.transform[QA.name]={read:CA=>member(call("$.get",iA),CA)}}}function DebugTag(eA,AA){const tA=object$2(eA.identifiers.map(iA=>{const IA=call("$.snapshot",AA.visit(iA));return prop("init",iA,AA.state.analysis.runes?IA:call("$.untrack",thunk(IA)))})),gA=call("console.log",tA);AA.state.init.push(stmt(call("$.template_effect",thunk(block([stmt(gA),debugger_builder])))))}function EachBlock(eA,AA){var yA,LA;const tA=eA.metadata,gA=AA.visit(eA.expression,{...AA.state,scope:AA.state.scope.parent});tA.is_controlled||AA.state.template.push("<!>"),tA.array_name!==null&&AA.state.init.push(const_builder(tA.array_name,thunk(gA)));let iA=0;eA.metadata.keyed&&eA.index&&(iA|=EACH_INDEX_REACTIVE);const IA=((yA=eA.key)==null?void 0:yA.type)==="Identifier"&&eA.context.type==="Identifier"&&eA.context.name===eA.key.name;let BA;for(const KA of eA.metadata.expression.dependencies)if(KA.kind==="store_sub"){BA=!0;break}for(const KA of eA.metadata.expression.dependencies)if(!(KA.scope.function_depth>=AA.state.scope.function_depth)&&(!AA.state.analysis.runes||!IA||BA)){iA|=EACH_ITEM_REACTIVE;break}AA.state.analysis.runes&&!BA&&(iA|=EACH_ITEM_IMMUTABLE),eA.key&&eA.body.nodes.some(KA=>KA.type!=="RegularElement"&&KA.type!=="SvelteElement"?!1:KA.attributes.some(bA=>bA.type==="AnimateDirective"))&&(iA|=EACH_IS_ANIMATED),tA.is_controlled&&(iA|=EACH_IS_CONTROLLED);let sA="";if(eA.expression.type==="Identifier"||eA.expression.type==="MemberExpression"){const KA=object$1(eA.expression);if(KA){const bA=AA.state.scope.get(KA.name);(bA==null?void 0:bA.kind)==="store_sub"&&(sA=KA.name)}}const QA=collect_parent_each_blocks(AA).flatMap(KA=>{const bA=AA.visit(KA.expression),SA=build_transitive_dependencies(KA.metadata.expression.dependencies,AA);return[bA,...SA]});if(tA.array_name)QA.push(call(tA.array_name));else{QA.push(gA);const KA=build_transitive_dependencies(tA.expression.dependencies,AA);QA.push(...KA)}const CA={...AA.state,transform:{...AA.state.transform}},oA={...AA.state,transform:{...AA.state.transform}},EA=tA.contains_group_binding||!eA.index?tA.index:id$1(eA.index),nA=eA.context.type==="Identifier"?eA.context:id$1("$$item");let cA=tA.contains_group_binding,uA=!1;eA.index&&(CA.transform[eA.index]={read:KA=>(cA=!0,iA&EACH_INDEX_REACTIVE?get_value(KA):KA)},oA.transform[eA.index]={read:KA=>(uA=!0,KA)});const lA=[],hA=call("$.invalidate_inner_signals",thunk(sequence$1(QA))),dA=sA?call("$.invalidate_store",id$1("$$stores"),literal(sA)):void 0,DA=[];if(AA.state.analysis.runes||DA.push(hA),dA&&DA.push(dA),eA.context.type==="Identifier"){const KA=AA.state.scope.get(eA.context.name);CA.transform[eA.context.name]={read:bA=>KA.reassigned?member(tA.array_name?call(tA.array_name):gA,EA,!0):iA&EACH_ITEM_REACTIVE?get_value(bA):bA,assign:(bA,SA)=>{cA=!0;const MA=member(tA.array_name?call(tA.array_name):gA,EA,!0);return sequence$1([assignment("=",MA,SA),...DA])},mutate:(bA,SA)=>sequence$1([SA,...DA])},delete oA.transform[eA.context.name]}else{const KA=iA&EACH_ITEM_REACTIVE?call("$.get",nA):nA;for(const bA of extract_paths(eA.context)){const SA=bA.node.name,MA=bA.has_default_value,NA=thunk(AA.visit((LA=bA.expression)==null?void 0:LA.call(bA,KA),CA));lA.push(let_builder(bA.node,MA?call("$.derived_safe_equal",NA):NA));const FA=MA?get_value:call;CA.transform[SA]={read:FA,assign:(qA,UA)=>{const mA=bA.update_expression(KA);return sequence$1([assignment("=",mA,UA),...DA])},mutate:(qA,UA)=>sequence$1([UA,...DA])},dev&&lA.push(stmt(FA(id$1(SA)))),delete oA.transform[SA]}}const wA=AA.visit(eA.body,CA);let RA=id$1("$.index");if(eA.metadata.keyed){const KA=AA.visit(eA.key,oA);RA=arrow(uA?[eA.context,EA]:[eA.context],KA)}eA.index&&tA.contains_group_binding&&lA.push(let_builder(eA.index,EA)),dev&&eA.metadata.keyed&&AA.state.init.push(stmt(call("$.validate_each_keys",thunk(gA),RA)));const GA=[AA.state.node,literal(iA),tA.array_name?tA.array_name:thunk(gA),RA,arrow(cA?[id$1("$$anchor"),nA,EA]:[id$1("$$anchor"),nA],block(lA.concat(wA.body)))];eA.fallback&&GA.push(arrow([id$1("$$anchor")],AA.visit(eA.fallback))),AA.state.init.push(stmt(call("$.each",...GA)))}function collect_parent_each_blocks(eA){return eA.path.filter(AA=>AA.type==="EachBlock")}function build_transitive_dependencies(eA,AA){const tA=new Set;for(const gA of eA){const iA=collect_transitive_dependencies(gA);for(const IA of iA)tA.add(IA)}return[...tA].map(gA=>build_getter$1({...gA.node},AA.state))}function collect_transitive_dependencies(eA,AA=new Set){if(eA.kind!=="legacy_reactive")return[];for(const tA of eA.legacy_dependencies)if(!AA.has(tA)){AA.add(tA);for(const gA of collect_transitive_dependencies(tA,AA))AA.add(gA)}return[...AA]}function ExportNamedDeclaration(eA,AA){return AA.state.is_instance?eA.declaration?AA.visit(eA.declaration):empty:AA.next()}function ExpressionStatement(eA,AA){if(eA.expression.type==="CallExpression"){const tA=get_rune(eA.expression,AA.state.scope);if(tA==="$effect"||tA==="$effect.pre"){const gA=tA==="$effect"?"$.user_effect":"$.user_pre_effect",iA=AA.visit(eA.expression.arguments[0]),IA=call(gA,iA);return IA.callee.loc=eA.expression.callee.loc,stmt(IA)}}AA.next()}function process_children(eA,AA,tA,{visit:gA,state:iA}){const IA=iA.metadata.bound_contenteditable;let BA=AA,sA=0,QA=[];function CA(nA){return sA===0?BA(nA):call("$.sibling",BA(!1),(nA||sA!==1)&&literal(sA),nA&&true_instance)}function oA(nA,cA){const uA=CA(nA);let lA=uA;return lA.type!=="Identifier"&&(lA=id$1(iA.scope.generate(cA)),iA.init.push(var_builder(lA,uA))),BA=()=>lA,sA=1,lA}function EA(nA){if(nA.every(wA=>wA.type==="Text")){sA+=1,iA.template.push(nA.map(wA=>wA.raw).join(""));return}iA.template.push(" ");const{has_state:cA,has_call:uA,value:lA}=build_template_literal(nA,gA,iA),hA=nA.length===1,dA=oA(hA,"text"),DA=stmt(call("$.set_text",dA,lA));uA&&!IA?iA.init.push(build_update(DA)):cA&&!IA?iA.update.push(DA):iA.init.push(stmt(assignment("=",member(dA,"nodeValue"),lA)))}for(const nA of eA)if(nA.type==="Text"||nA.type==="ExpressionTag")QA.push(nA);else{QA.length>0&&(EA(QA),QA=[]);let cA=iA;if(is_static_element(nA))sA+=1;else if(nA.type==="EachBlock"&&eA.length===1&&tA)nA.metadata.is_controlled=!0;else{const uA=oA(!1,nA.type==="RegularElement"?nA.name:"node");cA={...iA,node:uA}}gA(nA,cA)}QA.length>0&&EA(QA),sA>1&&(sA-=1,iA.init.push(stmt(call("$.next",sA!==1&&literal(sA)))))}function is_static_element(eA){if(eA.type!=="RegularElement"||eA.fragment.metadata.dynamic)return!1;for(const AA of eA.attributes)if(AA.type!=="Attribute"||is_event_attribute(AA)||AA.value!==!0&&!is_text_attribute(AA)||AA.name==="autofocus"||AA.name==="muted"||eA.name==="option"&&AA.name==="value"||eA.name.includes("-"))return!1;return!0}function Fragment(eA,AA){const tA=AA.path.at(-1)??eA,gA=infer_namespace(AA.state.metadata.namespace,tA,eA.nodes),{hoisted:iA,trimmed:IA,is_standalone:BA,is_text_first:sA}=clean_nodes(tA,eA.nodes,AA.path,gA,AA.state,AA.state.preserve_whitespace,AA.state.options.preserveComments);if(iA.length===0&&IA.length===0)return block([]);const QA=IA.length===1&&IA[0].type==="RegularElement",CA=IA.length===1&&(IA[0].type==="SvelteFragment"||IA[0].type==="TitleElement"),oA=AA.state.scope.root.unique("root"),EA=[];let nA;const cA={...AA.state,before_init:[],init:[],update:[],after_update:[],template:[],locations:[],transform:{...AA.state.transform},metadata:{context:{template_needs_import_node:!1,template_contains_script_tag:!1},namespace:gA,bound_contenteditable:AA.state.metadata.bound_contenteditable}};for(const lA of iA)AA.visit(lA,cA);sA&&EA.push(stmt(call("$.next")));const uA=(lA,hA)=>{let dA=call(get_template_function(gA,cA),...hA);dev&&(dA=call("$.add_locations",dA,member(id$1(AA.state.analysis.name),"$.FILENAME",!0),build_locations(cA.locations))),AA.state.hoisted.push(var_builder(lA,dA))};if(QA){const lA=IA[0],hA=id$1(AA.state.scope.generate(lA.name));AA.visit(lA,{...cA,node:hA});const dA=[join_template(cA.template)];cA.metadata.context.template_needs_import_node&&dA.push(literal(TEMPLATE_USE_IMPORT_NODE)),uA(oA,dA),EA.push(var_builder(hA,call(oA)),...cA.before_init,...cA.init),nA=stmt(call("$.append",id$1("$$anchor"),hA))}else if(CA)AA.visit(IA[0],cA),EA.push(...cA.before_init,...cA.init);else if(IA.length===1&&IA[0].type==="Text"){const lA=id$1(AA.state.scope.generate("text"));EA.push(var_builder(lA,call("$.text",literal(IA[0].data))),...cA.before_init,...cA.init),nA=stmt(call("$.append",id$1("$$anchor"),lA))}else if(IA.length>0){const lA=id$1(AA.state.scope.generate("fragment"));if(IA.some(dA=>dA.type==="ExpressionTag")&&IA.every(dA=>dA.type==="Text"||dA.type==="ExpressionTag")){const dA=id$1(AA.state.scope.generate("text"));process_children(IA,()=>dA,!1,{...AA,state:cA}),EA.push(var_builder(dA,call("$.text")),...cA.before_init,...cA.init),nA=stmt(call("$.append",id$1("$$anchor"),dA))}else{if(BA)process_children(IA,()=>id$1("$$anchor"),!1,{...AA,state:cA});else{process_children(IA,wA=>call("$.first_child",lA,wA&&true_instance),!1,{...AA,state:cA});let DA=TEMPLATE_FRAGMENT;cA.metadata.context.template_needs_import_node&&(DA|=TEMPLATE_USE_IMPORT_NODE),cA.template.length===1&&cA.template[0]==="<!>"?EA.push(var_builder(lA,call("$.comment"))):(uA(oA,[join_template(cA.template),literal(DA)]),EA.push(var_builder(lA,call(oA)))),nA=stmt(call("$.append",id$1("$$anchor"),lA))}EA.push(...cA.before_init,...cA.init)}}else EA.push(...cA.before_init,...cA.init);return cA.update.length>0&&EA.push(build_render_statement(cA.update)),EA.push(...cA.after_update),nA!==void 0&&EA.push(nA),block(EA)}function join_template(eA){let AA=quasi("");const tA=template([AA],[]);for(const gA of eA)typeof gA=="string"?AA.value.cooked+=gA:(tA.expressions.push(gA),tA.quasis.push(AA=quasi("")));for(const gA of tA.quasis)gA.value.raw=sanitize_template_string(gA.value.cooked);return AA.tail=!0,tA}function get_template_function(eA,AA){const tA=AA.metadata.context.template_contains_script_tag;return eA==="svg"?tA?"$.svg_template_with_script":"$.ns_template":eA==="mathml"?"$.mathml_template":tA?"$.template_with_script":"$.template"}function build_locations(eA){return array(eA.map(AA=>{const tA=array([literal(AA[0]),literal(AA[1])]);return AA.length===3&&tA.elements.push(build_locations(AA[2])),tA}))}function FunctionDeclaration(eA,AA){var gA;const tA={...AA.state,in_constructor:!1};if(((gA=eA.metadata)==null?void 0:gA.hoisted)===!0){const iA=build_hoisted_params(eA,AA),IA=AA.visit(eA.body,tA);return AA.state.hoisted.push({...eA,params:iA,body:IA}),empty}AA.next(tA)}function FunctionExpression(eA,AA){return visit_function(eA,AA)}function HtmlTag(eA,AA){AA.state.template.push("<!>"),AA.state.init.push(stmt(call("$.html",AA.state.node,thunk(AA.visit(eA.expression)),literal(AA.state.metadata.namespace==="svg"),literal(AA.state.metadata.namespace==="mathml"),is_ignored(eA,"hydration_html_changed")&&true_instance)))}function Identifier(eA,AA){const tA=AA.path.at(-1);if(is_reference(eA,tA)){if(eA.name==="$$props")return id$1("$$sanitized_props");const gA=AA.state.scope.get(eA.name);if(AA.state.analysis.runes&&gA!==null&&eA!==gA.node&&gA.kind==="rest_prop"){const iA=AA.path.at(-2);if((tA==null?void 0:tA.type)==="MemberExpression"&&!tA.computed&&(iA==null?void 0:iA.type)!=="AssignmentExpression"&&(iA==null?void 0:iA.type)!=="UpdateExpression")return id$1("$$props")}return build_getter$1(eA,AA.state)}}function IfBlock(eA,AA){AA.state.template.push("<!>");const tA=AA.visit(eA.consequent),gA=[AA.state.node,thunk(AA.visit(eA.test)),arrow([id$1("$$anchor")],tA)];(eA.alternate||eA.elseif)&&gA.push(eA.alternate?arrow([id$1("$$anchor")],AA.visit(eA.alternate)):literal(null)),eA.elseif&&gA.push(literal(!0)),AA.state.init.push(stmt(call("$.if",...gA)))}function ImportDeclaration(eA,AA){if("hoisted"in AA.state)return AA.state.hoisted.push(eA),empty;AA.next()}function KeyBlock(eA,AA){AA.state.template.push("<!>");const tA=AA.visit(eA.expression),gA=AA.visit(eA.fragment);AA.state.init.push(stmt(call("$.key",AA.state.node,thunk(tA),arrow([id$1("$$anchor")],gA))))}function LabeledStatement(eA,AA){if(AA.state.analysis.runes||AA.path.length>1||eA.label.name!=="$"){AA.next();return}const tA=AA.state.analysis.reactive_statements.get(eA);if(!tA)return;let gA=AA.visit(eA.body);gA.type!=="BlockStatement"&&(gA=block([gA]));const iA=gA.body,IA=[];for(const BA of tA.dependencies){if(BA.kind==="normal"&&BA.declaration_kind!=="import")continue;const sA=BA.node.name;let QA=build_getter$1(id$1(sA),AA.state);(sA==="$$props"||sA==="$$restProps"||BA.kind==="bindable_prop")&&(QA=call("$.deep_read_state",QA)),IA.push(QA)}return AA.state.legacy_reactive_statements.set(eA,stmt(call("$.legacy_pre_effect",IA.length>0?thunk(sequence$1(IA)):thunk(block([])),thunk(block(iA))))),empty}function LetDirective(eA,AA){if(eA.expression&&eA.expression.type!=="Identifier"){const tA=AA.state.scope.generate(eA.name),gA=AA.state.scope.get_bindings(eA);for(const iA of gA)AA.state.transform[iA.node.name]={read:IA=>member(call("$.get",id$1(tA)),IA)};return const_builder(tA,call("$.derived",thunk(block([let_builder(eA.expression.type==="ObjectExpression"?object_pattern(eA.expression.properties):array_pattern(eA.expression.elements),member(id$1("$$slotProps"),eA.name)),return_builder(object$2(gA.map(iA=>init(iA.node.name,iA.node))))]))))}else{const tA=eA.expression===null?eA.name:eA.expression.name;return AA.state.transform[tA]={read:gA=>call("$.get",gA)},const_builder(tA,create_derived(AA.state,thunk(member(id$1("$$slotProps"),eA.name))))}}function MemberExpression(eA,AA){if(eA.property.type==="PrivateIdentifier"&&AA.state.private_state.get(eA.property.name))return AA.state.in_constructor?member(eA,"v"):call("$.get",eA);AA.next()}const modifiers=["stopPropagation","stopImmediatePropagation","preventDefault","self","trusted","once"];function OnDirective(eA,AA){eA.expression||(AA.state.analysis.needs_props=!0);let tA=build_event_handler(eA.expression,eA.metadata.expression,AA);for(const IA of modifiers)eA.modifiers.includes(IA)&&(tA=call("$."+IA,tA));const gA=eA.modifiers.includes("capture"),iA=eA.modifiers.includes("passive")||(eA.modifiers.includes("nonpassive")?!1:void 0);return build_event(eA.name,AA.state.node,tA,gA,iA)}function Program(eA,AA){if(!AA.state.analysis.runes){AA.state.transform.$$props={read:tA=>({...tA,name:"$$sanitized_props"})};for(const[tA,gA]of AA.state.scope.declarations)if(gA.declaration_kind==="import"&&gA.mutated){const{start:iA,end:IA}=AA.state.analysis.instance.ast,BA=gA.initial;if(BA.start>iA&&BA.end<IA){const QA=id$1("$$_import_"+tA);AA.state.transform[tA]={read:CA=>call(QA),mutate:(CA,oA)=>call(QA,oA)},AA.state.legacy_reactive_imports.push(var_builder(QA,call("$.reactive_import",thunk(id$1(tA)))))}}}for(const[tA,gA]of AA.state.scope.declarations){if(gA.kind==="store_sub"){let iA;const IA=()=>iA??(iA=AA.visit(id$1(tA.slice(1))));AA.state.transform[tA]={read:call,assign:(BA,sA)=>call("$.store_set",IA(),sA),mutate:(BA,sA)=>{const QA=call("$.untrack",BA);function CA(oA){return oA.type==="MemberExpression"?{...oA,object:CA(oA.object),property:oA.property}:QA}return call("$.store_mutate",IA(),assignment(sA.operator,CA(sA.left),sA.right),QA)},update:BA=>call(BA.prefix?"$.update_pre_store":"$.update_store",build_getter$1(id$1(tA.slice(1)),AA.state),call(BA.argument),BA.operator==="--"&&literal(-1))}}if(gA.kind==="prop"||gA.kind==="bindable_prop")if(is_prop_source(gA,AA.state))AA.state.transform[tA]={read:call,assign:(iA,IA)=>call(iA,IA),mutate:(iA,IA)=>gA.kind==="bindable_prop"?call(iA,IA,true_instance):IA,update:iA=>call(iA.prefix?"$.update_pre_prop":"$.update_prop",iA.argument,iA.operator==="--"&&literal(-1))};else if(gA.prop_alias){const iA=key$2(gA.prop_alias);AA.state.transform[tA]={read:IA=>member(id$1("$$props"),iA,iA.type==="Literal")}}else AA.state.transform[tA]={read:iA=>member(id$1("$$props"),iA)}}add_state_transformers(AA),AA.next()}function RegularElement(eA,AA){let tA=[-1,-1];if(dev){const yA=locator(eA.start);yA&&(tA[0]=yA.line,tA[1]=yA.column,AA.state.locations.push(tA))}if(eA.name==="noscript"){AA.state.template.push("<noscript></noscript>");return}const gA=is_custom_element_node(eA);gA&&(AA.state.metadata.context.template_needs_import_node=!0),eA.name==="script"&&(AA.state.metadata.context.template_contains_script_tag=!0),AA.state.template.push(`<${eA.name}`);const iA=[],IA=[],BA=[],sA=[],QA=[],CA=new Map,oA=new Map;let EA=eA.metadata.has_spread,nA=!1;for(const yA of eA.attributes)switch(yA.type){case"AnimateDirective":sA.push(yA);break;case"Attribute":if(yA.name==="is"&&AA.state.metadata.namespace==="html"){const{value:LA}=build_attribute_value(yA.value,AA);if(LA.type==="Literal"&&typeof LA.value=="string"){AA.state.template.push(` is="${escape_html(LA.value,!0)}"`);continue}}iA.push(yA),CA.set(yA.name,yA);break;case"BindDirective":oA.set(yA.name,yA),sA.push(yA);break;case"ClassDirective":IA.push(yA);break;case"LetDirective":QA.push(AA.visit(yA));break;case"OnDirective":sA.push(yA);break;case"SpreadAttribute":iA.push(yA);break;case"StyleDirective":BA.push(yA);break;case"TransitionDirective":sA.push(yA);break;case"UseDirective":nA=!0,sA.push(yA);break}const cA={...AA.state,after_update:[]};for(const yA of sA)if(yA.type==="OnDirective"){const LA=AA.visit(yA);cA.after_update.push(stmt(nA?call("$.effect",thunk(LA)):LA))}else AA.visit(yA,cA);if(eA.name==="input"&&(EA||oA.has("value")||oA.has("checked")||oA.has("group")||iA.some(yA=>yA.type==="Attribute"&&(yA.name==="value"||yA.name==="checked")&&!is_text_attribute(yA)))&&AA.state.init.push(stmt(call("$.remove_input_defaults",AA.state.node))),eA.name==="textarea"){const yA=CA.get("value")??CA.get("checked"),LA=yA&&!is_text_attribute(yA);(EA||oA.has("value")||LA)&&AA.state.init.push(stmt(call("$.remove_textarea_child",AA.state.node)))}eA.name==="select"&&oA.has("value")&&setup_select_synchronization(oA.get("value"),AA),AA.state.init.push(...QA);const uA=AA.state.node;let lA=EA;if(EA){const yA=id$1(AA.state.scope.generate("attributes"));build_set_attributes(iA,AA,eA,uA,yA,(eA.metadata.svg||eA.metadata.mathml||is_custom_element_node(eA))&&true_instance,eA.name.includes("-")&&true_instance,AA.state),eA.name==="select"&&!oA.has("value")&&(AA.state.init.push(stmt(call("$.init_select",uA,thunk(member(yA,"value"))))),AA.state.update.push(if_builder(binary("in",literal("value"),yA),block([stmt(call("$.select_option",uA,member(yA,"value")))]))))}else{const yA=eA.name==="option"||eA.name==="select"||oA.has("group")||oA.has("checked");for(const LA of iA){if(is_event_attribute(LA)){visit_event_attribute(LA,AA);continue}if(yA&&LA.name==="value"){build_element_special_value_attribute(eA.name,uA,LA,AA);continue}if(!gA&&LA.name!=="autofocus"&&LA.name!=="muted"&&(LA.value===!0||is_text_attribute(LA))){const bA=get_attribute_name(eA,LA),SA=is_text_attribute(LA)?LA.value[0].data:!0;(bA!=="class"||SA)&&AA.state.template.push(` ${LA.name}${is_boolean_attribute(bA)&&SA===!0?"":`="${SA===!0?"":escape_html(SA,!0)}"`}`);continue}(gA?build_custom_element_attribute_update_assignment(uA,LA,AA):build_element_attribute_update_assignment(eA,uA,LA,AA))&&(lA=!0)}}build_class_directives(IA,uA,AA,lA),build_style_directives(BA,uA,AA,lA),eA.name==="img"&&(EA||CA.has("loading"))&&AA.state.after_update.push(stmt(call("$.handle_lazy_img",uA))),is_load_error_element(eA.name)&&(EA||nA||CA.has("onload")||CA.has("onerror"))&&AA.state.after_update.push(stmt(call("$.replay_events",uA))),AA.state.template.push(">");const hA={...AA.state.metadata,namespace:determine_namespace_for_children(eA,AA.state.metadata.namespace)};if(oA.has("innerHTML")||oA.has("innerText")||oA.has("textContent")){const yA=CA.get("contenteditable");yA&&(yA.value===!0||is_text_attribute(yA)&&yA.value[0].data==="true")&&(hA.bound_contenteditable=!0)}const dA={...AA.state,metadata:hA,locations:[],scope:AA.state.scopes.get(eA.fragment),preserve_whitespace:AA.state.preserve_whitespace||eA.name==="pre"||eA.name==="textarea"},{hoisted:DA,trimmed:wA}=clean_nodes(eA,eA.fragment.nodes,AA.path,dA.metadata.namespace,dA,eA.name==="script"||dA.preserve_whitespace,dA.options.preserveComments),RA={...dA,init:[],update:[],after_update:[]};for(const yA of DA)AA.visit(yA,RA);const GA=wA.every(yA=>yA.type==="Text"||yA.type==="ExpressionTag")&&wA.some(yA=>yA.type==="ExpressionTag")&&get_states_and_calls(wA);if(GA&&GA.states===0)RA.init.push(stmt(assignment("=",member(AA.state.node,"textContent"),build_template_literal(wA,AA.visit,RA).value)));else{let yA=AA.state.node,LA=wA.some(KA=>KA.type!=="Text");eA.name==="template"&&(LA=!0,RA.init.push(stmt(call("$.hydrate_template",yA))),yA=member(yA,"content")),process_children(wA,KA=>call("$.child",yA,KA&&true_instance),!0,{...AA,state:RA}),LA&&RA.init.push(stmt(call("$.reset",AA.state.node)))}if(eA.fragment.nodes.some(yA=>yA.type==="SnippetBlock")?AA.state.init.push(block([...RA.init,RA.update.length>0?build_render_statement(RA.update):empty,...RA.after_update,...cA.after_update])):eA.fragment.metadata.dynamic?(AA.state.init.push(...RA.init),AA.state.update.push(...RA.update),AA.state.after_update.push(...RA.after_update,...cA.after_update)):AA.state.after_update.push(...cA.after_update),CA.has("dir")){const yA=member(uA,"dir");AA.state.update.push(stmt(assignment("=",yA,yA)))}dA.locations.length>0&&tA.push(dA.locations),is_void(eA.name)||AA.state.template.push(`</${eA.name}>`)}function setup_select_synchronization(eA,AA){if(AA.state.analysis.runes)return;let tA=eA.expression;for(;tA.type==="MemberExpression";)tA=tA.object;const gA=[];for(const[IA,BA]of AA.state.scope.references)BA.length>0&&IA!==tA.name&&gA.push(IA);const iA=call("$.invalidate_inner_signals",thunk(block(gA.map(IA=>{const BA=build_getter$1(id$1(IA),AA.state);return stmt(BA)}))));AA.state.init.push(stmt(call("$.template_effect",thunk(block([stmt(AA.visit(eA.expression)),stmt(iA)])))))}function build_element_attribute_update_assignment(eA,AA,tA,gA){const iA=gA.state,IA=get_attribute_name(eA,tA),BA=gA.state.metadata.namespace==="svg"||eA.name==="svg",sA=gA.state.metadata.namespace==="mathml";let{has_call:QA,value:CA}=build_attribute_value(tA.value,gA);if(IA==="autofocus")return iA.init.push(stmt(call("$.autofocus",AA,CA))),!1;if(IA==="muted")return iA.init.push(stmt(assignment("=",member(AA,id$1("muted")),CA))),!1;let oA;if(IA==="class"){if(tA.metadata.expression.has_state&&QA){const nA=id$1(iA.scope.generate("class_derived"));iA.init.push(const_builder(nA,create_derived(iA,thunk(CA)))),CA=call("$.get",nA),QA=!1}oA=stmt(call(BA?"$.set_svg_class":sA?"$.set_mathml_class":"$.set_class",AA,CA))}else if(IA==="value")oA=stmt(call("$.set_value",AA,CA));else if(IA==="checked")oA=stmt(call("$.set_checked",AA,CA));else if(is_dom_property(IA))oA=stmt(assignment("=",member(AA,IA),CA));else{if(IA==="style"&&tA.metadata.expression.has_state&&QA){const cA=id$1(iA.scope.generate("style_derived"));iA.init.push(const_builder(cA,create_derived(iA,thunk(CA)))),CA=call("$.get",cA),QA=!1}const nA=IA.startsWith("xlink")?"$.set_xlink_attribute":"$.set_attribute";oA=stmt(call(nA,AA,literal(IA),CA,is_ignored(eA,"hydration_attribute_changed")&&true_instance))}const EA=tA.value===!0?!1:is_inlinable_expression(Array.isArray(tA.value)?tA.value:[tA.value],gA.state);return tA.metadata.expression.has_state?(QA?iA.init.push(build_update(oA)):iA.update.push(oA),!0):(EA?gA.state.template.push(` ${IA}="`,CA,'"'):iA.init.push(oA),!1)}function is_inlinable_expression(eA,AA){var gA;let tA=!1;for(let iA of eA)if(iA.type==="ExpressionTag"){if(iA.expression.type==="Identifier"){const IA=(gA=AA.scope.owner(iA.expression.name))==null?void 0:gA.declarations.get(iA.expression.name);if(!can_inline_variable(IA))return!1}else return!1;tA=!0}return tA}function build_custom_element_attribute_update_assignment(eA,AA,tA){const gA=tA.state,iA=AA.name;let{has_call:IA,value:BA}=build_attribute_value(AA.value,tA);const sA=stmt(call("$.set_custom_element_data",eA,literal(iA),BA));return AA.metadata.expression.has_state?(IA?gA.init.push(build_update(sA)):gA.update.push(sA),!0):(gA.init.push(sA),!1)}function build_element_special_value_attribute(eA,AA,tA,gA){const iA=gA.state,{value:IA}=build_attribute_value(tA.value,gA),BA=assignment("=",member(AA,"value"),conditional(binary("==",literal(null),assignment("=",member(AA,"__value"),IA)),literal(""),IA)),sA=eA==="select"&&tA.value!==!0&&!is_text_attribute(tA),QA=stmt(sA?sequence$1([BA,call("$.select_option",AA,IA)]):BA);if(sA&&iA.init.push(stmt(call("$.init_select",AA,thunk(IA)))),tA.metadata.expression.has_state){const CA=iA.scope.generate(`${AA.name}_value`);return build_update_assignment(iA,CA,eA==="option"?object$2([]):void 0,IA,QA),!0}else return iA.init.push(QA),!1}function RenderTag(eA,AA){AA.state.template.push("<!>");const tA=unwrap_optional(eA.expression).callee,gA=unwrap_optional(eA.expression).arguments;let iA=[];for(let BA=0;BA<gA.length;BA++){const sA=gA[BA],QA=AA.visit(sA);if(eA.metadata.args_with_call_expression.has(BA)){const CA=id$1(AA.state.scope.generate("render_arg"));AA.state.init.push(var_builder(CA,call("$.derived_safe_equal",thunk(QA)))),iA.push(thunk(call("$.get",CA)))}else iA.push(thunk(QA))}let IA=AA.visit(tA);eA.metadata.dynamic?(eA.expression.type==="ChainExpression"&&(IA=logical("??",IA,id$1("$.noop"))),AA.state.init.push(stmt(call("$.snippet",AA.state.node,thunk(IA),...iA)))):AA.state.init.push(stmt((eA.expression.type==="CallExpression"?call:maybe_call)(IA,AA.state.node,...iA)))}function SlotElement(eA,AA){AA.state.template.push("<!>");const tA=[],gA=[],iA=[];let IA=literal("default");for(const CA of eA.attributes)if(CA.type==="SpreadAttribute")gA.push(thunk(AA.visit(CA)));else if(CA.type==="Attribute"){const{value:oA}=build_attribute_value(CA.value,AA);CA.name==="name"?IA=oA:CA.name!=="slot"&&(CA.metadata.expression.has_state?tA.push(get(CA.name,[return_builder(oA)])):tA.push(init(CA.name,oA)))}else CA.type==="LetDirective"&&iA.push(AA.visit(CA));AA.state.init.push(...iA);const BA=gA.length===0?object$2(tA):call("$.spread_props",object$2(tA),...gA),sA=eA.fragment.nodes.length===0?literal(null):arrow([id$1("$$anchor")],AA.visit(eA.fragment)),QA=call("$.slot",AA.state.node,id$1("$$props"),IA,BA,sA);AA.state.init.push(stmt(QA))}function SnippetBlock(eA,AA){var CA;const tA=[id$1("$$anchor")];let gA;const iA=[],IA={...AA.state.transform},BA={...AA.state,transform:IA};for(let oA=0;oA<eA.parameters.length;oA++){const EA=eA.parameters[oA];if(!EA)continue;if(EA.type==="Identifier"){tA.push({type:"AssignmentPattern",left:EA,right:id$1("$.noop")}),IA[EA.name]={read:call};continue}let nA=`$$arg${oA}`;tA.push(id$1(nA));const cA=extract_paths(EA);for(const uA of cA){const lA=uA.node.name,hA=uA.has_default_value,dA=thunk(AA.visit((CA=uA.expression)==null?void 0:CA.call(uA,maybe_call(id$1(nA)))));iA.push(let_builder(uA.node,hA?call("$.derived_safe_equal",dA):dA)),IA[lA]={read:hA?get_value:call},dev&&iA.push(stmt(IA[lA].read(id$1(lA))))}}gA=block([...iA,...AA.visit(eA.body,BA).body]);let sA=arrow(tA,gA);dev&&(sA=call("$.wrap_snippet",id$1(AA.state.analysis.name),sA));const QA=const_builder(eA.expression,sA);AA.path.length===1&&AA.path[0].type==="Fragment"?AA.state.analysis.top_level_snippets.push(QA):AA.state.init.push(QA)}function SpreadAttribute(eA,AA){return AA.visit(eA.expression)}function visit_special_element(eA,AA,tA){const gA={...tA.state,node:id$1(AA)};for(const iA of eA.attributes)iA.type==="OnDirective"?tA.state.init.push(stmt(tA.visit(iA,gA))):tA.visit(iA,gA)}function SvelteBody(eA,AA){visit_special_element(eA,"$.document.body",AA)}function SvelteComponent(eA,AA){const tA=build_component(eA,"$$component",AA);AA.state.init.push(tA)}function SvelteDocument(eA,AA){visit_special_element(eA,"$.document",AA)}function SvelteElement(eA,AA){AA.state.template.push("<!>");const tA=[];let gA;const iA=[],IA=[],BA=[],sA=id$1(AA.state.scope.generate("$$element")),QA={...AA,state:{...AA.state,node:sA,before_init:[],init:[],update:[],after_update:[]}};for(const cA of eA.attributes)if(cA.type==="Attribute")cA.name==="xmlns"&&!is_text_attribute(cA)&&(gA=cA.value),tA.push(cA);else if(cA.type==="SpreadAttribute")tA.push(cA);else if(cA.type==="ClassDirective")iA.push(cA);else if(cA.type==="StyleDirective")IA.push(cA);else if(cA.type==="LetDirective")BA.push(AA.visit(cA));else if(cA.type==="OnDirective"){const uA=AA.visit(cA,QA.state);QA.state.after_update.push(stmt(uA))}else AA.visit(cA,QA.state);AA.state.init.push(...BA);let CA=!1;if(tA.length===0)AA.state.analysis.css.hash&&QA.state.init.push(stmt(call("$.set_class",sA,literal(AA.state.analysis.css.hash))));else{const cA=id$1(AA.state.scope.generate("attributes"));CA=build_set_attributes(tA,QA,eA,sA,cA,binary("===",member(sA,"namespaceURI"),id$1("$.NAMESPACE_SVG")),call(member(member(sA,"nodeName"),"includes"),literal("-")),AA.state)}build_class_directives(iA,sA,QA,CA),build_style_directives(IA,sA,QA,CA);const oA=thunk(AA.visit(eA.tag));dev&&(eA.fragment.nodes.length>0&&AA.state.init.push(stmt(call("$.validate_void_dynamic_element",oA))),AA.state.init.push(stmt(call("$.validate_dynamic_element_tag",oA))));const EA=QA.state.init;QA.state.update.length>0&&EA.push(build_render_statement(QA.state.update)),EA.push(...QA.state.after_update),EA.push(...AA.visit(eA.fragment,{...AA.state,metadata:{...AA.state.metadata,namespace:determine_namespace_for_children(eA,AA.state.metadata.namespace)}}).body);const nA=dev&&locator(eA.start);AA.state.init.push(stmt(call("$.element",AA.state.node,oA,eA.metadata.svg||eA.metadata.mathml?true_instance:false_instance,EA.length>0&&arrow([sA,id$1("$$anchor")],block(EA)),gA&&thunk(build_attribute_value(gA,AA).value),nA&&array([literal(nA.line),literal(nA.column)]))))}function SvelteFragment(eA,AA){for(const tA of eA.attributes)tA.type==="LetDirective"&&AA.state.init.push(AA.visit(tA));AA.state.init.push(...AA.visit(eA.fragment).body)}function SvelteHead(eA,AA){AA.state.init.push(stmt(call("$.head",arrow([id$1("$$anchor")],AA.visit(eA.fragment)))))}function SvelteSelf(eA,AA){const tA=build_component(eA,AA.state.analysis.name,AA);AA.state.init.push(tA)}function SvelteWindow(eA,AA){visit_special_element(eA,"$.window",AA)}function TitleElement(eA,AA){const{has_state:tA,value:gA}=build_template_literal(eA.fragment.nodes,AA.visit,AA.state),iA=stmt(assignment("=",id$1("$.document.title"),gA));tA?AA.state.update.push(iA):AA.state.init.push(iA)}function TransitionDirective(eA,AA){let tA=eA.modifiers.includes("global")?TRANSITION_GLOBAL:0;eA.intro&&(tA|=TRANSITION_IN),eA.outro&&(tA|=TRANSITION_OUT);const gA=[literal(tA),AA.state.node,thunk(AA.visit(parse_directive_name(eA.name)))];eA.expression&&gA.push(thunk(AA.visit(eA.expression))),AA.state.after_update.push(stmt(call("$.transition",...gA)))}function UpdateExpression(eA,AA){var QA;const tA=eA.argument;if(tA.type==="MemberExpression"&&tA.object.type==="ThisExpression"&&tA.property.type==="PrivateIdentifier"&&AA.state.private_state.has(tA.property.name)){let CA="$.update";eA.prefix&&(CA+="_pre");const oA=[tA];return eA.operator==="--"&&oA.push(literal(-1)),call(CA,...oA)}if(tA.type!=="Identifier"&&tA.type!=="MemberExpression")throw new Error("An impossible state was reached");const gA=object$1(tA);if(gA===null)return AA.next();if(gA===tA){const CA=AA.state.transform,oA=(QA=CA[gA.name])==null?void 0:QA.update;if(oA&&Object.hasOwn(CA,gA.name))return oA(eA)}const iA=AA.visit(assignment(eA.operator==="++"?"+=":"-=",tA,literal(1))),BA=AA.path.at(-1).type==="ExpressionStatement",sA=eA.prefix||BA?iA:binary(eA.operator==="++"?"-":"+",iA,literal(1));return is_ignored(eA,"ownership_invalid_mutation")?call("$.skip_ownership_validation",thunk(sA)):sA}function UseDirective(eA,AA){const tA=[id$1("$$node")];eA.expression&&tA.push(id$1("$$action_arg"));const gA=[AA.state.node,arrow(tA,call(AA.visit(parse_directive_name(eA.name)),...tA))];eA.expression&&gA.push(thunk(AA.visit(eA.expression))),AA.state.after_update.push(stmt(call("$.action",...gA))),AA.next()}function VariableDeclaration(eA,AA){var gA;const tA=[];if(AA.state.analysis.runes)for(const iA of eA.declarations){const IA=iA.init,BA=get_rune(IA,AA.state.scope);if(!BA||BA==="$effect.tracking"||BA==="$effect.root"||BA==="$inspect"||BA==="$state.snapshot"||BA==="$host"){if(IA!=null&&is_hoisted_function(IA)){AA.state.hoisted.push(const_builder(iA.id,AA.visit(IA)));continue}tA.push(AA.visit(iA));continue}if(BA==="$props"){const CA=["$$slots","$$events","$$legacy"];if(AA.state.analysis.custom_element&&CA.push("$$host"),iA.id.type==="Identifier"){const oA=[id$1("$$props"),array(CA.map(EA=>literal(EA)))];dev&&oA.push(literal(iA.id.name)),tA.push(declarator(iA.id,call("$.rest_props",...oA)))}else{equal(iA.id.type,"ObjectPattern");for(const oA of iA.id.properties)if(oA.type==="Property"){const EA=oA.key,nA=EA.type==="Identifier"?EA.name:EA.value;CA.push(nA);let cA=oA.value.type==="AssignmentPattern"?oA.value.left:oA.value;equal(cA.type,"Identifier");const uA=AA.state.scope.get(cA.name);let lA=uA.initial&&AA.visit(uA.initial);lA&&uA.kind==="bindable_prop"&&should_proxy(lA,AA.state.scope)&&(lA=call("$.proxy",lA)),is_prop_source(uA,AA.state)&&tA.push(declarator(cA,get_prop_source(uA,AA.state,nA,lA)))}else{const EA=[id$1("$$props"),array(CA.map(nA=>literal(nA)))];dev&&EA.push(literal(oA.argument.name)),tA.push(declarator(oA.argument,call("$.rest_props",...EA)))}}continue}const sA=IA.arguments,QA=sA.length===0?id$1("undefined"):AA.visit(sA[0]);if(BA==="$state"||BA==="$state.raw"){const CA=(oA,EA)=>{const nA=AA.state.scope.get(oA.name);return BA==="$state"&&should_proxy(EA,AA.state.scope)&&(EA=call("$.proxy",EA)),is_state_source(nA,AA.state.analysis)&&(EA=call("$.state",EA)),EA};if(iA.id.type==="Identifier")tA.push(declarator(iA.id,CA(iA.id,QA)));else{const oA=AA.state.scope.generate("tmp"),EA=extract_paths(iA.id);tA.push(declarator(id$1(oA),QA),...EA.map(nA=>{var lA;const cA=(lA=nA.expression)==null?void 0:lA.call(nA,id$1(oA)),uA=AA.state.scope.get(nA.node.name);return declarator(nA.node,(uA==null?void 0:uA.kind)==="state"||(uA==null?void 0:uA.kind)==="raw_state"?CA(uA.node,cA):cA)}))}continue}if(BA==="$derived"||BA==="$derived.by"){if(iA.id.type==="Identifier")tA.push(declarator(iA.id,call("$.derived",BA==="$derived.by"?QA:thunk(QA))));else{const CA=extract_paths(iA.id),oA=iA.init;let EA,nA=QA;BA==="$derived"&&oA.arguments[0].type==="Identifier"?EA=oA.arguments[0]:(EA=id$1(AA.state.scope.generate("$$d")),nA=call("$.get",EA),tA.push(declarator(EA,call("$.derived",BA==="$derived.by"?QA:thunk(QA)))));for(let cA=0;cA<CA.length;cA++){const uA=CA[cA];tA.push(declarator(uA.node,call("$.derived",thunk(uA.expression(nA)))))}}continue}}else for(const iA of eA.declarations){const IA=AA.state.scope.get_bindings(iA),BA=IA.some(QA=>QA.kind==="state"),sA=IA.some(QA=>QA.kind==="bindable_prop");if(!BA&&!sA){const QA=iA.init;if(QA!=null&&is_hoisted_function(QA)){AA.state.hoisted.push(const_builder(iA.id,AA.visit(QA)));continue}tA.push(AA.visit(iA));continue}if(sA){if(iA.id.type!=="Identifier"){const CA=AA.state.scope.generate("tmp"),oA=extract_paths(iA.id);tA.push(declarator(id$1(CA),AA.visit(iA.init)));for(const EA of oA){const nA=EA.node.name,cA=AA.state.scope.get(nA),uA=(gA=EA.expression)==null?void 0:gA.call(EA,id$1(CA));tA.push(declarator(EA.node,cA.kind==="bindable_prop"?get_prop_source(cA,AA.state,cA.prop_alias??nA,uA):uA))}continue}const QA=AA.state.scope.get(iA.id.name);tA.push(declarator(iA.id,get_prop_source(QA,AA.state,QA.prop_alias??iA.id.name,iA.init&&AA.visit(iA.init))));continue}tA.push(...create_state_declarators(iA,AA.state,iA.init&&AA.visit(iA.init)))}return tA.length===0?empty:{...eA,declarations:tA}}function create_state_declarators(eA,{scope:AA,analysis:tA},gA){if(eA.id.type==="Identifier")return[declarator(eA.id,call("$.mutable_state",gA,tA.immutable?true_instance:void 0))];const iA=AA.generate("tmp"),IA=extract_paths(eA.id);return[declarator(id$1(iA),gA),...IA.map(BA=>{var CA;const sA=(CA=BA.expression)==null?void 0:CA.call(BA,id$1(iA)),QA=AA.get(BA.node.name);return declarator(BA.node,(QA==null?void 0:QA.kind)==="state"?call("$.mutable_state",sA,tA.immutable?true_instance:void 0):sA)})]}const visitors={_:function eA(AA,{next:tA,state:gA}){const iA=gA.scopes.get(AA);if(iA&&iA!==gA.scope){const IA={...gA.transform};for(const[BA,sA]of iA.declarations)(sA.kind==="normal"||sA.kind==="state"&&!is_state_source(sA,gA.analysis))&&delete IA[BA];tA({...gA,transform:IA,scope:iA})}else tA()},AnimateDirective,ArrowFunctionExpression,AssignmentExpression,Attribute,AwaitBlock,BinaryExpression,BindDirective,BlockStatement,BreakStatement,CallExpression,ClassBody,Comment,Component,ConstTag,DebugTag,EachBlock,ExportNamedDeclaration,ExpressionStatement,Fragment,FunctionDeclaration,FunctionExpression,HtmlTag,Identifier,IfBlock,ImportDeclaration,KeyBlock,LabeledStatement,LetDirective,MemberExpression,OnDirective,Program,RegularElement,RenderTag,SlotElement,SnippetBlock,SpreadAttribute,SvelteBody,SvelteComponent,SvelteDocument,SvelteElement,SvelteFragment,SvelteHead,SvelteSelf,SvelteWindow,TitleElement,TransitionDirective,UpdateExpression,UseDirective,VariableDeclaration};function client_component(eA,AA){var wA,RA;const tA={analysis:eA,options:AA,scope:eA.module.scope,scopes:eA.module.scopes,is_instance:!1,hoisted:[import_all("$","svelte/internal/client")],node:null,legacy_reactive_imports:[],legacy_reactive_statements:new Map,metadata:{context:{template_needs_import_node:!1,template_contains_script_tag:!1},namespace:AA.namespace,bound_contenteditable:!1},events:new Set,preserve_whitespace:AA.preserveWhitespace,public_state:new Map,private_state:new Map,transform:{},in_constructor:!1,before_init:null,init:null,update:null,after_update:null,template:null,locations:null},gA=walk(eA.module.ast,tA,visitors),iA={...tA,transform:{...tA.transform},scope:eA.instance.scope,scopes:eA.instance.scopes,is_instance:!0},IA=walk(eA.instance.ast,iA,visitors),BA=walk(eA.template.ast,{...tA,transform:iA.transform,scope:eA.instance.scope,scopes:eA.template.scopes},visitors);gA.body.unshift(...tA.legacy_reactive_imports);const sA=[],QA=[];for(const[GA,yA]of eA.instance.scope.declarations)if(yA.kind==="legacy_reactive"&&QA.push(const_builder(GA,call("$.mutable_state",void 0,eA.immutable?true_instance:void 0))),yA.kind==="store_sub"){sA.length===0&&sA.push(const_builder("$$stores",call("$.setup_stores")));const LA=build_getter$1(id$1(GA.slice(1)),iA),KA=call("$.store_get",LA,literal(GA),id$1("$$stores"));sA.push(const_builder(yA.node,thunk(dev?sequence$1([call("$.validate_store",LA,literal(GA.slice(1))),KA]):KA)))}for(const[GA]of eA.reactive_statements){const yA=[...tA.legacy_reactive_statements].find(([LA])=>LA===GA);if(yA===void 0)throw new Error("Could not find reactive statement");IA.body.push(yA[1])}eA.reactive_statements.size>0&&IA.body.push(stmt(call("$.legacy_pre_effect_reset")));const CA=[];for(const GA of eA.binding_groups.values())CA.push(const_builder(GA.name,array([])));const oA=eA.exports.flatMap(({name:GA,alias:yA})=>{const LA=iA.scope.get(GA),KA=build_getter$1(id$1(GA),iA),bA=get(yA??GA,[return_builder(KA)]);if(KA.type==="Identifier"){if((LA==null?void 0:LA.declaration_kind)==="let"||(LA==null?void 0:LA.declaration_kind)==="var")return[bA,set(yA??GA,[stmt(assignment("=",KA,id$1("$$value")))])];if(!dev)return init(yA??GA,KA)}if((LA==null?void 0:LA.kind)==="prop"||(LA==null?void 0:LA.kind)==="bindable_prop")return[bA,set(yA??GA,[stmt(call(GA,id$1("$$value")))])];if((LA==null?void 0:LA.kind)==="state"||(LA==null?void 0:LA.kind)==="raw_state"){const SA=LA.kind==="state"?call("$.proxy",id$1("$$value")):id$1("$$value");return[bA,set(yA??GA,[stmt(call("$.set",id$1(GA),SA))])]}return bA}),EA=[...eA.instance.scope.declarations].filter(([GA,yA])=>(yA.kind==="prop"||yA.kind==="bindable_prop")&&!GA.startsWith("$$"));if(dev&&eA.runes){const GA=eA.exports.map(({name:LA,alias:KA})=>literal(KA??LA)),yA=[];for(const[LA,KA]of EA)KA.kind==="bindable_prop"&&yA.push(literal(KA.prop_alias??LA));IA.body.unshift(stmt(call("$.validate_prop_bindings",id$1("$$props"),array(yA),array(GA),id$1(`${eA.name}`))))}if(eA.accessors)for(const[GA,yA]of EA){const LA=yA.prop_alias??GA,KA=get(LA,[return_builder(call(id$1(GA)))]),bA=set(LA,[stmt(call(id$1(GA),id$1("$$value"))),stmt(call("$.flush_sync"))]);eA.runes&&yA.initial&&(bA.value.params[0]={type:"AssignmentPattern",left:id$1("$$value"),right:yA.initial}),oA.push(KA,bA)}AA.compatibility.componentApi===4?oA.push(init("$set",id$1("$.update_legacy_props")),init("$on",arrow([id$1("$$event_name"),id$1("$$event_cb")],call("$.add_legacy_event_listener",id$1("$$props"),id$1("$$event_name"),id$1("$$event_cb"))))):dev&&oA.push(spread(call(id$1("$.legacy_api"))));const nA=[id$1("$$props"),literal(eA.runes)];dev&&nA.push(id$1(eA.name));const cA=block([...sA,...QA,...CA,...eA.top_level_snippets,...IA.body,eA.runes||!eA.needs_context?empty:stmt(call("$.init",eA.immutable?true_instance:void 0)),...BA.body]);if(!eA.runes)for(const{name:GA,alias:yA}of eA.exports)cA.body.push(stmt(call("$.bind_prop",id$1("$$props"),literal(yA??GA),build_getter$1(id$1(GA),iA))));if(eA.css.ast!==null&&eA.inject_styles){const GA=literal(eA.css.hash),yA=literal(render_stylesheet(eA.source,eA,AA).code);tA.hoisted.push(const_builder("$$css",object$2([init("hash",GA),init("code",yA)]))),cA.body.unshift(stmt(call("$.append_styles",id$1("$$anchor"),id$1("$$css"))))}const uA=dev||eA.needs_context||eA.reactive_statements.size>0||oA.length>0;if(uA&&(cA.body.unshift(stmt(call("$.push",...nA))),cA.body.push(oA.length>0?return_builder(call("$.pop",object$2(oA))):stmt(call("$.pop")))),eA.uses_rest_props){const GA=eA.exports.map(({name:yA,alias:LA})=>LA??yA);for(const[yA,LA]of eA.instance.scope.declarations)LA.kind==="bindable_prop"&&GA.push(LA.prop_alias??yA);cA.body.unshift(const_builder("$$restProps",call("$.legacy_rest_props",id$1("$$sanitized_props"),array(GA.map(yA=>literal(yA))))))}if(eA.uses_props||eA.uses_rest_props){const GA=[literal("children"),literal("$$slots"),literal("$$events"),literal("$$legacy")];eA.custom_element&&GA.push(literal("$$host")),cA.body.unshift(const_builder("$$sanitized_props",call("$.legacy_rest_props",id$1("$$props"),array(GA))))}eA.uses_slots&&cA.body.unshift(const_builder("$$slots",call("$.sanitize_slots",id$1("$$props"))));let lA=uA||eA.needs_props||eA.uses_props||eA.uses_rest_props||eA.uses_slots||eA.slot_names.size>0;const hA=[];let dA=[];for(const GA of[...gA.body,...tA.hoisted])GA.type==="ImportDeclaration"?hA.push(GA):dA.push(GA);dA=[...hA,...dA];const DA=function_declaration(id$1(eA.name),lA?[id$1("$$anchor"),id$1("$$props")]:[id$1("$$anchor")],cA);if(AA.hmr){const GA=id$1(eA.name),yA=id$1("$.HMR"),LA=member(GA,yA,!0),KA=member(id$1("module.default"),yA,!0),bA=[stmt(assignment("=",member(KA,"source"),member(LA,"source"))),stmt(call("$.set",member(LA,"source"),member(KA,"original")))];eA.css.hash&&bA.unshift(stmt(call("$.cleanup_styles",literal(eA.css.hash))));const SA=block([stmt(assignment("=",GA,call("$.hmr",GA,thunk(member(LA,"source"))))),stmt(call("import.meta.hot.accept",arrow([id$1("module")],block(bA))))]);dA.push(DA,if_builder(id$1("import.meta.hot"),SA),export_default(id$1(eA.name)))}else dA.push(export_default(DA));if(dev&&(dA.unshift(stmt(assignment("=",member(id$1(eA.name),"$.FILENAME",!0),literal(filename)))),dA.unshift(stmt(call(id$1("$.mark_module_start")))),dA.push(stmt(call(id$1("$.mark_module_end"),id$1(eA.name))))),AA.discloseVersion&&dA.unshift(imports([],"svelte/internal/disclose-version")),AA.compatibility.componentApi===4?(dA.unshift(imports([["createClassComponent","$$_createClassComponent"]],"svelte/legacy")),cA.body.unshift(if_builder(id$1("new.target"),return_builder(call("$$_createClassComponent",object$2([init("component",id$1(eA.name)),spread(id$1("$$anchor"))])))))):dev&&cA.body.unshift(stmt(call("$.check_target",id$1("new.target")))),tA.events.size>0&&dA.push(stmt(call("$.delegate",array(Array.from(tA.events).map(GA=>literal(GA)))))),eA.custom_element){const GA=eA.custom_element,yA=[];for(const[MA,NA]of EA){const FA=NA.prop_alias??MA,qA=typeof GA=="boolean"?{}:((wA=GA.props)==null?void 0:wA[FA])||{};!qA.type&&((RA=NA.initial)==null?void 0:RA.type)==="Literal"&&typeof NA.initial.value=="boolean"&&(qA.type="Boolean");const UA=object$2([qA.attribute?init("attribute",literal(qA.attribute)):void 0,qA.reflect?init("reflect",literal(!0)):void 0,qA.type?init("type",literal(qA.type)):void 0].filter(Boolean));yA.push(init(FA,UA))}const LA=array([...eA.slot_names.keys()].map(MA=>literal(MA))),KA=array(eA.exports.map(({name:MA,alias:NA})=>literal(NA??MA))),bA=typeof GA=="boolean"||GA.shadow!=="none",SA=call("$.create_custom_element",id$1(eA.name),object$2(yA),LA,KA,literal(bA),typeof GA!="boolean"?GA.extend:void 0);if(typeof GA!="boolean"&&typeof GA.tag=="string"){const MA=stmt(call("customElements.define",literal(GA.tag),SA));AA.hmr?dA.push(if_builder(binary("==",call("customElements.get",literal(GA.tag)),null_instane),MA)):dA.push(MA)}else dA.push(stmt(SA))}return{type:"Program",sourceType:"module",body:dA}}function client_module(eA,AA){const tA={analysis:eA,options:AA,scope:eA.module.scope,scopes:eA.module.scopes,public_state:new Map,private_state:new Map,transform:{},in_constructor:!1},gA=walk(eA.module.ast,tA,visitors);return{type:"Program",sourceType:"module",body:[import_all("$","svelte/internal/client"),...gA.body]}}function transform_component(eA,AA,tA){if(tA.generate===!1)return{js:null,css:null,warnings,metadata:{runes:eA.runes},ast:null};const gA=tA.generate==="server"?server_component(eA,tA):client_component(eA,tA),iA=get_source_name(tA.filename,tA.outputFilename),IA=print(gA,{sourceMapContent:AA,sourceMapSource:iA});merge_with_preprocessor_map(IA,tA,iA);const BA=eA.css.ast&&!eA.inject_styles?render_stylesheet(AA,eA,tA):null;return{js:IA,css:BA,warnings,metadata:{runes:eA.runes},ast:null}}function transform_module(eA,AA,tA){if(tA.generate===!1)return{js:null,css:null,warnings,metadata:{runes:!0},ast:null};const gA=tA.generate==="server"?server_module(eA,tA):client_module(eA,tA),iA=tA.filename.split(/[/\\]/).at(-1);return gA.body.length>0&&(gA.body[0].leadingComments=[{type:"Block",value:` ${iA} generated by Svelte v${VERSION} `}]),{js:print(gA,{sourceMapContent:AA,sourceMapSource:get_source_name(tA.filename,void 0)}),css:null,metadata:{runes:!0},warnings,ast:null}}var process={};const common={filename:string("(unknown)"),rootDir:string(typeof process<"u"?(jg=process.cwd)==null?void 0:jg.call(process):void 0),dev:boolean(!1),generate:validator("client",(eA,AA)=>eA==="dom"||eA==="ssr"?(warn_once(options_renamed_ssr_dom),eA==="dom"?"client":"server"):(eA!=="client"&&eA!=="server"&&eA!==!1&&throw_error(`${AA} must be "client", "server" or false`),eA))},validate_module_options=object({...common}),validate_component_options=object({...common,accessors:deprecate(options_deprecated_accessors,boolean(!1)),css:validator("external",eA=>((eA===!0||eA===!1)&&throw_error('The boolean options have been removed from the css option. Use "external" instead of false and "injected" instead of true'),eA==="none"&&throw_error('css: "none" is no longer a valid option. If this was crucial for you, please open an issue on GitHub with your use case.'),eA!=="external"&&eA!=="injected"&&throw_error('css should be either "external" (default, recommended) or "injected"'),eA)),cssHash:fun(({css:eA,hash:AA})=>`svelte-${AA(eA)}`),cssOutputFilename:string(void 0),customElement:boolean(!1),discloseVersion:boolean(!0),immutable:deprecate(options_deprecated_immutable,boolean(!1)),legacy:removed("The legacy option has been removed. If you are using this because of legacy.componentApi, use compatibility.componentApi instead"),compatibility:object({componentApi:list([4,5],5)}),loopGuardTimeout:warn_removed(options_removed_loop_guard_timeout),name:string(void 0),namespace:list(["html","mathml","svg"]),modernAst:boolean(!1),outputFilename:string(void 0),preserveComments:boolean(!1),preserveWhitespace:boolean(!1),runes:boolean(void 0),hmr:boolean(!1),warningFilter:fun(()=>!0),sourcemap:validator(void 0,eA=>eA),enableSourcemap:warn_removed(options_removed_enable_sourcemap),hydratable:warn_removed(options_removed_hydratable),format:removed('The format option has been removed in Svelte 4, the compiler only outputs ESM now. Remove "format" from your compiler options. If you did not set this yourself, bump the version of your bundler plugin (vite-plugin-svelte/rollup-plugin-svelte/svelte-loader)'),tag:removed('The tag option has been removed in Svelte 5. Use `<svelte:options customElement="tag-name" />` inside the component instead. If that does not solve your use case, please open an issue on GitHub with details.'),sveltePath:removed("The sveltePath option has been removed in Svelte 5. If this option was crucial for you, please open an issue on GitHub with your use case."),errorMode:removed("The errorMode option has been removed. If you are using this through svelte-preprocess with TypeScript, use the https://www.typescriptlang.org/tsconfig#verbatimModuleSyntax setting instead"),varsReport:removed("The vars option has been removed. If you are using this through svelte-preprocess with TypeScript, use the https://www.typescriptlang.org/tsconfig#verbatimModuleSyntax setting instead")});function removed(eA){return AA=>{AA!==void 0&&options_removed(null,eA)}}const warned=new Set;function warn_once(eA){warned.has(eA)||(warned.add(eA),eA(null))}function warn_removed(eA){return AA=>{AA!==void 0&&warn_once(eA)}}function deprecate(eA,AA){return(tA,gA)=>(tA!==void 0&&warn_once(eA),AA(tA,gA))}function object(eA,AA=!1){return(tA,gA)=>{const iA={};(tA&&typeof tA!="object"||Array.isArray(tA))&&throw_error(`${gA} should be an object`);for(const IA in tA)IA in eA||(AA?iA[IA]=tA[IA]:options_unrecognised(null,`${gA?`${gA}.${IA}`:IA}`));for(const IA in eA){const BA=eA[IA];iA[IA]=BA(tA&&tA[IA],gA?`${gA}.${IA}`:IA)}return iA}}function validator(eA,AA){return(tA,gA)=>tA===void 0?eA:AA(tA,gA)}function string(eA,AA=!0){return validator(eA,(tA,gA)=>(typeof tA!="string"&&throw_error(`${gA} should be a string, if specified`),!AA&&tA===""&&throw_error(`${gA} cannot be empty`),tA))}function boolean(eA){return validator(eA,(AA,tA)=>(typeof AA!="boolean"&&throw_error(`${tA} should be true or false, if specified`),AA))}function list(eA,AA=eA[0]){return validator(AA,(tA,gA)=>{if(!eA.includes(tA)){const iA=eA.length>2?`${gA} should be one of ${eA.slice(0,-1).map(IA=>`"${IA}"`).join(", ")} or "${eA[eA.length-1]}"`:`${gA} should be either "${eA[0]}" or "${eA[1]}"`;throw_error(iA)}return tA})}function fun(eA){return validator(eA,(AA,tA)=>(typeof AA!="function"&&throw_error(`${tA} should be a function, if specified`),AA))}function throw_error(eA){options_invalid_value(null,eA)}function compile(eA,AA){eA=remove_bom(eA),reset_warning_filter(AA.warningFilter);const tA=validate_component_options(AA,"");reset(eA,tA);let gA=parse(eA);const{customElement:iA,...IA}=gA.options||{},BA={...tA,...IA,customElementOptions:iA};gA.metadata.ts&&(gA={...gA,fragment:gA.fragment&&remove_typescript_nodes(gA.fragment),instance:gA.instance&&remove_typescript_nodes(gA.instance),module:gA.module&&remove_typescript_nodes(gA.module)});const sA=analyze_component(gA,eA,BA),QA=transform_component(sA,eA,BA);return QA.ast=to_public_ast(eA,gA,AA.modernAst),QA}function compileModule(eA,AA){eA=remove_bom(eA),reset_warning_filter(AA.warningFilter);const tA=validate_module_options(AA,"");reset(eA,tA);const gA=analyze_module(parse$1(eA,!1),tA);return transform_module(gA,eA,tA)}function to_public_ast(eA,AA,tA){var gA;if(tA){const iA=IA=>{delete IA.metadata,delete IA.parent};return(gA=AA.options)==null||gA.attributes.forEach(IA=>{iA(IA),iA(IA.value),Array.isArray(IA.value)&&IA.value.forEach(iA)}),walk(AA,null,{_(IA,{next:BA}){iA(IA),BA()}})}return convert(eA,AA)}function remove_bom(eA){return eA.charCodeAt(0)===65279?eA.slice(1):eA}const transform=()=>{const eA=new Set;return{input:(AA,tA)=>({code:AA,id:tA}),hook:(AA,tA)=>{if(!eA.has(tA))eA.add(tA);else return null;return tA.endsWith(".svelte")?{code:compile(AA,{generate:"dom",dev:!1,filename:tA,css:"injected"}).js.code,map:null}:tA.endsWith(".svelte.js")?{code:compileModule(AA,{generate:"client",dev:!1,filename:tA}).js.code,map:null}:tA.endsWith(".json")?{code:`export default ${AA};`,map:null}:null}}},load=(eA,AA,tA)=>{const gA=new Set;return{input:iA=>({resolved:iA}),hook:async iA=>{if(!gA.has(iA))gA.add(iA);else return null;if(iA==="<nil_xit_internal>/index.js")return AA;if(iA.startsWith(USER_TAG)){const IA=iA.substring(USER_TAG.length),BA=concat([header(nil_xit_proto.MessageType.MessageType_FileRequest),nil_xit_proto.FileRequest.encode({target:IA}).finish()]),{content:sA,metadata:QA}=await service_fetch(eA,BA,(CA,oA)=>{if(CA===nil_xit_proto.MessageType.MessageType_FileResponse){const EA=nil_xit_proto.FileResponse.decode(oA);if(EA.target===IA)return EA}});return tA&&tA(IA,QA),sA}if(iA.startsWith(RESOURCE_TAG))return await(await fetch(iA.slice(RESOURCE_TAG.length))).text();throw`unknown file: ${iA}`}}},debug_verbose=!1,hook_up=(eA,{hook:AA,input:tA})=>AA,warning=eA=>debug_verbose,encode=eA=>{const AA=new TextEncoder().encode(eA),gA=new Uint8Array(AA).reduce((iA,IA)=>iA+String.fromCharCode(IA),"");return btoa(gA)},transform_import=eA=>{const AA=eA.map(iA=>iA.split(" ")),tA=AA.map(iA=>{const IA=iA.slice(1,iA.length-2).join(" ");return IA.startsWith("* as ")?IA.slice(5):IA}),gA=AA.map(iA=>iA[iA.length-1]).map(iA=>`import_map(${iA})`);return`const [${tA.join(", ")}] = await Promise.all([${gA.join(", ")}]);`},wrap_fe=eA=>{const AA=eA.code.replace("export {","return {"),tA=AA.indexOf(`;
60
60
 
61
61
  `),gA=AA.slice(0,tA).split(`;
62
62
  `),iA=`export const nil_xit_fn = async (import_map) => { ${transform_import(gA)}; ${AA.slice(tA+2)}};`;return console.log(iA),iA},plugin=(eA,AA,tA)=>({name:"nil_xit_plugin",resolveId:hook_up("resolve_id",resolve_id(eA)),load:hook_up("load",load(eA,AA,tA)),transform:hook_up("transform",transform()),generateBundle:(gA,iA)=>{for(const IA of Object.values(iA))IA.type==="chunk"&&(IA.code=`data:text/javascript;base64,${encode(wrap_fe(IA))}`)}});var e,t="4.24.0",n={exports:{}};function s(){return e||(e=1,function(eA){const gA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",iA=new Uint8Array(64),IA=new Uint8Array(128);for(let bA=0;bA<gA.length;bA++){const SA=gA.charCodeAt(bA);iA[bA]=SA,IA[SA]=bA}function BA(bA,SA){let MA=0,NA=0,FA=0;do{const UA=bA.next();FA=IA[UA],MA|=(31&FA)<<NA,NA+=5}while(32&FA);const qA=1&MA;return MA>>>=1,qA&&(MA=-2147483648|-MA),SA+MA}function sA(bA,SA,MA){let NA=SA-MA;NA=NA<0?-NA<<1|1:NA<<1;do{let FA=31&NA;NA>>>=5,NA>0&&(FA|=32),bA.write(iA[FA])}while(NA>0);return SA}function QA(bA,SA){return!(bA.pos>=SA)&&bA.peek()!==44}const CA=16384,oA=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode:bA=>Buffer.from(bA.buffer,bA.byteOffset,bA.byteLength).toString()}:{decode(bA){let SA="";for(let MA=0;MA<bA.length;MA++)SA+=String.fromCharCode(bA[MA]);return SA}};class EA{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(CA)}write(SA){const{buffer:MA}=this;MA[this.pos++]=SA,this.pos===CA&&(this.out+=oA.decode(MA),this.pos=0)}flush(){const{buffer:SA,out:MA,pos:NA}=this;return NA>0?MA+oA.decode(SA.subarray(0,NA)):MA}}class nA{constructor(SA){this.pos=0,this.buffer=SA}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(SA){const{buffer:MA,pos:NA}=this,FA=MA.indexOf(SA,NA);return FA===-1?MA.length:FA}}const cA=[];function uA(bA){const{length:SA}=bA,MA=new nA(bA),NA=[],FA=[];let qA=0;for(;MA.pos<SA;MA.pos++){qA=BA(MA,qA);const UA=BA(MA,0);if(!QA(MA,SA)){const pA=FA.pop();pA[2]=qA,pA[3]=UA;continue}const mA=BA(MA,0),aA=1&BA(MA,0)?[qA,UA,0,0,mA,BA(MA,0)]:[qA,UA,0,0,mA];let rA=cA;if(QA(MA,SA)){rA=[];do{const pA=BA(MA,0);rA.push(pA)}while(QA(MA,SA))}aA.vars=rA,NA.push(aA),FA.push(aA)}return NA}function lA(bA){const SA=new EA;for(let MA=0;MA<bA.length;)MA=hA(bA,MA,SA,[0]);return SA.flush()}function hA(bA,SA,MA,NA){const FA=bA[SA],{0:qA,1:UA,2:mA,3:aA,4:rA,vars:pA}=FA;SA>0&&MA.write(44),NA[0]=sA(MA,qA,NA[0]),sA(MA,UA,0),sA(MA,rA,0),sA(MA,FA.length===6?1:0,0),FA.length===6&&sA(MA,FA[5],0);for(const fA of pA)sA(MA,fA,0);for(SA++;SA<bA.length;){const fA=bA[SA],{0:kA,1:JA}=fA;if(kA>mA||kA===mA&&JA>=aA)break;SA=hA(bA,SA,MA,NA)}return MA.write(44),NA[0]=sA(MA,mA,NA[0]),sA(MA,aA,0),SA}function dA(bA){const{length:SA}=bA,MA=new nA(bA),NA=[],FA=[];let qA=0,UA=0,mA=0,aA=0,rA=0,pA=0,fA=0,kA=0;do{const JA=MA.indexOf(";");let YA=0;for(;MA.pos<JA;MA.pos++){if(YA=BA(MA,YA),!QA(MA,JA)){const WA=FA.pop();WA[2]=qA,WA[3]=YA;continue}const xA=BA(MA,0),vA=2&xA,HA=4&xA;let PA,$A=null,TA=cA;if(1&xA){const WA=BA(MA,UA);mA=BA(MA,UA===WA?mA:0),UA=WA,PA=[qA,YA,0,0,WA,mA]}else PA=[qA,YA,0,0];if(PA.isScope=!!HA,vA){const WA=aA,ZA=rA;aA=BA(MA,aA);const Ag=WA===aA;rA=BA(MA,Ag?rA:0),pA=BA(MA,Ag&&ZA===rA?pA:0),$A=[aA,rA,pA]}if(PA.callsite=$A,QA(MA,JA)){TA=[];do{fA=qA,kA=YA;const WA=BA(MA,0);let ZA;if(WA<-1){ZA=[[BA(MA,0)]];for(let Ag=-1;Ag>WA;Ag--){const eg=fA;fA=BA(MA,fA),kA=BA(MA,fA===eg?kA:0);const sg=BA(MA,0);ZA.push([sg,fA,kA])}}else ZA=[[WA]];TA.push(ZA)}while(QA(MA,JA))}PA.bindings=TA,NA.push(PA),FA.push(PA)}qA++,MA.pos=JA+1}while(MA.pos<SA);return NA}function DA(bA){if(bA.length===0)return"";const SA=new EA;for(let MA=0;MA<bA.length;)MA=wA(bA,MA,SA,[0,0,0,0,0,0,0]);return SA.flush()}function wA(bA,SA,MA,NA){const FA=bA[SA],{0:qA,1:UA,2:mA,3:aA,isScope:rA,callsite:pA,bindings:fA}=FA;if(NA[0]<qA?(RA(MA,NA[0],qA),NA[0]=qA,NA[1]=0):SA>0&&MA.write(44),NA[1]=sA(MA,FA[1],NA[1]),sA(MA,(FA.length===6?1:0)|(pA?2:0)|(rA?4:0),0),FA.length===6){const{4:kA,5:JA}=FA;kA!==NA[2]&&(NA[3]=0),NA[2]=sA(MA,kA,NA[2]),NA[3]=sA(MA,JA,NA[3])}if(pA){const{0:kA,1:JA,2:YA}=FA.callsite;kA!==NA[4]?(NA[5]=0,NA[6]=0):JA!==NA[5]&&(NA[6]=0),NA[4]=sA(MA,kA,NA[4]),NA[5]=sA(MA,JA,NA[5]),NA[6]=sA(MA,YA,NA[6])}if(fA)for(const kA of fA){kA.length>1&&sA(MA,-kA.length,0),sA(MA,kA[0][0],0);let JA=qA,YA=UA;for(let xA=1;xA<kA.length;xA++){const vA=kA[xA];JA=sA(MA,vA[1],JA),YA=sA(MA,vA[2],YA),sA(MA,vA[0],0)}}for(SA++;SA<bA.length;){const kA=bA[SA],{0:JA,1:YA}=kA;if(JA>mA||JA===mA&&YA>=aA)break;SA=wA(bA,SA,MA,NA)}return NA[0]<mA?(RA(MA,NA[0],mA),NA[0]=mA,NA[1]=0):MA.write(44),NA[1]=sA(MA,aA,NA[1]),SA}function RA(bA,SA,MA){do bA.write(59);while(++SA<MA)}function GA(bA){const{length:SA}=bA,MA=new nA(bA),NA=[];let FA=0,qA=0,UA=0,mA=0,aA=0;do{const rA=MA.indexOf(";"),pA=[];let fA=!0,kA=0;for(FA=0;MA.pos<rA;){let JA;FA=BA(MA,FA),FA<kA&&(fA=!1),kA=FA,QA(MA,rA)?(qA=BA(MA,qA),UA=BA(MA,UA),mA=BA(MA,mA),QA(MA,rA)?(aA=BA(MA,aA),JA=[FA,qA,UA,mA,aA]):JA=[FA,qA,UA,mA]):JA=[FA],pA.push(JA),MA.pos++}fA||yA(pA),NA.push(pA),MA.pos=rA+1}while(MA.pos<=SA);return NA}function yA(bA){bA.sort(LA)}function LA(bA,SA){return bA[0]-SA[0]}function KA(bA){const SA=new EA;let MA=0,NA=0,FA=0,qA=0;for(let UA=0;UA<bA.length;UA++){const mA=bA[UA];if(UA>0&&SA.write(59),mA.length===0)continue;let aA=0;for(let rA=0;rA<mA.length;rA++){const pA=mA[rA];rA>0&&SA.write(44),aA=sA(SA,pA[0],aA),pA.length!==1&&(MA=sA(SA,pA[1],MA),NA=sA(SA,pA[2],NA),FA=sA(SA,pA[3],FA),pA.length!==4&&(qA=sA(SA,pA[4],qA)))}}return SA.flush()}eA.decode=GA,eA.decodeGeneratedRanges=dA,eA.decodeOriginalScopes=uA,eA.encode=KA,eA.encodeGeneratedRanges=DA,eA.encodeOriginalScopes=lA,Object.defineProperty(eA,"__esModule",{value:!0})}(n.exports)),n.exports}var i=s();class r{constructor(AA){this.bits=AA instanceof r?AA.bits.slice():[]}add(AA){this.bits[AA>>5]|=1<<(31&AA)}has(AA){return!!(this.bits[AA>>5]&1<<(31&AA))}}let o=class Tg{constructor(AA,tA,gA){this.start=AA,this.end=tA,this.original=gA,this.intro="",this.outro="",this.content=gA,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(AA){this.outro+=AA}appendRight(AA){this.intro=this.intro+AA}clone(){const AA=new Tg(this.start,this.end,this.original);return AA.intro=this.intro,AA.outro=this.outro,AA.content=this.content,AA.storeName=this.storeName,AA.edited=this.edited,AA}contains(AA){return this.start<AA&&AA<this.end}eachNext(AA){let tA=this;for(;tA;)AA(tA),tA=tA.next}eachPrevious(AA){let tA=this;for(;tA;)AA(tA),tA=tA.previous}edit(AA,tA,gA){return this.content=AA,gA||(this.intro="",this.outro=""),this.storeName=tA,this.edited=!0,this}prependLeft(AA){this.outro=AA+this.outro}prependRight(AA){this.intro=AA+this.intro}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(AA){const tA=AA-this.start,gA=this.original.slice(0,tA),iA=this.original.slice(tA);this.original=gA;const IA=new Tg(AA,this.end,iA);return IA.outro=this.outro,this.outro="",this.end=AA,this.edited?(IA.edit("",!1),this.content=""):this.content=gA,IA.next=this.next,IA.next&&(IA.next.previous=IA),IA.previous=this,this.next=IA,IA}toString(){return this.intro+this.content+this.outro}trimEnd(AA){if(this.outro=this.outro.replace(AA,""),this.outro.length)return!0;const tA=this.content.replace(AA,"");return tA.length?(tA!==this.content&&(this.split(this.start+tA.length).edit("",void 0,!0),this.edited&&this.edit(tA,this.storeName,!0)),!0):(this.edit("",void 0,!0),this.intro=this.intro.replace(AA,""),!!this.intro.length||void 0)}trimStart(AA){if(this.intro=this.intro.replace(AA,""),this.intro.length)return!0;const tA=this.content.replace(AA,"");if(tA.length){if(tA!==this.content){const gA=this.split(this.end-tA.length);this.edited&&gA.edit(tA,this.storeName,!0),this.edit("",void 0,!0)}return!0}return this.edit("",void 0,!0),this.outro=this.outro.replace(AA,""),!!this.outro.length||void 0}};function a(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?eA=>globalThis.btoa(unescape(encodeURIComponent(eA))):typeof Buffer=="function"?eA=>Buffer.from(eA,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}const l=a();class c{constructor(AA){this.version=3,this.file=AA.file,this.sources=AA.sources,this.sourcesContent=AA.sourcesContent,this.names=AA.names,this.mappings=i.encode(AA.mappings),AA.x_google_ignoreList!==void 0&&(this.x_google_ignoreList=AA.x_google_ignoreList)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+l(this.toString())}}function d(eA,AA){const tA=eA.split(/[/\\]/),gA=AA.split(/[/\\]/);for(tA.pop();tA[0]===gA[0];)tA.shift(),gA.shift();if(tA.length){let iA=tA.length;for(;iA--;)tA[iA]=".."}return tA.concat(gA).join("/")}const u=Object.prototype.toString;function h(eA){return u.call(eA)==="[object Object]"}function p(eA){const AA=eA.split(`