lula2 0.6.3-nightly.0 → 0.6.3-nightly.2
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/README.md +34 -0
- package/dist/_app/immutable/chunks/{MTDiNHJy.js → 1jzXvEnX.js} +1 -1
- package/dist/_app/immutable/chunks/{BXUi170M.js → BaV6jU6m.js} +1 -1
- package/dist/_app/immutable/chunks/{CnwkJbO2.js → C2SR2FDY.js} +1 -1
- package/dist/_app/immutable/chunks/{e7OeeeKP.js → C4K5jMrZ.js} +1 -1
- package/dist/_app/immutable/chunks/{CRa0j_Fx.js → CynYS-Ma.js} +1 -1
- package/dist/_app/immutable/chunks/{rc9CiIba.js → D74fr9ax.js} +2 -2
- package/dist/_app/immutable/chunks/{WlyXjfrM.js → DBdrJbLi.js} +1 -1
- package/dist/_app/immutable/chunks/DmBJsPtc.js +2 -0
- package/dist/_app/immutable/chunks/{Cq7PwVfU.js → _8PUdHCK.js} +1 -1
- package/dist/_app/immutable/entry/{app.C9fkwjMz.js → app.CY89YrVW.js} +2 -2
- package/dist/_app/immutable/entry/start.DWsnY-61.js +1 -0
- package/dist/_app/immutable/nodes/{0.DTEvfwsS.js → 0.Cs_n-oiO.js} +1 -1
- package/dist/_app/immutable/nodes/{1.CVMum2jU.js → 1.B7Z5qFVB.js} +1 -1
- package/dist/_app/immutable/nodes/{2.D-DlyZaW.js → 2.BN5e8rSZ.js} +1 -1
- package/dist/_app/immutable/nodes/{3.CEMIejLc.js → 3.-pzDIQdZ.js} +1 -1
- package/dist/_app/immutable/nodes/{4.BRRWt-Y5.js → 4.D6LQvz4k.js} +1 -1
- package/dist/_app/version.json +1 -1
- package/dist/cli/commands/crawl.js +151 -90
- package/dist/index.html +10 -10
- package/dist/index.js +145 -91
- package/package.json +1 -1
- package/dist/_app/immutable/chunks/DTWPdvjs.js +0 -2
- package/dist/_app/immutable/entry/start.D2hMBZNv.js +0 -1
package/dist/index.js
CHANGED
|
@@ -5638,155 +5638,209 @@ function containsLulaAnnotations(text) {
|
|
|
5638
5638
|
const lines = text.split("\n");
|
|
5639
5639
|
return lines.some((line) => line.includes("@lulaStart") || line.includes("@lulaEnd"));
|
|
5640
5640
|
}
|
|
5641
|
-
function
|
|
5642
|
-
return
|
|
5643
|
-
new Option("--post-mode <mode>", "How to post findings").choices(["review", "comment"]).default("review")
|
|
5644
|
-
).action(async (opts) => {
|
|
5645
|
-
let leavePost = false;
|
|
5646
|
-
const { owner, repo, pull_number } = getPRContext();
|
|
5647
|
-
console.log(`Analyzing PR #${pull_number} in ${owner}/${repo} for compliance changes...`);
|
|
5648
|
-
const octokit = new Octokit({ auth: process.env.GITHUB_TOKEN });
|
|
5649
|
-
const pr = await octokit.pulls.get({ owner, repo, pull_number });
|
|
5650
|
-
const prBranch = pr.data.head.ref;
|
|
5651
|
-
const { data: files } = await octokit.pulls.listFiles({ owner, repo, pull_number });
|
|
5652
|
-
let commentBody = `${LULA_SIGNATURE}
|
|
5641
|
+
function createInitialCommentBody(filesCount) {
|
|
5642
|
+
return `${LULA_SIGNATURE}
|
|
5653
5643
|
## Lula Compliance Overview
|
|
5654
5644
|
|
|
5655
5645
|
Please review the changes to ensure they meet compliance standards.
|
|
5656
5646
|
|
|
5657
5647
|
### Reviewed Changes
|
|
5658
5648
|
|
|
5659
|
-
Lula reviewed ${
|
|
5649
|
+
Lula reviewed ${filesCount} files changed that affect compliance.
|
|
5660
5650
|
|
|
5661
5651
|
`;
|
|
5662
|
-
|
|
5663
|
-
|
|
5664
|
-
|
|
5665
|
-
|
|
5666
|
-
|
|
5667
|
-
|
|
5668
|
-
|
|
5669
|
-
|
|
5670
|
-
|
|
5671
|
-
|
|
5672
|
-
|
|
5673
|
-
|
|
5674
|
-
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
-
|
|
5652
|
+
}
|
|
5653
|
+
async function analyzeDeletedFiles(context) {
|
|
5654
|
+
const { octokit, owner, repo, files } = context;
|
|
5655
|
+
const deletedFilesWithAnnotations = [];
|
|
5656
|
+
for (const file of files) {
|
|
5657
|
+
if (file.status === "removed") {
|
|
5658
|
+
try {
|
|
5659
|
+
const oldText = await fetchRawFileViaAPI({
|
|
5660
|
+
octokit,
|
|
5661
|
+
owner,
|
|
5662
|
+
repo,
|
|
5663
|
+
path: file.filename,
|
|
5664
|
+
ref: "main"
|
|
5665
|
+
});
|
|
5666
|
+
if (containsLulaAnnotations(oldText)) {
|
|
5667
|
+
deletedFilesWithAnnotations.push(file.filename);
|
|
5678
5668
|
}
|
|
5669
|
+
} catch (err) {
|
|
5670
|
+
console.error(`Error checking deleted file ${file.filename}: ${err}`);
|
|
5679
5671
|
}
|
|
5680
5672
|
}
|
|
5681
|
-
|
|
5682
|
-
|
|
5683
|
-
|
|
5673
|
+
}
|
|
5674
|
+
if (deletedFilesWithAnnotations.length === 0) {
|
|
5675
|
+
return { hasFindings: false, warningContent: "" };
|
|
5676
|
+
}
|
|
5677
|
+
let warningContent = `
|
|
5684
5678
|
|
|
5685
5679
|
**Compliance Warning: Files with Lula annotations were deleted**
|
|
5686
5680
|
|
|
5687
5681
|
`;
|
|
5688
|
-
|
|
5682
|
+
warningContent += `The following files contained compliance annotations (\`@lulaStart\`/\`@lulaEnd\`) and were deleted in this PR. This may affect compliance coverage:
|
|
5689
5683
|
|
|
5690
5684
|
`;
|
|
5691
|
-
|
|
5692
|
-
|
|
5685
|
+
for (const filename of deletedFilesWithAnnotations) {
|
|
5686
|
+
warningContent += `- \`${filename}\`
|
|
5693
5687
|
`;
|
|
5694
|
-
|
|
5695
|
-
|
|
5688
|
+
}
|
|
5689
|
+
warningContent += `
|
|
5696
5690
|
Please review whether:
|
|
5697
5691
|
`;
|
|
5698
|
-
|
|
5692
|
+
warningContent += `- The compliance coverage provided by these files is still needed
|
|
5699
5693
|
`;
|
|
5700
|
-
|
|
5694
|
+
warningContent += `- Alternative compliance measures have been implemented
|
|
5701
5695
|
`;
|
|
5702
|
-
|
|
5696
|
+
warningContent += `- The deletion is intentional and compliance-approved
|
|
5703
5697
|
|
|
5704
5698
|
`;
|
|
5705
|
-
|
|
5699
|
+
warningContent += `---
|
|
5706
5700
|
|
|
5707
5701
|
`;
|
|
5708
|
-
|
|
5709
|
-
|
|
5710
|
-
|
|
5711
|
-
|
|
5712
|
-
|
|
5713
|
-
|
|
5714
|
-
|
|
5715
|
-
]);
|
|
5716
|
-
const changedBlocks = getChangedBlocks(oldText, newText);
|
|
5717
|
-
const removedBlocks = getRemovedBlocks(oldText, newText);
|
|
5718
|
-
for (const block of changedBlocks) {
|
|
5719
|
-
console.log(`Commenting regarding \`${file.filename}\`.`);
|
|
5720
|
-
leavePost = true;
|
|
5721
|
-
commentBody += `
|
|
5702
|
+
return { hasFindings: true, warningContent };
|
|
5703
|
+
}
|
|
5704
|
+
function generateChangedBlocksContent(filename, changedBlocks, newText) {
|
|
5705
|
+
let content = "";
|
|
5706
|
+
for (const block of changedBlocks) {
|
|
5707
|
+
console.log(`Commenting regarding \`${filename}\`.`);
|
|
5708
|
+
content += `
|
|
5722
5709
|
|
|
5723
5710
|
---
|
|
5724
5711
|
| File | Lines Changed |
|
|
5725
5712
|
| ---- | ------------- |
|
|
5726
5713
|
`;
|
|
5727
|
-
|
|
5728
|
-
|
|
5729
|
-
|
|
5714
|
+
const newBlockText = newText.split("\n").slice(block.startLine, block.endLine).join("\n");
|
|
5715
|
+
const blockSha256 = createHash2("sha256").update(newBlockText).digest("hex");
|
|
5716
|
+
content += `| \`${filename}\` | \`${block.startLine + 1}\u2013${block.endLine}\` |
|
|
5730
5717
|
> **uuid**-\`${block.uuid}\`
|
|
5731
5718
|
**sha256** \`${blockSha256}\`
|
|
5732
5719
|
|
|
5733
5720
|
`;
|
|
5734
|
-
|
|
5735
|
-
|
|
5736
|
-
|
|
5737
|
-
|
|
5738
|
-
|
|
5721
|
+
}
|
|
5722
|
+
return content;
|
|
5723
|
+
}
|
|
5724
|
+
function generateRemovedBlocksContent(filename, removedBlocks, oldText) {
|
|
5725
|
+
if (removedBlocks.length === 0) {
|
|
5726
|
+
return "";
|
|
5727
|
+
}
|
|
5728
|
+
console.log(`Found removed annotations in \`${filename}\`.`);
|
|
5729
|
+
let content = `
|
|
5739
5730
|
|
|
5740
|
-
**Compliance Warning: Lula annotations were removed from \`${
|
|
5731
|
+
**Compliance Warning: Lula annotations were removed from \`${filename}\`**
|
|
5741
5732
|
|
|
5742
5733
|
`;
|
|
5743
|
-
|
|
5734
|
+
content += `The following compliance annotation blocks were present in the original file but are missing in the updated version:
|
|
5744
5735
|
|
|
5745
5736
|
`;
|
|
5746
|
-
|
|
5737
|
+
content += `| File | Original Lines | UUID |
|
|
5747
5738
|
`;
|
|
5748
|
-
|
|
5739
|
+
content += `| ---- | -------------- | ---- |
|
|
5749
5740
|
`;
|
|
5750
|
-
|
|
5751
|
-
|
|
5752
|
-
|
|
5753
|
-
|
|
5741
|
+
for (const block of removedBlocks) {
|
|
5742
|
+
const oldBlockText = oldText.split("\n").slice(block.startLine, block.endLine).join("\n");
|
|
5743
|
+
const blockSha256 = createHash2("sha256").update(oldBlockText).digest("hex");
|
|
5744
|
+
content += `| \`${filename}\` | \`${block.startLine + 1}\u2013${block.endLine}\` | \`${block.uuid}\` |
|
|
5754
5745
|
`;
|
|
5755
|
-
|
|
5746
|
+
content += `> **sha256** \`${blockSha256}\`
|
|
5756
5747
|
|
|
5757
5748
|
`;
|
|
5758
|
-
|
|
5759
|
-
|
|
5749
|
+
}
|
|
5750
|
+
content += `Please review whether:
|
|
5760
5751
|
`;
|
|
5761
|
-
|
|
5752
|
+
content += `- The removal of these compliance annotations is intentional
|
|
5762
5753
|
`;
|
|
5763
|
-
|
|
5754
|
+
content += `- Alternative compliance measures have been implemented
|
|
5764
5755
|
`;
|
|
5765
|
-
|
|
5756
|
+
content += `- The compliance coverage is still adequate
|
|
5766
5757
|
|
|
5767
5758
|
`;
|
|
5768
|
-
|
|
5759
|
+
content += `---
|
|
5769
5760
|
|
|
5770
5761
|
`;
|
|
5771
|
-
|
|
5772
|
-
|
|
5773
|
-
|
|
5774
|
-
|
|
5775
|
-
|
|
5776
|
-
|
|
5777
|
-
|
|
5778
|
-
|
|
5779
|
-
|
|
5780
|
-
|
|
5762
|
+
return content;
|
|
5763
|
+
}
|
|
5764
|
+
async function analyzeModifiedFiles(context) {
|
|
5765
|
+
const { octokit, owner, repo, prBranch, files } = context;
|
|
5766
|
+
let changesContent = "";
|
|
5767
|
+
let hasFindings = false;
|
|
5768
|
+
for (const file of files) {
|
|
5769
|
+
if (file.status === "added" || file.status === "removed") continue;
|
|
5770
|
+
try {
|
|
5771
|
+
const [oldText, newText] = await Promise.all([
|
|
5772
|
+
fetchRawFileViaAPI({ octokit, owner, repo, path: file.filename, ref: "main" }),
|
|
5773
|
+
fetchRawFileViaAPI({ octokit, owner, repo, path: file.filename, ref: prBranch })
|
|
5774
|
+
]);
|
|
5775
|
+
const changedBlocks = getChangedBlocks(oldText, newText);
|
|
5776
|
+
const removedBlocks = getRemovedBlocks(oldText, newText);
|
|
5777
|
+
if (changedBlocks.length > 0) {
|
|
5778
|
+
hasFindings = true;
|
|
5779
|
+
changesContent += generateChangedBlocksContent(file.filename, changedBlocks, newText);
|
|
5780
|
+
}
|
|
5781
|
+
if (removedBlocks.length > 0) {
|
|
5782
|
+
hasFindings = true;
|
|
5783
|
+
changesContent += generateRemovedBlocksContent(file.filename, removedBlocks, oldText);
|
|
5784
|
+
}
|
|
5785
|
+
} catch (err) {
|
|
5786
|
+
console.error(`Error processing ${file.filename}: ${err}`);
|
|
5781
5787
|
}
|
|
5782
|
-
|
|
5788
|
+
}
|
|
5789
|
+
return { hasFindings, changesContent };
|
|
5790
|
+
}
|
|
5791
|
+
async function performComplianceAnalysis(context) {
|
|
5792
|
+
let commentBody = createInitialCommentBody(context.files.length);
|
|
5793
|
+
let hasFindings = false;
|
|
5794
|
+
const deletedAnalysis = await analyzeDeletedFiles(context);
|
|
5795
|
+
if (deletedAnalysis.hasFindings) {
|
|
5796
|
+
hasFindings = true;
|
|
5797
|
+
commentBody += deletedAnalysis.warningContent;
|
|
5798
|
+
}
|
|
5799
|
+
const modifiedAnalysis = await analyzeModifiedFiles(context);
|
|
5800
|
+
if (modifiedAnalysis.hasFindings) {
|
|
5801
|
+
hasFindings = true;
|
|
5802
|
+
commentBody += modifiedAnalysis.changesContent;
|
|
5803
|
+
}
|
|
5804
|
+
return { hasFindings, commentBody };
|
|
5805
|
+
}
|
|
5806
|
+
async function cleanupOldPosts(context, postMode) {
|
|
5807
|
+
const { octokit, owner, repo, pull_number } = context;
|
|
5808
|
+
if (postMode === "comment") {
|
|
5809
|
+
await deleteOldIssueComments({ octokit, owner, repo, pull_number });
|
|
5810
|
+
} else {
|
|
5811
|
+
await dismissOldReviews({ octokit, owner, repo, pull_number });
|
|
5812
|
+
await deleteOldReviewComments({ octokit, owner, repo, pull_number });
|
|
5813
|
+
}
|
|
5814
|
+
}
|
|
5815
|
+
function crawlCommand() {
|
|
5816
|
+
return new Command().command("crawl").description("Detect compliance-related changes between @lulaStart and @lulaEnd in PR files").addOption(
|
|
5817
|
+
new Option("--post-mode <mode>", "How to post findings").choices(["review", "comment"]).default("review")
|
|
5818
|
+
).action(async (opts) => {
|
|
5819
|
+
const { owner, repo, pull_number } = getPRContext();
|
|
5820
|
+
console.log(`Analyzing PR #${pull_number} in ${owner}/${repo} for compliance changes...`);
|
|
5821
|
+
const octokit = new Octokit({ auth: process.env.GITHUB_TOKEN });
|
|
5822
|
+
const pr = await octokit.pulls.get({ owner, repo, pull_number });
|
|
5823
|
+
const prBranch = pr.data.head.ref;
|
|
5824
|
+
const { data: files } = await octokit.pulls.listFiles({ owner, repo, pull_number });
|
|
5825
|
+
const context = {
|
|
5826
|
+
octokit,
|
|
5827
|
+
owner,
|
|
5828
|
+
repo,
|
|
5829
|
+
pull_number,
|
|
5830
|
+
prBranch,
|
|
5831
|
+
files
|
|
5832
|
+
};
|
|
5833
|
+
const analysisResult = await performComplianceAnalysis(context);
|
|
5834
|
+
await cleanupOldPosts(context, opts.postMode);
|
|
5835
|
+
if (analysisResult.hasFindings) {
|
|
5836
|
+
const finalBody = analysisResult.commentBody + closingBody;
|
|
5783
5837
|
await postFinding({
|
|
5784
5838
|
octokit,
|
|
5785
5839
|
postMode: opts.postMode,
|
|
5786
5840
|
owner,
|
|
5787
5841
|
repo,
|
|
5788
5842
|
pull_number,
|
|
5789
|
-
body:
|
|
5843
|
+
body: finalBody
|
|
5790
5844
|
});
|
|
5791
5845
|
const header = `Posted (${opts.postMode})`;
|
|
5792
5846
|
const underline = "-".repeat(header.length);
|
|
@@ -5794,7 +5848,7 @@ Please review whether:
|
|
|
5794
5848
|
${header}
|
|
5795
5849
|
${underline}
|
|
5796
5850
|
|
|
5797
|
-
${
|
|
5851
|
+
${finalBody}
|
|
5798
5852
|
|
|
5799
5853
|
`);
|
|
5800
5854
|
}
|
package/package.json
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var lt=Array.isArray,bn=Array.prototype.indexOf,wn=Array.from,Je=Object.defineProperty,ke=Object.getOwnPropertyDescriptor,mn=Object.getOwnPropertyDescriptors,En=Object.prototype,Tn=Array.prototype,Rt=Object.getPrototypeOf,yt=Object.isExtensible;function qr(e){return typeof e=="function"}const Z=()=>{};function Vr(e){return e()}function Nt(e){for(var t=0;t<e.length;t++)e[t]()}function Ct(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}function Yr(e,t){if(Array.isArray(e))return e;if(!(Symbol.iterator in e))return Array.from(e);const n=[];for(const r of e)if(n.push(r),n.length===t)break;return n}const k=2,ut=4,Ue=8,ue=16,$=32,fe=64,ft=128,C=256,Ye=512,m=1024,D=2048,B=4096,Q=8192,me=16384,ot=32768,$e=65536,bt=1<<17,An=1<<18,Ee=1<<19,Dt=1<<20,Qe=1<<21,Be=1<<22,se=1<<23,ie=Symbol("$state"),Hr=Symbol("legacy props"),Ur=Symbol(""),Oe=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},We=3,Ie=8;function Te(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function xn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Sn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function kn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function On(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Rn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Nn(){throw new Error("https://svelte.dev/e/get_abort_signal_outside_reaction")}function Cn(){throw new Error("https://svelte.dev/e/hydration_failed")}function It(e){throw new Error("https://svelte.dev/e/lifecycle_legacy_only")}function Br(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Dn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function In(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Pn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Mn(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const Wr=1,Gr=2,zr=4,Kr=8,Xr=16,Zr=1,Jr=2,Qr=4,es=8,ts=16,ns=4,Ln=1,Fn=2,Pt="[",Mt="[!",Lt="]",pe={},E=Symbol(),rs="http://www.w3.org/1999/xhtml",ss="@attach";function Ge(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function is(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function jn(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let b=!1;function he(e){b=e}let y;function I(e){if(e===null)throw Ge(),pe;return y=e}function ct(){return I(W(y))}function as(e){if(b){if(W(y)!==null)throw Ge(),pe;y=e}}function qn(e=1){if(b){for(var t=e,n=y;t--;)n=W(n);y=n}}function Vn(e=!0){for(var t=0,n=y;;){if(n.nodeType===Ie){var r=n.data;if(r===Lt){if(t===0)return n;t-=1}else(r===Pt||r===Mt)&&(t+=1)}var s=W(n);e&&n.remove(),n=s}}function ls(e){if(!e||e.nodeType!==Ie)throw Ge(),pe;return e.data}function Ft(e){return e===this.v}function jt(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function qt(e){return!jt(e,this.v)}let Pe=!1;function us(){Pe=!0}let g=null;function ge(e){g=e}function Yn(e){return ze().get(e)}function Hn(e,t){return ze().set(e,t),t}function Un(e){return ze().has(e)}function $n(){return ze()}function Bn(e,t=!1,n){g={p:g,c:null,e:null,s:e,x:null,l:Pe&&!t?{s:null,u:null,$:[]}:null}}function Wn(e){var t=g,n=t.e;if(n!==null){t.e=null;for(var r of n)en(r)}return g=t.p,{}}function Me(){return!Pe||g!==null&&g.l===null}function ze(e){return g===null&&Te(),g.c??=new Map(Gn(g)||void 0)}function Gn(e){let t=e.p;for(;t!==null;){const n=t.c;if(n!==null)return n;t=t.p}return null}let re=[];function Vt(){var e=re;re=[],Nt(e)}function ye(e){if(re.length===0&&!Re){var t=re;queueMicrotask(()=>{t===re&&Vt()})}re.push(e)}function zn(){for(;re.length>0;)Vt()}const Kn=new WeakMap;function Yt(e){var t=v;if(t===null)return h.f|=se,e;if((t.f&ot)===0){if((t.f&ft)===0)throw!t.parent&&e instanceof Error&&Ht(e),e;t.b.error(e)}else be(e,t)}function be(e,t){for(;t!==null;){if((t.f&ft)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e instanceof Error&&Ht(e),e}function Ht(e){const t=Kn.get(e);t&&(Je(e,"message",{value:t.message}),Je(e,"stack",{value:t.stack}))}const qe=new Set;let w=null,Ze=null,et=new Set,F=[],Ke=null,tt=!1,Re=!1;class R{current=new Map;#r=new Map;#t=new Set;#u=0;#i=null;#f=[];#s=[];#n=[];#e=[];#a=[];#o=[];skipped_effects=new Set;process(t){F=[],Ze=null;var n=R.apply(this);for(const i of t)this.#c(i);if(this.#u===0){this.#_();var r=this.#s,s=this.#n;this.#s=[],this.#n=[],this.#e=[],Ze=this,w=null,wt(r),wt(s),this.#i?.resolve()}else this.#l(this.#s),this.#l(this.#n),this.#l(this.#e);n();for(const i of this.#f)we(i);this.#f=[]}#c(t){t.f^=m;for(var n=t.first;n!==null;){var r=n.f,s=(r&($|fe))!==0,i=s&&(r&m)!==0,l=i||(r&Q)!==0||this.skipped_effects.has(n);if(!l&&n.fn!==null){s?n.f^=m:(r&ut)!==0?this.#n.push(n):(r&m)===0&&((r&Be)!==0&&n.b?.is_pending()?this.#f.push(n):Fe(n)&&((n.f&ue)!==0&&this.#e.push(n),we(n)));var u=n.first;if(u!==null){n=u;continue}}var a=n.parent;for(n=n.next;n===null&&a!==null;)n=a.next,a=a.parent}}#l(t){for(const n of t)((n.f&D)!==0?this.#a:this.#o).push(n),T(n,m);t.length=0}capture(t,n){this.#r.has(t)||this.#r.set(t,n),this.current.set(t,t.v)}activate(){w=this}deactivate(){w=null,Ze=null;for(const t of et)if(et.delete(t),t(),w!==null)break}flush(){if(F.length>0){if(this.activate(),nt(),w!==null&&w!==this)return}else this.#u===0&&this.#_();this.deactivate()}#_(){for(const t of this.#t)t();if(this.#t.clear(),qe.size>1){this.#r.clear();let t=!0;for(const n of qe){if(n===this){t=!1;continue}for(const[r,s]of this.current){if(n.current.has(r))if(t)n.current.set(r,s);else continue;$t(r)}if(F.length>0){w=n;const r=R.apply(n);for(const s of F)n.#c(s);F=[],r()}}w=null}qe.delete(this)}increment(){this.#u+=1}decrement(){if(this.#u-=1,this.#u===0){for(const t of this.#a)T(t,D),le(t);for(const t of this.#o)T(t,B),le(t);this.flush()}else this.deactivate()}add_callback(t){this.#t.add(t)}settled(){return(this.#i??=Ct()).promise}static ensure(){if(w===null){const t=w=new R;qe.add(w),Re||R.enqueue(()=>{w===t&&t.flush()})}return w}static enqueue(t){ye(t)}static apply(t){return Z}}function Ut(e){var t=Re;Re=!0;try{var n;for(e&&(w!==null&&nt(),n=e());;){if(zn(),F.length===0&&(w?.flush(),F.length===0))return Ke=null,n;nt()}}finally{Re=t}}function nt(){var e=ve;tt=!0;try{var t=0;for(At(!0);F.length>0;){var n=R.ensure();if(t++>1e3){var r,s;Xn()}n.process(F),J.clear()}}finally{tt=!1,At(e),Ke=null}}function Xn(){try{Rn()}catch(e){be(e,Ke)}}let ne=null;function wt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(me|Q))===0&&Fe(r)&&(ne=[],we(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?sn(r):r.fn=null),ne?.length>0)){J.clear();for(const s of ne)we(s);ne=[]}}ne=null}}function $t(e){if(e.reactions!==null)for(const t of e.reactions){const n=t.f;(n&k)!==0?$t(t):(n&(Be|ue))!==0&&(T(t,D),le(t))}}function le(e){for(var t=Ke=e;t.parent!==null;){t=t.parent;var n=t.f;if(tt&&t===v&&(n&ue)!==0)return;if((n&(fe|$))!==0){if((n&m)===0)return;t.f^=m}}F.push(t)}function Zn(e){let t=0,n=Le(0),r;return()=>{fr()&&(H(n),vt(()=>(t===0&&(r=te(()=>e(()=>Ne(n)))),t+=1,()=>{ye(()=>{t-=1,t===0&&(r?.(),r=void 0,Ne(n))})})))}}var Jn=$e|Ee|ft;function Qn(e,t,n){new er(e,t,n)}class er{parent;#r=!1;#t;#u=b?y:null;#i;#f;#s;#n=null;#e=null;#a=null;#o=null;#c=0;#l=0;#_=!1;#d=null;#g=()=>{this.#d&&Ce(this.#d,this.#c)};#y=Zn(()=>(this.#d=Le(this.#c),()=>{this.#d=null}));constructor(t,n,r){this.#t=t,this.#i=n,this.#f=r,this.parent=v.b,this.#r=!!this.#i.pending,this.#s=tn(()=>{if(v.b=this,b){const s=this.#u;ct(),s.nodeType===Ie&&s.data===Mt?this.#w():this.#b()}else{try{this.#n=K(()=>r(this.#t))}catch(s){this.error(s)}this.#l>0?this.#v():this.#r=!1}},Jn),b&&(this.#t=y)}#b(){try{this.#n=K(()=>this.#f(this.#t))}catch(t){this.error(t)}this.#r=!1}#w(){const t=this.#i.pending;t&&(this.#e=K(()=>t(this.#t)),R.enqueue(()=>{this.#n=this.#h(()=>(R.ensure(),K(()=>this.#f(this.#t)))),this.#l>0?this.#v():(Ve(this.#e,()=>{this.#e=null}),this.#r=!1)}))}is_pending(){return this.#r||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#i.pending}#h(t){var n=v,r=h,s=g;q(this.#s),S(this.#s),ge(this.#s.ctx);try{return t()}catch(i){return Yt(i),null}finally{q(n),S(r),ge(s)}}#v(){const t=this.#i.pending;this.#n!==null&&(this.#o=document.createDocumentFragment(),tr(this.#n,this.#o)),this.#e===null&&(this.#e=K(()=>t(this.#t)))}#p(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#p(t);return}this.#l+=t,this.#l===0&&(this.#r=!1,this.#e&&Ve(this.#e,()=>{this.#e=null}),this.#o&&(this.#t.before(this.#o),this.#o=null),ye(()=>{R.ensure().flush()}))}update_pending_count(t){this.#p(t),this.#c+=t,et.add(this.#g)}get_effect_pending(){return this.#y(),H(this.#d)}error(t){var n=this.#i.onerror;let r=this.#i.failed;if(this.#_||!n&&!r)throw t;this.#n&&(M(this.#n),this.#n=null),this.#e&&(M(this.#e),this.#e=null),this.#a&&(M(this.#a),this.#a=null),b&&(I(this.#u),qn(),I(Vn()));var s=!1,i=!1;const l=()=>{if(s){jn();return}s=!0,i&&Mn(),R.ensure(),this.#c=0,this.#a!==null&&Ve(this.#a,()=>{this.#a=null}),this.#r=this.has_pending_snippet(),this.#n=this.#h(()=>(this.#_=!1,K(()=>this.#f(this.#t)))),this.#l>0?this.#v():this.#r=!1};var u=h;try{S(null),i=!0,n?.(t,l),i=!1}catch(a){be(a,this.#s&&this.#s.parent)}finally{S(u)}r&&ye(()=>{this.#a=this.#h(()=>{this.#_=!0;try{return K(()=>{r(this.#t,()=>t,()=>l)})}catch(a){return be(a,this.#s.parent),null}finally{this.#_=!1}})})}}function tr(e,t){for(var n=e.nodes_start,r=e.nodes_end;n!==null;){var s=n===r?null:W(n);t.append(n),n=s}}function nr(e,t,n){const r=Me()?_t:ir;if(t.length===0){n(e.map(r));return}var s=w,i=v,l=rr(),u=b;Promise.all(t.map(a=>sr(a))).then(a=>{s?.activate(),l();try{n([...e.map(r),...a])}catch(f){(i.f&me)===0&&be(f,i)}u&&he(!1),s?.deactivate(),Bt()}).catch(a=>{be(a,i)})}function rr(){var e=v,t=h,n=g,r=w,s=b;if(s)var i=y;return function(){q(e),S(t),ge(n),r?.activate(),s&&(he(!0),I(i))}}function Bt(){q(null),S(null),ge(null)}function _t(e){var t=k|D,n=h!==null&&(h.f&k)!==0?h:null;return v===null||n!==null&&(n.f&C)!==0?t|=C:v.f|=Ee,{ctx:g,deps:null,effects:null,equals:Ft,f:t,fn:e,reactions:null,rv:0,v:E,wv:0,parent:n??v,ac:null}}function sr(e,t){let n=v;n===null&&xn();var r=n.b,s=void 0,i=Le(E),l=!h,u=new Map;return _r(()=>{var a=Ct();s=a.promise;try{Promise.resolve(e()).then(a.resolve,a.reject)}catch(c){a.reject(c)}var f=w,o=r.is_pending();l&&(r.update_pending_count(1),o||(f.increment(),u.get(f)?.reject(Oe),u.set(f,a)));const d=(c,_=void 0)=>{o||f.activate(),_?_!==Oe&&(i.f|=se,Ce(i,_)):((i.f&se)!==0&&(i.f^=se),Ce(i,c)),l&&(r.update_pending_count(-1),o||f.decrement()),Bt()};a.promise.then(d,c=>d(null,c||"unknown"))}),ht(()=>{for(const a of u.values())a.reject(Oe)}),new Promise(a=>{function f(o){function d(){o===s?a(i):f(s)}o.then(d,d)}f(s)})}function fs(e){const t=_t(e);return un(t),t}function ir(e){const t=_t(e);return t.equals=qt,t}function Wt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)M(t[n])}}function ar(e){for(var t=e.parent;t!==null;){if((t.f&k)===0)return t;t=t.parent}return null}function dt(e){var t,n=v;q(ar(e));try{Wt(e),t=_n(e)}finally{q(n)}return t}function Gt(e){var t=dt(e);if(e.equals(t)||(e.v=t,e.wv=on()),!Ae){var n=(X||(e.f&C)!==0)&&e.deps!==null?B:m;T(e,n)}}const J=new Map;function Le(e,t){var n={f:0,v:e,reactions:null,equals:Ft,rv:0,wv:0};return n}function z(e,t){const n=Le(e);return un(n),n}function os(e,t=!1,n=!0){const r=Le(e);return t||(r.equals=qt),Pe&&n&&g!==null&&g.l!==null&&(g.l.s??=[]).push(r),r}function cs(e,t){return Y(e,te(()=>H(e))),t}function Y(e,t,n=!1){h!==null&&(!P||(h.f&bt)!==0)&&Me()&&(h.f&(k|ue|Be|bt))!==0&&!U?.includes(e)&&Pn();let r=n?xe(t):t;return Ce(e,r)}function Ce(e,t){if(!e.equals(t)){var n=e.v;Ae?J.set(e,t):J.set(e,n),e.v=t;var r=R.ensure();r.capture(e,n),(e.f&k)!==0&&((e.f&D)!==0&&dt(e),T(e,(e.f&C)===0?m:B)),e.wv=on(),zt(e,D),Me()&&v!==null&&(v.f&m)!==0&&(v.f&($|fe))===0&&(N===null?gr([e]):N.push(e))}return t}function _s(e,t=1){var n=H(e),r=t===1?n++:n--;return Y(e,n),r}function Ne(e){Y(e,e.v+1)}function zt(e,t){var n=e.reactions;if(n!==null)for(var r=Me(),s=n.length,i=0;i<s;i++){var l=n[i],u=l.f;if(!(!r&&l===v)){var a=(u&D)===0;a&&T(l,t),(u&k)!==0?zt(l,B):a&&((u&ue)!==0&&ne!==null&&ne.push(l),le(l))}}}function xe(e){if(typeof e!="object"||e===null||ie in e)return e;const t=Rt(e);if(t!==En&&t!==Tn)return e;var n=new Map,r=lt(e),s=z(0),i=ae,l=u=>{if(ae===i)return u();var a=h,f=ae;S(null),St(i);var o=u();return S(a),St(f),o};return r&&n.set("length",z(e.length)),new Proxy(e,{defineProperty(u,a,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Dn();var o=n.get(a);return o===void 0?o=l(()=>{var d=z(f.value);return n.set(a,d),d}):Y(o,f.value,!0),!0},deleteProperty(u,a){var f=n.get(a);if(f===void 0){if(a in u){const o=l(()=>z(E));n.set(a,o),Ne(s)}}else Y(f,E),Ne(s);return!0},get(u,a,f){if(a===ie)return e;var o=n.get(a),d=a in u;if(o===void 0&&(!d||ke(u,a)?.writable)&&(o=l(()=>{var _=xe(d?u[a]:E),p=z(_);return p}),n.set(a,o)),o!==void 0){var c=H(o);return c===E?void 0:c}return Reflect.get(u,a,f)},getOwnPropertyDescriptor(u,a){var f=Reflect.getOwnPropertyDescriptor(u,a);if(f&&"value"in f){var o=n.get(a);o&&(f.value=H(o))}else if(f===void 0){var d=n.get(a),c=d?.v;if(d!==void 0&&c!==E)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return f},has(u,a){if(a===ie)return!0;var f=n.get(a),o=f!==void 0&&f.v!==E||Reflect.has(u,a);if(f!==void 0||v!==null&&(!o||ke(u,a)?.writable)){f===void 0&&(f=l(()=>{var c=o?xe(u[a]):E,_=z(c);return _}),n.set(a,f));var d=H(f);if(d===E)return!1}return o},set(u,a,f,o){var d=n.get(a),c=a in u;if(r&&a==="length")for(var _=f;_<d.v;_+=1){var p=n.get(_+"");p!==void 0?Y(p,E):_ in u&&(p=l(()=>z(E)),n.set(_+"",p))}if(d===void 0)(!c||ke(u,a)?.writable)&&(d=l(()=>z(void 0)),Y(d,xe(f)),n.set(a,d));else{c=d.v!==E;var A=l(()=>xe(f));Y(d,A)}var oe=Reflect.getOwnPropertyDescriptor(u,a);if(oe?.set&&oe.set.call(o,f),!c){if(r&&typeof a=="string"){var je=n.get("length"),G=Number(a);Number.isInteger(G)&&G>=je.v&&Y(je,G+1)}Ne(s)}return!0},ownKeys(u){H(s);var a=Reflect.ownKeys(u).filter(d=>{var c=n.get(d);return c===void 0||c.v!==E});for(var[f,o]of n)o.v!==E&&!(f in u)&&a.push(f);return a},setPrototypeOf(){In()}})}function mt(e){try{if(e!==null&&typeof e=="object"&&ie in e)return e[ie]}catch{}return e}function ds(e,t){return Object.is(mt(e),mt(t))}var Et,Kt,Xt,Zt;function rt(){if(Et===void 0){Et=window,Kt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Xt=ke(t,"firstChild").get,Zt=ke(t,"nextSibling").get,yt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),yt(n)&&(n.__t=void 0)}}function ee(e=""){return document.createTextNode(e)}function j(e){return Xt.call(e)}function W(e){return Zt.call(e)}function hs(e,t){if(!b)return j(e);var n=j(y);if(n===null)n=y.appendChild(ee());else if(t&&n.nodeType!==We){var r=ee();return n?.before(r),I(r),r}return I(n),n}function vs(e,t=!1){if(!b){var n=j(e);return n instanceof Comment&&n.data===""?W(n):n}if(t&&y?.nodeType!==We){var r=ee();return y?.before(r),I(r),r}return y}function ps(e,t=1,n=!1){let r=b?y:e;for(var s;t--;)s=r,r=W(r);if(!b)return r;if(n&&r?.nodeType!==We){var i=ee();return r===null?s?.after(i):r.before(i),I(i),i}return I(r),r}function Jt(e){e.textContent=""}function gs(){return!1}function ys(e,t){if(t){const n=document.body;e.autofocus=!0,ye(()=>{document.activeElement===n&&e.focus()})}}function bs(e){b&&j(e)!==null&&Jt(e)}let Tt=!1;function lr(){Tt||(Tt=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function Xe(e){var t=h,n=v;S(null),q(null);try{return e()}finally{S(t),q(n)}}function ws(e,t,n,r=n){e.addEventListener(t,()=>Xe(n));const s=e.__on_r;s?e.__on_r=()=>{s(),r(!0)}:e.__on_r=()=>r(!0),lr()}function Qt(e){v===null&&h===null&&On(),h!==null&&(h.f&C)!==0&&v===null&&kn(),Ae&&Sn()}function ur(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function V(e,t,n,r=!0){var s=v;s!==null&&(s.f&Q)!==0&&(e|=Q);var i={ctx:g,deps:null,nodes_start:null,nodes_end:null,f:e|D,first:null,fn:t,last:null,next:null,parent:s,b:s&&s.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{we(i),i.f|=ot}catch(a){throw M(i),a}else t!==null&&le(i);if(r){var l=i;if(n&&l.deps===null&&l.teardown===null&&l.nodes_start===null&&l.first===l.last&&(l.f&Ee)===0&&(l=l.first),l!==null&&(l.parent=s,s!==null&&ur(l,s),h!==null&&(h.f&k)!==0&&(e&fe)===0)){var u=h;(u.effects??=[]).push(l)}}return i}function fr(){return h!==null&&!P}function ht(e){const t=V(Ue,null,!1);return T(t,m),t.teardown=e,t}function or(e){Qt();var t=v.f,n=!h&&(t&$)!==0&&(t&ot)===0;if(n){var r=g;(r.e??=[]).push(e)}else return en(e)}function en(e){return V(ut|Dt,e,!1)}function ms(e){return Qt(),V(Ue|Dt,e,!0)}function cr(e){R.ensure();const t=V(fe|Ee,e,!0);return(n={})=>new Promise(r=>{n.outro?Ve(t,()=>{M(t),r(void 0)}):(M(t),r(void 0))})}function Es(e){return V(ut,e,!1)}function Ts(e,t){var n=g,r={effect:null,ran:!1,deps:e};n.l.$.push(r),r.effect=vt(()=>{e(),!r.ran&&(r.ran=!0,te(t))})}function As(){var e=g;vt(()=>{for(var t of e.l.$){t.deps();var n=t.effect;(n.f&m)!==0&&T(n,B),Fe(n)&&we(n),t.ran=!1}})}function _r(e){return V(Be|Ee,e,!0)}function vt(e,t=0){return V(Ue|t,e,!0)}function xs(e,t=[],n=[]){nr(t,n,r=>{V(Ue,()=>e(...r.map(H)),!0)})}function tn(e,t=0){var n=V(ue|t,e,!0);return n}function K(e,t=!0){return V($|Ee,e,!0,t)}function nn(e){var t=e.teardown;if(t!==null){const n=Ae,r=h;xt(!0),S(null);try{t.call(null)}finally{xt(n),S(r)}}}function rn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&Xe(()=>{s.abort(Oe)});var r=n.next;(n.f&fe)!==0?n.parent=null:M(n,t),n=r}}function dr(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&$)===0&&M(t),t=n}}function M(e,t=!0){var n=!1;(t||(e.f&An)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(hr(e.nodes_start,e.nodes_end),n=!0),rn(e,t&&!n),He(e,0),T(e,me);var r=e.transitions;if(r!==null)for(const i of r)i.stop();nn(e);var s=e.parent;s!==null&&s.first!==null&&sn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function hr(e,t){for(;e!==null;){var n=e===t?null:W(e);e.remove(),e=n}}function sn(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Ve(e,t){var n=[];an(e,n,!0),vr(n,()=>{M(e),t&&t()})}function vr(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var s of e)s.out(r)}else t()}function an(e,t,n){if((e.f&Q)===0){if(e.f^=Q,e.transitions!==null)for(const l of e.transitions)(l.is_global||n)&&t.push(l);for(var r=e.first;r!==null;){var s=r.next,i=(r.f&$e)!==0||(r.f&$)!==0;an(r,t,i?n:!1),r=s}}}function Ss(e){ln(e,!0)}function ln(e,t){if((e.f&Q)!==0){e.f^=Q,(e.f&m)===0&&(T(e,D),le(e));for(var n=e.first;n!==null;){var r=n.next,s=(n.f&$e)!==0||(n.f&$)!==0;ln(n,s?t:!1),n=r}if(e.transitions!==null)for(const i of e.transitions)(i.is_global||t)&&i.in()}}let de=null;function pr(e){var t=de;try{if(de=new Set,te(e),t!==null)for(var n of de)t.add(n);return de}finally{de=t}}function ks(e){for(var t of pr(e))Ce(t,t.v)}let ve=!1;function At(e){ve=e}let Ae=!1;function xt(e){Ae=e}let h=null,P=!1;function S(e){h=e}let v=null;function q(e){v=e}let U=null;function un(e){h!==null&&(U===null?U=[e]:U.push(e))}let x=null,O=0,N=null;function gr(e){N=e}let fn=1,De=0,ae=De;function St(e){ae=e}let X=!1;function on(){return++fn}function Fe(e){var t=e.f;if((t&D)!==0)return!0;if((t&B)!==0){var n=e.deps,r=(t&C)!==0;if(n!==null){var s,i,l=(t&Ye)!==0,u=r&&v!==null&&!X,a=n.length;if((l||u)&&(v===null||(v.f&me)===0)){var f=e,o=f.parent;for(s=0;s<a;s++)i=n[s],(l||!i?.reactions?.includes(f))&&(i.reactions??=[]).push(f);l&&(f.f^=Ye),u&&o!==null&&(o.f&C)===0&&(f.f^=C)}for(s=0;s<a;s++)if(i=n[s],Fe(i)&&Gt(i),i.wv>e.wv)return!0}(!r||v!==null&&!X)&&T(e,m)}return!1}function cn(e,t,n=!0){var r=e.reactions;if(r!==null&&!U?.includes(e))for(var s=0;s<r.length;s++){var i=r[s];(i.f&k)!==0?cn(i,t,!1):t===i&&(n?T(i,D):(i.f&m)!==0&&T(i,B),le(i))}}function _n(e){var t=x,n=O,r=N,s=h,i=X,l=U,u=g,a=P,f=ae,o=e.f;x=null,O=0,N=null,X=(o&C)!==0&&(P||!ve||h===null),h=(o&($|fe))===0?e:null,U=null,ge(e.ctx),P=!1,ae=++De,e.ac!==null&&(Xe(()=>{e.ac.abort(Oe)}),e.ac=null);try{e.f|=Qe;var d=e.fn,c=d(),_=e.deps;if(x!==null){var p;if(He(e,O),_!==null&&O>0)for(_.length=O+x.length,p=0;p<x.length;p++)_[O+p]=x[p];else e.deps=_=x;if(!X||(o&k)!==0&&e.reactions!==null)for(p=O;p<_.length;p++)(_[p].reactions??=[]).push(e)}else _!==null&&O<_.length&&(He(e,O),_.length=O);if(Me()&&N!==null&&!P&&_!==null&&(e.f&(k|B|D))===0)for(p=0;p<N.length;p++)cn(N[p],e);return s!==null&&s!==e&&(De++,N!==null&&(r===null?r=N:r.push(...N))),(e.f&se)!==0&&(e.f^=se),c}catch(A){return Yt(A)}finally{e.f^=Qe,x=t,O=n,N=r,h=s,X=i,U=l,ge(u),P=a,ae=f}}function yr(e,t){let n=t.reactions;if(n!==null){var r=bn.call(n,e);if(r!==-1){var s=n.length-1;s===0?n=t.reactions=null:(n[r]=n[s],n.pop())}}n===null&&(t.f&k)!==0&&(x===null||!x.includes(t))&&(T(t,B),(t.f&(C|Ye))===0&&(t.f^=Ye),Wt(t),He(t,0))}function He(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)yr(e,n[r])}function we(e){var t=e.f;if((t&me)===0){T(e,m);var n=v,r=ve;v=e,ve=!0;try{(t&ue)!==0?dr(e):rn(e),nn(e);var s=_n(e);e.teardown=typeof s=="function"?s:null,e.wv=fn;var i}finally{ve=r,v=n}}}async function br(){await Promise.resolve(),Ut()}function wr(){return R.ensure().settled()}function H(e){var t=e.f,n=(t&k)!==0;if(de?.add(e),h!==null&&!P){var r=v!==null&&(v.f&me)!==0;if(!r&&!U?.includes(e)){var s=h.deps;if((h.f&Qe)!==0)e.rv<De&&(e.rv=De,x===null&&s!==null&&s[O]===e?O++:x===null?x=[e]:(!X||!x.includes(e))&&x.push(e));else{(h.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[h]:i.includes(h)||i.push(h)}}}else if(n&&e.deps===null&&e.effects===null){var l=e,u=l.parent;u!==null&&(u.f&C)===0&&(l.f^=C)}if(Ae){if(J.has(e))return J.get(e);if(n){l=e;var a=l.v;return((l.f&m)===0&&l.reactions!==null||dn(l))&&(a=dt(l)),J.set(l,a),a}}else n&&(l=e,Fe(l)&&Gt(l));if((e.f&se)!==0)throw e.v;return e.v}function dn(e){if(e.v===E)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(J.has(t)||(t.f&k)!==0&&dn(t))return!0;return!1}function te(e){var t=P;try{return P=!0,e()}finally{P=t}}const mr=-7169;function T(e,t){e.f=e.f&mr|t}function Os(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(ie in e)st(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];typeof n=="object"&&n&&ie in n&&st(n)}}}function st(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let r in e)try{st(e[r],t)}catch{}const n=Rt(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=mn(n);for(let s in r){const i=r[s].get;if(i)try{i.call(e)}catch{}}}}}function Rs(e){return e.endsWith("capture")&&e!=="gotpointercapture"&&e!=="lostpointercapture"}const Er=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Ns(e){return Er.includes(e)}const Tr={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function Cs(e){return e=e.toLowerCase(),Tr[e]??e}const Ar=["touchstart","touchmove"];function xr(e){return Ar.includes(e)}const hn=new Set,it=new Set;function Sr(e,t,n,r={}){function s(i){if(r.capture||Se.call(t,i),!i.cancelBubble)return Xe(()=>n?.call(this,i))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?ye(()=>{t.addEventListener(e,s,r)}):t.addEventListener(e,s,r),s}function Ds(e,t,n,r,s){var i={capture:r,passive:s},l=Sr(e,t,n,i);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&ht(()=>{t.removeEventListener(e,l,i)})}function Is(e){for(var t=0;t<e.length;t++)hn.add(e[t]);for(var n of it)n(e)}let kt=null;function Se(e){var t=this,n=t.ownerDocument,r=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;kt=e;var l=0,u=kt===e&&e.__root;if(u){var a=s.indexOf(u);if(a!==-1&&(t===document||t===window)){e.__root=t;return}var f=s.indexOf(t);if(f===-1)return;a<=f&&(l=a)}if(i=s[l]||e.target,i!==t){Je(e,"currentTarget",{configurable:!0,get(){return i||n}});var o=h,d=v;S(null),q(null);try{for(var c,_=[];i!==null;){var p=i.assignedSlot||i.parentNode||i.host||null;try{var A=i["__"+r];if(A!=null&&(!i.disabled||e.target===i))if(lt(A)){var[oe,...je]=A;oe.apply(i,[e,...je])}else A.call(i,e)}catch(G){c?_.push(G):c=G}if(e.cancelBubble||p===t||p===null)break;i=p}if(c){for(let G of _)queueMicrotask(()=>{throw G});throw c}}finally{e.__root=t,delete e.currentTarget,S(o),q(d)}}}function pt(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function L(e,t){var n=v;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function Ps(e,t){var n=(t&Ln)!==0,r=(t&Fn)!==0,s,i=!e.startsWith("<!>");return()=>{if(b)return L(y,null),y;s===void 0&&(s=pt(i?e:"<!>"+e),n||(s=j(s)));var l=r||Kt?document.importNode(s,!0):s.cloneNode(!0);if(n){var u=j(l),a=l.lastChild;L(u,a)}else L(l,l);return l}}function kr(e,t,n="svg"){var r=!e.startsWith("<!>"),s=`<${n}>${r?e:"<!>"+e}</${n}>`,i;return()=>{if(b)return L(y,null),y;if(!i){var l=pt(s),u=j(l);i=j(u)}var a=i.cloneNode(!0);return L(a,a),a}}function Ms(e,t){return kr(e,t,"svg")}function Ls(e=""){if(!b){var t=ee(e+"");return L(t,t),t}var n=y;return n.nodeType!==We&&(n.before(n=ee()),I(n)),L(n,n),n}function Fs(){if(b)return L(y,null),y;var e=document.createDocumentFragment(),t=document.createComment(""),n=ee();return e.append(t,n),L(t,n),e}function js(e,t){if(b){v.nodes_end=y,ct();return}e!==null&&e.before(t)}let Ot=!0;function qs(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function vn(e,t){return pn(e,t)}function Or(e,t){rt(),t.intro=t.intro??!1;const n=t.target,r=b,s=y;try{for(var i=j(n);i&&(i.nodeType!==Ie||i.data!==Pt);)i=W(i);if(!i)throw pe;he(!0),I(i);const l=pn(e,{...t,anchor:i});return he(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
|
|
2
|
-
`).some(u=>u.startsWith("https://svelte.dev/e/")))throw l;return l!==pe&&console.warn("Failed to hydrate: ",l),t.recover===!1&&Cn(),rt(),Jt(n),he(!1),vn(e,t)}finally{he(r),I(s)}}const ce=new Map;function pn(e,{target:t,anchor:n,props:r={},events:s,context:i,intro:l=!0}){rt();var u=new Set,a=d=>{for(var c=0;c<d.length;c++){var _=d[c];if(!u.has(_)){u.add(_);var p=xr(_);t.addEventListener(_,Se,{passive:p});var A=ce.get(_);A===void 0?(document.addEventListener(_,Se,{passive:p}),ce.set(_,1)):ce.set(_,A+1)}}};a(wn(hn)),it.add(a);var f=void 0,o=cr(()=>{var d=n??t.appendChild(ee());return Qn(d,{pending:()=>{}},c=>{if(i){Bn({});var _=g;_.c=i}if(s&&(r.$$events=s),b&&L(c,null),Ot=l,f=e(c,r)||{},Ot=!0,b&&(v.nodes_end=y,y===null||y.nodeType!==Ie||y.data!==Lt))throw Ge(),pe;i&&Wn()}),()=>{for(var c of u){t.removeEventListener(c,Se);var _=ce.get(c);--_===0?(document.removeEventListener(c,Se),ce.delete(c)):ce.set(c,_)}it.delete(a),d!==n&&d.parentNode?.removeChild(d)}});return at.set(f,o),f}let at=new WeakMap;function Rr(e,t){const n=at.get(e);return n?(at.delete(e),n(t)):Promise.resolve()}function Vs(e,t,...n){var r=e,s=Z,i;tn(()=>{s!==(s=t())&&(i&&(M(i),i=null),i=K(()=>s(r,...n)))},$e),b&&(r=y)}function Nr(e){return(t,...n)=>{var r=e(...n),s;if(b)s=y,ct();else{var i=r.render().trim(),l=pt(i);s=j(l),t.before(s)}const u=r.setup?.(s);L(s,s),typeof u=="function"&&ht(u)}}function gn(e,t,n){if(e==null)return t(void 0),n&&n(void 0),Z;const r=te(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}const _e=[];function Cr(e,t){return{subscribe:Dr(e,t).subscribe}}function Dr(e,t=Z){let n=null;const r=new Set;function s(u){if(jt(e,u)&&(e=u,n)){const a=!_e.length;for(const f of r)f[1](),_e.push(f,e);if(a){for(let f=0;f<_e.length;f+=2)_e[f][0](_e[f+1]);_e.length=0}}}function i(u){s(u(e))}function l(u,a=Z){const f=[u,a];return r.add(f),r.size===1&&(n=t(s,i)||Z),u(e),()=>{r.delete(f),r.size===0&&n&&(n(),n=null)}}return{set:s,update:i,subscribe:l}}function Ys(e,t,n){const r=!Array.isArray(e),s=r?[e]:e;if(!s.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const i=t.length<2;return Cr(n,(l,u)=>{let a=!1;const f=[];let o=0,d=Z;const c=()=>{if(o)return;d();const p=t(r?f[0]:f,l,u);i?l(p):d=typeof p=="function"?p:Z},_=s.map((p,A)=>gn(p,oe=>{f[A]=oe,o&=~(1<<A),a&&c()},()=>{o|=1<<A}));return a=!0,c(),function(){Nt(_),d(),a=!1}})}function Hs(e){let t;return gn(e,n=>t=n)(),t}function Ir(){return h===null&&Nn(),(h.ac??=new AbortController).signal}function yn(e){g===null&&Te(),Pe&&g.l!==null?gt(g).m.push(e):or(()=>{const t=te(e);if(typeof t=="function")return t})}function Pr(e){g===null&&Te(),yn(()=>()=>te(e))}function Mr(e,t,{bubbles:n=!1,cancelable:r=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:r})}function Lr(){const e=g;return e===null&&Te(),(t,n,r)=>{const s=e.s.$$events?.[t];if(s){const i=lt(s)?s.slice():[s],l=Mr(t,n,r);for(const u of i)u.call(e.x,l);return!l.defaultPrevented}return!0}}function Fr(e){g===null&&Te(),g.l===null&&It(),gt(g).b.push(e)}function jr(e){g===null&&Te(),g.l===null&&It(),gt(g).a.push(e)}function gt(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}const Us=Object.freeze(Object.defineProperty({__proto__:null,afterUpdate:jr,beforeUpdate:Fr,createEventDispatcher:Lr,createRawSnippet:Nr,flushSync:Ut,getAbortSignal:Ir,getAllContexts:$n,getContext:Yn,hasContext:Un,hydrate:Or,mount:vn,onDestroy:Pr,onMount:yn,setContext:Hn,settled:wr,tick:br,unmount:Rr,untrack:te},Symbol.toStringTag,{value:"Module"}));export{Qr as $,Ve as A,g as B,ms as C,Nt as D,$e as E,Vr as F,Os as G,_t as H,us as I,xs as J,qs as K,ls as L,Mt as M,Vn as N,I as O,he as P,Ss as Q,Z as R,ie as S,os as T,E as U,gn as V,Hs as W,ht as X,Je as Y,ke as Z,Br as _,vs as a,Dr as a$,xe as a0,v as a1,me as a2,ir as a3,es as a4,Pe as a5,Jr as a6,Zr as a7,ts as a8,Ae as a9,Q as aA,M as aB,Wr as aC,Xr as aD,W as aE,an as aF,Jt as aG,vr as aH,zr as aI,Kr as aJ,ws as aK,is as aL,ds as aM,nr as aN,ss as aO,Rs as aP,Sr as aQ,Is as aR,ys as aS,Cs as aT,lr as aU,rs as aV,Rt as aW,Ur as aX,Ns as aY,mn as aZ,Ze as a_,Hr as aa,Le as ab,_s as ac,q as ad,Or as ae,vn as af,Ut as ag,Rr as ah,br as ai,Fs as aj,fs as ak,Ls as al,Ts as am,As as an,Ms as ao,Lr as ap,Ds as aq,ks as ar,Yr as as,j as at,Ie as au,Lt as av,wn as aw,lt as ax,Ce as ay,Gr as az,js as b,Et as b0,Pr as b1,Vs as b2,jt as b3,Ot as b4,ue as b5,ot as b6,ns as b7,Xe as b8,qr as b9,hr as ba,Ge as bb,pe as bc,L as bd,pt as be,bs as bf,Ys as bg,cs as bh,Us as bi,hs as c,Y as d,Wn as e,Ps as f,z as g,H as h,Es as i,vt as j,te as k,b as l,ct as m,qn as n,yn as o,Bn as p,ye as q,as as r,ps as s,tn as t,or as u,ee as v,K as w,w as x,gs as y,y as z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{l as o,a as r}from"../chunks/rc9CiIba.js";export{o as load_css,r as start};
|