Brunobkr/llama.cpp_AlgMor24_github
ΩFFFΣLLIa • llama.cpp • AlgMor24 ██████╗ ███████╗███████╗███████╗██╗ ██╗ ██╗ █████╗ ██╔═══██╗██╔════╝██╔════╝██╔════╝██║ ██║ ██║██╔══██╗ ██║ ██║█████╗ █████╗ █████╗ ██║ ██║ ██║███████║ ██║ ██║██╔══╝ ██╔══╝ ██╔══╝ ██║ ██║ ██║██╔══██║ ╚██████╔╝██║ ██║ ███████╗███████╗███████╗██║██║ ██║ ╚═════╝ ╚═╝ ╚═╝ ╚══════╝╚══════╝╚══════╝╚═╝╚═╝ ╚═╝ High-Performance LLM / VLM Inference & Autonomous Agentic Ecosystem… See the full description on the dataset page: https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github.
03.1k
1/**2 * @license React3 * react-dom-server.edge.development.js4 *5 * Copyright (c) Meta Platforms, Inc. and affiliates.6 *7 * This source code is licensed under the MIT license found in the8 * LICENSE file in the root directory of this source tree.9 */10 11/*12 13 14 JS Implementation of MurmurHash3 (r136) (as of May 20, 2011)15 16 Copyright (c) 2011 Gary Court17 Permission is hereby granted, free of charge, to any person obtaining a copy18 of this software and associated documentation files (the "Software"), to deal19 in the Software without restriction, including without limitation the rights20 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell21 copies of the Software, and to permit persons to whom the Software is22 furnished to do so, subject to the following conditions:23 24 The above copyright notice and this permission notice shall be included in25 all copies or substantial portions of the Software.26 27 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR28 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,29 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE30 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER31 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,32 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE33 SOFTWARE.34*/35"use strict";36"production" !== process.env.NODE_ENV &&37 (function () {38 function styleReplacer(match, prefix, s, suffix) {39 return "" + prefix + ("s" === s ? "\\73 " : "\\53 ") + suffix;40 }41 function scriptReplacer(match, prefix, s, suffix) {42 return "" + prefix + ("s" === s ? "\\u0073" : "\\u0053") + suffix;43 }44 function getIteratorFn(maybeIterable) {45 if (null === maybeIterable || "object" !== typeof maybeIterable)46 return null;47 maybeIterable =48 (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||49 maybeIterable["@@iterator"];50 return "function" === typeof maybeIterable ? maybeIterable : null;51 }52 function objectName(object) {53 object = Object.prototype.toString.call(object);54 return object.slice(8, object.length - 1);55 }56 function describeKeyForErrorMessage(key) {57 var encodedKey = JSON.stringify(key);58 return '"' + key + '"' === encodedKey ? key : encodedKey;59 }60 function describeValueForErrorMessage(value) {61 switch (typeof value) {62 case "string":63 return JSON.stringify(64 10 >= value.length ? value : value.slice(0, 10) + "..."65 );66 case "object":67 if (isArrayImpl(value)) return "[...]";68 if (null !== value && value.$$typeof === CLIENT_REFERENCE_TAG)69 return "client";70 value = objectName(value);71 return "Object" === value ? "{...}" : value;72 case "function":73 return value.$$typeof === CLIENT_REFERENCE_TAG74 ? "client"75 : (value = value.displayName || value.name)76 ? "function " + value77 : "function";78 default:79 return String(value);80 }81 }82 function describeElementType(type) {83 if ("string" === typeof type) return type;84 switch (type) {85 case REACT_SUSPENSE_TYPE:86 return "Suspense";87 case REACT_SUSPENSE_LIST_TYPE:88 return "SuspenseList";89 }90 if ("object" === typeof type)91 switch (type.$$typeof) {92 case REACT_FORWARD_REF_TYPE:93 return describeElementType(type.render);94 case REACT_MEMO_TYPE:95 return describeElementType(type.type);96 case REACT_LAZY_TYPE:97 var payload = type._payload;98 type = type._init;99 try {100 return describeElementType(type(payload));101 } catch (x) {}102 }103 return "";104 }105 function describeObjectForErrorMessage(objectOrArray, expandedName) {106 var objKind = objectName(objectOrArray);107 if ("Object" !== objKind && "Array" !== objKind) return objKind;108 var start = -1,109 length = 0;110 if (isArrayImpl(objectOrArray))111 if (jsxChildrenParents.has(objectOrArray)) {112 var type = jsxChildrenParents.get(objectOrArray);113 objKind = "<" + describeElementType(type) + ">";114 for (var i = 0; i < objectOrArray.length; i++) {115 var value = objectOrArray[i];116 value =117 "string" === typeof value118 ? value119 : "object" === typeof value && null !== value120 ? "{" + describeObjectForErrorMessage(value) + "}"121 : "{" + describeValueForErrorMessage(value) + "}";122 "" + i === expandedName123 ? ((start = objKind.length),124 (length = value.length),125 (objKind += value))126 : (objKind =127 15 > value.length && 40 > objKind.length + value.length128 ? objKind + value129 : objKind + "{...}");130 }131 objKind += "</" + describeElementType(type) + ">";132 } else {133 objKind = "[";134 for (type = 0; type < objectOrArray.length; type++)135 0 < type && (objKind += ", "),136 (i = objectOrArray[type]),137 (i =138 "object" === typeof i && null !== i139 ? describeObjectForErrorMessage(i)140 : describeValueForErrorMessage(i)),141 "" + type === expandedName142 ? ((start = objKind.length),143 (length = i.length),144 (objKind += i))145 : (objKind =146 10 > i.length && 40 > objKind.length + i.length147 ? objKind + i148 : objKind + "...");149 objKind += "]";150 }151 else if (objectOrArray.$$typeof === REACT_ELEMENT_TYPE)152 objKind = "<" + describeElementType(objectOrArray.type) + "/>";153 else {154 if (objectOrArray.$$typeof === CLIENT_REFERENCE_TAG) return "client";155 if (jsxPropsParents.has(objectOrArray)) {156 objKind = jsxPropsParents.get(objectOrArray);157 objKind = "<" + (describeElementType(objKind) || "...");158 type = Object.keys(objectOrArray);159 for (i = 0; i < type.length; i++) {160 objKind += " ";161 value = type[i];162 objKind += describeKeyForErrorMessage(value) + "=";163 var _value2 = objectOrArray[value];164 var _substr2 =165 value === expandedName &&166 "object" === typeof _value2 &&167 null !== _value2168 ? describeObjectForErrorMessage(_value2)169 : describeValueForErrorMessage(_value2);170 "string" !== typeof _value2 && (_substr2 = "{" + _substr2 + "}");171 value === expandedName172 ? ((start = objKind.length),173 (length = _substr2.length),174 (objKind += _substr2))175 : (objKind =176 10 > _substr2.length && 40 > objKind.length + _substr2.length177 ? objKind + _substr2178 : objKind + "...");179 }180 objKind += ">";181 } else {182 objKind = "{";183 type = Object.keys(objectOrArray);184 for (i = 0; i < type.length; i++)185 0 < i && (objKind += ", "),186 (value = type[i]),187 (objKind += describeKeyForErrorMessage(value) + ": "),188 (_value2 = objectOrArray[value]),189 (_value2 =190 "object" === typeof _value2 && null !== _value2191 ? describeObjectForErrorMessage(_value2)192 : describeValueForErrorMessage(_value2)),193 value === expandedName194 ? ((start = objKind.length),195 (length = _value2.length),196 (objKind += _value2))197 : (objKind =198 10 > _value2.length && 40 > objKind.length + _value2.length199 ? objKind + _value2200 : objKind + "...");201 objKind += "}";202 }203 }204 return void 0 === expandedName205 ? objKind206 : -1 < start && 0 < length207 ? ((objectOrArray = " ".repeat(start) + "^".repeat(length)),208 "\n " + objKind + "\n " + objectOrArray)209 : "\n " + objKind;210 }211 function murmurhash3_32_gc(key, seed) {212 var remainder = key.length & 3;213 var bytes = key.length - remainder;214 var h1 = seed;215 for (seed = 0; seed < bytes; ) {216 var k1 =217 (key.charCodeAt(seed) & 255) |218 ((key.charCodeAt(++seed) & 255) << 8) |219 ((key.charCodeAt(++seed) & 255) << 16) |220 ((key.charCodeAt(++seed) & 255) << 24);221 ++seed;222 k1 =223 (3432918353 * (k1 & 65535) +224 (((3432918353 * (k1 >>> 16)) & 65535) << 16)) &225 4294967295;226 k1 = (k1 << 15) | (k1 >>> 17);227 k1 =228 (461845907 * (k1 & 65535) +229 (((461845907 * (k1 >>> 16)) & 65535) << 16)) &230 4294967295;231 h1 ^= k1;232 h1 = (h1 << 13) | (h1 >>> 19);233 h1 =234 (5 * (h1 & 65535) + (((5 * (h1 >>> 16)) & 65535) << 16)) & 4294967295;235 h1 = (h1 & 65535) + 27492 + ((((h1 >>> 16) + 58964) & 65535) << 16);236 }237 k1 = 0;238 switch (remainder) {239 case 3:240 k1 ^= (key.charCodeAt(seed + 2) & 255) << 16;241 case 2:242 k1 ^= (key.charCodeAt(seed + 1) & 255) << 8;243 case 1:244 (k1 ^= key.charCodeAt(seed) & 255),245 (k1 =246 (3432918353 * (k1 & 65535) +247 (((3432918353 * (k1 >>> 16)) & 65535) << 16)) &248 4294967295),249 (k1 = (k1 << 15) | (k1 >>> 17)),250 (h1 ^=251 (461845907 * (k1 & 65535) +252 (((461845907 * (k1 >>> 16)) & 65535) << 16)) &253 4294967295);254 }255 h1 ^= key.length;256 h1 ^= h1 >>> 16;257 h1 =258 (2246822507 * (h1 & 65535) +259 (((2246822507 * (h1 >>> 16)) & 65535) << 16)) &260 4294967295;261 h1 ^= h1 >>> 13;262 h1 =263 (3266489909 * (h1 & 65535) +264 (((3266489909 * (h1 >>> 16)) & 65535) << 16)) &265 4294967295;266 return (h1 ^ (h1 >>> 16)) >>> 0;267 }268 function handleErrorInNextTick(error) {269 setTimeout(function () {270 throw error;271 });272 }273 function writeChunk(destination, chunk) {274 if (0 !== chunk.byteLength)275 if (2048 < chunk.byteLength)276 0 < writtenBytes &&277 (destination.enqueue(278 new Uint8Array(currentView.buffer, 0, writtenBytes)279 ),280 (currentView = new Uint8Array(2048)),281 (writtenBytes = 0)),282 destination.enqueue(chunk);283 else {284 var allowableBytes = currentView.length - writtenBytes;285 allowableBytes < chunk.byteLength &&286 (0 === allowableBytes287 ? destination.enqueue(currentView)288 : (currentView.set(289 chunk.subarray(0, allowableBytes),290 writtenBytes291 ),292 destination.enqueue(currentView),293 (chunk = chunk.subarray(allowableBytes))),294 (currentView = new Uint8Array(2048)),295 (writtenBytes = 0));296 currentView.set(chunk, writtenBytes);297 writtenBytes += chunk.byteLength;298 }299 }300 function writeChunkAndReturn(destination, chunk) {301 writeChunk(destination, chunk);302 return !0;303 }304 function completeWriting(destination) {305 currentView &&306 0 < writtenBytes &&307 (destination.enqueue(308 new Uint8Array(currentView.buffer, 0, writtenBytes)309 ),310 (currentView = null),311 (writtenBytes = 0));312 }313 function stringToChunk(content) {314 return textEncoder.encode(content);315 }316 function stringToPrecomputedChunk(content) {317 content = textEncoder.encode(content);318 2048 < content.byteLength &&319 console.error(320 "precomputed chunks must be smaller than the view size configured for this host. This is a bug in React."321 );322 return content;323 }324 function byteLengthOfChunk(chunk) {325 return chunk.byteLength;326 }327 function closeWithError(destination, error) {328 "function" === typeof destination.error329 ? destination.error(error)330 : destination.close();331 }332 function typeName(value) {333 return (334 ("function" === typeof Symbol &&335 Symbol.toStringTag &&336 value[Symbol.toStringTag]) ||337 value.constructor.name ||338 "Object"339 );340 }341 function willCoercionThrow(value) {342 try {343 return testStringCoercion(value), !1;344 } catch (e) {345 return !0;346 }347 }348 function testStringCoercion(value) {349 return "" + value;350 }351 function checkAttributeStringCoercion(value, attributeName) {352 if (willCoercionThrow(value))353 return (354 console.error(355 "The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",356 attributeName,357 typeName(value)358 ),359 testStringCoercion(value)360 );361 }362 function checkCSSPropertyStringCoercion(value, propName) {363 if (willCoercionThrow(value))364 return (365 console.error(366 "The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",367 propName,368 typeName(value)369 ),370 testStringCoercion(value)371 );372 }373 function checkHtmlStringCoercion(value) {374 if (willCoercionThrow(value))375 return (376 console.error(377 "The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",378 typeName(value)379 ),380 testStringCoercion(value)381 );382 }383 function isAttributeNameSafe(attributeName) {384 if (hasOwnProperty.call(validatedAttributeNameCache, attributeName))385 return !0;386 if (hasOwnProperty.call(illegalAttributeNameCache, attributeName))387 return !1;388 if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName))389 return (validatedAttributeNameCache[attributeName] = !0);390 illegalAttributeNameCache[attributeName] = !0;391 console.error("Invalid attribute name: `%s`", attributeName);392 return !1;393 }394 function checkControlledValueProps(tagName, props) {395 hasReadOnlyValue[props.type] ||396 props.onChange ||397 props.onInput ||398 props.readOnly ||399 props.disabled ||400 null == props.value ||401 ("select" === tagName402 ? console.error(403 "You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`."404 )405 : console.error(406 "You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."407 ));408 props.onChange ||409 props.readOnly ||410 props.disabled ||411 null == props.checked ||412 console.error(413 "You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`."414 );415 }416 function validateProperty$1(tagName, name) {417 if (418 hasOwnProperty.call(warnedProperties$1, name) &&419 warnedProperties$1[name]420 )421 return !0;422 if (rARIACamel$1.test(name)) {423 tagName = "aria-" + name.slice(4).toLowerCase();424 tagName = ariaProperties.hasOwnProperty(tagName) ? tagName : null;425 if (null == tagName)426 return (427 console.error(428 "Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",429 name430 ),431 (warnedProperties$1[name] = !0)432 );433 if (name !== tagName)434 return (435 console.error(436 "Invalid ARIA attribute `%s`. Did you mean `%s`?",437 name,438 tagName439 ),440 (warnedProperties$1[name] = !0)441 );442 }443 if (rARIA$1.test(name)) {444 tagName = name.toLowerCase();445 tagName = ariaProperties.hasOwnProperty(tagName) ? tagName : null;446 if (null == tagName) return (warnedProperties$1[name] = !0), !1;447 name !== tagName &&448 (console.error(449 "Unknown ARIA attribute `%s`. Did you mean `%s`?",450 name,451 tagName452 ),453 (warnedProperties$1[name] = !0));454 }455 return !0;456 }457 function validateProperties$2(type, props) {458 var invalidProps = [],459 key;460 for (key in props)461 validateProperty$1(type, key) || invalidProps.push(key);462 props = invalidProps463 .map(function (prop) {464 return "`" + prop + "`";465 })466 .join(", ");467 1 === invalidProps.length468 ? console.error(469 "Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",470 props,471 type472 )473 : 1 < invalidProps.length &&474 console.error(475 "Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",476 props,477 type478 );479 }480 function validateProperty(tagName, name, value, eventRegistry) {481 if (hasOwnProperty.call(warnedProperties, name) && warnedProperties[name])482 return !0;483 var lowerCasedName = name.toLowerCase();484 if ("onfocusin" === lowerCasedName || "onfocusout" === lowerCasedName)485 return (486 console.error(487 "React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."488 ),489 (warnedProperties[name] = !0)490 );491 if (492 "function" === typeof value &&493 (("form" === tagName && "action" === name) ||494 ("input" === tagName && "formAction" === name) ||495 ("button" === tagName && "formAction" === name))496 )497 return !0;498 if (null != eventRegistry) {499 tagName = eventRegistry.possibleRegistrationNames;500 if (eventRegistry.registrationNameDependencies.hasOwnProperty(name))501 return !0;502 eventRegistry = tagName.hasOwnProperty(lowerCasedName)503 ? tagName[lowerCasedName]504 : null;505 if (null != eventRegistry)506 return (507 console.error(508 "Invalid event handler property `%s`. Did you mean `%s`?",509 name,510 eventRegistry511 ),512 (warnedProperties[name] = !0)513 );514 if (EVENT_NAME_REGEX.test(name))515 return (516 console.error(517 "Unknown event handler property `%s`. It will be ignored.",518 name519 ),520 (warnedProperties[name] = !0)521 );522 } else if (EVENT_NAME_REGEX.test(name))523 return (524 INVALID_EVENT_NAME_REGEX.test(name) &&525 console.error(526 "Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",527 name528 ),529 (warnedProperties[name] = !0)530 );531 if (rARIA.test(name) || rARIACamel.test(name)) return !0;532 if ("innerhtml" === lowerCasedName)533 return (534 console.error(535 "Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."536 ),537 (warnedProperties[name] = !0)538 );539 if ("aria" === lowerCasedName)540 return (541 console.error(542 "The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."543 ),544 (warnedProperties[name] = !0)545 );546 if (547 "is" === lowerCasedName &&548 null !== value &&549 void 0 !== value &&550 "string" !== typeof value551 )552 return (553 console.error(554 "Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",555 typeof value556 ),557 (warnedProperties[name] = !0)558 );559 if ("number" === typeof value && isNaN(value))560 return (561 console.error(562 "Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",563 name564 ),565 (warnedProperties[name] = !0)566 );567 if (possibleStandardNames.hasOwnProperty(lowerCasedName)) {568 if (569 ((lowerCasedName = possibleStandardNames[lowerCasedName]),570 lowerCasedName !== name)571 )572 return (573 console.error(574 "Invalid DOM property `%s`. Did you mean `%s`?",575 name,576 lowerCasedName577 ),578 (warnedProperties[name] = !0)579 );580 } else if (name !== lowerCasedName)581 return (582 console.error(583 "React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",584 name,585 lowerCasedName586 ),587 (warnedProperties[name] = !0)588 );589 switch (name) {590 case "dangerouslySetInnerHTML":591 case "children":592 case "style":593 case "suppressContentEditableWarning":594 case "suppressHydrationWarning":595 case "defaultValue":596 case "defaultChecked":597 case "innerHTML":598 case "ref":599 return !0;600 case "innerText":601 case "textContent":602 return !0;603 }604 switch (typeof value) {605 case "boolean":606 switch (name) {607 case "autoFocus":608 case "checked":609 case "multiple":610 case "muted":611 case "selected":612 case "contentEditable":613 case "spellCheck":614 case "draggable":615 case "value":616 case "autoReverse":617 case "externalResourcesRequired":618 case "focusable":619 case "preserveAlpha":620 case "allowFullScreen":621 case "async":622 case "autoPlay":623 case "controls":624 case "default":625 case "defer":626 case "disabled":627 case "disablePictureInPicture":628 case "disableRemotePlayback":629 case "formNoValidate":630 case "hidden":631 case "loop":632 case "noModule":633 case "noValidate":634 case "open":635 case "playsInline":636 case "readOnly":637 case "required":638 case "reversed":639 case "scoped":640 case "seamless":641 case "itemScope":642 case "capture":643 case "download":644 case "inert":645 return !0;646 default:647 lowerCasedName = name.toLowerCase().slice(0, 5);648 if ("data-" === lowerCasedName || "aria-" === lowerCasedName)649 return !0;650 value651 ? console.error(652 'Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',653 value,654 name,655 name,656 value,657 name658 )659 : console.error(660 'Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',661 value,662 name,663 name,664 value,665 name,666 name,667 name668 );669 return (warnedProperties[name] = !0);670 }671 case "function":672 case "symbol":673 return (warnedProperties[name] = !0), !1;674 case "string":675 if ("false" === value || "true" === value) {676 switch (name) {677 case "checked":678 case "selected":679 case "multiple":680 case "muted":681 case "allowFullScreen":682 case "async":683 case "autoPlay":684 case "controls":685 case "default":686 case "defer":687 case "disabled":688 case "disablePictureInPicture":689 case "disableRemotePlayback":690 case "formNoValidate":691 case "hidden":692 case "loop":693 case "noModule":694 case "noValidate":695 case "open":696 case "playsInline":697 case "readOnly":698 case "required":699 case "reversed":700 case "scoped":701 case "seamless":702 case "itemScope":703 case "inert":704 break;705 default:706 return !0;707 }708 console.error(709 "Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",710 value,711 name,712 "false" === value713 ? "The browser will interpret it as a truthy value."714 : 'Although this works, it will not work as expected if you pass the string "false".',715 name,716 value717 );718 warnedProperties[name] = !0;719 }720 }721 return !0;722 }723 function warnUnknownProperties(type, props, eventRegistry) {724 var unknownProps = [],725 key;726 for (key in props)727 validateProperty(type, key, props[key], eventRegistry) ||728 unknownProps.push(key);729 props = unknownProps730 .map(function (prop) {731 return "`" + prop + "`";732 })733 .join(", ");734 1 === unknownProps.length735 ? console.error(736 "Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",737 props,738 type739 )740 : 1 < unknownProps.length &&741 console.error(742 "Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",743 props,744 type745 );746 }747 function camelize(string) {748 return string.replace(hyphenPattern, function (_, character) {749 return character.toUpperCase();750 });751 }752 function escapeTextForBrowser(text) {753 if (754 "boolean" === typeof text ||755 "number" === typeof text ||756 "bigint" === typeof text757 )758 return "" + text;759 checkHtmlStringCoercion(text);760 text = "" + text;761 var match = matchHtmlRegExp.exec(text);762 if (match) {763 var html = "",764 index,765 lastIndex = 0;766 for (index = match.index; index < text.length; index++) {767 switch (text.charCodeAt(index)) {768 case 34:769 match = """;770 break;771 case 38:772 match = "&";773 break;774 case 39:775 match = "'";776 break;777 case 60:778 match = "<";779 break;780 case 62:781 match = ">";782 break;783 default:784 continue;785 }786 lastIndex !== index && (html += text.slice(lastIndex, index));787 lastIndex = index + 1;788 html += match;789 }790 text = lastIndex !== index ? html + text.slice(lastIndex, index) : html;791 }792 return text;793 }794 function sanitizeURL(url) {795 return isJavaScriptProtocol.test("" + url)796 ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')"797 : url;798 }799 function escapeEntireInlineScriptContent(scriptText) {800 checkHtmlStringCoercion(scriptText);801 return ("" + scriptText).replace(scriptRegex, scriptReplacer);802 }803 function createRenderState(804 resumableState,805 nonce,806 externalRuntimeConfig,807 importMap,808 onHeaders,809 maxHeadersLength810 ) {811 externalRuntimeConfig =812 "string" === typeof nonce ? nonce : nonce && nonce.script;813 var inlineScriptWithNonce =814 void 0 === externalRuntimeConfig815 ? startInlineScript816 : stringToPrecomputedChunk(817 '<script nonce="' +818 escapeTextForBrowser(externalRuntimeConfig) +819 '"'820 ),821 nonceStyle = "string" === typeof nonce ? void 0 : nonce && nonce.style,822 inlineStyleWithNonce =823 void 0 === nonceStyle824 ? startInlineStyle825 : stringToPrecomputedChunk(826 '<style nonce="' + escapeTextForBrowser(nonceStyle) + '"'827 ),828 idPrefix = resumableState.idPrefix,829 bootstrapChunks = [],830 bootstrapScriptContent = resumableState.bootstrapScriptContent,831 bootstrapScripts = resumableState.bootstrapScripts,832 bootstrapModules = resumableState.bootstrapModules;833 void 0 !== bootstrapScriptContent &&834 (bootstrapChunks.push(inlineScriptWithNonce),835 pushCompletedShellIdAttribute(bootstrapChunks, resumableState),836 bootstrapChunks.push(837 endOfStartTag,838 stringToChunk(839 escapeEntireInlineScriptContent(bootstrapScriptContent)840 ),841 endInlineScript842 ));843 bootstrapScriptContent = [];844 void 0 !== importMap &&845 (bootstrapScriptContent.push(importMapScriptStart),846 bootstrapScriptContent.push(847 stringToChunk(848 escapeEntireInlineScriptContent(JSON.stringify(importMap))849 )850 ),851 bootstrapScriptContent.push(importMapScriptEnd));852 onHeaders &&853 "number" === typeof maxHeadersLength &&854 0 >= maxHeadersLength &&855 console.error(856 "React expected a positive non-zero `maxHeadersLength` option but found %s instead. When using the `onHeaders` option you may supply an optional `maxHeadersLength` option as well however, when setting this value to zero or less no headers will be captured.",857 0 === maxHeadersLength ? "zero" : maxHeadersLength858 );859 importMap = onHeaders860 ? {861 preconnects: "",862 fontPreloads: "",863 highImagePreloads: "",864 remainingCapacity:865 2 +866 ("number" === typeof maxHeadersLength ? maxHeadersLength : 2e3)867 }868 : null;869 onHeaders = {870 placeholderPrefix: stringToPrecomputedChunk(idPrefix + "P:"),871 segmentPrefix: stringToPrecomputedChunk(idPrefix + "S:"),872 boundaryPrefix: stringToPrecomputedChunk(idPrefix + "B:"),873 startInlineScript: inlineScriptWithNonce,874 startInlineStyle: inlineStyleWithNonce,875 preamble: createPreambleState(),876 externalRuntimeScript: null,877 bootstrapChunks: bootstrapChunks,878 importMapChunks: bootstrapScriptContent,879 onHeaders: onHeaders,880 headers: importMap,881 resets: {882 font: {},883 dns: {},884 connect: { default: {}, anonymous: {}, credentials: {} },885 image: {},886 style: {}887 },888 charsetChunks: [],889 viewportChunks: [],890 hoistableChunks: [],891 preconnects: new Set(),892 fontPreloads: new Set(),893 highImagePreloads: new Set(),894 styles: new Map(),895 bootstrapScripts: new Set(),896 scripts: new Set(),897 bulkPreloads: new Set(),898 preloads: {899 images: new Map(),900 stylesheets: new Map(),901 scripts: new Map(),902 moduleScripts: new Map()903 },904 nonce: { script: externalRuntimeConfig, style: nonceStyle },905 hoistableState: null,906 stylesToHoist: !1907 };908 if (void 0 !== bootstrapScripts)909 for (importMap = 0; importMap < bootstrapScripts.length; importMap++)910 (maxHeadersLength = bootstrapScripts[importMap]),911 (inlineStyleWithNonce = nonceStyle = void 0),912 (idPrefix = {913 rel: "preload",914 as: "script",915 fetchPriority: "low",916 nonce: nonce917 }),918 "string" === typeof maxHeadersLength919 ? (idPrefix.href = inlineScriptWithNonce = maxHeadersLength)920 : ((idPrefix.href = inlineScriptWithNonce = maxHeadersLength.src),921 (idPrefix.integrity = inlineStyleWithNonce =922 "string" === typeof maxHeadersLength.integrity923 ? maxHeadersLength.integrity924 : void 0),925 (idPrefix.crossOrigin = nonceStyle =926 "string" === typeof maxHeadersLength ||927 null == maxHeadersLength.crossOrigin928 ? void 0929 : "use-credentials" === maxHeadersLength.crossOrigin930 ? "use-credentials"931 : "")),932 preloadBootstrapScriptOrModule(933 resumableState,934 onHeaders,935 inlineScriptWithNonce,936 idPrefix937 ),938 bootstrapChunks.push(939 startScriptSrc,940 stringToChunk(escapeTextForBrowser(inlineScriptWithNonce)),941 attributeEnd942 ),943 externalRuntimeConfig &&944 bootstrapChunks.push(945 scriptNonce,946 stringToChunk(escapeTextForBrowser(externalRuntimeConfig)),947 attributeEnd948 ),949 "string" === typeof inlineStyleWithNonce &&950 bootstrapChunks.push(951 scriptIntegirty,952 stringToChunk(escapeTextForBrowser(inlineStyleWithNonce)),953 attributeEnd954 ),955 "string" === typeof nonceStyle &&956 bootstrapChunks.push(957 scriptCrossOrigin,958 stringToChunk(escapeTextForBrowser(nonceStyle)),959 attributeEnd960 ),961 pushCompletedShellIdAttribute(bootstrapChunks, resumableState),962 bootstrapChunks.push(endAsyncScript);963 if (void 0 !== bootstrapModules)964 for (nonce = 0; nonce < bootstrapModules.length; nonce++)965 (bootstrapScripts = bootstrapModules[nonce]),966 (inlineScriptWithNonce = maxHeadersLength = void 0),967 (nonceStyle = {968 rel: "modulepreload",969 fetchPriority: "low",970 nonce: externalRuntimeConfig971 }),972 "string" === typeof bootstrapScripts973 ? (nonceStyle.href = importMap = bootstrapScripts)974 : ((nonceStyle.href = importMap = bootstrapScripts.src),975 (nonceStyle.integrity = inlineScriptWithNonce =976 "string" === typeof bootstrapScripts.integrity977 ? bootstrapScripts.integrity978 : void 0),979 (nonceStyle.crossOrigin = maxHeadersLength =980 "string" === typeof bootstrapScripts ||981 null == bootstrapScripts.crossOrigin982 ? void 0983 : "use-credentials" === bootstrapScripts.crossOrigin984 ? "use-credentials"985 : "")),986 preloadBootstrapScriptOrModule(987 resumableState,988 onHeaders,989 importMap,990 nonceStyle991 ),992 bootstrapChunks.push(993 startModuleSrc,994 stringToChunk(escapeTextForBrowser(importMap)),995 attributeEnd996 ),997 externalRuntimeConfig &&998 bootstrapChunks.push(999 scriptNonce,1000 stringToChunk(escapeTextForBrowser(externalRuntimeConfig)),1001 attributeEnd1002 ),1003 "string" === typeof inlineScriptWithNonce &&1004 bootstrapChunks.push(1005 scriptIntegirty,1006 stringToChunk(escapeTextForBrowser(inlineScriptWithNonce)),1007 attributeEnd1008 ),1009 "string" === typeof maxHeadersLength &&1010 bootstrapChunks.push(1011 scriptCrossOrigin,1012 stringToChunk(escapeTextForBrowser(maxHeadersLength)),1013 attributeEnd1014 ),1015 pushCompletedShellIdAttribute(bootstrapChunks, resumableState),1016 bootstrapChunks.push(endAsyncScript);1017 return onHeaders;1018 }1019 function createResumableState(1020 identifierPrefix,1021 externalRuntimeConfig,1022 bootstrapScriptContent,1023 bootstrapScripts,1024 bootstrapModules1025 ) {1026 return {1027 idPrefix: void 0 === identifierPrefix ? "" : identifierPrefix,1028 nextFormID: 0,1029 streamingFormat: 0,1030 bootstrapScriptContent: bootstrapScriptContent,1031 bootstrapScripts: bootstrapScripts,1032 bootstrapModules: bootstrapModules,1033 instructions: NothingSent,1034 hasBody: !1,1035 hasHtml: !1,1036 unknownResources: {},1037 dnsResources: {},1038 connectResources: { default: {}, anonymous: {}, credentials: {} },1039 imageResources: {},1040 styleResources: {},1041 scriptResources: {},1042 moduleUnknownResources: {},1043 moduleScriptResources: {}1044 };1045 }1046 function createPreambleState() {1047 return { htmlChunks: null, headChunks: null, bodyChunks: null };1048 }1049 function createFormatContext(1050 insertionMode,1051 selectedValue,1052 tagScope,1053 viewTransition1054 ) {1055 return {1056 insertionMode: insertionMode,1057 selectedValue: selectedValue,1058 tagScope: tagScope,1059 viewTransition: viewTransition1060 };1061 }1062 function createRootFormatContext(namespaceURI) {1063 return createFormatContext(1064 "http://www.w3.org/2000/svg" === namespaceURI1065 ? SVG_MODE1066 : "http://www.w3.org/1998/Math/MathML" === namespaceURI1067 ? MATHML_MODE1068 : ROOT_HTML_MODE,1069 null,1070 0,1071 null1072 );1073 }1074 function getChildFormatContext(parentContext, type, props) {1075 var subtreeScope = parentContext.tagScope & -25;1076 switch (type) {1077 case "noscript":1078 return createFormatContext(HTML_MODE, null, subtreeScope | 1, null);1079 case "select":1080 return createFormatContext(1081 HTML_MODE,1082 null != props.value ? props.value : props.defaultValue,1083 subtreeScope,1084 null1085 );1086 case "svg":1087 return createFormatContext(SVG_MODE, null, subtreeScope, null);1088 case "picture":1089 return createFormatContext(HTML_MODE, null, subtreeScope | 2, null);1090 case "math":1091 return createFormatContext(MATHML_MODE, null, subtreeScope, null);1092 case "foreignObject":1093 return createFormatContext(HTML_MODE, null, subtreeScope, null);1094 case "table":1095 return createFormatContext(HTML_TABLE_MODE, null, subtreeScope, null);1096 case "thead":1097 case "tbody":1098 case "tfoot":1099 return createFormatContext(1100 HTML_TABLE_BODY_MODE,1101 null,1102 subtreeScope,1103 null1104 );1105 case "colgroup":1106 return createFormatContext(1107 HTML_COLGROUP_MODE,1108 null,1109 subtreeScope,1110 null1111 );1112 case "tr":1113 return createFormatContext(1114 HTML_TABLE_ROW_MODE,1115 null,1116 subtreeScope,1117 null1118 );1119 case "head":1120 if (parentContext.insertionMode < HTML_MODE)1121 return createFormatContext(1122 HTML_HEAD_MODE,1123 null,1124 subtreeScope,1125 null1126 );1127 break;1128 case "html":1129 if (parentContext.insertionMode === ROOT_HTML_MODE)1130 return createFormatContext(1131 HTML_HTML_MODE,1132 null,1133 subtreeScope,1134 null1135 );1136 }1137 return parentContext.insertionMode >= HTML_TABLE_MODE ||1138 parentContext.insertionMode < HTML_MODE1139 ? createFormatContext(HTML_MODE, null, subtreeScope, null)1140 : parentContext.tagScope !== subtreeScope1141 ? createFormatContext(1142 parentContext.insertionMode,1143 parentContext.selectedValue,1144 subtreeScope,1145 null1146 )1147 : parentContext;1148 }1149 function getSuspenseViewTransition(parentViewTransition) {1150 return null === parentViewTransition1151 ? null1152 : {1153 update: parentViewTransition.update,1154 enter: "none",1155 exit: "none",1156 share: parentViewTransition.update,1157 name: parentViewTransition.autoName,1158 autoName: parentViewTransition.autoName,1159 nameIdx: 01160 };1161 }1162 function getSuspenseFallbackFormatContext(resumableState, parentContext) {1163 parentContext.tagScope & 32 && (resumableState.instructions |= 128);1164 return createFormatContext(1165 parentContext.insertionMode,1166 parentContext.selectedValue,1167 parentContext.tagScope | 12,1168 getSuspenseViewTransition(parentContext.viewTransition)1169 );1170 }1171 function getSuspenseContentFormatContext(resumableState, parentContext) {1172 resumableState = getSuspenseViewTransition(parentContext.viewTransition);1173 var subtreeScope = parentContext.tagScope | 16;1174 null !== resumableState &&1175 "none" !== resumableState.share &&1176 (subtreeScope |= 64);1177 return createFormatContext(1178 parentContext.insertionMode,1179 parentContext.selectedValue,1180 subtreeScope,1181 resumableState1182 );1183 }1184 function pushTextInstance(target, text, renderState, textEmbedded) {1185 if ("" === text) return textEmbedded;1186 textEmbedded && target.push(textSeparator);1187 target.push(stringToChunk(escapeTextForBrowser(text)));1188 return !0;1189 }1190 function pushStyleAttribute(target, style) {1191 if ("object" !== typeof style)1192 throw Error(1193 "The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX."1194 );1195 var isFirst = !0,1196 styleName;1197 for (styleName in style)1198 if (hasOwnProperty.call(style, styleName)) {1199 var styleValue = style[styleName];1200 if (