react-server-dom-webpack 18.3.0-next-0ffc7f632-20230330 → 18.3.0-next-1308e49a6-20230330
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/cjs/react-server-dom-webpack-node-register.js +1 -1
- package/cjs/react-server-dom-webpack-plugin.js +9 -8
- package/cjs/react-server-dom-webpack-server.browser.development.js +8 -90
- package/cjs/react-server-dom-webpack-server.browser.production.min.js +47 -49
- package/cjs/react-server-dom-webpack-server.edge.development.js +8 -90
- package/cjs/react-server-dom-webpack-server.edge.production.min.js +47 -49
- package/cjs/react-server-dom-webpack-server.node.development.js +8 -90
- package/cjs/react-server-dom-webpack-server.node.production.min.js +48 -50
- package/cjs/react-server-dom-webpack-server.node.unbundled.development.js +8 -90
- package/cjs/react-server-dom-webpack-server.node.unbundled.production.min.js +47 -49
- package/esm/react-server-dom-webpack-node-loader.production.min.js +1 -1
- package/package.json +4 -4
- package/umd/react-server-dom-webpack-server.browser.development.js +8 -90
- package/umd/react-server-dom-webpack-server.browser.production.min.js +41 -42
@@ -10,64 +10,62 @@
|
|
10
10
|
'use strict';var aa=require("util"),ba=require("async_hooks"),ca=require("react"),da=new ba.AsyncLocalStorage,f=null,m=0,n=!0;function p(a,b){a=a.write(b);n=n&&a}
|
11
11
|
function q(a,b){if("string"===typeof b){if(0!==b.length)if(2048<3*b.length)0<m&&(p(a,f.subarray(0,m)),f=new Uint8Array(2048),m=0),p(a,r.encode(b));else{var d=f;0<m&&(d=f.subarray(m));d=r.encodeInto(b,d);var c=d.read;m+=d.written;c<b.length&&(p(a,f.subarray(0,m)),f=new Uint8Array(2048),m=r.encodeInto(b.slice(c),f).written);2048===m&&(p(a,f),f=new Uint8Array(2048),m=0)}}else 0!==b.byteLength&&(2048<b.byteLength?(0<m&&(p(a,f.subarray(0,m)),f=new Uint8Array(2048),m=0),p(a,b)):(d=f.length-m,d<b.byteLength&&
|
12
12
|
(0===d?p(a,f):(f.set(b.subarray(0,d),m),m+=d,p(a,f),b=b.subarray(d)),f=new Uint8Array(2048),m=0),f.set(b,m),m+=b.byteLength,2048===m&&(p(a,f),f=new Uint8Array(2048),m=0)));return n}var r=new aa.TextEncoder;function t(a){return r.encode(a)}var u=JSON.stringify;function ea(a,b,d){a=u(d,a.toJSON);return b.toString(16)+":"+a+"\n"}function v(a,b,d){a=u(d);return b.toString(16)+":"+a+"\n"}
|
13
|
-
var x=Symbol.for("react.client.reference"),fa=Symbol.for("react.server.reference"),z=Symbol.for("react.element"),ha=Symbol.for("react.fragment"),ia=Symbol.for("react.provider"),ja=Symbol.for("react.server_context"),ka=Symbol.for("react.forward_ref"),la=Symbol.for("react.suspense"),ma=Symbol.for("react.suspense_list"),
|
14
|
-
function B(a,b,d,c,e
|
15
|
-
"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){new B(
|
13
|
+
var x=Symbol.for("react.client.reference"),fa=Symbol.for("react.server.reference"),z=Symbol.for("react.element"),ha=Symbol.for("react.fragment"),ia=Symbol.for("react.provider"),ja=Symbol.for("react.server_context"),ka=Symbol.for("react.forward_ref"),la=Symbol.for("react.suspense"),ma=Symbol.for("react.suspense_list"),oa=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),pa=Symbol.for("react.default_value"),qa=Symbol.for("react.memo_cache_sentinel"),ra=Symbol.iterator;
|
14
|
+
function B(a,b,d,c,e){this.acceptsBooleans=2===a||3===a||4===a;this.attributeName=b;this.attributeNamespace=d;this.type=a;this.sanitizeURL=c;this.removeEmptyString=e}["contentEditable","draggable","spellCheck","value"].forEach(function(a){new B(2,a.toLowerCase(),null,!1,!1)});
|
15
|
+
"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){new B(3,a.toLowerCase(),null,!1,!1)});["rowSpan","start"].forEach(function(a){new B(5,a.toLowerCase(),null,!1,!1)});var C=/[\-:]([a-z])/g;function sa(a){return a[1].toUpperCase()}
|
16
16
|
"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering transform-origin underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){a.replace(C,sa)});
|
17
|
-
"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){a.replace(C,sa)});["xml:base","xml:lang","xml:space"].forEach(function(a){a.replace(C,sa)});["tabIndex","crossOrigin"].forEach(function(a){new B(
|
18
|
-
|
19
|
-
|
20
|
-
t(
|
21
|
-
t('">');t("</math>");t('<table hidden id="');t('">');t("</table>");t('<table hidden><tbody id="');t('">');t("</tbody></table>");t('<table hidden><tr id="');t('">');t("</tr></table>");t('<table hidden><colgroup id="');t('">');t("</colgroup></table>");t('$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};;$RS("');t('$RS("');t('","');t('")\x3c/script>');t('<template data-rsi="" data-sid="');
|
22
|
-
t('" data-pid="');t('$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RC("');
|
17
|
+
"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){a.replace(C,sa)});["xml:base","xml:lang","xml:space"].forEach(function(a){a.replace(C,sa)});["tabIndex","crossOrigin"].forEach(function(a){new B(1,a.toLowerCase(),null,!1,!1)});["src","href","action"].forEach(function(a){new B(1,a.toLowerCase(),null,!0,!0)});var ta=Array.isArray;t('"></template>');t("<script>");t("\x3c/script>");t('<script src="');t('<script type="module" src="');t('" integrity="');
|
18
|
+
t('" async="">\x3c/script>');t("\x3c!-- --\x3e");t(' style="');t(":");t(";");t(" ");t('="');t('"');t('=""');t(">");t("/>");t(' selected=""');t("\n");t("<!DOCTYPE html>");t("</");t(">");t('<template id="');t('"></template>');t("\x3c!--$--\x3e");t('\x3c!--$?--\x3e<template id="');t('"></template>');t("\x3c!--$!--\x3e");t("\x3c!--/$--\x3e");t("<template");t('"');t(' data-dgst="');t(' data-msg="');t(' data-stck="');t("></template>");t('<div hidden id="');t('">');t("</div>");t('<svg aria-hidden="true" style="display:none" id="');
|
19
|
+
t('">');t("</svg>");t('<math aria-hidden="true" style="display:none" id="');t('">');t("</math>");t('<table hidden id="');t('">');t("</table>");t('<table hidden><tbody id="');t('">');t("</tbody></table>");t('<table hidden><tr id="');t('">');t("</tr></table>");t('<table hidden><colgroup id="');t('">');t("</colgroup></table>");t('$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};;$RS("');
|
20
|
+
t('$RS("');t('","');t('")\x3c/script>');t('<template data-rsi="" data-sid="');t('" data-pid="');t('$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RC("');
|
23
21
|
t('$RC("');t('$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RM=new Map;\n$RR=function(r,t,w){for(var u=$RC,n=$RM,p=new Map,q=document,g,b,h=q.querySelectorAll("link[data-precedence],style[data-precedence]"),v=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?v.push(b):("LINK"===b.tagName&&n.set(b.getAttribute("href"),b),p.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var f=w[b++];if(!f){k=!1;b=0;continue}var c=!1,m=0;var d=f[m++];if(a=n.get(d)){var e=a._p;c=!0}else{a=q.createElement("link");a.href=d;a.rel="stylesheet";for(a.dataset.precedence=\nl=f[m++];e=f[m++];)a.setAttribute(e,f[m++]);e=a._p=new Promise(function(x,y){a.onload=x;a.onerror=y});n.set(d,a)}d=a.getAttribute("media");!e||"l"===e.s||d&&!matchMedia(d).matches||h.push(e);if(c)continue}else{a=v[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=p.get(l)||g;c===g&&(g=a);p.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=q.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(u.bind(null,r,t,""),u.bind(null,r,t,"Resource failed to load"))};$RR("');
|
24
22
|
t('$RM=new Map;\n$RR=function(r,t,w){for(var u=$RC,n=$RM,p=new Map,q=document,g,b,h=q.querySelectorAll("link[data-precedence],style[data-precedence]"),v=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?v.push(b):("LINK"===b.tagName&&n.set(b.getAttribute("href"),b),p.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var f=w[b++];if(!f){k=!1;b=0;continue}var c=!1,m=0;var d=f[m++];if(a=n.get(d)){var e=a._p;c=!0}else{a=q.createElement("link");a.href=d;a.rel="stylesheet";for(a.dataset.precedence=\nl=f[m++];e=f[m++];)a.setAttribute(e,f[m++]);e=a._p=new Promise(function(x,y){a.onload=x;a.onerror=y});n.set(d,a)}d=a.getAttribute("media");!e||"l"===e.s||d&&!matchMedia(d).matches||h.push(e);if(c)continue}else{a=v[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=p.get(l)||g;c===g&&(g=a);p.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=q.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(u.bind(null,r,t,""),u.bind(null,r,t,"Resource failed to load"))};$RR("');
|
25
23
|
t('$RR("');t('","');t('",');t('"');t(")\x3c/script>");t('<template data-rci="" data-bid="');t('<template data-rri="" data-bid="');t('" data-sid="');t('" data-sty="');t('$RX=function(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};;$RX("');t('$RX("');t('"');t(",");t(")\x3c/script>");t('<template data-rxi="" data-bid="');t('" data-dgst="');t('" data-msg="');t('" data-stck="');t('<style media="not all" data-precedence="');
|
26
24
|
t('" data-href="');t('">');t("</style>");t('<style data-precedence="');t('" data-href="');t(" ");t('">');t("</style>");t("[");t(",[");t(",");t("]");var D=null;
|
27
|
-
function E(a,b){if(a!==b){a.context._currentValue=a.parentValue;a=a.parent;var d=b.parent;if(null===a){if(null!==d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");}else{if(null===d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");E(a,d);b.context._currentValue=b.value}}}function
|
28
|
-
function
|
29
|
-
function
|
30
|
-
function
|
31
|
-
function
|
32
|
-
var
|
33
|
-
function K(){throw Error("This Hook is not supported in Server Components.");}function
|
34
|
-
function
|
35
|
-
var
|
36
|
-
function
|
37
|
-
function M(a){if("string"===typeof a)return a;switch(a){case la:return"Suspense";case ma:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case ka:return M(a.render);case
|
38
|
-
function N(a,b){var d=
|
39
|
-
|
40
|
-
function
|
41
|
-
"",identifierCount:1,onError:void 0===d?
|
42
|
-
function
|
43
|
-
Q(a,a.destination)});return d.id}function
|
44
|
-
function R(a,b,d,c,e,g){if(null!==c&&void 0!==c)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");if("function"===typeof b){if(b.$$typeof===x)return[z,b,d,e];I=0;J=g;e=b(e);return"object"===typeof e&&null!==e&&"function"===typeof e.then?"fulfilled"===e.status?e.value:
|
45
|
-
b._init;b=h(b._payload);return R(a,b,d,c,e,g);case ka:return a=b.render,I=0,J=g,a(e,void 0);case
|
46
|
-
function
|
47
|
-
function
|
25
|
+
function E(a,b){if(a!==b){a.context._currentValue=a.parentValue;a=a.parent;var d=b.parent;if(null===a){if(null!==d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");}else{if(null===d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");E(a,d);b.context._currentValue=b.value}}}function ua(a){a.context._currentValue=a.parentValue;a=a.parent;null!==a&&ua(a)}
|
26
|
+
function va(a){var b=a.parent;null!==b&&va(b);a.context._currentValue=a.value}function wa(a,b){a.context._currentValue=a.parentValue;a=a.parent;if(null===a)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===b.depth?E(a,b):wa(a,b)}
|
27
|
+
function xa(a,b){var d=b.parent;if(null===d)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===d.depth?E(a,d):xa(a,d);b.context._currentValue=b.value}function ya(a){var b=D;b!==a&&(null===b?va(a):null===a?ua(b):b.depth===a.depth?E(b,a):b.depth>a.depth?wa(b,a):xa(b,a),D=a)}function za(a,b){var d=a._currentValue;a._currentValue=b;var c=D;return D=a={parent:c,depth:null===c?0:c.depth+1,context:a,parentValue:d,value:b}}var Aa=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`");
|
28
|
+
function Ba(){}function Ca(a,b,d){d=a[d];void 0===d?a.push(b):d!==b&&(b.then(Ba,Ba),b=d);switch(b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;default:if("string"!==typeof b.status)switch(a=b,a.status="pending",a.then(function(c){if("pending"===b.status){var e=b;e.status="fulfilled";e.value=c}},function(c){if("pending"===b.status){var e=b;e.status="rejected";e.reason=c}}),b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;}F=b;throw Aa;}}var F=null;
|
29
|
+
function Da(){if(null===F)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=F;F=null;return a}var G=null,I=0,J=null;function Ea(){var a=J;J=null;return a}function Fa(a){return a._currentValue}
|
30
|
+
var Ja={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:K,useTransition:K,readContext:Fa,useContext:Fa,useReducer:K,useRef:K,useState:K,useInsertionEffect:K,useLayoutEffect:K,useImperativeHandle:K,useEffect:K,useId:Ga,useMutableSource:K,useSyncExternalStore:K,useCacheRefresh:function(){return Ha},useMemoCache:function(a){for(var b=Array(a),d=0;d<a;d++)b[d]=qa;return b},use:Ia};
|
31
|
+
function K(){throw Error("This Hook is not supported in Server Components.");}function Ha(){throw Error("Refreshing the cache is not supported in Server Components.");}function Ga(){if(null===G)throw Error("useId can only be used while React is rendering");var a=G.identifierCount++;return":"+G.identifierPrefix+"S"+a.toString(32)+":"}
|
32
|
+
function Ia(a){if(null!==a&&"object"===typeof a||"function"===typeof a){if("function"===typeof a.then){var b=I;I+=1;null===J&&(J=[]);return Ca(J,a,b)}if(a.$$typeof===ja)return a._currentValue}throw Error("An unsupported type was passed to use(): "+String(a));}function Ka(){return(new AbortController).signal}function La(){if(L)return L;var a=da.getStore();return a?a:new Map}
|
33
|
+
var Ma={getCacheSignal:function(){var a=La(),b=a.get(Ka);void 0===b&&(b=Ka(),a.set(Ka,b));return b},getCacheForType:function(a){var b=La(),d=b.get(a);void 0===d&&(d=a(),b.set(a,d));return d}},L=null;function Na(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(b,d){return d})}
|
34
|
+
function Oa(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.substr(0,10)+"...");case "object":if(ta(a))return"[...]";a=Na(a);return"Object"===a?"{...}":a;case "function":return"function";default:return String(a)}}
|
35
|
+
function M(a){if("string"===typeof a)return a;switch(a){case la:return"Suspense";case ma:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case ka:return M(a.render);case oa:return M(a.type);case A:var b=a._payload;a=a._init;try{return M(a(b))}catch(d){}}return""}
|
36
|
+
function N(a,b){var d=Na(a);if("Object"!==d&&"Array"!==d)return d;d=-1;var c=0;if(ta(a)){var e="[";for(var g=0;g<a.length;g++){0<g&&(e+=", ");var h=a[g];h="object"===typeof h&&null!==h?N(h):Oa(h);""+g===b?(d=e.length,c=h.length,e+=h):e=10>h.length&&40>e.length+h.length?e+h:e+"..."}e+="]"}else if(a.$$typeof===z)e="<"+M(a.type)+"/>";else{e="{";g=Object.keys(a);for(h=0;h<g.length;h++){0<h&&(e+=", ");var k=g[h],l=JSON.stringify(k);e+=('"'+k+'"'===l?k:l)+": ";l=a[k];l="object"===typeof l&&null!==l?N(l):
|
37
|
+
Oa(l);k===b?(d=e.length,c=l.length,e+=l):e=10>l.length&&40>e.length+l.length?e+l:e+"..."}e+="}"}return void 0===b?e:-1<d&&0<c?(a=" ".repeat(d)+"^".repeat(c),"\n "+e+"\n "+a):"\n "+e}var Pa=ca.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Qa=Pa.ContextRegistry,Ra=Pa.ReactCurrentDispatcher,Sa=Pa.ReactCurrentCache;function Ta(a){console.error(a)}
|
38
|
+
function Ua(a,b,d,c,e){if(null!==Sa.current&&Sa.current!==Ma)throw Error("Currently React only supports one RSC renderer at a time.");Sa.current=Ma;var g=new Set,h=[],k={status:0,fatalError:null,destination:null,bundlerConfig:b,cache:new Map,nextChunkId:0,pendingChunks:0,abortableTasks:g,pingedTasks:h,completedImportChunks:[],completedJSONChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenClientReferences:new Map,writtenServerReferences:new Map,writtenProviders:new Map,identifierPrefix:e||
|
39
|
+
"",identifierCount:1,onError:void 0===d?Ta:d,toJSON:function(l,w){return Va(k,this,l,w)}};k.pendingChunks++;b=Wa(c);a=Xa(k,a,b,g);h.push(a);return k}var Ya={};
|
40
|
+
function Za(a,b){a.pendingChunks++;var d=Xa(a,null,D,a.abortableTasks);switch(b.status){case "fulfilled":return d.model=b.value,$a(a,d),d.id;case "rejected":var c=O(a,b.reason);P(a,d.id,c);return d.id;default:"string"!==typeof b.status&&(b.status="pending",b.then(function(e){"pending"===b.status&&(b.status="fulfilled",b.value=e)},function(e){"pending"===b.status&&(b.status="rejected",b.reason=e)}))}b.then(function(e){d.model=e;$a(a,d)},function(e){d.status=4;e=O(a,e);P(a,d.id,e);null!==a.destination&&
|
41
|
+
Q(a,a.destination)});return d.id}function ab(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}function bb(a){switch(a.status){case "fulfilled":case "rejected":break;default:"string"!==typeof a.status&&(a.status="pending",a.then(function(b){"pending"===a.status&&(a.status="fulfilled",a.value=b)},function(b){"pending"===a.status&&(a.status="rejected",a.reason=b)}))}return{$$typeof:A,_payload:a,_init:ab}}
|
42
|
+
function R(a,b,d,c,e,g){if(null!==c&&void 0!==c)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");if("function"===typeof b){if(b.$$typeof===x)return[z,b,d,e];I=0;J=g;e=b(e);return"object"===typeof e&&null!==e&&"function"===typeof e.then?"fulfilled"===e.status?e.value:bb(e):e}if("string"===typeof b)return[z,b,d,e];if("symbol"===typeof b)return b===ha?e.children:[z,b,d,e];if(null!=b&&"object"===typeof b){if(b.$$typeof===x)return[z,b,d,e];switch(b.$$typeof){case A:var h=
|
43
|
+
b._init;b=h(b._payload);return R(a,b,d,c,e,g);case ka:return a=b.render,I=0,J=g,a(e,void 0);case oa:return R(a,b.type,d,c,e,g);case ia:return za(b._context,e.value),[z,b,d,{value:e.value,children:e.children,__pop:Ya}]}}throw Error("Unsupported Server Component type: "+Oa(b));}function $a(a,b){var d=a.pingedTasks;d.push(b);1===d.length&&setImmediate(function(){return cb(a)})}
|
44
|
+
function Xa(a,b,d,c){var e={id:a.nextChunkId++,status:0,model:b,context:d,ping:function(){return $a(a,e)},thenableState:null};c.add(e);return e}
|
45
|
+
function db(a,b,d,c){var e=c.$$async?c.$$id+"#async":c.$$id,g=a.writtenClientReferences,h=g.get(e);if(void 0!==h)return b[0]===z&&"1"===d?"$L"+h.toString(16):"$"+h.toString(16);try{var k=a.bundlerConfig[c.$$id];var l=c.$$async?{id:k.id,chunks:k.chunks,name:k.name,async:!0}:k;a.pendingChunks++;var w=a.nextChunkId++,na=u(l);var y=w.toString(16)+":I"+na+"\n";a.completedImportChunks.push(y);g.set(e,w);return b[0]===z&&"1"===d?"$L"+w.toString(16):"$"+w.toString(16)}catch(S){return a.pendingChunks++,b=
|
48
46
|
a.nextChunkId++,d=O(a,S),P(a,b,d),"$"+b.toString(16)}}
|
49
|
-
function
|
50
|
-
c.toString(16)}if(null===c)return null;if("object"===typeof c){if(c.$$typeof===x)return
|
51
|
-
c===pa?a.context._defaultValue:c;D=a.parent;return}return!
|
47
|
+
function Va(a,b,d,c){switch(c){case z:return"$"}for(;"object"===typeof c&&null!==c&&(c.$$typeof===z||c.$$typeof===A);)try{switch(c.$$typeof){case z:var e=c;c=R(a,e.type,e.key,e.ref,e.props,null);break;case A:var g=c._init;c=g(c._payload)}}catch(h){d=h===Aa?Da():h;if("object"===typeof d&&null!==d&&"function"===typeof d.then)return a.pendingChunks++,a=Xa(a,c,D,a.abortableTasks),c=a.ping,d.then(c,c),a.thenableState=Ea(),"$L"+a.id.toString(16);a.pendingChunks++;c=a.nextChunkId++;d=O(a,d);P(a,c,d);return"$L"+
|
48
|
+
c.toString(16)}if(null===c)return null;if("object"===typeof c){if(c.$$typeof===x)return db(a,b,d,c);if("function"===typeof c.then)return"$@"+Za(a,c).toString(16);if(c.$$typeof===ia)return c=c._context._globalName,b=a.writtenProviders,d=b.get(d),void 0===d&&(a.pendingChunks++,d=a.nextChunkId++,b.set(c,d),c=v(a,d,"$P"+c),a.completedJSONChunks.push(c)),"$"+d.toString(16);if(c===Ya){a=D;if(null===a)throw Error("Tried to pop a Context at the root of the app. This is a bug in React.");c=a.parentValue;a.context._currentValue=
|
49
|
+
c===pa?a.context._defaultValue:c;D=a.parent;return}return!ta(c)&&(null===c||"object"!==typeof c?a=null:(a=ra&&c[ra]||c["@@iterator"],a="function"===typeof a?a:null),a)?Array.from(c):c}if("string"===typeof c)return a="$"===c[0]?"$"+c:c,a;if("boolean"===typeof c||"number"===typeof c)return c;if("undefined"===typeof c)return"$undefined";if("function"===typeof c){if(c.$$typeof===x)return db(a,b,d,c);if(c.$$typeof===fa)return d=a.writtenServerReferences,b=d.get(c),void 0!==b?a="$F"+b.toString(16):(b=c.$$bound,
|
52
50
|
e={id:c.$$id,bound:b?Promise.resolve(b):null},a.pendingChunks++,b=a.nextChunkId++,e=ea(a,b,e),a.completedJSONChunks.push(e),d.set(c,b),a="$F"+b.toString(16)),a;if(/^on[A-Z]/.test(d))throw Error("Event handlers cannot be passed to Client Component props."+N(b,d)+"\nIf you need interactivity, consider converting part of this to a Client Component.");throw Error('Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server".'+N(b,d));}if("symbol"===
|
53
51
|
typeof c){e=a.writtenSymbols;g=e.get(c);if(void 0!==g)return"$"+g.toString(16);g=c.description;if(Symbol.for(g)!==c)throw Error("Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for("+(c.description+") cannot be found among global symbols.")+N(b,d));a.pendingChunks++;d=a.nextChunkId++;b=v(a,d,"$S"+g);a.completedImportChunks.push(b);e.set(c,d);return"$"+d.toString(16)}if("bigint"===typeof c)return"$n"+c.toString(10);throw Error("Type "+typeof c+
|
54
|
-
" is not supported in Client Component props."+N(b,d));}function O(a,b){a=a.onError;b=a(b);if(null!=b&&"string"!==typeof b)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof b+'" instead');return b||""}function
|
52
|
+
" is not supported in Client Component props."+N(b,d));}function O(a,b){a=a.onError;b=a(b);if(null!=b&&"string"!==typeof b)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof b+'" instead');return b||""}function eb(a,b){null!==a.destination?(a.status=2,a.destination.destroy(b)):(a.status=1,a.fatalError=b)}
|
55
53
|
function P(a,b,d){d={digest:d};b=b.toString(16)+":E"+u(d)+"\n";a.completedErrorChunks.push(b)}
|
56
|
-
function
|
57
|
-
g.status=1}catch(H){var y=H===
|
54
|
+
function cb(a){var b=Ra.current,d=L;Ra.current=Ja;L=a.cache;G=a;try{var c=a.pingedTasks;a.pingedTasks=[];for(var e=0;e<c.length;e++){var g=c[e];var h=a;if(0===g.status){ya(g.context);try{var k=g.model;if("object"===typeof k&&null!==k&&k.$$typeof===z){var l=k,w=g.thenableState;g.model=k;k=R(h,l.type,l.key,l.ref,l.props,w);for(g.thenableState=null;"object"===typeof k&&null!==k&&k.$$typeof===z;)l=k,g.model=k,k=R(h,l.type,l.key,l.ref,l.props,null)}var na=ea(h,g.id,k);h.completedJSONChunks.push(na);h.abortableTasks.delete(g);
|
55
|
+
g.status=1}catch(H){var y=H===Aa?Da():H;if("object"===typeof y&&null!==y&&"function"===typeof y.then){var S=g.ping;y.then(S,S);g.thenableState=Ea()}else{h.abortableTasks.delete(g);g.status=4;var pb=O(h,y);P(h,g.id,pb)}}}}null!==a.destination&&Q(a,a.destination)}catch(H){O(a,H),eb(a,H)}finally{Ra.current=b,L=d,G=null}}
|
58
56
|
function Q(a,b){f=new Uint8Array(2048);m=0;n=!0;try{for(var d=a.completedImportChunks,c=0;c<d.length;c++)if(a.pendingChunks--,!q(b,d[c])){a.destination=null;c++;break}d.splice(0,c);var e=a.completedJSONChunks;for(c=0;c<e.length;c++)if(a.pendingChunks--,!q(b,e[c])){a.destination=null;c++;break}e.splice(0,c);var g=a.completedErrorChunks;for(c=0;c<g.length;c++)if(a.pendingChunks--,!q(b,g[c])){a.destination=null;c++;break}g.splice(0,c)}finally{f&&0<m&&b.write(f.subarray(0,m)),f=null,m=0,n=!0}"function"===
|
59
|
-
typeof b.flush&&b.flush();0===a.pendingChunks&&b.end()}function
|
60
|
-
function
|
61
|
-
function
|
62
|
-
function
|
63
|
-
null}function
|
57
|
+
typeof b.flush&&b.flush();0===a.pendingChunks&&b.end()}function fb(a){setImmediate(function(){return da.run(a.cache,cb,a)})}function gb(a,b){if(1===a.status)a.status=2,b.destroy(a.fatalError);else if(2!==a.status&&null===a.destination){a.destination=b;try{Q(a,b)}catch(d){O(a,d),eb(a,d)}}}
|
58
|
+
function hb(a,b){try{var d=a.abortableTasks;if(0<d.size){var c=O(a,void 0===b?Error("The render was aborted by the server without a reason."):b);a.pendingChunks++;var e=a.nextChunkId++;P(a,e,c);d.forEach(function(g){g.status=3;var h="$"+e.toString(16);g=v(a,g.id,h);a.completedErrorChunks.push(g)});d.clear()}null!==a.destination&&Q(a,a.destination)}catch(g){O(a,g),eb(a,g)}}
|
59
|
+
function Wa(a){if(a){var b=D;ya(null);for(var d=0;d<a.length;d++){var c=a[d],e=c[0];c=c[1];Qa[e]||(Qa[e]=ca.createServerContext(e,pa));za(Qa[e],c)}a=D;ya(b);return a}return null}var T=new Map,ib=new Map;function jb(){}
|
60
|
+
function kb(a){for(var b=a.chunks,d=[],c=0;c<b.length;c++){var e=b[c],g=T.get(e);if(void 0===g){g=__webpack_chunk_load__(e);d.push(g);var h=T.set.bind(T,e,null);g.then(h,jb);T.set(e,g)}else null!==g&&d.push(g)}if(a.async){if(b=ib.get(a.id))return"fulfilled"===b.status?null:b;var k=Promise.all(d).then(function(){return __webpack_require__(a.id)});k.then(function(l){k.status="fulfilled";k.value=l},function(l){k.status="rejected";k.reason=l});ib.set(a.id,k);return k}return 0<d.length?Promise.all(d):
|
61
|
+
null}function lb(a){if(a.async){var b=ib.get(a.id);if("fulfilled"===b.status)b=b.value;else throw b.reason;}else b=__webpack_require__(a.id);return"*"===a.name?b:""===a.name?b.__esModule?b.default:b:b[a.name]}function U(a,b,d,c){this.status=a;this.value=b;this.reason=d;this._response=c}U.prototype=Object.create(Promise.prototype);
|
64
62
|
U.prototype.then=function(a,b){switch(this.status){case "resolved_model":V(this)}switch(this.status){case "fulfilled":a(this.value);break;case "pending":case "blocked":a&&(null===this.value&&(this.value=[]),this.value.push(a));b&&(null===this.reason&&(this.reason=[]),this.reason.push(b));break;default:b(this.reason)}};function W(a,b){for(var d=0;d<a.length;d++)(0,a[d])(b)}
|
65
|
-
function
|
66
|
-
function V(a){var b=X,d=Y;X=a;Y=null;try{var c=JSON.parse(a.value,a._response._fromJSON);null!==Y&&0<Y.deps?(Y.value=c,a.status="blocked",a.value=null,a.reason=null):(a.status="fulfilled",a.value=c)}catch(e){a.status="rejected",a.reason=e}finally{X=b,Y=d}}function
|
67
|
-
function
|
68
|
-
function
|
69
|
-
case "pending":case "blocked":return c=X,a.then(
|
70
|
-
function
|
71
|
-
exports.decodeReply=function(a,b){var d=
|
72
|
-
exports.decodeReplyFromBusboy=function(a,b){var d=
|
73
|
-
exports.renderToPipeableStream=function(a,b,d){var c=
|
63
|
+
function mb(a,b){if("pending"===a.status||"blocked"===a.status){var d=a.reason;a.status="rejected";a.reason=b;null!==d&&W(d,b)}}function nb(a,b,d,c,e,g){var h=a._bundlerConfig[b];a=kb(h);if(d)d=Promise.all([d,a]).then(function(k){k=k[0];var l=lb(h);return l.bind.apply(l,[null].concat(k))});else if(a)d=Promise.resolve(a).then(function(){return lb(h)});else return lb(h);d.then(ob(c,e,g),qb(c));return null}var X=null,Y=null;
|
64
|
+
function V(a){var b=X,d=Y;X=a;Y=null;try{var c=JSON.parse(a.value,a._response._fromJSON);null!==Y&&0<Y.deps?(Y.value=c,a.status="blocked",a.value=null,a.reason=null):(a.status="fulfilled",a.value=c)}catch(e){a.status="rejected",a.reason=e}finally{X=b,Y=d}}function rb(a,b){a._chunks.forEach(function(d){"pending"===d.status&&mb(d,b)})}function Z(a,b){var d=a._chunks,c=d.get(b);c||(c=new U("pending",null,null,a),d.set(b,c));return c}
|
65
|
+
function ob(a,b,d){if(Y){var c=Y;c.deps++}else c=Y={deps:1,value:null};return function(e){b[d]=e;c.deps--;0===c.deps&&"blocked"===a.status&&(e=a.value,a.status="fulfilled",a.value=c.value,null!==e&&W(e,c.value))}}function qb(a){return function(b){return mb(a,b)}}
|
66
|
+
function sb(a,b,d,c){if("$"===c[0])switch(c[1]){case "$":return c.substring(1);case "@":return b=parseInt(c.substring(2),16),Z(a,b);case "S":return Symbol.for(c.substring(2));case "F":c=parseInt(c.substring(2),16);c=Z(a,c);"resolved_model"===c.status&&V(c);if("fulfilled"!==c.status)throw c.reason;c=c.value;return nb(a,c.id,c.bound,X,b,d);case "u":return;case "n":return BigInt(c.substring(2));default:c=parseInt(c.substring(1),16);a=Z(a,c);switch(a.status){case "resolved_model":V(a)}switch(a.status){case "fulfilled":return a.value;
|
67
|
+
case "pending":case "blocked":return c=X,a.then(ob(c,b,d),qb(c)),null;default:throw a.reason;}}return c}function tb(a){var b=new Map,d={_bundlerConfig:a,_chunks:b,_fromJSON:function(c,e){return"string"===typeof e?sb(d,this,c,e):e}};return d}
|
68
|
+
function ub(a,b,d){var c=a._chunks,e=c.get(b);if(e){if("pending"===e.status&&(a=e.value,b=e.reason,e.status="resolved_model",e.value=d,null!==a))switch(V(e),e.status){case "fulfilled":W(a,e.value);break;case "pending":case "blocked":e.value=a;e.reason=b;break;case "rejected":b&&W(b,e.reason)}}else c.set(b,new U("resolved_model",d,null,a))}function vb(a){rb(a,Error("Connection closed."))}function wb(a,b){return function(){return gb(b,a)}}
|
69
|
+
exports.decodeReply=function(a,b){var d=tb(b);"string"===typeof a?ub(d,0,a):a.forEach(function(c,e){if("string"===typeof c)ub(d,+e,c);else throw Error("Not implemented.");});vb(d);return Z(d,0)};
|
70
|
+
exports.decodeReplyFromBusboy=function(a,b){var d=tb(b);a.on("field",function(c,e){ub(d,+c,e)});a.on("file",function(c,e,g){if("base64"===g.encoding.toLowerCase())throw Error("React doesn't accept base64 encoded file uploads because we don't expect form data passed from a browser to ever encode data that way. If that's the wrong assumption, we can easily fix it.");throw Error("Not implemented.");});a.on("finish",function(){vb(d)});a.on("error",function(c){rb(d,c)});return Z(d,0)};
|
71
|
+
exports.renderToPipeableStream=function(a,b,d){var c=Ua(a,b,d?d.onError:void 0,d?d.context:void 0,d?d.identifierPrefix:void 0),e=!1;fb(c);return{pipe:function(g){if(e)throw Error("React currently only supports piping to one writable stream.");e=!0;gb(c,g);g.on("drain",wb(g,c));return g},abort:function(g){hb(c,g)}}};
|
@@ -335,8 +335,8 @@ function getIteratorFn(maybeIterable) {
|
|
335
335
|
return null;
|
336
336
|
}
|
337
337
|
|
338
|
+
// A simple string attribute.
|
338
339
|
// Attributes that aren't in the filter are presumed to have this type.
|
339
|
-
|
340
340
|
var STRING = 1; // A string attribute that accepts booleans in React. In HTML, these are called
|
341
341
|
// "enumerated" attributes with "true" and "false" as possible values.
|
342
342
|
// When true, it should be set to a "true" string.
|
@@ -356,12 +356,10 @@ var OVERLOADED_BOOLEAN = 4; // An attribute that must be numeric or parse as a n
|
|
356
356
|
|
357
357
|
var NUMERIC = 5; // An attribute that must be positive numeric or parse as a positive numeric.
|
358
358
|
|
359
|
-
function PropertyInfoRecord(
|
359
|
+
function PropertyInfoRecord(type, attributeName, attributeNamespace, sanitizeURL, removeEmptyString) {
|
360
360
|
this.acceptsBooleans = type === BOOLEANISH_STRING || type === BOOLEAN || type === OVERLOADED_BOOLEAN;
|
361
361
|
this.attributeName = attributeName;
|
362
362
|
this.attributeNamespace = attributeNamespace;
|
363
|
-
this.mustUseProperty = mustUseProperty;
|
364
|
-
this.propertyName = name;
|
365
363
|
this.type = type;
|
366
364
|
this.sanitizeURL = sanitizeURL;
|
367
365
|
this.removeEmptyString = removeEmptyString;
|
@@ -371,8 +369,7 @@ function PropertyInfoRecord(name, type, mustUseProperty, attributeName, attribut
|
|
371
369
|
|
372
370
|
['contentEditable', 'draggable', 'spellCheck', 'value'].forEach(function (name) {
|
373
371
|
// $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions
|
374
|
-
new PropertyInfoRecord(
|
375
|
-
name.toLowerCase(), // attributeName
|
372
|
+
new PropertyInfoRecord(BOOLEANISH_STRING, name.toLowerCase(), // attributeName
|
376
373
|
null, // attributeNamespace
|
377
374
|
false, // sanitizeURL
|
378
375
|
false);
|
@@ -383,17 +380,15 @@ function PropertyInfoRecord(name, type, mustUseProperty, attributeName, attribut
|
|
383
380
|
'autoFocus', 'autoPlay', 'controls', 'default', 'defer', 'disabled', 'disablePictureInPicture', 'disableRemotePlayback', 'formNoValidate', 'hidden', 'loop', 'noModule', 'noValidate', 'open', 'playsInline', 'readOnly', 'required', 'reversed', 'scoped', 'seamless', // Microdata
|
384
381
|
'itemScope'].forEach(function (name) {
|
385
382
|
// $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions
|
386
|
-
new PropertyInfoRecord(
|
387
|
-
name.toLowerCase(), // attributeName
|
383
|
+
new PropertyInfoRecord(BOOLEAN, name.toLowerCase(), // attributeName
|
388
384
|
null, // attributeNamespace
|
389
385
|
false, // sanitizeURL
|
390
386
|
false);
|
391
|
-
}); // These are
|
387
|
+
}); // These are HTML attributes that are "overloaded booleans": they behave like
|
392
388
|
|
393
389
|
['rowSpan', 'start'].forEach(function (name) {
|
394
390
|
// $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions
|
395
|
-
new PropertyInfoRecord(
|
396
|
-
name.toLowerCase(), // attributeName
|
391
|
+
new PropertyInfoRecord(NUMERIC, name.toLowerCase(), // attributeName
|
397
392
|
null, // attributeNamespace
|
398
393
|
false, // sanitizeURL
|
399
394
|
false);
|
@@ -434,96 +429,19 @@ var capitalize = function (token) {
|
|
434
429
|
|
435
430
|
['tabIndex', 'crossOrigin'].forEach(function (attributeName) {
|
436
431
|
// $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions
|
437
|
-
new PropertyInfoRecord(
|
438
|
-
attributeName.toLowerCase(), // attributeName
|
432
|
+
new PropertyInfoRecord(STRING, attributeName.toLowerCase(), // attributeName
|
439
433
|
null, // attributeNamespace
|
440
434
|
false, // sanitizeURL
|
441
435
|
false);
|
442
436
|
}); // These attributes accept URLs. These must not allow javascript: URLS.
|
443
437
|
['src', 'href', 'action'].forEach(function (attributeName) {
|
444
438
|
// $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions
|
445
|
-
new PropertyInfoRecord(
|
446
|
-
attributeName.toLowerCase(), // attributeName
|
439
|
+
new PropertyInfoRecord(STRING, attributeName.toLowerCase(), // attributeName
|
447
440
|
null, // attributeNamespace
|
448
441
|
true, // sanitizeURL
|
449
442
|
true);
|
450
443
|
});
|
451
444
|
|
452
|
-
/**
|
453
|
-
* CSS properties which accept numbers but are not in units of "px".
|
454
|
-
*/
|
455
|
-
var isUnitlessNumber = {
|
456
|
-
animationIterationCount: true,
|
457
|
-
aspectRatio: true,
|
458
|
-
borderImageOutset: true,
|
459
|
-
borderImageSlice: true,
|
460
|
-
borderImageWidth: true,
|
461
|
-
boxFlex: true,
|
462
|
-
boxFlexGroup: true,
|
463
|
-
boxOrdinalGroup: true,
|
464
|
-
columnCount: true,
|
465
|
-
columns: true,
|
466
|
-
flex: true,
|
467
|
-
flexGrow: true,
|
468
|
-
flexPositive: true,
|
469
|
-
flexShrink: true,
|
470
|
-
flexNegative: true,
|
471
|
-
flexOrder: true,
|
472
|
-
gridArea: true,
|
473
|
-
gridRow: true,
|
474
|
-
gridRowEnd: true,
|
475
|
-
gridRowSpan: true,
|
476
|
-
gridRowStart: true,
|
477
|
-
gridColumn: true,
|
478
|
-
gridColumnEnd: true,
|
479
|
-
gridColumnSpan: true,
|
480
|
-
gridColumnStart: true,
|
481
|
-
fontWeight: true,
|
482
|
-
lineClamp: true,
|
483
|
-
lineHeight: true,
|
484
|
-
opacity: true,
|
485
|
-
order: true,
|
486
|
-
orphans: true,
|
487
|
-
scale: true,
|
488
|
-
tabSize: true,
|
489
|
-
widows: true,
|
490
|
-
zIndex: true,
|
491
|
-
zoom: true,
|
492
|
-
// SVG-related properties
|
493
|
-
fillOpacity: true,
|
494
|
-
floodOpacity: true,
|
495
|
-
stopOpacity: true,
|
496
|
-
strokeDasharray: true,
|
497
|
-
strokeDashoffset: true,
|
498
|
-
strokeMiterlimit: true,
|
499
|
-
strokeOpacity: true,
|
500
|
-
strokeWidth: true
|
501
|
-
};
|
502
|
-
/**
|
503
|
-
* @param {string} prefix vendor-specific prefix, eg: Webkit
|
504
|
-
* @param {string} key style name, eg: transitionDuration
|
505
|
-
* @return {string} style name prefixed with `prefix`, properly camelCased, eg:
|
506
|
-
* WebkitTransitionDuration
|
507
|
-
*/
|
508
|
-
|
509
|
-
function prefixKey(prefix, key) {
|
510
|
-
return prefix + key.charAt(0).toUpperCase() + key.substring(1);
|
511
|
-
}
|
512
|
-
/**
|
513
|
-
* Support style names that may come passed in prefixed by adding permutations
|
514
|
-
* of vendor prefixes.
|
515
|
-
*/
|
516
|
-
|
517
|
-
|
518
|
-
var prefixes = ['Webkit', 'ms', 'Moz', 'O']; // Using Object.keys here, or else the vanilla for-in loop makes IE8 go into an
|
519
|
-
// infinite loop, because it iterates over the newly added props too.
|
520
|
-
|
521
|
-
Object.keys(isUnitlessNumber).forEach(function (prop) {
|
522
|
-
prefixes.forEach(function (prefix) {
|
523
|
-
isUnitlessNumber[prefixKey(prefix, prop)] = isUnitlessNumber[prop];
|
524
|
-
});
|
525
|
-
});
|
526
|
-
|
527
445
|
var isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare
|
528
446
|
|
529
447
|
function isArray(a) {
|