@pezkuwi/react-qr 3.16.7 → 3.17.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/build/bundle-pezkuwi-react-qr.js +97 -80
- package/build/cjs/packageInfo.js +1 -1
- package/build/package.json +1 -1
- package/build/packageInfo.js +1 -1
- package/build-tsc-cjs/packageInfo.js +1 -1
- package/build-tsc-esm/packageInfo.js +1 -1
- package/package.json +1 -1
- package/src/packageInfo.ts +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
- package/tsconfig.spec.tsbuildinfo +1 -1
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
function requireReactJsxRuntime_production_min () {
|
|
29
29
|
if (hasRequiredReactJsxRuntime_production_min) return reactJsxRuntime_production_min;
|
|
30
30
|
hasRequiredReactJsxRuntime_production_min = 1;
|
|
31
|
-
var f=o,k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key
|
|
32
|
-
function q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=""+g);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return {$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}reactJsxRuntime_production_min.Fragment=l;reactJsxRuntime_production_min.jsx=q;reactJsxRuntime_production_min.jsxs=q;
|
|
31
|
+
var f=o,k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:true,ref:true,__self:true,__source:true};
|
|
32
|
+
function q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=""+g);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a) void 0===d[b]&&(d[b]=a[b]);return {$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}reactJsxRuntime_production_min.Fragment=l;reactJsxRuntime_production_min.jsx=q;reactJsxRuntime_production_min.jsxs=q;
|
|
33
33
|
return reactJsxRuntime_production_min;
|
|
34
34
|
}
|
|
35
35
|
|
|
@@ -531,10 +531,6 @@
|
|
|
531
531
|
};
|
|
532
532
|
var specialPropKeyWarningShown;
|
|
533
533
|
var specialPropRefWarningShown;
|
|
534
|
-
var didWarnAboutStringRefs;
|
|
535
|
-
{
|
|
536
|
-
didWarnAboutStringRefs = {};
|
|
537
|
-
}
|
|
538
534
|
function hasValidRef(config) {
|
|
539
535
|
{
|
|
540
536
|
if (hasOwnProperty.call(config, 'ref')) {
|
|
@@ -559,13 +555,7 @@
|
|
|
559
555
|
}
|
|
560
556
|
function warnIfStringRefCannotBeAutoConverted(config, self) {
|
|
561
557
|
{
|
|
562
|
-
if (typeof config.ref === 'string' && ReactCurrentOwner.current && self
|
|
563
|
-
var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
|
|
564
|
-
if (!didWarnAboutStringRefs[componentName]) {
|
|
565
|
-
error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);
|
|
566
|
-
didWarnAboutStringRefs[componentName] = true;
|
|
567
|
-
}
|
|
568
|
-
}
|
|
558
|
+
if (typeof config.ref === 'string' && ReactCurrentOwner.current && self) ;
|
|
569
559
|
}
|
|
570
560
|
}
|
|
571
561
|
function defineKeyPropWarningGetter(props, displayName) {
|
|
@@ -831,6 +821,7 @@
|
|
|
831
821
|
}
|
|
832
822
|
}
|
|
833
823
|
}
|
|
824
|
+
var didWarnAboutKeySpread = {};
|
|
834
825
|
function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
|
|
835
826
|
{
|
|
836
827
|
var validType = isValidElementType(type);
|
|
@@ -881,6 +872,20 @@
|
|
|
881
872
|
}
|
|
882
873
|
}
|
|
883
874
|
}
|
|
875
|
+
{
|
|
876
|
+
if (hasOwnProperty.call(props, 'key')) {
|
|
877
|
+
var componentName = getComponentNameFromType(type);
|
|
878
|
+
var keys = Object.keys(props).filter(function (k) {
|
|
879
|
+
return k !== 'key';
|
|
880
|
+
});
|
|
881
|
+
var beforeExample = keys.length > 0 ? '{key: someKey, ' + keys.join(': ..., ') + ': ...}' : '{key: someKey}';
|
|
882
|
+
if (!didWarnAboutKeySpread[componentName + beforeExample]) {
|
|
883
|
+
var afterExample = keys.length > 0 ? '{' + keys.join(': ..., ') + ': ...}' : '{}';
|
|
884
|
+
error('A props object containing a "key" prop is being spread into JSX:\n' + ' let props = %s;\n' + ' <%s {...props} />\n' + 'React keys must be passed directly to JSX without using spread:\n' + ' let props = %s;\n' + ' <%s key={someKey} {...props} />', beforeExample, componentName, afterExample, componentName);
|
|
885
|
+
didWarnAboutKeySpread[componentName + beforeExample] = true;
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
}
|
|
884
889
|
if (type === REACT_FRAGMENT_TYPE) {
|
|
885
890
|
validateFragmentProps(element);
|
|
886
891
|
} else {
|
|
@@ -919,7 +924,7 @@
|
|
|
919
924
|
|
|
920
925
|
var qrcode$1 = {exports: {}};
|
|
921
926
|
|
|
922
|
-
(function (module, exports) {
|
|
927
|
+
(function (module, exports$1) {
|
|
923
928
|
var qrcode = function() {
|
|
924
929
|
var qrcode = function(typeNumber, errorCorrectionLevel) {
|
|
925
930
|
var PAD0 = 0xEC;
|
|
@@ -2564,7 +2569,7 @@
|
|
|
2564
2569
|
};
|
|
2565
2570
|
}
|
|
2566
2571
|
|
|
2567
|
-
var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;
|
|
2572
|
+
var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;
|
|
2568
2573
|
var isPropValid = memoize(function (prop) {
|
|
2569
2574
|
return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
|
|
2570
2575
|
&& prop.charCodeAt(1) === 110
|
|
@@ -2612,6 +2617,7 @@
|
|
|
2612
2617
|
var RULESET = 'rule';
|
|
2613
2618
|
var DECLARATION = 'decl';
|
|
2614
2619
|
var IMPORT = '@import';
|
|
2620
|
+
var NAMESPACE = '@namespace';
|
|
2615
2621
|
var KEYFRAMES = '@keyframes';
|
|
2616
2622
|
var LAYER = '@layer';
|
|
2617
2623
|
|
|
@@ -2630,8 +2636,8 @@
|
|
|
2630
2636
|
function replace (value, pattern, replacement) {
|
|
2631
2637
|
return value.replace(pattern, replacement)
|
|
2632
2638
|
}
|
|
2633
|
-
function indexof (value, search) {
|
|
2634
|
-
return value.indexOf(search)
|
|
2639
|
+
function indexof (value, search, position) {
|
|
2640
|
+
return value.indexOf(search, position)
|
|
2635
2641
|
}
|
|
2636
2642
|
function charat (value, index) {
|
|
2637
2643
|
return value.charCodeAt(index) | 0
|
|
@@ -2791,7 +2797,7 @@
|
|
|
2791
2797
|
switch (previous = character, character = next()) {
|
|
2792
2798
|
case 40:
|
|
2793
2799
|
if (previous != 108 && charat(characters, length - 1) == 58) {
|
|
2794
|
-
if (indexof(characters += replace(delimit(character), '&', '&\f'), '&\f') != -1)
|
|
2800
|
+
if (indexof(characters += replace(delimit(character), '&', '&\f'), '&\f', abs(index ? points[index - 1] : 0)) != -1)
|
|
2795
2801
|
ampersand = -1;
|
|
2796
2802
|
break
|
|
2797
2803
|
}
|
|
@@ -2808,6 +2814,7 @@
|
|
|
2808
2814
|
switch (peek()) {
|
|
2809
2815
|
case 42: case 47:
|
|
2810
2816
|
append(comment(commenter(next(), caret()), root, parent, declarations), declarations);
|
|
2817
|
+
if ((token(previous || 1) == 5 || token(peek() || 1) == 5) && strlen(characters) && substr(characters, -1, void 0) !== ' ') characters += ' ';
|
|
2811
2818
|
break
|
|
2812
2819
|
default:
|
|
2813
2820
|
characters += '/';
|
|
@@ -2819,7 +2826,7 @@
|
|
|
2819
2826
|
switch (character) {
|
|
2820
2827
|
case 0: case 125: scanning = 0;
|
|
2821
2828
|
case 59 + offset: if (ampersand == -1) characters = replace(characters, /\f/g, '');
|
|
2822
|
-
if (property > 0 && (strlen(characters) - length))
|
|
2829
|
+
if (property > 0 && (strlen(characters) - length || (variable === 0 && previous === 47)))
|
|
2823
2830
|
append(property > 32 ? declaration(characters + ';', rule, parent, length - 1, declarations) : declaration(replace(characters, ' ', '') + ';', rule, parent, length - 2, declarations), declarations);
|
|
2824
2831
|
break
|
|
2825
2832
|
case 59: characters += ';';
|
|
@@ -2828,14 +2835,19 @@
|
|
|
2828
2835
|
if (character === 123)
|
|
2829
2836
|
if (offset === 0)
|
|
2830
2837
|
parse(characters, root, reference, reference, props, rulesets, length, points, children);
|
|
2831
|
-
else
|
|
2832
|
-
switch (atrule
|
|
2833
|
-
case
|
|
2834
|
-
|
|
2835
|
-
|
|
2838
|
+
else {
|
|
2839
|
+
switch (atrule) {
|
|
2840
|
+
case 99:
|
|
2841
|
+
if (charat(characters, 3) === 110) break
|
|
2842
|
+
case 108:
|
|
2843
|
+
if (charat(characters, 2) === 97) break
|
|
2836
2844
|
default:
|
|
2837
|
-
|
|
2845
|
+
offset = 0;
|
|
2846
|
+
case 100: case 109: case 115:
|
|
2838
2847
|
}
|
|
2848
|
+
if (offset) parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length, children), children), rules, children, length, points, rule ? props : children);
|
|
2849
|
+
else parse(characters, reference, reference, reference, [''], children, 0, points, children);
|
|
2850
|
+
}
|
|
2839
2851
|
}
|
|
2840
2852
|
index = offset = property = 0, variable = ampersand = 1, type = characters = '', length = pseudo;
|
|
2841
2853
|
break
|
|
@@ -2889,9 +2901,11 @@
|
|
|
2889
2901
|
return WEBKIT + 'print-' + value + value
|
|
2890
2902
|
case 5737: case 4201: case 3177: case 3433: case 1641: case 4457: case 2921:
|
|
2891
2903
|
case 5572: case 6356: case 5844: case 3191: case 6645: case 3005:
|
|
2892
|
-
case 6391: case 5879: case 5623: case 6135: case 4599: case 4855:
|
|
2893
2904
|
case 4215: case 6389: case 5109: case 5365: case 5621: case 3829:
|
|
2905
|
+
case 6391: case 5879: case 5623: case 6135: case 4599:
|
|
2894
2906
|
return WEBKIT + value + value
|
|
2907
|
+
case 4855:
|
|
2908
|
+
return WEBKIT + value.replace('add', 'source-over').replace('substract', 'source-out').replace('intersect', 'source-in').replace('exclude', 'xor') + value
|
|
2895
2909
|
case 4789:
|
|
2896
2910
|
return MOZ + value + value
|
|
2897
2911
|
case 5349: case 4246: case 4810: case 6968: case 2756:
|
|
@@ -2928,7 +2942,7 @@
|
|
|
2928
2942
|
case 5495: case 3959:
|
|
2929
2943
|
return replace(value, /(image-set\([^]*)/, WEBKIT + '$1' + '$`$1')
|
|
2930
2944
|
case 4968:
|
|
2931
|
-
return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + 'box-pack:$3' + MS + 'flex-pack:$3'), /
|
|
2945
|
+
return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + 'box-pack:$3' + MS + 'flex-pack:$3'), /space-between/, 'justify') + WEBKIT + value + value
|
|
2932
2946
|
case 4200:
|
|
2933
2947
|
if (!match(value, /flex-|baseline/)) return MS + 'grid-column-align' + substr(value, length) + value
|
|
2934
2948
|
break
|
|
@@ -2936,7 +2950,7 @@
|
|
|
2936
2950
|
return MS + replace(value, 'template-', '') + value
|
|
2937
2951
|
case 4384: case 3616:
|
|
2938
2952
|
if (children && children.some(function (element, index) { return length = index, match(element.props, /grid-\w+-end/) })) {
|
|
2939
|
-
return ~indexof(value + (children = children[length].value), 'span') ? value : (MS + replace(value, '-start', '') + value + MS + 'grid-row-span:' + (~indexof(children, 'span') ? match(children, /\d+/) : +match(children, /\d+/) - +match(value, /\d+/)) + ';')
|
|
2953
|
+
return ~indexof(value + (children = children[length].value), 'span', 0) ? value : (MS + replace(value, '-start', '') + value + MS + 'grid-row-span:' + (~indexof(children, 'span', 0) ? match(children, /\d+/) : +match(children, /\d+/) - +match(value, /\d+/)) + ';')
|
|
2940
2954
|
}
|
|
2941
2955
|
return MS + replace(value, '-start', '') + value
|
|
2942
2956
|
case 4896: case 4128:
|
|
@@ -2954,7 +2968,7 @@
|
|
|
2954
2968
|
case 102:
|
|
2955
2969
|
return replace(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT + '$2-$3' + '$1' + MOZ + (charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value
|
|
2956
2970
|
case 115:
|
|
2957
|
-
return ~indexof(value, 'stretch') ? prefix(replace(value, 'stretch', 'fill-available'), length, children) + value : value
|
|
2971
|
+
return ~indexof(value, 'stretch', 0) ? prefix(replace(value, 'stretch', 'fill-available'), length, children) + value : value
|
|
2958
2972
|
}
|
|
2959
2973
|
break
|
|
2960
2974
|
case 5152: case 5920:
|
|
@@ -2986,7 +3000,7 @@
|
|
|
2986
3000
|
function stringify (element, index, children, callback) {
|
|
2987
3001
|
switch (element.type) {
|
|
2988
3002
|
case LAYER: if (element.children.length) break
|
|
2989
|
-
case IMPORT: case DECLARATION: return element.return = element.return || element.value
|
|
3003
|
+
case IMPORT: case NAMESPACE: case DECLARATION: return element.return = element.return || element.value
|
|
2990
3004
|
case COMMENT: return ''
|
|
2991
3005
|
case KEYFRAMES: return element.return = element.value + '{' + serialize(element.children, callback) + '}'
|
|
2992
3006
|
case RULESET: if (!strlen(element.value = element.props.join(','))) return ''
|
|
@@ -3089,7 +3103,7 @@
|
|
|
3089
3103
|
strokeWidth: 1
|
|
3090
3104
|
};
|
|
3091
3105
|
|
|
3092
|
-
var f="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",y="undefined"!=typeof window&&"HTMLElement"in window,v=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),S=/invalid hook call/i,w=new Set,b=function(t,n){if("production"!==process.env.NODE_ENV){var o$1=n?' with the id of "'.concat(n,'"'):"",s="The component ".concat(t).concat(o$1," has been created dynamically.\n")+"You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",i=console.error;try{var a=!0;console.error=function(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];S.test(t)?(a=!1,w.delete(s)):i.apply(void 0,__spreadArray([t],n,!1));},o.useRef(),a&&!w.has(s)&&(console.warn(s),w.add(s));}catch(e){S.test(e.message)&&w.delete(s);}finally{console.error=i;}}},E=Object.freeze([]),N=Object.freeze({});function P(e,t,n){return void 0===n&&(n=N),e.theme!==n.theme&&e.theme||t||n.theme}var _=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),C=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,I=/(^-|-$)/g;function A(e){return e.replace(C,"-").replace(I,"")}var O=/(a)(d)/gi,D=function(e){return String.fromCharCode(e+(e>25?39:97))};function R(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=D(t%52)+n;return (D(t%52)+n).replace(O,"$1-$2")}var T,k=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},j=function(e){return k(5381,e)};function x(e){return R(j(e)>>>0)}function V(e){return "production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function F(e){return "string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var M="function"==typeof Symbol&&Symbol.for,$=M?Symbol.for("react.memo"):60115,z=M?Symbol.for("react.forward_ref"):60112,B={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},L={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},G={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Y=((T={})[z]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},T[$]=G,T);function W(e){return ("type"in(t=e)&&t.type.$$typeof)===$?G:"$$typeof"in e?Y[e.$$typeof]:B;var t;}var q=Object.defineProperty,H=Object.getOwnPropertyNames,U=Object.getOwnPropertySymbols,J=Object.getOwnPropertyDescriptor,X=Object.getPrototypeOf,Z=Object.prototype;function K(e,t,n){if("string"!=typeof t){if(Z){var o=X(t);o&&o!==Z&&K(e,o,n);}var r=H(t);U&&(r=r.concat(U(t)));for(var s=W(e),i=W(t),a=0;a<r.length;++a){var c=r[a];if(!(c in L||n&&n[c]||i&&c in i||s&&c in s)){var l=J(t,c);try{q(e,c,l);}catch(e){}}}}return e}function Q(e){return "function"==typeof e}function ee(e){return "object"==typeof e&&"styledComponentId"in e}function te(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function ne(e,t){if(0===e.length)return "";for(var n=e[0],o=1;o<e.length;o++)n+=e[o];return n}function oe(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function re(e,t,n){if(void 0===n&&(n=!1),!n&&!oe(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var o=0;o<t.length;o++)e[o]=re(e[o],t[o]);else if(oe(t))for(var o in t)e[o]=re(e[o],t[o]);return e}function se(e,t){Object.defineProperty(e,"toString",{value:t});}var ie="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n",18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function ae(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],o=[],r=1,s=e.length;r<s;r+=1)o.push(e[r]);return o.forEach(function(e){n=n.replace(/%[a-z]/,e);}),n}function ce(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return "production"===process.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t," for more information.").concat(n.length>0?" Args: ".concat(n.join(", ")):"")):new Error(ae.apply(void 0,__spreadArray([ie[t]],n,!1)).trim())}var le=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e;}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,r=o;e>=r;)if((r<<=1)<0)throw ce(16,"".concat(e));this.groupSizes=new Uint32Array(r),this.groupSizes.set(n),this.length=r;for(var s=o;s<r;s++)this.groupSizes[s]=0;}for(var i=this.indexOfGroup(e+1),a=(s=0,t.length);s<a;s++)this.tag.insertRule(i,t[s])&&(this.groupSizes[e]++,i++);},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),o=n+t;this.groupSizes[e]=0;for(var r=n;r<o;r++)this.tag.deleteRule(n);}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],o=this.indexOfGroup(e),r=o+n,s=o;s<r;s++)t+="".concat(this.tag.getRule(s)).concat("/*!sc*/\n");return t},e}(),ue=new Map,pe=new Map,de=1,he=function(e){if(ue.has(e))return ue.get(e);for(;pe.has(de);)de++;var t=de++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>1073741824))throw ce(16,"".concat(t));return ue.set(e,t),pe.set(t,e),t},fe=function(e,t){de=t+1,ue.set(e,t),pe.set(t,e);},me="style[".concat(f,"][").concat("data-styled-version",'="').concat("6.1.1",'"]'),ye=new RegExp("^".concat(f,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),ve=function(e,t,n){for(var o,r=n.split(","),s=0,i=r.length;s<i;s++)(o=r[s])&&e.registerName(t,o);},ge=function(e,t){for(var n,o=(null!==(n=t.textContent)&&void 0!==n?n:"").split("/*!sc*/\n"),r=[],s=0,i=o.length;s<i;s++){var a=o[s].trim();if(a){var c=a.match(ye);if(c){var l=0|parseInt(c[1],10),u=c[2];0!==l&&(fe(u,l),ve(e,u,c[3]),e.getTag().insertRules(l,r)),r.length=0;}else r.push(a);}}};function Se(){return "undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}var we=function(e){var t=document.head,n=e||t,o=document.createElement("style"),r=function(e){var t=Array.from(e.querySelectorAll("style[".concat(f,"]")));return t[t.length-1]}(n),s=void 0!==r?r.nextSibling:null;o.setAttribute(f,"active"),o.setAttribute("data-styled-version","6.1.1");var i=Se();return i&&o.setAttribute("nonce",i),n.insertBefore(o,s),o},be=function(){function e(e){this.element=we(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,o=t.length;n<o;n++){var r=t[n];if(r.ownerNode===e)return r}throw ce(17)}(this.element),this.length=0;}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return !1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--;},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Ee=function(){function e(e){this.element=we(e),this.nodes=this.element.childNodes,this.length=0;}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return !1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--;},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Ne=function(){function e(e){this.rules=[],this.length=0;}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--;},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Pe=y,_e={isServer:!y,useCSSOMInjection:!v},Ce=function(){function e(e,n,o){void 0===e&&(e=N),void 0===n&&(n={});var r=this;this.options=__assign$1(__assign$1({},_e),e),this.gs=n,this.names=new Map(o),this.server=!!e.isServer,!this.server&&y&&Pe&&(Pe=!1,function(e){for(var t=document.querySelectorAll(me),n=0,o=t.length;n<o;n++){var r=t[n];r&&"active"!==r.getAttribute(f)&&(ge(e,r),r.parentNode&&r.parentNode.removeChild(r));}}(this)),se(this,function(){return function(e){for(var t=e.getTag(),n=t.length,o="",r=function(n){var r=function(e){return pe.get(e)}(n);if(void 0===r)return "continue";var s=e.names.get(r),i=t.getGroup(n);if(void 0===s||0===i.length)return "continue";var a="".concat(f,".g").concat(n,'[id="').concat(r,'"]'),c="";void 0!==s&&s.forEach(function(e){e.length>0&&(c+="".concat(e,","));}),o+="".concat(i).concat(a,'{content:"').concat(c,'"}').concat("/*!sc*/\n");},s=0;s<n;s++)r(s);return o}(r)});}return e.registerId=function(e){return he(e)},e.prototype.reconstructWithOptions=function(n,o){return void 0===o&&(o=!0),new e(__assign$1(__assign$1({},this.options),n),this.gs,o&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new Ne(n):t?new be(n):new Ee(n)}(this.options),new le(e)));var e;},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(he(e),this.names.has(e))this.names.get(e).add(t);else {var n=new Set;n.add(t),this.names.set(e,n);}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(he(e),n);},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear();},e.prototype.clearRules=function(e){this.getTag().clearGroup(he(e)),this.clearNames(e);},e.prototype.clearTag=function(){this.tag=void 0;},e}(),Ie=/&/g,Ae=/^\s*\/\/.*$/gm;function Oe(e,t){return e.map(function(e){return "rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return "".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Oe(e.children,t)),e})}function De(e){var t,n,o,r=N,s=r.options,i=void 0===s?N:s,a=r.plugins,c=void 0===a?E:a,l=function(e,o,r){return r===n||r.startsWith(n)&&r.endsWith(n)&&r.replaceAll(n,"").length>0?".".concat(t):e},u=c.slice();u.push(function(e){e.type===RULESET&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Ie,n).replace(o,l));}),i.prefix&&u.push(prefixer),u.push(stringify);var p=function(e,r,s,a){void 0===r&&(r=""),void 0===s&&(s=""),void 0===a&&(a="&"),t=a,n=r,o=new RegExp("\\".concat(n,"\\b"),"g");var c=e.replace(Ae,""),l=compile(s||r?"".concat(s," ").concat(r," { ").concat(c," }"):c);i.namespace&&(l=Oe(l,i.namespace));var p=[];return serialize(l,middleware(u.concat(rulesheet(function(e){return p.push(e)})))),p};return p.hash=c.length?c.reduce(function(e,t){return t.name||ce(15),k(e,t.name)},5381).toString():"",p}var Re=new Ce,Te=De(),ke=o.createContext({shouldForwardProp:void 0,styleSheet:Re,stylis:Te});ke.Consumer;o.createContext(void 0);function Ve(){return o.useContext(ke)}var Me=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Te);var o=n.name+t.hash;e.hasNameForId(n.id,o)||e.insertRules(n.id,o,t(n.rules,o,"@keyframes"));},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,se(this,function(){throw ce(12,String(n.name))});}return e.prototype.getName=function(e){return void 0===e&&(e=Te),this.name+e.hash},e}(),$e=function(e){return e>="A"&&e<="Z"};function ze(e){for(var t="",n=0;n<e.length;n++){var o=e[n];if(1===n&&"-"===o&&"-"===e[0])return e;$e(o)?t+="-"+o.toLowerCase():t+=o;}return t.startsWith("ms-")?"-"+t:t}var Be=function(e){return null==e||!1===e||""===e},Le=function(t){var n,o,r=[];for(var s in t){var i=t[s];t.hasOwnProperty(s)&&!Be(i)&&(Array.isArray(i)&&i.isCss||Q(i)?r.push("".concat(ze(s),":"),i,";"):oe(i)?r.push.apply(r,__spreadArray(__spreadArray(["".concat(s," {")],Le(i),!1),["}"],!1)):r.push("".concat(ze(s),": ").concat((n=s,null==(o=i)||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||n in unitlessKeys||n.startsWith("--")?String(o).trim():"".concat(o,"px")),";")));}return r};function Ge(e,t,n,o){if(Be(e))return [];if(ee(e))return [".".concat(e.styledComponentId)];if(Q(e)){if(!Q(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return [e];var r=e(t);return "production"===process.env.NODE_ENV||"object"!=typeof r||Array.isArray(r)||r instanceof Me||oe(r)||null===r||console.error("".concat(V(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),Ge(r,t,n,o)}var s;return e instanceof Me?n?(e.inject(n,o),[e.getName(o)]):[e]:oe(e)?Le(e):Array.isArray(e)?Array.prototype.concat.apply(E,e.map(function(e){return Ge(e,t,n,o)})):[e.toString()]}function Ye(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Q(n)&&!ee(n))return !1}return !0}var We=j("6.1.1"),qe=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&Ye(e),this.componentId=t,this.baseHash=k(We,t),this.baseStyle=n,Ce.registerId(t);}return e.prototype.generateAndInjectStyles=function(e,t,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))o=te(o,this.staticRulesId);else {var r=ne(Ge(this.rules,e,t,n)),s=R(k(this.baseHash,r)>>>0);if(!t.hasNameForId(this.componentId,s)){var i=n(r,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,i);}o=te(o,s),this.staticRulesId=s;}else {for(var a=k(this.baseHash,n.hash),c="",l=0;l<this.rules.length;l++){var u=this.rules[l];if("string"==typeof u)c+=u,"production"!==process.env.NODE_ENV&&(a=k(a,u));else if(u){var p=ne(Ge(u,e,t,n));a=k(a,p+l),c+=p;}}if(c){var d=R(a>>>0);t.hasNameForId(this.componentId,d)||t.insertRules(this.componentId,d,n(c,".".concat(d),void 0,this.componentId)),o=te(o,d);}}return o},e}(),He=o.createContext(void 0);He.Consumer;var Ze={},Ke=new Set;function Qe(e,r,s){var i=ee(e),a=e,c=!F(e),p=r.attrs,d=void 0===p?E:p,h=r.componentId,f=void 0===h?function(e,t){var n="string"!=typeof e?"sc":A(e);Ze[n]=(Ze[n]||0)+1;var o="".concat(n,"-").concat(x("6.1.1"+n+Ze[n]));return t?"".concat(t,"-").concat(o):o}(r.displayName,r.parentComponentId):h,m=r.displayName,y=void 0===m?function(e){return F(e)?"styled.".concat(e):"Styled(".concat(V(e),")")}(e):m,v=r.displayName&&r.componentId?"".concat(A(r.displayName),"-").concat(r.componentId):r.componentId||f,g=i&&a.attrs?a.attrs.concat(d).filter(Boolean):d,S=r.shouldForwardProp;if(i&&a.shouldForwardProp){var w=a.shouldForwardProp;if(r.shouldForwardProp){var C=r.shouldForwardProp;S=function(e,t){return w(e,t)&&C(e,t)};}else S=w;}var I=new qe(s,v,i?a.componentStyle:void 0);function O(e,r){return function(e,r,s){var i=e.attrs,a=e.componentStyle,c=e.defaultProps,p=e.foldedComponentIds,d=e.styledComponentId,h=e.target,f=o.useContext(He),m=Ve(),y=e.shouldForwardProp||m.shouldForwardProp;"production"!==process.env.NODE_ENV&&o.useDebugValue(d);var v=function(e,n,o){for(var r,s=__assign$1(__assign$1({},n),{className:void 0,theme:o}),i=0;i<e.length;i+=1){var a=Q(r=e[i])?r(s):r;for(var c in a)s[c]="className"===c?te(s[c],a[c]):"style"===c?__assign$1(__assign$1({},s[c]),a[c]):a[c];}return n.className&&(s.className=te(s.className,n.className)),s}(i,r,P(r,f,c)||N),g=v.as||h,S={};for(var w in v)void 0===v[w]||"$"===w[0]||"as"===w||"theme"===w||("forwardedAs"===w?S.as=v.forwardedAs:y&&!y(w,g)||(S[w]=v[w],y||"development"!==process.env.NODE_ENV||isPropValid(w)||Ke.has(w)||!_.has(g)||(Ke.add(w),console.warn('styled-components: it looks like an unknown prop "'.concat(w,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var b=function(e,t){var n=Ve(),o$1=e.generateAndInjectStyles(t,n.styleSheet,n.stylis);return "production"!==process.env.NODE_ENV&&o.useDebugValue(o$1),o$1}(a,v);"production"!==process.env.NODE_ENV&&e.warnTooManyClasses&&e.warnTooManyClasses(b);var E=te(p,d);return b&&(E+=" "+b),v.className&&(E+=" "+v.className),S[F(g)&&!_.has(g)?"class":"className"]=E,S.ref=s,o.createElement(g,S)}(D,e,r)}O.displayName=y;var D=o.forwardRef(O);return D.attrs=g,D.componentStyle=I,D.displayName=y,D.shouldForwardProp=S,D.foldedComponentIds=i?te(a.foldedComponentIds,a.styledComponentId):"",D.styledComponentId=v,D.target=i?a.target:e,Object.defineProperty(D,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var o=0,r=t;o<r.length;o++)re(e,r[o],!0);return e}({},a.defaultProps,e):e;}}),"production"!==process.env.NODE_ENV&&(b(y,v),D.warnTooManyClasses=function(e,t){var n={},o=!1;return function(r){if(!o&&(n[r]=!0,Object.keys(n).length>=200)){var s=t?' with the id of "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(s,".\n")+"Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),o=!0,n={};}}}(y,v)),se(D,function(){return ".".concat(D.styledComponentId)}),c&&K(D,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),D}function et(e,t){for(var n=[e[0]],o=0,r=t.length;o<r;o+=1)n.push(t[o],e[o+1]);return n}var tt=function(e){return Object.assign(e,{isCss:!0})};function nt(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];if(Q(t)||oe(t)){var r=t;return tt(Ge(et(E,__spreadArray([r],n,!0))))}var s=t;return 0===n.length&&1===s.length&&"string"==typeof s[0]?Ge(s):tt(Ge(et(s,n)))}function ot(n,o,r){if(void 0===r&&(r=N),!o)throw ce(1,o);var s=function(t){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return n(o,r,nt.apply(void 0,__spreadArray([t],s,!1)))};return s.attrs=function(e){return ot(n,o,__assign$1(__assign$1({},r),{attrs:Array.prototype.concat(r.attrs,e).filter(Boolean)}))},s.withConfig=function(e){return ot(n,o,__assign$1(__assign$1({},r),e))},s}var rt=function(e){return ot(Qe,e)},st=rt;_.forEach(function(e){st[e]=rt(e);});"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");var dt="__sc-".concat(f,"__");"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[dt]||(window[dt]=0),1===window[dt]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window[dt]+=1);
|
|
3106
|
+
var f="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",m="active",y="data-styled-version",v="6.2.0",g="/*!sc*/\n",S="undefined"!=typeof window&&"undefined"!=typeof document,w=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),E=/invalid hook call/i,N=new Set,P=function(t,n){if("production"!==process.env.NODE_ENV){var o$1=n?' with the id of "'.concat(n,'"'):"",s="The component ".concat(t).concat(o$1," has been created dynamically.\n")+"You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.\nSee https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.\n",i=console.error;try{var a=!0;console.error=function(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];E.test(t)?(a=!1,N.delete(s)):i.apply(void 0,__spreadArray([t],n,!1));},o.useRef(),a&&!N.has(s)&&(console.warn(s),N.add(s));}catch(e){E.test(e.message)&&N.delete(s);}finally{console.error=i;}}},_=Object.freeze([]),C=Object.freeze({});function I(e,t,n){return void 0===n&&(n=C),e.theme!==n.theme&&e.theme||t||n.theme}var A=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),O=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,D=/(^-|-$)/g;function R(e){return e.replace(O,"-").replace(D,"")}var T=/(a)(d)/gi,k=52,j=function(e){return String.fromCharCode(e+(e>25?39:97))};function x(e){var t,n="";for(t=Math.abs(e);t>k;t=t/k|0)n=j(t%k)+n;return (j(t%k)+n).replace(T,"$1-$2")}var V,F=5381,M=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},$=function(e){return M(F,e)};function z(e){return x($(e)>>>0)}function B(e){return "production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function L(e){return "string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var G="function"==typeof Symbol&&Symbol.for,Y=G?Symbol.for("react.memo"):60115,q=G?Symbol.for("react.forward_ref"):60112,W={childContextTypes:true,contextType:true,contextTypes:true,defaultProps:true,displayName:true,getDefaultProps:true,getDerivedStateFromError:true,getDerivedStateFromProps:true,mixins:true,propTypes:true,type:true},H={name:true,length:true,prototype:true,caller:true,callee:true,arguments:true,arity:true},U={$$typeof:true,compare:true,defaultProps:true,displayName:true,propTypes:true,type:true},J=((V={})[q]={$$typeof:true,render:true,defaultProps:true,displayName:true,propTypes:true},V[Y]=U,V);function X(e){return ("type"in(t=e)&&t.type.$$typeof)===Y?U:"$$typeof"in e?J[e.$$typeof]:W;var t;}var Z=Object.defineProperty,K=Object.getOwnPropertyNames,Q=Object.getOwnPropertySymbols,ee=Object.getOwnPropertyDescriptor,te=Object.getPrototypeOf,ne=Object.prototype;function oe(e,t,n){if("string"!=typeof t){if(ne){var o=te(t);o&&o!==ne&&oe(e,o,n);}var r=K(t);Q&&(r=r.concat(Q(t)));for(var s=X(e),i=X(t),a=0;a<r.length;++a){var c=r[a];if(!(c in H||n&&n[c]||i&&c in i||s&&c in s)){var l=ee(t,c);try{Z(e,c,l);}catch(e){}}}}return e}function re(e){return "function"==typeof e}function se(e){return "object"==typeof e&&"styledComponentId"in e}function ie(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function ae(e,t){if(0===e.length)return "";for(var n=e[0],o=1;o<e.length;o++)n+=e[o];return n}function ce(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function le(e,t,n){if(void 0===n&&(n=false),!n&&!ce(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var o=0;o<t.length;o++)e[o]=le(e[o],t[o]);else if(ce(t))for(var o in t)e[o]=le(e[o],t[o]);return e}function ue(e,t){Object.defineProperty(e,"toString",{value:t});}var pe="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n",18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function de(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],o=[],r=1,s=e.length;r<s;r+=1)o.push(e[r]);return o.forEach(function(e){n=n.replace(/%[a-z]/,e);}),n}function he(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return "production"===process.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t," for more information.").concat(n.length>0?" Args: ".concat(n.join(", ")):"")):new Error(de.apply(void 0,__spreadArray([pe[t]],n,false)).trim())}var fe=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e;}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,r=o;e>=r;)if((r<<=1)<0)throw he(16,"".concat(e));this.groupSizes=new Uint32Array(r),this.groupSizes.set(n),this.length=r;for(var s=o;s<r;s++)this.groupSizes[s]=0;}for(var i=this.indexOfGroup(e+1),a=(s=0,t.length);s<a;s++)this.tag.insertRule(i,t[s])&&(this.groupSizes[e]++,i++);},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),o=n+t;this.groupSizes[e]=0;for(var r=n;r<o;r++)this.tag.deleteRule(n);}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],o=this.indexOfGroup(e),r=o+n,s=o;s<r;s++)t+="".concat(this.tag.getRule(s)).concat(g);return t},e}(),me=1<<30,ye=new Map,ve=new Map,ge=1,Se=function(e){if(ye.has(e))return ye.get(e);for(;ve.has(ge);)ge++;var t=ge++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>me))throw he(16,"".concat(t));return ye.set(e,t),ve.set(t,e),t},we=function(e,t){ge=t+1,ye.set(e,t),ve.set(t,e);},be="style[".concat(f,"][").concat(y,'="').concat(v,'"]'),Ee=new RegExp("^".concat(f,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Ne=function(e,t,n){for(var o,r=n.split(","),s=0,i=r.length;s<i;s++)(o=r[s])&&e.registerName(t,o);},Pe=function(e,t){for(var n,o=(null!==(n=t.textContent)&&void 0!==n?n:"").split(g),r=[],s=0,i=o.length;s<i;s++){var a=o[s].trim();if(a){var c=a.match(Ee);if(c){var l=0|parseInt(c[1],10),u=c[2];0!==l&&(we(u,l),Ne(e,u,c[3]),e.getTag().insertRules(l,r)),r.length=0;}else r.push(a);}}},_e=function(e){for(var t=document.querySelectorAll(be),n=0,o=t.length;n<o;n++){var r=t[n];r&&r.getAttribute(f)!==m&&(Pe(e,r),r.parentNode&&r.parentNode.removeChild(r));}};function Ce(){return "undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}var Ie=function(e){var t=document.head,n=e||t,o=document.createElement("style"),r=function(e){var t=Array.from(e.querySelectorAll("style[".concat(f,"]")));return t[t.length-1]}(n),s=void 0!==r?r.nextSibling:null;o.setAttribute(f,m),o.setAttribute(y,v);var i=Ce();return i&&o.setAttribute("nonce",i),n.insertBefore(o,s),o},Ae=function(){function e(e){this.element=Ie(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,o=t.length;n<o;n++){var r=t[n];if(r.ownerNode===e)return r}throw he(17)}(this.element),this.length=0;}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return false}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--;},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Oe=function(){function e(e){this.element=Ie(e),this.nodes=this.element.childNodes,this.length=0;}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,true}return false},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--;},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),De=function(){function e(e){this.rules=[],this.length=0;}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,true)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--;},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Re=S,Te={isServer:!S,useCSSOMInjection:!w},ke=function(){function e(e,n,o){ void 0===e&&(e=C),void 0===n&&(n={});var r=this;this.options=__assign$1(__assign$1({},Te),e),this.gs=n,this.names=new Map(o),this.server=!!e.isServer,!this.server&&S&&Re&&(Re=false,_e(this)),ue(this,function(){return function(e){for(var t=e.getTag(),n=t.length,o="",r=function(n){var r=function(e){return ve.get(e)}(n);if(void 0===r)return "continue";var s=e.names.get(r),i=t.getGroup(n);if(void 0===s||!s.size||0===i.length)return "continue";var a="".concat(f,".g").concat(n,'[id="').concat(r,'"]'),c="";void 0!==s&&s.forEach(function(e){e.length>0&&(c+="".concat(e,","));}),o+="".concat(i).concat(a,'{content:"').concat(c,'"}').concat(g);},s=0;s<n;s++)r(s);return o}(r)});}return e.registerId=function(e){return Se(e)},e.prototype.rehydrate=function(){!this.server&&S&&_e(this);},e.prototype.reconstructWithOptions=function(n,o){return void 0===o&&(o=true),new e(__assign$1(__assign$1({},this.options),n),this.gs,o&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new De(n):t?new Ae(n):new Oe(n)}(this.options),new fe(e)));var e;},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(Se(e),this.names.has(e))this.names.get(e).add(t);else {var n=new Set;n.add(t),this.names.set(e,n);}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Se(e),n);},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear();},e.prototype.clearRules=function(e){this.getTag().clearGroup(Se(e)),this.clearNames(e);},e.prototype.clearTag=function(){this.tag=void 0;},e}(),je=/&/g,xe=/^\s*\/\/.*$/gm;function Ve(e,t){return e.map(function(e){return "rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return "".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Ve(e.children,t)),e})}function Fe(e){var t,n,o,r=C,s=r.options,i=void 0===s?C:s,a=r.plugins,c=void 0===a?_:a,l=function(e,o,r){return r.startsWith(n)&&r.endsWith(n)&&r.replaceAll(n,"").length>0?".".concat(t):e},u=c.slice();u.push(function(e){e.type===RULESET&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(je,n).replace(o,l));}),i.prefix&&u.push(prefixer),u.push(stringify);var p=function(e,r,s,a){ void 0===r&&(r=""),void 0===s&&(s=""),void 0===a&&(a="&"),t=a,n=r,o=new RegExp("\\".concat(n,"\\b"),"g");var c=e.replace(xe,""),l=compile(s||r?"".concat(s," ").concat(r," { ").concat(c," }"):c);i.namespace&&(l=Ve(l,i.namespace));var p=[];return serialize(l,middleware(u.concat(rulesheet(function(e){return p.push(e)})))),p};return p.hash=c.length?c.reduce(function(e,t){return t.name||he(15),M(e,t.name)},F).toString():"",p}var Me=new ke,$e=Fe(),ze=o.createContext({shouldForwardProp:void 0,styleSheet:Me,stylis:$e});ze.Consumer;o.createContext(void 0);function Ge(){return o.useContext(ze)}var qe=function(){function e(e,t){var n=this;this.inject=function(e,t){ void 0===t&&(t=$e);var o=n.name+t.hash;e.hasNameForId(n.id,o)||e.insertRules(n.id,o,t(n.rules,o,"@keyframes"));},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,ue(this,function(){throw he(12,String(n.name))});}return e.prototype.getName=function(e){return void 0===e&&(e=$e),this.name+e.hash},e}(),We=function(e){return e>="A"&&e<="Z"};function He(e){for(var t="",n=0;n<e.length;n++){var o=e[n];if(1===n&&"-"===o&&"-"===e[0])return e;We(o)?t+="-"+o.toLowerCase():t+=o;}return t.startsWith("ms-")?"-"+t:t}var Ue=function(e){return null==e||false===e||""===e},Je=function(t){var n,o,r=[];for(var s in t){var i=t[s];t.hasOwnProperty(s)&&!Ue(i)&&(Array.isArray(i)&&i.isCss||re(i)?r.push("".concat(He(s),":"),i,";"):ce(i)?r.push.apply(r,__spreadArray(__spreadArray(["".concat(s," {")],Je(i),false),["}"],false)):r.push("".concat(He(s),": ").concat((n=s,null==(o=i)||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||n in unitlessKeys||n.startsWith("--")?String(o).trim():"".concat(o,"px")),";")));}return r};function Xe(e,t,n,o){if(Ue(e))return [];if(se(e))return [".".concat(e.styledComponentId)];if(re(e)){if(!re(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return [e];var r=e(t);return "production"===process.env.NODE_ENV||"object"!=typeof r||Array.isArray(r)||r instanceof qe||ce(r)||null===r||console.error("".concat(B(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),Xe(r,t,n,o)}var s;return e instanceof qe?n?(e.inject(n,o),[e.getName(o)]):[e]:ce(e)?Je(e):Array.isArray(e)?Array.prototype.concat.apply(_,e.map(function(e){return Xe(e,t,n,o)})):[e.toString()]}function Ze(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(re(n)&&!se(n))return false}return true}var Ke=$(v),Qe=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&Ze(e),this.componentId=t,this.baseHash=M(Ke,t),this.baseStyle=n,ke.registerId(t);}return e.prototype.generateAndInjectStyles=function(e,t,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))o=ie(o,this.staticRulesId);else {var r=ae(Xe(this.rules,e,t,n)),s=x(M(this.baseHash,r)>>>0);if(!t.hasNameForId(this.componentId,s)){var i=n(r,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,i);}o=ie(o,s),this.staticRulesId=s;}else {for(var a=M(this.baseHash,n.hash),c="",l=0;l<this.rules.length;l++){var u=this.rules[l];if("string"==typeof u)c+=u,"production"!==process.env.NODE_ENV&&(a=M(a,u));else if(u){var p=ae(Xe(u,e,t,n));a=M(a,p+l),c+=p;}}if(c){var d=x(a>>>0);t.hasNameForId(this.componentId,d)||t.insertRules(this.componentId,d,n(c,".".concat(d),void 0,this.componentId)),o=ie(o,d);}}return o},e}(),et=o.createContext(void 0);et.Consumer;var rt={},st=new Set;function it(e,r,s){var i=se(e),a=e,c=!L(e),p=r.attrs,d=void 0===p?_:p,h=r.componentId,f=void 0===h?function(e,t){var n="string"!=typeof e?"sc":R(e);rt[n]=(rt[n]||0)+1;var o="".concat(n,"-").concat(z(v+n+rt[n]));return t?"".concat(t,"-").concat(o):o}(r.displayName,r.parentComponentId):h,m=r.displayName,y=void 0===m?function(e){return L(e)?"styled.".concat(e):"Styled(".concat(B(e),")")}(e):m,g=r.displayName&&r.componentId?"".concat(R(r.displayName),"-").concat(r.componentId):r.componentId||f,S=i&&a.attrs?a.attrs.concat(d).filter(Boolean):d,w=r.shouldForwardProp;if(i&&a.shouldForwardProp){var b=a.shouldForwardProp;if(r.shouldForwardProp){var E=r.shouldForwardProp;w=function(e,t){return b(e,t)&&E(e,t)};}else w=b;}var N=new Qe(s,g,i?a.componentStyle:void 0);function O(e,r){return function(e,r,s){var i=e.attrs,a=e.componentStyle,c=e.defaultProps,p=e.foldedComponentIds,d=e.styledComponentId,h=e.target,f=o.useContext(et),m=Ge(),y=e.shouldForwardProp||m.shouldForwardProp;"production"!==process.env.NODE_ENV&&o.useDebugValue(d);var v=I(r,f,c)||C,g=function(e,n,o){for(var r,s=__assign$1(__assign$1({},n),{className:void 0,theme:o}),i=0;i<e.length;i+=1){var a=re(r=e[i])?r(s):r;for(var c in a)"className"===c?s.className=ie(s.className,a[c]):"style"===c?s.style=__assign$1(__assign$1({},s.style),a[c]):s[c]=a[c];}return "className"in n&&"string"==typeof n.className&&(s.className=ie(s.className,n.className)),s}(i,r,v),S=g.as||h,w={};for(var b in g) void 0===g[b]||"$"===b[0]||"as"===b||"theme"===b&&g.theme===v||("forwardedAs"===b?w.as=g.forwardedAs:y&&!y(b,S)||(w[b]=g[b],y||"development"!==process.env.NODE_ENV||isPropValid(b)||st.has(b)||!A.has(S)||(st.add(b),console.warn('styled-components: it looks like an unknown prop "'.concat(b,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var E=function(e,t){var n=Ge(),o$1=e.generateAndInjectStyles(t,n.styleSheet,n.stylis);return "production"!==process.env.NODE_ENV&&o.useDebugValue(o$1),o$1}(a,g);"production"!==process.env.NODE_ENV&&e.warnTooManyClasses&&e.warnTooManyClasses(E);var N=ie(p,d);return E&&(N+=" "+E),g.className&&(N+=" "+g.className),w[L(S)&&!A.has(S)?"class":"className"]=N,s&&(w.ref=s),o.createElement(S,w)}(D,e,r)}O.displayName=y;var D=o.forwardRef(O);return D.attrs=S,D.componentStyle=N,D.displayName=y,D.shouldForwardProp=w,D.foldedComponentIds=i?ie(a.foldedComponentIds,a.styledComponentId):"",D.styledComponentId=g,D.target=i?a.target:e,Object.defineProperty(D,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var o=0,r=t;o<r.length;o++)le(e,r[o],true);return e}({},a.defaultProps,e):e;}}),"production"!==process.env.NODE_ENV&&(P(y,g),D.warnTooManyClasses=function(e,t){var n={},o=false;return function(r){if(!o&&(n[r]=true,Object.keys(n).length>=200)){var s=t?' with the id of "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(s,".\n")+"Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),o=true,n={};}}}(y,g)),ue(D,function(){return ".".concat(D.styledComponentId)}),c&&oe(D,e,{attrs:true,componentStyle:true,displayName:true,foldedComponentIds:true,shouldForwardProp:true,styledComponentId:true,target:true}),D}function at(e,t){for(var n=[e[0]],o=0,r=t.length;o<r;o+=1)n.push(t[o],e[o+1]);return n}var ct=function(e){return Object.assign(e,{isCss:true})};function lt(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];if(re(t)||ce(t))return ct(Xe(at(_,__spreadArray([t],n,true))));var r=t;return 0===n.length&&1===r.length&&"string"==typeof r[0]?Xe(r):ct(Xe(at(r,n)))}function ut(n,o,r){if(void 0===r&&(r=C),!o)throw he(1,o);var s=function(t){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return n(o,r,lt.apply(void 0,__spreadArray([t],s,false)))};return s.attrs=function(e){return ut(n,o,__assign$1(__assign$1({},r),{attrs:Array.prototype.concat(r.attrs,e).filter(Boolean)}))},s.withConfig=function(e){return ut(n,o,__assign$1(__assign$1({},r),e))},s}var pt=function(e){return ut(it,e)},dt=pt;A.forEach(function(e){dt[e]=pt(e);});"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");var St="__sc-".concat(f,"__");"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[St]||(window[St]=0),1===window[St]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-several-instances-of-module-on-the-page for more info."),window[St]+=1);
|
|
3093
3107
|
|
|
3094
3108
|
const ADDRESS_PREFIX = 'substrate';
|
|
3095
3109
|
const SEED_PREFIX = 'secret';
|
|
@@ -3196,7 +3210,7 @@
|
|
|
3196
3210
|
}
|
|
3197
3211
|
return (jsxRuntimeExports.jsx(StyledDiv$1, { className: className, style: containerStyle, children: jsxRuntimeExports.jsx("div", { className: 'ui--qr-Display', style: style, children: jsxRuntimeExports.jsx("img", { src: image }) }) }));
|
|
3198
3212
|
}
|
|
3199
|
-
const StyledDiv$1 =
|
|
3213
|
+
const StyledDiv$1 = dt.div `
|
|
3200
3214
|
.ui--qr-Display {
|
|
3201
3215
|
height: 100%;
|
|
3202
3216
|
width: 100%;
|
|
@@ -3240,7 +3254,7 @@
|
|
|
3240
3254
|
}
|
|
3241
3255
|
const QrNetworkSpecs = o.memo(DisplayNetworkSpecs);
|
|
3242
3256
|
|
|
3243
|
-
const packageInfo = { name: '@pezkuwi/react-qr', path: (({ url: (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.src || new URL('bundle-pezkuwi-react-qr.js', document.baseURI).href)) }) && (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.src || new URL('bundle-pezkuwi-react-qr.js', document.baseURI).href))) ? new URL((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.src || new URL('bundle-pezkuwi-react-qr.js', document.baseURI).href))).pathname.substring(0, new URL((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.src || new URL('bundle-pezkuwi-react-qr.js', document.baseURI).href))).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '3.
|
|
3257
|
+
const packageInfo = { name: '@pezkuwi/react-qr', path: (({ url: (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('bundle-pezkuwi-react-qr.js', document.baseURI).href)) }) && (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('bundle-pezkuwi-react-qr.js', document.baseURI).href))) ? new URL((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('bundle-pezkuwi-react-qr.js', document.baseURI).href))).pathname.substring(0, new URL((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('bundle-pezkuwi-react-qr.js', document.baseURI).href))).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '3.17.0' };
|
|
3244
3258
|
|
|
3245
3259
|
function fixProto(target, prototype) {
|
|
3246
3260
|
var setPrototypeOf = Object.setPrototypeOf;
|
|
@@ -3992,7 +4006,6 @@
|
|
|
3992
4006
|
DecodeHintType[DecodeHintType["NEED_RESULT_POINT_CALLBACK"] = 10] = "NEED_RESULT_POINT_CALLBACK";
|
|
3993
4007
|
DecodeHintType[DecodeHintType["ALLOWED_EAN_EXTENSIONS"] = 11] = "ALLOWED_EAN_EXTENSIONS";
|
|
3994
4008
|
})(DecodeHintType || (DecodeHintType = {}));
|
|
3995
|
-
const DecodeHintType$1 = DecodeHintType;
|
|
3996
4009
|
|
|
3997
4010
|
var __extends$19 = (global && global.__extends) || (function () {
|
|
3998
4011
|
var extendStatics = function (d, b) {
|
|
@@ -4269,8 +4282,8 @@
|
|
|
4269
4282
|
return StringEncoding.decode(new Uint8Array([code]), e);
|
|
4270
4283
|
};
|
|
4271
4284
|
StringUtils.guessEncoding = function (bytes, hints) {
|
|
4272
|
-
if (hints !== null && hints !== undefined && undefined !== hints.get(DecodeHintType
|
|
4273
|
-
return hints.get(DecodeHintType
|
|
4285
|
+
if (hints !== null && hints !== undefined && undefined !== hints.get(DecodeHintType.CHARACTER_SET)) {
|
|
4286
|
+
return hints.get(DecodeHintType.CHARACTER_SET).toString();
|
|
4274
4287
|
}
|
|
4275
4288
|
var length = bytes.length;
|
|
4276
4289
|
var canBeISO88591 = true;
|
|
@@ -5286,21 +5299,24 @@
|
|
|
5286
5299
|
})();
|
|
5287
5300
|
var HTMLCanvasElementLuminanceSource$1 = (function (_super) {
|
|
5288
5301
|
__extends$13(HTMLCanvasElementLuminanceSource, _super);
|
|
5289
|
-
function HTMLCanvasElementLuminanceSource(canvas) {
|
|
5302
|
+
function HTMLCanvasElementLuminanceSource(canvas, doAutoInvert) {
|
|
5303
|
+
if (doAutoInvert === void 0) { doAutoInvert = false; }
|
|
5290
5304
|
var _this = _super.call(this, canvas.width, canvas.height) || this;
|
|
5291
5305
|
_this.canvas = canvas;
|
|
5292
5306
|
_this.tempCanvasElement = null;
|
|
5293
|
-
_this.buffer = HTMLCanvasElementLuminanceSource.makeBufferFromCanvasImageData(canvas);
|
|
5307
|
+
_this.buffer = HTMLCanvasElementLuminanceSource.makeBufferFromCanvasImageData(canvas, doAutoInvert);
|
|
5294
5308
|
return _this;
|
|
5295
5309
|
}
|
|
5296
|
-
HTMLCanvasElementLuminanceSource.makeBufferFromCanvasImageData = function (canvas) {
|
|
5310
|
+
HTMLCanvasElementLuminanceSource.makeBufferFromCanvasImageData = function (canvas, doAutoInvert) {
|
|
5311
|
+
if (doAutoInvert === void 0) { doAutoInvert = false; }
|
|
5297
5312
|
var imageData = canvas.getContext('2d').getImageData(0, 0, canvas.width, canvas.height);
|
|
5298
|
-
return HTMLCanvasElementLuminanceSource.toGrayscaleBuffer(imageData.data, canvas.width, canvas.height);
|
|
5313
|
+
return HTMLCanvasElementLuminanceSource.toGrayscaleBuffer(imageData.data, canvas.width, canvas.height, doAutoInvert);
|
|
5299
5314
|
};
|
|
5300
|
-
HTMLCanvasElementLuminanceSource.toGrayscaleBuffer = function (imageBuffer, width, height) {
|
|
5315
|
+
HTMLCanvasElementLuminanceSource.toGrayscaleBuffer = function (imageBuffer, width, height, doAutoInvert) {
|
|
5316
|
+
if (doAutoInvert === void 0) { doAutoInvert = false; }
|
|
5301
5317
|
var grayscaleBuffer = new Uint8ClampedArray(width * height);
|
|
5302
5318
|
HTMLCanvasElementLuminanceSource.FRAME_INDEX = !HTMLCanvasElementLuminanceSource.FRAME_INDEX;
|
|
5303
|
-
if (HTMLCanvasElementLuminanceSource.FRAME_INDEX) {
|
|
5319
|
+
if (HTMLCanvasElementLuminanceSource.FRAME_INDEX || !doAutoInvert) {
|
|
5304
5320
|
for (var i = 0, j = 0, length_1 = imageBuffer.length; i < length_1; i += 4, j++) {
|
|
5305
5321
|
var gray = void 0;
|
|
5306
5322
|
var alpha = imageBuffer[i + 3];
|
|
@@ -6028,14 +6044,16 @@
|
|
|
6028
6044
|
};
|
|
6029
6045
|
BrowserCodeReader.prototype.createBinaryBitmap = function (mediaElement) {
|
|
6030
6046
|
this.getCaptureCanvasContext(mediaElement);
|
|
6047
|
+
var doAutoInvert = false;
|
|
6031
6048
|
if (mediaElement instanceof HTMLVideoElement) {
|
|
6032
6049
|
this.drawFrameOnCanvas(mediaElement);
|
|
6050
|
+
doAutoInvert = true;
|
|
6033
6051
|
}
|
|
6034
6052
|
else {
|
|
6035
6053
|
this.drawImageOnCanvas(mediaElement);
|
|
6036
6054
|
}
|
|
6037
6055
|
var canvas = this.getCaptureCanvas(mediaElement);
|
|
6038
|
-
var luminanceSource = new HTMLCanvasElementLuminanceSource$1(canvas);
|
|
6056
|
+
var luminanceSource = new HTMLCanvasElementLuminanceSource$1(canvas, doAutoInvert);
|
|
6039
6057
|
var hybridBinarizer = new HybridBinarizer(luminanceSource);
|
|
6040
6058
|
return new BinaryBitmap(hybridBinarizer);
|
|
6041
6059
|
};
|
|
@@ -6847,7 +6865,7 @@
|
|
|
6847
6865
|
for (var j = 0; j < s; j++) {
|
|
6848
6866
|
if (i !== j) {
|
|
6849
6867
|
var term = field.multiply(errorLocations[j], xiInverse);
|
|
6850
|
-
var termPlus1 = (term & 0x1) === 0 ? term | 1 : term &
|
|
6868
|
+
var termPlus1 = (term & 0x1) === 0 ? term | 1 : term & -2;
|
|
6851
6869
|
denominator = field.multiply(denominator, termPlus1);
|
|
6852
6870
|
}
|
|
6853
6871
|
}
|
|
@@ -8070,7 +8088,7 @@
|
|
|
8070
8088
|
};
|
|
8071
8089
|
AztecReader.prototype.reportFoundResultPoints = function (hints, points) {
|
|
8072
8090
|
if (hints != null) {
|
|
8073
|
-
var rpcb_1 = hints.get(DecodeHintType
|
|
8091
|
+
var rpcb_1 = hints.get(DecodeHintType.NEED_RESULT_POINT_CALLBACK);
|
|
8074
8092
|
if (rpcb_1 != null) {
|
|
8075
8093
|
points.forEach(function (point, idx, arr) {
|
|
8076
8094
|
rpcb_1.foundPossibleResultPoint(point);
|
|
@@ -8113,7 +8131,7 @@
|
|
|
8113
8131
|
return this.doDecode(image, hints);
|
|
8114
8132
|
}
|
|
8115
8133
|
catch (nfe) {
|
|
8116
|
-
var tryHarder = hints && (hints.get(DecodeHintType
|
|
8134
|
+
var tryHarder = hints && (hints.get(DecodeHintType.TRY_HARDER) === true);
|
|
8117
8135
|
if (tryHarder && image.isRotateSupported()) {
|
|
8118
8136
|
var rotatedImage = image.rotateCounterClockwise();
|
|
8119
8137
|
var result = this.doDecode(rotatedImage, hints);
|
|
@@ -8143,7 +8161,7 @@
|
|
|
8143
8161
|
var width = image.getWidth();
|
|
8144
8162
|
var height = image.getHeight();
|
|
8145
8163
|
var row = new BitArray(width);
|
|
8146
|
-
var tryHarder = hints && (hints.get(DecodeHintType
|
|
8164
|
+
var tryHarder = hints && (hints.get(DecodeHintType.TRY_HARDER) === true);
|
|
8147
8165
|
var rowStep = Math.max(1, height >> (tryHarder ? 8 : 5));
|
|
8148
8166
|
var maxLines;
|
|
8149
8167
|
if (tryHarder) {
|
|
@@ -8169,10 +8187,10 @@
|
|
|
8169
8187
|
var _loop_1 = function (attempt) {
|
|
8170
8188
|
if (attempt === 1) {
|
|
8171
8189
|
row.reverse();
|
|
8172
|
-
if (hints && (hints.get(DecodeHintType
|
|
8190
|
+
if (hints && (hints.get(DecodeHintType.NEED_RESULT_POINT_CALLBACK) === true)) {
|
|
8173
8191
|
var newHints_1 = new Map();
|
|
8174
8192
|
hints.forEach(function (hint, key) { return newHints_1.set(key, hint); });
|
|
8175
|
-
newHints_1.delete(DecodeHintType
|
|
8193
|
+
newHints_1.delete(DecodeHintType.NEED_RESULT_POINT_CALLBACK);
|
|
8176
8194
|
hints = newHints_1;
|
|
8177
8195
|
}
|
|
8178
8196
|
}
|
|
@@ -8352,7 +8370,7 @@
|
|
|
8352
8370
|
}
|
|
8353
8371
|
};
|
|
8354
8372
|
Code128Reader.prototype.decodeRow = function (rowNumber, row, hints) {
|
|
8355
|
-
var convertFNC1 = hints && (hints.get(DecodeHintType
|
|
8373
|
+
var convertFNC1 = hints && (hints.get(DecodeHintType.ASSUME_GS1) === true);
|
|
8356
8374
|
var startPatternInfo = Code128Reader.findStartPattern(row);
|
|
8357
8375
|
var startCode = startPatternInfo[2];
|
|
8358
8376
|
var currentRawCodesIndex = 0;
|
|
@@ -9338,7 +9356,7 @@
|
|
|
9338
9356
|
var resultString = result.toString();
|
|
9339
9357
|
var allowedLengths = null;
|
|
9340
9358
|
if (hints != null) {
|
|
9341
|
-
allowedLengths = hints.get(DecodeHintType
|
|
9359
|
+
allowedLengths = hints.get(DecodeHintType.ALLOWED_LENGTHS);
|
|
9342
9360
|
}
|
|
9343
9361
|
if (allowedLengths == null) {
|
|
9344
9362
|
allowedLengths = ITFReader.DEFAULT_ALLOWED_LENGTHS;
|
|
@@ -9954,7 +9972,7 @@
|
|
|
9954
9972
|
}
|
|
9955
9973
|
UPCEANReader.prototype.decodeRow = function (rowNumber, row, hints) {
|
|
9956
9974
|
var startGuardRange = UPCEANReader.findStartGuardPattern(row);
|
|
9957
|
-
var resultPointCallback = hints == null ? null : hints.get(DecodeHintType
|
|
9975
|
+
var resultPointCallback = hints == null ? null : hints.get(DecodeHintType.NEED_RESULT_POINT_CALLBACK);
|
|
9958
9976
|
if (resultPointCallback != null) {
|
|
9959
9977
|
var resultPoint_1 = new ResultPoint((startGuardRange[0] + startGuardRange[1]) / 2.0, rowNumber);
|
|
9960
9978
|
resultPointCallback.foundPossibleResultPoint(resultPoint_1);
|
|
@@ -9998,7 +10016,7 @@
|
|
|
9998
10016
|
}
|
|
9999
10017
|
catch (err) {
|
|
10000
10018
|
}
|
|
10001
|
-
var allowedExtensions = hints == null ? null : hints.get(DecodeHintType
|
|
10019
|
+
var allowedExtensions = hints == null ? null : hints.get(DecodeHintType.ALLOWED_EAN_EXTENSIONS);
|
|
10002
10020
|
if (allowedExtensions != null) {
|
|
10003
10021
|
var valid = false;
|
|
10004
10022
|
for (var length_1 in allowedExtensions) {
|
|
@@ -10440,7 +10458,7 @@
|
|
|
10440
10458
|
__extends$N(MultiFormatUPCEANReader, _super);
|
|
10441
10459
|
function MultiFormatUPCEANReader(hints) {
|
|
10442
10460
|
var _this = _super.call(this) || this;
|
|
10443
|
-
var possibleFormats = hints == null ? null : hints.get(DecodeHintType
|
|
10461
|
+
var possibleFormats = hints == null ? null : hints.get(DecodeHintType.POSSIBLE_FORMATS);
|
|
10444
10462
|
var readers = [];
|
|
10445
10463
|
if (possibleFormats != null) {
|
|
10446
10464
|
if (possibleFormats.indexOf(BarcodeFormat$1.EAN_13) > -1) {
|
|
@@ -10474,7 +10492,7 @@
|
|
|
10474
10492
|
var result = reader.decodeRow(rowNumber, row, hints);
|
|
10475
10493
|
var ean13MayBeUPCA = result.getBarcodeFormat() === BarcodeFormat$1.EAN_13 &&
|
|
10476
10494
|
result.getText().charAt(0) === '0';
|
|
10477
|
-
var possibleFormats = hints == null ? null : hints.get(DecodeHintType
|
|
10495
|
+
var possibleFormats = hints == null ? null : hints.get(DecodeHintType.POSSIBLE_FORMATS);
|
|
10478
10496
|
var canReturnUPCA = possibleFormats == null || possibleFormats.includes(BarcodeFormat$1.UPC_A);
|
|
10479
10497
|
if (ean13MayBeUPCA && canReturnUPCA) {
|
|
10480
10498
|
var rawBytes = result.getRawBytes();
|
|
@@ -13227,7 +13245,7 @@
|
|
|
13227
13245
|
try {
|
|
13228
13246
|
var startEnd = this.findFinderPattern(row, right);
|
|
13229
13247
|
var pattern = this.parseFoundFinderPattern(row, rowNumber, right, startEnd);
|
|
13230
|
-
var resultPointCallback = hints == null ? null : hints.get(DecodeHintType
|
|
13248
|
+
var resultPointCallback = hints == null ? null : hints.get(DecodeHintType.NEED_RESULT_POINT_CALLBACK);
|
|
13231
13249
|
if (resultPointCallback != null) {
|
|
13232
13250
|
var center = (startEnd[0] + startEnd[1]) / 2.0;
|
|
13233
13251
|
if (right) {
|
|
@@ -13537,9 +13555,9 @@
|
|
|
13537
13555
|
function MultiFormatOneDReader(hints) {
|
|
13538
13556
|
var _this = _super.call(this) || this;
|
|
13539
13557
|
_this.readers = [];
|
|
13540
|
-
var possibleFormats = !hints ? null : hints.get(DecodeHintType
|
|
13541
|
-
var useCode39CheckDigit = hints && hints.get(DecodeHintType
|
|
13542
|
-
var useCode39ExtendedMode = hints && hints.get(DecodeHintType
|
|
13558
|
+
var possibleFormats = !hints ? null : hints.get(DecodeHintType.POSSIBLE_FORMATS);
|
|
13559
|
+
var useCode39CheckDigit = hints && hints.get(DecodeHintType.ASSUME_CODE_39_CHECK_DIGIT) !== undefined;
|
|
13560
|
+
var useCode39ExtendedMode = hints && hints.get(DecodeHintType.ENABLE_CODE_39_EXTENDED_MODE) !== undefined;
|
|
13543
13561
|
if (possibleFormats) {
|
|
13544
13562
|
if (possibleFormats.includes(BarcodeFormat$1.EAN_13) ||
|
|
13545
13563
|
possibleFormats.includes(BarcodeFormat$1.UPC_A) ||
|
|
@@ -14932,7 +14950,7 @@
|
|
|
14932
14950
|
if (hints === void 0) { hints = null; }
|
|
14933
14951
|
var decoderResult;
|
|
14934
14952
|
var points;
|
|
14935
|
-
if (hints != null && hints.has(DecodeHintType
|
|
14953
|
+
if (hints != null && hints.has(DecodeHintType.PURE_BARCODE)) {
|
|
14936
14954
|
var bits = DataMatrixReader.extractPureBits(image.getBlackMatrix());
|
|
14937
14955
|
decoderResult = this.decoder.decode(bits);
|
|
14938
14956
|
points = DataMatrixReader.NO_POINTS;
|
|
@@ -16449,8 +16467,8 @@
|
|
|
16449
16467
|
return this.possibleCenters;
|
|
16450
16468
|
};
|
|
16451
16469
|
FinderPatternFinder.prototype.find = function (hints) {
|
|
16452
|
-
var tryHarder = (hints !== null && hints !== undefined) && undefined !== hints.get(DecodeHintType
|
|
16453
|
-
var pureBarcode = (hints !== null && hints !== undefined) && undefined !== hints.get(DecodeHintType
|
|
16470
|
+
var tryHarder = (hints !== null && hints !== undefined) && undefined !== hints.get(DecodeHintType.TRY_HARDER);
|
|
16471
|
+
var pureBarcode = (hints !== null && hints !== undefined) && undefined !== hints.get(DecodeHintType.PURE_BARCODE);
|
|
16454
16472
|
var image = this.image;
|
|
16455
16473
|
var maxI = image.getHeight();
|
|
16456
16474
|
var maxJ = image.getWidth();
|
|
@@ -16939,7 +16957,7 @@
|
|
|
16939
16957
|
};
|
|
16940
16958
|
Detector.prototype.detect = function (hints) {
|
|
16941
16959
|
this.resultPointCallback = (hints === null || hints === undefined) ? null :
|
|
16942
|
-
hints.get(DecodeHintType
|
|
16960
|
+
hints.get(DecodeHintType.NEED_RESULT_POINT_CALLBACK);
|
|
16943
16961
|
var finder = new FinderPatternFinder(this.image, this.resultPointCallback);
|
|
16944
16962
|
var info = finder.find(hints);
|
|
16945
16963
|
return this.processFinderPatternInfo(info);
|
|
@@ -17140,7 +17158,7 @@
|
|
|
17140
17158
|
QRCodeReader.prototype.decode = function (image, hints) {
|
|
17141
17159
|
var decoderResult;
|
|
17142
17160
|
var points;
|
|
17143
|
-
if (hints !== undefined && hints !== null && undefined !== hints.get(DecodeHintType
|
|
17161
|
+
if (hints !== undefined && hints !== null && undefined !== hints.get(DecodeHintType.PURE_BARCODE)) {
|
|
17144
17162
|
var bits = QRCodeReader.extractPureBits(image.getBlackMatrix());
|
|
17145
17163
|
decoderResult = this.decoder.decodeBitMatrix(bits, hints);
|
|
17146
17164
|
points = QRCodeReader.NO_POINTS;
|
|
@@ -20805,8 +20823,8 @@
|
|
|
20805
20823
|
};
|
|
20806
20824
|
MultiFormatReader.prototype.setHints = function (hints) {
|
|
20807
20825
|
this.hints = hints;
|
|
20808
|
-
var tryHarder = hints !== null && hints !== undefined && undefined !== hints.get(DecodeHintType
|
|
20809
|
-
var formats = hints === null || hints === undefined ? null : hints.get(DecodeHintType
|
|
20826
|
+
var tryHarder = hints !== null && hints !== undefined && undefined !== hints.get(DecodeHintType.TRY_HARDER);
|
|
20827
|
+
var formats = hints === null || hints === undefined ? null : hints.get(DecodeHintType.POSSIBLE_FORMATS);
|
|
20810
20828
|
var readers = new Array();
|
|
20811
20829
|
if (formats !== null && formats !== undefined) {
|
|
20812
20830
|
var addOneDReader = formats.some(function (f) {
|
|
@@ -22421,14 +22439,14 @@
|
|
|
22421
22439
|
return ASCII_ENCODATION;
|
|
22422
22440
|
};
|
|
22423
22441
|
ASCIIEncoder.prototype.encode = function (context) {
|
|
22424
|
-
var n = HighLevelEncoder$
|
|
22442
|
+
var n = HighLevelEncoder$1.determineConsecutiveDigitCount(context.getMessage(), context.pos);
|
|
22425
22443
|
if (n >= 2) {
|
|
22426
22444
|
context.writeCodeword(this.encodeASCIIDigits(context.getMessage().charCodeAt(context.pos), context.getMessage().charCodeAt(context.pos + 1)));
|
|
22427
22445
|
context.pos += 2;
|
|
22428
22446
|
}
|
|
22429
22447
|
else {
|
|
22430
22448
|
var c = context.getCurrentChar();
|
|
22431
|
-
var newMode = HighLevelEncoder$
|
|
22449
|
+
var newMode = HighLevelEncoder$1.lookAheadTest(context.getMessage(), context.pos, this.getEncodingMode());
|
|
22432
22450
|
if (newMode !== this.getEncodingMode()) {
|
|
22433
22451
|
switch (newMode) {
|
|
22434
22452
|
case BASE256_ENCODATION:
|
|
@@ -22455,7 +22473,7 @@
|
|
|
22455
22473
|
throw new Error('Illegal mode: ' + newMode);
|
|
22456
22474
|
}
|
|
22457
22475
|
}
|
|
22458
|
-
else if (HighLevelEncoder$
|
|
22476
|
+
else if (HighLevelEncoder$1.isExtendedASCII(c)) {
|
|
22459
22477
|
context.writeCodeword(UPPER_SHIFT);
|
|
22460
22478
|
context.writeCodeword(c - 128 + 1);
|
|
22461
22479
|
context.pos++;
|
|
@@ -22467,7 +22485,7 @@
|
|
|
22467
22485
|
}
|
|
22468
22486
|
};
|
|
22469
22487
|
ASCIIEncoder.prototype.encodeASCIIDigits = function (digit1, digit2) {
|
|
22470
|
-
if (HighLevelEncoder$
|
|
22488
|
+
if (HighLevelEncoder$1.isDigit(digit1) && HighLevelEncoder$1.isDigit(digit2)) {
|
|
22471
22489
|
var num = (digit1 - 48) * 10 + (digit2 - 48);
|
|
22472
22490
|
return num + 130;
|
|
22473
22491
|
}
|
|
@@ -22489,7 +22507,7 @@
|
|
|
22489
22507
|
var c = context.getCurrentChar();
|
|
22490
22508
|
buffer.append(c);
|
|
22491
22509
|
context.pos++;
|
|
22492
|
-
var newMode = HighLevelEncoder$
|
|
22510
|
+
var newMode = HighLevelEncoder$1.lookAheadTest(context.getMessage(), context.pos, this.getEncodingMode());
|
|
22493
22511
|
if (newMode !== this.getEncodingMode()) {
|
|
22494
22512
|
context.signalEncoderChange(ASCII_ENCODATION);
|
|
22495
22513
|
break;
|
|
@@ -22588,7 +22606,7 @@
|
|
|
22588
22606
|
}
|
|
22589
22607
|
var count = buffer.length();
|
|
22590
22608
|
if (count % 3 === 0) {
|
|
22591
|
-
var newMode = HighLevelEncoder$
|
|
22609
|
+
var newMode = HighLevelEncoder$1.lookAheadTest(context.getMessage(), context.pos, this.getEncodingMode());
|
|
22592
22610
|
if (newMode !== this.getEncodingMode()) {
|
|
22593
22611
|
context.signalEncoderChange(ASCII_ENCODATION);
|
|
22594
22612
|
break;
|
|
@@ -22724,7 +22742,7 @@
|
|
|
22724
22742
|
var test_1 = buffer.toString().substring(4);
|
|
22725
22743
|
buffer.setLengthToZero();
|
|
22726
22744
|
buffer.append(test_1);
|
|
22727
|
-
var newMode = HighLevelEncoder$
|
|
22745
|
+
var newMode = HighLevelEncoder$1.lookAheadTest(context.getMessage(), context.pos, this.getEncodingMode());
|
|
22728
22746
|
if (newMode !== this.getEncodingMode()) {
|
|
22729
22747
|
context.signalEncoderChange(ASCII_ENCODATION);
|
|
22730
22748
|
break;
|
|
@@ -22791,7 +22809,7 @@
|
|
|
22791
22809
|
sb.append(StringUtils.getCharAt(c - 64));
|
|
22792
22810
|
}
|
|
22793
22811
|
else {
|
|
22794
|
-
HighLevelEncoder$
|
|
22812
|
+
HighLevelEncoder$1.illegalCharacter(StringUtils.getCharAt(c));
|
|
22795
22813
|
}
|
|
22796
22814
|
};
|
|
22797
22815
|
EdifactEncoder.prototype.encodeToCodewords = function (sb) {
|
|
@@ -23123,7 +23141,7 @@
|
|
|
23123
23141
|
var count = buffer.length();
|
|
23124
23142
|
if (count % 3 === 0) {
|
|
23125
23143
|
this.writeNextTriplet(context, buffer);
|
|
23126
|
-
var newMode = HighLevelEncoder$
|
|
23144
|
+
var newMode = HighLevelEncoder$1.lookAheadTest(context.getMessage(), context.pos, this.getEncodingMode());
|
|
23127
23145
|
if (newMode !== this.getEncodingMode()) {
|
|
23128
23146
|
context.signalEncoderChange(ASCII_ENCODATION);
|
|
23129
23147
|
break;
|
|
@@ -23154,7 +23172,7 @@
|
|
|
23154
23172
|
sb.append(c - 65 + 14);
|
|
23155
23173
|
}
|
|
23156
23174
|
else {
|
|
23157
|
-
HighLevelEncoder$
|
|
23175
|
+
HighLevelEncoder$1.illegalCharacter(StringUtils.getCharAt(c));
|
|
23158
23176
|
}
|
|
23159
23177
|
break;
|
|
23160
23178
|
}
|
|
@@ -23562,7 +23580,6 @@
|
|
|
23562
23580
|
};
|
|
23563
23581
|
return HighLevelEncoder;
|
|
23564
23582
|
}());
|
|
23565
|
-
const HighLevelEncoder$2 = HighLevelEncoder$1;
|
|
23566
23583
|
|
|
23567
23584
|
var __values$5 = (global && global.__values) || function(o) {
|
|
23568
23585
|
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
@@ -25139,7 +25156,7 @@
|
|
|
25139
25156
|
}
|
|
25140
25157
|
Object.defineProperty(BrowserCodeReader.prototype, "possibleFormats", {
|
|
25141
25158
|
set: function (formats) {
|
|
25142
|
-
this.hints.set(DecodeHintType
|
|
25159
|
+
this.hints.set(DecodeHintType.POSSIBLE_FORMATS, formats);
|
|
25143
25160
|
},
|
|
25144
25161
|
enumerable: false,
|
|
25145
25162
|
configurable: true
|
|
@@ -26064,7 +26081,7 @@
|
|
|
26064
26081
|
}
|
|
26065
26082
|
Object.defineProperty(BrowserMultiFormatReader.prototype, "possibleFormats", {
|
|
26066
26083
|
set: function (formats) {
|
|
26067
|
-
this.hints.set(DecodeHintType
|
|
26084
|
+
this.hints.set(DecodeHintType.POSSIBLE_FORMATS, formats);
|
|
26068
26085
|
this.reader.setHints(this.hints);
|
|
26069
26086
|
},
|
|
26070
26087
|
enumerable: false,
|
|
@@ -26164,7 +26181,7 @@
|
|
|
26164
26181
|
}, [onScan, _onError, delay]);
|
|
26165
26182
|
return (jsxRuntimeExports.jsx(StyledDiv, { className: className, style: containerStyle, children: jsxRuntimeExports.jsx("video", { className: 'ui--qr-Scan', ref: videoRef, style: style }) }));
|
|
26166
26183
|
}
|
|
26167
|
-
const StyledDiv =
|
|
26184
|
+
const StyledDiv = dt.div `
|
|
26168
26185
|
.ui--qr-Scan {
|
|
26169
26186
|
display: inline-block;
|
|
26170
26187
|
height: 100%;
|