wherever-dev 0.10.11 → 0.10.13
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/dist/conversation-mode-hint.d.ts +89 -8
- package/dist/conversation-mode-hint.d.ts.map +1 -1
- package/dist/conversation-mode-hint.js +164 -12
- package/dist/conversation-mode-hint.js.map +1 -1
- package/package.json +1 -1
- package/public/_app/immutable/assets/0.BLdSNDwj.css +1 -0
- package/public/_app/immutable/chunks/{CP7HQriI.js → 8eypMp_V.js} +2 -2
- package/public/_app/immutable/chunks/{CP7HQriI.js.map → 8eypMp_V.js.map} +1 -1
- package/public/_app/immutable/chunks/{CgprCr9Q.js → CtPQjCBP.js} +2 -2
- package/public/_app/immutable/chunks/{CgprCr9Q.js.map → CtPQjCBP.js.map} +1 -1
- package/public/_app/immutable/chunks/{CIOfJygp.js → Dbf0zjW2.js} +2 -2
- package/public/_app/immutable/chunks/{CIOfJygp.js.map → Dbf0zjW2.js.map} +1 -1
- package/public/_app/immutable/entry/{app.CSBRfvfP.js → app.BNS6jUfJ.js} +3 -3
- package/public/_app/immutable/entry/{app.CSBRfvfP.js.map → app.BNS6jUfJ.js.map} +1 -1
- package/public/_app/immutable/entry/start.CY5doj7d.js +2 -0
- package/public/_app/immutable/entry/start.CY5doj7d.js.map +1 -0
- package/public/_app/immutable/nodes/{0.BvcOYIBI.js → 0.COQnYGwL.js} +2 -2
- package/public/_app/immutable/nodes/{0.BvcOYIBI.js.map → 0.COQnYGwL.js.map} +1 -1
- package/public/_app/immutable/nodes/{1.DT9u4xbp.js → 1.irnAmVhW.js} +2 -2
- package/public/_app/immutable/nodes/{1.DT9u4xbp.js.map → 1.irnAmVhW.js.map} +1 -1
- package/public/_app/immutable/nodes/2.kEWDQAI7.js +95 -0
- package/public/_app/immutable/nodes/2.kEWDQAI7.js.map +1 -0
- package/public/_app/version.json +1 -1
- package/public/index.html +11 -11
- package/public/pwa/favicon-maskable-192.png +0 -0
- package/public/pwa/favicon-maskable-512.png +0 -0
- package/public/pwa/manifest.webmanifest +32 -2
- package/public/pwa/screenshot-desktop.png +0 -0
- package/public/pwa/screenshot-mobile.png +0 -0
- package/public/service-worker.js +1 -1
- package/public/_app/immutable/assets/0.CC0hR-g4.css +0 -1
- package/public/_app/immutable/entry/start.Drl3QzB0.js +0 -2
- package/public/_app/immutable/entry/start.Drl3QzB0.js.map +0 -1
- package/public/_app/immutable/nodes/2.CpZdrUY8.js +0 -89
- package/public/_app/immutable/nodes/2.CpZdrUY8.js.map +0 -1
|
@@ -11,11 +11,15 @@ import type { InlineExtension } from '@earendil-works/pi-coding-agent';
|
|
|
11
11
|
*
|
|
12
12
|
* The signal rides the EXISTING `message` WS payload as an optional
|
|
13
13
|
* `conversationMode` boolean (no new WS message type, no new chat role), and is
|
|
14
|
-
* turned into agent-visible context here
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
14
|
+
* turned into agent-visible context here, for that turn only, in TWO places:
|
|
15
|
+
* - `before_agent_start` APPENDS one line (CONVERSATION_MODE_HINT) to the
|
|
16
|
+
* assembled system prompt, and
|
|
17
|
+
* - `context` adds a TAIL reminder (CONVERSATION_MODE_REMINDER) before EVERY LLM
|
|
18
|
+
* call of the turn, because the system-prompt line alone is too far from the
|
|
19
|
+
* tail for smaller models to act on (measurements in the reminder's doc).
|
|
20
|
+
*
|
|
21
|
+
* Both are EPHEMERAL: neither is stored in the user message and neither renders
|
|
22
|
+
* as a chat line (only their effect, the resulting `say` tool call, is visible).
|
|
19
23
|
*
|
|
20
24
|
* KEEP IN LOCKSTEP with the CLI-bridge twin,
|
|
21
25
|
* `extension/src/conversation-mode-hint.ts`. The extension is a separate published
|
|
@@ -24,6 +28,28 @@ import type { InlineExtension } from '@earendil-works/pi-coding-agent';
|
|
|
24
28
|
* BOTH modules and fails if the hint text or the latch behaviour drifts.
|
|
25
29
|
*/
|
|
26
30
|
export declare const CONVERSATION_MODE_HINT: string;
|
|
31
|
+
/**
|
|
32
|
+
* The marker that opens the TAIL REMINDER, and the reminder itself.
|
|
33
|
+
*
|
|
34
|
+
* WHY A SECOND, TAIL-PLACED COPY OF THE SAME INSTRUCTION: the system-prompt hint
|
|
35
|
+
* alone measured as a coin flip on smaller local models. Probing a real local
|
|
36
|
+
* 35B (the model the reported session ran on) with a realistic wherever-shaped
|
|
37
|
+
* system prompt: with the hint 3/6 turns called `say`, without it 1/6 - and at
|
|
38
|
+
* the moment that matters most, the post-tool-result synthesis call (the answer
|
|
39
|
+
* after a `web_search`), the hint was ignored almost every time. Two things
|
|
40
|
+
* defeat it: the hint sits far from the tail of a long prompt, and once the
|
|
41
|
+
* transcript contains earlier assistant turns that did NOT speak, the model
|
|
42
|
+
* imitates its own history. A reminder placed at the very TAIL of the message
|
|
43
|
+
* list, re-applied before EVERY LLM call of the turn, is what actually lands.
|
|
44
|
+
*
|
|
45
|
+
* The reminder is EPHEMERAL in the strongest sense: it is added by the `context`
|
|
46
|
+
* event, which the SDK applies to a structuredClone of the messages on the way to
|
|
47
|
+
* the provider (see `transformContext`), so it is never stored in the session
|
|
48
|
+
* file, never rendered in the web transcript or the CLI TUI, and never survives
|
|
49
|
+
* the call it was built for.
|
|
50
|
+
*/
|
|
51
|
+
export declare const CONVERSATION_MODE_REMINDER_MARKER = "[spoken conversation active]";
|
|
52
|
+
export declare const CONVERSATION_MODE_REMINDER: string;
|
|
27
53
|
/**
|
|
28
54
|
* Append the conversation-mode hint to an assembled system prompt.
|
|
29
55
|
*
|
|
@@ -32,6 +58,45 @@ export declare const CONVERSATION_MODE_HINT: string;
|
|
|
32
58
|
* handlers' results) and returns base + hint. Never replaces, never re-fetches.
|
|
33
59
|
*/
|
|
34
60
|
export declare function appendConversationModeHint(systemPrompt: string): string;
|
|
61
|
+
/**
|
|
62
|
+
* The minimal STRUCTURAL shape of a pi context message this module needs. Kept
|
|
63
|
+
* structural (not an SDK type import) so the CLI-bridge twin can be byte-identical
|
|
64
|
+
* and so both copies stay unit-testable without standing up a pi runtime.
|
|
65
|
+
*/
|
|
66
|
+
export interface ContextMessageLike {
|
|
67
|
+
role: string;
|
|
68
|
+
content?: unknown;
|
|
69
|
+
[key: string]: unknown;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Whether the agent has ALREADY called `say` in the turn the tail of `messages`
|
|
73
|
+
* belongs to (i.e. since the last user message).
|
|
74
|
+
*
|
|
75
|
+
* This is the loop guard AND the anti-nag rule: the reminder asks for a `say`
|
|
76
|
+
* call, `say` is itself a tool, and a tool call means another LLM call with the
|
|
77
|
+
* reminder re-applied. Without this, a model that answers with ONLY a `say` call
|
|
78
|
+
* could be nudged into speaking again, and again. Once the turn has spoken, the
|
|
79
|
+
* reminder has done its job and is not repeated.
|
|
80
|
+
*/
|
|
81
|
+
export declare function saidThisTurn(messages: readonly ContextMessageLike[]): boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Return the messages for ONE upcoming LLM call with the spoken-conversation
|
|
84
|
+
* reminder at the TAIL, where a smaller model actually reads it.
|
|
85
|
+
*
|
|
86
|
+
* Placement is deliberately ROLE-SAFE rather than "always append a message":
|
|
87
|
+
* Anthropic's own API merges consecutive same-role turns, but Bedrock (and some
|
|
88
|
+
* compatibility proxies) reject them outright, and after a tool result the tail
|
|
89
|
+
* IS a user-role turn. So:
|
|
90
|
+
* - tail is a `user` or `toolResult` message -> the reminder is added as an extra
|
|
91
|
+
* text block INSIDE a clone of it (no new turn, no role sequence change);
|
|
92
|
+
* - anything else (assistant tail, empty context) -> the reminder is appended as
|
|
93
|
+
* its own `custom` message, which converts to a user turn cleanly.
|
|
94
|
+
*
|
|
95
|
+
* Pure and non-mutating: the input array and its messages are never touched, only
|
|
96
|
+
* the returned array (and the single cloned tail) differ. Idempotent: a tail that
|
|
97
|
+
* already carries the marker is left alone, so re-entry cannot stack reminders.
|
|
98
|
+
*/
|
|
99
|
+
export declare function withConversationModeReminder(messages: readonly ContextMessageLike[]): ContextMessageLike[];
|
|
35
100
|
/**
|
|
36
101
|
* A per-session, per-turn arming latch plus the inline pi extension that acts on
|
|
37
102
|
* it.
|
|
@@ -40,20 +105,36 @@ export declare function appendConversationModeHint(systemPrompt: string): string
|
|
|
40
105
|
* same):
|
|
41
106
|
* - `arm(active)` is called for EVERY user message with that message's flag, so
|
|
42
107
|
* the latest message always wins (a stale value can never outlive it).
|
|
43
|
-
* - the `before_agent_start` handler CONSUMES the
|
|
108
|
+
* - the `before_agent_start` handler CONSUMES the arming (one turn only), so a
|
|
44
109
|
* turn that was not started by a flagged message (an auto-retry, or a message
|
|
45
|
-
* typed straight into the terminal in the bridge case) gets no hint.
|
|
110
|
+
* typed straight into the terminal in the bridge case) gets no hint. Consuming
|
|
111
|
+
* it OPENS the turn: whatever the arming said (on or off) becomes this turn's
|
|
112
|
+
* spoken state, so an unflagged turn also explicitly CLOSES a previous one.
|
|
113
|
+
* - while the turn is open, `applyToContext` adds the TAIL reminder before every
|
|
114
|
+
* LLM call of that turn (the system-prompt hint alone is too weak and too far
|
|
115
|
+
* from the tail for smaller models; see CONVERSATION_MODE_REMINDER).
|
|
116
|
+
* - `endTurn()` (wired to `agent_end`) closes it, so nothing leaks past the turn.
|
|
46
117
|
*/
|
|
47
118
|
export interface ConversationModeSignal {
|
|
48
119
|
/** Arm (true) or disarm (false) the hint for the turn the next message starts. */
|
|
49
120
|
arm(active: boolean): void;
|
|
50
121
|
/** Whether the latch is currently armed (test/diagnostic use). */
|
|
51
122
|
isArmed(): boolean;
|
|
123
|
+
/** Whether a spoken turn is currently OPEN, i.e. the reminder applies (test/diagnostic use). */
|
|
124
|
+
isTurnActive(): boolean;
|
|
52
125
|
/**
|
|
53
126
|
* The system prompt to use for this turn, or undefined to leave it untouched.
|
|
54
|
-
* CONSUMES the arming.
|
|
127
|
+
* CONSUMES the arming and opens/closes the turn accordingly.
|
|
55
128
|
*/
|
|
56
129
|
applyToSystemPrompt(systemPrompt: string): string | undefined;
|
|
130
|
+
/**
|
|
131
|
+
* The messages to send for ONE upcoming LLM call, or undefined to leave them
|
|
132
|
+
* untouched (no spoken turn open). Does NOT consume anything: a turn can make
|
|
133
|
+
* many LLM calls and each one gets the reminder until the agent has spoken.
|
|
134
|
+
*/
|
|
135
|
+
applyToContext(messages: readonly ContextMessageLike[]): ContextMessageLike[] | undefined;
|
|
136
|
+
/** Close the spoken turn (wired to `agent_end`). */
|
|
137
|
+
endTurn(): void;
|
|
57
138
|
/** The inline pi extension to hand to DefaultResourceLoader's extensionFactories. */
|
|
58
139
|
inlineExtension: InlineExtension;
|
|
59
140
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation-mode-hint.d.ts","sourceRoot":"","sources":["../src/conversation-mode-hint.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"conversation-mode-hint.d.ts","sourceRoot":"","sources":["../src/conversation-mode-hint.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAIV,eAAe,EAChB,MAAM,iCAAiC,CAAC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,sBAAsB,QAKC,CAAC;AAErC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,iCAAiC,iCAAiC,CAAC;AAEhF,eAAO,MAAM,0BAA0B,QAGmD,CAAC;AAE3F;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAEvE;AAED;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAYD;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,SAAS,kBAAkB,EAAE,GAAG,OAAO,CAY7E;AAyCD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,4BAA4B,CAC1C,QAAQ,EAAE,SAAS,kBAAkB,EAAE,GACtC,kBAAkB,EAAE,CActB;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,WAAW,sBAAsB;IACrC,kFAAkF;IAClF,GAAG,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAAC;IAC3B,kEAAkE;IAClE,OAAO,IAAI,OAAO,CAAC;IACnB,gGAAgG;IAChG,YAAY,IAAI,OAAO,CAAC;IACxB;;;OAGG;IACH,mBAAmB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IAC9D;;;;OAIG;IACH,cAAc,CAAC,QAAQ,EAAE,SAAS,kBAAkB,EAAE,GAAG,kBAAkB,EAAE,GAAG,SAAS,CAAC;IAC1F,oDAAoD;IACpD,OAAO,IAAI,IAAI,CAAC;IAChB,qFAAqF;IACrF,eAAe,EAAE,eAAe,CAAC;CAClC;AAED,wBAAgB,4BAA4B,IAAI,sBAAsB,CA6DrE"}
|
|
@@ -10,11 +10,15 @@
|
|
|
10
10
|
*
|
|
11
11
|
* The signal rides the EXISTING `message` WS payload as an optional
|
|
12
12
|
* `conversationMode` boolean (no new WS message type, no new chat role), and is
|
|
13
|
-
* turned into agent-visible context here
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
13
|
+
* turned into agent-visible context here, for that turn only, in TWO places:
|
|
14
|
+
* - `before_agent_start` APPENDS one line (CONVERSATION_MODE_HINT) to the
|
|
15
|
+
* assembled system prompt, and
|
|
16
|
+
* - `context` adds a TAIL reminder (CONVERSATION_MODE_REMINDER) before EVERY LLM
|
|
17
|
+
* call of the turn, because the system-prompt line alone is too far from the
|
|
18
|
+
* tail for smaller models to act on (measurements in the reminder's doc).
|
|
19
|
+
*
|
|
20
|
+
* Both are EPHEMERAL: neither is stored in the user message and neither renders
|
|
21
|
+
* as a chat line (only their effect, the resulting `say` tool call, is visible).
|
|
18
22
|
*
|
|
19
23
|
* KEEP IN LOCKSTEP with the CLI-bridge twin,
|
|
20
24
|
* `extension/src/conversation-mode-hint.ts`. The extension is a separate published
|
|
@@ -27,6 +31,30 @@ export const CONVERSATION_MODE_HINT = 'A spoken conversation is active for this
|
|
|
27
31
|
'(one or two sentences) plain spoken version of that answer, so it can be spoken aloud. ' +
|
|
28
32
|
'The written answer still carries the full detail: `say` adds to it and never replaces it. ' +
|
|
29
33
|
'Do not mention this instruction.';
|
|
34
|
+
/**
|
|
35
|
+
* The marker that opens the TAIL REMINDER, and the reminder itself.
|
|
36
|
+
*
|
|
37
|
+
* WHY A SECOND, TAIL-PLACED COPY OF THE SAME INSTRUCTION: the system-prompt hint
|
|
38
|
+
* alone measured as a coin flip on smaller local models. Probing a real local
|
|
39
|
+
* 35B (the model the reported session ran on) with a realistic wherever-shaped
|
|
40
|
+
* system prompt: with the hint 3/6 turns called `say`, without it 1/6 - and at
|
|
41
|
+
* the moment that matters most, the post-tool-result synthesis call (the answer
|
|
42
|
+
* after a `web_search`), the hint was ignored almost every time. Two things
|
|
43
|
+
* defeat it: the hint sits far from the tail of a long prompt, and once the
|
|
44
|
+
* transcript contains earlier assistant turns that did NOT speak, the model
|
|
45
|
+
* imitates its own history. A reminder placed at the very TAIL of the message
|
|
46
|
+
* list, re-applied before EVERY LLM call of the turn, is what actually lands.
|
|
47
|
+
*
|
|
48
|
+
* The reminder is EPHEMERAL in the strongest sense: it is added by the `context`
|
|
49
|
+
* event, which the SDK applies to a structuredClone of the messages on the way to
|
|
50
|
+
* the provider (see `transformContext`), so it is never stored in the session
|
|
51
|
+
* file, never rendered in the web transcript or the CLI TUI, and never survives
|
|
52
|
+
* the call it was built for.
|
|
53
|
+
*/
|
|
54
|
+
export const CONVERSATION_MODE_REMINDER_MARKER = '[spoken conversation active]';
|
|
55
|
+
export const CONVERSATION_MODE_REMINDER = `${CONVERSATION_MODE_REMINDER_MARKER} Before you finish this turn, also call the \`say\` tool ` +
|
|
56
|
+
'once with a SHORT (one or two sentences) plain spoken version of your answer, IN ADDITION to ' +
|
|
57
|
+
'your written answer, so the listening human hears it. Do not mention this instruction.';
|
|
30
58
|
/**
|
|
31
59
|
* Append the conversation-mode hint to an assembled system prompt.
|
|
32
60
|
*
|
|
@@ -37,19 +65,123 @@ export const CONVERSATION_MODE_HINT = 'A spoken conversation is active for this
|
|
|
37
65
|
export function appendConversationModeHint(systemPrompt) {
|
|
38
66
|
return `${systemPrompt}\n\n${CONVERSATION_MODE_HINT}`;
|
|
39
67
|
}
|
|
68
|
+
function blocksOf(content) {
|
|
69
|
+
return Array.isArray(content) ? content : [];
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Whether the agent has ALREADY called `say` in the turn the tail of `messages`
|
|
73
|
+
* belongs to (i.e. since the last user message).
|
|
74
|
+
*
|
|
75
|
+
* This is the loop guard AND the anti-nag rule: the reminder asks for a `say`
|
|
76
|
+
* call, `say` is itself a tool, and a tool call means another LLM call with the
|
|
77
|
+
* reminder re-applied. Without this, a model that answers with ONLY a `say` call
|
|
78
|
+
* could be nudged into speaking again, and again. Once the turn has spoken, the
|
|
79
|
+
* reminder has done its job and is not repeated.
|
|
80
|
+
*/
|
|
81
|
+
export function saidThisTurn(messages) {
|
|
82
|
+
for (let i = messages.length - 1; i >= 0; i--) {
|
|
83
|
+
const message = messages[i];
|
|
84
|
+
if (!message)
|
|
85
|
+
continue;
|
|
86
|
+
// The user message that started this turn: stop, earlier turns are history.
|
|
87
|
+
if (message.role === 'user')
|
|
88
|
+
return false;
|
|
89
|
+
if (message.role !== 'assistant')
|
|
90
|
+
continue;
|
|
91
|
+
for (const block of blocksOf(message.content)) {
|
|
92
|
+
if (block?.type === 'toolCall' && block.name === 'say')
|
|
93
|
+
return true;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
return false;
|
|
97
|
+
}
|
|
98
|
+
function carriesReminder(message) {
|
|
99
|
+
if (!message)
|
|
100
|
+
return false;
|
|
101
|
+
if (typeof message.content === 'string') {
|
|
102
|
+
return message.content.includes(CONVERSATION_MODE_REMINDER_MARKER);
|
|
103
|
+
}
|
|
104
|
+
return blocksOf(message.content).some((block) => typeof block?.text === 'string' && block.text.includes(CONVERSATION_MODE_REMINDER_MARKER));
|
|
105
|
+
}
|
|
106
|
+
/** A clone of `message` with the reminder added as one more text block. */
|
|
107
|
+
function withReminderBlock(message) {
|
|
108
|
+
if (typeof message.content === 'string') {
|
|
109
|
+
return { ...message, content: `${message.content}\n\n${CONVERSATION_MODE_REMINDER}` };
|
|
110
|
+
}
|
|
111
|
+
return {
|
|
112
|
+
...message,
|
|
113
|
+
content: [...blocksOf(message.content), { type: 'text', text: CONVERSATION_MODE_REMINDER }],
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* The reminder as its own message, for the case where the tail cannot absorb it.
|
|
118
|
+
*
|
|
119
|
+
* A `custom` message is pi's own "context that is not a real chat message" shape:
|
|
120
|
+
* `convertToLlm` turns it into a plain user text message for the provider, and
|
|
121
|
+
* `display: false` keeps it out of any UI that might see it.
|
|
122
|
+
*/
|
|
123
|
+
function reminderMessage() {
|
|
124
|
+
return {
|
|
125
|
+
role: 'custom',
|
|
126
|
+
customType: 'wherever-conversation-mode',
|
|
127
|
+
content: CONVERSATION_MODE_REMINDER,
|
|
128
|
+
display: false,
|
|
129
|
+
timestamp: Date.now(),
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Return the messages for ONE upcoming LLM call with the spoken-conversation
|
|
134
|
+
* reminder at the TAIL, where a smaller model actually reads it.
|
|
135
|
+
*
|
|
136
|
+
* Placement is deliberately ROLE-SAFE rather than "always append a message":
|
|
137
|
+
* Anthropic's own API merges consecutive same-role turns, but Bedrock (and some
|
|
138
|
+
* compatibility proxies) reject them outright, and after a tool result the tail
|
|
139
|
+
* IS a user-role turn. So:
|
|
140
|
+
* - tail is a `user` or `toolResult` message -> the reminder is added as an extra
|
|
141
|
+
* text block INSIDE a clone of it (no new turn, no role sequence change);
|
|
142
|
+
* - anything else (assistant tail, empty context) -> the reminder is appended as
|
|
143
|
+
* its own `custom` message, which converts to a user turn cleanly.
|
|
144
|
+
*
|
|
145
|
+
* Pure and non-mutating: the input array and its messages are never touched, only
|
|
146
|
+
* the returned array (and the single cloned tail) differ. Idempotent: a tail that
|
|
147
|
+
* already carries the marker is left alone, so re-entry cannot stack reminders.
|
|
148
|
+
*/
|
|
149
|
+
export function withConversationModeReminder(messages) {
|
|
150
|
+
const out = messages.slice();
|
|
151
|
+
// Already spoken this turn: nothing to nudge, and re-nudging risks a say loop.
|
|
152
|
+
if (saidThisTurn(out))
|
|
153
|
+
return out;
|
|
154
|
+
const tail = out[out.length - 1];
|
|
155
|
+
if (carriesReminder(tail))
|
|
156
|
+
return out;
|
|
157
|
+
if (tail && (tail.role === 'user' || tail.role === 'toolResult')) {
|
|
158
|
+
out[out.length - 1] = withReminderBlock(tail);
|
|
159
|
+
return out;
|
|
160
|
+
}
|
|
161
|
+
out.push(reminderMessage());
|
|
162
|
+
return out;
|
|
163
|
+
}
|
|
40
164
|
export function createConversationModeSignal() {
|
|
41
165
|
let armed = false;
|
|
166
|
+
let turnActive = false;
|
|
42
167
|
const applyToSystemPrompt = (systemPrompt) => {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
//
|
|
46
|
-
|
|
168
|
+
// One turn only: consume the arming so it cannot leak into a later, unflagged
|
|
169
|
+
// turn, and let it decide whether THIS turn is a spoken one (an unflagged turn
|
|
170
|
+
// therefore also closes a turn a missing agent_end might have left open).
|
|
171
|
+
turnActive = armed;
|
|
47
172
|
armed = false;
|
|
173
|
+
if (!turnActive)
|
|
174
|
+
return undefined;
|
|
48
175
|
return appendConversationModeHint(systemPrompt);
|
|
49
176
|
};
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
177
|
+
const applyToContext = (messages) => {
|
|
178
|
+
if (!turnActive)
|
|
179
|
+
return undefined;
|
|
180
|
+
return withConversationModeReminder(messages);
|
|
181
|
+
};
|
|
182
|
+
// The SDK-supported way to get these hooks on a server-created session: an
|
|
183
|
+
// INLINE extension, i.e. the same pi.on(...) surface the CLI-bridge extension
|
|
184
|
+
// uses, so both session types run the same shape of handler.
|
|
53
185
|
const factory = (pi) => {
|
|
54
186
|
pi.on('before_agent_start', (event) => {
|
|
55
187
|
const systemPrompt = applyToSystemPrompt(event.systemPrompt);
|
|
@@ -57,6 +189,19 @@ export function createConversationModeSignal() {
|
|
|
57
189
|
return;
|
|
58
190
|
return { systemPrompt };
|
|
59
191
|
});
|
|
192
|
+
// Fired before EVERY LLM call (including the post-tool-result synthesis call,
|
|
193
|
+
// which is exactly where the system-prompt hint gets ignored). The SDK hands
|
|
194
|
+
// us a structuredClone and passes our result straight to convertToLlm, so this
|
|
195
|
+
// never touches session state.
|
|
196
|
+
pi.on('context', (event) => {
|
|
197
|
+
const messages = applyToContext(event.messages);
|
|
198
|
+
if (messages === undefined)
|
|
199
|
+
return;
|
|
200
|
+
return { messages: messages };
|
|
201
|
+
});
|
|
202
|
+
pi.on('agent_end', () => {
|
|
203
|
+
turnActive = false;
|
|
204
|
+
});
|
|
60
205
|
};
|
|
61
206
|
return {
|
|
62
207
|
arm(active) {
|
|
@@ -65,7 +210,14 @@ export function createConversationModeSignal() {
|
|
|
65
210
|
isArmed() {
|
|
66
211
|
return armed;
|
|
67
212
|
},
|
|
213
|
+
isTurnActive() {
|
|
214
|
+
return turnActive;
|
|
215
|
+
},
|
|
68
216
|
applyToSystemPrompt,
|
|
217
|
+
applyToContext,
|
|
218
|
+
endTurn() {
|
|
219
|
+
turnActive = false;
|
|
220
|
+
},
|
|
69
221
|
inlineExtension: { name: 'wherever-conversation-mode', factory },
|
|
70
222
|
};
|
|
71
223
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation-mode-hint.js","sourceRoot":"","sources":["../src/conversation-mode-hint.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"conversation-mode-hint.js","sourceRoot":"","sources":["../src/conversation-mode-hint.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,CAAC,MAAM,sBAAsB,GACjC,4FAA4F;IAC5F,wFAAwF;IACxF,yFAAyF;IACzF,4FAA4F;IAC5F,kCAAkC,CAAC;AAErC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAAG,8BAA8B,CAAC;AAEhF,MAAM,CAAC,MAAM,0BAA0B,GACrC,GAAG,iCAAiC,2DAA2D;IAC/F,+FAA+F;IAC/F,wFAAwF,CAAC;AAE3F;;;;;;GAMG;AACH,MAAM,UAAU,0BAA0B,CAAC,YAAoB;IAC7D,OAAO,GAAG,YAAY,OAAO,sBAAsB,EAAE,CAAC;AACxD,CAAC;AAmBD,SAAS,QAAQ,CAAC,OAAgB;IAChC,OAAO,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAE,OAA2B,CAAC,CAAC,CAAC,EAAE,CAAC;AACpE,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,YAAY,CAAC,QAAuC;IAClE,KAAK,IAAI,CAAC,GAAG,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;QAC9C,MAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;QAC5B,IAAI,CAAC,OAAO;YAAE,SAAS;QACvB,4EAA4E;QAC5E,IAAI,OAAO,CAAC,IAAI,KAAK,MAAM;YAAE,OAAO,KAAK,CAAC;QAC1C,IAAI,OAAO,CAAC,IAAI,KAAK,WAAW;YAAE,SAAS;QAC3C,KAAK,MAAM,KAAK,IAAI,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;YAC9C,IAAI,KAAK,EAAE,IAAI,KAAK,UAAU,IAAI,KAAK,CAAC,IAAI,KAAK,KAAK;gBAAE,OAAO,IAAI,CAAC;QACtE,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAS,eAAe,CAAC,OAAuC;IAC9D,IAAI,CAAC,OAAO;QAAE,OAAO,KAAK,CAAC;IAC3B,IAAI,OAAO,OAAO,CAAC,OAAO,KAAK,QAAQ,EAAE,CAAC;QACxC,OAAO,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,iCAAiC,CAAC,CAAC;IACrE,CAAC;IACD,OAAO,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,IAAI,CACnC,CAAC,KAAK,EAAE,EAAE,CACR,OAAO,KAAK,EAAE,IAAI,KAAK,QAAQ,IAAI,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,iCAAiC,CAAC,CAC5F,CAAC;AACJ,CAAC;AAED,2EAA2E;AAC3E,SAAS,iBAAiB,CAAC,OAA2B;IACpD,IAAI,OAAO,OAAO,CAAC,OAAO,KAAK,QAAQ,EAAE,CAAC;QACxC,OAAO,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,OAAO,OAAO,0BAA0B,EAAE,EAAE,CAAC;IACxF,CAAC;IACD,OAAO;QACL,GAAG,OAAO;QACV,OAAO,EAAE,CAAC,GAAG,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,0BAA0B,EAAE,CAAC;KAC5F,CAAC;AACJ,CAAC;AAED;;;;;;GAMG;AACH,SAAS,eAAe;IACtB,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,4BAA4B;QACxC,OAAO,EAAE,0BAA0B;QACnC,OAAO,EAAE,KAAK;QACd,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;KACtB,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,4BAA4B,CAC1C,QAAuC;IAEvC,MAAM,GAAG,GAAG,QAAQ,CAAC,KAAK,EAAE,CAAC;IAC7B,+EAA+E;IAC/E,IAAI,YAAY,CAAC,GAAG,CAAC;QAAE,OAAO,GAAG,CAAC;IAElC,MAAM,IAAI,GAAG,GAAG,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IACjC,IAAI,eAAe,CAAC,IAAI,CAAC;QAAE,OAAO,GAAG,CAAC;IAEtC,IAAI,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,KAAK,MAAM,IAAI,IAAI,CAAC,IAAI,KAAK,YAAY,CAAC,EAAE,CAAC;QACjE,GAAG,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,iBAAiB,CAAC,IAAI,CAAC,CAAC;QAC9C,OAAO,GAAG,CAAC;IACb,CAAC;IACD,GAAG,CAAC,IAAI,CAAC,eAAe,EAAE,CAAC,CAAC;IAC5B,OAAO,GAAG,CAAC;AACb,CAAC;AA4CD,MAAM,UAAU,4BAA4B;IAC1C,IAAI,KAAK,GAAG,KAAK,CAAC;IAClB,IAAI,UAAU,GAAG,KAAK,CAAC;IAEvB,MAAM,mBAAmB,GAAG,CAAC,YAAoB,EAAsB,EAAE;QACvE,8EAA8E;QAC9E,+EAA+E;QAC/E,0EAA0E;QAC1E,UAAU,GAAG,KAAK,CAAC;QACnB,KAAK,GAAG,KAAK,CAAC;QACd,IAAI,CAAC,UAAU;YAAE,OAAO,SAAS,CAAC;QAClC,OAAO,0BAA0B,CAAC,YAAY,CAAC,CAAC;IAClD,CAAC,CAAC;IAEF,MAAM,cAAc,GAAG,CACrB,QAAuC,EACL,EAAE;QACpC,IAAI,CAAC,UAAU;YAAE,OAAO,SAAS,CAAC;QAClC,OAAO,4BAA4B,CAAC,QAAQ,CAAC,CAAC;IAChD,CAAC,CAAC;IAEF,2EAA2E;IAC3E,8EAA8E;IAC9E,6DAA6D;IAC7D,MAAM,OAAO,GAAG,CAAC,EAAgB,EAAE,EAAE;QACnC,EAAE,CAAC,EAAE,CAAC,oBAAoB,EAAE,CAAC,KAA4B,EAAE,EAAE;YAC3D,MAAM,YAAY,GAAG,mBAAmB,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;YAC7D,IAAI,YAAY,KAAK,SAAS;gBAAE,OAAO;YACvC,OAAO,EAAE,YAAY,EAAE,CAAC;QAC1B,CAAC,CAAC,CAAC;QACH,8EAA8E;QAC9E,6EAA6E;QAC7E,+EAA+E;QAC/E,+BAA+B;QAC/B,EAAE,CAAC,EAAE,CAAC,SAAS,EAAE,CAAC,KAAmB,EAAE,EAAE;YACvC,MAAM,QAAQ,GAAG,cAAc,CAAC,KAAK,CAAC,QAA2C,CAAC,CAAC;YACnF,IAAI,QAAQ,KAAK,SAAS;gBAAE,OAAO;YACnC,OAAO,EAAE,QAAQ,EAAE,QAA+C,EAAE,CAAC;QACvE,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,EAAE,CAAC,WAAW,EAAE,GAAG,EAAE;YACtB,UAAU,GAAG,KAAK,CAAC;QACrB,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;IAEF,OAAO;QACL,GAAG,CAAC,MAAe;YACjB,KAAK,GAAG,MAAM,CAAC;QACjB,CAAC;QACD,OAAO;YACL,OAAO,KAAK,CAAC;QACf,CAAC;QACD,YAAY;YACV,OAAO,UAAU,CAAC;QACpB,CAAC;QACD,mBAAmB;QACnB,cAAc;QACd,OAAO;YACL,UAAU,GAAG,KAAK,CAAC;QACrB,CAAC;QACD,eAAe,EAAE,EAAE,IAAI,EAAE,4BAA4B,EAAE,OAAO,EAAE;KACjE,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-900:oklch(39.6% .141 25.723);--color-red-950:oklch(25.8% .092 26.042);--color-orange-500:oklch(70.5% .213 47.604);--color-amber-400:oklch(82.8% .189 84.429);--color-amber-500:oklch(76.9% .188 70.08);--color-amber-600:oklch(66.6% .179 58.318);--color-yellow-300:oklch(90.5% .182 98.111);--color-yellow-400:oklch(85.2% .199 91.936);--color-yellow-500:oklch(79.5% .184 86.047);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-indigo-500:oklch(58.5% .233 277.117);--color-indigo-600:oklch(51.1% .262 276.966);--color-rose-200:oklch(89.2% .058 10.001);--color-rose-300:oklch(81% .117 11.638);--color-rose-400:oklch(71.2% .194 13.428);--color-rose-500:oklch(64.5% .246 16.439);--color-rose-600:oklch(58.6% .253 17.585);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-gray-950:oklch(13% .028 261.692);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-md:28rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5 / 2.25);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-wide:.025em;--tracking-wider:.05em;--leading-normal:1.5;--leading-relaxed:1.625;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--ease-in:cubic-bezier(.4, 0, 1, 1);--ease-out:cubic-bezier(0, 0, .2, 1);--animate-spin:spin 1s linear infinite;--animate-ping:ping 1s cubic-bezier(0, 0, .2, 1) infinite;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--blur-sm:8px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-brand-cyan:#06b6d4;--color-brand-blue:#3b82f6;--color-brand-purple:#8b5cf6;--color-brand-dark:#0a0a0a;--color-brand-surface:#111;--color-brand-surface-2:#1a1a1a;--color-brand-surface-3:#222;--color-brand-border:#2a2a2a;--color-brand-text:#e5e5e5;--color-brand-text-muted:#888}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}input:where([type=text]),input:where(:not([type])),input:where([type=email]),input:where([type=url]),input:where([type=password]),input:where([type=number]),input:where([type=date]),input:where([type=datetime-local]),input:where([type=month]),input:where([type=search]),input:where([type=tel]),input:where([type=time]),input:where([type=week]),select:where([multiple]),textarea,select{appearance:none;--tw-shadow:0 0 #0000;background-color:#fff;border-width:1px;border-color:#6a7282;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem}:is(input:where([type=text]),input:where(:not([type])),input:where([type=email]),input:where([type=url]),input:where([type=password]),input:where([type=number]),input:where([type=date]),input:where([type=datetime-local]),input:where([type=month]),input:where([type=search]),input:where([type=tel]),input:where([type=time]),input:where([type=week]),select:where([multiple]),textarea,select):focus{outline-offset:2px;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:oklch(54.6% .245 262.881);--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#155dfc;outline:2px solid #0000}input::placeholder,textarea::placeholder{color:#6a7282;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}::-webkit-date-and-time-value{text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-year-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-month-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-day-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-hour-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-minute-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-second-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-millisecond-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{-webkit-print-color-adjust:exact;print-color-adjust:exact;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='oklch(55.1%25 0.027 264.364)' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem}select:where([multiple]),select:where([size]:not([size="1"])){background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;-webkit-print-color-adjust:unset;print-color-adjust:unset;padding-right:.75rem}input:where([type=checkbox]),input:where([type=radio]){appearance:none;-webkit-print-color-adjust:exact;print-color-adjust:exact;vertical-align:middle;-webkit-user-select:none;user-select:none;color:#155dfc;--tw-shadow:0 0 #0000;background-color:#fff;background-origin:border-box;border-width:1px;border-color:#6a7282;flex-shrink:0;width:1rem;height:1rem;padding:0;display:inline-block}input:where([type=checkbox]){border-radius:0}input:where([type=radio]){border-radius:100%}input:where([type=checkbox]):focus,input:where([type=radio]):focus{outline-offset:2px;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:oklch(54.6% .245 262.881);--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid #0000}input:where([type=checkbox]):checked,input:where([type=radio]):checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:#0000}input:where([type=checkbox]):checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}@media(forced-colors:active){input:where([type=checkbox]):checked{appearance:auto}}input:where([type=radio]):checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}@media(forced-colors:active){input:where([type=radio]):checked{appearance:auto}}input:where([type=checkbox]):checked:hover,input:where([type=checkbox]):checked:focus,input:where([type=radio]):checked:hover,input:where([type=radio]):checked:focus{background-color:currentColor;border-color:#0000}input:where([type=checkbox]):indeterminate{background-color:currentColor;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:#0000}@media(forced-colors:active){input:where([type=checkbox]):indeterminate{appearance:auto}}input:where([type=checkbox]):indeterminate:hover,input:where([type=checkbox]):indeterminate:focus{background-color:currentColor;border-color:#0000}input:where([type=file]){background:unset;border-color:inherit;font-size:unset;line-height:inherit;border-width:0;border-radius:0;padding:0}input:where([type=file]):focus{outline:1px solid buttontext;outline:1px auto -webkit-focus-ring-color}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:calc(var(--spacing) * 0)}.-right-0\.5{right:calc(var(--spacing) * -.5)}.right-0{right:calc(var(--spacing) * 0)}.-bottom-0\.5{bottom:calc(var(--spacing) * -.5)}.bottom-0{bottom:calc(var(--spacing) * 0)}.bottom-14{bottom:calc(var(--spacing) * 14)}.bottom-full{bottom:100%}.left-0{left:calc(var(--spacing) * 0)}.isolate{isolation:isolate}.z-10{z-index:10}.z-20{z-index:20}.z-40{z-index:40}.z-50{z-index:50}.z-\[100\]{z-index:100}.mx-4{margin-inline:calc(var(--spacing) * 4)}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);margin-top:1.2em;margin-bottom:1.2em;font-size:1.25em;line-height:1.6}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);font-weight:500;text-decoration:underline}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:decimal}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:disc}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-counters);font-weight:400}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.25em;font-weight:600}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em;font-style:italic;font-weight:500}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:0;margin-bottom:.888889em;font-size:2.25em;font-weight:800;line-height:1.11111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:900}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:2em;margin-bottom:1em;font-size:1.5em;font-weight:700;line-height:1.33333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:800}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.6em;margin-bottom:.6em;font-size:1.25em;font-weight:600;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.5em;margin-bottom:.5em;font-weight:600;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em;display:block}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-kbd);box-shadow:0 0 0 1px var(--tw-prose-kbd-shadows),0 3px 0 var(--tw-prose-kbd-shadows);padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;border-radius:.3125rem;padding-inline-start:.375em;font-family:inherit;font-size:.875em;font-weight:500}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-size:.875em;font-weight:600}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);padding-top:.857143em;padding-inline-end:1.14286em;padding-bottom:.857143em;border-radius:.375rem;margin-top:1.71429em;margin-bottom:1.71429em;padding-inline-start:1.14286em;font-size:.875em;font-weight:400;line-height:1.71429;overflow-x:auto}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit;background-color:#0000;border-width:0;border-radius:0;padding:0}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){table-layout:auto;width:100%;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.71429}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);vertical-align:bottom;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em;font-weight:600}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);margin-top:.857143em;font-size:.875em;line-height:1.42857}.prose{--tw-prose-body:oklch(37.3% .034 259.733);--tw-prose-headings:oklch(21% .034 264.665);--tw-prose-lead:oklch(44.6% .03 256.802);--tw-prose-links:oklch(21% .034 264.665);--tw-prose-bold:oklch(21% .034 264.665);--tw-prose-counters:oklch(55.1% .027 264.364);--tw-prose-bullets:oklch(87.2% .01 258.338);--tw-prose-hr:oklch(92.8% .006 264.531);--tw-prose-quotes:oklch(21% .034 264.665);--tw-prose-quote-borders:oklch(92.8% .006 264.531);--tw-prose-captions:oklch(55.1% .027 264.364);--tw-prose-kbd:oklch(21% .034 264.665);--tw-prose-kbd-shadows:oklab(21% -.00316127 -.0338527/.1);--tw-prose-code:oklch(21% .034 264.665);--tw-prose-pre-code:oklch(92.8% .006 264.531);--tw-prose-pre-bg:oklch(27.8% .033 256.848);--tw-prose-th-borders:oklch(87.2% .01 258.338);--tw-prose-td-borders:oklch(92.8% .006 264.531);--tw-prose-invert-body:oklch(87.2% .01 258.338);--tw-prose-invert-headings:#fff;--tw-prose-invert-lead:oklch(70.7% .022 261.325);--tw-prose-invert-links:#fff;--tw-prose-invert-bold:#fff;--tw-prose-invert-counters:oklch(70.7% .022 261.325);--tw-prose-invert-bullets:oklch(44.6% .03 256.802);--tw-prose-invert-hr:oklch(37.3% .034 259.733);--tw-prose-invert-quotes:oklch(96.7% .003 264.542);--tw-prose-invert-quote-borders:oklch(37.3% .034 259.733);--tw-prose-invert-captions:oklch(70.7% .022 261.325);--tw-prose-invert-kbd:#fff;--tw-prose-invert-kbd-shadows:#ffffff1a;--tw-prose-invert-code:#fff;--tw-prose-invert-pre-code:oklch(87.2% .01 258.338);--tw-prose-invert-pre-bg:#00000080;--tw-prose-invert-th-borders:oklch(44.6% .03 256.802);--tw-prose-invert-td-borders:oklch(37.3% .034 259.733);font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.571429em;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.mb-1\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-2\.5{margin-bottom:calc(var(--spacing) * 2.5)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-3\.5{margin-bottom:calc(var(--spacing) * 3.5)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-5{margin-bottom:calc(var(--spacing) * 5)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.ml-0\.5{margin-left:calc(var(--spacing) * .5)}.ml-1{margin-left:calc(var(--spacing) * 1)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-3{margin-left:calc(var(--spacing) * 3)}.ml-4{margin-left:calc(var(--spacing) * 4)}.ml-auto{margin-left:auto}.line-clamp-1{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-2{height:calc(var(--spacing) * 2)}.h-2\.5{height:calc(var(--spacing) * 2.5)}.h-3{height:calc(var(--spacing) * 3)}.h-3\.5{height:calc(var(--spacing) * 3.5)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-8{height:calc(var(--spacing) * 8)}.h-12{height:calc(var(--spacing) * 12)}.h-16{height:calc(var(--spacing) * 16)}.h-\[40px\]{height:40px}.h-\[48px\]{height:48px}.h-full{height:100%}.max-h-24{max-height:calc(var(--spacing) * 24)}.max-h-40{max-height:calc(var(--spacing) * 40)}.max-h-48{max-height:calc(var(--spacing) * 48)}.max-h-56{max-height:calc(var(--spacing) * 56)}.max-h-96{max-height:calc(var(--spacing) * 96)}.min-h-\[120px\]{min-height:120px}.w-0{width:calc(var(--spacing) * 0)}.w-1\.5{width:calc(var(--spacing) * 1.5)}.w-2{width:calc(var(--spacing) * 2)}.w-2\.5{width:calc(var(--spacing) * 2.5)}.w-3{width:calc(var(--spacing) * 3)}.w-3\.5{width:calc(var(--spacing) * 3.5)}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-6{width:calc(var(--spacing) * 6)}.w-8{width:calc(var(--spacing) * 8)}.w-12{width:calc(var(--spacing) * 12)}.w-16{width:calc(var(--spacing) * 16)}.w-64{width:calc(var(--spacing) * 64)}.w-72{width:calc(var(--spacing) * 72)}.w-80{width:calc(var(--spacing) * 80)}.w-\[28px\]{width:28px}.w-\[48px\]{width:48px}.w-\[80px\]{width:80px}.w-fit{width:fit-content}.w-full{width:100%}.max-w-48{max-width:calc(var(--spacing) * 48)}.max-w-\[85\%\]{max-width:85%}.max-w-\[120px\]{max-width:120px}.max-w-\[150px\]{max-width:150px}.max-w-\[180px\]{max-width:180px}.max-w-full{max-width:100%}.max-w-md{max-width:var(--container-md)}.max-w-sm{max-width:var(--container-sm)}.min-w-0{min-width:calc(var(--spacing) * 0)}.min-w-\[240px\]{min-width:240px}.min-w-\[280px\]{min-width:280px}.flex-1{flex:1}.flex-shrink-0,.shrink-0{flex-shrink:0}.-translate-x-full{--tw-translate-x:-100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-0{--tw-translate-x:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-0{--tw-translate-y:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-2{--tw-translate-y:calc(var(--spacing) * 2);translate:var(--tw-translate-x) var(--tw-translate-y)}.rotate-45{rotate:45deg}.rotate-90{rotate:90deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-ping{animation:var(--animate-ping)}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-pointer{cursor:pointer}.cursor-wait{cursor:wait}.resize-none{resize:none}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-3\.5{gap:calc(var(--spacing) * 3.5)}.gap-4{gap:calc(var(--spacing) * 4)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}.gap-x-4{column-gap:calc(var(--spacing) * 4)}:where(.space-x-7>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 7) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 7) * calc(1 - var(--tw-space-x-reverse)))}.gap-y-2{row-gap:calc(var(--spacing) * 2)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overscroll-none{overscroll-behavior:none}.overscroll-y-contain{overscroll-behavior-y:contain}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-4{border-style:var(--tw-border-style);border-width:4px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-amber-400{border-color:var(--color-amber-400)}.border-amber-400\/50{border-color:#fcbb0080}@supports (color:color-mix(in lab,red,red)){.border-amber-400\/50{border-color:color-mix(in oklab,var(--color-amber-400) 50%,transparent)}}.border-amber-500{border-color:var(--color-amber-500)}.border-blue-500{border-color:var(--color-blue-500)}.border-blue-500\/30{border-color:#3080ff4d}@supports (color:color-mix(in lab,red,red)){.border-blue-500\/30{border-color:color-mix(in oklab,var(--color-blue-500) 30%,transparent)}}.border-brand-blue{border-color:var(--color-brand-blue)}.border-brand-blue\/20{border-color:#3b82f633}@supports (color:color-mix(in lab,red,red)){.border-brand-blue\/20{border-color:color-mix(in oklab,var(--color-brand-blue) 20%,transparent)}}.border-brand-border{border-color:var(--color-brand-border)}.border-brand-border\/30{border-color:#2a2a2a4d}@supports (color:color-mix(in lab,red,red)){.border-brand-border\/30{border-color:color-mix(in oklab,var(--color-brand-border) 30%,transparent)}}.border-brand-border\/40{border-color:#2a2a2a66}@supports (color:color-mix(in lab,red,red)){.border-brand-border\/40{border-color:color-mix(in oklab,var(--color-brand-border) 40%,transparent)}}.border-brand-border\/50{border-color:#2a2a2a80}@supports (color:color-mix(in lab,red,red)){.border-brand-border\/50{border-color:color-mix(in oklab,var(--color-brand-border) 50%,transparent)}}.border-brand-border\/60{border-color:#2a2a2a99}@supports (color:color-mix(in lab,red,red)){.border-brand-border\/60{border-color:color-mix(in oklab,var(--color-brand-border) 60%,transparent)}}.border-brand-cyan\/40{border-color:#06b6d466}@supports (color:color-mix(in lab,red,red)){.border-brand-cyan\/40{border-color:color-mix(in oklab,var(--color-brand-cyan) 40%,transparent)}}.border-brand-purple{border-color:var(--color-brand-purple)}.border-brand-surface{border-color:var(--color-brand-surface)}.border-brand-text-muted{border-color:var(--color-brand-text-muted)}.border-emerald-400{border-color:var(--color-emerald-400)}.border-emerald-500\/80{border-color:#00bb7fcc}@supports (color:color-mix(in lab,red,red)){.border-emerald-500\/80{border-color:color-mix(in oklab,var(--color-emerald-500) 80%,transparent)}}.border-gray-600{border-color:var(--color-gray-600)}.border-gray-700{border-color:var(--color-gray-700)}.border-red-500{border-color:var(--color-red-500)}.border-red-500\/30{border-color:#fb2c364d}@supports (color:color-mix(in lab,red,red)){.border-red-500\/30{border-color:color-mix(in oklab,var(--color-red-500) 30%,transparent)}}.border-red-900\/40{border-color:#82181a66}@supports (color:color-mix(in lab,red,red)){.border-red-900\/40{border-color:color-mix(in oklab,var(--color-red-900) 40%,transparent)}}.border-rose-400{border-color:var(--color-rose-400)}.border-rose-400\/40{border-color:#ff667f66}@supports (color:color-mix(in lab,red,red)){.border-rose-400\/40{border-color:color-mix(in oklab,var(--color-rose-400) 40%,transparent)}}.border-yellow-500\/30{border-color:#edb2004d}@supports (color:color-mix(in lab,red,red)){.border-yellow-500\/30{border-color:color-mix(in oklab,var(--color-yellow-500) 30%,transparent)}}.border-yellow-500\/40{border-color:#edb20066}@supports (color:color-mix(in lab,red,red)){.border-yellow-500\/40{border-color:color-mix(in oklab,var(--color-yellow-500) 40%,transparent)}}.border-t-transparent{border-top-color:#0000}.bg-amber-400{background-color:var(--color-amber-400)}.bg-amber-600{background-color:var(--color-amber-600)}.bg-blue-500\/10{background-color:#3080ff1a}@supports (color:color-mix(in lab,red,red)){.bg-blue-500\/10{background-color:color-mix(in oklab,var(--color-blue-500) 10%,transparent)}}.bg-blue-600{background-color:var(--color-blue-600)}.bg-brand-blue{background-color:var(--color-brand-blue)}.bg-brand-blue\/20{background-color:#3b82f633}@supports (color:color-mix(in lab,red,red)){.bg-brand-blue\/20{background-color:color-mix(in oklab,var(--color-brand-blue) 20%,transparent)}}.bg-brand-blue\/25{background-color:#3b82f640}@supports (color:color-mix(in lab,red,red)){.bg-brand-blue\/25{background-color:color-mix(in oklab,var(--color-brand-blue) 25%,transparent)}}.bg-brand-blue\/30{background-color:#3b82f64d}@supports (color:color-mix(in lab,red,red)){.bg-brand-blue\/30{background-color:color-mix(in oklab,var(--color-brand-blue) 30%,transparent)}}.bg-brand-blue\/40{background-color:#3b82f666}@supports (color:color-mix(in lab,red,red)){.bg-brand-blue\/40{background-color:color-mix(in oklab,var(--color-brand-blue) 40%,transparent)}}.bg-brand-blue\/80{background-color:#3b82f6cc}@supports (color:color-mix(in lab,red,red)){.bg-brand-blue\/80{background-color:color-mix(in oklab,var(--color-brand-blue) 80%,transparent)}}.bg-brand-cyan{background-color:var(--color-brand-cyan)}.bg-brand-cyan\/10{background-color:#06b6d41a}@supports (color:color-mix(in lab,red,red)){.bg-brand-cyan\/10{background-color:color-mix(in oklab,var(--color-brand-cyan) 10%,transparent)}}.bg-brand-cyan\/20{background-color:#06b6d433}@supports (color:color-mix(in lab,red,red)){.bg-brand-cyan\/20{background-color:color-mix(in oklab,var(--color-brand-cyan) 20%,transparent)}}.bg-brand-dark{background-color:var(--color-brand-dark)}.bg-brand-dark\/50{background-color:#0a0a0a80}@supports (color:color-mix(in lab,red,red)){.bg-brand-dark\/50{background-color:color-mix(in oklab,var(--color-brand-dark) 50%,transparent)}}.bg-brand-dark\/60{background-color:#0a0a0a99}@supports (color:color-mix(in lab,red,red)){.bg-brand-dark\/60{background-color:color-mix(in oklab,var(--color-brand-dark) 60%,transparent)}}.bg-brand-dark\/65{background-color:#0a0a0aa6}@supports (color:color-mix(in lab,red,red)){.bg-brand-dark\/65{background-color:color-mix(in oklab,var(--color-brand-dark) 65%,transparent)}}.bg-brand-purple\/10{background-color:#8b5cf61a}@supports (color:color-mix(in lab,red,red)){.bg-brand-purple\/10{background-color:color-mix(in oklab,var(--color-brand-purple) 10%,transparent)}}.bg-brand-surface{background-color:var(--color-brand-surface)}.bg-brand-surface-2{background-color:var(--color-brand-surface-2)}.bg-brand-surface-2\/20{background-color:#1a1a1a33}@supports (color:color-mix(in lab,red,red)){.bg-brand-surface-2\/20{background-color:color-mix(in oklab,var(--color-brand-surface-2) 20%,transparent)}}.bg-brand-surface-2\/80{background-color:#1a1a1acc}@supports (color:color-mix(in lab,red,red)){.bg-brand-surface-2\/80{background-color:color-mix(in oklab,var(--color-brand-surface-2) 80%,transparent)}}.bg-brand-surface-3{background-color:var(--color-brand-surface-3)}.bg-brand-surface-3\/50{background-color:#22222280}@supports (color:color-mix(in lab,red,red)){.bg-brand-surface-3\/50{background-color:color-mix(in oklab,var(--color-brand-surface-3) 50%,transparent)}}.bg-brand-surface-3\/60{background-color:#2229}@supports (color:color-mix(in lab,red,red)){.bg-brand-surface-3\/60{background-color:color-mix(in oklab,var(--color-brand-surface-3) 60%,transparent)}}.bg-brand-surface\/10{background-color:#1111111a}@supports (color:color-mix(in lab,red,red)){.bg-brand-surface\/10{background-color:color-mix(in oklab,var(--color-brand-surface) 10%,transparent)}}.bg-brand-surface\/30{background-color:#1111114d}@supports (color:color-mix(in lab,red,red)){.bg-brand-surface\/30{background-color:color-mix(in oklab,var(--color-brand-surface) 30%,transparent)}}.bg-brand-surface\/40{background-color:#1116}@supports (color:color-mix(in lab,red,red)){.bg-brand-surface\/40{background-color:color-mix(in oklab,var(--color-brand-surface) 40%,transparent)}}.bg-emerald-500{background-color:var(--color-emerald-500)}.bg-emerald-500\/10{background-color:#00bb7f1a}@supports (color:color-mix(in lab,red,red)){.bg-emerald-500\/10{background-color:color-mix(in oklab,var(--color-emerald-500) 10%,transparent)}}.bg-gray-800{background-color:var(--color-gray-800)}.bg-gray-950{background-color:var(--color-gray-950)}.bg-orange-500{background-color:var(--color-orange-500)}.bg-red-500\/10{background-color:#fb2c361a}@supports (color:color-mix(in lab,red,red)){.bg-red-500\/10{background-color:color-mix(in oklab,var(--color-red-500) 10%,transparent)}}.bg-red-600{background-color:var(--color-red-600)}.bg-red-950\/40{background-color:#46080966}@supports (color:color-mix(in lab,red,red)){.bg-red-950\/40{background-color:color-mix(in oklab,var(--color-red-950) 40%,transparent)}}.bg-rose-400\/10{background-color:#ff667f1a}@supports (color:color-mix(in lab,red,red)){.bg-rose-400\/10{background-color:color-mix(in oklab,var(--color-rose-400) 10%,transparent)}}.bg-rose-500{background-color:var(--color-rose-500)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-yellow-500\/10{background-color:#edb2001a}@supports (color:color-mix(in lab,red,red)){.bg-yellow-500\/10{background-color:color-mix(in oklab,var(--color-yellow-500) 10%,transparent)}}.bg-yellow-500\/20{background-color:#edb20033}@supports (color:color-mix(in lab,red,red)){.bg-yellow-500\/20{background-color:color-mix(in oklab,var(--color-yellow-500) 20%,transparent)}}.bg-gradient-to-r{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-brand-cyan{--tw-gradient-from:var(--color-brand-cyan);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-brand-blue{--tw-gradient-to:var(--color-brand-blue);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.\[mask-image\:linear-gradient\(to_bottom\,black_60\%\,transparent\)\]{-webkit-mask-image:linear-gradient(#000 60%,#0000);mask-image:linear-gradient(#000 60%,#0000)}.object-contain{object-fit:contain}.p-0{padding:calc(var(--spacing) * 0)}.p-1{padding:calc(var(--spacing) * 1)}.p-1\.5{padding:calc(var(--spacing) * 1.5)}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.px-1{padding-inline:calc(var(--spacing) * 1)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-3\.5{padding-inline:calc(var(--spacing) * 3.5)}.px-4{padding-inline:calc(var(--spacing) * 4)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-6{padding-block:calc(var(--spacing) * 6)}.pt-0\.5{padding-top:calc(var(--spacing) * .5)}.pt-1{padding-top:calc(var(--spacing) * 1)}.pt-1\.5{padding-top:calc(var(--spacing) * 1.5)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pb-1\.5{padding-bottom:calc(var(--spacing) * 1.5)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-5{padding-left:calc(var(--spacing) * 5)}.pl-6{padding-left:calc(var(--spacing) * 6)}.text-center{text-align:center}.text-left{text-align:left}.align-text-bottom{vertical-align:text-bottom}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.leading-none{--tw-leading:1;line-height:1}.leading-normal{--tw-leading:var(--leading-normal);line-height:var(--leading-normal)}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-amber-400{color:var(--color-amber-400)}.text-amber-500{color:var(--color-amber-500)}.text-blue-400{color:var(--color-blue-400)}.text-blue-600{color:var(--color-blue-600)}.text-brand-blue{color:var(--color-brand-blue)}.text-brand-cyan{color:var(--color-brand-cyan)}.text-brand-purple{color:var(--color-brand-purple)}.text-brand-text{color:var(--color-brand-text)}.text-brand-text-muted{color:var(--color-brand-text-muted)}.text-brand-text-muted\/70{color:#888888b3}@supports (color:color-mix(in lab,red,red)){.text-brand-text-muted\/70{color:color-mix(in oklab,var(--color-brand-text-muted) 70%,transparent)}}.text-emerald-400{color:var(--color-emerald-400)}.text-gray-300{color:var(--color-gray-300)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-700{color:var(--color-gray-700)}.text-gray-900{color:var(--color-gray-900)}.text-indigo-600{color:var(--color-indigo-600)}.text-red-400{color:var(--color-red-400)}.text-rose-300{color:var(--color-rose-300)}.text-rose-300\/80{color:#ffa2aecc}@supports (color:color-mix(in lab,red,red)){.text-rose-300\/80{color:color-mix(in oklab,var(--color-rose-300) 80%,transparent)}}.text-rose-400{color:var(--color-rose-400)}.text-rose-400\/80{color:#ff667fcc}@supports (color:color-mix(in lab,red,red)){.text-rose-400\/80{color:color-mix(in oklab,var(--color-rose-400) 80%,transparent)}}.text-white{color:var(--color-white)}.text-yellow-300{color:var(--color-yellow-300)}.text-yellow-400{color:var(--color-yellow-400)}.text-yellow-500{color:var(--color-yellow-500)}.uppercase{text-transform:uppercase}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.no-underline{text-decoration-line:none}.underline{text-decoration-line:underline}.placeholder-brand-text-muted::placeholder{color:var(--color-brand-text-muted)}.opacity-0{opacity:0}.opacity-25{opacity:.25}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-75{opacity:.75}.opacity-80{opacity:.8}.opacity-100{opacity:1}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-amber-400\/50{--tw-ring-color:#fcbb0080}@supports (color:color-mix(in lab,red,red)){.ring-amber-400\/50{--tw-ring-color:color-mix(in oklab, var(--color-amber-400) 50%, transparent)}}.ring-black\/5{--tw-ring-color:#0000000d}@supports (color:color-mix(in lab,red,red)){.ring-black\/5{--tw-ring-color:color-mix(in oklab, var(--color-black) 5%, transparent)}}.ring-brand-blue\/40{--tw-ring-color:#3b82f666}@supports (color:color-mix(in lab,red,red)){.ring-brand-blue\/40{--tw-ring-color:color-mix(in oklab, var(--color-brand-blue) 40%, transparent)}}.ring-brand-blue\/50{--tw-ring-color:#3b82f680}@supports (color:color-mix(in lab,red,red)){.ring-brand-blue\/50{--tw-ring-color:color-mix(in oklab, var(--color-brand-blue) 50%, transparent)}}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-in{--tw-ease:var(--ease-in);transition-timing-function:var(--ease-in)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-none{--tw-outline-style:none;outline-style:none}.select-all{-webkit-user-select:all;user-select:all}.select-none{-webkit-user-select:none;user-select:none}@media(hover:hover){.group-hover\:opacity-100:is(:where(.group):hover *){opacity:1}}.focus-within\:opacity-100:focus-within{opacity:1}@media(hover:hover){.hover\:border-brand-blue:hover{border-color:var(--color-brand-blue)}.hover\:bg-brand-blue:hover{background-color:var(--color-brand-blue)}.hover\:bg-brand-blue\/15:hover{background-color:#3b82f626}@supports (color:color-mix(in lab,red,red)){.hover\:bg-brand-blue\/15:hover{background-color:color-mix(in oklab,var(--color-brand-blue) 15%,transparent)}}.hover\:bg-brand-cyan\/15:hover{background-color:#06b6d426}@supports (color:color-mix(in lab,red,red)){.hover\:bg-brand-cyan\/15:hover{background-color:color-mix(in oklab,var(--color-brand-cyan) 15%,transparent)}}.hover\:bg-brand-cyan\/20:hover{background-color:#06b6d433}@supports (color:color-mix(in lab,red,red)){.hover\:bg-brand-cyan\/20:hover{background-color:color-mix(in oklab,var(--color-brand-cyan) 20%,transparent)}}.hover\:bg-brand-surface-2:hover{background-color:var(--color-brand-surface-2)}.hover\:bg-brand-surface-3:hover{background-color:var(--color-brand-surface-3)}.hover\:bg-brand-surface-3\/30:hover{background-color:#2222224d}@supports (color:color-mix(in lab,red,red)){.hover\:bg-brand-surface-3\/30:hover{background-color:color-mix(in oklab,var(--color-brand-surface-3) 30%,transparent)}}.hover\:bg-brand-surface-3\/50:hover{background-color:#22222280}@supports (color:color-mix(in lab,red,red)){.hover\:bg-brand-surface-3\/50:hover{background-color:color-mix(in oklab,var(--color-brand-surface-3) 50%,transparent)}}.hover\:bg-brand-surface-3\/60:hover{background-color:#2229}@supports (color:color-mix(in lab,red,red)){.hover\:bg-brand-surface-3\/60:hover{background-color:color-mix(in oklab,var(--color-brand-surface-3) 60%,transparent)}}.hover\:bg-gray-700:hover{background-color:var(--color-gray-700)}.hover\:bg-red-500\/20:hover{background-color:#fb2c3633}@supports (color:color-mix(in lab,red,red)){.hover\:bg-red-500\/20:hover{background-color:color-mix(in oklab,var(--color-red-500) 20%,transparent)}}.hover\:bg-rose-500\/80:hover{background-color:#ff2357cc}@supports (color:color-mix(in lab,red,red)){.hover\:bg-rose-500\/80:hover{background-color:color-mix(in oklab,var(--color-rose-500) 80%,transparent)}}.hover\:bg-rose-600:hover{background-color:var(--color-rose-600)}.hover\:bg-yellow-500\/30:hover{background-color:#edb2004d}@supports (color:color-mix(in lab,red,red)){.hover\:bg-yellow-500\/30:hover{background-color:color-mix(in oklab,var(--color-yellow-500) 30%,transparent)}}.hover\:text-brand-blue:hover{color:var(--color-brand-blue)}.hover\:text-brand-text:hover{color:var(--color-brand-text)}.hover\:text-gray-500:hover{color:var(--color-gray-500)}.hover\:text-indigo-500:hover{color:var(--color-indigo-500)}.hover\:text-rose-200:hover{color:var(--color-rose-200)}.hover\:text-rose-300:hover{color:var(--color-rose-300)}.hover\:text-rose-400:hover{color:var(--color-rose-400)}.hover\:text-white:hover{color:var(--color-white)}.hover\:opacity-80:hover{opacity:.8}.hover\:opacity-90:hover{opacity:.9}.hover\:opacity-100:hover{opacity:1}}.focus\:border-blue-500:focus{border-color:var(--color-blue-500)}.focus\:border-brand-blue:focus{border-color:var(--color-brand-blue)}.focus\:border-emerald-400:focus{border-color:var(--color-emerald-400)}.focus\:ring-0:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-1:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-brand-blue:focus{--tw-ring-color:var(--color-brand-blue)}.focus\:ring-emerald-400\/30:focus{--tw-ring-color:#00d2944d}@supports (color:color-mix(in lab,red,red)){.focus\:ring-emerald-400\/30:focus{--tw-ring-color:color-mix(in oklab, var(--color-emerald-400) 30%, transparent)}}.focus\:ring-indigo-500:focus{--tw-ring-color:var(--color-indigo-500)}.focus\:ring-offset-0:focus{--tw-ring-offset-width:0px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus\:ring-offset-brand-surface:focus{--tw-ring-offset-color:var(--color-brand-surface)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:bg-brand-surface-3:disabled{background-color:var(--color-brand-surface-3)}.disabled\:from-brand-surface-3:disabled{--tw-gradient-from:var(--color-brand-surface-3);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.disabled\:to-brand-surface-3:disabled{--tw-gradient-to:var(--color-brand-surface-3);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-50:disabled{opacity:.5}@media(min-width:40rem){.sm\:inline{display:inline}.sm\:max-w-\[300px\]{max-width:300px}.sm\:min-w-\[400px\]{min-width:400px}.sm\:translate-x-0{--tw-translate-x:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.sm\:translate-x-2{--tw-translate-x:calc(var(--spacing) * 2);translate:var(--tw-translate-x) var(--tw-translate-y)}.sm\:translate-y-0{--tw-translate-y:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.sm\:items-end{align-items:flex-end}.sm\:items-start{align-items:flex-start}.sm\:p-6{padding:calc(var(--spacing) * 6)}}@media(min-width:48rem){.md\:relative{position:relative}.md\:hidden{display:none}.md\:max-w-\[450px\]{max-width:450px}.md\:min-w-\[550px\]{min-width:550px}.md\:translate-x-0{--tw-translate-x:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.md\:opacity-0{opacity:0}@media(hover:hover){.md\:group-hover\:opacity-100:is(:where(.group):hover *){opacity:1}}}}html{font-family:Inter,system-ui,-apple-system,sans-serif}body{background-color:var(--color-brand-dark);color:var(--color-brand-text)}.gradient-text{color:#0000;background-image:linear-gradient(90deg,#06b6d4,#3b82f6,#8b5cf6);-webkit-background-clip:text;background-clip:text}.gradient-border{position:relative}.gradient-border:before{content:"";border-radius:inherit;pointer-events:none;background:linear-gradient(90deg,#06b6d4,#3b82f6,#8b5cf6);padding:1px;position:absolute;inset:0;-webkit-mask-image:linear-gradient(#fff 0 0),linear-gradient(#fff 0 0);-webkit-mask-position:0 0,0 0;-webkit-mask-size:auto,auto;-webkit-mask-repeat:repeat,repeat;-webkit-mask-clip:content-box,border-box;-webkit-mask-origin:content-box,border-box;-webkit-mask-composite:xor;mask-composite:exclude;-webkit-mask-source-type:auto,auto;mask-mode:match-source,match-source}.app-chrome,.app-chrome *{-webkit-user-select:none;user-select:none}.chat-selectable,.chat-selectable *{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}.markdown-body{overflow-wrap:anywhere}.markdown-body>:first-child{margin-top:0}.markdown-body>:last-child{margin-bottom:0}.markdown-body p,.markdown-body ul,.markdown-body ol,.markdown-body blockquote,.markdown-body pre,.markdown-body table{margin:.5em 0}.markdown-body h1,.markdown-body h2,.markdown-body h3,.markdown-body h4{margin:.8em 0 .4em;font-weight:700;line-height:1.25}.markdown-body h1{font-size:1.3em}.markdown-body h2{font-size:1.2em}.markdown-body h3{font-size:1.1em}.markdown-body ul,.markdown-body ol{padding-left:1.4em}.markdown-body ul{list-style:outside}.markdown-body ol{list-style:decimal}.markdown-body li,.markdown-body li>ul,.markdown-body li>ol{margin:.2em 0}.markdown-body a{color:var(--color-brand-cyan);text-underline-offset:2px;text-decoration:underline}.markdown-body strong{font-weight:700}.markdown-body em{font-style:italic}.markdown-body code{background:var(--color-brand-surface-3);border-radius:.25rem;padding:.1em .35em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.85em}.markdown-body pre{background:var(--color-brand-dark);border:1px solid var(--color-brand-border);border-radius:.375rem;padding:.75em;overflow-x:auto}.markdown-body pre code{background:0 0;padding:0;font-size:.8125em;line-height:1.5}.markdown-body details.code-collapsible{margin:.5em 0}.markdown-body details.code-collapsible>summary{cursor:pointer;color:var(--color-brand-text-muted);background:var(--color-brand-dark);border:1px solid var(--color-brand-border);white-space:nowrap;text-overflow:ellipsis;border-radius:.375rem;padding:.35em .6em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.8125em;list-style-position:inside;overflow:hidden}.markdown-body details.code-collapsible[open]>summary{border-bottom-right-radius:0;border-bottom-left-radius:0;margin-bottom:-1px}.markdown-body details.code-collapsible>pre{border-top-left-radius:0;border-top-right-radius:0;margin:0}.markdown-body details.code-collapsible .code-lang{color:var(--color-brand-cyan);margin-right:.4em}.markdown-body blockquote{border-left:3px solid var(--color-brand-border);color:var(--color-brand-text-muted);padding-left:.75em}.markdown-body hr{border:none;border-top:1px solid var(--color-brand-border);margin:1em 0}.markdown-body table{border-collapse:collapse;display:block;overflow-x:auto}.markdown-body th,.markdown-body td{border:1px solid var(--color-brand-border);text-align:left;padding:.3em .6em}.markdown-body th{background:var(--color-brand-surface-2);font-weight:700}.markdown-body img{max-width:100%;height:auto}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}@keyframes ping{75%,to{opacity:0;transform:scale(2)}}@keyframes pulse{50%{opacity:.5}}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a2 as H,W as fe,as as R,b3 as U,am as le,aq as ue,aj as V,aS as ce,p as de,b8 as X,b4 as $,ar as O,d as ge,m as pe,ax as K,a3 as ve,j as k,X as Y,ac as he,b6 as we,aa as _e,aA as Ee,V as q,i as me,h as be,aI as Se,b9 as Z,E as ke,D as Ae,aX as ee,aM as re,I as P,b as Te,Z as Ie,aH as Le,ab as Ce,an as Re,g as ne,aR as ie,f as Me,A as Ne,N as ye,ao as We,F as xe,U as De,s as Fe,al as Oe,r as te,ai as y,bm as oe}from"./CRRPBe07.js";import{b as He,r as Ue,a as $e,v as Pe}from"./CIOfJygp.js";import{p as ze}from"./CgprCr9Q.js";function vr(e,r){return r}function Ye(e,r,i){for(var s=[],f=r.length,a,n=r.length,l=0;l<f;l++){let E=r[l];re(E,()=>{if(a){if(a.pending.delete(E),a.done.add(E),a.pending.size===0){var g=e.outrogroups;G(e,q(a.done)),g.delete(a),g.size===0&&(e.outrogroups=null)}}else n-=1},!1)}if(n===0){var t=s.length===0&&i!==null;if(t){var c=i,u=c.parentNode;Ie(u),u.append(c),e.items.clear()}G(e,r,!t)}else a={pending:new Set(r),done:new Set},(e.outrogroups??=new Set).add(a)}function G(e,r,i=!0){var s;if(e.pending.size>0){s=new Set;for(const n of e.pending.values())for(const l of n)s.add(e.items.get(l).e)}for(var f=0;f<r.length;f++){var a=r[f];if(s?.has(a)){a.f|=k;const n=document.createDocumentFragment();Le(a,n)}else Ce(r[f],i)}}var J;function hr(e,r,i,s,f,a=null){var n=e,l=new Map,t=(r&ne)!==0;if(t){var c=e;n=R?U(le(c)):c.appendChild(H())}R&&ue();var u=null,E=_e(()=>{var p=i();return Ee(p)?p:p==null?[]:q(p)}),g,m=new Map,b=!0;function M(p){(T.effect.f&Ae)===0&&(T.pending.delete(p),T.fallback=u,Ge(T,g,n,r,s),u!==null&&(g.length===0?(u.f&k)===0?ee(u):(u.f^=k,x(u,null,n)):re(u,()=>{u=null})))}function o(p){T.pending.delete(p)}var d=fe(()=>{g=V(E);var p=g.length;let _=!1;if(R){var D=ce(n)===de;D!==(p===0)&&(n=X(),U(n),$(!1),_=!0)}for(var I=new Set,v=ve,N=we(),L=0;L<p;L+=1){R&&O.nodeType===ge&&O.data===pe&&(n=O,_=!0,$(!1));var S=g[L],F=s(S,L),A=b?null:l.get(F);A?(A.v&&K(A.v,S),A.i&&K(A.i,L),N&&v.unskip_effect(A.e)):(A=qe(l,b?n:J??=H(),S,F,L,f,r,i),b||(A.e.f|=k),l.set(F,A)),I.add(F)}if(p===0&&a&&!u&&(b?u=Y(()=>a(n)):(u=Y(()=>a(J??=H())),u.f|=k)),p>I.size&&he(),R&&p>0&&U(X()),!b)if(m.set(v,I),N){for(const[ae,se]of l)I.has(ae)||v.skip_effect(se.e);v.oncommit(M),v.ondiscard(o)}else M(v);_&&$(!0),V(E)}),T={effect:d,items:l,pending:m,outrogroups:null,fallback:u};b=!1,R&&(n=O)}function W(e){for(;e!==null&&(e.f&Te)===0;)e=e.next;return e}function Ge(e,r,i,s,f){var a=(s&Me)!==0,n=r.length,l=e.items,t=W(e.effect.first),c,u=null,E,g=[],m=[],b,M,o,d;if(a)for(d=0;d<n;d+=1)b=r[d],M=f(b,d),o=l.get(M).e,(o.f&k)===0&&(o.nodes?.a?.measure(),(E??=new Set).add(o));for(d=0;d<n;d+=1){if(b=r[d],M=f(b,d),o=l.get(M).e,e.outrogroups!==null)for(const S of e.outrogroups)S.pending.delete(o),S.done.delete(o);if((o.f&P)!==0&&(ee(o),a&&(o.nodes?.a?.unfix(),(E??=new Set).delete(o))),(o.f&k)!==0)if(o.f^=k,o===t)x(o,null,i);else{var T=u?u.next:t;o===e.effect.last&&(e.effect.last=o.prev),o.prev&&(o.prev.next=o.next),o.next&&(o.next.prev=o.prev),C(e,u,o),C(e,o,T),x(o,T,i),u=o,g=[],m=[],t=W(u.next);continue}if(o!==t){if(c!==void 0&&c.has(o)){if(g.length<m.length){var p=m[0],_;u=p.prev;var D=g[0],I=g[g.length-1];for(_=0;_<g.length;_+=1)x(g[_],p,i);for(_=0;_<m.length;_+=1)c.delete(m[_]);C(e,D.prev,I.next),C(e,u,D),C(e,I,p),t=p,u=I,d-=1,g=[],m=[]}else c.delete(o),x(o,t,i),C(e,o.prev,o.next),C(e,o,u===null?e.effect.first:u.next),C(e,u,o),u=o;continue}for(g=[],m=[];t!==null&&t!==o;)(c??=new Set).add(t),m.push(t),t=W(t.next);if(t===null)continue}(o.f&k)===0&&g.push(o),u=o,t=W(o.next)}if(e.outrogroups!==null){for(const S of e.outrogroups)S.pending.size===0&&(G(e,q(S.done)),e.outrogroups?.delete(S));e.outrogroups.size===0&&(e.outrogroups=null)}if(t!==null||c!==void 0){var v=[];if(c!==void 0)for(o of c)(o.f&P)===0&&v.push(o);for(;t!==null;)(t.f&P)===0&&t!==e.fallback&&v.push(t),t=W(t.next);var N=v.length;if(N>0){var L=(s&ne)!==0&&n===0?i:null;if(a){for(d=0;d<N;d+=1)v[d].nodes?.a?.measure();for(d=0;d<N;d+=1)v[d].nodes?.a?.fix()}Ye(e,v,L)}}a&&ie(()=>{if(E!==void 0)for(o of E)o.nodes?.a?.apply()})}function qe(e,r,i,s,f,a,n,l){var t=(n&me)!==0?(n&be)===0?Se(i,!1,!1):Z(i):null,c=(n&ke)!==0?Z(f):null;return{v:t,i:c,e:Y(()=>(a(r,t??i,c??f,l),()=>{e.delete(s)}))}}function x(e,r,i){if(e.nodes)for(var s=e.nodes.start,f=e.nodes.end,a=r&&(r.f&k)===0?r.nodes.start:i;s!==null;){var n=Re(s);if(a.before(s),s===f)return;s=n}}function C(e,r,i){r===null?e.effect.first=i:r.next=i,i===null?e.effect.last=r:i.prev=r}const Be=Symbol("is custom element"),Ve=Symbol("is html"),Xe=te?"link":"LINK",Ke=te?"progress":"PROGRESS";function wr(e){if(R){var r=!1,i=()=>{if(!r){if(r=!0,e.hasAttribute("value")){var s=e.value;Q(e,"value",null),e.value=s}if(e.hasAttribute("checked")){var f=e.checked;Q(e,"checked",null),e.checked=f}}};e[xe]=i,ie(i),De()}}function _r(e,r){var i=B(e);i.value===(i.value=r??void 0)||e.value===r&&(r!==0||e.nodeName!==Ke)||(e.value=r??"")}function Er(e,r){var i=B(e);i.checked!==(i.checked=r??void 0)&&(e.checked=r)}function Q(e,r,i,s){var f=B(e);R&&(f[r]=e.getAttribute(r),r==="src"||r==="srcset"||r==="href"&&e.nodeName===Xe)||f[r]!==(f[r]=i)&&(r==="loading"&&(e[Fe]=i),i==null?e.removeAttribute(r):typeof i!="string"&&Ze(e).includes(r)?e[r]=i:e.setAttribute(r,i))}function B(e){return e[Ne]??={[Be]:e.nodeName.includes("-"),[Ve]:e.namespaceURI===ye}}var j=new Map;function Ze(e){var r=e.getAttribute("is")||e.nodeName,i=j.get(r);if(i)return i;j.set(r,i=[]);for(var s,f=e,a=Element.prototype;a!==f;){s=Oe(f);for(var n in s)s[n].set&&n!=="innerHTML"&&n!=="textContent"&&n!=="innerText"&&i.push(n);f=We(f)}return i}const Je="";function Qe(...e){if(!e[0].startsWith("/"))throw new Error(`Cannot use \`resolve(...)\` with a non-absolute pathname or route ID (got "${e[0]}"). \`resolve\` is only for internal pathnames and route IDs; external URLs should be used directly.`);return He+Je+Ue(e[0],e[1])}const h=()=>{},je={assert:h,error:h,warn:h,info:h,log:h,debug:h,dir:h,table:h,trace:h,write:h,time:h,timeEnd:h,timeLog:h};function er(){return globalThis?._logFactory}function rr(e,r){const i=er();return i?i(e,{decoration:r?.decoration}):je}function nr(e,r){let i=performance.now();function s(f){const a=performance.now();a-i>r.idle&&e.update(),i=a}return["focus","pointerdown"].forEach(f=>window.addEventListener(f,s)),document.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&e.update()}),e.update(),setInterval(()=>e.update(),r.checks)}function ir(e,r){function i(){e.installing&&e.installing.addEventListener("statechange",function(){this.state==="installed"&&r(e)})}if(e){if(e.waiting)return r(e);e.installing?i():e.addEventListener("updatefound",i)}}function tr(){let e=1;const r=oe([]);function i(a){r.update(n=>[...n,{...a,id:++e}])}function s(a){r.update(n=>n.filter(l=>l.id!==a))}function f(a){const n=y(r).find(l=>l.id==a);s(a),n?.type==="push-notification"&&n.data.options.data?.navigate&&$e(n.data.options.data.navigate,ze.state)}return{subscribe:r.subscribe,add:i,remove:s,onClick:f}}const or=tr(),w=rr("service-worker");function z(e){e&&(w.enabled?w.debug(`enabling logging for service worker, level: ${w.level}`):w.debug(`disabling logging for service worker, level: ${w.level}`),e.postMessage({type:"debug",level:w.level,enabled:w.enabled}))}const ar=180*1e3,sr=1800*1e3;function fr(){const e=oe(void 0);function r(n="active"){i({type:"ping"},n)}function i(n,l="active"){const t=y(e);if(!t)throw new Error("not loaded");if(t.notSupported)throw new Error("not supported");if(t.registering)throw new Error("is registering...");const c=t.registration;if(!c)throw new Error("no registration");if(!c[l])throw new Error(`no registration in state: ${l}`);c[l].postMessage(n)}function s(){w.log("accepting update...");const n=y(e);if(!n)throw new Error("not loaded");if(n.notSupported)throw new Error("not supported");if(n.registering)throw new Error("is registering...");if(n.updateAvailable&&n.registration){const l=n.registration;if(!l)throw new Error("no registration");l.waiting?(w.log("was waiting, skipping..."),l.waiting.postMessage("skipWaiting")):(w.log("was not waiting, should we reload?"),w.error("not waiting..., todo reload?")),w.log("update store"),e.set({notSupported:!1,updateAvailable:!1,registration:n.registration,registering:n.registering})}}function f(){const n=y(e);if(!n)throw new Error("not loaded");if(n.notSupported)throw new Error("not supported");if(n.registering)throw new Error("is registering...");e.set({notSupported:!1,updateAvailable:!1,registration:n.registration,registering:n.registering})}function a(){if(typeof navigator<"u"&&"serviceWorker"in navigator){e.set({notSupported:!1,registering:!0});let n=!1;navigator.serviceWorker.addEventListener("controllerchange",()=>{n||(n=!0,window.location.reload())}),navigator.serviceWorker.onmessage=t=>{t.data&&t.data.type==="notification"&&(console.log(t),or.add({type:"push-notification",data:t.data.notification}))};const l=Qe("/service-worker.js");navigator.serviceWorker.register(l,{type:"classic"}).then(t=>{try{nr(t,{idle:ar,checks:sr})}catch{}e.set({notSupported:!1,updateAvailable:!1,registration:t,registering:!1}),z(t.installing),z(t.waiting),z(t.active),ir(t,()=>{e.set({notSupported:!1,updateAvailable:!0,registration:t,registering:!1})})}).catch(t=>{console.error(t),e.set({registering:!1,notSupported:!1,updateAvailable:!1,registration:void 0,error:{message:"failed to register service-worker",cause:t.message||t}}),w.error("Failed to register service worker",t)})}else typeof window<"u"&&e.set({notSupported:!0})}return{subscribe:e.subscribe,set:e.set,get registration(){const n=y(e);if(n&&"registration"in n)return n.registration},get updateAvailable(){const n=y(e);return n&&"updateAvailable"in n?n.updateAvailable:!1},register:a,pingServideWorker:r,sendMessage:i,skipWaiting:s,skip:f}}function lr(e){if(!e)return{params:{},pathname:""};const r={},i=e.lastIndexOf("#");let s=e;i!==-1&&(s=s.slice(0,i));const f=s.indexOf("?");f!==-1&&s.slice(f+1).split("&").forEach(n=>{const[l,t=""]=n.split("=");r[decodeURIComponent(l)]=t===""?"true":decodeURIComponent(t)});let a=s.slice(0,f)||"";return a&&!a.endsWith("/")&&(a+="/"),{params:r,pathname:a}}function ur(){return typeof window>"u"?{params:{}}:lr(window.location.href)}function cr(e){if(typeof window>"u")return{};const r=window.location.hash,i={},s=r.lastIndexOf("#");return s!==-1&&r.slice(s+1).split("&").forEach(f=>{const[a,n=""]=f.split("=");i[decodeURIComponent(a)]=decodeURIComponent(n)}),i}const mr=fr();cr();const{params:br}=ur();console.log(`VERSION: ${Pe}`);export{Qe as a,Q as b,Er as c,_r as d,hr as e,vr as i,or as n,wr as r,mr as s};
|
|
2
|
-
//# sourceMappingURL=
|
|
1
|
+
import{a2 as H,W as fe,as as R,b3 as U,am as le,aq as ue,aj as V,aS as ce,p as de,b8 as X,b4 as $,ar as O,d as ge,m as pe,ax as K,a3 as ve,j as k,X as Y,ac as he,b6 as we,aa as _e,aA as Ee,V as q,i as me,h as be,aI as Se,b9 as Z,E as ke,D as Ae,aX as ee,aM as re,I as P,b as Te,Z as Ie,aH as Le,ab as Ce,an as Re,g as ne,aR as ie,f as Me,A as Ne,N as ye,ao as We,F as xe,U as De,s as Fe,al as Oe,r as te,ai as y,bm as oe}from"./CRRPBe07.js";import{b as He,r as Ue,a as $e,v as Pe}from"./Dbf0zjW2.js";import{p as ze}from"./CtPQjCBP.js";function vr(e,r){return r}function Ye(e,r,i){for(var s=[],f=r.length,a,n=r.length,l=0;l<f;l++){let E=r[l];re(E,()=>{if(a){if(a.pending.delete(E),a.done.add(E),a.pending.size===0){var g=e.outrogroups;G(e,q(a.done)),g.delete(a),g.size===0&&(e.outrogroups=null)}}else n-=1},!1)}if(n===0){var t=s.length===0&&i!==null;if(t){var c=i,u=c.parentNode;Ie(u),u.append(c),e.items.clear()}G(e,r,!t)}else a={pending:new Set(r),done:new Set},(e.outrogroups??=new Set).add(a)}function G(e,r,i=!0){var s;if(e.pending.size>0){s=new Set;for(const n of e.pending.values())for(const l of n)s.add(e.items.get(l).e)}for(var f=0;f<r.length;f++){var a=r[f];if(s?.has(a)){a.f|=k;const n=document.createDocumentFragment();Le(a,n)}else Ce(r[f],i)}}var J;function hr(e,r,i,s,f,a=null){var n=e,l=new Map,t=(r&ne)!==0;if(t){var c=e;n=R?U(le(c)):c.appendChild(H())}R&&ue();var u=null,E=_e(()=>{var p=i();return Ee(p)?p:p==null?[]:q(p)}),g,m=new Map,b=!0;function M(p){(T.effect.f&Ae)===0&&(T.pending.delete(p),T.fallback=u,Ge(T,g,n,r,s),u!==null&&(g.length===0?(u.f&k)===0?ee(u):(u.f^=k,x(u,null,n)):re(u,()=>{u=null})))}function o(p){T.pending.delete(p)}var d=fe(()=>{g=V(E);var p=g.length;let _=!1;if(R){var D=ce(n)===de;D!==(p===0)&&(n=X(),U(n),$(!1),_=!0)}for(var I=new Set,v=ve,N=we(),L=0;L<p;L+=1){R&&O.nodeType===ge&&O.data===pe&&(n=O,_=!0,$(!1));var S=g[L],F=s(S,L),A=b?null:l.get(F);A?(A.v&&K(A.v,S),A.i&&K(A.i,L),N&&v.unskip_effect(A.e)):(A=qe(l,b?n:J??=H(),S,F,L,f,r,i),b||(A.e.f|=k),l.set(F,A)),I.add(F)}if(p===0&&a&&!u&&(b?u=Y(()=>a(n)):(u=Y(()=>a(J??=H())),u.f|=k)),p>I.size&&he(),R&&p>0&&U(X()),!b)if(m.set(v,I),N){for(const[ae,se]of l)I.has(ae)||v.skip_effect(se.e);v.oncommit(M),v.ondiscard(o)}else M(v);_&&$(!0),V(E)}),T={effect:d,items:l,pending:m,outrogroups:null,fallback:u};b=!1,R&&(n=O)}function W(e){for(;e!==null&&(e.f&Te)===0;)e=e.next;return e}function Ge(e,r,i,s,f){var a=(s&Me)!==0,n=r.length,l=e.items,t=W(e.effect.first),c,u=null,E,g=[],m=[],b,M,o,d;if(a)for(d=0;d<n;d+=1)b=r[d],M=f(b,d),o=l.get(M).e,(o.f&k)===0&&(o.nodes?.a?.measure(),(E??=new Set).add(o));for(d=0;d<n;d+=1){if(b=r[d],M=f(b,d),o=l.get(M).e,e.outrogroups!==null)for(const S of e.outrogroups)S.pending.delete(o),S.done.delete(o);if((o.f&P)!==0&&(ee(o),a&&(o.nodes?.a?.unfix(),(E??=new Set).delete(o))),(o.f&k)!==0)if(o.f^=k,o===t)x(o,null,i);else{var T=u?u.next:t;o===e.effect.last&&(e.effect.last=o.prev),o.prev&&(o.prev.next=o.next),o.next&&(o.next.prev=o.prev),C(e,u,o),C(e,o,T),x(o,T,i),u=o,g=[],m=[],t=W(u.next);continue}if(o!==t){if(c!==void 0&&c.has(o)){if(g.length<m.length){var p=m[0],_;u=p.prev;var D=g[0],I=g[g.length-1];for(_=0;_<g.length;_+=1)x(g[_],p,i);for(_=0;_<m.length;_+=1)c.delete(m[_]);C(e,D.prev,I.next),C(e,u,D),C(e,I,p),t=p,u=I,d-=1,g=[],m=[]}else c.delete(o),x(o,t,i),C(e,o.prev,o.next),C(e,o,u===null?e.effect.first:u.next),C(e,u,o),u=o;continue}for(g=[],m=[];t!==null&&t!==o;)(c??=new Set).add(t),m.push(t),t=W(t.next);if(t===null)continue}(o.f&k)===0&&g.push(o),u=o,t=W(o.next)}if(e.outrogroups!==null){for(const S of e.outrogroups)S.pending.size===0&&(G(e,q(S.done)),e.outrogroups?.delete(S));e.outrogroups.size===0&&(e.outrogroups=null)}if(t!==null||c!==void 0){var v=[];if(c!==void 0)for(o of c)(o.f&P)===0&&v.push(o);for(;t!==null;)(t.f&P)===0&&t!==e.fallback&&v.push(t),t=W(t.next);var N=v.length;if(N>0){var L=(s&ne)!==0&&n===0?i:null;if(a){for(d=0;d<N;d+=1)v[d].nodes?.a?.measure();for(d=0;d<N;d+=1)v[d].nodes?.a?.fix()}Ye(e,v,L)}}a&&ie(()=>{if(E!==void 0)for(o of E)o.nodes?.a?.apply()})}function qe(e,r,i,s,f,a,n,l){var t=(n&me)!==0?(n&be)===0?Se(i,!1,!1):Z(i):null,c=(n&ke)!==0?Z(f):null;return{v:t,i:c,e:Y(()=>(a(r,t??i,c??f,l),()=>{e.delete(s)}))}}function x(e,r,i){if(e.nodes)for(var s=e.nodes.start,f=e.nodes.end,a=r&&(r.f&k)===0?r.nodes.start:i;s!==null;){var n=Re(s);if(a.before(s),s===f)return;s=n}}function C(e,r,i){r===null?e.effect.first=i:r.next=i,i===null?e.effect.last=r:i.prev=r}const Be=Symbol("is custom element"),Ve=Symbol("is html"),Xe=te?"link":"LINK",Ke=te?"progress":"PROGRESS";function wr(e){if(R){var r=!1,i=()=>{if(!r){if(r=!0,e.hasAttribute("value")){var s=e.value;Q(e,"value",null),e.value=s}if(e.hasAttribute("checked")){var f=e.checked;Q(e,"checked",null),e.checked=f}}};e[xe]=i,ie(i),De()}}function _r(e,r){var i=B(e);i.value===(i.value=r??void 0)||e.value===r&&(r!==0||e.nodeName!==Ke)||(e.value=r??"")}function Er(e,r){var i=B(e);i.checked!==(i.checked=r??void 0)&&(e.checked=r)}function Q(e,r,i,s){var f=B(e);R&&(f[r]=e.getAttribute(r),r==="src"||r==="srcset"||r==="href"&&e.nodeName===Xe)||f[r]!==(f[r]=i)&&(r==="loading"&&(e[Fe]=i),i==null?e.removeAttribute(r):typeof i!="string"&&Ze(e).includes(r)?e[r]=i:e.setAttribute(r,i))}function B(e){return e[Ne]??={[Be]:e.nodeName.includes("-"),[Ve]:e.namespaceURI===ye}}var j=new Map;function Ze(e){var r=e.getAttribute("is")||e.nodeName,i=j.get(r);if(i)return i;j.set(r,i=[]);for(var s,f=e,a=Element.prototype;a!==f;){s=Oe(f);for(var n in s)s[n].set&&n!=="innerHTML"&&n!=="textContent"&&n!=="innerText"&&i.push(n);f=We(f)}return i}const Je="";function Qe(...e){if(!e[0].startsWith("/"))throw new Error(`Cannot use \`resolve(...)\` with a non-absolute pathname or route ID (got "${e[0]}"). \`resolve\` is only for internal pathnames and route IDs; external URLs should be used directly.`);return He+Je+Ue(e[0],e[1])}const h=()=>{},je={assert:h,error:h,warn:h,info:h,log:h,debug:h,dir:h,table:h,trace:h,write:h,time:h,timeEnd:h,timeLog:h};function er(){return globalThis?._logFactory}function rr(e,r){const i=er();return i?i(e,{decoration:r?.decoration}):je}function nr(e,r){let i=performance.now();function s(f){const a=performance.now();a-i>r.idle&&e.update(),i=a}return["focus","pointerdown"].forEach(f=>window.addEventListener(f,s)),document.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&e.update()}),e.update(),setInterval(()=>e.update(),r.checks)}function ir(e,r){function i(){e.installing&&e.installing.addEventListener("statechange",function(){this.state==="installed"&&r(e)})}if(e){if(e.waiting)return r(e);e.installing?i():e.addEventListener("updatefound",i)}}function tr(){let e=1;const r=oe([]);function i(a){r.update(n=>[...n,{...a,id:++e}])}function s(a){r.update(n=>n.filter(l=>l.id!==a))}function f(a){const n=y(r).find(l=>l.id==a);s(a),n?.type==="push-notification"&&n.data.options.data?.navigate&&$e(n.data.options.data.navigate,ze.state)}return{subscribe:r.subscribe,add:i,remove:s,onClick:f}}const or=tr(),w=rr("service-worker");function z(e){e&&(w.enabled?w.debug(`enabling logging for service worker, level: ${w.level}`):w.debug(`disabling logging for service worker, level: ${w.level}`),e.postMessage({type:"debug",level:w.level,enabled:w.enabled}))}const ar=180*1e3,sr=1800*1e3;function fr(){const e=oe(void 0);function r(n="active"){i({type:"ping"},n)}function i(n,l="active"){const t=y(e);if(!t)throw new Error("not loaded");if(t.notSupported)throw new Error("not supported");if(t.registering)throw new Error("is registering...");const c=t.registration;if(!c)throw new Error("no registration");if(!c[l])throw new Error(`no registration in state: ${l}`);c[l].postMessage(n)}function s(){w.log("accepting update...");const n=y(e);if(!n)throw new Error("not loaded");if(n.notSupported)throw new Error("not supported");if(n.registering)throw new Error("is registering...");if(n.updateAvailable&&n.registration){const l=n.registration;if(!l)throw new Error("no registration");l.waiting?(w.log("was waiting, skipping..."),l.waiting.postMessage("skipWaiting")):(w.log("was not waiting, should we reload?"),w.error("not waiting..., todo reload?")),w.log("update store"),e.set({notSupported:!1,updateAvailable:!1,registration:n.registration,registering:n.registering})}}function f(){const n=y(e);if(!n)throw new Error("not loaded");if(n.notSupported)throw new Error("not supported");if(n.registering)throw new Error("is registering...");e.set({notSupported:!1,updateAvailable:!1,registration:n.registration,registering:n.registering})}function a(){if(typeof navigator<"u"&&"serviceWorker"in navigator){e.set({notSupported:!1,registering:!0});let n=!1;navigator.serviceWorker.addEventListener("controllerchange",()=>{n||(n=!0,window.location.reload())}),navigator.serviceWorker.onmessage=t=>{t.data&&t.data.type==="notification"&&(console.log(t),or.add({type:"push-notification",data:t.data.notification}))};const l=Qe("/service-worker.js");navigator.serviceWorker.register(l,{type:"classic"}).then(t=>{try{nr(t,{idle:ar,checks:sr})}catch{}e.set({notSupported:!1,updateAvailable:!1,registration:t,registering:!1}),z(t.installing),z(t.waiting),z(t.active),ir(t,()=>{e.set({notSupported:!1,updateAvailable:!0,registration:t,registering:!1})})}).catch(t=>{console.error(t),e.set({registering:!1,notSupported:!1,updateAvailable:!1,registration:void 0,error:{message:"failed to register service-worker",cause:t.message||t}}),w.error("Failed to register service worker",t)})}else typeof window<"u"&&e.set({notSupported:!0})}return{subscribe:e.subscribe,set:e.set,get registration(){const n=y(e);if(n&&"registration"in n)return n.registration},get updateAvailable(){const n=y(e);return n&&"updateAvailable"in n?n.updateAvailable:!1},register:a,pingServideWorker:r,sendMessage:i,skipWaiting:s,skip:f}}function lr(e){if(!e)return{params:{},pathname:""};const r={},i=e.lastIndexOf("#");let s=e;i!==-1&&(s=s.slice(0,i));const f=s.indexOf("?");f!==-1&&s.slice(f+1).split("&").forEach(n=>{const[l,t=""]=n.split("=");r[decodeURIComponent(l)]=t===""?"true":decodeURIComponent(t)});let a=s.slice(0,f)||"";return a&&!a.endsWith("/")&&(a+="/"),{params:r,pathname:a}}function ur(){return typeof window>"u"?{params:{}}:lr(window.location.href)}function cr(e){if(typeof window>"u")return{};const r=window.location.hash,i={},s=r.lastIndexOf("#");return s!==-1&&r.slice(s+1).split("&").forEach(f=>{const[a,n=""]=f.split("=");i[decodeURIComponent(a)]=decodeURIComponent(n)}),i}const mr=fr();cr();const{params:br}=ur();console.log(`VERSION: ${Pe}`);export{Qe as a,Q as b,Er as c,_r as d,hr as e,vr as i,or as n,wr as r,mr as s};
|
|
2
|
+
//# sourceMappingURL=8eypMp_V.js.map
|