| [a762898] | 1 | /**
|
|---|
| 2 | * @license React
|
|---|
| 3 | * react-dom.production.js
|
|---|
| 4 | *
|
|---|
| 5 | * Copyright (c) Meta Platforms, Inc. and affiliates.
|
|---|
| 6 | *
|
|---|
| 7 | * This source code is licensed under the MIT license found in the
|
|---|
| 8 | * LICENSE file in the root directory of this source tree.
|
|---|
| 9 | */
|
|---|
| 10 |
|
|---|
| 11 | "use strict";
|
|---|
| 12 | var React = require("react");
|
|---|
| 13 | function formatProdErrorMessage(code) {
|
|---|
| 14 | var url = "https://react.dev/errors/" + code;
|
|---|
| 15 | if (1 < arguments.length) {
|
|---|
| 16 | url += "?args[]=" + encodeURIComponent(arguments[1]);
|
|---|
| 17 | for (var i = 2; i < arguments.length; i++)
|
|---|
| 18 | url += "&args[]=" + encodeURIComponent(arguments[i]);
|
|---|
| 19 | }
|
|---|
| 20 | return (
|
|---|
| 21 | "Minified React error #" +
|
|---|
| 22 | code +
|
|---|
| 23 | "; visit " +
|
|---|
| 24 | url +
|
|---|
| 25 | " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."
|
|---|
| 26 | );
|
|---|
| 27 | }
|
|---|
| 28 | function noop() {}
|
|---|
| 29 | var Internals = {
|
|---|
| 30 | d: {
|
|---|
| 31 | f: noop,
|
|---|
| 32 | r: function () {
|
|---|
| 33 | throw Error(formatProdErrorMessage(522));
|
|---|
| 34 | },
|
|---|
| 35 | D: noop,
|
|---|
| 36 | C: noop,
|
|---|
| 37 | L: noop,
|
|---|
| 38 | m: noop,
|
|---|
| 39 | X: noop,
|
|---|
| 40 | S: noop,
|
|---|
| 41 | M: noop
|
|---|
| 42 | },
|
|---|
| 43 | p: 0,
|
|---|
| 44 | findDOMNode: null
|
|---|
| 45 | },
|
|---|
| 46 | REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|---|
| 47 | function createPortal$1(children, containerInfo, implementation) {
|
|---|
| 48 | var key =
|
|---|
| 49 | 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;
|
|---|
| 50 | return {
|
|---|
| 51 | $$typeof: REACT_PORTAL_TYPE,
|
|---|
| 52 | key: null == key ? null : "" + key,
|
|---|
| 53 | children: children,
|
|---|
| 54 | containerInfo: containerInfo,
|
|---|
| 55 | implementation: implementation
|
|---|
| 56 | };
|
|---|
| 57 | }
|
|---|
| 58 | var ReactSharedInternals =
|
|---|
| 59 | React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|---|
| 60 | function getCrossOriginStringAs(as, input) {
|
|---|
| 61 | if ("font" === as) return "";
|
|---|
| 62 | if ("string" === typeof input)
|
|---|
| 63 | return "use-credentials" === input ? input : "";
|
|---|
| 64 | }
|
|---|
| 65 | exports.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
|
|---|
| 66 | Internals;
|
|---|
| 67 | exports.createPortal = function (children, container) {
|
|---|
| 68 | var key =
|
|---|
| 69 | 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;
|
|---|
| 70 | if (
|
|---|
| 71 | !container ||
|
|---|
| 72 | (1 !== container.nodeType &&
|
|---|
| 73 | 9 !== container.nodeType &&
|
|---|
| 74 | 11 !== container.nodeType)
|
|---|
| 75 | )
|
|---|
| 76 | throw Error(formatProdErrorMessage(299));
|
|---|
| 77 | return createPortal$1(children, container, null, key);
|
|---|
| 78 | };
|
|---|
| 79 | exports.flushSync = function (fn) {
|
|---|
| 80 | var previousTransition = ReactSharedInternals.T,
|
|---|
| 81 | previousUpdatePriority = Internals.p;
|
|---|
| 82 | try {
|
|---|
| 83 | if (((ReactSharedInternals.T = null), (Internals.p = 2), fn)) return fn();
|
|---|
| 84 | } finally {
|
|---|
| 85 | (ReactSharedInternals.T = previousTransition),
|
|---|
| 86 | (Internals.p = previousUpdatePriority),
|
|---|
| 87 | Internals.d.f();
|
|---|
| 88 | }
|
|---|
| 89 | };
|
|---|
| 90 | exports.preconnect = function (href, options) {
|
|---|
| 91 | "string" === typeof href &&
|
|---|
| 92 | (options
|
|---|
| 93 | ? ((options = options.crossOrigin),
|
|---|
| 94 | (options =
|
|---|
| 95 | "string" === typeof options
|
|---|
| 96 | ? "use-credentials" === options
|
|---|
| 97 | ? options
|
|---|
| 98 | : ""
|
|---|
| 99 | : void 0))
|
|---|
| 100 | : (options = null),
|
|---|
| 101 | Internals.d.C(href, options));
|
|---|
| 102 | };
|
|---|
| 103 | exports.prefetchDNS = function (href) {
|
|---|
| 104 | "string" === typeof href && Internals.d.D(href);
|
|---|
| 105 | };
|
|---|
| 106 | exports.preinit = function (href, options) {
|
|---|
| 107 | if ("string" === typeof href && options && "string" === typeof options.as) {
|
|---|
| 108 | var as = options.as,
|
|---|
| 109 | crossOrigin = getCrossOriginStringAs(as, options.crossOrigin),
|
|---|
| 110 | integrity =
|
|---|
| 111 | "string" === typeof options.integrity ? options.integrity : void 0,
|
|---|
| 112 | fetchPriority =
|
|---|
| 113 | "string" === typeof options.fetchPriority
|
|---|
| 114 | ? options.fetchPriority
|
|---|
| 115 | : void 0;
|
|---|
| 116 | "style" === as
|
|---|
| 117 | ? Internals.d.S(
|
|---|
| 118 | href,
|
|---|
| 119 | "string" === typeof options.precedence ? options.precedence : void 0,
|
|---|
| 120 | {
|
|---|
| 121 | crossOrigin: crossOrigin,
|
|---|
| 122 | integrity: integrity,
|
|---|
| 123 | fetchPriority: fetchPriority
|
|---|
| 124 | }
|
|---|
| 125 | )
|
|---|
| 126 | : "script" === as &&
|
|---|
| 127 | Internals.d.X(href, {
|
|---|
| 128 | crossOrigin: crossOrigin,
|
|---|
| 129 | integrity: integrity,
|
|---|
| 130 | fetchPriority: fetchPriority,
|
|---|
| 131 | nonce: "string" === typeof options.nonce ? options.nonce : void 0
|
|---|
| 132 | });
|
|---|
| 133 | }
|
|---|
| 134 | };
|
|---|
| 135 | exports.preinitModule = function (href, options) {
|
|---|
| 136 | if ("string" === typeof href)
|
|---|
| 137 | if ("object" === typeof options && null !== options) {
|
|---|
| 138 | if (null == options.as || "script" === options.as) {
|
|---|
| 139 | var crossOrigin = getCrossOriginStringAs(
|
|---|
| 140 | options.as,
|
|---|
| 141 | options.crossOrigin
|
|---|
| 142 | );
|
|---|
| 143 | Internals.d.M(href, {
|
|---|
| 144 | crossOrigin: crossOrigin,
|
|---|
| 145 | integrity:
|
|---|
| 146 | "string" === typeof options.integrity ? options.integrity : void 0,
|
|---|
| 147 | nonce: "string" === typeof options.nonce ? options.nonce : void 0
|
|---|
| 148 | });
|
|---|
| 149 | }
|
|---|
| 150 | } else null == options && Internals.d.M(href);
|
|---|
| 151 | };
|
|---|
| 152 | exports.preload = function (href, options) {
|
|---|
| 153 | if (
|
|---|
| 154 | "string" === typeof href &&
|
|---|
| 155 | "object" === typeof options &&
|
|---|
| 156 | null !== options &&
|
|---|
| 157 | "string" === typeof options.as
|
|---|
| 158 | ) {
|
|---|
| 159 | var as = options.as,
|
|---|
| 160 | crossOrigin = getCrossOriginStringAs(as, options.crossOrigin);
|
|---|
| 161 | Internals.d.L(href, as, {
|
|---|
| 162 | crossOrigin: crossOrigin,
|
|---|
| 163 | integrity:
|
|---|
| 164 | "string" === typeof options.integrity ? options.integrity : void 0,
|
|---|
| 165 | nonce: "string" === typeof options.nonce ? options.nonce : void 0,
|
|---|
| 166 | type: "string" === typeof options.type ? options.type : void 0,
|
|---|
| 167 | fetchPriority:
|
|---|
| 168 | "string" === typeof options.fetchPriority
|
|---|
| 169 | ? options.fetchPriority
|
|---|
| 170 | : void 0,
|
|---|
| 171 | referrerPolicy:
|
|---|
| 172 | "string" === typeof options.referrerPolicy
|
|---|
| 173 | ? options.referrerPolicy
|
|---|
| 174 | : void 0,
|
|---|
| 175 | imageSrcSet:
|
|---|
| 176 | "string" === typeof options.imageSrcSet ? options.imageSrcSet : void 0,
|
|---|
| 177 | imageSizes:
|
|---|
| 178 | "string" === typeof options.imageSizes ? options.imageSizes : void 0,
|
|---|
| 179 | media: "string" === typeof options.media ? options.media : void 0
|
|---|
| 180 | });
|
|---|
| 181 | }
|
|---|
| 182 | };
|
|---|
| 183 | exports.preloadModule = function (href, options) {
|
|---|
| 184 | if ("string" === typeof href)
|
|---|
| 185 | if (options) {
|
|---|
| 186 | var crossOrigin = getCrossOriginStringAs(options.as, options.crossOrigin);
|
|---|
| 187 | Internals.d.m(href, {
|
|---|
| 188 | as:
|
|---|
| 189 | "string" === typeof options.as && "script" !== options.as
|
|---|
| 190 | ? options.as
|
|---|
| 191 | : void 0,
|
|---|
| 192 | crossOrigin: crossOrigin,
|
|---|
| 193 | integrity:
|
|---|
| 194 | "string" === typeof options.integrity ? options.integrity : void 0
|
|---|
| 195 | });
|
|---|
| 196 | } else Internals.d.m(href);
|
|---|
| 197 | };
|
|---|
| 198 | exports.requestFormReset = function (form) {
|
|---|
| 199 | Internals.d.r(form);
|
|---|
| 200 | };
|
|---|
| 201 | exports.unstable_batchedUpdates = function (fn, a) {
|
|---|
| 202 | return fn(a);
|
|---|
| 203 | };
|
|---|
| 204 | exports.useFormState = function (action, initialState, permalink) {
|
|---|
| 205 | return ReactSharedInternals.H.useFormState(action, initialState, permalink);
|
|---|
| 206 | };
|
|---|
| 207 | exports.useFormStatus = function () {
|
|---|
| 208 | return ReactSharedInternals.H.useHostTransitionStatus();
|
|---|
| 209 | };
|
|---|
| 210 | exports.version = "19.2.3";
|
|---|