@ued_fpi/data-visual 1.0.11 → 1.1.1

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.
Files changed (357) hide show
  1. package/dist/es/aims/service/request.mjs +1 -1
  2. package/dist/es/aims/src/AirQualityCalendar/index.mjs +12 -7
  3. package/dist/es/aims/src/AirQualityLevelMonthRatio/index.mjs +5 -5
  4. package/dist/es/aims/src/AirQualityLevelYearRatio/index.mjs +3 -3
  5. package/dist/es/aims/src/AirQualityPresentSituation/index.mjs +10 -13
  6. package/dist/es/aims/src/AirQualityRealTime/index.mjs +13 -16
  7. package/dist/es/aims/src/AirTimeSeriesAnalysis/index.mjs +1 -1
  8. package/dist/es/aims/src/CieqContributionMonthRatio/index.mjs +3 -3
  9. package/dist/es/aims/src/CieqContributionYearRatio/index.mjs +5 -5
  10. package/dist/es/aims/src/FactorRealTimeRankChart/index.mjs +6 -7
  11. package/dist/es/aims/src/FactorRealTimeRankList/index.mjs +7 -7
  12. package/dist/es/aims/src/FactorTargetYearPeriod/index.mjs +3 -3
  13. package/dist/es/aims/src/MainPollutionMonthRatio/index.mjs +3 -3
  14. package/dist/es/aims/src/MainPollutionYearRatio/index.mjs +3 -3
  15. package/dist/es/aims/src/MulGridAirQualityLevelMonthRatio/index.mjs +3 -3
  16. package/dist/es/aims/src/MulGridCieqContributionMonthRatio/index.mjs +3 -3
  17. package/dist/es/aims/src/TbHbAnalysis/index.mjs +4 -4
  18. package/dist/es/aims/src/WeatherCondition/index.mjs +5 -5
  19. package/dist/es/aims/src/common/BasicDialog/index.mjs +3 -3
  20. package/dist/es/aims/src/common/BasicEcharts/index.mjs +2 -2
  21. package/dist/es/aims/src/common/BasicPanel/index.mjs +3 -1
  22. package/dist/es/aims/utils/tools.mjs +1 -1
  23. package/dist/es/bmp/config/index.mjs +7 -0
  24. package/dist/es/bmp/service/base-serve.d.ts +4 -0
  25. package/dist/es/bmp/service/base-serve.mjs +12 -0
  26. package/dist/es/bmp/service/request.d.ts +3 -0
  27. package/dist/es/bmp/service/request.mjs +78 -0
  28. package/dist/es/bmp/service/types.d.ts +14 -0
  29. package/dist/es/bmp/src/AlgaeMonitoring/api/index.d.ts +6 -0
  30. package/dist/es/bmp/src/AlgaeMonitoring/api/index.mjs +12 -0
  31. package/dist/es/bmp/src/AlgaeMonitoring/api/types.d.ts +21 -0
  32. package/dist/es/bmp/src/AlgaeMonitoring/images/checked.mjs +3 -0
  33. package/dist/es/bmp/src/AlgaeMonitoring/images/today-alarm.mjs +3 -0
  34. package/dist/es/bmp/src/AlgaeMonitoring/index.d.ts +97 -0
  35. package/dist/es/bmp/src/AlgaeMonitoring/index.mjs +193 -0
  36. package/dist/es/bmp/src/AlgaeMonitoring/index.vue.d.ts +6 -0
  37. package/dist/es/bmp/src/index.d.ts +1 -1
  38. package/dist/es/bmp/src/index.mjs +2 -2
  39. package/dist/es/index.mjs +58 -20
  40. package/dist/es/ipes/service/request.mjs +2 -1
  41. package/dist/es/ipes/src/AccessVehicleManage/index.d.ts +81 -7
  42. package/dist/es/ipes/src/AccessVehicleManage/index.mjs +103 -40
  43. package/dist/es/ipes/src/AccessVehicleManage/index.vue.d.ts +48 -3
  44. package/dist/es/ipes/src/AirPollutionDischarge/images/new-nodata.mjs +3 -0
  45. package/dist/es/ipes/src/AirPollutionDischarge/index.d.ts +3 -107
  46. package/dist/es/ipes/src/AirPollutionDischarge/index.mjs +184 -127
  47. package/dist/es/ipes/src/AirPollutionDischarge/index.vue.d.ts +1 -64
  48. package/dist/es/ipes/src/AirQuality/index.mjs +25 -16
  49. package/dist/es/ipes/src/AirQualityManagement/index.mjs +31 -20
  50. package/dist/es/ipes/src/AlarmManage/images/alarm.mjs +3 -0
  51. package/dist/es/ipes/src/AlarmManage/images/modeluIcon.mjs +3 -0
  52. package/dist/es/ipes/src/AlarmManage/images/new-nodata.mjs +3 -0
  53. package/dist/es/ipes/src/AlarmManage/index.d.ts +89 -0
  54. package/dist/es/ipes/src/AlarmManage/index.mjs +175 -0
  55. package/dist/es/ipes/src/AlarmManage/index.vue.d.ts +2 -0
  56. package/dist/es/ipes/src/AlarmManage/type.d.ts +5 -0
  57. package/dist/es/ipes/src/BusinessManage/images/icon-percent.mjs +3 -0
  58. package/dist/es/ipes/src/BusinessManage/index.d.ts +89 -0
  59. package/dist/es/ipes/src/BusinessManage/index.mjs +196 -0
  60. package/dist/es/ipes/src/BusinessManage/index.vue.d.ts +2 -0
  61. package/dist/es/ipes/src/BusinessManage/type.d.ts +10 -0
  62. package/dist/es/ipes/src/EmergencyDuty/index.mjs +3 -3
  63. package/dist/es/ipes/src/EnterpriseProtectionCode/index.d.ts +38 -3
  64. package/dist/es/ipes/src/EnterpriseProtectionCode/index.mjs +52 -30
  65. package/dist/es/ipes/src/EnterpriseProtectionCode/index.vue.d.ts +22 -1
  66. package/dist/es/ipes/src/EnvManage/index.mjs +17 -14
  67. package/dist/es/ipes/src/EnvironmentalProtection/images/module-title-icon.mjs +3 -0
  68. package/dist/es/ipes/src/EnvironmentalProtection/images/piebottom.mjs +3 -0
  69. package/dist/es/ipes/src/EnvironmentalProtection/images/pietop.mjs +3 -0
  70. package/dist/es/ipes/src/EnvironmentalProtection/index.d.ts +101 -0
  71. package/dist/es/ipes/src/EnvironmentalProtection/index.mjs +177 -0
  72. package/dist/es/ipes/src/EnvironmentalProtection/index.vue.d.ts +6 -0
  73. package/dist/es/ipes/src/EnvironmentalRiskManagement/.mjs +2 -2
  74. package/dist/es/ipes/src/EnvironmentalRiskManagement/index.d.ts +23 -3
  75. package/dist/es/ipes/src/EnvironmentalRiskManagement/index.mjs +48 -12
  76. package/dist/es/ipes/src/EnvironmentalRiskManagement/index.vue.d.ts +13 -1
  77. package/dist/es/ipes/src/GasControl/.mjs +120 -0
  78. package/dist/es/ipes/src/GasControl/components/AlarmStatistics.vue.d.ts +22 -0
  79. package/dist/es/ipes/src/GasControl/components/SingleItem.vue.d.ts +16 -0
  80. package/dist/es/{bmp/src/test-com → ipes/src/GasControl}/index.d.ts +28 -24
  81. package/dist/es/ipes/src/GasControl/index.mjs +103 -0
  82. package/dist/es/ipes/src/GasControl/index.vue.d.ts +23 -0
  83. package/dist/es/ipes/src/GeneralManagement/.mjs +14 -17
  84. package/dist/es/ipes/src/GeneralManagement/components/Tabs.vue.d.ts +10 -6
  85. package/dist/es/ipes/src/GeneralManagement/index.d.ts +18 -9
  86. package/dist/es/ipes/src/GeneralManagement/index.mjs +9 -11
  87. package/dist/es/ipes/src/GeneralManagement/index.vue.d.ts +12 -6
  88. package/dist/es/ipes/src/HazardousVehicleManage/index.d.ts +82 -14
  89. package/dist/es/ipes/src/HazardousVehicleManage/index.mjs +67 -42
  90. package/dist/es/ipes/src/HazardousVehicleManage/index.vue.d.ts +48 -5
  91. package/dist/es/ipes/src/InspectionManage/images/module-title-icon.mjs +3 -0
  92. package/dist/es/ipes/src/InspectionManage/images/new-nodata.mjs +3 -0
  93. package/dist/es/ipes/src/InspectionManage/index.d.ts +136 -0
  94. package/dist/es/ipes/src/InspectionManage/index.mjs +267 -0
  95. package/dist/es/ipes/src/InspectionManage/index.vue.d.ts +27 -0
  96. package/dist/es/ipes/src/InspectionManage/types/index.d.ts +11 -0
  97. package/dist/es/ipes/src/Level3AirDefense/.mjs +38 -12
  98. package/dist/es/ipes/src/Level3AirDefense/components/EmptyData.vue.d.ts +14 -0
  99. package/dist/es/ipes/src/Level3AirDefense/images/empty.mjs +3 -0
  100. package/dist/es/ipes/src/Level3AirDefense/index.mjs +10 -9
  101. package/dist/es/ipes/src/OdorControl/index.mjs +1 -1
  102. package/dist/es/ipes/src/PollutantSourceManage/index.d.ts +168 -0
  103. package/dist/es/ipes/src/PollutantSourceManage/index.mjs +90 -0
  104. package/dist/es/ipes/src/PollutantSourceManage/index.vue.d.ts +42 -0
  105. package/dist/es/ipes/src/PollutantSourceManage/types.d.ts +18 -0
  106. package/dist/es/ipes/src/RealTimeAirQualityManage/index.mjs +1 -1
  107. package/dist/es/ipes/src/SealingManage/index.d.ts +121 -14
  108. package/dist/es/ipes/src/SealingManage/index.mjs +221 -83
  109. package/dist/es/ipes/src/SealingManage/index.vue.d.ts +72 -5
  110. package/dist/es/ipes/src/TaskDispose/.mjs +2 -2
  111. package/dist/es/ipes/src/VocStatistics/index.mjs +2 -2
  112. package/dist/es/ipes/src/WaterNetworkManage/index.d.ts +81 -7
  113. package/dist/es/ipes/src/WaterNetworkManage/index.mjs +71 -39
  114. package/dist/es/ipes/src/WaterNetworkManage/index.vue.d.ts +48 -3
  115. package/dist/es/ipes/src/common/Echarts.mjs +2 -2
  116. package/dist/es/ipes/src/common/IpesPercentBar.mjs +38 -0
  117. package/dist/es/ipes/src/common/IpesProgressBar.mjs +38 -0
  118. package/dist/es/ipes/src/common/LottieAnimation.mjs +3 -3
  119. package/dist/es/ipes/src/index.d.ts +6 -0
  120. package/dist/es/ipes/src/index.mjs +12 -0
  121. package/dist/es/style.css +1514 -909
  122. package/dist/es/wgms/service/request.mjs +1 -1
  123. package/dist/es/wgms/src/AuxiliaryJudgment/index.mjs +3 -3
  124. package/dist/es/wgms/src/ChangesAlongTheProcess/index.mjs +3 -3
  125. package/dist/es/wgms/src/ChlorophyllAchangeRate/index.mjs +5 -5
  126. package/dist/es/wgms/src/CrossSectionCorrelation/index.mjs +4 -4
  127. package/dist/es/wgms/src/DistributionPoints/index.mjs +4 -4
  128. package/dist/es/wgms/src/DrinkingWaterComplianceRate/index.mjs +2 -2
  129. package/dist/es/wgms/src/EnvironmentalAnalysis/index.mjs +7 -5
  130. package/dist/es/wgms/src/FactorTopThreeRanking/index.mjs +4 -4
  131. package/dist/es/wgms/src/FactorTrendComparison/index.mjs +2 -2
  132. package/dist/es/wgms/src/KeyRiverWaterQualityEvaluation/index.mjs +3 -3
  133. package/dist/es/wgms/src/LakeRiverIndex/index.mjs +4 -4
  134. package/dist/es/wgms/src/NPTrendChange/index.mjs +2 -2
  135. package/dist/es/wgms/src/SevenDayKline/index.mjs +4 -4
  136. package/dist/es/wgms/src/SewageOutletsOnlineMonitor/index.mjs +4 -4
  137. package/dist/es/wgms/src/SewageOutletsOnlineMonitor/index.vue.d.ts +0 -1
  138. package/dist/es/wgms/src/SubordinateRanking/index.mjs +7 -4
  139. package/dist/es/wgms/src/SurroundingPollution/index.mjs +5 -5
  140. package/dist/es/wgms/src/UpstreamImpact/index.mjs +3 -3
  141. package/dist/es/wgms/src/UpstreamSection/index.mjs +3 -3
  142. package/dist/es/wgms/src/WaterEnvironmentOnlineMonitor/index.mjs +2 -2
  143. package/dist/es/wgms/src/WaterQualityClassification/index.mjs +3 -3
  144. package/dist/es/wgms/src/WaterQualityRainfall/index.mjs +3 -3
  145. package/dist/es/wgms/src/WaterQualityStatus/index.mjs +3 -3
  146. package/dist/es/wgms/src/common/select-panel.mjs +3 -1
  147. package/dist/es/wgms/utils/echarts/index.mjs +14 -2
  148. package/dist/es/wgms/utils/tools.mjs +1 -1
  149. package/dist/lib/aims/service/request.js +3 -3
  150. package/dist/lib/aims/src/AirQualityCalendar/index.js +20 -15
  151. package/dist/lib/aims/src/AirQualityLevelMonthRatio/index.js +6 -6
  152. package/dist/lib/aims/src/AirQualityLevelYearRatio/index.js +4 -4
  153. package/dist/lib/aims/src/AirQualityPresentSituation/index.js +9 -12
  154. package/dist/lib/aims/src/AirQualityRealTime/index.js +12 -15
  155. package/dist/lib/aims/src/AirTimeSeriesAnalysis/index.js +5 -5
  156. package/dist/lib/aims/src/CieqContributionMonthRatio/index.js +4 -4
  157. package/dist/lib/aims/src/CieqContributionYearRatio/index.js +6 -6
  158. package/dist/lib/aims/src/FactorRealTimeRankChart/index.js +7 -8
  159. package/dist/lib/aims/src/FactorRealTimeRankList/index.js +8 -8
  160. package/dist/lib/aims/src/FactorTargetYearPeriod/index.js +4 -4
  161. package/dist/lib/aims/src/MainPollutionMonthRatio/index.js +4 -4
  162. package/dist/lib/aims/src/MainPollutionYearRatio/index.js +4 -4
  163. package/dist/lib/aims/src/MulGridAirQualityLevelMonthRatio/index.js +4 -4
  164. package/dist/lib/aims/src/MulGridCieqContributionMonthRatio/index.js +4 -4
  165. package/dist/lib/aims/src/TbHbAnalysis/index.js +6 -6
  166. package/dist/lib/aims/src/WeatherCondition/index.js +5 -5
  167. package/dist/lib/aims/src/common/BasicDialog/index.js +3 -3
  168. package/dist/lib/aims/src/common/BasicEcharts/index.js +21 -2
  169. package/dist/lib/aims/src/common/BasicPanel/index.js +4 -2
  170. package/dist/lib/aims/utils/tools.js +2 -2
  171. package/dist/lib/bmp/config/index.js +8 -0
  172. package/dist/lib/bmp/service/base-serve.d.ts +4 -0
  173. package/dist/lib/bmp/service/base-serve.js +14 -0
  174. package/dist/lib/bmp/service/request.d.ts +3 -0
  175. package/dist/lib/bmp/service/request.js +80 -0
  176. package/dist/lib/bmp/service/types.d.ts +14 -0
  177. package/dist/lib/bmp/src/AlgaeMonitoring/api/index.d.ts +6 -0
  178. package/dist/lib/bmp/src/AlgaeMonitoring/api/index.js +14 -0
  179. package/dist/lib/bmp/src/AlgaeMonitoring/api/types.d.ts +21 -0
  180. package/dist/lib/bmp/src/AlgaeMonitoring/images/checked.js +5 -0
  181. package/dist/lib/bmp/src/AlgaeMonitoring/images/today-alarm.js +5 -0
  182. package/dist/lib/bmp/src/AlgaeMonitoring/index.d.ts +97 -0
  183. package/dist/lib/bmp/src/AlgaeMonitoring/index.js +214 -0
  184. package/dist/lib/bmp/src/AlgaeMonitoring/index.vue.d.ts +6 -0
  185. package/dist/lib/bmp/src/index.d.ts +1 -1
  186. package/dist/lib/bmp/src/index.js +2 -2
  187. package/dist/lib/index.js +65 -21
  188. package/dist/lib/ipes/service/request.js +4 -3
  189. package/dist/lib/ipes/src/AccessVehicleManage/index.d.ts +81 -7
  190. package/dist/lib/ipes/src/AccessVehicleManage/index.js +107 -44
  191. package/dist/lib/ipes/src/AccessVehicleManage/index.vue.d.ts +48 -3
  192. package/dist/lib/ipes/src/AirPollutionDischarge/images/new-nodata.js +5 -0
  193. package/dist/lib/ipes/src/AirPollutionDischarge/index.d.ts +3 -107
  194. package/dist/lib/ipes/src/AirPollutionDischarge/index.js +183 -126
  195. package/dist/lib/ipes/src/AirPollutionDischarge/index.vue.d.ts +1 -64
  196. package/dist/lib/ipes/src/AirQuality/index.js +25 -16
  197. package/dist/lib/ipes/src/AirQualityManagement/index.js +31 -20
  198. package/dist/lib/ipes/src/AlarmManage/images/alarm.js +5 -0
  199. package/dist/lib/ipes/src/AlarmManage/images/modeluIcon.js +5 -0
  200. package/dist/lib/ipes/src/AlarmManage/images/new-nodata.js +5 -0
  201. package/dist/lib/ipes/src/AlarmManage/index.d.ts +89 -0
  202. package/dist/lib/ipes/src/AlarmManage/index.js +177 -0
  203. package/dist/lib/ipes/src/AlarmManage/index.vue.d.ts +2 -0
  204. package/dist/lib/ipes/src/AlarmManage/type.d.ts +5 -0
  205. package/dist/lib/ipes/src/BusinessManage/images/icon-percent.js +5 -0
  206. package/dist/lib/ipes/src/BusinessManage/index.d.ts +89 -0
  207. package/dist/lib/ipes/src/BusinessManage/index.js +198 -0
  208. package/dist/lib/ipes/src/BusinessManage/index.vue.d.ts +2 -0
  209. package/dist/lib/ipes/src/BusinessManage/type.d.ts +10 -0
  210. package/dist/lib/ipes/src/EmergencyDuty/index.js +3 -3
  211. package/dist/lib/ipes/src/EnterpriseProtectionCode/index.d.ts +38 -3
  212. package/dist/lib/ipes/src/EnterpriseProtectionCode/index.js +52 -30
  213. package/dist/lib/ipes/src/EnterpriseProtectionCode/index.vue.d.ts +22 -1
  214. package/dist/lib/ipes/src/EnvManage/index.js +19 -16
  215. package/dist/lib/ipes/src/EnvironmentalProtection/images/module-title-icon.js +5 -0
  216. package/dist/lib/ipes/src/EnvironmentalProtection/images/piebottom.js +5 -0
  217. package/dist/lib/ipes/src/EnvironmentalProtection/images/pietop.js +5 -0
  218. package/dist/lib/ipes/src/EnvironmentalProtection/index.d.ts +101 -0
  219. package/dist/lib/ipes/src/EnvironmentalProtection/index.js +179 -0
  220. package/dist/lib/ipes/src/EnvironmentalProtection/index.vue.d.ts +6 -0
  221. package/dist/lib/ipes/src/EnvironmentalRiskManagement/.js +2 -2
  222. package/dist/lib/ipes/src/EnvironmentalRiskManagement/index.d.ts +23 -3
  223. package/dist/lib/ipes/src/EnvironmentalRiskManagement/index.js +47 -11
  224. package/dist/lib/ipes/src/EnvironmentalRiskManagement/index.vue.d.ts +13 -1
  225. package/dist/lib/ipes/src/GasControl/.js +123 -0
  226. package/dist/lib/ipes/src/GasControl/components/AlarmStatistics.vue.d.ts +22 -0
  227. package/dist/lib/ipes/src/GasControl/components/SingleItem.vue.d.ts +16 -0
  228. package/dist/lib/{bmp/src/test-com → ipes/src/GasControl}/index.d.ts +28 -24
  229. package/dist/lib/ipes/src/GasControl/index.js +105 -0
  230. package/dist/lib/ipes/src/GasControl/index.vue.d.ts +23 -0
  231. package/dist/lib/ipes/src/GeneralManagement/.js +13 -16
  232. package/dist/lib/ipes/src/GeneralManagement/components/Tabs.vue.d.ts +10 -6
  233. package/dist/lib/ipes/src/GeneralManagement/index.d.ts +18 -9
  234. package/dist/lib/ipes/src/GeneralManagement/index.js +8 -10
  235. package/dist/lib/ipes/src/GeneralManagement/index.vue.d.ts +12 -6
  236. package/dist/lib/ipes/src/HazardousVehicleManage/index.d.ts +82 -14
  237. package/dist/lib/ipes/src/HazardousVehicleManage/index.js +74 -49
  238. package/dist/lib/ipes/src/HazardousVehicleManage/index.vue.d.ts +48 -5
  239. package/dist/lib/ipes/src/InspectionManage/images/module-title-icon.js +5 -0
  240. package/dist/lib/ipes/src/InspectionManage/images/new-nodata.js +5 -0
  241. package/dist/lib/ipes/src/InspectionManage/index.d.ts +136 -0
  242. package/dist/lib/ipes/src/InspectionManage/index.js +269 -0
  243. package/dist/lib/ipes/src/InspectionManage/index.vue.d.ts +27 -0
  244. package/dist/lib/ipes/src/InspectionManage/types/index.d.ts +11 -0
  245. package/dist/lib/ipes/src/Level3AirDefense/.js +37 -10
  246. package/dist/lib/ipes/src/Level3AirDefense/components/EmptyData.vue.d.ts +14 -0
  247. package/dist/lib/ipes/src/Level3AirDefense/images/empty.js +5 -0
  248. package/dist/lib/ipes/src/Level3AirDefense/index.js +9 -8
  249. package/dist/lib/ipes/src/OdorControl/index.js +2 -2
  250. package/dist/lib/ipes/src/PollutantSourceManage/index.d.ts +168 -0
  251. package/dist/lib/ipes/src/PollutantSourceManage/index.js +92 -0
  252. package/dist/lib/ipes/src/PollutantSourceManage/index.vue.d.ts +42 -0
  253. package/dist/lib/ipes/src/PollutantSourceManage/types.d.ts +18 -0
  254. package/dist/lib/ipes/src/RealTimeAirQualityManage/index.js +2 -2
  255. package/dist/lib/ipes/src/SealingManage/index.d.ts +121 -14
  256. package/dist/lib/ipes/src/SealingManage/index.js +222 -84
  257. package/dist/lib/ipes/src/SealingManage/index.vue.d.ts +72 -5
  258. package/dist/lib/ipes/src/TaskDispose/.js +21 -2
  259. package/dist/lib/ipes/src/VocStatistics/index.js +2 -2
  260. package/dist/lib/ipes/src/WaterNetworkManage/index.d.ts +81 -7
  261. package/dist/lib/ipes/src/WaterNetworkManage/index.js +73 -41
  262. package/dist/lib/ipes/src/WaterNetworkManage/index.vue.d.ts +48 -3
  263. package/dist/lib/ipes/src/common/Echarts.js +21 -2
  264. package/dist/lib/ipes/src/common/IpesPercentBar.js +40 -0
  265. package/dist/lib/ipes/src/common/IpesProgressBar.js +40 -0
  266. package/dist/lib/ipes/src/common/LottieAnimation.js +2 -2
  267. package/dist/lib/ipes/src/index.d.ts +6 -0
  268. package/dist/lib/ipes/src/index.js +12 -0
  269. package/dist/lib/style.css +1514 -909
  270. package/dist/lib/wgms/service/request.js +3 -3
  271. package/dist/lib/wgms/src/AuxiliaryJudgment/index.js +5 -5
  272. package/dist/lib/wgms/src/ChangesAlongTheProcess/index.js +4 -4
  273. package/dist/lib/wgms/src/ChlorophyllAchangeRate/index.js +4 -4
  274. package/dist/lib/wgms/src/CrossSectionCorrelation/index.js +6 -6
  275. package/dist/lib/wgms/src/DistributionPoints/index.js +3 -3
  276. package/dist/lib/wgms/src/DrinkingWaterComplianceRate/index.js +2 -2
  277. package/dist/lib/wgms/src/EnvironmentalAnalysis/index.js +10 -8
  278. package/dist/lib/wgms/src/FactorTopThreeRanking/index.js +3 -3
  279. package/dist/lib/wgms/src/FactorTrendComparison/index.js +2 -2
  280. package/dist/lib/wgms/src/KeyRiverWaterQualityEvaluation/index.js +3 -3
  281. package/dist/lib/wgms/src/LakeRiverIndex/index.js +6 -6
  282. package/dist/lib/wgms/src/NPTrendChange/index.js +2 -2
  283. package/dist/lib/wgms/src/SevenDayKline/index.js +9 -9
  284. package/dist/lib/wgms/src/SewageOutletsOnlineMonitor/index.js +4 -4
  285. package/dist/lib/wgms/src/SewageOutletsOnlineMonitor/index.vue.d.ts +0 -1
  286. package/dist/lib/wgms/src/SubordinateRanking/index.js +12 -9
  287. package/dist/lib/wgms/src/SurroundingPollution/index.js +8 -8
  288. package/dist/lib/wgms/src/UpstreamImpact/index.js +4 -4
  289. package/dist/lib/wgms/src/UpstreamSection/index.js +3 -3
  290. package/dist/lib/wgms/src/WaterEnvironmentOnlineMonitor/index.js +2 -2
  291. package/dist/lib/wgms/src/WaterQualityClassification/index.js +3 -3
  292. package/dist/lib/wgms/src/WaterQualityRainfall/index.js +5 -5
  293. package/dist/lib/wgms/src/WaterQualityStatus/index.js +3 -3
  294. package/dist/lib/wgms/src/common/select-panel.js +4 -2
  295. package/dist/lib/wgms/utils/echarts/index.js +34 -3
  296. package/dist/lib/wgms/utils/tools.js +2 -2
  297. package/package.json +2 -2
  298. package/dist/es/bmp/src/test-com/index.mjs +0 -33
  299. package/dist/es/bmp/src/test-com/index.vue.d.ts +0 -23
  300. package/dist/es/bmp/src/test-com/types.d.ts +0 -16
  301. package/dist/es/vendor/@ctrl_tinycolor@3.6.0.mjs +0 -1136
  302. package/dist/es/vendor/@element-plus_icons-vue@2.0.10_vue@3.3.4.mjs +0 -376
  303. package/dist/es/vendor/@floating-ui_core@1.3.1.mjs +0 -1
  304. package/dist/es/vendor/@floating-ui_dom@1.4.4.mjs +0 -1
  305. package/dist/es/vendor/@sxzz_popperjs-es@2.11.7.mjs +0 -3
  306. package/dist/es/vendor/@ued_fpi_element-plus-expand@0.7.19.mjs +0 -243
  307. package/dist/es/vendor/@vue_reactivity@3.3.4.mjs +0 -1
  308. package/dist/es/vendor/@vue_shared@3.3.4.mjs +0 -29
  309. package/dist/es/vendor/@vueuse_core@9.13.0_vue@3.3.4.mjs +0 -214
  310. package/dist/es/vendor/@vueuse_shared@9.13.0_vue@3.3.4.mjs +0 -72
  311. package/dist/es/vendor/async-validator@4.2.5.mjs +0 -1
  312. package/dist/es/vendor/axios@1.4.0.mjs +0 -3209
  313. package/dist/es/vendor/claygl@1.3.0.mjs +0 -24199
  314. package/dist/es/vendor/dayjs@1.11.9.mjs +0 -88
  315. package/dist/es/vendor/echarts-gl@2.0.9_echarts@5.4.2.mjs +0 -20973
  316. package/dist/es/vendor/echarts@5.4.2.mjs +0 -79359
  317. package/dist/es/vendor/element-plus@2.3.7_vue@3.3.4.mjs +0 -11032
  318. package/dist/es/vendor/escape-html@1.0.3.mjs +0 -1
  319. package/dist/es/vendor/fpi-tg-factor-tools@1.0.4.mjs +0 -195
  320. package/dist/es/vendor/lodash-es@4.17.21.mjs +0 -3255
  321. package/dist/es/vendor/lodash-unified@1.0.3_tknf7errc3xdqocd3ryzzla7vq.mjs +0 -1
  322. package/dist/es/vendor/memoize-one@6.0.0.mjs +0 -1
  323. package/dist/es/vendor/normalize-wheel-es@1.2.0.mjs +0 -1
  324. package/dist/es/vendor/tslib@2.3.0.mjs +0 -32
  325. package/dist/es/vendor/vue-demi@0.14.5_vue@3.3.4.mjs +0 -1
  326. package/dist/es/vendor/vue3-seamless-scroll@2.0.1.mjs +0 -562
  327. package/dist/es/vendor/zrender@5.4.3.mjs +0 -16894
  328. package/dist/lib/bmp/src/test-com/index.js +0 -35
  329. package/dist/lib/bmp/src/test-com/index.vue.d.ts +0 -23
  330. package/dist/lib/bmp/src/test-com/types.d.ts +0 -16
  331. package/dist/lib/vendor/@ctrl_tinycolor@3.6.0.js +0 -1138
  332. package/dist/lib/vendor/@element-plus_icons-vue@2.0.10_vue@3.3.4.js +0 -396
  333. package/dist/lib/vendor/@floating-ui_core@1.3.1.js +0 -2
  334. package/dist/lib/vendor/@floating-ui_dom@1.4.4.js +0 -2
  335. package/dist/lib/vendor/@sxzz_popperjs-es@2.11.7.js +0 -6
  336. package/dist/lib/vendor/@ued_fpi_element-plus-expand@0.7.19.js +0 -245
  337. package/dist/lib/vendor/@vue_reactivity@3.3.4.js +0 -2
  338. package/dist/lib/vendor/@vue_shared@3.3.4.js +0 -39
  339. package/dist/lib/vendor/@vueuse_core@9.13.0_vue@3.3.4.js +0 -219
  340. package/dist/lib/vendor/@vueuse_shared@9.13.0_vue@3.3.4.js +0 -82
  341. package/dist/lib/vendor/async-validator@4.2.5.js +0 -2
  342. package/dist/lib/vendor/axios@1.4.0.js +0 -3211
  343. package/dist/lib/vendor/claygl@1.3.0.js +0 -24255
  344. package/dist/lib/vendor/dayjs@1.11.9.js +0 -98
  345. package/dist/lib/vendor/echarts-gl@2.0.9_echarts@5.4.2.js +0 -20975
  346. package/dist/lib/vendor/echarts@5.4.2.js +0 -79400
  347. package/dist/lib/vendor/element-plus@2.3.7_vue@3.3.4.js +0 -11041
  348. package/dist/lib/vendor/escape-html@1.0.3.js +0 -2
  349. package/dist/lib/vendor/fpi-tg-factor-tools@1.0.4.js +0 -201
  350. package/dist/lib/vendor/lodash-es@4.17.21.js +0 -3265
  351. package/dist/lib/vendor/lodash-unified@1.0.3_tknf7errc3xdqocd3ryzzla7vq.js +0 -2
  352. package/dist/lib/vendor/memoize-one@6.0.0.js +0 -2
  353. package/dist/lib/vendor/normalize-wheel-es@1.2.0.js +0 -2
  354. package/dist/lib/vendor/tslib@2.3.0.js +0 -34
  355. package/dist/lib/vendor/vue-demi@0.14.5_vue@3.3.4.js +0 -4
  356. package/dist/lib/vendor/vue3-seamless-scroll@2.0.1.js +0 -564
  357. package/dist/lib/vendor/zrender@5.4.3.js +0 -17049
@@ -1,3255 +0,0 @@
1
- /** Detect free variable `global` from Node.js. */
2
- var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
3
-
4
- const freeGlobal$1 = freeGlobal;
5
-
6
- /** Detect free variable `self`. */
7
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
8
-
9
- /** Used as a reference to the global object. */
10
- var root = freeGlobal$1 || freeSelf || Function('return this')();
11
-
12
- const root$1 = root;
13
-
14
- /** Built-in value references. */
15
- var Symbol$1 = root$1.Symbol;
16
-
17
- const Symbol$2 = Symbol$1;
18
-
19
- /** Used for built-in method references. */
20
- var objectProto$b = Object.prototype;
21
-
22
- /** Used to check objects for own properties. */
23
- var hasOwnProperty$8 = objectProto$b.hasOwnProperty;
24
-
25
- /**
26
- * Used to resolve the
27
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
28
- * of values.
29
- */
30
- var nativeObjectToString$1 = objectProto$b.toString;
31
-
32
- /** Built-in value references. */
33
- var symToStringTag$1 = Symbol$2 ? Symbol$2.toStringTag : undefined;
34
-
35
- /**
36
- * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
37
- *
38
- * @private
39
- * @param {*} value The value to query.
40
- * @returns {string} Returns the raw `toStringTag`.
41
- */
42
- function getRawTag(value) {
43
- var isOwn = hasOwnProperty$8.call(value, symToStringTag$1),
44
- tag = value[symToStringTag$1];
45
-
46
- try {
47
- value[symToStringTag$1] = undefined;
48
- var unmasked = true;
49
- } catch (e) {}
50
-
51
- var result = nativeObjectToString$1.call(value);
52
- if (unmasked) {
53
- if (isOwn) {
54
- value[symToStringTag$1] = tag;
55
- } else {
56
- delete value[symToStringTag$1];
57
- }
58
- }
59
- return result;
60
- }
61
-
62
- /** Used for built-in method references. */
63
- var objectProto$a = Object.prototype;
64
-
65
- /**
66
- * Used to resolve the
67
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
68
- * of values.
69
- */
70
- var nativeObjectToString = objectProto$a.toString;
71
-
72
- /**
73
- * Converts `value` to a string using `Object.prototype.toString`.
74
- *
75
- * @private
76
- * @param {*} value The value to convert.
77
- * @returns {string} Returns the converted string.
78
- */
79
- function objectToString(value) {
80
- return nativeObjectToString.call(value);
81
- }
82
-
83
- /** `Object#toString` result references. */
84
- var nullTag = '[object Null]',
85
- undefinedTag = '[object Undefined]';
86
-
87
- /** Built-in value references. */
88
- var symToStringTag = Symbol$2 ? Symbol$2.toStringTag : undefined;
89
-
90
- /**
91
- * The base implementation of `getTag` without fallbacks for buggy environments.
92
- *
93
- * @private
94
- * @param {*} value The value to query.
95
- * @returns {string} Returns the `toStringTag`.
96
- */
97
- function baseGetTag(value) {
98
- if (value == null) {
99
- return value === undefined ? undefinedTag : nullTag;
100
- }
101
- return (symToStringTag && symToStringTag in Object(value))
102
- ? getRawTag(value)
103
- : objectToString(value);
104
- }
105
-
106
- /**
107
- * Checks if `value` is object-like. A value is object-like if it's not `null`
108
- * and has a `typeof` result of "object".
109
- *
110
- * @static
111
- * @memberOf _
112
- * @since 4.0.0
113
- * @category Lang
114
- * @param {*} value The value to check.
115
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
116
- * @example
117
- *
118
- * _.isObjectLike({});
119
- * // => true
120
- *
121
- * _.isObjectLike([1, 2, 3]);
122
- * // => true
123
- *
124
- * _.isObjectLike(_.noop);
125
- * // => false
126
- *
127
- * _.isObjectLike(null);
128
- * // => false
129
- */
130
- function isObjectLike(value) {
131
- return value != null && typeof value == 'object';
132
- }
133
-
134
- /** `Object#toString` result references. */
135
- var symbolTag$1 = '[object Symbol]';
136
-
137
- /**
138
- * Checks if `value` is classified as a `Symbol` primitive or object.
139
- *
140
- * @static
141
- * @memberOf _
142
- * @since 4.0.0
143
- * @category Lang
144
- * @param {*} value The value to check.
145
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
146
- * @example
147
- *
148
- * _.isSymbol(Symbol.iterator);
149
- * // => true
150
- *
151
- * _.isSymbol('abc');
152
- * // => false
153
- */
154
- function isSymbol(value) {
155
- return typeof value == 'symbol' ||
156
- (isObjectLike(value) && baseGetTag(value) == symbolTag$1);
157
- }
158
-
159
- /**
160
- * A specialized version of `_.map` for arrays without support for iteratee
161
- * shorthands.
162
- *
163
- * @private
164
- * @param {Array} [array] The array to iterate over.
165
- * @param {Function} iteratee The function invoked per iteration.
166
- * @returns {Array} Returns the new mapped array.
167
- */
168
- function arrayMap(array, iteratee) {
169
- var index = -1,
170
- length = array == null ? 0 : array.length,
171
- result = Array(length);
172
-
173
- while (++index < length) {
174
- result[index] = iteratee(array[index], index, array);
175
- }
176
- return result;
177
- }
178
-
179
- /**
180
- * Checks if `value` is classified as an `Array` object.
181
- *
182
- * @static
183
- * @memberOf _
184
- * @since 0.1.0
185
- * @category Lang
186
- * @param {*} value The value to check.
187
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
188
- * @example
189
- *
190
- * _.isArray([1, 2, 3]);
191
- * // => true
192
- *
193
- * _.isArray(document.body.children);
194
- * // => false
195
- *
196
- * _.isArray('abc');
197
- * // => false
198
- *
199
- * _.isArray(_.noop);
200
- * // => false
201
- */
202
- var isArray = Array.isArray;
203
-
204
- const isArray$1 = isArray;
205
-
206
- /** Used as references for various `Number` constants. */
207
- var INFINITY$1 = 1 / 0;
208
-
209
- /** Used to convert symbols to primitives and strings. */
210
- var symbolProto$1 = Symbol$2 ? Symbol$2.prototype : undefined,
211
- symbolToString = symbolProto$1 ? symbolProto$1.toString : undefined;
212
-
213
- /**
214
- * The base implementation of `_.toString` which doesn't convert nullish
215
- * values to empty strings.
216
- *
217
- * @private
218
- * @param {*} value The value to process.
219
- * @returns {string} Returns the string.
220
- */
221
- function baseToString(value) {
222
- // Exit early for strings to avoid a performance hit in some environments.
223
- if (typeof value == 'string') {
224
- return value;
225
- }
226
- if (isArray$1(value)) {
227
- // Recursively convert values (susceptible to call stack limits).
228
- return arrayMap(value, baseToString) + '';
229
- }
230
- if (isSymbol(value)) {
231
- return symbolToString ? symbolToString.call(value) : '';
232
- }
233
- var result = (value + '');
234
- return (result == '0' && (1 / value) == -INFINITY$1) ? '-0' : result;
235
- }
236
-
237
- /** Used to match a single whitespace character. */
238
- var reWhitespace = /\s/;
239
-
240
- /**
241
- * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
242
- * character of `string`.
243
- *
244
- * @private
245
- * @param {string} string The string to inspect.
246
- * @returns {number} Returns the index of the last non-whitespace character.
247
- */
248
- function trimmedEndIndex(string) {
249
- var index = string.length;
250
-
251
- while (index-- && reWhitespace.test(string.charAt(index))) {}
252
- return index;
253
- }
254
-
255
- /** Used to match leading whitespace. */
256
- var reTrimStart = /^\s+/;
257
-
258
- /**
259
- * The base implementation of `_.trim`.
260
- *
261
- * @private
262
- * @param {string} string The string to trim.
263
- * @returns {string} Returns the trimmed string.
264
- */
265
- function baseTrim(string) {
266
- return string
267
- ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')
268
- : string;
269
- }
270
-
271
- /**
272
- * Checks if `value` is the
273
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
274
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
275
- *
276
- * @static
277
- * @memberOf _
278
- * @since 0.1.0
279
- * @category Lang
280
- * @param {*} value The value to check.
281
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
282
- * @example
283
- *
284
- * _.isObject({});
285
- * // => true
286
- *
287
- * _.isObject([1, 2, 3]);
288
- * // => true
289
- *
290
- * _.isObject(_.noop);
291
- * // => true
292
- *
293
- * _.isObject(null);
294
- * // => false
295
- */
296
- function isObject(value) {
297
- var type = typeof value;
298
- return value != null && (type == 'object' || type == 'function');
299
- }
300
-
301
- /** Used as references for various `Number` constants. */
302
- var NAN = 0 / 0;
303
-
304
- /** Used to detect bad signed hexadecimal string values. */
305
- var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
306
-
307
- /** Used to detect binary string values. */
308
- var reIsBinary = /^0b[01]+$/i;
309
-
310
- /** Used to detect octal string values. */
311
- var reIsOctal = /^0o[0-7]+$/i;
312
-
313
- /** Built-in method references without a dependency on `root`. */
314
- var freeParseInt = parseInt;
315
-
316
- /**
317
- * Converts `value` to a number.
318
- *
319
- * @static
320
- * @memberOf _
321
- * @since 4.0.0
322
- * @category Lang
323
- * @param {*} value The value to process.
324
- * @returns {number} Returns the number.
325
- * @example
326
- *
327
- * _.toNumber(3.2);
328
- * // => 3.2
329
- *
330
- * _.toNumber(Number.MIN_VALUE);
331
- * // => 5e-324
332
- *
333
- * _.toNumber(Infinity);
334
- * // => Infinity
335
- *
336
- * _.toNumber('3.2');
337
- * // => 3.2
338
- */
339
- function toNumber(value) {
340
- if (typeof value == 'number') {
341
- return value;
342
- }
343
- if (isSymbol(value)) {
344
- return NAN;
345
- }
346
- if (isObject(value)) {
347
- var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
348
- value = isObject(other) ? (other + '') : other;
349
- }
350
- if (typeof value != 'string') {
351
- return value === 0 ? value : +value;
352
- }
353
- value = baseTrim(value);
354
- var isBinary = reIsBinary.test(value);
355
- return (isBinary || reIsOctal.test(value))
356
- ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
357
- : (reIsBadHex.test(value) ? NAN : +value);
358
- }
359
-
360
- /**
361
- * This method returns the first argument it receives.
362
- *
363
- * @static
364
- * @since 0.1.0
365
- * @memberOf _
366
- * @category Util
367
- * @param {*} value Any value.
368
- * @returns {*} Returns `value`.
369
- * @example
370
- *
371
- * var object = { 'a': 1 };
372
- *
373
- * console.log(_.identity(object) === object);
374
- * // => true
375
- */
376
- function identity(value) {
377
- return value;
378
- }
379
-
380
- /** `Object#toString` result references. */
381
- var asyncTag = '[object AsyncFunction]',
382
- funcTag$1 = '[object Function]',
383
- genTag = '[object GeneratorFunction]',
384
- proxyTag = '[object Proxy]';
385
-
386
- /**
387
- * Checks if `value` is classified as a `Function` object.
388
- *
389
- * @static
390
- * @memberOf _
391
- * @since 0.1.0
392
- * @category Lang
393
- * @param {*} value The value to check.
394
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
395
- * @example
396
- *
397
- * _.isFunction(_);
398
- * // => true
399
- *
400
- * _.isFunction(/abc/);
401
- * // => false
402
- */
403
- function isFunction(value) {
404
- if (!isObject(value)) {
405
- return false;
406
- }
407
- // The use of `Object#toString` avoids issues with the `typeof` operator
408
- // in Safari 9 which returns 'object' for typed arrays and other constructors.
409
- var tag = baseGetTag(value);
410
- return tag == funcTag$1 || tag == genTag || tag == asyncTag || tag == proxyTag;
411
- }
412
-
413
- /** Used to detect overreaching core-js shims. */
414
- var coreJsData = root$1['__core-js_shared__'];
415
-
416
- const coreJsData$1 = coreJsData;
417
-
418
- /** Used to detect methods masquerading as native. */
419
- var maskSrcKey = (function() {
420
- var uid = /[^.]+$/.exec(coreJsData$1 && coreJsData$1.keys && coreJsData$1.keys.IE_PROTO || '');
421
- return uid ? ('Symbol(src)_1.' + uid) : '';
422
- }());
423
-
424
- /**
425
- * Checks if `func` has its source masked.
426
- *
427
- * @private
428
- * @param {Function} func The function to check.
429
- * @returns {boolean} Returns `true` if `func` is masked, else `false`.
430
- */
431
- function isMasked(func) {
432
- return !!maskSrcKey && (maskSrcKey in func);
433
- }
434
-
435
- /** Used for built-in method references. */
436
- var funcProto$1 = Function.prototype;
437
-
438
- /** Used to resolve the decompiled source of functions. */
439
- var funcToString$1 = funcProto$1.toString;
440
-
441
- /**
442
- * Converts `func` to its source code.
443
- *
444
- * @private
445
- * @param {Function} func The function to convert.
446
- * @returns {string} Returns the source code.
447
- */
448
- function toSource(func) {
449
- if (func != null) {
450
- try {
451
- return funcToString$1.call(func);
452
- } catch (e) {}
453
- try {
454
- return (func + '');
455
- } catch (e) {}
456
- }
457
- return '';
458
- }
459
-
460
- /**
461
- * Used to match `RegExp`
462
- * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
463
- */
464
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
465
-
466
- /** Used to detect host constructors (Safari). */
467
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
468
-
469
- /** Used for built-in method references. */
470
- var funcProto = Function.prototype,
471
- objectProto$9 = Object.prototype;
472
-
473
- /** Used to resolve the decompiled source of functions. */
474
- var funcToString = funcProto.toString;
475
-
476
- /** Used to check objects for own properties. */
477
- var hasOwnProperty$7 = objectProto$9.hasOwnProperty;
478
-
479
- /** Used to detect if a method is native. */
480
- var reIsNative = RegExp('^' +
481
- funcToString.call(hasOwnProperty$7).replace(reRegExpChar, '\\$&')
482
- .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
483
- );
484
-
485
- /**
486
- * The base implementation of `_.isNative` without bad shim checks.
487
- *
488
- * @private
489
- * @param {*} value The value to check.
490
- * @returns {boolean} Returns `true` if `value` is a native function,
491
- * else `false`.
492
- */
493
- function baseIsNative(value) {
494
- if (!isObject(value) || isMasked(value)) {
495
- return false;
496
- }
497
- var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
498
- return pattern.test(toSource(value));
499
- }
500
-
501
- /**
502
- * Gets the value at `key` of `object`.
503
- *
504
- * @private
505
- * @param {Object} [object] The object to query.
506
- * @param {string} key The key of the property to get.
507
- * @returns {*} Returns the property value.
508
- */
509
- function getValue(object, key) {
510
- return object == null ? undefined : object[key];
511
- }
512
-
513
- /**
514
- * Gets the native function at `key` of `object`.
515
- *
516
- * @private
517
- * @param {Object} object The object to query.
518
- * @param {string} key The key of the method to get.
519
- * @returns {*} Returns the function if it's native, else `undefined`.
520
- */
521
- function getNative(object, key) {
522
- var value = getValue(object, key);
523
- return baseIsNative(value) ? value : undefined;
524
- }
525
-
526
- /* Built-in method references that are verified to be native. */
527
- var WeakMap = getNative(root$1, 'WeakMap');
528
-
529
- const WeakMap$1 = WeakMap;
530
-
531
- /** Used as references for various `Number` constants. */
532
- var MAX_SAFE_INTEGER$1 = 9007199254740991;
533
-
534
- /** Used to detect unsigned integer values. */
535
- var reIsUint = /^(?:0|[1-9]\d*)$/;
536
-
537
- /**
538
- * Checks if `value` is a valid array-like index.
539
- *
540
- * @private
541
- * @param {*} value The value to check.
542
- * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
543
- * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
544
- */
545
- function isIndex(value, length) {
546
- var type = typeof value;
547
- length = length == null ? MAX_SAFE_INTEGER$1 : length;
548
-
549
- return !!length &&
550
- (type == 'number' ||
551
- (type != 'symbol' && reIsUint.test(value))) &&
552
- (value > -1 && value % 1 == 0 && value < length);
553
- }
554
-
555
- /**
556
- * Performs a
557
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
558
- * comparison between two values to determine if they are equivalent.
559
- *
560
- * @static
561
- * @memberOf _
562
- * @since 4.0.0
563
- * @category Lang
564
- * @param {*} value The value to compare.
565
- * @param {*} other The other value to compare.
566
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
567
- * @example
568
- *
569
- * var object = { 'a': 1 };
570
- * var other = { 'a': 1 };
571
- *
572
- * _.eq(object, object);
573
- * // => true
574
- *
575
- * _.eq(object, other);
576
- * // => false
577
- *
578
- * _.eq('a', 'a');
579
- * // => true
580
- *
581
- * _.eq('a', Object('a'));
582
- * // => false
583
- *
584
- * _.eq(NaN, NaN);
585
- * // => true
586
- */
587
- function eq(value, other) {
588
- return value === other || (value !== value && other !== other);
589
- }
590
-
591
- /** Used as references for various `Number` constants. */
592
- var MAX_SAFE_INTEGER = 9007199254740991;
593
-
594
- /**
595
- * Checks if `value` is a valid array-like length.
596
- *
597
- * **Note:** This method is loosely based on
598
- * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
599
- *
600
- * @static
601
- * @memberOf _
602
- * @since 4.0.0
603
- * @category Lang
604
- * @param {*} value The value to check.
605
- * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
606
- * @example
607
- *
608
- * _.isLength(3);
609
- * // => true
610
- *
611
- * _.isLength(Number.MIN_VALUE);
612
- * // => false
613
- *
614
- * _.isLength(Infinity);
615
- * // => false
616
- *
617
- * _.isLength('3');
618
- * // => false
619
- */
620
- function isLength(value) {
621
- return typeof value == 'number' &&
622
- value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
623
- }
624
-
625
- /**
626
- * Checks if `value` is array-like. A value is considered array-like if it's
627
- * not a function and has a `value.length` that's an integer greater than or
628
- * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
629
- *
630
- * @static
631
- * @memberOf _
632
- * @since 4.0.0
633
- * @category Lang
634
- * @param {*} value The value to check.
635
- * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
636
- * @example
637
- *
638
- * _.isArrayLike([1, 2, 3]);
639
- * // => true
640
- *
641
- * _.isArrayLike(document.body.children);
642
- * // => true
643
- *
644
- * _.isArrayLike('abc');
645
- * // => true
646
- *
647
- * _.isArrayLike(_.noop);
648
- * // => false
649
- */
650
- function isArrayLike(value) {
651
- return value != null && isLength(value.length) && !isFunction(value);
652
- }
653
-
654
- /** Used for built-in method references. */
655
- var objectProto$8 = Object.prototype;
656
-
657
- /**
658
- * Checks if `value` is likely a prototype object.
659
- *
660
- * @private
661
- * @param {*} value The value to check.
662
- * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
663
- */
664
- function isPrototype(value) {
665
- var Ctor = value && value.constructor,
666
- proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$8;
667
-
668
- return value === proto;
669
- }
670
-
671
- /**
672
- * The base implementation of `_.times` without support for iteratee shorthands
673
- * or max array length checks.
674
- *
675
- * @private
676
- * @param {number} n The number of times to invoke `iteratee`.
677
- * @param {Function} iteratee The function invoked per iteration.
678
- * @returns {Array} Returns the array of results.
679
- */
680
- function baseTimes(n, iteratee) {
681
- var index = -1,
682
- result = Array(n);
683
-
684
- while (++index < n) {
685
- result[index] = iteratee(index);
686
- }
687
- return result;
688
- }
689
-
690
- /** `Object#toString` result references. */
691
- var argsTag$2 = '[object Arguments]';
692
-
693
- /**
694
- * The base implementation of `_.isArguments`.
695
- *
696
- * @private
697
- * @param {*} value The value to check.
698
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
699
- */
700
- function baseIsArguments(value) {
701
- return isObjectLike(value) && baseGetTag(value) == argsTag$2;
702
- }
703
-
704
- /** Used for built-in method references. */
705
- var objectProto$7 = Object.prototype;
706
-
707
- /** Used to check objects for own properties. */
708
- var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
709
-
710
- /** Built-in value references. */
711
- var propertyIsEnumerable$1 = objectProto$7.propertyIsEnumerable;
712
-
713
- /**
714
- * Checks if `value` is likely an `arguments` object.
715
- *
716
- * @static
717
- * @memberOf _
718
- * @since 0.1.0
719
- * @category Lang
720
- * @param {*} value The value to check.
721
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
722
- * else `false`.
723
- * @example
724
- *
725
- * _.isArguments(function() { return arguments; }());
726
- * // => true
727
- *
728
- * _.isArguments([1, 2, 3]);
729
- * // => false
730
- */
731
- var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
732
- return isObjectLike(value) && hasOwnProperty$6.call(value, 'callee') &&
733
- !propertyIsEnumerable$1.call(value, 'callee');
734
- };
735
-
736
- const isArguments$1 = isArguments;
737
-
738
- /**
739
- * This method returns `false`.
740
- *
741
- * @static
742
- * @memberOf _
743
- * @since 4.13.0
744
- * @category Util
745
- * @returns {boolean} Returns `false`.
746
- * @example
747
- *
748
- * _.times(2, _.stubFalse);
749
- * // => [false, false]
750
- */
751
- function stubFalse() {
752
- return false;
753
- }
754
-
755
- /** Detect free variable `exports`. */
756
- var freeExports$1 = typeof exports == 'object' && exports && !exports.nodeType && exports;
757
-
758
- /** Detect free variable `module`. */
759
- var freeModule$1 = freeExports$1 && typeof module == 'object' && module && !module.nodeType && module;
760
-
761
- /** Detect the popular CommonJS extension `module.exports`. */
762
- var moduleExports$1 = freeModule$1 && freeModule$1.exports === freeExports$1;
763
-
764
- /** Built-in value references. */
765
- var Buffer = moduleExports$1 ? root$1.Buffer : undefined;
766
-
767
- /* Built-in method references for those with the same name as other `lodash` methods. */
768
- var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
769
-
770
- /**
771
- * Checks if `value` is a buffer.
772
- *
773
- * @static
774
- * @memberOf _
775
- * @since 4.3.0
776
- * @category Lang
777
- * @param {*} value The value to check.
778
- * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
779
- * @example
780
- *
781
- * _.isBuffer(new Buffer(2));
782
- * // => true
783
- *
784
- * _.isBuffer(new Uint8Array(2));
785
- * // => false
786
- */
787
- var isBuffer = nativeIsBuffer || stubFalse;
788
-
789
- const isBuffer$1 = isBuffer;
790
-
791
- /** `Object#toString` result references. */
792
- var argsTag$1 = '[object Arguments]',
793
- arrayTag$1 = '[object Array]',
794
- boolTag$1 = '[object Boolean]',
795
- dateTag$1 = '[object Date]',
796
- errorTag$1 = '[object Error]',
797
- funcTag = '[object Function]',
798
- mapTag$2 = '[object Map]',
799
- numberTag$1 = '[object Number]',
800
- objectTag$2 = '[object Object]',
801
- regexpTag$1 = '[object RegExp]',
802
- setTag$2 = '[object Set]',
803
- stringTag$1 = '[object String]',
804
- weakMapTag$1 = '[object WeakMap]';
805
-
806
- var arrayBufferTag$1 = '[object ArrayBuffer]',
807
- dataViewTag$2 = '[object DataView]',
808
- float32Tag = '[object Float32Array]',
809
- float64Tag = '[object Float64Array]',
810
- int8Tag = '[object Int8Array]',
811
- int16Tag = '[object Int16Array]',
812
- int32Tag = '[object Int32Array]',
813
- uint8Tag = '[object Uint8Array]',
814
- uint8ClampedTag = '[object Uint8ClampedArray]',
815
- uint16Tag = '[object Uint16Array]',
816
- uint32Tag = '[object Uint32Array]';
817
-
818
- /** Used to identify `toStringTag` values of typed arrays. */
819
- var typedArrayTags = {};
820
- typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
821
- typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
822
- typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
823
- typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
824
- typedArrayTags[uint32Tag] = true;
825
- typedArrayTags[argsTag$1] = typedArrayTags[arrayTag$1] =
826
- typedArrayTags[arrayBufferTag$1] = typedArrayTags[boolTag$1] =
827
- typedArrayTags[dataViewTag$2] = typedArrayTags[dateTag$1] =
828
- typedArrayTags[errorTag$1] = typedArrayTags[funcTag] =
829
- typedArrayTags[mapTag$2] = typedArrayTags[numberTag$1] =
830
- typedArrayTags[objectTag$2] = typedArrayTags[regexpTag$1] =
831
- typedArrayTags[setTag$2] = typedArrayTags[stringTag$1] =
832
- typedArrayTags[weakMapTag$1] = false;
833
-
834
- /**
835
- * The base implementation of `_.isTypedArray` without Node.js optimizations.
836
- *
837
- * @private
838
- * @param {*} value The value to check.
839
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
840
- */
841
- function baseIsTypedArray(value) {
842
- return isObjectLike(value) &&
843
- isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
844
- }
845
-
846
- /**
847
- * The base implementation of `_.unary` without support for storing metadata.
848
- *
849
- * @private
850
- * @param {Function} func The function to cap arguments for.
851
- * @returns {Function} Returns the new capped function.
852
- */
853
- function baseUnary(func) {
854
- return function(value) {
855
- return func(value);
856
- };
857
- }
858
-
859
- /** Detect free variable `exports`. */
860
- var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
861
-
862
- /** Detect free variable `module`. */
863
- var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
864
-
865
- /** Detect the popular CommonJS extension `module.exports`. */
866
- var moduleExports = freeModule && freeModule.exports === freeExports;
867
-
868
- /** Detect free variable `process` from Node.js. */
869
- var freeProcess = moduleExports && freeGlobal$1.process;
870
-
871
- /** Used to access faster Node.js helpers. */
872
- var nodeUtil = (function() {
873
- try {
874
- // Use `util.types` for Node.js 10+.
875
- var types = freeModule && freeModule.require && freeModule.require('util').types;
876
-
877
- if (types) {
878
- return types;
879
- }
880
-
881
- // Legacy `process.binding('util')` for Node.js < 10.
882
- return freeProcess && freeProcess.binding && freeProcess.binding('util');
883
- } catch (e) {}
884
- }());
885
-
886
- const nodeUtil$1 = nodeUtil;
887
-
888
- /* Node.js helper references. */
889
- var nodeIsTypedArray = nodeUtil$1 && nodeUtil$1.isTypedArray;
890
-
891
- /**
892
- * Checks if `value` is classified as a typed array.
893
- *
894
- * @static
895
- * @memberOf _
896
- * @since 3.0.0
897
- * @category Lang
898
- * @param {*} value The value to check.
899
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
900
- * @example
901
- *
902
- * _.isTypedArray(new Uint8Array);
903
- * // => true
904
- *
905
- * _.isTypedArray([]);
906
- * // => false
907
- */
908
- var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
909
-
910
- const isTypedArray$1 = isTypedArray;
911
-
912
- /** Used for built-in method references. */
913
- var objectProto$6 = Object.prototype;
914
-
915
- /** Used to check objects for own properties. */
916
- var hasOwnProperty$5 = objectProto$6.hasOwnProperty;
917
-
918
- /**
919
- * Creates an array of the enumerable property names of the array-like `value`.
920
- *
921
- * @private
922
- * @param {*} value The value to query.
923
- * @param {boolean} inherited Specify returning inherited property names.
924
- * @returns {Array} Returns the array of property names.
925
- */
926
- function arrayLikeKeys(value, inherited) {
927
- var isArr = isArray$1(value),
928
- isArg = !isArr && isArguments$1(value),
929
- isBuff = !isArr && !isArg && isBuffer$1(value),
930
- isType = !isArr && !isArg && !isBuff && isTypedArray$1(value),
931
- skipIndexes = isArr || isArg || isBuff || isType,
932
- result = skipIndexes ? baseTimes(value.length, String) : [],
933
- length = result.length;
934
-
935
- for (var key in value) {
936
- if ((inherited || hasOwnProperty$5.call(value, key)) &&
937
- !(skipIndexes && (
938
- // Safari 9 has enumerable `arguments.length` in strict mode.
939
- key == 'length' ||
940
- // Node.js 0.10 has enumerable non-index properties on buffers.
941
- (isBuff && (key == 'offset' || key == 'parent')) ||
942
- // PhantomJS 2 has enumerable non-index properties on typed arrays.
943
- (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
944
- // Skip index properties.
945
- isIndex(key, length)
946
- ))) {
947
- result.push(key);
948
- }
949
- }
950
- return result;
951
- }
952
-
953
- /**
954
- * Creates a unary function that invokes `func` with its argument transformed.
955
- *
956
- * @private
957
- * @param {Function} func The function to wrap.
958
- * @param {Function} transform The argument transform.
959
- * @returns {Function} Returns the new function.
960
- */
961
- function overArg(func, transform) {
962
- return function(arg) {
963
- return func(transform(arg));
964
- };
965
- }
966
-
967
- /* Built-in method references for those with the same name as other `lodash` methods. */
968
- var nativeKeys = overArg(Object.keys, Object);
969
-
970
- const nativeKeys$1 = nativeKeys;
971
-
972
- /** Used for built-in method references. */
973
- var objectProto$5 = Object.prototype;
974
-
975
- /** Used to check objects for own properties. */
976
- var hasOwnProperty$4 = objectProto$5.hasOwnProperty;
977
-
978
- /**
979
- * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
980
- *
981
- * @private
982
- * @param {Object} object The object to query.
983
- * @returns {Array} Returns the array of property names.
984
- */
985
- function baseKeys(object) {
986
- if (!isPrototype(object)) {
987
- return nativeKeys$1(object);
988
- }
989
- var result = [];
990
- for (var key in Object(object)) {
991
- if (hasOwnProperty$4.call(object, key) && key != 'constructor') {
992
- result.push(key);
993
- }
994
- }
995
- return result;
996
- }
997
-
998
- /**
999
- * Creates an array of the own enumerable property names of `object`.
1000
- *
1001
- * **Note:** Non-object values are coerced to objects. See the
1002
- * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
1003
- * for more details.
1004
- *
1005
- * @static
1006
- * @since 0.1.0
1007
- * @memberOf _
1008
- * @category Object
1009
- * @param {Object} object The object to query.
1010
- * @returns {Array} Returns the array of property names.
1011
- * @example
1012
- *
1013
- * function Foo() {
1014
- * this.a = 1;
1015
- * this.b = 2;
1016
- * }
1017
- *
1018
- * Foo.prototype.c = 3;
1019
- *
1020
- * _.keys(new Foo);
1021
- * // => ['a', 'b'] (iteration order is not guaranteed)
1022
- *
1023
- * _.keys('hi');
1024
- * // => ['0', '1']
1025
- */
1026
- function keys(object) {
1027
- return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
1028
- }
1029
-
1030
- /** Used to match property names within property paths. */
1031
- var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
1032
- reIsPlainProp = /^\w*$/;
1033
-
1034
- /**
1035
- * Checks if `value` is a property name and not a property path.
1036
- *
1037
- * @private
1038
- * @param {*} value The value to check.
1039
- * @param {Object} [object] The object to query keys on.
1040
- * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
1041
- */
1042
- function isKey(value, object) {
1043
- if (isArray$1(value)) {
1044
- return false;
1045
- }
1046
- var type = typeof value;
1047
- if (type == 'number' || type == 'symbol' || type == 'boolean' ||
1048
- value == null || isSymbol(value)) {
1049
- return true;
1050
- }
1051
- return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
1052
- (object != null && value in Object(object));
1053
- }
1054
-
1055
- /* Built-in method references that are verified to be native. */
1056
- var nativeCreate = getNative(Object, 'create');
1057
-
1058
- const nativeCreate$1 = nativeCreate;
1059
-
1060
- /**
1061
- * Removes all key-value entries from the hash.
1062
- *
1063
- * @private
1064
- * @name clear
1065
- * @memberOf Hash
1066
- */
1067
- function hashClear() {
1068
- this.__data__ = nativeCreate$1 ? nativeCreate$1(null) : {};
1069
- this.size = 0;
1070
- }
1071
-
1072
- /**
1073
- * Removes `key` and its value from the hash.
1074
- *
1075
- * @private
1076
- * @name delete
1077
- * @memberOf Hash
1078
- * @param {Object} hash The hash to modify.
1079
- * @param {string} key The key of the value to remove.
1080
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1081
- */
1082
- function hashDelete(key) {
1083
- var result = this.has(key) && delete this.__data__[key];
1084
- this.size -= result ? 1 : 0;
1085
- return result;
1086
- }
1087
-
1088
- /** Used to stand-in for `undefined` hash values. */
1089
- var HASH_UNDEFINED$2 = '__lodash_hash_undefined__';
1090
-
1091
- /** Used for built-in method references. */
1092
- var objectProto$4 = Object.prototype;
1093
-
1094
- /** Used to check objects for own properties. */
1095
- var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
1096
-
1097
- /**
1098
- * Gets the hash value for `key`.
1099
- *
1100
- * @private
1101
- * @name get
1102
- * @memberOf Hash
1103
- * @param {string} key The key of the value to get.
1104
- * @returns {*} Returns the entry value.
1105
- */
1106
- function hashGet(key) {
1107
- var data = this.__data__;
1108
- if (nativeCreate$1) {
1109
- var result = data[key];
1110
- return result === HASH_UNDEFINED$2 ? undefined : result;
1111
- }
1112
- return hasOwnProperty$3.call(data, key) ? data[key] : undefined;
1113
- }
1114
-
1115
- /** Used for built-in method references. */
1116
- var objectProto$3 = Object.prototype;
1117
-
1118
- /** Used to check objects for own properties. */
1119
- var hasOwnProperty$2 = objectProto$3.hasOwnProperty;
1120
-
1121
- /**
1122
- * Checks if a hash value for `key` exists.
1123
- *
1124
- * @private
1125
- * @name has
1126
- * @memberOf Hash
1127
- * @param {string} key The key of the entry to check.
1128
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1129
- */
1130
- function hashHas(key) {
1131
- var data = this.__data__;
1132
- return nativeCreate$1 ? (data[key] !== undefined) : hasOwnProperty$2.call(data, key);
1133
- }
1134
-
1135
- /** Used to stand-in for `undefined` hash values. */
1136
- var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
1137
-
1138
- /**
1139
- * Sets the hash `key` to `value`.
1140
- *
1141
- * @private
1142
- * @name set
1143
- * @memberOf Hash
1144
- * @param {string} key The key of the value to set.
1145
- * @param {*} value The value to set.
1146
- * @returns {Object} Returns the hash instance.
1147
- */
1148
- function hashSet(key, value) {
1149
- var data = this.__data__;
1150
- this.size += this.has(key) ? 0 : 1;
1151
- data[key] = (nativeCreate$1 && value === undefined) ? HASH_UNDEFINED$1 : value;
1152
- return this;
1153
- }
1154
-
1155
- /**
1156
- * Creates a hash object.
1157
- *
1158
- * @private
1159
- * @constructor
1160
- * @param {Array} [entries] The key-value pairs to cache.
1161
- */
1162
- function Hash(entries) {
1163
- var index = -1,
1164
- length = entries == null ? 0 : entries.length;
1165
-
1166
- this.clear();
1167
- while (++index < length) {
1168
- var entry = entries[index];
1169
- this.set(entry[0], entry[1]);
1170
- }
1171
- }
1172
-
1173
- // Add methods to `Hash`.
1174
- Hash.prototype.clear = hashClear;
1175
- Hash.prototype['delete'] = hashDelete;
1176
- Hash.prototype.get = hashGet;
1177
- Hash.prototype.has = hashHas;
1178
- Hash.prototype.set = hashSet;
1179
-
1180
- /**
1181
- * Removes all key-value entries from the list cache.
1182
- *
1183
- * @private
1184
- * @name clear
1185
- * @memberOf ListCache
1186
- */
1187
- function listCacheClear() {
1188
- this.__data__ = [];
1189
- this.size = 0;
1190
- }
1191
-
1192
- /**
1193
- * Gets the index at which the `key` is found in `array` of key-value pairs.
1194
- *
1195
- * @private
1196
- * @param {Array} array The array to inspect.
1197
- * @param {*} key The key to search for.
1198
- * @returns {number} Returns the index of the matched value, else `-1`.
1199
- */
1200
- function assocIndexOf(array, key) {
1201
- var length = array.length;
1202
- while (length--) {
1203
- if (eq(array[length][0], key)) {
1204
- return length;
1205
- }
1206
- }
1207
- return -1;
1208
- }
1209
-
1210
- /** Used for built-in method references. */
1211
- var arrayProto = Array.prototype;
1212
-
1213
- /** Built-in value references. */
1214
- var splice = arrayProto.splice;
1215
-
1216
- /**
1217
- * Removes `key` and its value from the list cache.
1218
- *
1219
- * @private
1220
- * @name delete
1221
- * @memberOf ListCache
1222
- * @param {string} key The key of the value to remove.
1223
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1224
- */
1225
- function listCacheDelete(key) {
1226
- var data = this.__data__,
1227
- index = assocIndexOf(data, key);
1228
-
1229
- if (index < 0) {
1230
- return false;
1231
- }
1232
- var lastIndex = data.length - 1;
1233
- if (index == lastIndex) {
1234
- data.pop();
1235
- } else {
1236
- splice.call(data, index, 1);
1237
- }
1238
- --this.size;
1239
- return true;
1240
- }
1241
-
1242
- /**
1243
- * Gets the list cache value for `key`.
1244
- *
1245
- * @private
1246
- * @name get
1247
- * @memberOf ListCache
1248
- * @param {string} key The key of the value to get.
1249
- * @returns {*} Returns the entry value.
1250
- */
1251
- function listCacheGet(key) {
1252
- var data = this.__data__,
1253
- index = assocIndexOf(data, key);
1254
-
1255
- return index < 0 ? undefined : data[index][1];
1256
- }
1257
-
1258
- /**
1259
- * Checks if a list cache value for `key` exists.
1260
- *
1261
- * @private
1262
- * @name has
1263
- * @memberOf ListCache
1264
- * @param {string} key The key of the entry to check.
1265
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1266
- */
1267
- function listCacheHas(key) {
1268
- return assocIndexOf(this.__data__, key) > -1;
1269
- }
1270
-
1271
- /**
1272
- * Sets the list cache `key` to `value`.
1273
- *
1274
- * @private
1275
- * @name set
1276
- * @memberOf ListCache
1277
- * @param {string} key The key of the value to set.
1278
- * @param {*} value The value to set.
1279
- * @returns {Object} Returns the list cache instance.
1280
- */
1281
- function listCacheSet(key, value) {
1282
- var data = this.__data__,
1283
- index = assocIndexOf(data, key);
1284
-
1285
- if (index < 0) {
1286
- ++this.size;
1287
- data.push([key, value]);
1288
- } else {
1289
- data[index][1] = value;
1290
- }
1291
- return this;
1292
- }
1293
-
1294
- /**
1295
- * Creates an list cache object.
1296
- *
1297
- * @private
1298
- * @constructor
1299
- * @param {Array} [entries] The key-value pairs to cache.
1300
- */
1301
- function ListCache(entries) {
1302
- var index = -1,
1303
- length = entries == null ? 0 : entries.length;
1304
-
1305
- this.clear();
1306
- while (++index < length) {
1307
- var entry = entries[index];
1308
- this.set(entry[0], entry[1]);
1309
- }
1310
- }
1311
-
1312
- // Add methods to `ListCache`.
1313
- ListCache.prototype.clear = listCacheClear;
1314
- ListCache.prototype['delete'] = listCacheDelete;
1315
- ListCache.prototype.get = listCacheGet;
1316
- ListCache.prototype.has = listCacheHas;
1317
- ListCache.prototype.set = listCacheSet;
1318
-
1319
- /* Built-in method references that are verified to be native. */
1320
- var Map = getNative(root$1, 'Map');
1321
-
1322
- const Map$1 = Map;
1323
-
1324
- /**
1325
- * Removes all key-value entries from the map.
1326
- *
1327
- * @private
1328
- * @name clear
1329
- * @memberOf MapCache
1330
- */
1331
- function mapCacheClear() {
1332
- this.size = 0;
1333
- this.__data__ = {
1334
- 'hash': new Hash,
1335
- 'map': new (Map$1 || ListCache),
1336
- 'string': new Hash
1337
- };
1338
- }
1339
-
1340
- /**
1341
- * Checks if `value` is suitable for use as unique object key.
1342
- *
1343
- * @private
1344
- * @param {*} value The value to check.
1345
- * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
1346
- */
1347
- function isKeyable(value) {
1348
- var type = typeof value;
1349
- return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
1350
- ? (value !== '__proto__')
1351
- : (value === null);
1352
- }
1353
-
1354
- /**
1355
- * Gets the data for `map`.
1356
- *
1357
- * @private
1358
- * @param {Object} map The map to query.
1359
- * @param {string} key The reference key.
1360
- * @returns {*} Returns the map data.
1361
- */
1362
- function getMapData(map, key) {
1363
- var data = map.__data__;
1364
- return isKeyable(key)
1365
- ? data[typeof key == 'string' ? 'string' : 'hash']
1366
- : data.map;
1367
- }
1368
-
1369
- /**
1370
- * Removes `key` and its value from the map.
1371
- *
1372
- * @private
1373
- * @name delete
1374
- * @memberOf MapCache
1375
- * @param {string} key The key of the value to remove.
1376
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1377
- */
1378
- function mapCacheDelete(key) {
1379
- var result = getMapData(this, key)['delete'](key);
1380
- this.size -= result ? 1 : 0;
1381
- return result;
1382
- }
1383
-
1384
- /**
1385
- * Gets the map value for `key`.
1386
- *
1387
- * @private
1388
- * @name get
1389
- * @memberOf MapCache
1390
- * @param {string} key The key of the value to get.
1391
- * @returns {*} Returns the entry value.
1392
- */
1393
- function mapCacheGet(key) {
1394
- return getMapData(this, key).get(key);
1395
- }
1396
-
1397
- /**
1398
- * Checks if a map value for `key` exists.
1399
- *
1400
- * @private
1401
- * @name has
1402
- * @memberOf MapCache
1403
- * @param {string} key The key of the entry to check.
1404
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1405
- */
1406
- function mapCacheHas(key) {
1407
- return getMapData(this, key).has(key);
1408
- }
1409
-
1410
- /**
1411
- * Sets the map `key` to `value`.
1412
- *
1413
- * @private
1414
- * @name set
1415
- * @memberOf MapCache
1416
- * @param {string} key The key of the value to set.
1417
- * @param {*} value The value to set.
1418
- * @returns {Object} Returns the map cache instance.
1419
- */
1420
- function mapCacheSet(key, value) {
1421
- var data = getMapData(this, key),
1422
- size = data.size;
1423
-
1424
- data.set(key, value);
1425
- this.size += data.size == size ? 0 : 1;
1426
- return this;
1427
- }
1428
-
1429
- /**
1430
- * Creates a map cache object to store key-value pairs.
1431
- *
1432
- * @private
1433
- * @constructor
1434
- * @param {Array} [entries] The key-value pairs to cache.
1435
- */
1436
- function MapCache(entries) {
1437
- var index = -1,
1438
- length = entries == null ? 0 : entries.length;
1439
-
1440
- this.clear();
1441
- while (++index < length) {
1442
- var entry = entries[index];
1443
- this.set(entry[0], entry[1]);
1444
- }
1445
- }
1446
-
1447
- // Add methods to `MapCache`.
1448
- MapCache.prototype.clear = mapCacheClear;
1449
- MapCache.prototype['delete'] = mapCacheDelete;
1450
- MapCache.prototype.get = mapCacheGet;
1451
- MapCache.prototype.has = mapCacheHas;
1452
- MapCache.prototype.set = mapCacheSet;
1453
-
1454
- /** Error message constants. */
1455
- var FUNC_ERROR_TEXT$1 = 'Expected a function';
1456
-
1457
- /**
1458
- * Creates a function that memoizes the result of `func`. If `resolver` is
1459
- * provided, it determines the cache key for storing the result based on the
1460
- * arguments provided to the memoized function. By default, the first argument
1461
- * provided to the memoized function is used as the map cache key. The `func`
1462
- * is invoked with the `this` binding of the memoized function.
1463
- *
1464
- * **Note:** The cache is exposed as the `cache` property on the memoized
1465
- * function. Its creation may be customized by replacing the `_.memoize.Cache`
1466
- * constructor with one whose instances implement the
1467
- * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
1468
- * method interface of `clear`, `delete`, `get`, `has`, and `set`.
1469
- *
1470
- * @static
1471
- * @memberOf _
1472
- * @since 0.1.0
1473
- * @category Function
1474
- * @param {Function} func The function to have its output memoized.
1475
- * @param {Function} [resolver] The function to resolve the cache key.
1476
- * @returns {Function} Returns the new memoized function.
1477
- * @example
1478
- *
1479
- * var object = { 'a': 1, 'b': 2 };
1480
- * var other = { 'c': 3, 'd': 4 };
1481
- *
1482
- * var values = _.memoize(_.values);
1483
- * values(object);
1484
- * // => [1, 2]
1485
- *
1486
- * values(other);
1487
- * // => [3, 4]
1488
- *
1489
- * object.a = 2;
1490
- * values(object);
1491
- * // => [1, 2]
1492
- *
1493
- * // Modify the result cache.
1494
- * values.cache.set(object, ['a', 'b']);
1495
- * values(object);
1496
- * // => ['a', 'b']
1497
- *
1498
- * // Replace `_.memoize.Cache`.
1499
- * _.memoize.Cache = WeakMap;
1500
- */
1501
- function memoize(func, resolver) {
1502
- if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
1503
- throw new TypeError(FUNC_ERROR_TEXT$1);
1504
- }
1505
- var memoized = function() {
1506
- var args = arguments,
1507
- key = resolver ? resolver.apply(this, args) : args[0],
1508
- cache = memoized.cache;
1509
-
1510
- if (cache.has(key)) {
1511
- return cache.get(key);
1512
- }
1513
- var result = func.apply(this, args);
1514
- memoized.cache = cache.set(key, result) || cache;
1515
- return result;
1516
- };
1517
- memoized.cache = new (memoize.Cache || MapCache);
1518
- return memoized;
1519
- }
1520
-
1521
- // Expose `MapCache`.
1522
- memoize.Cache = MapCache;
1523
-
1524
- /** Used as the maximum memoize cache size. */
1525
- var MAX_MEMOIZE_SIZE = 500;
1526
-
1527
- /**
1528
- * A specialized version of `_.memoize` which clears the memoized function's
1529
- * cache when it exceeds `MAX_MEMOIZE_SIZE`.
1530
- *
1531
- * @private
1532
- * @param {Function} func The function to have its output memoized.
1533
- * @returns {Function} Returns the new memoized function.
1534
- */
1535
- function memoizeCapped(func) {
1536
- var result = memoize(func, function(key) {
1537
- if (cache.size === MAX_MEMOIZE_SIZE) {
1538
- cache.clear();
1539
- }
1540
- return key;
1541
- });
1542
-
1543
- var cache = result.cache;
1544
- return result;
1545
- }
1546
-
1547
- /** Used to match property names within property paths. */
1548
- var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
1549
-
1550
- /** Used to match backslashes in property paths. */
1551
- var reEscapeChar = /\\(\\)?/g;
1552
-
1553
- /**
1554
- * Converts `string` to a property path array.
1555
- *
1556
- * @private
1557
- * @param {string} string The string to convert.
1558
- * @returns {Array} Returns the property path array.
1559
- */
1560
- var stringToPath = memoizeCapped(function(string) {
1561
- var result = [];
1562
- if (string.charCodeAt(0) === 46 /* . */) {
1563
- result.push('');
1564
- }
1565
- string.replace(rePropName, function(match, number, quote, subString) {
1566
- result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
1567
- });
1568
- return result;
1569
- });
1570
-
1571
- const stringToPath$1 = stringToPath;
1572
-
1573
- /**
1574
- * Converts `value` to a string. An empty string is returned for `null`
1575
- * and `undefined` values. The sign of `-0` is preserved.
1576
- *
1577
- * @static
1578
- * @memberOf _
1579
- * @since 4.0.0
1580
- * @category Lang
1581
- * @param {*} value The value to convert.
1582
- * @returns {string} Returns the converted string.
1583
- * @example
1584
- *
1585
- * _.toString(null);
1586
- * // => ''
1587
- *
1588
- * _.toString(-0);
1589
- * // => '-0'
1590
- *
1591
- * _.toString([1, 2, 3]);
1592
- * // => '1,2,3'
1593
- */
1594
- function toString(value) {
1595
- return value == null ? '' : baseToString(value);
1596
- }
1597
-
1598
- /**
1599
- * Casts `value` to a path array if it's not one.
1600
- *
1601
- * @private
1602
- * @param {*} value The value to inspect.
1603
- * @param {Object} [object] The object to query keys on.
1604
- * @returns {Array} Returns the cast property path array.
1605
- */
1606
- function castPath(value, object) {
1607
- if (isArray$1(value)) {
1608
- return value;
1609
- }
1610
- return isKey(value, object) ? [value] : stringToPath$1(toString(value));
1611
- }
1612
-
1613
- /** Used as references for various `Number` constants. */
1614
- var INFINITY = 1 / 0;
1615
-
1616
- /**
1617
- * Converts `value` to a string key if it's not a string or symbol.
1618
- *
1619
- * @private
1620
- * @param {*} value The value to inspect.
1621
- * @returns {string|symbol} Returns the key.
1622
- */
1623
- function toKey(value) {
1624
- if (typeof value == 'string' || isSymbol(value)) {
1625
- return value;
1626
- }
1627
- var result = (value + '');
1628
- return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
1629
- }
1630
-
1631
- /**
1632
- * The base implementation of `_.get` without support for default values.
1633
- *
1634
- * @private
1635
- * @param {Object} object The object to query.
1636
- * @param {Array|string} path The path of the property to get.
1637
- * @returns {*} Returns the resolved value.
1638
- */
1639
- function baseGet(object, path) {
1640
- path = castPath(path, object);
1641
-
1642
- var index = 0,
1643
- length = path.length;
1644
-
1645
- while (object != null && index < length) {
1646
- object = object[toKey(path[index++])];
1647
- }
1648
- return (index && index == length) ? object : undefined;
1649
- }
1650
-
1651
- /**
1652
- * Gets the value at `path` of `object`. If the resolved value is
1653
- * `undefined`, the `defaultValue` is returned in its place.
1654
- *
1655
- * @static
1656
- * @memberOf _
1657
- * @since 3.7.0
1658
- * @category Object
1659
- * @param {Object} object The object to query.
1660
- * @param {Array|string} path The path of the property to get.
1661
- * @param {*} [defaultValue] The value returned for `undefined` resolved values.
1662
- * @returns {*} Returns the resolved value.
1663
- * @example
1664
- *
1665
- * var object = { 'a': [{ 'b': { 'c': 3 } }] };
1666
- *
1667
- * _.get(object, 'a[0].b.c');
1668
- * // => 3
1669
- *
1670
- * _.get(object, ['a', '0', 'b', 'c']);
1671
- * // => 3
1672
- *
1673
- * _.get(object, 'a.b.c', 'default');
1674
- * // => 'default'
1675
- */
1676
- function get(object, path, defaultValue) {
1677
- var result = object == null ? undefined : baseGet(object, path);
1678
- return result === undefined ? defaultValue : result;
1679
- }
1680
-
1681
- /**
1682
- * Appends the elements of `values` to `array`.
1683
- *
1684
- * @private
1685
- * @param {Array} array The array to modify.
1686
- * @param {Array} values The values to append.
1687
- * @returns {Array} Returns `array`.
1688
- */
1689
- function arrayPush(array, values) {
1690
- var index = -1,
1691
- length = values.length,
1692
- offset = array.length;
1693
-
1694
- while (++index < length) {
1695
- array[offset + index] = values[index];
1696
- }
1697
- return array;
1698
- }
1699
-
1700
- /** Built-in value references. */
1701
- var spreadableSymbol = Symbol$2 ? Symbol$2.isConcatSpreadable : undefined;
1702
-
1703
- /**
1704
- * Checks if `value` is a flattenable `arguments` object or array.
1705
- *
1706
- * @private
1707
- * @param {*} value The value to check.
1708
- * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
1709
- */
1710
- function isFlattenable(value) {
1711
- return isArray$1(value) || isArguments$1(value) ||
1712
- !!(spreadableSymbol && value && value[spreadableSymbol]);
1713
- }
1714
-
1715
- /**
1716
- * The base implementation of `_.flatten` with support for restricting flattening.
1717
- *
1718
- * @private
1719
- * @param {Array} array The array to flatten.
1720
- * @param {number} depth The maximum recursion depth.
1721
- * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
1722
- * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
1723
- * @param {Array} [result=[]] The initial result value.
1724
- * @returns {Array} Returns the new flattened array.
1725
- */
1726
- function baseFlatten(array, depth, predicate, isStrict, result) {
1727
- var index = -1,
1728
- length = array.length;
1729
-
1730
- predicate || (predicate = isFlattenable);
1731
- result || (result = []);
1732
-
1733
- while (++index < length) {
1734
- var value = array[index];
1735
- if (depth > 0 && predicate(value)) {
1736
- if (depth > 1) {
1737
- // Recursively flatten arrays (susceptible to call stack limits).
1738
- baseFlatten(value, depth - 1, predicate, isStrict, result);
1739
- } else {
1740
- arrayPush(result, value);
1741
- }
1742
- } else if (!isStrict) {
1743
- result[result.length] = value;
1744
- }
1745
- }
1746
- return result;
1747
- }
1748
-
1749
- /**
1750
- * Flattens `array` a single level deep.
1751
- *
1752
- * @static
1753
- * @memberOf _
1754
- * @since 0.1.0
1755
- * @category Array
1756
- * @param {Array} array The array to flatten.
1757
- * @returns {Array} Returns the new flattened array.
1758
- * @example
1759
- *
1760
- * _.flatten([1, [2, [3, [4]], 5]]);
1761
- * // => [1, 2, [3, [4]], 5]
1762
- */
1763
- function flatten(array) {
1764
- var length = array == null ? 0 : array.length;
1765
- return length ? baseFlatten(array, 1) : [];
1766
- }
1767
-
1768
- /**
1769
- * Removes all key-value entries from the stack.
1770
- *
1771
- * @private
1772
- * @name clear
1773
- * @memberOf Stack
1774
- */
1775
- function stackClear() {
1776
- this.__data__ = new ListCache;
1777
- this.size = 0;
1778
- }
1779
-
1780
- /**
1781
- * Removes `key` and its value from the stack.
1782
- *
1783
- * @private
1784
- * @name delete
1785
- * @memberOf Stack
1786
- * @param {string} key The key of the value to remove.
1787
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1788
- */
1789
- function stackDelete(key) {
1790
- var data = this.__data__,
1791
- result = data['delete'](key);
1792
-
1793
- this.size = data.size;
1794
- return result;
1795
- }
1796
-
1797
- /**
1798
- * Gets the stack value for `key`.
1799
- *
1800
- * @private
1801
- * @name get
1802
- * @memberOf Stack
1803
- * @param {string} key The key of the value to get.
1804
- * @returns {*} Returns the entry value.
1805
- */
1806
- function stackGet(key) {
1807
- return this.__data__.get(key);
1808
- }
1809
-
1810
- /**
1811
- * Checks if a stack value for `key` exists.
1812
- *
1813
- * @private
1814
- * @name has
1815
- * @memberOf Stack
1816
- * @param {string} key The key of the entry to check.
1817
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1818
- */
1819
- function stackHas(key) {
1820
- return this.__data__.has(key);
1821
- }
1822
-
1823
- /** Used as the size to enable large array optimizations. */
1824
- var LARGE_ARRAY_SIZE = 200;
1825
-
1826
- /**
1827
- * Sets the stack `key` to `value`.
1828
- *
1829
- * @private
1830
- * @name set
1831
- * @memberOf Stack
1832
- * @param {string} key The key of the value to set.
1833
- * @param {*} value The value to set.
1834
- * @returns {Object} Returns the stack cache instance.
1835
- */
1836
- function stackSet(key, value) {
1837
- var data = this.__data__;
1838
- if (data instanceof ListCache) {
1839
- var pairs = data.__data__;
1840
- if (!Map$1 || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
1841
- pairs.push([key, value]);
1842
- this.size = ++data.size;
1843
- return this;
1844
- }
1845
- data = this.__data__ = new MapCache(pairs);
1846
- }
1847
- data.set(key, value);
1848
- this.size = data.size;
1849
- return this;
1850
- }
1851
-
1852
- /**
1853
- * Creates a stack cache object to store key-value pairs.
1854
- *
1855
- * @private
1856
- * @constructor
1857
- * @param {Array} [entries] The key-value pairs to cache.
1858
- */
1859
- function Stack(entries) {
1860
- var data = this.__data__ = new ListCache(entries);
1861
- this.size = data.size;
1862
- }
1863
-
1864
- // Add methods to `Stack`.
1865
- Stack.prototype.clear = stackClear;
1866
- Stack.prototype['delete'] = stackDelete;
1867
- Stack.prototype.get = stackGet;
1868
- Stack.prototype.has = stackHas;
1869
- Stack.prototype.set = stackSet;
1870
-
1871
- /**
1872
- * A specialized version of `_.filter` for arrays without support for
1873
- * iteratee shorthands.
1874
- *
1875
- * @private
1876
- * @param {Array} [array] The array to iterate over.
1877
- * @param {Function} predicate The function invoked per iteration.
1878
- * @returns {Array} Returns the new filtered array.
1879
- */
1880
- function arrayFilter(array, predicate) {
1881
- var index = -1,
1882
- length = array == null ? 0 : array.length,
1883
- resIndex = 0,
1884
- result = [];
1885
-
1886
- while (++index < length) {
1887
- var value = array[index];
1888
- if (predicate(value, index, array)) {
1889
- result[resIndex++] = value;
1890
- }
1891
- }
1892
- return result;
1893
- }
1894
-
1895
- /**
1896
- * This method returns a new empty array.
1897
- *
1898
- * @static
1899
- * @memberOf _
1900
- * @since 4.13.0
1901
- * @category Util
1902
- * @returns {Array} Returns the new empty array.
1903
- * @example
1904
- *
1905
- * var arrays = _.times(2, _.stubArray);
1906
- *
1907
- * console.log(arrays);
1908
- * // => [[], []]
1909
- *
1910
- * console.log(arrays[0] === arrays[1]);
1911
- * // => false
1912
- */
1913
- function stubArray() {
1914
- return [];
1915
- }
1916
-
1917
- /** Used for built-in method references. */
1918
- var objectProto$2 = Object.prototype;
1919
-
1920
- /** Built-in value references. */
1921
- var propertyIsEnumerable = objectProto$2.propertyIsEnumerable;
1922
-
1923
- /* Built-in method references for those with the same name as other `lodash` methods. */
1924
- var nativeGetSymbols = Object.getOwnPropertySymbols;
1925
-
1926
- /**
1927
- * Creates an array of the own enumerable symbols of `object`.
1928
- *
1929
- * @private
1930
- * @param {Object} object The object to query.
1931
- * @returns {Array} Returns the array of symbols.
1932
- */
1933
- var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
1934
- if (object == null) {
1935
- return [];
1936
- }
1937
- object = Object(object);
1938
- return arrayFilter(nativeGetSymbols(object), function(symbol) {
1939
- return propertyIsEnumerable.call(object, symbol);
1940
- });
1941
- };
1942
-
1943
- const getSymbols$1 = getSymbols;
1944
-
1945
- /**
1946
- * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
1947
- * `keysFunc` and `symbolsFunc` to get the enumerable property names and
1948
- * symbols of `object`.
1949
- *
1950
- * @private
1951
- * @param {Object} object The object to query.
1952
- * @param {Function} keysFunc The function to get the keys of `object`.
1953
- * @param {Function} symbolsFunc The function to get the symbols of `object`.
1954
- * @returns {Array} Returns the array of property names and symbols.
1955
- */
1956
- function baseGetAllKeys(object, keysFunc, symbolsFunc) {
1957
- var result = keysFunc(object);
1958
- return isArray$1(object) ? result : arrayPush(result, symbolsFunc(object));
1959
- }
1960
-
1961
- /**
1962
- * Creates an array of own enumerable property names and symbols of `object`.
1963
- *
1964
- * @private
1965
- * @param {Object} object The object to query.
1966
- * @returns {Array} Returns the array of property names and symbols.
1967
- */
1968
- function getAllKeys(object) {
1969
- return baseGetAllKeys(object, keys, getSymbols$1);
1970
- }
1971
-
1972
- /* Built-in method references that are verified to be native. */
1973
- var DataView = getNative(root$1, 'DataView');
1974
-
1975
- const DataView$1 = DataView;
1976
-
1977
- /* Built-in method references that are verified to be native. */
1978
- var Promise$1 = getNative(root$1, 'Promise');
1979
-
1980
- const Promise$2 = Promise$1;
1981
-
1982
- /* Built-in method references that are verified to be native. */
1983
- var Set = getNative(root$1, 'Set');
1984
-
1985
- const Set$1 = Set;
1986
-
1987
- /** `Object#toString` result references. */
1988
- var mapTag$1 = '[object Map]',
1989
- objectTag$1 = '[object Object]',
1990
- promiseTag = '[object Promise]',
1991
- setTag$1 = '[object Set]',
1992
- weakMapTag = '[object WeakMap]';
1993
-
1994
- var dataViewTag$1 = '[object DataView]';
1995
-
1996
- /** Used to detect maps, sets, and weakmaps. */
1997
- var dataViewCtorString = toSource(DataView$1),
1998
- mapCtorString = toSource(Map$1),
1999
- promiseCtorString = toSource(Promise$2),
2000
- setCtorString = toSource(Set$1),
2001
- weakMapCtorString = toSource(WeakMap$1);
2002
-
2003
- /**
2004
- * Gets the `toStringTag` of `value`.
2005
- *
2006
- * @private
2007
- * @param {*} value The value to query.
2008
- * @returns {string} Returns the `toStringTag`.
2009
- */
2010
- var getTag = baseGetTag;
2011
-
2012
- // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
2013
- if ((DataView$1 && getTag(new DataView$1(new ArrayBuffer(1))) != dataViewTag$1) ||
2014
- (Map$1 && getTag(new Map$1) != mapTag$1) ||
2015
- (Promise$2 && getTag(Promise$2.resolve()) != promiseTag) ||
2016
- (Set$1 && getTag(new Set$1) != setTag$1) ||
2017
- (WeakMap$1 && getTag(new WeakMap$1) != weakMapTag)) {
2018
- getTag = function(value) {
2019
- var result = baseGetTag(value),
2020
- Ctor = result == objectTag$1 ? value.constructor : undefined,
2021
- ctorString = Ctor ? toSource(Ctor) : '';
2022
-
2023
- if (ctorString) {
2024
- switch (ctorString) {
2025
- case dataViewCtorString: return dataViewTag$1;
2026
- case mapCtorString: return mapTag$1;
2027
- case promiseCtorString: return promiseTag;
2028
- case setCtorString: return setTag$1;
2029
- case weakMapCtorString: return weakMapTag;
2030
- }
2031
- }
2032
- return result;
2033
- };
2034
- }
2035
-
2036
- const getTag$1 = getTag;
2037
-
2038
- /** Built-in value references. */
2039
- var Uint8Array = root$1.Uint8Array;
2040
-
2041
- const Uint8Array$1 = Uint8Array;
2042
-
2043
- /** Used to stand-in for `undefined` hash values. */
2044
- var HASH_UNDEFINED = '__lodash_hash_undefined__';
2045
-
2046
- /**
2047
- * Adds `value` to the array cache.
2048
- *
2049
- * @private
2050
- * @name add
2051
- * @memberOf SetCache
2052
- * @alias push
2053
- * @param {*} value The value to cache.
2054
- * @returns {Object} Returns the cache instance.
2055
- */
2056
- function setCacheAdd(value) {
2057
- this.__data__.set(value, HASH_UNDEFINED);
2058
- return this;
2059
- }
2060
-
2061
- /**
2062
- * Checks if `value` is in the array cache.
2063
- *
2064
- * @private
2065
- * @name has
2066
- * @memberOf SetCache
2067
- * @param {*} value The value to search for.
2068
- * @returns {number} Returns `true` if `value` is found, else `false`.
2069
- */
2070
- function setCacheHas(value) {
2071
- return this.__data__.has(value);
2072
- }
2073
-
2074
- /**
2075
- *
2076
- * Creates an array cache object to store unique values.
2077
- *
2078
- * @private
2079
- * @constructor
2080
- * @param {Array} [values] The values to cache.
2081
- */
2082
- function SetCache(values) {
2083
- var index = -1,
2084
- length = values == null ? 0 : values.length;
2085
-
2086
- this.__data__ = new MapCache;
2087
- while (++index < length) {
2088
- this.add(values[index]);
2089
- }
2090
- }
2091
-
2092
- // Add methods to `SetCache`.
2093
- SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
2094
- SetCache.prototype.has = setCacheHas;
2095
-
2096
- /**
2097
- * A specialized version of `_.some` for arrays without support for iteratee
2098
- * shorthands.
2099
- *
2100
- * @private
2101
- * @param {Array} [array] The array to iterate over.
2102
- * @param {Function} predicate The function invoked per iteration.
2103
- * @returns {boolean} Returns `true` if any element passes the predicate check,
2104
- * else `false`.
2105
- */
2106
- function arraySome(array, predicate) {
2107
- var index = -1,
2108
- length = array == null ? 0 : array.length;
2109
-
2110
- while (++index < length) {
2111
- if (predicate(array[index], index, array)) {
2112
- return true;
2113
- }
2114
- }
2115
- return false;
2116
- }
2117
-
2118
- /**
2119
- * Checks if a `cache` value for `key` exists.
2120
- *
2121
- * @private
2122
- * @param {Object} cache The cache to query.
2123
- * @param {string} key The key of the entry to check.
2124
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
2125
- */
2126
- function cacheHas(cache, key) {
2127
- return cache.has(key);
2128
- }
2129
-
2130
- /** Used to compose bitmasks for value comparisons. */
2131
- var COMPARE_PARTIAL_FLAG$5 = 1,
2132
- COMPARE_UNORDERED_FLAG$3 = 2;
2133
-
2134
- /**
2135
- * A specialized version of `baseIsEqualDeep` for arrays with support for
2136
- * partial deep comparisons.
2137
- *
2138
- * @private
2139
- * @param {Array} array The array to compare.
2140
- * @param {Array} other The other array to compare.
2141
- * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
2142
- * @param {Function} customizer The function to customize comparisons.
2143
- * @param {Function} equalFunc The function to determine equivalents of values.
2144
- * @param {Object} stack Tracks traversed `array` and `other` objects.
2145
- * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
2146
- */
2147
- function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
2148
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG$5,
2149
- arrLength = array.length,
2150
- othLength = other.length;
2151
-
2152
- if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
2153
- return false;
2154
- }
2155
- // Check that cyclic values are equal.
2156
- var arrStacked = stack.get(array);
2157
- var othStacked = stack.get(other);
2158
- if (arrStacked && othStacked) {
2159
- return arrStacked == other && othStacked == array;
2160
- }
2161
- var index = -1,
2162
- result = true,
2163
- seen = (bitmask & COMPARE_UNORDERED_FLAG$3) ? new SetCache : undefined;
2164
-
2165
- stack.set(array, other);
2166
- stack.set(other, array);
2167
-
2168
- // Ignore non-index properties.
2169
- while (++index < arrLength) {
2170
- var arrValue = array[index],
2171
- othValue = other[index];
2172
-
2173
- if (customizer) {
2174
- var compared = isPartial
2175
- ? customizer(othValue, arrValue, index, other, array, stack)
2176
- : customizer(arrValue, othValue, index, array, other, stack);
2177
- }
2178
- if (compared !== undefined) {
2179
- if (compared) {
2180
- continue;
2181
- }
2182
- result = false;
2183
- break;
2184
- }
2185
- // Recursively compare arrays (susceptible to call stack limits).
2186
- if (seen) {
2187
- if (!arraySome(other, function(othValue, othIndex) {
2188
- if (!cacheHas(seen, othIndex) &&
2189
- (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
2190
- return seen.push(othIndex);
2191
- }
2192
- })) {
2193
- result = false;
2194
- break;
2195
- }
2196
- } else if (!(
2197
- arrValue === othValue ||
2198
- equalFunc(arrValue, othValue, bitmask, customizer, stack)
2199
- )) {
2200
- result = false;
2201
- break;
2202
- }
2203
- }
2204
- stack['delete'](array);
2205
- stack['delete'](other);
2206
- return result;
2207
- }
2208
-
2209
- /**
2210
- * Converts `map` to its key-value pairs.
2211
- *
2212
- * @private
2213
- * @param {Object} map The map to convert.
2214
- * @returns {Array} Returns the key-value pairs.
2215
- */
2216
- function mapToArray(map) {
2217
- var index = -1,
2218
- result = Array(map.size);
2219
-
2220
- map.forEach(function(value, key) {
2221
- result[++index] = [key, value];
2222
- });
2223
- return result;
2224
- }
2225
-
2226
- /**
2227
- * Converts `set` to an array of its values.
2228
- *
2229
- * @private
2230
- * @param {Object} set The set to convert.
2231
- * @returns {Array} Returns the values.
2232
- */
2233
- function setToArray(set) {
2234
- var index = -1,
2235
- result = Array(set.size);
2236
-
2237
- set.forEach(function(value) {
2238
- result[++index] = value;
2239
- });
2240
- return result;
2241
- }
2242
-
2243
- /** Used to compose bitmasks for value comparisons. */
2244
- var COMPARE_PARTIAL_FLAG$4 = 1,
2245
- COMPARE_UNORDERED_FLAG$2 = 2;
2246
-
2247
- /** `Object#toString` result references. */
2248
- var boolTag = '[object Boolean]',
2249
- dateTag = '[object Date]',
2250
- errorTag = '[object Error]',
2251
- mapTag = '[object Map]',
2252
- numberTag = '[object Number]',
2253
- regexpTag = '[object RegExp]',
2254
- setTag = '[object Set]',
2255
- stringTag = '[object String]',
2256
- symbolTag = '[object Symbol]';
2257
-
2258
- var arrayBufferTag = '[object ArrayBuffer]',
2259
- dataViewTag = '[object DataView]';
2260
-
2261
- /** Used to convert symbols to primitives and strings. */
2262
- var symbolProto = Symbol$2 ? Symbol$2.prototype : undefined,
2263
- symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
2264
-
2265
- /**
2266
- * A specialized version of `baseIsEqualDeep` for comparing objects of
2267
- * the same `toStringTag`.
2268
- *
2269
- * **Note:** This function only supports comparing values with tags of
2270
- * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
2271
- *
2272
- * @private
2273
- * @param {Object} object The object to compare.
2274
- * @param {Object} other The other object to compare.
2275
- * @param {string} tag The `toStringTag` of the objects to compare.
2276
- * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
2277
- * @param {Function} customizer The function to customize comparisons.
2278
- * @param {Function} equalFunc The function to determine equivalents of values.
2279
- * @param {Object} stack Tracks traversed `object` and `other` objects.
2280
- * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
2281
- */
2282
- function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
2283
- switch (tag) {
2284
- case dataViewTag:
2285
- if ((object.byteLength != other.byteLength) ||
2286
- (object.byteOffset != other.byteOffset)) {
2287
- return false;
2288
- }
2289
- object = object.buffer;
2290
- other = other.buffer;
2291
-
2292
- case arrayBufferTag:
2293
- if ((object.byteLength != other.byteLength) ||
2294
- !equalFunc(new Uint8Array$1(object), new Uint8Array$1(other))) {
2295
- return false;
2296
- }
2297
- return true;
2298
-
2299
- case boolTag:
2300
- case dateTag:
2301
- case numberTag:
2302
- // Coerce booleans to `1` or `0` and dates to milliseconds.
2303
- // Invalid dates are coerced to `NaN`.
2304
- return eq(+object, +other);
2305
-
2306
- case errorTag:
2307
- return object.name == other.name && object.message == other.message;
2308
-
2309
- case regexpTag:
2310
- case stringTag:
2311
- // Coerce regexes to strings and treat strings, primitives and objects,
2312
- // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
2313
- // for more details.
2314
- return object == (other + '');
2315
-
2316
- case mapTag:
2317
- var convert = mapToArray;
2318
-
2319
- case setTag:
2320
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG$4;
2321
- convert || (convert = setToArray);
2322
-
2323
- if (object.size != other.size && !isPartial) {
2324
- return false;
2325
- }
2326
- // Assume cyclic values are equal.
2327
- var stacked = stack.get(object);
2328
- if (stacked) {
2329
- return stacked == other;
2330
- }
2331
- bitmask |= COMPARE_UNORDERED_FLAG$2;
2332
-
2333
- // Recursively compare objects (susceptible to call stack limits).
2334
- stack.set(object, other);
2335
- var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
2336
- stack['delete'](object);
2337
- return result;
2338
-
2339
- case symbolTag:
2340
- if (symbolValueOf) {
2341
- return symbolValueOf.call(object) == symbolValueOf.call(other);
2342
- }
2343
- }
2344
- return false;
2345
- }
2346
-
2347
- /** Used to compose bitmasks for value comparisons. */
2348
- var COMPARE_PARTIAL_FLAG$3 = 1;
2349
-
2350
- /** Used for built-in method references. */
2351
- var objectProto$1 = Object.prototype;
2352
-
2353
- /** Used to check objects for own properties. */
2354
- var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
2355
-
2356
- /**
2357
- * A specialized version of `baseIsEqualDeep` for objects with support for
2358
- * partial deep comparisons.
2359
- *
2360
- * @private
2361
- * @param {Object} object The object to compare.
2362
- * @param {Object} other The other object to compare.
2363
- * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
2364
- * @param {Function} customizer The function to customize comparisons.
2365
- * @param {Function} equalFunc The function to determine equivalents of values.
2366
- * @param {Object} stack Tracks traversed `object` and `other` objects.
2367
- * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
2368
- */
2369
- function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
2370
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG$3,
2371
- objProps = getAllKeys(object),
2372
- objLength = objProps.length,
2373
- othProps = getAllKeys(other),
2374
- othLength = othProps.length;
2375
-
2376
- if (objLength != othLength && !isPartial) {
2377
- return false;
2378
- }
2379
- var index = objLength;
2380
- while (index--) {
2381
- var key = objProps[index];
2382
- if (!(isPartial ? key in other : hasOwnProperty$1.call(other, key))) {
2383
- return false;
2384
- }
2385
- }
2386
- // Check that cyclic values are equal.
2387
- var objStacked = stack.get(object);
2388
- var othStacked = stack.get(other);
2389
- if (objStacked && othStacked) {
2390
- return objStacked == other && othStacked == object;
2391
- }
2392
- var result = true;
2393
- stack.set(object, other);
2394
- stack.set(other, object);
2395
-
2396
- var skipCtor = isPartial;
2397
- while (++index < objLength) {
2398
- key = objProps[index];
2399
- var objValue = object[key],
2400
- othValue = other[key];
2401
-
2402
- if (customizer) {
2403
- var compared = isPartial
2404
- ? customizer(othValue, objValue, key, other, object, stack)
2405
- : customizer(objValue, othValue, key, object, other, stack);
2406
- }
2407
- // Recursively compare objects (susceptible to call stack limits).
2408
- if (!(compared === undefined
2409
- ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
2410
- : compared
2411
- )) {
2412
- result = false;
2413
- break;
2414
- }
2415
- skipCtor || (skipCtor = key == 'constructor');
2416
- }
2417
- if (result && !skipCtor) {
2418
- var objCtor = object.constructor,
2419
- othCtor = other.constructor;
2420
-
2421
- // Non `Object` object instances with different constructors are not equal.
2422
- if (objCtor != othCtor &&
2423
- ('constructor' in object && 'constructor' in other) &&
2424
- !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
2425
- typeof othCtor == 'function' && othCtor instanceof othCtor)) {
2426
- result = false;
2427
- }
2428
- }
2429
- stack['delete'](object);
2430
- stack['delete'](other);
2431
- return result;
2432
- }
2433
-
2434
- /** Used to compose bitmasks for value comparisons. */
2435
- var COMPARE_PARTIAL_FLAG$2 = 1;
2436
-
2437
- /** `Object#toString` result references. */
2438
- var argsTag = '[object Arguments]',
2439
- arrayTag = '[object Array]',
2440
- objectTag = '[object Object]';
2441
-
2442
- /** Used for built-in method references. */
2443
- var objectProto = Object.prototype;
2444
-
2445
- /** Used to check objects for own properties. */
2446
- var hasOwnProperty = objectProto.hasOwnProperty;
2447
-
2448
- /**
2449
- * A specialized version of `baseIsEqual` for arrays and objects which performs
2450
- * deep comparisons and tracks traversed objects enabling objects with circular
2451
- * references to be compared.
2452
- *
2453
- * @private
2454
- * @param {Object} object The object to compare.
2455
- * @param {Object} other The other object to compare.
2456
- * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
2457
- * @param {Function} customizer The function to customize comparisons.
2458
- * @param {Function} equalFunc The function to determine equivalents of values.
2459
- * @param {Object} [stack] Tracks traversed `object` and `other` objects.
2460
- * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
2461
- */
2462
- function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
2463
- var objIsArr = isArray$1(object),
2464
- othIsArr = isArray$1(other),
2465
- objTag = objIsArr ? arrayTag : getTag$1(object),
2466
- othTag = othIsArr ? arrayTag : getTag$1(other);
2467
-
2468
- objTag = objTag == argsTag ? objectTag : objTag;
2469
- othTag = othTag == argsTag ? objectTag : othTag;
2470
-
2471
- var objIsObj = objTag == objectTag,
2472
- othIsObj = othTag == objectTag,
2473
- isSameTag = objTag == othTag;
2474
-
2475
- if (isSameTag && isBuffer$1(object)) {
2476
- if (!isBuffer$1(other)) {
2477
- return false;
2478
- }
2479
- objIsArr = true;
2480
- objIsObj = false;
2481
- }
2482
- if (isSameTag && !objIsObj) {
2483
- stack || (stack = new Stack);
2484
- return (objIsArr || isTypedArray$1(object))
2485
- ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
2486
- : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
2487
- }
2488
- if (!(bitmask & COMPARE_PARTIAL_FLAG$2)) {
2489
- var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
2490
- othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
2491
-
2492
- if (objIsWrapped || othIsWrapped) {
2493
- var objUnwrapped = objIsWrapped ? object.value() : object,
2494
- othUnwrapped = othIsWrapped ? other.value() : other;
2495
-
2496
- stack || (stack = new Stack);
2497
- return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
2498
- }
2499
- }
2500
- if (!isSameTag) {
2501
- return false;
2502
- }
2503
- stack || (stack = new Stack);
2504
- return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
2505
- }
2506
-
2507
- /**
2508
- * The base implementation of `_.isEqual` which supports partial comparisons
2509
- * and tracks traversed objects.
2510
- *
2511
- * @private
2512
- * @param {*} value The value to compare.
2513
- * @param {*} other The other value to compare.
2514
- * @param {boolean} bitmask The bitmask flags.
2515
- * 1 - Unordered comparison
2516
- * 2 - Partial comparison
2517
- * @param {Function} [customizer] The function to customize comparisons.
2518
- * @param {Object} [stack] Tracks traversed `value` and `other` objects.
2519
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
2520
- */
2521
- function baseIsEqual(value, other, bitmask, customizer, stack) {
2522
- if (value === other) {
2523
- return true;
2524
- }
2525
- if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
2526
- return value !== value && other !== other;
2527
- }
2528
- return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
2529
- }
2530
-
2531
- /** Used to compose bitmasks for value comparisons. */
2532
- var COMPARE_PARTIAL_FLAG$1 = 1,
2533
- COMPARE_UNORDERED_FLAG$1 = 2;
2534
-
2535
- /**
2536
- * The base implementation of `_.isMatch` without support for iteratee shorthands.
2537
- *
2538
- * @private
2539
- * @param {Object} object The object to inspect.
2540
- * @param {Object} source The object of property values to match.
2541
- * @param {Array} matchData The property names, values, and compare flags to match.
2542
- * @param {Function} [customizer] The function to customize comparisons.
2543
- * @returns {boolean} Returns `true` if `object` is a match, else `false`.
2544
- */
2545
- function baseIsMatch(object, source, matchData, customizer) {
2546
- var index = matchData.length,
2547
- length = index,
2548
- noCustomizer = !customizer;
2549
-
2550
- if (object == null) {
2551
- return !length;
2552
- }
2553
- object = Object(object);
2554
- while (index--) {
2555
- var data = matchData[index];
2556
- if ((noCustomizer && data[2])
2557
- ? data[1] !== object[data[0]]
2558
- : !(data[0] in object)
2559
- ) {
2560
- return false;
2561
- }
2562
- }
2563
- while (++index < length) {
2564
- data = matchData[index];
2565
- var key = data[0],
2566
- objValue = object[key],
2567
- srcValue = data[1];
2568
-
2569
- if (noCustomizer && data[2]) {
2570
- if (objValue === undefined && !(key in object)) {
2571
- return false;
2572
- }
2573
- } else {
2574
- var stack = new Stack;
2575
- if (customizer) {
2576
- var result = customizer(objValue, srcValue, key, object, source, stack);
2577
- }
2578
- if (!(result === undefined
2579
- ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG$1 | COMPARE_UNORDERED_FLAG$1, customizer, stack)
2580
- : result
2581
- )) {
2582
- return false;
2583
- }
2584
- }
2585
- }
2586
- return true;
2587
- }
2588
-
2589
- /**
2590
- * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
2591
- *
2592
- * @private
2593
- * @param {*} value The value to check.
2594
- * @returns {boolean} Returns `true` if `value` if suitable for strict
2595
- * equality comparisons, else `false`.
2596
- */
2597
- function isStrictComparable(value) {
2598
- return value === value && !isObject(value);
2599
- }
2600
-
2601
- /**
2602
- * Gets the property names, values, and compare flags of `object`.
2603
- *
2604
- * @private
2605
- * @param {Object} object The object to query.
2606
- * @returns {Array} Returns the match data of `object`.
2607
- */
2608
- function getMatchData(object) {
2609
- var result = keys(object),
2610
- length = result.length;
2611
-
2612
- while (length--) {
2613
- var key = result[length],
2614
- value = object[key];
2615
-
2616
- result[length] = [key, value, isStrictComparable(value)];
2617
- }
2618
- return result;
2619
- }
2620
-
2621
- /**
2622
- * A specialized version of `matchesProperty` for source values suitable
2623
- * for strict equality comparisons, i.e. `===`.
2624
- *
2625
- * @private
2626
- * @param {string} key The key of the property to get.
2627
- * @param {*} srcValue The value to match.
2628
- * @returns {Function} Returns the new spec function.
2629
- */
2630
- function matchesStrictComparable(key, srcValue) {
2631
- return function(object) {
2632
- if (object == null) {
2633
- return false;
2634
- }
2635
- return object[key] === srcValue &&
2636
- (srcValue !== undefined || (key in Object(object)));
2637
- };
2638
- }
2639
-
2640
- /**
2641
- * The base implementation of `_.matches` which doesn't clone `source`.
2642
- *
2643
- * @private
2644
- * @param {Object} source The object of property values to match.
2645
- * @returns {Function} Returns the new spec function.
2646
- */
2647
- function baseMatches(source) {
2648
- var matchData = getMatchData(source);
2649
- if (matchData.length == 1 && matchData[0][2]) {
2650
- return matchesStrictComparable(matchData[0][0], matchData[0][1]);
2651
- }
2652
- return function(object) {
2653
- return object === source || baseIsMatch(object, source, matchData);
2654
- };
2655
- }
2656
-
2657
- /**
2658
- * The base implementation of `_.hasIn` without support for deep paths.
2659
- *
2660
- * @private
2661
- * @param {Object} [object] The object to query.
2662
- * @param {Array|string} key The key to check.
2663
- * @returns {boolean} Returns `true` if `key` exists, else `false`.
2664
- */
2665
- function baseHasIn(object, key) {
2666
- return object != null && key in Object(object);
2667
- }
2668
-
2669
- /**
2670
- * Checks if `path` exists on `object`.
2671
- *
2672
- * @private
2673
- * @param {Object} object The object to query.
2674
- * @param {Array|string} path The path to check.
2675
- * @param {Function} hasFunc The function to check properties.
2676
- * @returns {boolean} Returns `true` if `path` exists, else `false`.
2677
- */
2678
- function hasPath(object, path, hasFunc) {
2679
- path = castPath(path, object);
2680
-
2681
- var index = -1,
2682
- length = path.length,
2683
- result = false;
2684
-
2685
- while (++index < length) {
2686
- var key = toKey(path[index]);
2687
- if (!(result = object != null && hasFunc(object, key))) {
2688
- break;
2689
- }
2690
- object = object[key];
2691
- }
2692
- if (result || ++index != length) {
2693
- return result;
2694
- }
2695
- length = object == null ? 0 : object.length;
2696
- return !!length && isLength(length) && isIndex(key, length) &&
2697
- (isArray$1(object) || isArguments$1(object));
2698
- }
2699
-
2700
- /**
2701
- * Checks if `path` is a direct or inherited property of `object`.
2702
- *
2703
- * @static
2704
- * @memberOf _
2705
- * @since 4.0.0
2706
- * @category Object
2707
- * @param {Object} object The object to query.
2708
- * @param {Array|string} path The path to check.
2709
- * @returns {boolean} Returns `true` if `path` exists, else `false`.
2710
- * @example
2711
- *
2712
- * var object = _.create({ 'a': _.create({ 'b': 2 }) });
2713
- *
2714
- * _.hasIn(object, 'a');
2715
- * // => true
2716
- *
2717
- * _.hasIn(object, 'a.b');
2718
- * // => true
2719
- *
2720
- * _.hasIn(object, ['a', 'b']);
2721
- * // => true
2722
- *
2723
- * _.hasIn(object, 'b');
2724
- * // => false
2725
- */
2726
- function hasIn(object, path) {
2727
- return object != null && hasPath(object, path, baseHasIn);
2728
- }
2729
-
2730
- /** Used to compose bitmasks for value comparisons. */
2731
- var COMPARE_PARTIAL_FLAG = 1,
2732
- COMPARE_UNORDERED_FLAG = 2;
2733
-
2734
- /**
2735
- * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
2736
- *
2737
- * @private
2738
- * @param {string} path The path of the property to get.
2739
- * @param {*} srcValue The value to match.
2740
- * @returns {Function} Returns the new spec function.
2741
- */
2742
- function baseMatchesProperty(path, srcValue) {
2743
- if (isKey(path) && isStrictComparable(srcValue)) {
2744
- return matchesStrictComparable(toKey(path), srcValue);
2745
- }
2746
- return function(object) {
2747
- var objValue = get(object, path);
2748
- return (objValue === undefined && objValue === srcValue)
2749
- ? hasIn(object, path)
2750
- : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
2751
- };
2752
- }
2753
-
2754
- /**
2755
- * The base implementation of `_.property` without support for deep paths.
2756
- *
2757
- * @private
2758
- * @param {string} key The key of the property to get.
2759
- * @returns {Function} Returns the new accessor function.
2760
- */
2761
- function baseProperty(key) {
2762
- return function(object) {
2763
- return object == null ? undefined : object[key];
2764
- };
2765
- }
2766
-
2767
- /**
2768
- * A specialized version of `baseProperty` which supports deep paths.
2769
- *
2770
- * @private
2771
- * @param {Array|string} path The path of the property to get.
2772
- * @returns {Function} Returns the new accessor function.
2773
- */
2774
- function basePropertyDeep(path) {
2775
- return function(object) {
2776
- return baseGet(object, path);
2777
- };
2778
- }
2779
-
2780
- /**
2781
- * Creates a function that returns the value at `path` of a given object.
2782
- *
2783
- * @static
2784
- * @memberOf _
2785
- * @since 2.4.0
2786
- * @category Util
2787
- * @param {Array|string} path The path of the property to get.
2788
- * @returns {Function} Returns the new accessor function.
2789
- * @example
2790
- *
2791
- * var objects = [
2792
- * { 'a': { 'b': 2 } },
2793
- * { 'a': { 'b': 1 } }
2794
- * ];
2795
- *
2796
- * _.map(objects, _.property('a.b'));
2797
- * // => [2, 1]
2798
- *
2799
- * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
2800
- * // => [1, 2]
2801
- */
2802
- function property(path) {
2803
- return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
2804
- }
2805
-
2806
- /**
2807
- * The base implementation of `_.iteratee`.
2808
- *
2809
- * @private
2810
- * @param {*} [value=_.identity] The value to convert to an iteratee.
2811
- * @returns {Function} Returns the iteratee.
2812
- */
2813
- function baseIteratee(value) {
2814
- // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
2815
- // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
2816
- if (typeof value == 'function') {
2817
- return value;
2818
- }
2819
- if (value == null) {
2820
- return identity;
2821
- }
2822
- if (typeof value == 'object') {
2823
- return isArray$1(value)
2824
- ? baseMatchesProperty(value[0], value[1])
2825
- : baseMatches(value);
2826
- }
2827
- return property(value);
2828
- }
2829
-
2830
- /**
2831
- * Gets the timestamp of the number of milliseconds that have elapsed since
2832
- * the Unix epoch (1 January 1970 00:00:00 UTC).
2833
- *
2834
- * @static
2835
- * @memberOf _
2836
- * @since 2.4.0
2837
- * @category Date
2838
- * @returns {number} Returns the timestamp.
2839
- * @example
2840
- *
2841
- * _.defer(function(stamp) {
2842
- * console.log(_.now() - stamp);
2843
- * }, _.now());
2844
- * // => Logs the number of milliseconds it took for the deferred invocation.
2845
- */
2846
- var now = function() {
2847
- return root$1.Date.now();
2848
- };
2849
-
2850
- const now$1 = now;
2851
-
2852
- /** Error message constants. */
2853
- var FUNC_ERROR_TEXT = 'Expected a function';
2854
-
2855
- /* Built-in method references for those with the same name as other `lodash` methods. */
2856
- var nativeMax = Math.max,
2857
- nativeMin = Math.min;
2858
-
2859
- /**
2860
- * Creates a debounced function that delays invoking `func` until after `wait`
2861
- * milliseconds have elapsed since the last time the debounced function was
2862
- * invoked. The debounced function comes with a `cancel` method to cancel
2863
- * delayed `func` invocations and a `flush` method to immediately invoke them.
2864
- * Provide `options` to indicate whether `func` should be invoked on the
2865
- * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
2866
- * with the last arguments provided to the debounced function. Subsequent
2867
- * calls to the debounced function return the result of the last `func`
2868
- * invocation.
2869
- *
2870
- * **Note:** If `leading` and `trailing` options are `true`, `func` is
2871
- * invoked on the trailing edge of the timeout only if the debounced function
2872
- * is invoked more than once during the `wait` timeout.
2873
- *
2874
- * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
2875
- * until to the next tick, similar to `setTimeout` with a timeout of `0`.
2876
- *
2877
- * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
2878
- * for details over the differences between `_.debounce` and `_.throttle`.
2879
- *
2880
- * @static
2881
- * @memberOf _
2882
- * @since 0.1.0
2883
- * @category Function
2884
- * @param {Function} func The function to debounce.
2885
- * @param {number} [wait=0] The number of milliseconds to delay.
2886
- * @param {Object} [options={}] The options object.
2887
- * @param {boolean} [options.leading=false]
2888
- * Specify invoking on the leading edge of the timeout.
2889
- * @param {number} [options.maxWait]
2890
- * The maximum time `func` is allowed to be delayed before it's invoked.
2891
- * @param {boolean} [options.trailing=true]
2892
- * Specify invoking on the trailing edge of the timeout.
2893
- * @returns {Function} Returns the new debounced function.
2894
- * @example
2895
- *
2896
- * // Avoid costly calculations while the window size is in flux.
2897
- * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
2898
- *
2899
- * // Invoke `sendMail` when clicked, debouncing subsequent calls.
2900
- * jQuery(element).on('click', _.debounce(sendMail, 300, {
2901
- * 'leading': true,
2902
- * 'trailing': false
2903
- * }));
2904
- *
2905
- * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
2906
- * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
2907
- * var source = new EventSource('/stream');
2908
- * jQuery(source).on('message', debounced);
2909
- *
2910
- * // Cancel the trailing debounced invocation.
2911
- * jQuery(window).on('popstate', debounced.cancel);
2912
- */
2913
- function debounce(func, wait, options) {
2914
- var lastArgs,
2915
- lastThis,
2916
- maxWait,
2917
- result,
2918
- timerId,
2919
- lastCallTime,
2920
- lastInvokeTime = 0,
2921
- leading = false,
2922
- maxing = false,
2923
- trailing = true;
2924
-
2925
- if (typeof func != 'function') {
2926
- throw new TypeError(FUNC_ERROR_TEXT);
2927
- }
2928
- wait = toNumber(wait) || 0;
2929
- if (isObject(options)) {
2930
- leading = !!options.leading;
2931
- maxing = 'maxWait' in options;
2932
- maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
2933
- trailing = 'trailing' in options ? !!options.trailing : trailing;
2934
- }
2935
-
2936
- function invokeFunc(time) {
2937
- var args = lastArgs,
2938
- thisArg = lastThis;
2939
-
2940
- lastArgs = lastThis = undefined;
2941
- lastInvokeTime = time;
2942
- result = func.apply(thisArg, args);
2943
- return result;
2944
- }
2945
-
2946
- function leadingEdge(time) {
2947
- // Reset any `maxWait` timer.
2948
- lastInvokeTime = time;
2949
- // Start the timer for the trailing edge.
2950
- timerId = setTimeout(timerExpired, wait);
2951
- // Invoke the leading edge.
2952
- return leading ? invokeFunc(time) : result;
2953
- }
2954
-
2955
- function remainingWait(time) {
2956
- var timeSinceLastCall = time - lastCallTime,
2957
- timeSinceLastInvoke = time - lastInvokeTime,
2958
- timeWaiting = wait - timeSinceLastCall;
2959
-
2960
- return maxing
2961
- ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
2962
- : timeWaiting;
2963
- }
2964
-
2965
- function shouldInvoke(time) {
2966
- var timeSinceLastCall = time - lastCallTime,
2967
- timeSinceLastInvoke = time - lastInvokeTime;
2968
-
2969
- // Either this is the first call, activity has stopped and we're at the
2970
- // trailing edge, the system time has gone backwards and we're treating
2971
- // it as the trailing edge, or we've hit the `maxWait` limit.
2972
- return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
2973
- (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
2974
- }
2975
-
2976
- function timerExpired() {
2977
- var time = now$1();
2978
- if (shouldInvoke(time)) {
2979
- return trailingEdge(time);
2980
- }
2981
- // Restart the timer.
2982
- timerId = setTimeout(timerExpired, remainingWait(time));
2983
- }
2984
-
2985
- function trailingEdge(time) {
2986
- timerId = undefined;
2987
-
2988
- // Only invoke if we have `lastArgs` which means `func` has been
2989
- // debounced at least once.
2990
- if (trailing && lastArgs) {
2991
- return invokeFunc(time);
2992
- }
2993
- lastArgs = lastThis = undefined;
2994
- return result;
2995
- }
2996
-
2997
- function cancel() {
2998
- if (timerId !== undefined) {
2999
- clearTimeout(timerId);
3000
- }
3001
- lastInvokeTime = 0;
3002
- lastArgs = lastCallTime = lastThis = timerId = undefined;
3003
- }
3004
-
3005
- function flush() {
3006
- return timerId === undefined ? result : trailingEdge(now$1());
3007
- }
3008
-
3009
- function debounced() {
3010
- var time = now$1(),
3011
- isInvoking = shouldInvoke(time);
3012
-
3013
- lastArgs = arguments;
3014
- lastThis = this;
3015
- lastCallTime = time;
3016
-
3017
- if (isInvoking) {
3018
- if (timerId === undefined) {
3019
- return leadingEdge(lastCallTime);
3020
- }
3021
- if (maxing) {
3022
- // Handle invocations in a tight loop.
3023
- clearTimeout(timerId);
3024
- timerId = setTimeout(timerExpired, wait);
3025
- return invokeFunc(lastCallTime);
3026
- }
3027
- }
3028
- if (timerId === undefined) {
3029
- timerId = setTimeout(timerExpired, wait);
3030
- }
3031
- return result;
3032
- }
3033
- debounced.cancel = cancel;
3034
- debounced.flush = flush;
3035
- return debounced;
3036
- }
3037
-
3038
- /**
3039
- * The inverse of `_.toPairs`; this method returns an object composed
3040
- * from key-value `pairs`.
3041
- *
3042
- * @static
3043
- * @memberOf _
3044
- * @since 4.0.0
3045
- * @category Array
3046
- * @param {Array} pairs The key-value pairs.
3047
- * @returns {Object} Returns the new object.
3048
- * @example
3049
- *
3050
- * _.fromPairs([['a', 1], ['b', 2]]);
3051
- * // => { 'a': 1, 'b': 2 }
3052
- */
3053
- function fromPairs(pairs) {
3054
- var index = -1,
3055
- length = pairs == null ? 0 : pairs.length,
3056
- result = {};
3057
-
3058
- while (++index < length) {
3059
- var pair = pairs[index];
3060
- result[pair[0]] = pair[1];
3061
- }
3062
- return result;
3063
- }
3064
-
3065
- /**
3066
- * The base implementation of `_.gt` which doesn't coerce arguments.
3067
- *
3068
- * @private
3069
- * @param {*} value The value to compare.
3070
- * @param {*} other The other value to compare.
3071
- * @returns {boolean} Returns `true` if `value` is greater than `other`,
3072
- * else `false`.
3073
- */
3074
- function baseGt(value, other) {
3075
- return value > other;
3076
- }
3077
-
3078
- /**
3079
- * Performs a deep comparison between two values to determine if they are
3080
- * equivalent.
3081
- *
3082
- * **Note:** This method supports comparing arrays, array buffers, booleans,
3083
- * date objects, error objects, maps, numbers, `Object` objects, regexes,
3084
- * sets, strings, symbols, and typed arrays. `Object` objects are compared
3085
- * by their own, not inherited, enumerable properties. Functions and DOM
3086
- * nodes are compared by strict equality, i.e. `===`.
3087
- *
3088
- * @static
3089
- * @memberOf _
3090
- * @since 0.1.0
3091
- * @category Lang
3092
- * @param {*} value The value to compare.
3093
- * @param {*} other The other value to compare.
3094
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
3095
- * @example
3096
- *
3097
- * var object = { 'a': 1 };
3098
- * var other = { 'a': 1 };
3099
- *
3100
- * _.isEqual(object, other);
3101
- * // => true
3102
- *
3103
- * object === other;
3104
- * // => false
3105
- */
3106
- function isEqual(value, other) {
3107
- return baseIsEqual(value, other);
3108
- }
3109
-
3110
- /**
3111
- * Checks if `value` is `null` or `undefined`.
3112
- *
3113
- * @static
3114
- * @memberOf _
3115
- * @since 4.0.0
3116
- * @category Lang
3117
- * @param {*} value The value to check.
3118
- * @returns {boolean} Returns `true` if `value` is nullish, else `false`.
3119
- * @example
3120
- *
3121
- * _.isNil(null);
3122
- * // => true
3123
- *
3124
- * _.isNil(void 0);
3125
- * // => true
3126
- *
3127
- * _.isNil(NaN);
3128
- * // => false
3129
- */
3130
- function isNil(value) {
3131
- return value == null;
3132
- }
3133
-
3134
- /**
3135
- * Checks if `value` is `undefined`.
3136
- *
3137
- * @static
3138
- * @since 0.1.0
3139
- * @memberOf _
3140
- * @category Lang
3141
- * @param {*} value The value to check.
3142
- * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
3143
- * @example
3144
- *
3145
- * _.isUndefined(void 0);
3146
- * // => true
3147
- *
3148
- * _.isUndefined(null);
3149
- * // => false
3150
- */
3151
- function isUndefined(value) {
3152
- return value === undefined;
3153
- }
3154
-
3155
- /**
3156
- * The base implementation of `_.lt` which doesn't coerce arguments.
3157
- *
3158
- * @private
3159
- * @param {*} value The value to compare.
3160
- * @param {*} other The other value to compare.
3161
- * @returns {boolean} Returns `true` if `value` is less than `other`,
3162
- * else `false`.
3163
- */
3164
- function baseLt(value, other) {
3165
- return value < other;
3166
- }
3167
-
3168
- /**
3169
- * The base implementation of methods like `_.max` and `_.min` which accepts a
3170
- * `comparator` to determine the extremum value.
3171
- *
3172
- * @private
3173
- * @param {Array} array The array to iterate over.
3174
- * @param {Function} iteratee The iteratee invoked per iteration.
3175
- * @param {Function} comparator The comparator used to compare values.
3176
- * @returns {*} Returns the extremum value.
3177
- */
3178
- function baseExtremum(array, iteratee, comparator) {
3179
- var index = -1,
3180
- length = array.length;
3181
-
3182
- while (++index < length) {
3183
- var value = array[index],
3184
- current = iteratee(value);
3185
-
3186
- if (current != null && (computed === undefined
3187
- ? (current === current && !isSymbol(current))
3188
- : comparator(current, computed)
3189
- )) {
3190
- var computed = current,
3191
- result = value;
3192
- }
3193
- }
3194
- return result;
3195
- }
3196
-
3197
- /**
3198
- * This method is like `_.max` except that it accepts `iteratee` which is
3199
- * invoked for each element in `array` to generate the criterion by which
3200
- * the value is ranked. The iteratee is invoked with one argument: (value).
3201
- *
3202
- * @static
3203
- * @memberOf _
3204
- * @since 4.0.0
3205
- * @category Math
3206
- * @param {Array} array The array to iterate over.
3207
- * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
3208
- * @returns {*} Returns the maximum value.
3209
- * @example
3210
- *
3211
- * var objects = [{ 'n': 1 }, { 'n': 2 }];
3212
- *
3213
- * _.maxBy(objects, function(o) { return o.n; });
3214
- * // => { 'n': 2 }
3215
- *
3216
- * // The `_.property` iteratee shorthand.
3217
- * _.maxBy(objects, 'n');
3218
- * // => { 'n': 2 }
3219
- */
3220
- function maxBy(array, iteratee) {
3221
- return (array && array.length)
3222
- ? baseExtremum(array, baseIteratee(iteratee), baseGt)
3223
- : undefined;
3224
- }
3225
-
3226
- /**
3227
- * This method is like `_.min` except that it accepts `iteratee` which is
3228
- * invoked for each element in `array` to generate the criterion by which
3229
- * the value is ranked. The iteratee is invoked with one argument: (value).
3230
- *
3231
- * @static
3232
- * @memberOf _
3233
- * @since 4.0.0
3234
- * @category Math
3235
- * @param {Array} array The array to iterate over.
3236
- * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
3237
- * @returns {*} Returns the minimum value.
3238
- * @example
3239
- *
3240
- * var objects = [{ 'n': 1 }, { 'n': 2 }];
3241
- *
3242
- * _.minBy(objects, function(o) { return o.n; });
3243
- * // => { 'n': 1 }
3244
- *
3245
- * // The `_.property` iteratee shorthand.
3246
- * _.minBy(objects, 'n');
3247
- * // => { 'n': 1 }
3248
- */
3249
- function minBy(array, iteratee) {
3250
- return (array && array.length)
3251
- ? baseExtremum(array, baseIteratee(iteratee), baseLt)
3252
- : undefined;
3253
- }
3254
-
3255
- export { isUndefined as a, isEqual as b, flatten as c, debounce as d, minBy as e, fromPairs as f, get as g, isNil as i, maxBy as m };