@daoyi/nmtl-ui 2.0.1-beta.142 → 2.0.1-beta.144

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.
@@ -1,4 +1,4 @@
1
- export { C as default } from './ContactModal-af7fa280.js';
1
+ export { C as default } from './ContactModal-864f9ccc.js';
2
2
  import './_rollupPluginBabelHelpers-a52356f6.js';
3
3
  import 'react';
4
4
  import 'prop-types';
@@ -3,7 +3,7 @@ import React__default, { useState, useEffect } from 'react';
3
3
  import { c as classNames } from './index-c33afcb5.js';
4
4
  import PropTypes from 'prop-types';
5
5
  import axios from 'axios';
6
- import { C as ContactModal } from './ContactModal-af7fa280.js';
6
+ import { C as ContactModal } from './ContactModal-864f9ccc.js';
7
7
  import { S as Spin } from './Spin-07679812.js';
8
8
  import { getIntl } from './globalConfig';
9
9
  import { s as styleInject } from './style-inject.es-1f59c1d0.js';
@@ -67,10 +67,15 @@ NmtlLogo.propTypes = {
67
67
  onClick: PropTypes.func
68
68
  };
69
69
 
70
- var css_248z = ".footer {\n display: flex;\n justify-content: center;\n width: 100%;\n position: relative;\n z-index: 1;\n}\n.footer__bg {\n width: 100%;\n position: absolute;\n bottom: 0;\n}\n.footer__bg-mobile {\n display: none;\n object-position: 0 0;\n object-fit: cover;\n height: 50rem;\n}\n.footer__bg--single {\n bottom: 100%;\n}\n.footer__logo {\n width: 220px;\n cursor: pointer;\n margin: 2rem calc(8.3333333333% + 2rem);\n}\n.footer__content {\n display: flex;\n align-items: baseline;\n margin: 0 calc(8.3333333333% + 2rem);\n font-size: 1.25rem;\n}\n.footer__content__item {\n display: flex;\n flex-direction: column;\n width: 33%;\n min-width: 300px;\n margin-bottom: 2rem;\n color: white;\n}\n.footer__content__item:last-child {\n margin-bottom: 4rem;\n}\n.footer__content__item__link {\n color: white;\n cursor: pointer;\n text-decoration: none;\n}\n.footer__content__item__link:hover {\n text-decoration: underline;\n}\n.footer .customSpin {\n z-index: 2;\n}\n\n@media only screen and (max-width: 1160px) {\n .footer__content {\n flex-direction: column;\n }\n}\n@media only screen and (max-width: 767px) {\n .footer__bg {\n display: none;\n }\n .footer__bg-mobile {\n display: initial;\n }\n .footer__bg--single {\n display: initial;\n }\n .footer__content {\n font-size: 1.25rem;\n }\n}\n@media only screen and (max-width: 484px) {\n .footer__logo {\n margin: 2rem;\n }\n .footer__content {\n margin: 2rem 2rem 0;\n font-size: 1rem;\n }\n}";
70
+ var img = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFgAAAAfCAYAAABjyArgAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAooSURBVGhD7Zh/TFbXHca/9wVFCwgI8tIiBaFT5grW6ZwuK9ooMdV02mzWRJtq3KJZpjPqlppuNlu7Nq5NNat1i2btOjuXTNdF69bFAml0sf5o2Kq4TrqC0qqVNypgYSDIe/f9nPseuPDysq2DP9a9T3Jzzz33nHPPfc5znvM9x1nwVOIcEfmBXnEMPS5AcLMm0rznOIYaAb3i5A4jIDiOYUSc4GFGnOAhws1WkfZm19z9YJFzI+keJI9KN/e2Dta/OADEhW+5kqnp7NtcGTdS5PYUV4LJIrlpHoUn6x15ocqRrCJH0sY7Jm9Agpff+7iU5M+WvX96IpLjAcLrG0/LvNJH9Fph8g6eel5abzbLmvJtcuDUT6SxpcGUCably6yJi0yZYHq+NDY3mDSDVxicIqGWC7Lt0NdN3r5NV2Xzr+bKam2jP8inLfs92iq5c7ZUntljns98cERqGo6YNKAsfYgF3rfebIkSz60Oka4OV7ISRclzJXuUSI4SmZMicscYV3Iz9O7pblBUvevId37vyB1TPHNI+MzcQJ8YGPJWlz8n/9BOLPj8apleOF9K8+fIklnfla7um1Jdf9gQd+K918z7+tBpWXv/T80Pl09ZIcW5X5Q/1x2WLu0xpHx4vVZGJo42+cH0Ajl3+aQkJY4yhNcoOQzkZ3NnmkGhTqk+t+m3GYDj7x00+eI4kpESlOVlj8v+t56VI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S7sGTjpmkqtRAnc/rAc/uCMgnRM9c4hSsAU+i0UwmvistQdCkl3nvMpr1KvJRyWs/v7tabmSgPL8SmlV9UEAQK2cF1gFo/afvbFe5k9ZpXkFZgMBmRbJmqauf1seCygUUm2aC1VTf10McvHSpRrT1oYiGYq/3uhV5gddXuiFcv/V4peqVhM5rogmmOkADvh2KJwcfV99CBxo6D05Ir3hbg3MdQp2KnnsmmwMi3K2fO1VM8WZ1pzbomqr2PG6WSGf8lgCBIwbk9cnNmY3ZkEZW5ZzCz/soKH6WGBjQt1Y8XOyToIv57l6RTIM/DO5dzG/rD780Q0vjT2836QhbYH3DALe8mQQZREYOwcY6zRw9odfVv4PVSX2+DILwb65t2S3KpotI6RY//QTB7CI7PTeXrS2X5eU0WMjT957ytv6wCrPbk4s7CCw4ejfpuMEzHsGE1hCaZc8WzcW+KfCMb2UeKdpHlgEOYh3VWsMSFF6H+oM/q7x8jePJPSofMA4mNWRAw5r8oAgeoQ6w/76QB+CFxeEjcL/32HXLTu7LQYkOI6hQ1x6w4w4wcOMOMHDDAge+qOpOCIQ+SckhGl2baAY5AAAAABJRU5ErkJggg==";
71
+
72
+ var css_248z = "@charset \"UTF-8\";\n.footer {\n display: flex;\n justify-content: center;\n width: 100%;\n position: relative;\n z-index: 1;\n /* logo 與無障礙標章同一列、垂直置中(2026-11)。原本 logo 是 inline svg,上下外距在行框內、不會與鄰近外距重疊,\n 且 svg 下方多 4px 行高 → 這一列上下改用 padding(避免外距重疊、穿出背景區塊),下方補 4px,logo 與下方內容位置不變 */\n /* 視覺隱藏、報讀軟體仍會念(不依賴各站的 .visually-hidden) */\n}\n.footer__bg {\n width: 100%;\n position: absolute;\n bottom: 0;\n}\n.footer__bg-mobile {\n display: none;\n object-position: 0 0;\n object-fit: cover;\n height: 50rem;\n}\n.footer__bg--single {\n bottom: 100%;\n}\n.footer__logo {\n width: 220px;\n cursor: pointer;\n margin: 2rem calc(8.3333333333% + 2rem);\n}\n.footer__brand {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: 1rem 1.5rem;\n margin: 0 calc(8.3333333333% + 2rem);\n padding: 2rem 0 calc(2rem + 4px);\n}\n.footer__brand .footer__logoLink {\n display: inline-flex;\n}\n.footer__brand .footer__logo {\n margin: 0;\n}\n.footer__badge {\n display: inline-flex;\n flex-shrink: 0;\n line-height: 0;\n}\n.footer__badge img {\n width: 88px;\n height: 31px;\n}\n.footer__srOnly {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border: 0;\n}\n.footer__content {\n display: flex;\n align-items: baseline;\n margin: 0 calc(8.3333333333% + 2rem);\n font-size: 1.25rem;\n}\n.footer__content__item {\n display: flex;\n flex-direction: column;\n width: 33%;\n min-width: 300px;\n margin-bottom: 2rem;\n color: white;\n}\n.footer__content__item:last-child {\n margin-bottom: 4rem;\n}\n.footer__content__item__link {\n color: white;\n cursor: pointer;\n text-decoration: none;\n}\n.footer__content__item__link:hover {\n text-decoration: underline;\n}\n.footer .customSpin {\n z-index: 2;\n}\n\n@media only screen and (max-width: 1160px) {\n .footer__content {\n flex-direction: column;\n }\n}\n@media only screen and (max-width: 767px) {\n .footer__bg {\n display: none;\n }\n .footer__bg-mobile {\n display: initial;\n }\n .footer__bg--single {\n display: initial;\n }\n .footer__content {\n font-size: 1.25rem;\n }\n}\n@media only screen and (max-width: 484px) {\n .footer__logo {\n margin: 2rem;\n }\n .footer__brand {\n margin: 0 2rem;\n column-gap: 1rem;\n }\n .footer__content {\n margin: 2rem 2rem 0;\n font-size: 1rem;\n }\n}";
71
73
  styleInject(css_248z);
72
74
 
73
75
  var textClassName = 'footer__content__item__text';
76
+
77
+ /* 數位部無障礙檢測(AA)通過,申請編號 20261020092303(tlsg.nmtl.gov.tw,含九子站),2026-11 */
78
+ var ACCESSIBILITY_BADGE_URL = 'https://accessibility.moda.gov.tw/Applications/Detail?category=20261020092303';
74
79
  var Footer = function Footer(props) {
75
80
  var color = props.color,
76
81
  primaryColor = props.primaryColor,
@@ -82,7 +87,8 @@ var Footer = function Footer(props) {
82
87
  visitsAPI = props.visitsAPI,
83
88
  emailAPI = props.emailAPI,
84
89
  formatMessage = props.formatMessage,
85
- onNotify = props.onNotify;
90
+ onNotify = props.onNotify,
91
+ accessibilityBadgeUrl = props.accessibilityBadgeUrl;
86
92
  var _useState = useState(false),
87
93
  _useState2 = _slicedToArray(_useState, 2),
88
94
  contactModalOpen = _useState2[0],
@@ -130,7 +136,10 @@ var Footer = function Footer(props) {
130
136
  style: {
131
137
  background: color
132
138
  }
139
+ }, /*#__PURE__*/React__default.createElement("div", {
140
+ className: "footer__brand"
133
141
  }, /*#__PURE__*/React__default.createElement("span", {
142
+ className: "footer__logoLink",
134
143
  role: "link",
135
144
  tabIndex: 0,
136
145
  "aria-label": getIntl().formatMessage({
@@ -148,7 +157,26 @@ var Footer = function Footer(props) {
148
157
  }, /*#__PURE__*/React__default.createElement(NmtlLogo, {
149
158
  className: "footer__logo",
150
159
  color: primaryColor
151
- })), /*#__PURE__*/React__default.createElement("div", {
160
+ })), accessibilityBadgeUrl && /*#__PURE__*/React__default.createElement("a", {
161
+ className: "footer__badge",
162
+ href: accessibilityBadgeUrl,
163
+ target: "_blank",
164
+ rel: "noopener noreferrer",
165
+ title: getIntl().formatMessage({
166
+ id: 'footer.a11yBadge.title'
167
+ })
168
+ }, /*#__PURE__*/React__default.createElement("img", {
169
+ src: img,
170
+ width: 88,
171
+ height: 31,
172
+ alt: getIntl().formatMessage({
173
+ id: 'footer.a11yBadge.alt'
174
+ })
175
+ }), /*#__PURE__*/React__default.createElement("span", {
176
+ className: "footer__srOnly"
177
+ }, getIntl().formatMessage({
178
+ id: 'aria.newWindow'
179
+ })))), /*#__PURE__*/React__default.createElement("div", {
152
180
  className: "footer__content"
153
181
  }, counter && /*#__PURE__*/React__default.createElement("div", {
154
182
  className: "footer__content__item",
@@ -279,7 +307,8 @@ Footer.defaultProps = {
279
307
  var id = _ref7.id;
280
308
  return id;
281
309
  },
282
- onNotify: function onNotify() {}
310
+ onNotify: function onNotify() {},
311
+ accessibilityBadgeUrl: ACCESSIBILITY_BADGE_URL
283
312
  };
284
313
 
285
314
  /* Write props detail information and 'npm run updateStory' will help you generate stories's argTypes */
@@ -311,7 +340,9 @@ Footer.propTypes = {
311
340
  url: PropTypes.string
312
341
  })),
313
342
  /** 聯絡我們傳送後失敗的callback */
314
- onNotify: PropTypes.func
343
+ onNotify: PropTypes.func,
344
+ /** 無障礙標章連到的檢測結果頁;傳空字串或 null 不顯示標章 */
345
+ accessibilityBadgeUrl: PropTypes.string
315
346
  };
316
347
 
317
348
  export { Footer as default };
@@ -85,6 +85,8 @@ var zhtw = {
85
85
  "aria.vcode.image": "驗證碼圖片,如無法辨識可刷新驗證碼",
86
86
  "aria.vcode.refresh": "刷新驗證碼",
87
87
  "aria.footer.nmtlLogo": "國立臺灣文學館(另開新視窗)",
88
+ "footer.a11yBadge.alt": "通過AA無障礙網頁檢測",
89
+ "footer.a11yBadge.title": "無障礙網站",
88
90
  "aria.opensDialog": "(開啟對話框)",
89
91
  "aria.ticker.pause": "暫停關鍵字跑馬燈",
90
92
  "aria.ticker.play": "播放關鍵字跑馬燈",
@@ -225,6 +227,8 @@ var zhcn = {
225
227
  "aria.vcode.image": "验证码图片,如无法辨识可刷新验证码",
226
228
  "aria.vcode.refresh": "刷新验证码",
227
229
  "aria.footer.nmtlLogo": "国立台湾文学馆(另开新窗口)",
230
+ "footer.a11yBadge.alt": "通过AA无障碍网页检测",
231
+ "footer.a11yBadge.title": "无障碍网站",
228
232
  "aria.opensDialog": "(开启对话框)",
229
233
  "aria.ticker.pause": "暂停关键字跑马灯",
230
234
  "aria.ticker.play": "播放关键字跑马灯",
@@ -367,6 +371,8 @@ var enus = {
367
371
  "aria.vcode.image": "CAPTCHA image, refresh if unreadable",
368
372
  "aria.vcode.refresh": "Refresh CAPTCHA",
369
373
  "aria.footer.nmtlLogo": "National Museum of Taiwan Literature (opens in new window)",
374
+ "footer.a11yBadge.alt": "Passed AA accessibility web check",
375
+ "footer.a11yBadge.title": "Accessible website",
370
376
  "aria.opensDialog": " (opens a dialog)",
371
377
  "aria.ticker.pause": "Pause keyword ticker",
372
378
  "aria.ticker.play": "Play keyword ticker",
@@ -28,17 +28,17 @@ var _Symbol = Symbol$6;
28
28
  var Symbol$5 = _Symbol;
29
29
 
30
30
  /** Used for built-in method references. */
31
- var objectProto$g = Object.prototype;
31
+ var objectProto$h = Object.prototype;
32
32
 
33
33
  /** Used to check objects for own properties. */
34
- var hasOwnProperty$d = objectProto$g.hasOwnProperty;
34
+ var hasOwnProperty$e = objectProto$h.hasOwnProperty;
35
35
 
36
36
  /**
37
37
  * Used to resolve the
38
38
  * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
39
39
  * of values.
40
40
  */
41
- var nativeObjectToString$1 = objectProto$g.toString;
41
+ var nativeObjectToString$1 = objectProto$h.toString;
42
42
 
43
43
  /** Built-in value references. */
44
44
  var symToStringTag$1 = Symbol$5 ? Symbol$5.toStringTag : undefined;
@@ -51,7 +51,7 @@ var symToStringTag$1 = Symbol$5 ? Symbol$5.toStringTag : undefined;
51
51
  * @returns {string} Returns the raw `toStringTag`.
52
52
  */
53
53
  function getRawTag$1(value) {
54
- var isOwn = hasOwnProperty$d.call(value, symToStringTag$1),
54
+ var isOwn = hasOwnProperty$e.call(value, symToStringTag$1),
55
55
  tag = value[symToStringTag$1];
56
56
 
57
57
  try {
@@ -74,14 +74,14 @@ var _getRawTag = getRawTag$1;
74
74
 
75
75
  /** Used for built-in method references. */
76
76
 
77
- var objectProto$f = Object.prototype;
77
+ var objectProto$g = Object.prototype;
78
78
 
79
79
  /**
80
80
  * Used to resolve the
81
81
  * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
82
82
  * of values.
83
83
  */
84
- var nativeObjectToString = objectProto$f.toString;
84
+ var nativeObjectToString = objectProto$g.toString;
85
85
 
86
86
  /**
87
87
  * Converts `value` to a string using `Object.prototype.toString`.
@@ -268,17 +268,17 @@ var reIsHostCtor = /^\[object .+?Constructor\]$/;
268
268
 
269
269
  /** Used for built-in method references. */
270
270
  var funcProto$1 = Function.prototype,
271
- objectProto$e = Object.prototype;
271
+ objectProto$f = Object.prototype;
272
272
 
273
273
  /** Used to resolve the decompiled source of functions. */
274
274
  var funcToString$1 = funcProto$1.toString;
275
275
 
276
276
  /** Used to check objects for own properties. */
277
- var hasOwnProperty$c = objectProto$e.hasOwnProperty;
277
+ var hasOwnProperty$d = objectProto$f.hasOwnProperty;
278
278
 
279
279
  /** Used to detect if a method is native. */
280
280
  var reIsNative = RegExp('^' +
281
- funcToString$1.call(hasOwnProperty$c).replace(reRegExpChar, '\\$&')
281
+ funcToString$1.call(hasOwnProperty$d).replace(reRegExpChar, '\\$&')
282
282
  .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
283
283
  );
284
284
 
@@ -515,13 +515,13 @@ var baseIsArguments = _baseIsArguments,
515
515
  isObjectLike$6 = isObjectLike_1;
516
516
 
517
517
  /** Used for built-in method references. */
518
- var objectProto$d = Object.prototype;
518
+ var objectProto$e = Object.prototype;
519
519
 
520
520
  /** Used to check objects for own properties. */
521
- var hasOwnProperty$b = objectProto$d.hasOwnProperty;
521
+ var hasOwnProperty$c = objectProto$e.hasOwnProperty;
522
522
 
523
523
  /** Built-in value references. */
524
- var propertyIsEnumerable$1 = objectProto$d.propertyIsEnumerable;
524
+ var propertyIsEnumerable$1 = objectProto$e.propertyIsEnumerable;
525
525
 
526
526
  /**
527
527
  * Checks if `value` is likely an `arguments` object.
@@ -542,7 +542,7 @@ var propertyIsEnumerable$1 = objectProto$d.propertyIsEnumerable;
542
542
  * // => false
543
543
  */
544
544
  var isArguments$3 = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
545
- return isObjectLike$6(value) && hasOwnProperty$b.call(value, 'callee') &&
545
+ return isObjectLike$6(value) && hasOwnProperty$c.call(value, 'callee') &&
546
546
  !propertyIsEnumerable$1.call(value, 'callee');
547
547
  };
548
548
 
@@ -851,10 +851,10 @@ var baseTimes = _baseTimes,
851
851
  isTypedArray$1 = isTypedArray_1;
852
852
 
853
853
  /** Used for built-in method references. */
854
- var objectProto$c = Object.prototype;
854
+ var objectProto$d = Object.prototype;
855
855
 
856
856
  /** Used to check objects for own properties. */
857
- var hasOwnProperty$a = objectProto$c.hasOwnProperty;
857
+ var hasOwnProperty$b = objectProto$d.hasOwnProperty;
858
858
 
859
859
  /**
860
860
  * Creates an array of the enumerable property names of the array-like `value`.
@@ -874,7 +874,7 @@ function arrayLikeKeys$2(value, inherited) {
874
874
  length = result.length;
875
875
 
876
876
  for (var key in value) {
877
- if ((inherited || hasOwnProperty$a.call(value, key)) &&
877
+ if ((inherited || hasOwnProperty$b.call(value, key)) &&
878
878
  !(skipIndexes && (
879
879
  // Safari 9 has enumerable `arguments.length` in strict mode.
880
880
  key == 'length' ||
@@ -895,7 +895,7 @@ var _arrayLikeKeys = arrayLikeKeys$2;
895
895
 
896
896
  /** Used for built-in method references. */
897
897
 
898
- var objectProto$b = Object.prototype;
898
+ var objectProto$c = Object.prototype;
899
899
 
900
900
  /**
901
901
  * Checks if `value` is likely a prototype object.
@@ -906,7 +906,7 @@ var objectProto$b = Object.prototype;
906
906
  */
907
907
  function isPrototype$3(value) {
908
908
  var Ctor = value && value.constructor,
909
- proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$b;
909
+ proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$c;
910
910
 
911
911
  return value === proto;
912
912
  }
@@ -941,10 +941,10 @@ var isPrototype$2 = _isPrototype,
941
941
  nativeKeys = _nativeKeys;
942
942
 
943
943
  /** Used for built-in method references. */
944
- var objectProto$a = Object.prototype;
944
+ var objectProto$b = Object.prototype;
945
945
 
946
946
  /** Used to check objects for own properties. */
947
- var hasOwnProperty$9 = objectProto$a.hasOwnProperty;
947
+ var hasOwnProperty$a = objectProto$b.hasOwnProperty;
948
948
 
949
949
  /**
950
950
  * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
@@ -959,7 +959,7 @@ function baseKeys$1(object) {
959
959
  }
960
960
  var result = [];
961
961
  for (var key in Object(object)) {
962
- if (hasOwnProperty$9.call(object, key) && key != 'constructor') {
962
+ if (hasOwnProperty$a.call(object, key) && key != 'constructor') {
963
963
  result.push(key);
964
964
  }
965
965
  }
@@ -1460,10 +1460,10 @@ var nativeCreate$2 = _nativeCreate;
1460
1460
  var HASH_UNDEFINED$2 = '__lodash_hash_undefined__';
1461
1461
 
1462
1462
  /** Used for built-in method references. */
1463
- var objectProto$9 = Object.prototype;
1463
+ var objectProto$a = Object.prototype;
1464
1464
 
1465
1465
  /** Used to check objects for own properties. */
1466
- var hasOwnProperty$8 = objectProto$9.hasOwnProperty;
1466
+ var hasOwnProperty$9 = objectProto$a.hasOwnProperty;
1467
1467
 
1468
1468
  /**
1469
1469
  * Gets the hash value for `key`.
@@ -1480,7 +1480,7 @@ function hashGet$1(key) {
1480
1480
  var result = data[key];
1481
1481
  return result === HASH_UNDEFINED$2 ? undefined : result;
1482
1482
  }
1483
- return hasOwnProperty$8.call(data, key) ? data[key] : undefined;
1483
+ return hasOwnProperty$9.call(data, key) ? data[key] : undefined;
1484
1484
  }
1485
1485
 
1486
1486
  var _hashGet = hashGet$1;
@@ -1488,10 +1488,10 @@ var _hashGet = hashGet$1;
1488
1488
  var nativeCreate$1 = _nativeCreate;
1489
1489
 
1490
1490
  /** Used for built-in method references. */
1491
- var objectProto$8 = Object.prototype;
1491
+ var objectProto$9 = Object.prototype;
1492
1492
 
1493
1493
  /** Used to check objects for own properties. */
1494
- var hasOwnProperty$7 = objectProto$8.hasOwnProperty;
1494
+ var hasOwnProperty$8 = objectProto$9.hasOwnProperty;
1495
1495
 
1496
1496
  /**
1497
1497
  * Checks if a hash value for `key` exists.
@@ -1504,7 +1504,7 @@ var hasOwnProperty$7 = objectProto$8.hasOwnProperty;
1504
1504
  */
1505
1505
  function hashHas$1(key) {
1506
1506
  var data = this.__data__;
1507
- return nativeCreate$1 ? (data[key] !== undefined) : hasOwnProperty$7.call(data, key);
1507
+ return nativeCreate$1 ? (data[key] !== undefined) : hasOwnProperty$8.call(data, key);
1508
1508
  }
1509
1509
 
1510
1510
  var _hashHas = hashHas$1;
@@ -1824,7 +1824,7 @@ var _setCacheAdd = setCacheAdd$1;
1824
1824
  * @name has
1825
1825
  * @memberOf SetCache
1826
1826
  * @param {*} value The value to search for.
1827
- * @returns {number} Returns `true` if `value` is found, else `false`.
1827
+ * @returns {boolean} Returns `true` if `value` is found, else `false`.
1828
1828
  */
1829
1829
 
1830
1830
  function setCacheHas$1(value) {
@@ -2245,10 +2245,10 @@ var arrayFilter = _arrayFilter,
2245
2245
  stubArray$1 = stubArray_1;
2246
2246
 
2247
2247
  /** Used for built-in method references. */
2248
- var objectProto$7 = Object.prototype;
2248
+ var objectProto$8 = Object.prototype;
2249
2249
 
2250
2250
  /** Built-in value references. */
2251
- var propertyIsEnumerable = objectProto$7.propertyIsEnumerable;
2251
+ var propertyIsEnumerable = objectProto$8.propertyIsEnumerable;
2252
2252
 
2253
2253
  /* Built-in method references for those with the same name as other `lodash` methods. */
2254
2254
  var nativeGetSymbols$1 = Object.getOwnPropertySymbols;
@@ -2295,10 +2295,10 @@ var getAllKeys$1 = _getAllKeys;
2295
2295
  var COMPARE_PARTIAL_FLAG$3 = 1;
2296
2296
 
2297
2297
  /** Used for built-in method references. */
2298
- var objectProto$6 = Object.prototype;
2298
+ var objectProto$7 = Object.prototype;
2299
2299
 
2300
2300
  /** Used to check objects for own properties. */
2301
- var hasOwnProperty$6 = objectProto$6.hasOwnProperty;
2301
+ var hasOwnProperty$7 = objectProto$7.hasOwnProperty;
2302
2302
 
2303
2303
  /**
2304
2304
  * A specialized version of `baseIsEqualDeep` for objects with support for
@@ -2326,7 +2326,7 @@ function equalObjects$1(object, other, bitmask, customizer, equalFunc, stack) {
2326
2326
  var index = objLength;
2327
2327
  while (index--) {
2328
2328
  var key = objProps[index];
2329
- if (!(isPartial ? key in other : hasOwnProperty$6.call(other, key))) {
2329
+ if (!(isPartial ? key in other : hasOwnProperty$7.call(other, key))) {
2330
2330
  return false;
2331
2331
  }
2332
2332
  }
@@ -2489,10 +2489,10 @@ var argsTag$1 = '[object Arguments]',
2489
2489
  objectTag$2 = '[object Object]';
2490
2490
 
2491
2491
  /** Used for built-in method references. */
2492
- var objectProto$5 = Object.prototype;
2492
+ var objectProto$6 = Object.prototype;
2493
2493
 
2494
2494
  /** Used to check objects for own properties. */
2495
- var hasOwnProperty$5 = objectProto$5.hasOwnProperty;
2495
+ var hasOwnProperty$6 = objectProto$6.hasOwnProperty;
2496
2496
 
2497
2497
  /**
2498
2498
  * A specialized version of `baseIsEqual` for arrays and objects which performs
@@ -2535,8 +2535,8 @@ function baseIsEqualDeep$1(object, other, bitmask, customizer, equalFunc, stack)
2535
2535
  : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
2536
2536
  }
2537
2537
  if (!(bitmask & COMPARE_PARTIAL_FLAG$2)) {
2538
- var objIsWrapped = objIsObj && hasOwnProperty$5.call(object, '__wrapped__'),
2539
- othIsWrapped = othIsObj && hasOwnProperty$5.call(other, '__wrapped__');
2538
+ var objIsWrapped = objIsObj && hasOwnProperty$6.call(object, '__wrapped__'),
2539
+ othIsWrapped = othIsObj && hasOwnProperty$6.call(other, '__wrapped__');
2540
2540
 
2541
2541
  if (objIsWrapped || othIsWrapped) {
2542
2542
  var objUnwrapped = objIsWrapped ? object.value() : object,
@@ -3388,10 +3388,10 @@ var baseAssignValue$2 = _baseAssignValue,
3388
3388
  createAggregator = _createAggregator;
3389
3389
 
3390
3390
  /** Used for built-in method references. */
3391
- var objectProto$4 = Object.prototype;
3391
+ var objectProto$5 = Object.prototype;
3392
3392
 
3393
3393
  /** Used to check objects for own properties. */
3394
- var hasOwnProperty$4 = objectProto$4.hasOwnProperty;
3394
+ var hasOwnProperty$5 = objectProto$5.hasOwnProperty;
3395
3395
 
3396
3396
  /**
3397
3397
  * Creates an object composed of keys generated from the results of running
@@ -3417,7 +3417,7 @@ var hasOwnProperty$4 = objectProto$4.hasOwnProperty;
3417
3417
  * // => { '3': ['one', 'two'], '5': ['three'] }
3418
3418
  */
3419
3419
  var groupBy = createAggregator(function(result, value, key) {
3420
- if (hasOwnProperty$4.call(result, key)) {
3420
+ if (hasOwnProperty$5.call(result, key)) {
3421
3421
  result[key].push(value);
3422
3422
  } else {
3423
3423
  baseAssignValue$2(result, key, [value]);
@@ -3454,10 +3454,10 @@ var baseAssignValue$1 = _baseAssignValue,
3454
3454
  eq = eq_1;
3455
3455
 
3456
3456
  /** Used for built-in method references. */
3457
- var objectProto$3 = Object.prototype;
3457
+ var objectProto$4 = Object.prototype;
3458
3458
 
3459
3459
  /** Used to check objects for own properties. */
3460
- var hasOwnProperty$3 = objectProto$3.hasOwnProperty;
3460
+ var hasOwnProperty$4 = objectProto$4.hasOwnProperty;
3461
3461
 
3462
3462
  /**
3463
3463
  * Assigns `value` to `key` of `object` if the existing value is not equivalent
@@ -3471,7 +3471,7 @@ var hasOwnProperty$3 = objectProto$3.hasOwnProperty;
3471
3471
  */
3472
3472
  function assignValue$2(object, key, value) {
3473
3473
  var objValue = object[key];
3474
- if (!(hasOwnProperty$3.call(object, key) && eq(objValue, value)) ||
3474
+ if (!(hasOwnProperty$4.call(object, key) && eq(objValue, value)) ||
3475
3475
  (value === undefined && !(key in object))) {
3476
3476
  baseAssignValue$1(object, key, value);
3477
3477
  }
@@ -3565,10 +3565,10 @@ var isObject$2 = isObject_1,
3565
3565
  nativeKeysIn = _nativeKeysIn;
3566
3566
 
3567
3567
  /** Used for built-in method references. */
3568
- var objectProto$2 = Object.prototype;
3568
+ var objectProto$3 = Object.prototype;
3569
3569
 
3570
3570
  /** Used to check objects for own properties. */
3571
- var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
3571
+ var hasOwnProperty$3 = objectProto$3.hasOwnProperty;
3572
3572
 
3573
3573
  /**
3574
3574
  * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
@@ -3585,7 +3585,7 @@ function baseKeysIn$1(object) {
3585
3585
  result = [];
3586
3586
 
3587
3587
  for (var key in object) {
3588
- if (!(key == 'constructor' && (isProto || !hasOwnProperty$2.call(object, key)))) {
3588
+ if (!(key == 'constructor' && (isProto || !hasOwnProperty$3.call(object, key)))) {
3589
3589
  result.push(key);
3590
3590
  }
3591
3591
  }
@@ -3794,10 +3794,10 @@ var _getAllKeysIn = getAllKeysIn$2;
3794
3794
 
3795
3795
  /** Used for built-in method references. */
3796
3796
 
3797
- var objectProto$1 = Object.prototype;
3797
+ var objectProto$2 = Object.prototype;
3798
3798
 
3799
3799
  /** Used to check objects for own properties. */
3800
- var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
3800
+ var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
3801
3801
 
3802
3802
  /**
3803
3803
  * Initializes an array clone.
@@ -3811,7 +3811,7 @@ function initCloneArray$1(array) {
3811
3811
  result = new array.constructor(length);
3812
3812
 
3813
3813
  // Add properties assigned by `RegExp#exec`.
3814
- if (length && typeof array[0] == 'string' && hasOwnProperty$1.call(array, 'index')) {
3814
+ if (length && typeof array[0] == 'string' && hasOwnProperty$2.call(array, 'index')) {
3815
3815
  result.index = array.index;
3816
3816
  result.input = array.input;
3817
3817
  }
@@ -4375,6 +4375,12 @@ var castPath$1 = _castPath,
4375
4375
  parent = _parent,
4376
4376
  toKey = _toKey;
4377
4377
 
4378
+ /** Used for built-in method references. */
4379
+ var objectProto$1 = Object.prototype;
4380
+
4381
+ /** Used to check objects for own properties. */
4382
+ var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
4383
+
4378
4384
  /**
4379
4385
  * The base implementation of `_.unset`.
4380
4386
  *
@@ -4385,8 +4391,34 @@ var castPath$1 = _castPath,
4385
4391
  */
4386
4392
  function baseUnset$1(object, path) {
4387
4393
  path = castPath$1(path, object);
4388
- object = parent(object, path);
4389
- return object == null || delete object[toKey(last(path))];
4394
+
4395
+ // Prevent prototype pollution:
4396
+ // https://github.com/lodash/lodash/security/advisories/GHSA-xxjr-mmjv-4gpg
4397
+ // https://github.com/lodash/lodash/security/advisories/GHSA-f23m-r3pf-42rh
4398
+ var index = -1,
4399
+ length = path.length;
4400
+
4401
+ if (!length) {
4402
+ return true;
4403
+ }
4404
+
4405
+ while (++index < length) {
4406
+ var key = toKey(path[index]);
4407
+
4408
+ // Always block "__proto__" anywhere in the path if it's not expected
4409
+ if (key === '__proto__' && !hasOwnProperty$1.call(object, '__proto__')) {
4410
+ return false;
4411
+ }
4412
+
4413
+ // Block constructor/prototype as non-terminal traversal keys to prevent
4414
+ // escaping the object graph into built-in constructors and prototypes.
4415
+ if ((key === 'constructor' || key === 'prototype') && index < length - 1) {
4416
+ return false;
4417
+ }
4418
+ }
4419
+
4420
+ var obj = parent(object, path);
4421
+ return obj == null || delete obj[toKey(last(path))];
4390
4422
  }
4391
4423
 
4392
4424
  var _baseUnset = baseUnset$1;