nolo-cli 0.54.0-alpha.2 → 0.54.0
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/{_executeModel-ANY4SIAS.js → _executeModel-OPTKYHJA.js} +48 -42
- package/{action-Q4W5JPI5.js → action-ORXWW2ZG.js} +8 -8
- package/{addContentAction-O25HFR37.js → addContentAction-53BZ34AE.js} +8 -7
- package/{addDialogAgentAction-GH7AUPPB.js → addDialogAgentAction-JRYUS54Y.js} +10 -9
- package/{agentDeleteCommand-JWIKNWWI.js → agentDeleteCommand-FJIWU2BS.js} +30 -28
- package/{agentEmailCommands-PL22BEU5.js → agentEmailCommands-CE32L43B.js} +57 -52
- package/{agentListCommands-6NR7AQEK.js → agentListCommands-VJNKULIK.js} +42 -33
- package/{agentMachineCommands-TASPU6OA.js → agentMachineCommands-HCJ3WQXL.js} +30 -28
- package/{agentRecordCommands-Z64TA63M.js → agentRecordCommands-QFWERED4.js} +55 -50
- package/{agentRunCommand-4QJQLPRW.js → agentRunCommand-G3GQMUNN.js} +65 -53
- package/{agentRunControl-4GHHSXFZ.js → agentRunControl-INKFDXDA.js} +3 -1
- package/{agentRuntimeLocal-PCJJ56J2.js → agentRuntimeLocal-K327ELSL.js} +30 -26
- package/{agentSlice-KYLDUSNN.js → agentSlice-ODKF4J6M.js} +8 -8
- package/{agentSuperviseCommands-VB6BUS5H.js → agentSuperviseCommands-5AR3DKNN.js} +2 -2
- package/{appDeleteCommands-WLHMJAVT.js → appDeleteCommands-XUXMFDI4.js} +31 -29
- package/{appDeployCommands-CKON7N2E.js → appDeployCommands-37F4GPCU.js} +31 -29
- package/{appDeployStatusCommands-PXRLDASH.js → appDeployStatusCommands-WSPU7TUK.js} +31 -29
- package/{appGetCommands-RAB5RM4M.js → appGetCommands-YLOBA3EM.js} +31 -29
- package/{appListCommands-GU57FB62.js → appListCommands-UD62R5ME.js} +31 -29
- package/{authCommand-QOPOEYEK.js → authCommand-OK6HLHGS.js} +13 -13
- package/{authCommands-SBQVTD6V.js → authCommands-2DUIUEMT.js} +2 -2
- package/{chatQueueReduxAdapter-5O2WLITN.js → chatQueueReduxAdapter-TV2TUOQS.js} +26 -23
- package/{chunk-7CH6U3FL.js → chunk-2GRGFCF6.js} +2 -4
- package/{chunk-T27IEBNQ.js → chunk-2QDDKFG5.js} +74 -1
- package/{chunk-VULELK4T.js → chunk-2WBFJHQA.js} +4 -26
- package/{chunk-IKTHA3JH.js → chunk-3LKZRP7E.js} +2 -2
- package/{chunk-INXBNYCG.js → chunk-3Y2K5O2R.js} +64 -6
- package/{chunk-VRZIH5JO.js → chunk-3ZTR7ZO4.js} +1 -1
- package/{chunk-GV35EHNA.js → chunk-5FCIPEKT.js} +262 -96
- package/{chunk-RTLJUGQH.js → chunk-5UAYZEXO.js} +2 -2
- package/{chunk-TI5BCZCH.js → chunk-6COJEAYH.js} +32 -101
- package/{chunk-Y7LNKP32.js → chunk-6HDYSFLO.js} +4 -6
- package/chunk-6IGD47IC.js +19 -0
- package/chunk-6YTOJY35.js +352 -0
- package/{chunk-6FGXGFAH.js → chunk-75MSWWUE.js} +1 -1
- package/{chunk-3Z3DXZBD.js → chunk-7FAS3NEF.js} +16 -16
- package/{chunk-AV6KQCM5.js → chunk-7NYDJAQ7.js} +19 -14
- package/{chunk-CVT7L2WZ.js → chunk-A65UV3M5.js} +4 -4
- package/{chunk-7APQB6R6.js → chunk-AUVFJGPC.js} +3 -3
- package/{chunk-H4RYESI6.js → chunk-BBTN4NQD.js} +4 -4
- package/{chunk-757BGY6Y.js → chunk-BG7J6Y5X.js} +1 -1
- package/chunk-BY2FF2C4.js +526 -0
- package/{chunk-FA4SY4F5.js → chunk-BYEJ7K2Z.js} +1 -1
- package/chunk-BYXBJQAS.js +0 -0
- package/{chunk-3AOLVADY.js → chunk-DVINR3PL.js} +1 -1
- package/{chunk-UITMHBVK.js → chunk-EA5OYZVD.js} +1 -1
- package/{chunk-4NN3EK7H.js → chunk-EICIFHVS.js} +1 -1
- package/chunk-EJE33XNR.js +19059 -0
- package/{chunk-6SZ52ORL.js → chunk-FJHMLRDQ.js} +9 -9
- package/{chunk-RU5D3B22.js → chunk-GRFK2XP4.js} +2 -2
- package/{chunk-J3UALFHL.js → chunk-HJTAGT3W.js} +1 -1
- package/{chunk-WL3UOGYO.js → chunk-HPW5MNDQ.js} +38 -98
- package/{chunk-H2G6JXTR.js → chunk-HQUORJTM.js} +1 -1
- package/{chunk-OYNDYVSE.js → chunk-JON2PHYT.js} +1 -1
- package/{chunk-7K5VMB4Q.js → chunk-JXIP6ZWH.js} +7 -7
- package/{chunk-KUUTWU4I.js → chunk-K4NISKOR.js} +46 -8
- package/{chunk-SP3DPVBH.js → chunk-KLIBF3BY.js} +2 -2
- package/chunk-LRGKOI5Y.js +297 -0
- package/{chunk-LN3OQJGG.js → chunk-MLEZPE3U.js} +2 -2
- package/{chunk-FGEYVPPR.js → chunk-MYMBBB6Q.js} +5 -64
- package/{chunk-VRJUIUIY.js → chunk-N4JKMCY3.js} +2 -2
- package/{chunk-U5Z7LFZF.js → chunk-NFLA6GSU.js} +4 -4
- package/{chunk-SVEUG45B.js → chunk-NHRQCXIQ.js} +0 -24
- package/{chunk-56W233KG.js → chunk-NJUQBYFJ.js} +3 -1
- package/{chunk-Q24S4NDF.js → chunk-Q4XZVZPN.js} +1 -1
- package/{chunk-UW4INMD2.js → chunk-RHMDMTDK.js} +2 -2
- package/{chunk-MFI4FGHX.js → chunk-SAJSBPI2.js} +1 -1
- package/{chunk-WHVQA7PJ.js → chunk-SSXTSPSG.js} +27 -6
- package/{chunk-2BWU4ORW.js → chunk-SUEIAK5N.js} +1 -1
- package/{chunk-3QJTD6DO.js → chunk-SVC3GGUA.js} +5 -5
- package/{chunk-QDHZCAH3.js → chunk-SVDMVX4G.js} +118 -2
- package/{chunk-GBADO3SM.js → chunk-SWJGJMTW.js} +1 -1
- package/{chunk-DQLYEGP7.js → chunk-SYYUU7EV.js} +2 -2
- package/{chunk-U2A47SVI.js → chunk-TC6P4NDR.js} +7 -7
- package/{chunk-V4KZGLOI.js → chunk-TR4DXUYX.js} +1983 -447
- package/{chunk-BANYWEYY.js → chunk-TY3ADTX5.js} +1 -1
- package/chunk-UAD2WT54.js +64 -0
- package/{chunk-PAHILFNT.js → chunk-UGBHDMHI.js} +4 -4
- package/{chunk-6FQ2552G.js → chunk-UOWXD4VN.js} +799 -956
- package/{chunk-5WADL4O7.js → chunk-UR66XPVF.js} +3 -3
- package/{chunk-6BYAXNH5.js → chunk-VZMUOPYG.js} +12 -2
- package/{chunk-LA4IDAK7.js → chunk-WQHGJHAL.js} +440 -2981
- package/{chunk-GLGD2JGY.js → chunk-XIJZOCSP.js} +7 -7
- package/{chunk-BJLYCOZK.js → chunk-YBFJQC2M.js} +93 -776
- package/{chunk-MRWGHF56.js → chunk-YDH3FDFQ.js} +12 -356
- package/{chunk-32I5RVMY.js → chunk-YLCUU3WM.js} +3 -3
- package/{chunk-D3JQPONH.js → chunk-YQBXOHE6.js} +1 -1
- package/chunk-ZJ7UHBJS.js +89 -0
- package/{chunk-TNPCQNGQ.js → chunk-ZVOHVJI3.js} +4 -9
- package/contentThunks-KNI6VXLT.js +71 -0
- package/{createAgentAutomationAction-UJLNFFFC.js → createAgentAutomationAction-OK4L33KF.js} +27 -23
- package/{createDialogAction-TJCX6GUE.js → createDialogAction-JDSMY4AY.js} +28 -24
- package/{createPageAction-N3IYABHV.js → createPageAction-T7RA3HCG.js} +29 -24
- package/{dbSlice-D5CNGWPD.js → dbSlice-TVX6SN2T.js} +6 -6
- package/{deleteFile-44TUM34Y.js → deleteFile-JYKRT7C3.js} +3 -3
- package/{dialogCommands-35M6RBAC.js → dialogCommands-UQZYWOOV.js} +32 -30
- package/{dialogSlice-KO7ADD7H.js → dialogSlice-TYW2G7IL.js} +26 -23
- package/{docCreateCommands-VXHZWQ3P.js → docCreateCommands-OA6HZBWO.js} +34 -32
- package/{docDeleteCommands-4WFAJR6A.js → docDeleteCommands-KBB3YQI2.js} +31 -29
- package/{docReadCommands-OYREEFAR.js → docReadCommands-ZLMFVC67.js} +30 -28
- package/{docStore-5BU76DFK.js → docStore-2URPBVCS.js} +8 -33
- package/{docUpdateCommands-A7QERSME.js → docUpdateCommands-HMH5KUON.js} +34 -32
- package/{fetchMessages-KZQVBXKY.js → fetchMessages-DRABNDPZ.js} +3 -3
- package/{getPricing-HAU62AFM.js → getPricing-RFOPUWHY.js} +4 -4
- package/{handleSendMessageAction-OSGQJQ45.js → handleSendMessageAction-GO53TY7U.js} +28 -25
- package/index.js +56 -56
- package/{localDialogRead-NQ33HBSI.js → localDialogRead-PUQKFI73.js} +1 -1
- package/{machineCommands-J43U3TX5.js → machineCommands-RK6L7ZWL.js} +59 -54
- package/{machineWsRunDispatch-Z2Z6STXZ.js → machineWsRunDispatch-3X64DW2Z.js} +54 -49
- package/memberThunks-THZYZFSN.js +638 -0
- package/{models-4QF4BJVY.js → models-JVKUEER5.js} +2 -2
- package/package.json +1 -1
- package/{read-RGNPI5H2.js → read-K4JU4MQC.js} +3 -3
- package/{readDocTool-6ESWKTXD.js → readDocTool-LQGR6FUN.js} +1 -1
- package/{readlineWorkspace-YRPV6JPN.js → readlineWorkspace-XUFJV3RS.js} +604 -263
- package/{removeDialogAgentAction-JYT73FU2.js → removeDialogAgentAction-ECHCFB7N.js} +12 -11
- package/{runAgentClientLoop-5YM5WMAY.js → runAgentClientLoop-24GQ2AW6.js} +46 -40
- package/{setDialogExtraReferencesAction-D564LMYQ.js → setDialogExtraReferencesAction-KCVJNGMB.js} +9 -8
- package/{setPrimaryDialogAgentAction-ACY3BLYA.js → setPrimaryDialogAgentAction-VDOBOMKC.js} +12 -11
- package/{settingSlice-MKI3MNZJ.js → settingSlice-VR2IJSXC.js} +7 -7
- package/{skillDiscovery-GPUDHDTZ.js → skillDiscovery-2QTZINON.js} +3 -3
- package/{spaceCommands-MY26V52L.js → spaceCommands-S5YJJXL7.js} +30 -28
- package/{streamAgentChatTurn-XV5X5TNQ.js → streamAgentChatTurn-QHKP3ABO.js} +77 -64
- package/{switchDialogAgentAction-CJ5H6SAR.js → switchDialogAgentAction-5L4UP7VI.js} +10 -9
- package/{toolApiClient-B2MFXMEG.js → toolApiClient-53U4UDFF.js} +3 -2
- package/{tools-MIMELA2Y.js → tools-SSXSTC3O.js} +37 -32
- package/{tuiSummaryLlmCaller-XJ5BKNNS.js → tuiSummaryLlmCaller-URFJHFC5.js} +17 -15
- package/{updateDialogTitleAction-EIZUSWHR.js → updateDialogTitleAction-YFYAEW3T.js} +28 -24
- package/chunk-6BGAQ3KR.js +0 -7081
- package/chunk-YBV6QJKM.js +0 -441
- package/spaceSlice-JUIXC365.js +0 -127
- package/{chunk-NQ4N4IGO.js → chunk-CS6TCJ7E.js} +3 -3
- package/{chunk-PYKV6FSC.js → chunk-XOJRZUPF.js} +3 -3
|
@@ -4,27 +4,24 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
buildDialogAttachmentPlan,
|
|
6
6
|
extractFileContentIds
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HQUORJTM.js";
|
|
8
8
|
import {
|
|
9
9
|
isOAuthApiKeyRef
|
|
10
10
|
} from "./chunk-YYLHWIW6.js";
|
|
11
|
-
import {
|
|
12
|
-
runLlm
|
|
13
|
-
} from "./chunk-U2A47SVI.js";
|
|
14
11
|
import {
|
|
15
12
|
getApproxPricePerImage
|
|
16
13
|
} from "./chunk-AGGIDPCZ.js";
|
|
14
|
+
import {
|
|
15
|
+
runLlm
|
|
16
|
+
} from "./chunk-TC6P4NDR.js";
|
|
17
17
|
import {
|
|
18
18
|
cleanupCliSessionForDialog
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-YLCUU3WM.js";
|
|
20
20
|
import {
|
|
21
21
|
getActiveDialogAgentId,
|
|
22
22
|
getDialogAgentIds,
|
|
23
23
|
getPrimaryDialogAgentId
|
|
24
24
|
} from "./chunk-5RGU3J7P.js";
|
|
25
|
-
import {
|
|
26
|
-
require_date_fns
|
|
27
|
-
} from "./chunk-M76ECQRD.js";
|
|
28
25
|
import {
|
|
29
26
|
abortActiveControllers,
|
|
30
27
|
addPageReferenceToRuntime,
|
|
@@ -34,12 +31,17 @@ import {
|
|
|
34
31
|
deleteDialogRuntime,
|
|
35
32
|
getActiveDialogKey,
|
|
36
33
|
getDialogRuntimeTokens,
|
|
37
|
-
require_react,
|
|
38
34
|
resetDialogRuntimeSessionState,
|
|
39
35
|
selectCurrentDialogKey,
|
|
40
36
|
setActiveDialogKey,
|
|
41
37
|
setDialogConfigError
|
|
42
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-6YTOJY35.js";
|
|
39
|
+
import {
|
|
40
|
+
require_date_fns
|
|
41
|
+
} from "./chunk-M76ECQRD.js";
|
|
42
|
+
import {
|
|
43
|
+
require_react
|
|
44
|
+
} from "./chunk-YDH3FDFQ.js";
|
|
43
45
|
import {
|
|
44
46
|
DEFAULT_AUTO_EXECUTION_PROFILE,
|
|
45
47
|
DEFAULT_CONTEXT_WINDOW,
|
|
@@ -50,8 +52,10 @@ import {
|
|
|
50
52
|
STREAM_TRUNCATED_FALLBACK_MESSAGE,
|
|
51
53
|
getModelContextWindow,
|
|
52
54
|
getModelInfo,
|
|
55
|
+
readCacheCreationInputTokens,
|
|
56
|
+
readCacheReadInputTokens,
|
|
53
57
|
resolveAutoExecutionProfile
|
|
54
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-K4NISKOR.js";
|
|
55
59
|
import {
|
|
56
60
|
COMPACTION_SUMMARY_SYSTEM_PROMPT,
|
|
57
61
|
buildCompactionMetricsFromPlan,
|
|
@@ -63,26 +67,29 @@ import {
|
|
|
63
67
|
normalizeAssistantContentBuffer,
|
|
64
68
|
planCompression,
|
|
65
69
|
serializeMessageContent
|
|
66
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-BBTN4NQD.js";
|
|
67
71
|
import {
|
|
68
72
|
findModelConfig,
|
|
69
73
|
getModelConfig
|
|
70
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-SVDMVX4G.js";
|
|
71
75
|
import {
|
|
72
76
|
toErrorMessage
|
|
73
77
|
} from "./chunk-HNMXYYJR.js";
|
|
74
78
|
import {
|
|
75
79
|
fetchMessages
|
|
76
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-BYEJ7K2Z.js";
|
|
77
81
|
import {
|
|
82
|
+
PLATFORM_HOSTED_GLM_53_FLASH_BASETEN_PRICE,
|
|
83
|
+
PLATFORM_HOSTED_GLM_53_FLASH_MODEL,
|
|
78
84
|
getPlatformHostedDeepSeekV4Price,
|
|
85
|
+
isPlatformHostedClaudeModel,
|
|
79
86
|
isPlatformHostedDeepSeekV4Model,
|
|
80
87
|
isPlatformHostedImageModel,
|
|
81
88
|
isPlatformHostedOpenAIImageModel
|
|
82
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-HPW5MNDQ.js";
|
|
83
90
|
import {
|
|
84
91
|
nolotusId
|
|
85
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-SVC3GGUA.js";
|
|
86
93
|
import {
|
|
87
94
|
asRecordOrEmpty
|
|
88
95
|
} from "./chunk-KX6YBIHG.js";
|
|
@@ -92,7 +99,7 @@ import {
|
|
|
92
99
|
remove,
|
|
93
100
|
selectById,
|
|
94
101
|
write
|
|
95
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-7NYDJAQ7.js";
|
|
96
103
|
import {
|
|
97
104
|
buildDialogAgentListIndexDeleteOps,
|
|
98
105
|
createDialogMessageKeyAndId,
|
|
@@ -103,7 +110,7 @@ import {
|
|
|
103
110
|
isDialogRecordKey,
|
|
104
111
|
isPageKey,
|
|
105
112
|
isTableMetaKey
|
|
106
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-NHRQCXIQ.js";
|
|
107
114
|
import {
|
|
108
115
|
asOptionalFiniteNumber
|
|
109
116
|
} from "./chunk-WWC7I6TA.js";
|
|
@@ -117,7 +124,7 @@ import {
|
|
|
117
124
|
builtinAgentCatalogEntryById,
|
|
118
125
|
builtinRuntimeFallbackEntries,
|
|
119
126
|
isBuiltinPlatformAgentKey
|
|
120
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-2WBFJHQA.js";
|
|
121
128
|
import {
|
|
122
129
|
extractCustomId,
|
|
123
130
|
extractUserId,
|
|
@@ -134,7 +141,7 @@ import {
|
|
|
134
141
|
parseOwnerUserIdFromDbKey,
|
|
135
142
|
scheduleDeleteReplication,
|
|
136
143
|
selectIdentityUserId
|
|
137
|
-
} from "./chunk-
|
|
144
|
+
} from "./chunk-XOJRZUPF.js";
|
|
138
145
|
import {
|
|
139
146
|
createClientLogger,
|
|
140
147
|
isAbortError
|
|
@@ -143,738 +150,19 @@ import {
|
|
|
143
150
|
isTombstoneRecord,
|
|
144
151
|
shouldReplaceWithNextRecord
|
|
145
152
|
} from "./chunk-GBRG75BQ.js";
|
|
146
|
-
import {
|
|
147
|
-
isRecord
|
|
148
|
-
} from "./chunk-KUG52IAP.js";
|
|
149
153
|
import {
|
|
150
154
|
asTrimmedString
|
|
151
155
|
} from "./chunk-3EUW3WEO.js";
|
|
156
|
+
import {
|
|
157
|
+
isRecord
|
|
158
|
+
} from "./chunk-KUG52IAP.js";
|
|
152
159
|
import {
|
|
153
160
|
asOptionalTrimmedString
|
|
154
161
|
} from "./chunk-G3SUCT4W.js";
|
|
155
162
|
import {
|
|
156
|
-
__commonJS,
|
|
157
163
|
__toESM
|
|
158
164
|
} from "./chunk-4VNS5WPM.js";
|
|
159
165
|
|
|
160
|
-
// node_modules/react-dom/cjs/react-dom.production.js
|
|
161
|
-
var require_react_dom_production = __commonJS({
|
|
162
|
-
"node_modules/react-dom/cjs/react-dom.production.js"(exports) {
|
|
163
|
-
"use strict";
|
|
164
|
-
var React = require_react();
|
|
165
|
-
function formatProdErrorMessage(code) {
|
|
166
|
-
var url = "https://react.dev/errors/" + code;
|
|
167
|
-
if (1 < arguments.length) {
|
|
168
|
-
url += "?args[]=" + encodeURIComponent(arguments[1]);
|
|
169
|
-
for (var i = 2; i < arguments.length; i++)
|
|
170
|
-
url += "&args[]=" + encodeURIComponent(arguments[i]);
|
|
171
|
-
}
|
|
172
|
-
return "Minified React error #" + code + "; visit " + url + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
|
|
173
|
-
}
|
|
174
|
-
function noop() {
|
|
175
|
-
}
|
|
176
|
-
var Internals = {
|
|
177
|
-
d: {
|
|
178
|
-
f: noop,
|
|
179
|
-
r: function() {
|
|
180
|
-
throw Error(formatProdErrorMessage(522));
|
|
181
|
-
},
|
|
182
|
-
D: noop,
|
|
183
|
-
C: noop,
|
|
184
|
-
L: noop,
|
|
185
|
-
m: noop,
|
|
186
|
-
X: noop,
|
|
187
|
-
S: noop,
|
|
188
|
-
M: noop
|
|
189
|
-
},
|
|
190
|
-
p: 0,
|
|
191
|
-
findDOMNode: null
|
|
192
|
-
};
|
|
193
|
-
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
194
|
-
function createPortal$1(children, containerInfo, implementation) {
|
|
195
|
-
var key = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;
|
|
196
|
-
return {
|
|
197
|
-
$$typeof: REACT_PORTAL_TYPE,
|
|
198
|
-
key: null == key ? null : "" + key,
|
|
199
|
-
children,
|
|
200
|
-
containerInfo,
|
|
201
|
-
implementation
|
|
202
|
-
};
|
|
203
|
-
}
|
|
204
|
-
var ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
205
|
-
function getCrossOriginStringAs(as, input) {
|
|
206
|
-
if ("font" === as) return "";
|
|
207
|
-
if ("string" === typeof input)
|
|
208
|
-
return "use-credentials" === input ? input : "";
|
|
209
|
-
}
|
|
210
|
-
exports.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = Internals;
|
|
211
|
-
exports.createPortal = function(children, container) {
|
|
212
|
-
var key = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;
|
|
213
|
-
if (!container || 1 !== container.nodeType && 9 !== container.nodeType && 11 !== container.nodeType)
|
|
214
|
-
throw Error(formatProdErrorMessage(299));
|
|
215
|
-
return createPortal$1(children, container, null, key);
|
|
216
|
-
};
|
|
217
|
-
exports.flushSync = function(fn) {
|
|
218
|
-
var previousTransition = ReactSharedInternals.T, previousUpdatePriority = Internals.p;
|
|
219
|
-
try {
|
|
220
|
-
if (ReactSharedInternals.T = null, Internals.p = 2, fn) return fn();
|
|
221
|
-
} finally {
|
|
222
|
-
ReactSharedInternals.T = previousTransition, Internals.p = previousUpdatePriority, Internals.d.f();
|
|
223
|
-
}
|
|
224
|
-
};
|
|
225
|
-
exports.preconnect = function(href, options) {
|
|
226
|
-
"string" === typeof href && (options ? (options = options.crossOrigin, options = "string" === typeof options ? "use-credentials" === options ? options : "" : void 0) : options = null, Internals.d.C(href, options));
|
|
227
|
-
};
|
|
228
|
-
exports.prefetchDNS = function(href) {
|
|
229
|
-
"string" === typeof href && Internals.d.D(href);
|
|
230
|
-
};
|
|
231
|
-
exports.preinit = function(href, options) {
|
|
232
|
-
if ("string" === typeof href && options && "string" === typeof options.as) {
|
|
233
|
-
var as = options.as, crossOrigin = getCrossOriginStringAs(as, options.crossOrigin), integrity = "string" === typeof options.integrity ? options.integrity : void 0, fetchPriority = "string" === typeof options.fetchPriority ? options.fetchPriority : void 0;
|
|
234
|
-
"style" === as ? Internals.d.S(
|
|
235
|
-
href,
|
|
236
|
-
"string" === typeof options.precedence ? options.precedence : void 0,
|
|
237
|
-
{
|
|
238
|
-
crossOrigin,
|
|
239
|
-
integrity,
|
|
240
|
-
fetchPriority
|
|
241
|
-
}
|
|
242
|
-
) : "script" === as && Internals.d.X(href, {
|
|
243
|
-
crossOrigin,
|
|
244
|
-
integrity,
|
|
245
|
-
fetchPriority,
|
|
246
|
-
nonce: "string" === typeof options.nonce ? options.nonce : void 0
|
|
247
|
-
});
|
|
248
|
-
}
|
|
249
|
-
};
|
|
250
|
-
exports.preinitModule = function(href, options) {
|
|
251
|
-
if ("string" === typeof href)
|
|
252
|
-
if ("object" === typeof options && null !== options) {
|
|
253
|
-
if (null == options.as || "script" === options.as) {
|
|
254
|
-
var crossOrigin = getCrossOriginStringAs(
|
|
255
|
-
options.as,
|
|
256
|
-
options.crossOrigin
|
|
257
|
-
);
|
|
258
|
-
Internals.d.M(href, {
|
|
259
|
-
crossOrigin,
|
|
260
|
-
integrity: "string" === typeof options.integrity ? options.integrity : void 0,
|
|
261
|
-
nonce: "string" === typeof options.nonce ? options.nonce : void 0
|
|
262
|
-
});
|
|
263
|
-
}
|
|
264
|
-
} else null == options && Internals.d.M(href);
|
|
265
|
-
};
|
|
266
|
-
exports.preload = function(href, options) {
|
|
267
|
-
if ("string" === typeof href && "object" === typeof options && null !== options && "string" === typeof options.as) {
|
|
268
|
-
var as = options.as, crossOrigin = getCrossOriginStringAs(as, options.crossOrigin);
|
|
269
|
-
Internals.d.L(href, as, {
|
|
270
|
-
crossOrigin,
|
|
271
|
-
integrity: "string" === typeof options.integrity ? options.integrity : void 0,
|
|
272
|
-
nonce: "string" === typeof options.nonce ? options.nonce : void 0,
|
|
273
|
-
type: "string" === typeof options.type ? options.type : void 0,
|
|
274
|
-
fetchPriority: "string" === typeof options.fetchPriority ? options.fetchPriority : void 0,
|
|
275
|
-
referrerPolicy: "string" === typeof options.referrerPolicy ? options.referrerPolicy : void 0,
|
|
276
|
-
imageSrcSet: "string" === typeof options.imageSrcSet ? options.imageSrcSet : void 0,
|
|
277
|
-
imageSizes: "string" === typeof options.imageSizes ? options.imageSizes : void 0,
|
|
278
|
-
media: "string" === typeof options.media ? options.media : void 0
|
|
279
|
-
});
|
|
280
|
-
}
|
|
281
|
-
};
|
|
282
|
-
exports.preloadModule = function(href, options) {
|
|
283
|
-
if ("string" === typeof href)
|
|
284
|
-
if (options) {
|
|
285
|
-
var crossOrigin = getCrossOriginStringAs(options.as, options.crossOrigin);
|
|
286
|
-
Internals.d.m(href, {
|
|
287
|
-
as: "string" === typeof options.as && "script" !== options.as ? options.as : void 0,
|
|
288
|
-
crossOrigin,
|
|
289
|
-
integrity: "string" === typeof options.integrity ? options.integrity : void 0
|
|
290
|
-
});
|
|
291
|
-
} else Internals.d.m(href);
|
|
292
|
-
};
|
|
293
|
-
exports.requestFormReset = function(form) {
|
|
294
|
-
Internals.d.r(form);
|
|
295
|
-
};
|
|
296
|
-
exports.unstable_batchedUpdates = function(fn, a) {
|
|
297
|
-
return fn(a);
|
|
298
|
-
};
|
|
299
|
-
exports.useFormState = function(action2, initialState2, permalink) {
|
|
300
|
-
return ReactSharedInternals.H.useFormState(action2, initialState2, permalink);
|
|
301
|
-
};
|
|
302
|
-
exports.useFormStatus = function() {
|
|
303
|
-
return ReactSharedInternals.H.useHostTransitionStatus();
|
|
304
|
-
};
|
|
305
|
-
exports.version = "19.2.3";
|
|
306
|
-
}
|
|
307
|
-
});
|
|
308
|
-
|
|
309
|
-
// node_modules/react-dom/cjs/react-dom.development.js
|
|
310
|
-
var require_react_dom_development = __commonJS({
|
|
311
|
-
"node_modules/react-dom/cjs/react-dom.development.js"(exports) {
|
|
312
|
-
"use strict";
|
|
313
|
-
"production" !== process.env.NODE_ENV && function() {
|
|
314
|
-
function noop() {
|
|
315
|
-
}
|
|
316
|
-
function testStringCoercion(value) {
|
|
317
|
-
return "" + value;
|
|
318
|
-
}
|
|
319
|
-
function createPortal$1(children, containerInfo, implementation) {
|
|
320
|
-
var key = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;
|
|
321
|
-
try {
|
|
322
|
-
testStringCoercion(key);
|
|
323
|
-
var JSCompiler_inline_result = false;
|
|
324
|
-
} catch (e) {
|
|
325
|
-
JSCompiler_inline_result = true;
|
|
326
|
-
}
|
|
327
|
-
JSCompiler_inline_result && (console.error(
|
|
328
|
-
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
329
|
-
"function" === typeof Symbol && Symbol.toStringTag && key[Symbol.toStringTag] || key.constructor.name || "Object"
|
|
330
|
-
), testStringCoercion(key));
|
|
331
|
-
return {
|
|
332
|
-
$$typeof: REACT_PORTAL_TYPE,
|
|
333
|
-
key: null == key ? null : "" + key,
|
|
334
|
-
children,
|
|
335
|
-
containerInfo,
|
|
336
|
-
implementation
|
|
337
|
-
};
|
|
338
|
-
}
|
|
339
|
-
function getCrossOriginStringAs(as, input) {
|
|
340
|
-
if ("font" === as) return "";
|
|
341
|
-
if ("string" === typeof input)
|
|
342
|
-
return "use-credentials" === input ? input : "";
|
|
343
|
-
}
|
|
344
|
-
function getValueDescriptorExpectingObjectForWarning(thing) {
|
|
345
|
-
return null === thing ? "`null`" : void 0 === thing ? "`undefined`" : "" === thing ? "an empty string" : 'something with type "' + typeof thing + '"';
|
|
346
|
-
}
|
|
347
|
-
function getValueDescriptorExpectingEnumForWarning(thing) {
|
|
348
|
-
return null === thing ? "`null`" : void 0 === thing ? "`undefined`" : "" === thing ? "an empty string" : "string" === typeof thing ? JSON.stringify(thing) : "number" === typeof thing ? "`" + thing + "`" : 'something with type "' + typeof thing + '"';
|
|
349
|
-
}
|
|
350
|
-
function resolveDispatcher() {
|
|
351
|
-
var dispatcher = ReactSharedInternals.H;
|
|
352
|
-
null === dispatcher && console.error(
|
|
353
|
-
"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."
|
|
354
|
-
);
|
|
355
|
-
return dispatcher;
|
|
356
|
-
}
|
|
357
|
-
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
358
|
-
var React = require_react(), Internals = {
|
|
359
|
-
d: {
|
|
360
|
-
f: noop,
|
|
361
|
-
r: function() {
|
|
362
|
-
throw Error(
|
|
363
|
-
"Invalid form element. requestFormReset must be passed a form that was rendered by React."
|
|
364
|
-
);
|
|
365
|
-
},
|
|
366
|
-
D: noop,
|
|
367
|
-
C: noop,
|
|
368
|
-
L: noop,
|
|
369
|
-
m: noop,
|
|
370
|
-
X: noop,
|
|
371
|
-
S: noop,
|
|
372
|
-
M: noop
|
|
373
|
-
},
|
|
374
|
-
p: 0,
|
|
375
|
-
findDOMNode: null
|
|
376
|
-
}, REACT_PORTAL_TYPE = Symbol.for("react.portal"), ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
377
|
-
"function" === typeof Map && null != Map.prototype && "function" === typeof Map.prototype.forEach && "function" === typeof Set && null != Set.prototype && "function" === typeof Set.prototype.clear && "function" === typeof Set.prototype.forEach || console.error(
|
|
378
|
-
"React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"
|
|
379
|
-
);
|
|
380
|
-
exports.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = Internals;
|
|
381
|
-
exports.createPortal = function(children, container) {
|
|
382
|
-
var key = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;
|
|
383
|
-
if (!container || 1 !== container.nodeType && 9 !== container.nodeType && 11 !== container.nodeType)
|
|
384
|
-
throw Error("Target container is not a DOM element.");
|
|
385
|
-
return createPortal$1(children, container, null, key);
|
|
386
|
-
};
|
|
387
|
-
exports.flushSync = function(fn) {
|
|
388
|
-
var previousTransition = ReactSharedInternals.T, previousUpdatePriority = Internals.p;
|
|
389
|
-
try {
|
|
390
|
-
if (ReactSharedInternals.T = null, Internals.p = 2, fn)
|
|
391
|
-
return fn();
|
|
392
|
-
} finally {
|
|
393
|
-
ReactSharedInternals.T = previousTransition, Internals.p = previousUpdatePriority, Internals.d.f() && console.error(
|
|
394
|
-
"flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."
|
|
395
|
-
);
|
|
396
|
-
}
|
|
397
|
-
};
|
|
398
|
-
exports.preconnect = function(href, options) {
|
|
399
|
-
"string" === typeof href && href ? null != options && "object" !== typeof options ? console.error(
|
|
400
|
-
"ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",
|
|
401
|
-
getValueDescriptorExpectingEnumForWarning(options)
|
|
402
|
-
) : null != options && "string" !== typeof options.crossOrigin && console.error(
|
|
403
|
-
"ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",
|
|
404
|
-
getValueDescriptorExpectingObjectForWarning(options.crossOrigin)
|
|
405
|
-
) : console.error(
|
|
406
|
-
"ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
407
|
-
getValueDescriptorExpectingObjectForWarning(href)
|
|
408
|
-
);
|
|
409
|
-
"string" === typeof href && (options ? (options = options.crossOrigin, options = "string" === typeof options ? "use-credentials" === options ? options : "" : void 0) : options = null, Internals.d.C(href, options));
|
|
410
|
-
};
|
|
411
|
-
exports.prefetchDNS = function(href) {
|
|
412
|
-
if ("string" !== typeof href || !href)
|
|
413
|
-
console.error(
|
|
414
|
-
"ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
415
|
-
getValueDescriptorExpectingObjectForWarning(href)
|
|
416
|
-
);
|
|
417
|
-
else if (1 < arguments.length) {
|
|
418
|
-
var options = arguments[1];
|
|
419
|
-
"object" === typeof options && options.hasOwnProperty("crossOrigin") ? console.error(
|
|
420
|
-
"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
|
|
421
|
-
getValueDescriptorExpectingEnumForWarning(options)
|
|
422
|
-
) : console.error(
|
|
423
|
-
"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
|
|
424
|
-
getValueDescriptorExpectingEnumForWarning(options)
|
|
425
|
-
);
|
|
426
|
-
}
|
|
427
|
-
"string" === typeof href && Internals.d.D(href);
|
|
428
|
-
};
|
|
429
|
-
exports.preinit = function(href, options) {
|
|
430
|
-
"string" === typeof href && href ? null == options || "object" !== typeof options ? console.error(
|
|
431
|
-
"ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",
|
|
432
|
-
getValueDescriptorExpectingEnumForWarning(options)
|
|
433
|
-
) : "style" !== options.as && "script" !== options.as && console.error(
|
|
434
|
-
'ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',
|
|
435
|
-
getValueDescriptorExpectingEnumForWarning(options.as)
|
|
436
|
-
) : console.error(
|
|
437
|
-
"ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
438
|
-
getValueDescriptorExpectingObjectForWarning(href)
|
|
439
|
-
);
|
|
440
|
-
if ("string" === typeof href && options && "string" === typeof options.as) {
|
|
441
|
-
var as = options.as, crossOrigin = getCrossOriginStringAs(as, options.crossOrigin), integrity = "string" === typeof options.integrity ? options.integrity : void 0, fetchPriority = "string" === typeof options.fetchPriority ? options.fetchPriority : void 0;
|
|
442
|
-
"style" === as ? Internals.d.S(
|
|
443
|
-
href,
|
|
444
|
-
"string" === typeof options.precedence ? options.precedence : void 0,
|
|
445
|
-
{
|
|
446
|
-
crossOrigin,
|
|
447
|
-
integrity,
|
|
448
|
-
fetchPriority
|
|
449
|
-
}
|
|
450
|
-
) : "script" === as && Internals.d.X(href, {
|
|
451
|
-
crossOrigin,
|
|
452
|
-
integrity,
|
|
453
|
-
fetchPriority,
|
|
454
|
-
nonce: "string" === typeof options.nonce ? options.nonce : void 0
|
|
455
|
-
});
|
|
456
|
-
}
|
|
457
|
-
};
|
|
458
|
-
exports.preinitModule = function(href, options) {
|
|
459
|
-
var encountered = "";
|
|
460
|
-
"string" === typeof href && href || (encountered += " The `href` argument encountered was " + getValueDescriptorExpectingObjectForWarning(href) + ".");
|
|
461
|
-
void 0 !== options && "object" !== typeof options ? encountered += " The `options` argument encountered was " + getValueDescriptorExpectingObjectForWarning(options) + "." : options && "as" in options && "script" !== options.as && (encountered += " The `as` option encountered was " + getValueDescriptorExpectingEnumForWarning(options.as) + ".");
|
|
462
|
-
if (encountered)
|
|
463
|
-
console.error(
|
|
464
|
-
"ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",
|
|
465
|
-
encountered
|
|
466
|
-
);
|
|
467
|
-
else
|
|
468
|
-
switch (encountered = options && "string" === typeof options.as ? options.as : "script", encountered) {
|
|
469
|
-
case "script":
|
|
470
|
-
break;
|
|
471
|
-
default:
|
|
472
|
-
encountered = getValueDescriptorExpectingEnumForWarning(encountered), console.error(
|
|
473
|
-
'ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',
|
|
474
|
-
encountered,
|
|
475
|
-
href
|
|
476
|
-
);
|
|
477
|
-
}
|
|
478
|
-
if ("string" === typeof href)
|
|
479
|
-
if ("object" === typeof options && null !== options) {
|
|
480
|
-
if (null == options.as || "script" === options.as)
|
|
481
|
-
encountered = getCrossOriginStringAs(
|
|
482
|
-
options.as,
|
|
483
|
-
options.crossOrigin
|
|
484
|
-
), Internals.d.M(href, {
|
|
485
|
-
crossOrigin: encountered,
|
|
486
|
-
integrity: "string" === typeof options.integrity ? options.integrity : void 0,
|
|
487
|
-
nonce: "string" === typeof options.nonce ? options.nonce : void 0
|
|
488
|
-
});
|
|
489
|
-
} else null == options && Internals.d.M(href);
|
|
490
|
-
};
|
|
491
|
-
exports.preload = function(href, options) {
|
|
492
|
-
var encountered = "";
|
|
493
|
-
"string" === typeof href && href || (encountered += " The `href` argument encountered was " + getValueDescriptorExpectingObjectForWarning(href) + ".");
|
|
494
|
-
null == options || "object" !== typeof options ? encountered += " The `options` argument encountered was " + getValueDescriptorExpectingObjectForWarning(options) + "." : "string" === typeof options.as && options.as || (encountered += " The `as` option encountered was " + getValueDescriptorExpectingObjectForWarning(options.as) + ".");
|
|
495
|
-
encountered && console.error(
|
|
496
|
-
'ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',
|
|
497
|
-
encountered
|
|
498
|
-
);
|
|
499
|
-
if ("string" === typeof href && "object" === typeof options && null !== options && "string" === typeof options.as) {
|
|
500
|
-
encountered = options.as;
|
|
501
|
-
var crossOrigin = getCrossOriginStringAs(
|
|
502
|
-
encountered,
|
|
503
|
-
options.crossOrigin
|
|
504
|
-
);
|
|
505
|
-
Internals.d.L(href, encountered, {
|
|
506
|
-
crossOrigin,
|
|
507
|
-
integrity: "string" === typeof options.integrity ? options.integrity : void 0,
|
|
508
|
-
nonce: "string" === typeof options.nonce ? options.nonce : void 0,
|
|
509
|
-
type: "string" === typeof options.type ? options.type : void 0,
|
|
510
|
-
fetchPriority: "string" === typeof options.fetchPriority ? options.fetchPriority : void 0,
|
|
511
|
-
referrerPolicy: "string" === typeof options.referrerPolicy ? options.referrerPolicy : void 0,
|
|
512
|
-
imageSrcSet: "string" === typeof options.imageSrcSet ? options.imageSrcSet : void 0,
|
|
513
|
-
imageSizes: "string" === typeof options.imageSizes ? options.imageSizes : void 0,
|
|
514
|
-
media: "string" === typeof options.media ? options.media : void 0
|
|
515
|
-
});
|
|
516
|
-
}
|
|
517
|
-
};
|
|
518
|
-
exports.preloadModule = function(href, options) {
|
|
519
|
-
var encountered = "";
|
|
520
|
-
"string" === typeof href && href || (encountered += " The `href` argument encountered was " + getValueDescriptorExpectingObjectForWarning(href) + ".");
|
|
521
|
-
void 0 !== options && "object" !== typeof options ? encountered += " The `options` argument encountered was " + getValueDescriptorExpectingObjectForWarning(options) + "." : options && "as" in options && "string" !== typeof options.as && (encountered += " The `as` option encountered was " + getValueDescriptorExpectingObjectForWarning(options.as) + ".");
|
|
522
|
-
encountered && console.error(
|
|
523
|
-
'ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',
|
|
524
|
-
encountered
|
|
525
|
-
);
|
|
526
|
-
"string" === typeof href && (options ? (encountered = getCrossOriginStringAs(
|
|
527
|
-
options.as,
|
|
528
|
-
options.crossOrigin
|
|
529
|
-
), Internals.d.m(href, {
|
|
530
|
-
as: "string" === typeof options.as && "script" !== options.as ? options.as : void 0,
|
|
531
|
-
crossOrigin: encountered,
|
|
532
|
-
integrity: "string" === typeof options.integrity ? options.integrity : void 0
|
|
533
|
-
})) : Internals.d.m(href));
|
|
534
|
-
};
|
|
535
|
-
exports.requestFormReset = function(form) {
|
|
536
|
-
Internals.d.r(form);
|
|
537
|
-
};
|
|
538
|
-
exports.unstable_batchedUpdates = function(fn, a) {
|
|
539
|
-
return fn(a);
|
|
540
|
-
};
|
|
541
|
-
exports.useFormState = function(action2, initialState2, permalink) {
|
|
542
|
-
return resolveDispatcher().useFormState(action2, initialState2, permalink);
|
|
543
|
-
};
|
|
544
|
-
exports.useFormStatus = function() {
|
|
545
|
-
return resolveDispatcher().useHostTransitionStatus();
|
|
546
|
-
};
|
|
547
|
-
exports.version = "19.2.3";
|
|
548
|
-
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
549
|
-
}();
|
|
550
|
-
}
|
|
551
|
-
});
|
|
552
|
-
|
|
553
|
-
// node_modules/react-dom/index.js
|
|
554
|
-
var require_react_dom = __commonJS({
|
|
555
|
-
"node_modules/react-dom/index.js"(exports, module) {
|
|
556
|
-
"use strict";
|
|
557
|
-
function checkDCE() {
|
|
558
|
-
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === "undefined" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== "function") {
|
|
559
|
-
return;
|
|
560
|
-
}
|
|
561
|
-
if (process.env.NODE_ENV !== "production") {
|
|
562
|
-
throw new Error("^_^");
|
|
563
|
-
}
|
|
564
|
-
try {
|
|
565
|
-
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
|
|
566
|
-
} catch (err) {
|
|
567
|
-
console.error(err);
|
|
568
|
-
}
|
|
569
|
-
}
|
|
570
|
-
if (process.env.NODE_ENV === "production") {
|
|
571
|
-
checkDCE();
|
|
572
|
-
module.exports = require_react_dom_production();
|
|
573
|
-
} else {
|
|
574
|
-
module.exports = require_react_dom_development();
|
|
575
|
-
}
|
|
576
|
-
}
|
|
577
|
-
});
|
|
578
|
-
|
|
579
|
-
// node_modules/react/cjs/react-jsx-runtime.production.js
|
|
580
|
-
var require_react_jsx_runtime_production = __commonJS({
|
|
581
|
-
"node_modules/react/cjs/react-jsx-runtime.production.js"(exports) {
|
|
582
|
-
"use strict";
|
|
583
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
|
|
584
|
-
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
585
|
-
function jsxProd(type, config, maybeKey) {
|
|
586
|
-
var key = null;
|
|
587
|
-
void 0 !== maybeKey && (key = "" + maybeKey);
|
|
588
|
-
void 0 !== config.key && (key = "" + config.key);
|
|
589
|
-
if ("key" in config) {
|
|
590
|
-
maybeKey = {};
|
|
591
|
-
for (var propName in config)
|
|
592
|
-
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
593
|
-
} else maybeKey = config;
|
|
594
|
-
config = maybeKey.ref;
|
|
595
|
-
return {
|
|
596
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
597
|
-
type,
|
|
598
|
-
key,
|
|
599
|
-
ref: void 0 !== config ? config : null,
|
|
600
|
-
props: maybeKey
|
|
601
|
-
};
|
|
602
|
-
}
|
|
603
|
-
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
604
|
-
exports.jsx = jsxProd;
|
|
605
|
-
exports.jsxs = jsxProd;
|
|
606
|
-
}
|
|
607
|
-
});
|
|
608
|
-
|
|
609
|
-
// node_modules/react/cjs/react-jsx-runtime.development.js
|
|
610
|
-
var require_react_jsx_runtime_development = __commonJS({
|
|
611
|
-
"node_modules/react/cjs/react-jsx-runtime.development.js"(exports) {
|
|
612
|
-
"use strict";
|
|
613
|
-
"production" !== process.env.NODE_ENV && function() {
|
|
614
|
-
function getComponentNameFromType(type) {
|
|
615
|
-
if (null == type) return null;
|
|
616
|
-
if ("function" === typeof type)
|
|
617
|
-
return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
|
|
618
|
-
if ("string" === typeof type) return type;
|
|
619
|
-
switch (type) {
|
|
620
|
-
case REACT_FRAGMENT_TYPE:
|
|
621
|
-
return "Fragment";
|
|
622
|
-
case REACT_PROFILER_TYPE:
|
|
623
|
-
return "Profiler";
|
|
624
|
-
case REACT_STRICT_MODE_TYPE:
|
|
625
|
-
return "StrictMode";
|
|
626
|
-
case REACT_SUSPENSE_TYPE:
|
|
627
|
-
return "Suspense";
|
|
628
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
629
|
-
return "SuspenseList";
|
|
630
|
-
case REACT_ACTIVITY_TYPE:
|
|
631
|
-
return "Activity";
|
|
632
|
-
}
|
|
633
|
-
if ("object" === typeof type)
|
|
634
|
-
switch ("number" === typeof type.tag && console.error(
|
|
635
|
-
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
636
|
-
), type.$$typeof) {
|
|
637
|
-
case REACT_PORTAL_TYPE:
|
|
638
|
-
return "Portal";
|
|
639
|
-
case REACT_CONTEXT_TYPE:
|
|
640
|
-
return type.displayName || "Context";
|
|
641
|
-
case REACT_CONSUMER_TYPE:
|
|
642
|
-
return (type._context.displayName || "Context") + ".Consumer";
|
|
643
|
-
case REACT_FORWARD_REF_TYPE:
|
|
644
|
-
var innerType = type.render;
|
|
645
|
-
type = type.displayName;
|
|
646
|
-
type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
|
|
647
|
-
return type;
|
|
648
|
-
case REACT_MEMO_TYPE:
|
|
649
|
-
return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
|
|
650
|
-
case REACT_LAZY_TYPE:
|
|
651
|
-
innerType = type._payload;
|
|
652
|
-
type = type._init;
|
|
653
|
-
try {
|
|
654
|
-
return getComponentNameFromType(type(innerType));
|
|
655
|
-
} catch (x) {
|
|
656
|
-
}
|
|
657
|
-
}
|
|
658
|
-
return null;
|
|
659
|
-
}
|
|
660
|
-
function testStringCoercion(value) {
|
|
661
|
-
return "" + value;
|
|
662
|
-
}
|
|
663
|
-
function checkKeyStringCoercion(value) {
|
|
664
|
-
try {
|
|
665
|
-
testStringCoercion(value);
|
|
666
|
-
var JSCompiler_inline_result = false;
|
|
667
|
-
} catch (e) {
|
|
668
|
-
JSCompiler_inline_result = true;
|
|
669
|
-
}
|
|
670
|
-
if (JSCompiler_inline_result) {
|
|
671
|
-
JSCompiler_inline_result = console;
|
|
672
|
-
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
|
673
|
-
var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
674
|
-
JSCompiler_temp_const.call(
|
|
675
|
-
JSCompiler_inline_result,
|
|
676
|
-
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
677
|
-
JSCompiler_inline_result$jscomp$0
|
|
678
|
-
);
|
|
679
|
-
return testStringCoercion(value);
|
|
680
|
-
}
|
|
681
|
-
}
|
|
682
|
-
function getTaskName(type) {
|
|
683
|
-
if (type === REACT_FRAGMENT_TYPE) return "<>";
|
|
684
|
-
if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
|
|
685
|
-
return "<...>";
|
|
686
|
-
try {
|
|
687
|
-
var name = getComponentNameFromType(type);
|
|
688
|
-
return name ? "<" + name + ">" : "<...>";
|
|
689
|
-
} catch (x) {
|
|
690
|
-
return "<...>";
|
|
691
|
-
}
|
|
692
|
-
}
|
|
693
|
-
function getOwner() {
|
|
694
|
-
var dispatcher = ReactSharedInternals.A;
|
|
695
|
-
return null === dispatcher ? null : dispatcher.getOwner();
|
|
696
|
-
}
|
|
697
|
-
function UnknownOwner() {
|
|
698
|
-
return Error("react-stack-top-frame");
|
|
699
|
-
}
|
|
700
|
-
function hasValidKey(config) {
|
|
701
|
-
if (hasOwnProperty.call(config, "key")) {
|
|
702
|
-
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
703
|
-
if (getter && getter.isReactWarning) return false;
|
|
704
|
-
}
|
|
705
|
-
return void 0 !== config.key;
|
|
706
|
-
}
|
|
707
|
-
function defineKeyPropWarningGetter(props, displayName) {
|
|
708
|
-
function warnAboutAccessingKey() {
|
|
709
|
-
specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
|
|
710
|
-
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
711
|
-
displayName
|
|
712
|
-
));
|
|
713
|
-
}
|
|
714
|
-
warnAboutAccessingKey.isReactWarning = true;
|
|
715
|
-
Object.defineProperty(props, "key", {
|
|
716
|
-
get: warnAboutAccessingKey,
|
|
717
|
-
configurable: true
|
|
718
|
-
});
|
|
719
|
-
}
|
|
720
|
-
function elementRefGetterWithDeprecationWarning() {
|
|
721
|
-
var componentName = getComponentNameFromType(this.type);
|
|
722
|
-
didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
|
|
723
|
-
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
724
|
-
));
|
|
725
|
-
componentName = this.props.ref;
|
|
726
|
-
return void 0 !== componentName ? componentName : null;
|
|
727
|
-
}
|
|
728
|
-
function ReactElement(type, key, props, owner, debugStack, debugTask) {
|
|
729
|
-
var refProp = props.ref;
|
|
730
|
-
type = {
|
|
731
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
732
|
-
type,
|
|
733
|
-
key,
|
|
734
|
-
props,
|
|
735
|
-
_owner: owner
|
|
736
|
-
};
|
|
737
|
-
null !== (void 0 !== refProp ? refProp : null) ? Object.defineProperty(type, "ref", {
|
|
738
|
-
enumerable: false,
|
|
739
|
-
get: elementRefGetterWithDeprecationWarning
|
|
740
|
-
}) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
|
|
741
|
-
type._store = {};
|
|
742
|
-
Object.defineProperty(type._store, "validated", {
|
|
743
|
-
configurable: false,
|
|
744
|
-
enumerable: false,
|
|
745
|
-
writable: true,
|
|
746
|
-
value: 0
|
|
747
|
-
});
|
|
748
|
-
Object.defineProperty(type, "_debugInfo", {
|
|
749
|
-
configurable: false,
|
|
750
|
-
enumerable: false,
|
|
751
|
-
writable: true,
|
|
752
|
-
value: null
|
|
753
|
-
});
|
|
754
|
-
Object.defineProperty(type, "_debugStack", {
|
|
755
|
-
configurable: false,
|
|
756
|
-
enumerable: false,
|
|
757
|
-
writable: true,
|
|
758
|
-
value: debugStack
|
|
759
|
-
});
|
|
760
|
-
Object.defineProperty(type, "_debugTask", {
|
|
761
|
-
configurable: false,
|
|
762
|
-
enumerable: false,
|
|
763
|
-
writable: true,
|
|
764
|
-
value: debugTask
|
|
765
|
-
});
|
|
766
|
-
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
767
|
-
return type;
|
|
768
|
-
}
|
|
769
|
-
function jsxDEVImpl(type, config, maybeKey, isStaticChildren, debugStack, debugTask) {
|
|
770
|
-
var children = config.children;
|
|
771
|
-
if (void 0 !== children)
|
|
772
|
-
if (isStaticChildren)
|
|
773
|
-
if (isArrayImpl(children)) {
|
|
774
|
-
for (isStaticChildren = 0; isStaticChildren < children.length; isStaticChildren++)
|
|
775
|
-
validateChildKeys(children[isStaticChildren]);
|
|
776
|
-
Object.freeze && Object.freeze(children);
|
|
777
|
-
} else
|
|
778
|
-
console.error(
|
|
779
|
-
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
780
|
-
);
|
|
781
|
-
else validateChildKeys(children);
|
|
782
|
-
if (hasOwnProperty.call(config, "key")) {
|
|
783
|
-
children = getComponentNameFromType(type);
|
|
784
|
-
var keys = Object.keys(config).filter(function(k) {
|
|
785
|
-
return "key" !== k;
|
|
786
|
-
});
|
|
787
|
-
isStaticChildren = 0 < keys.length ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
788
|
-
didWarnAboutKeySpread[children + isStaticChildren] || (keys = 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
789
|
-
'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',
|
|
790
|
-
isStaticChildren,
|
|
791
|
-
children,
|
|
792
|
-
keys,
|
|
793
|
-
children
|
|
794
|
-
), didWarnAboutKeySpread[children + isStaticChildren] = true);
|
|
795
|
-
}
|
|
796
|
-
children = null;
|
|
797
|
-
void 0 !== maybeKey && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
|
|
798
|
-
hasValidKey(config) && (checkKeyStringCoercion(config.key), children = "" + config.key);
|
|
799
|
-
if ("key" in config) {
|
|
800
|
-
maybeKey = {};
|
|
801
|
-
for (var propName in config)
|
|
802
|
-
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
803
|
-
} else maybeKey = config;
|
|
804
|
-
children && defineKeyPropWarningGetter(
|
|
805
|
-
maybeKey,
|
|
806
|
-
"function" === typeof type ? type.displayName || type.name || "Unknown" : type
|
|
807
|
-
);
|
|
808
|
-
return ReactElement(
|
|
809
|
-
type,
|
|
810
|
-
children,
|
|
811
|
-
maybeKey,
|
|
812
|
-
getOwner(),
|
|
813
|
-
debugStack,
|
|
814
|
-
debugTask
|
|
815
|
-
);
|
|
816
|
-
}
|
|
817
|
-
function validateChildKeys(node) {
|
|
818
|
-
isValidElement(node) ? node._store && (node._store.validated = 1) : "object" === typeof node && null !== node && node.$$typeof === REACT_LAZY_TYPE && ("fulfilled" === node._payload.status ? isValidElement(node._payload.value) && node._payload.value._store && (node._payload.value._store.validated = 1) : node._store && (node._store.validated = 1));
|
|
819
|
-
}
|
|
820
|
-
function isValidElement(object) {
|
|
821
|
-
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
822
|
-
}
|
|
823
|
-
var React = require_react(), REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
|
|
824
|
-
return null;
|
|
825
|
-
};
|
|
826
|
-
React = {
|
|
827
|
-
react_stack_bottom_frame: function(callStackForError) {
|
|
828
|
-
return callStackForError();
|
|
829
|
-
}
|
|
830
|
-
};
|
|
831
|
-
var specialPropKeyWarningShown;
|
|
832
|
-
var didWarnAboutElementRef = {};
|
|
833
|
-
var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(
|
|
834
|
-
React,
|
|
835
|
-
UnknownOwner
|
|
836
|
-
)();
|
|
837
|
-
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
838
|
-
var didWarnAboutKeySpread = {};
|
|
839
|
-
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
840
|
-
exports.jsx = function(type, config, maybeKey) {
|
|
841
|
-
var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
842
|
-
return jsxDEVImpl(
|
|
843
|
-
type,
|
|
844
|
-
config,
|
|
845
|
-
maybeKey,
|
|
846
|
-
false,
|
|
847
|
-
trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
|
848
|
-
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
849
|
-
);
|
|
850
|
-
};
|
|
851
|
-
exports.jsxs = function(type, config, maybeKey) {
|
|
852
|
-
var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
853
|
-
return jsxDEVImpl(
|
|
854
|
-
type,
|
|
855
|
-
config,
|
|
856
|
-
maybeKey,
|
|
857
|
-
true,
|
|
858
|
-
trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
|
859
|
-
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
860
|
-
);
|
|
861
|
-
};
|
|
862
|
-
}();
|
|
863
|
-
}
|
|
864
|
-
});
|
|
865
|
-
|
|
866
|
-
// node_modules/react/jsx-runtime.js
|
|
867
|
-
var require_jsx_runtime = __commonJS({
|
|
868
|
-
"node_modules/react/jsx-runtime.js"(exports, module) {
|
|
869
|
-
"use strict";
|
|
870
|
-
if (process.env.NODE_ENV === "production") {
|
|
871
|
-
module.exports = require_react_jsx_runtime_production();
|
|
872
|
-
} else {
|
|
873
|
-
module.exports = require_react_jsx_runtime_development();
|
|
874
|
-
}
|
|
875
|
-
}
|
|
876
|
-
});
|
|
877
|
-
|
|
878
166
|
// packages/chat/dialog/actions/addReferenceKeysAction.ts
|
|
879
167
|
var extractReferenceKeys = (content) => {
|
|
880
168
|
const keys = /* @__PURE__ */ new Set();
|
|
@@ -3584,7 +2872,7 @@ var messageSlice = createSliceWithThunks({
|
|
|
3584
2872
|
runtimeOptions: args.runtimeOptions
|
|
3585
2873
|
});
|
|
3586
2874
|
if (agentKeyToUse) {
|
|
3587
|
-
const { streamAgentChatTurn } = await import("./agentSlice-
|
|
2875
|
+
const { streamAgentChatTurn } = await import("./agentSlice-ODKF4J6M.js");
|
|
3588
2876
|
await dispatch(
|
|
3589
2877
|
streamAgentChatTurn({
|
|
3590
2878
|
agentKey: agentKeyToUse,
|
|
@@ -3649,11 +2937,11 @@ var messageSlice_default = messageSlice.reducer;
|
|
|
3649
2937
|
var import_date_fns = __toESM(require_date_fns());
|
|
3650
2938
|
import { ulid } from "ulid";
|
|
3651
2939
|
|
|
3652
|
-
// packages/render/web/ui/
|
|
3653
|
-
var import_react2 = __toESM(require_react(), 1);
|
|
3654
|
-
var import_react_dom = __toESM(require_react_dom(), 1);
|
|
3655
|
-
var import_jsx_runtime = __toESM(require_jsx_runtime(), 1);
|
|
2940
|
+
// packages/render/web/ui/toastStore.ts
|
|
3656
2941
|
var EXIT_MS = 320;
|
|
2942
|
+
var raf = typeof globalThis.requestAnimationFrame === "function" ? (cb) => globalThis.requestAnimationFrame(cb) : (cb) => {
|
|
2943
|
+
setTimeout(cb, 16);
|
|
2944
|
+
};
|
|
3657
2945
|
var ToastStore = class {
|
|
3658
2946
|
toasts = [];
|
|
3659
2947
|
listeners = /* @__PURE__ */ new Set();
|
|
@@ -3669,8 +2957,8 @@ var ToastStore = class {
|
|
|
3669
2957
|
const entry = { ...item, id, phase: "entering" };
|
|
3670
2958
|
this.toasts = [...filtered, entry];
|
|
3671
2959
|
this.notify();
|
|
3672
|
-
|
|
3673
|
-
() =>
|
|
2960
|
+
raf(
|
|
2961
|
+
() => raf(() => {
|
|
3674
2962
|
this.toasts = this.toasts.map(
|
|
3675
2963
|
(t) => t.id === id ? { ...t, phase: "visible" } : t
|
|
3676
2964
|
);
|
|
@@ -3724,6 +3012,7 @@ var toast = Object.assign(
|
|
|
3724
3012
|
{
|
|
3725
3013
|
success: (message, options) => add(message, "success", options),
|
|
3726
3014
|
error: (message, options) => add(message, "error", options),
|
|
3015
|
+
info: (message, options) => add(message, "default", options),
|
|
3727
3016
|
loading: (message, options) => add(message, "loading", options),
|
|
3728
3017
|
dismiss: (id) => toastManager.close(id)
|
|
3729
3018
|
}
|
|
@@ -3832,6 +3121,9 @@ var resolveEffectiveModelPrice = ({
|
|
|
3832
3121
|
if (provider === "google") {
|
|
3833
3122
|
return resolveGoogleServiceTierPrice(model, resolvedPrice, billingServiceTier);
|
|
3834
3123
|
}
|
|
3124
|
+
if (provider === "runinfra" || provider === "baseten") {
|
|
3125
|
+
return resolvedPrice;
|
|
3126
|
+
}
|
|
3835
3127
|
return resolvedPrice;
|
|
3836
3128
|
};
|
|
3837
3129
|
var getEffectivePrices = (resolvedPrice, externalPrice) => {
|
|
@@ -3880,17 +3172,23 @@ var calculateAnthropicCost = (resolvedPrice, usage, externalPrice) => {
|
|
|
3880
3172
|
var calculateCacheBasedCost = (resolvedPrice, usage, externalPrice) => {
|
|
3881
3173
|
const { input_tokens, output_tokens, cache_read_input_tokens } = usage;
|
|
3882
3174
|
const { input: effectiveInputPrice, output: effectiveOutputPrice } = getEffectivePrices(resolvedPrice, externalPrice);
|
|
3883
|
-
const
|
|
3175
|
+
const inputTokens = Math.max(0, input_tokens ?? 0);
|
|
3176
|
+
const cacheRead = Math.min(
|
|
3177
|
+
Math.max(0, cache_read_input_tokens ?? 0),
|
|
3178
|
+
inputTokens
|
|
3179
|
+
);
|
|
3180
|
+
const outputTokens = Math.max(0, output_tokens ?? 0);
|
|
3181
|
+
const cacheMissTokens = inputTokens - cacheRead;
|
|
3884
3182
|
const cacheHitPrice = resolvedPrice.inputCacheHit || 0;
|
|
3885
|
-
const regularTotal = (cacheMissTokens * resolvedPrice.input +
|
|
3886
|
-
const chargeTotal = (cacheMissTokens * effectiveInputPrice +
|
|
3183
|
+
const regularTotal = (cacheMissTokens * resolvedPrice.input + cacheRead * cacheHitPrice + outputTokens * resolvedPrice.output) / 1e6;
|
|
3184
|
+
const chargeTotal = (cacheMissTokens * effectiveInputPrice + cacheRead * cacheHitPrice + outputTokens * effectiveOutputPrice) / 1e6;
|
|
3887
3185
|
return {
|
|
3888
3186
|
regular: regularTotal,
|
|
3889
3187
|
charge: chargeTotal,
|
|
3890
3188
|
details: {
|
|
3891
3189
|
inputCost: cacheMissTokens * resolvedPrice.input / 1e6,
|
|
3892
|
-
outputCost:
|
|
3893
|
-
cachingReadCost:
|
|
3190
|
+
outputCost: outputTokens * resolvedPrice.output / 1e6,
|
|
3191
|
+
cachingReadCost: cacheRead * cacheHitPrice / 1e6,
|
|
3894
3192
|
cachingWriteCost: 0
|
|
3895
3193
|
}
|
|
3896
3194
|
};
|
|
@@ -3969,6 +3267,8 @@ var calculateBasicCost = (model, usage, provider, externalPrice, billingServiceT
|
|
|
3969
3267
|
case "deepseek":
|
|
3970
3268
|
case "openai":
|
|
3971
3269
|
case "deepinfra":
|
|
3270
|
+
case "runinfra":
|
|
3271
|
+
case "baseten":
|
|
3972
3272
|
return calculateCacheBasedCost(resolvedPrice, usage, externalPrice);
|
|
3973
3273
|
// without it keep simple full-price billing so cached tokens are not
|
|
3974
3274
|
// priced at 0 — but a platform-hosted model用于 agentic 循环时必须补上
|
|
@@ -4047,6 +3347,18 @@ var calculatePrice = ({
|
|
|
4047
3347
|
try {
|
|
4048
3348
|
model = getModelConfig(provider, modelName);
|
|
4049
3349
|
} catch {
|
|
3350
|
+
if (provider === "baseten" && /^(?:zai-org\/)?glm-5[.-]3-flash$/i.test(modelName)) {
|
|
3351
|
+
const costs3 = calculateBasicCost(
|
|
3352
|
+
{ name: modelName, hasVision: true, price: PLATFORM_HOSTED_GLM_53_FLASH_BASETEN_PRICE },
|
|
3353
|
+
usage,
|
|
3354
|
+
"baseten",
|
|
3355
|
+
externalPrice,
|
|
3356
|
+
billingServiceTier,
|
|
3357
|
+
nowMs
|
|
3358
|
+
);
|
|
3359
|
+
const pay3 = calculatePayDistribution(costs3, externalPrice, sharingLevel);
|
|
3360
|
+
return { cost: sanitizeCost(costs3.charge), pay: pay3 };
|
|
3361
|
+
}
|
|
4050
3362
|
if (isPlatformHostedImageModel(modelName)) {
|
|
4051
3363
|
const hostedImageModel = getModelConfig("nolo", modelName);
|
|
4052
3364
|
const costs3 = calculateBasicCost(
|
|
@@ -4079,6 +3391,19 @@ var calculatePrice = ({
|
|
|
4079
3391
|
const pay3 = calculatePayDistribution(costs3, externalPrice, sharingLevel);
|
|
4080
3392
|
return { cost: sanitizeCost(costs3.charge), pay: pay3 };
|
|
4081
3393
|
}
|
|
3394
|
+
if (provider === "nolo" && isPlatformHostedClaudeModel(modelName)) {
|
|
3395
|
+
const compatModel = getModelConfig("nolo", PLATFORM_HOSTED_GLM_53_FLASH_MODEL);
|
|
3396
|
+
const costs3 = calculateBasicCost(
|
|
3397
|
+
compatModel,
|
|
3398
|
+
usage,
|
|
3399
|
+
provider,
|
|
3400
|
+
externalPrice,
|
|
3401
|
+
billingServiceTier,
|
|
3402
|
+
nowMs
|
|
3403
|
+
);
|
|
3404
|
+
const pay3 = calculatePayDistribution(costs3, externalPrice, sharingLevel);
|
|
3405
|
+
return { cost: sanitizeCost(costs3.charge), pay: pay3 };
|
|
3406
|
+
}
|
|
4082
3407
|
const zeroCostModel = {
|
|
4083
3408
|
name: modelName,
|
|
4084
3409
|
hasVision: false,
|
|
@@ -4131,14 +3456,6 @@ var finiteTokenCount = (value) => {
|
|
|
4131
3456
|
if (finite === void 0) return void 0;
|
|
4132
3457
|
return Math.max(0, Math.floor(finite));
|
|
4133
3458
|
};
|
|
4134
|
-
var readNestedTokenCount = (value, path) => {
|
|
4135
|
-
let cursor = value;
|
|
4136
|
-
for (const key of path) {
|
|
4137
|
-
if (!cursor || typeof cursor !== "object") return void 0;
|
|
4138
|
-
cursor = cursor[key];
|
|
4139
|
-
}
|
|
4140
|
-
return finiteTokenCount(cursor);
|
|
4141
|
-
};
|
|
4142
3459
|
var readFiniteNumberField = (usage, field) => {
|
|
4143
3460
|
if (!usage || typeof usage !== "object") return void 0;
|
|
4144
3461
|
if (!(field in usage)) return void 0;
|
|
@@ -4159,8 +3476,8 @@ var normalizeUsage = (usage) => {
|
|
|
4159
3476
|
}
|
|
4160
3477
|
const inputTokens = "input_tokens" in usage ? usage.input_tokens ?? 0 : "prompt_tokens" in usage ? usage.prompt_tokens : 0;
|
|
4161
3478
|
const outputTokens = "output_tokens" in usage ? usage.output_tokens ?? 0 : "completion_tokens" in usage ? usage.completion_tokens : 0;
|
|
4162
|
-
const cacheCreationInputTokens =
|
|
4163
|
-
const cacheReadInputTokens =
|
|
3479
|
+
const cacheCreationInputTokens = readCacheCreationInputTokens(usage);
|
|
3480
|
+
const cacheReadInputTokens = readCacheReadInputTokens(usage);
|
|
4164
3481
|
let cost = 0;
|
|
4165
3482
|
const providedCost = readFiniteNumberField(usage, "cost");
|
|
4166
3483
|
if (providedCost !== void 0) {
|
|
@@ -4786,7 +4103,7 @@ var deleteOwnedDialogAttachments = async (args) => {
|
|
|
4786
4103
|
metadataReadFailures
|
|
4787
4104
|
});
|
|
4788
4105
|
if (!plan.deleteCandidates.length) return plan;
|
|
4789
|
-
const { deleteFileAction } = await import("./deleteFile-
|
|
4106
|
+
const { deleteFileAction } = await import("./deleteFile-JYKRT7C3.js");
|
|
4790
4107
|
for (const candidate of plan.deleteCandidates) {
|
|
4791
4108
|
if (candidate.fileDbKey) {
|
|
4792
4109
|
await deleteFileAction(candidate.fileDbKey, args.thunkApi);
|
|
@@ -4848,7 +4165,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
4848
4165
|
}
|
|
4849
4166
|
if (isCurrentDialog) {
|
|
4850
4167
|
await thunkApi.dispatch(resetMsgs());
|
|
4851
|
-
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-
|
|
4168
|
+
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-TYW2G7IL.js");
|
|
4852
4169
|
dispatch(clearPendingAttachments2());
|
|
4853
4170
|
}
|
|
4854
4171
|
return { dialogKey, isCurrentDialog, attachmentPlan };
|
|
@@ -4856,39 +4173,39 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
4856
4173
|
|
|
4857
4174
|
// packages/chat/dialog/dialogSlice.ts
|
|
4858
4175
|
var runCreateDialogAction = async (args, thunkApi) => {
|
|
4859
|
-
const { createDialogAction } = await import("./createDialogAction-
|
|
4176
|
+
const { createDialogAction } = await import("./createDialogAction-JDSMY4AY.js");
|
|
4860
4177
|
return createDialogAction(args, thunkApi);
|
|
4861
4178
|
};
|
|
4862
4179
|
var runCreateAgentAutomationAction = async (args, thunkApi) => {
|
|
4863
|
-
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-
|
|
4180
|
+
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-OK4L33KF.js");
|
|
4864
4181
|
return createAgentAutomationAction(args, thunkApi);
|
|
4865
4182
|
};
|
|
4866
4183
|
var runUpdateDialogTitleAction = async (args, thunkApi) => {
|
|
4867
|
-
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-
|
|
4184
|
+
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-YFYAEW3T.js");
|
|
4868
4185
|
return updateDialogTitleAction(args, thunkApi);
|
|
4869
4186
|
};
|
|
4870
4187
|
var runAddDialogAgentAction = async (args, thunkApi) => {
|
|
4871
|
-
const { addDialogAgentAction } = await import("./addDialogAgentAction-
|
|
4188
|
+
const { addDialogAgentAction } = await import("./addDialogAgentAction-JRYUS54Y.js");
|
|
4872
4189
|
return addDialogAgentAction(args, thunkApi);
|
|
4873
4190
|
};
|
|
4874
4191
|
var runRemoveDialogAgentAction = async (args, thunkApi) => {
|
|
4875
|
-
const { removeDialogAgentAction } = await import("./removeDialogAgentAction-
|
|
4192
|
+
const { removeDialogAgentAction } = await import("./removeDialogAgentAction-ECHCFB7N.js");
|
|
4876
4193
|
return removeDialogAgentAction(args, thunkApi);
|
|
4877
4194
|
};
|
|
4878
4195
|
var runSetPrimaryDialogAgentAction = async (args, thunkApi) => {
|
|
4879
|
-
const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-
|
|
4196
|
+
const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-VDOBOMKC.js");
|
|
4880
4197
|
return setPrimaryDialogAgentAction(args, thunkApi);
|
|
4881
4198
|
};
|
|
4882
4199
|
var runSwitchDialogAgentAction = async (args, thunkApi) => {
|
|
4883
|
-
const { switchDialogAgentAction } = await import("./switchDialogAgentAction-
|
|
4200
|
+
const { switchDialogAgentAction } = await import("./switchDialogAgentAction-5L4UP7VI.js");
|
|
4884
4201
|
return switchDialogAgentAction(args, thunkApi);
|
|
4885
4202
|
};
|
|
4886
4203
|
var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
|
|
4887
|
-
const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-
|
|
4204
|
+
const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-KCVJNGMB.js");
|
|
4888
4205
|
return setDialogExtraReferencesAction(args, thunkApi);
|
|
4889
4206
|
};
|
|
4890
4207
|
var runHandleSendMessageAction = async (args, thunkApi) => {
|
|
4891
|
-
const { handleSendMessageAction } = await import("./handleSendMessageAction-
|
|
4208
|
+
const { handleSendMessageAction } = await import("./handleSendMessageAction-GO53TY7U.js");
|
|
4892
4209
|
return handleSendMessageAction(args, thunkApi);
|
|
4893
4210
|
};
|
|
4894
4211
|
function clearDialogState() {
|
|
@@ -4901,7 +4218,7 @@ var createPageAndAddReference = createAsyncThunk(
|
|
|
4901
4218
|
async (payload, { dispatch, getState, rejectWithValue }) => {
|
|
4902
4219
|
const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
|
|
4903
4220
|
try {
|
|
4904
|
-
const { createDocState } = await import("./docStore-
|
|
4221
|
+
const { createDocState } = await import("./docStore-2URPBVCS.js");
|
|
4905
4222
|
const pageKey = await createDocState(
|
|
4906
4223
|
{ slateData, title },
|
|
4907
4224
|
{ dispatch, getState }
|