@@ -33961,7 +33961,7 @@ function createFiberRoot(
33961
33961
return root;
33962
33962
}
33963
33963
33964
- var ReactVersion = "18.3.0-www-classic-37c737b8 ";
33964
+ var ReactVersion = "18.3.0-www-classic-23e6bc10 ";
33965
33965
33966
33966
function createPortal$1(
33967
33967
children,
@@ -46072,6 +46072,25 @@ function createEventHandle(type, options) {
46072
46072
}
46073
46073
}
46074
46074
46075
+ function getCrossOriginString(input) {
46076
+ if (typeof input === "string") {
46077
+ return input === "use-credentials" ? input : "";
46078
+ }
46079
+
46080
+ return undefined;
46081
+ }
46082
+ function getCrossOriginStringAs(as, input) {
46083
+ if (as === "font") {
46084
+ return "";
46085
+ }
46086
+
46087
+ if (typeof input === "string") {
46088
+ return input === "use-credentials" ? input : "";
46089
+ }
46090
+
46091
+ return undefined;
46092
+ }
46093
+
46075
46094
var Dispatcher = Internals.Dispatcher;
46076
46095
function prefetchDNS(href) {
46077
46096
{
@@ -46132,7 +46151,7 @@ function preconnect(href, options) {
46132
46151
46133
46152
if (dispatcher && typeof href === "string") {
46134
46153
var crossOrigin = options
46135
- ? getCrossOrigin("preconnect", options.crossOrigin)
46154
+ ? getCrossOriginString( options.crossOrigin)
46136
46155
: null;
46137
46156
dispatcher.preconnect(href, crossOrigin);
46138
46157
} // We don't error because preconnect needs to be resilient to being called in a variety of scopes
@@ -46180,7 +46199,7 @@ function preload(href, options) {
46180
46199
typeof options.as === "string"
46181
46200
) {
46182
46201
var as = options.as;
46183
- var crossOrigin = getCrossOrigin (as, options.crossOrigin);
46202
+ var crossOrigin = getCrossOriginStringAs (as, options.crossOrigin);
46184
46203
dispatcher.preload(href, as, {
46185
46204
crossOrigin: crossOrigin,
46186
46205
integrity:
@@ -46241,7 +46260,7 @@ function preloadModule(href, options) {
46241
46260
46242
46261
if (dispatcher && typeof href === "string") {
46243
46262
if (options) {
46244
- var crossOrigin = getCrossOrigin (options.as, options.crossOrigin);
46263
+ var crossOrigin = getCrossOriginStringAs (options.as, options.crossOrigin);
46245
46264
dispatcher.preloadModule(href, {
46246
46265
as:
46247
46266
typeof options.as === "string" && options.as !== "script"
@@ -46287,7 +46306,7 @@ function preinit(href, options) {
46287
46306
typeof options.as === "string"
46288
46307
) {
46289
46308
var as = options.as;
46290
- var crossOrigin = getCrossOrigin (as, options.crossOrigin);
46309
+ var crossOrigin = getCrossOriginStringAs (as, options.crossOrigin);
46291
46310
var integrity =
46292
46311
typeof options.integrity === "string" ? options.integrity : undefined;
46293
46312
var fetchPriority =
@@ -46374,37 +46393,29 @@ function preinitModule(href, options) {
46374
46393
var dispatcher = Dispatcher.current;
46375
46394
46376
46395
if (dispatcher && typeof href === "string") {
46377
- if (
46378
- options == null ||
46379
- (typeof options === "object" &&
46380
- (options.as == null || options.as === "script"))
46381
- ) {
46382
- var crossOrigin = options
46383
- ? getCrossOrigin(undefined, options.crossOrigin)
46384
- : undefined;
46385
- dispatcher.preinitModuleScript(href, {
46386
- crossOrigin: crossOrigin,
46387
- integrity:
46388
- options && typeof options.integrity === "string"
46389
- ? options.integrity
46390
- : undefined
46391
- });
46396
+ if (typeof options === "object" && options !== null) {
46397
+ if (options.as == null || options.as === "script") {
46398
+ var crossOrigin = getCrossOriginStringAs(
46399
+ options.as,
46400
+ options.crossOrigin
46401
+ );
46402
+ dispatcher.preinitModuleScript(href, {
46403
+ crossOrigin: crossOrigin,
46404
+ integrity:
46405
+ typeof options.integrity === "string"
46406
+ ? options.integrity
46407
+ : undefined,
46408
+ nonce: typeof options.nonce === "string" ? options.nonce : undefined
46409
+ });
46410
+ }
46411
+ } else if (options == null) {
46412
+ dispatcher.preinitModuleScript(href);
46392
46413
}
46393
46414
} // We don't error because preinit needs to be resilient to being called in a variety of scopes
46394
46415
// and the runtime may not be capable of responding. The function is optimistic and not critical
46395
46416
// so we favor silent bailout over warning or erroring.
46396
46417
}
46397
46418
46398
- function getCrossOrigin(as, crossOrigin) {
46399
- return as === "font"
46400
- ? ""
46401
- : typeof crossOrigin === "string"
46402
- ? crossOrigin === "use-credentials"
46403
- ? "use-credentials"
46404
- : ""
46405
- : undefined;
46406
- }
46407
-
46408
46419
function getValueDescriptorExpectingObjectForWarning(thing) {
46409
46420
return thing === null
46410
46421
? "`null`"
0 commit comments