nxd-plugin 1.8.35 → 1.8.37

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 (85) hide show
  1. package/dist/chunks/YCServiceSummary-tHEqhFHj.mjs +2 -0
  2. package/dist/chunks/{component-Agent-Cr-ntDoH.mjs → component-Agent-DqXO06Ql.mjs} +27610 -1518
  3. package/dist/chunks/{component-AiChat-DApn4-2y.mjs → component-AiChat-C8NFYtVc.mjs} +155 -151
  4. package/dist/chunks/{component-AqiMonitor-BUXDYKbQ.mjs → component-AqiMonitor-WvrknfI9.mjs} +9 -9
  5. package/dist/chunks/{component-ChartCumulativePre-BaHd1iUO.mjs → component-ChartCumulativePre-B9Prk8Sx.mjs} +7 -7
  6. package/dist/chunks/{component-ChartServiceMaterial-R-h4rGRH.mjs → component-ChartServiceMaterial-dSZ_Pec0.mjs} +6 -6
  7. package/dist/chunks/{component-Duty-D_8KvfNe.mjs → component-Duty-CcPTE385.mjs} +6 -6
  8. package/dist/chunks/{component-EarlyWarningStatistic-BCrTZD4q.mjs → component-EarlyWarningStatistic-Ug-1jfiU.mjs} +6 -6
  9. package/dist/chunks/{component-EarlyWarningStatistic2-BR0gmPUZ.mjs → component-EarlyWarningStatistic2-BnZqgK4P.mjs} +15 -15
  10. package/dist/chunks/{component-Forecast72h-B85PYYlt.mjs → component-Forecast72h-5DGIhVUd.mjs} +16 -16
  11. package/dist/chunks/{component-GeologyLiveAlarm-D-8PLp8C.mjs → component-GeologyLiveAlarm-Bg710d1g.mjs} +7 -7
  12. package/dist/chunks/{component-GridForecastMsg-DP0QB8OG.mjs → component-GridForecastMsg-D0jzurbN.mjs} +8 -8
  13. package/dist/chunks/{component-HDSeaLegend-Lx4CVdBe.mjs → component-HDSeaLegend-D5FWHvmR.mjs} +2 -2
  14. package/dist/chunks/component-HdCameraList-4ArboSf0.mjs +916 -0
  15. package/dist/chunks/{component-HdFarmStation-QWV3F5p7.mjs → component-HdFarmStation-D9qZ2csY.mjs} +11 -11
  16. package/dist/chunks/{component-HdFarmStationDialog-C42Kalh1.mjs → component-HdFarmStationDialog-DHGlfkae.mjs} +33 -33
  17. package/dist/chunks/{component-HdForecastProducts-BgjJEfkx.mjs → component-HdForecastProducts-qj9Yzh7D.mjs} +10 -10
  18. package/dist/chunks/{component-HdHeatChart-CCRZPuMc.mjs → component-HdHeatChart-Br63YpFN.mjs} +65 -63
  19. package/dist/chunks/{component-HdHeatChartDialog-DeoxDSyl.mjs → component-HdHeatChartDialog-DOkB8heB.mjs} +11 -11
  20. package/dist/chunks/{component-HdHeatService-CmbwlkaA.mjs → component-HdHeatService-BeUpAmBA.mjs} +34 -34
  21. package/dist/chunks/{component-HdInsectDetailList-By-U2peB.mjs → component-HdInsectDetailList-C9tAtciq.mjs} +16 -16
  22. package/dist/chunks/{component-HdInsectList-BlVzoIgO.mjs → component-HdInsectList-pU1-mQ-C.mjs} +18 -18
  23. package/dist/chunks/{component-HdMajorActivity-DNeXIzo9.mjs → component-HdMajorActivity-DSPYsbdQ.mjs} +23 -23
  24. package/dist/chunks/{component-HdObservation-CT3xn1ly.mjs → component-HdObservation-osOGizJv.mjs} +10 -10
  25. package/dist/chunks/{component-HdPreSituation-DDNcwiwp.mjs → component-HdPreSituation-Ca_d4L11.mjs} +9 -9
  26. package/dist/chunks/{component-HdQxServiceEffects-BBzdn4-G.mjs → component-HdQxServiceEffects-CtlLJVdx.mjs} +10 -10
  27. package/dist/chunks/{component-HdRadarList-BqobCRLG.mjs → component-HdRadarList-CgWMdwBo.mjs} +3 -3
  28. package/dist/chunks/{component-HdRadarTime-D_4TfBtL.mjs → component-HdRadarTime-Bp7D80GJ.mjs} +12 -12
  29. package/dist/chunks/{component-HdRadarTimeLine-1eC-qOqz.mjs → component-HdRadarTimeLine-DfOce6fK.mjs} +13 -13
  30. package/dist/chunks/{component-HdRisk-Dq273IqG.mjs → component-HdRisk-Bd3if-1-.mjs} +11 -11
  31. package/dist/chunks/{component-HdSeaCase-FmlzNkBj.mjs → component-HdSeaCase-CbY3FsOy.mjs} +26 -26
  32. package/dist/chunks/{component-HdServiceMarterial-C7D1ZwhV.mjs → component-HdServiceMarterial-B7FEviHO.mjs} +17 -17
  33. package/dist/chunks/{component-HdServiceRequirements-BTUKNojU.mjs → component-HdServiceRequirements-DKJ8uQja.mjs} +13 -13
  34. package/dist/chunks/{component-HdSoil-2_TlWGNW.mjs → component-HdSoil-ztBxJspH.mjs} +11 -11
  35. package/dist/chunks/{component-HdSoilDetailList-BwRGMjV9.mjs → component-HdSoilDetailList-1gMQt-uL.mjs} +12 -12
  36. package/dist/chunks/{component-HdStationTem-D0Dt3LHl.mjs → component-HdStationTem-DfJ0I_2S.mjs} +17 -17
  37. package/dist/chunks/{component-HdSuggestion-ofUMSp3s.mjs → component-HdSuggestion-FXvLu_OD.mjs} +13 -13
  38. package/dist/chunks/{component-HdThreeWeatherTrend-Kh64QzKx.mjs → component-HdThreeWeatherTrend-DGLSVUb8.mjs} +18 -18
  39. package/dist/chunks/{component-HdWaveForcast-DppP_HvM.mjs → component-HdWaveForcast-dTEB0h8d.mjs} +11 -11
  40. package/dist/chunks/{component-HighQuality-C7RXFw-E.mjs → component-HighQuality-DZGJXvJC.mjs} +16 -16
  41. package/dist/chunks/{component-HighWayEarlyWarningRed-Cv-Rh-cC.mjs → component-HighWayEarlyWarningRed-F0q1FCTw.mjs} +16 -16
  42. package/dist/chunks/{component-HighWayFreeze-DLqbbIG5.mjs → component-HighWayFreeze-d4Xwkwf1.mjs} +8 -8
  43. package/dist/chunks/{component-HighwayLiveAlarm-B7jI-RZI.mjs → component-HighwayLiveAlarm-ChAdlgNB.mjs} +6 -6
  44. package/dist/chunks/{component-HighwayLiveAlarmNew-B-jkZXom.mjs → component-HighwayLiveAlarmNew-B-KnOey_.mjs} +11 -11
  45. package/dist/chunks/{component-HighwayStations-C7bVg74m.mjs → component-HighwayStations-CknEywO_.mjs} +6 -6
  46. package/dist/chunks/{component-HighwayWeatherForecast-C0Z_0C3X.mjs → component-HighwayWeatherForecast-B4szOq2G.mjs} +9 -9
  47. package/dist/chunks/{component-IframeWeb-BM0dqiO9.mjs → component-IframeWeb-iDh9lrPn.mjs} +1 -1
  48. package/dist/chunks/{component-ImageGeneration-5Bdvbyfs.mjs → component-ImageGeneration-CsIZ2Kz2.mjs} +2 -2
  49. package/dist/chunks/{component-IntroducePic-_nigmGDe.mjs → component-IntroducePic-BggfUWvz.mjs} +13 -13
  50. package/dist/chunks/{component-LithiumBatteryMiningArea-B21dEJLE.mjs → component-LithiumBatteryMiningArea-RpuBju1r.mjs} +12 -12
  51. package/dist/chunks/{component-MapPopup-52oQnhOj.mjs → component-MapPopup-LFWUnUl3.mjs} +1 -1
  52. package/dist/chunks/{component-MaterialPreview-CrfvJxHz.mjs → component-MaterialPreview-DvNKoDNy.mjs} +5 -5
  53. package/dist/chunks/{component-PieLegend-CgHQfWD4.mjs → component-PieLegend-B2Nor3pz.mjs} +1 -1
  54. package/dist/chunks/{component-PrecipitationRanking-C0TROtSR.mjs → component-PrecipitationRanking-ClwjH24B.mjs} +27 -27
  55. package/dist/chunks/{component-RadarChart-COc4gmuU.mjs → component-RadarChart-BMoy8MXR.mjs} +10 -10
  56. package/dist/chunks/{component-RadarLegend-CjhaPfOW.mjs → component-RadarLegend-rXlAb8lF.mjs} +1 -1
  57. package/dist/chunks/{component-RadarShortTerm-DJgvtI9c.mjs → component-RadarShortTerm-4RS7HYWc.mjs} +13 -13
  58. package/dist/chunks/{component-RadarTime-Br0xVEuq.mjs → component-RadarTime-W1ZVEA9e.mjs} +18 -18
  59. package/dist/chunks/{component-RenderMarkdown-InDC2lO4.mjs → component-RenderMarkdown-DO4bEFoj.mjs} +6 -6
  60. package/dist/chunks/{component-ReservoirLiveAlarm-DP-lWjfx.mjs → component-ReservoirLiveAlarm-ZD1RSFHm.mjs} +8 -8
  61. package/dist/chunks/{component-ServiceMaterial-Cijz6IMh.mjs → component-ServiceMaterial-DrxeAmRt.mjs} +9 -9
  62. package/dist/chunks/{component-ServiceMaterialsBtn-BdnH5TSY.mjs → component-ServiceMaterialsBtn-CZFRzpDr.mjs} +2 -2
  63. package/dist/chunks/{component-StationDialog-CcpEWARd.mjs → component-StationDialog-NhNr3lY1.mjs} +9 -9
  64. package/dist/chunks/{component-StationList-DyspLaBT.mjs → component-StationList-CSU1nUgF.mjs} +9 -9
  65. package/dist/chunks/{component-TimeBasedForecast-DS12UnL3.mjs → component-TimeBasedForecast-BObdyMNh.mjs} +10 -10
  66. package/dist/chunks/{component-Typhoon-BLL7-FHD.mjs → component-Typhoon-AxGQ8VuM.mjs} +16 -16
  67. package/dist/chunks/{component-WarningLine-CjXljhuQ.mjs → component-WarningLine-Biz0NEC8.mjs} +2 -2
  68. package/dist/chunks/{component-WarningSignal-BUq7JNyw.mjs → component-WarningSignal-D5ux6LCy.mjs} +17 -17
  69. package/dist/chunks/{component-WeatherForecast-CBY40Y1j.mjs → component-WeatherForecast-DnvELAB8.mjs} +16 -16
  70. package/dist/chunks/{component-YCDataMonitor-Clu5RdqK.mjs → component-YCDataMonitor-Dumu7_mw.mjs} +16 -16
  71. package/dist/chunks/{component-YCDataService-BX8obEW9.mjs → component-YCDataService-CibX3y21.mjs} +10 -10
  72. package/dist/chunks/{component-YCHighWaySummary-DfDlTv13.mjs → component-YCHighWaySummary-B4rfNY9B.mjs} +7 -7
  73. package/dist/chunks/{component-YCHome-CoTwNCRI.mjs → component-YCHome-BgH2uOoL.mjs} +36 -36
  74. package/dist/chunks/{component-YCHomeLegend--xlIidkR.mjs → component-YCHomeLegend-BpForfu4.mjs} +2 -2
  75. package/dist/chunks/{component-YCLoginNew-CQ9V5l-b.mjs → component-YCLoginNew-BsQr4jFy.mjs} +17 -17
  76. package/dist/chunks/{component-YCServiceSummary-DeDBpyuC.mjs → component-YCServiceSummary-CnnEfTaE.mjs} +162 -162
  77. package/dist/components/Agent/Agent.vue.d.ts +1 -0
  78. package/dist/nxd-plugin.mjs +73 -73
  79. package/dist/styles/component-Agent.css +1 -1
  80. package/dist/styles/component-AiChat.css +1 -1
  81. package/dist/styles/component-HdHeatChart.css +1 -1
  82. package/dist/styles/component-YCLoginNew.css +1 -1
  83. package/package.json +1 -1
  84. package/dist/chunks/YCServiceSummary-D6Jrh3KH.mjs +0 -2
  85. package/dist/chunks/component-HdCameraList-BkpFsBPc.mjs +0 -26871
@@ -0,0 +1,916 @@
1
+ import { i as e, t } from "./rolldown-runtime-Dd0fQ6-X.mjs";
2
+ import { d as n, m as r, n as i, r as a } from "./component-Agent-DqXO06Ql.mjs";
3
+ import "./component-Forecast72h-5DGIhVUd.mjs";
4
+ import { Fragment as o, Teleport as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createVNode as p, defineComponent as m, getCurrentInstance as h, nextTick as g, onMounted as _, onUnmounted as v, openBlock as y, ref as b, renderList as x, toDisplayString as S, unref as C, vModelCheckbox as ee, vModelText as te, vShow as ne, watch as re, withCtx as ie, withDirectives as w, withKeys as ae, withModifiers as oe } from "vue";
5
+ import "element-plus/es/components/select/style/css";
6
+ import "element-plus/es/components/option/style/css";
7
+ import { ElOption as se, ElSelect as ce } from "element-plus";
8
+ //#region src/assets/img/hd/camera.png
9
+ var le = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFYAAABQCAMAAAC00XLYAAAAAXNSR0IArs4c6QAAAGxQTFRFR3BMAAAAAAAAAAAAAAAAAAAAAQEBAAAAAQEBBQUFAQEBAAAAmJiYAQEBBQUFAQEBAQEBrq6uDg4OTk5Oz8/PfX19qamp0NDQ5eXl7e3t9/f3+vr6/v32/////vvP/vej/fOB/O9X++ww+ucED7wcywAAAB10Uk5TAAECAwcKDA8TGCAoMTE6RFBUZGxuhJyjtcva8PxXi/fMAAAD7UlEQVR42u3Y6W6jMBQF4GlaCE4I+75kff93HPvacGobB5r2R0ea86cSqj9dnWukiD//fN6W89Mm8m10Z+Rb8CfyXcsn+kUVphHAL6hAP+aY8CsqTC0vw1AJ9T78ou2awvd4IKOJr6qEen7YjSJt6PNI+esDQyWUS+0oM9TBXsovwFAJ3e/rcU6XBnshe0YTX1f9dODe+XaWcBMC3jgwWFJp1ICJYof743EbyO2LgGA0gdVtV4NGWLeHyGVUqyN4YxNgVQOkFgK6PGTuZ7U6RvD21YGVatiLYh9zrsO0Og5TE+uXGB1QBVxlrUDuD+SO1aGJ1YExLKlUwZVrCFbH5MBrMFhVAWPNXAGC1aWbV4cO9oFkMa3dRM02NqE6oGYZOxR0+nyz4OvUxPLqXCwNezgcm5FysQe+PF2dxc4dMMEei15eVXvg29lYnem62TQ6RfVIOd/tJkZKR6tzu7gIqtpj2xdRVHZyYPfqGjYVgX7Ni2BU25VxXA2ugW9YneE+21jai1nyJG/XVteGcDGugz1GjZilSpJqdXU1dz24T9lTlHZiljzL1lfH3c1sFNeivzrL1lZXowZizYtgsHHeUhNZ5lrdndplgTbuKhuLZqkJx+rEsH3ImBrXZncmeyI2oWIH3gRWZ3RbHBiNixaguthqlOnKeXWXuYkbvRHHA3ed7DvYrg0FG3G242JLWpNbqxOFdyfFcneNHbuJ5QezTGnm6uh9SE9H7qIFnd1prPhv6fKDZc5brTpqAqtTFdQnB0uqzapxldKrQRus7koVRJFkmYMl1WC5q9bEF5bljbrEzThlyDex3sx2LaWnw22ZJAmHS7rEJa2OUsVPWXQwsUiTJyKZcDP5Oqu/QxXH0dNuubrM9pW4vSpcnl7nvKqrnKtg7Qs2Vwu2Ligpr1dEqQKmlfVtlSTxzDKN/WOzWNlRXDFKDJlwWl2uVFTrf5jsDhsDS/AJMOSyrkkFi2rXWLiWHCeEQl3cGFgf7EG5poxEQkUH2BhYUnWWXAXDhgkVw25gybVohFCoqPYJ23EVsIXTH6VSBdqwTrYLD4hJwyRUq2CZlfc2SBkPXPhGoLpYcr1pXBXQCEiFWqqLhWsEuEJpVKVSswaLchfdQHukRIy69MMOLMZ1BDaRAnWqYDGunr1KYD8n1P3jVvuKoAR4vsxeBY+fqmDhGqLH41vxJGqpYDXXOEuneTwZ/em7QwWrXMAeSGT1YxNYuATPwWkVkwQK1WYBG6fd2WHURRYuop/eOUyoBguXYpLuvAF1u4CR6TQCEOhy1j6uvvihWJsDpF2dS3S7gJG186ssAhP5LZ/ZkZ9GkZ83kRn8n1+bvwj4zjvKtLxUAAAAAElFTkSuQmCC", ue = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADIBAMAAABfdrOtAAAAAXNSR0IArs4c6QAAAA9QTFRFR3BM3wzz3wzz4Avz4AvzXoeFywAAAAR0Uk5TAECAv6NU3QwAAAOVSURBVHja7ZxbcuIwFESvBQtQgAUIogUwxAsgV73/NU1NVRITX4Mkm1YlU+6ffBB8Sn3QI8YVWbNG2udld/LCTdcDgAYhZg+ATXH4SiB29RUVUg4AnwLwKRsMoWnpwac4jKNenp0IEyVot1FKW2QtEXxKh+kkT5gkVC0RHIrVTtayRQNKxIOkQGiLpCWiAQW5BEJbDEoEn9JhCE3LBg0oEUU5LtdO1rIFh2LbImtxAJ9yQEX+LDnTkbU4gEKx2tlaAD7FoTqXeW2RtXQAn7LFnGh1W3wKwKc4AGBr2aABZYvZUV8DoWs5oAElYkkCZySWwockXyqermWDBhQHgK6lQwtKj6VJocQ8X0uHFpSIBlocWlD2TSjx12jRJlqOP0N+/P3yu9PHTyblgPBELZe7NQWCfOsiEOQbiLLlx5tXup5EibfCHDiUAwAQ5FsIR77d4tVz5A8F0eX3wysM+YMUvvwe4Mt3YFDUG8pIC0N+BEs+nxIM5dfKT3cpKfC07BlaVBrIP8t9yvFZWgyDIF+lgOIYJxf3ZC1iMil/t6ytQkokHPK7J24uSYbQ5L/LTQjri2krq2W/SDtX/lVGIawvpi2GfM3fBllOuebvTS2XHwqULJWv+YEsp5xL7uEu1SK5tuZTbFvHh21Zyusc7dDMJLFa6tuafsh1iydQ9AYCva+kx20ucx+lmJ4y/eevufnyk3yD6B2ImnJCRWHv3yHw099tBjNh1JdTwuhy5/sQN1e+ji+n09PEWwi0VMt1DEkGYkZSLT+YYqbrOg8zxtXKV3M5Yx6jT1eSXSXlmof0n7v7/gNnTxbdY0qwkJD53lHFUlyurTzEDt71FevLeRqSf1a8Rr4UQDrznjqKZiH27WqPlf7hvbdQBNnANlwhX2aMxH/VWEbRIoizi3aNllAC2Zlv26soSSYhl9Nt3h595l9HlK7P/3VV/XhdXr41XM3IU1SqIOly9GLixteLmYFI8SCK5ScxmcEQs7m43gykEKJF5/E0XjvfxaZs2ymXn6QG8i6P4npDeVBx9UM1Vv5J/qXbvb5dXmQy9QxLuUgm9QyrBToD8vbHMDKUdDrmIUFqYw9FngAxi9aZADGUQICMNxclODHyrwSIoXgixA2rEAkyUJKwIAMleTJE5OVFhA4RWSErZIWskBXy4yG+BUT+F4i2gFxbQEIDiEoDSGgAUeFDkhd2WjCkBUP8+i+F1qxZs2YyfwHGOowYWuds2QAAAABJRU5ErkJggg==", T = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
10
+ var n = typeof Reflect == "object" ? Reflect : null, r = n && typeof n.apply == "function" ? n.apply : function(e, t, n) {
11
+ return Function.prototype.apply.call(e, t, n);
12
+ }, i = n && typeof n.ownKeys == "function" ? n.ownKeys : Object.getOwnPropertySymbols ? function(e) {
13
+ return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e));
14
+ } : function(e) {
15
+ return Object.getOwnPropertyNames(e);
16
+ };
17
+ function a(e) {
18
+ console && console.warn && console.warn(e);
19
+ }
20
+ var o = Number.isNaN || function(e) {
21
+ return e !== e;
22
+ };
23
+ function s() {
24
+ s.init.call(this);
25
+ }
26
+ t.exports = s, t.exports.once = y, s.EventEmitter = s, s.prototype._events = void 0, s.prototype._eventsCount = 0, s.prototype._maxListeners = void 0;
27
+ var c = 10;
28
+ function l(e) {
29
+ if (typeof e != "function") throw TypeError("The \"listener\" argument must be of type Function. Received type " + typeof e);
30
+ }
31
+ Object.defineProperty(s, "defaultMaxListeners", {
32
+ enumerable: !0,
33
+ get: function() {
34
+ return c;
35
+ },
36
+ set: function(e) {
37
+ if (typeof e != "number" || e < 0 || o(e)) throw RangeError("The value of \"defaultMaxListeners\" is out of range. It must be a non-negative number. Received " + e + ".");
38
+ c = e;
39
+ }
40
+ }), s.init = function() {
41
+ (this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) && (this._events = Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
42
+ }, s.prototype.setMaxListeners = function(e) {
43
+ if (typeof e != "number" || e < 0 || o(e)) throw RangeError("The value of \"n\" is out of range. It must be a non-negative number. Received " + e + ".");
44
+ return this._maxListeners = e, this;
45
+ };
46
+ function u(e) {
47
+ return e._maxListeners === void 0 ? s.defaultMaxListeners : e._maxListeners;
48
+ }
49
+ s.prototype.getMaxListeners = function() {
50
+ return u(this);
51
+ }, s.prototype.emit = function(e) {
52
+ for (var t = [], n = 1; n < arguments.length; n++) t.push(arguments[n]);
53
+ var i = e === "error", a = this._events;
54
+ if (a !== void 0) i &&= a.error === void 0;
55
+ else if (!i) return !1;
56
+ if (i) {
57
+ var o;
58
+ if (t.length > 0 && (o = t[0]), o instanceof Error) throw o;
59
+ var s = /* @__PURE__ */ Error("Unhandled error." + (o ? " (" + o.message + ")" : ""));
60
+ throw s.context = o, s;
61
+ }
62
+ var c = a[e];
63
+ if (c === void 0) return !1;
64
+ if (typeof c == "function") r(c, this, t);
65
+ else for (var l = c.length, u = g(c, l), n = 0; n < l; ++n) r(u[n], this, t);
66
+ return !0;
67
+ };
68
+ function d(e, t, n, r) {
69
+ var i, o, s;
70
+ if (l(n), o = e._events, o === void 0 ? (o = e._events = Object.create(null), e._eventsCount = 0) : (o.newListener !== void 0 && (e.emit("newListener", t, n.listener ? n.listener : n), o = e._events), s = o[t]), s === void 0) s = o[t] = n, ++e._eventsCount;
71
+ else if (typeof s == "function" ? s = o[t] = r ? [n, s] : [s, n] : r ? s.unshift(n) : s.push(n), i = u(e), i > 0 && s.length > i && !s.warned) {
72
+ s.warned = !0;
73
+ var c = /* @__PURE__ */ Error("Possible EventEmitter memory leak detected. " + s.length + " " + String(t) + " listeners added. Use emitter.setMaxListeners() to increase limit");
74
+ c.name = "MaxListenersExceededWarning", c.emitter = e, c.type = t, c.count = s.length, a(c);
75
+ }
76
+ return e;
77
+ }
78
+ s.prototype.addListener = function(e, t) {
79
+ return d(this, e, t, !1);
80
+ }, s.prototype.on = s.prototype.addListener, s.prototype.prependListener = function(e, t) {
81
+ return d(this, e, t, !0);
82
+ };
83
+ function f() {
84
+ if (!this.fired) return this.target.removeListener(this.type, this.wrapFn), this.fired = !0, arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments);
85
+ }
86
+ function p(e, t, n) {
87
+ var r = {
88
+ fired: !1,
89
+ wrapFn: void 0,
90
+ target: e,
91
+ type: t,
92
+ listener: n
93
+ }, i = f.bind(r);
94
+ return i.listener = n, r.wrapFn = i, i;
95
+ }
96
+ s.prototype.once = function(e, t) {
97
+ return l(t), this.on(e, p(this, e, t)), this;
98
+ }, s.prototype.prependOnceListener = function(e, t) {
99
+ return l(t), this.prependListener(e, p(this, e, t)), this;
100
+ }, s.prototype.removeListener = function(e, t) {
101
+ var n, r, i, a, o;
102
+ if (l(t), r = this._events, r === void 0 || (n = r[e], n === void 0)) return this;
103
+ if (n === t || n.listener === t) --this._eventsCount === 0 ? this._events = Object.create(null) : (delete r[e], r.removeListener && this.emit("removeListener", e, n.listener || t));
104
+ else if (typeof n != "function") {
105
+ for (i = -1, a = n.length - 1; a >= 0; a--) if (n[a] === t || n[a].listener === t) {
106
+ o = n[a].listener, i = a;
107
+ break;
108
+ }
109
+ if (i < 0) return this;
110
+ i === 0 ? n.shift() : _(n, i), n.length === 1 && (r[e] = n[0]), r.removeListener !== void 0 && this.emit("removeListener", e, o || t);
111
+ }
112
+ return this;
113
+ }, s.prototype.off = s.prototype.removeListener, s.prototype.removeAllListeners = function(e) {
114
+ var t, n = this._events, r;
115
+ if (n === void 0) return this;
116
+ if (n.removeListener === void 0) return arguments.length === 0 ? (this._events = Object.create(null), this._eventsCount = 0) : n[e] !== void 0 && (--this._eventsCount === 0 ? this._events = Object.create(null) : delete n[e]), this;
117
+ if (arguments.length === 0) {
118
+ var i = Object.keys(n), a;
119
+ for (r = 0; r < i.length; ++r) a = i[r], a !== "removeListener" && this.removeAllListeners(a);
120
+ return this.removeAllListeners("removeListener"), this._events = Object.create(null), this._eventsCount = 0, this;
121
+ }
122
+ if (t = n[e], typeof t == "function") this.removeListener(e, t);
123
+ else if (t !== void 0) for (r = t.length - 1; r >= 0; r--) this.removeListener(e, t[r]);
124
+ return this;
125
+ };
126
+ function m(e, t, n) {
127
+ var r = e._events;
128
+ if (r === void 0) return [];
129
+ var i = r[t];
130
+ return i === void 0 ? [] : typeof i == "function" ? n ? [i.listener || i] : [i] : n ? v(i) : g(i, i.length);
131
+ }
132
+ s.prototype.listeners = function(e) {
133
+ return m(this, e, !0);
134
+ }, s.prototype.rawListeners = function(e) {
135
+ return m(this, e, !1);
136
+ }, s.listenerCount = function(e, t) {
137
+ return typeof e.listenerCount == "function" ? e.listenerCount(t) : h.call(e, t);
138
+ }, s.prototype.listenerCount = h;
139
+ function h(e) {
140
+ var t = this._events;
141
+ if (t !== void 0) {
142
+ var n = t[e];
143
+ if (typeof n == "function") return 1;
144
+ if (n !== void 0) return n.length;
145
+ }
146
+ return 0;
147
+ }
148
+ s.prototype.eventNames = function() {
149
+ return this._eventsCount > 0 ? i(this._events) : [];
150
+ };
151
+ function g(e, t) {
152
+ for (var n = Array(t), r = 0; r < t; ++r) n[r] = e[r];
153
+ return n;
154
+ }
155
+ function _(e, t) {
156
+ for (; t + 1 < e.length; t++) e[t] = e[t + 1];
157
+ e.pop();
158
+ }
159
+ function v(e) {
160
+ for (var t = Array(e.length), n = 0; n < t.length; ++n) t[n] = e[n].listener || e[n];
161
+ return t;
162
+ }
163
+ function y(e, t) {
164
+ return new Promise(function(n, r) {
165
+ function i(n) {
166
+ e.removeListener(t, a), r(n);
167
+ }
168
+ function a() {
169
+ typeof e.removeListener == "function" && e.removeListener("error", i), n([].slice.call(arguments));
170
+ }
171
+ x(e, t, a, { once: !0 }), t !== "error" && b(e, i, { once: !0 });
172
+ });
173
+ }
174
+ function b(e, t, n) {
175
+ typeof e.on == "function" && x(e, "error", t, n);
176
+ }
177
+ function x(e, t, n, r) {
178
+ if (typeof e.on == "function") r.once ? e.once(t, n) : e.on(t, n);
179
+ else if (typeof e.addEventListener == "function") e.addEventListener(t, function i(a) {
180
+ r.once && e.removeEventListener(t, i), n(a);
181
+ });
182
+ else throw TypeError("The \"emitter\" argument must be of type EventEmitter. Received type " + typeof e);
183
+ }
184
+ })))()), E = class e {
185
+ static e(t, n) {
186
+ (!t || e.FORCE_GLOBAL_TAG) && (t = e.GLOBAL_TAG);
187
+ let r = `[${t}] > ${n}`;
188
+ e.ENABLE_CALLBACK && e.emitter.emit("log", "error", r), e.ENABLE_ERROR && (console.error ? console.error(r) : console.warn ? console.warn(r) : console.log(r));
189
+ }
190
+ static i(t, n) {
191
+ (!t || e.FORCE_GLOBAL_TAG) && (t = e.GLOBAL_TAG);
192
+ let r = `[${t}] > ${n}`;
193
+ e.ENABLE_CALLBACK && e.emitter.emit("log", "info", r), e.ENABLE_INFO && (console.info ? console.info(r) : console.log(r));
194
+ }
195
+ static w(t, n) {
196
+ (!t || e.FORCE_GLOBAL_TAG) && (t = e.GLOBAL_TAG);
197
+ let r = `[${t}] > ${n}`;
198
+ e.ENABLE_CALLBACK && e.emitter.emit("log", "warn", r), e.ENABLE_WARN && (console.warn ? console.warn(r) : console.log(r));
199
+ }
200
+ static d(t, n) {
201
+ (!t || e.FORCE_GLOBAL_TAG) && (t = e.GLOBAL_TAG);
202
+ let r = `[${t}] > ${n}`;
203
+ e.ENABLE_CALLBACK && e.emitter.emit("log", "debug", r), e.ENABLE_DEBUG && (console.debug ? console.debug(r) : console.log(r));
204
+ }
205
+ static v(t, n) {
206
+ (!t || e.FORCE_GLOBAL_TAG) && (t = e.GLOBAL_TAG);
207
+ let r = `[${t}] > ${n}`;
208
+ e.ENABLE_CALLBACK && e.emitter.emit("log", "verbose", r), e.ENABLE_VERBOSE && console.log(r);
209
+ }
210
+ };
211
+ E.GLOBAL_TAG = "flv.js", E.FORCE_GLOBAL_TAG = !1, E.ENABLE_ERROR = !0, E.ENABLE_INFO = !0, E.ENABLE_WARN = !0, E.ENABLE_DEBUG = !0, E.ENABLE_VERBOSE = !0, E.ENABLE_CALLBACK = !1, E.emitter = new T.default();
212
+ //#endregion
213
+ //#region node_modules/flv.js/src/utils/browser.js
214
+ var D = {};
215
+ function O() {
216
+ let e = self.navigator.userAgent.toLowerCase(), t = /(edge)\/([\w.]+)/.exec(e) || /(opr)[\/]([\w.]+)/.exec(e) || /(chrome)[ \/]([\w.]+)/.exec(e) || /(iemobile)[\/]([\w.]+)/.exec(e) || /(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(e) || /(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(e) || /(webkit)[ \/]([\w.]+)/.exec(e) || /(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e) || /(msie) ([\w.]+)/.exec(e) || e.indexOf("trident") >= 0 && /(rv)(?::| )([\w.]+)/.exec(e) || e.indexOf("compatible") < 0 && /(firefox)[ \/]([\w.]+)/.exec(e) || [], n = /(ipad)/.exec(e) || /(ipod)/.exec(e) || /(windows phone)/.exec(e) || /(iphone)/.exec(e) || /(kindle)/.exec(e) || /(android)/.exec(e) || /(windows)/.exec(e) || /(mac)/.exec(e) || /(linux)/.exec(e) || /(cros)/.exec(e) || [], r = {
217
+ browser: t[5] || t[3] || t[1] || "",
218
+ version: t[2] || t[4] || "0",
219
+ majorVersion: t[4] || t[2] || "0",
220
+ platform: n[0] || ""
221
+ }, i = {};
222
+ if (r.browser) {
223
+ i[r.browser] = !0;
224
+ let e = r.majorVersion.split(".");
225
+ i.version = {
226
+ major: parseInt(r.majorVersion, 10),
227
+ string: r.version
228
+ }, e.length > 1 && (i.version.minor = parseInt(e[1], 10)), e.length > 2 && (i.version.build = parseInt(e[2], 10));
229
+ }
230
+ if (r.platform && (i[r.platform] = !0), (i.chrome || i.opr || i.safari) && (i.webkit = !0), i.rv || i.iemobile) {
231
+ i.rv && delete i.rv;
232
+ let e = "msie";
233
+ r.browser = e, i[e] = !0;
234
+ }
235
+ if (i.edge) {
236
+ delete i.edge;
237
+ let e = "msedge";
238
+ r.browser = e, i[e] = !0;
239
+ }
240
+ if (i.opr) {
241
+ let e = "opera";
242
+ r.browser = e, i[e] = !0;
243
+ }
244
+ if (i.safari && i.android) {
245
+ let e = "android";
246
+ r.browser = e, i[e] = !0;
247
+ }
248
+ i.name = r.browser, i.platform = r.platform;
249
+ for (let e in D) D.hasOwnProperty(e) && delete D[e];
250
+ Object.assign(D, i);
251
+ }
252
+ O();
253
+ //#endregion
254
+ //#region node_modules/flv.js/src/utils/exception.js
255
+ var k = class {
256
+ constructor(e) {
257
+ this._message = e;
258
+ }
259
+ get name() {
260
+ return "RuntimeException";
261
+ }
262
+ get message() {
263
+ return this._message;
264
+ }
265
+ toString() {
266
+ return this.name + ": " + this.message;
267
+ }
268
+ }, A = class extends k {
269
+ constructor(e) {
270
+ super(e);
271
+ }
272
+ get name() {
273
+ return "NotImplementedException";
274
+ }
275
+ }, j = {
276
+ kIdle: 0,
277
+ kConnecting: 1,
278
+ kBuffering: 2,
279
+ kError: 3,
280
+ kComplete: 4
281
+ }, M = {
282
+ OK: "OK",
283
+ EXCEPTION: "Exception",
284
+ HTTP_STATUS_CODE_INVALID: "HttpStatusCodeInvalid",
285
+ CONNECTING_TIMEOUT: "ConnectingTimeout",
286
+ EARLY_EOF: "EarlyEof",
287
+ UNRECOVERABLE_EARLY_EOF: "UnrecoverableEarlyEof"
288
+ }, N = class {
289
+ constructor(e) {
290
+ this._type = e || "undefined", this._status = j.kIdle, this._needStash = !1, this._onContentLengthKnown = null, this._onURLRedirect = null, this._onDataArrival = null, this._onError = null, this._onComplete = null;
291
+ }
292
+ destroy() {
293
+ this._status = j.kIdle, this._onContentLengthKnown = null, this._onURLRedirect = null, this._onDataArrival = null, this._onError = null, this._onComplete = null;
294
+ }
295
+ isWorking() {
296
+ return this._status === j.kConnecting || this._status === j.kBuffering;
297
+ }
298
+ get type() {
299
+ return this._type;
300
+ }
301
+ get status() {
302
+ return this._status;
303
+ }
304
+ get needStashBuffer() {
305
+ return this._needStash;
306
+ }
307
+ get onContentLengthKnown() {
308
+ return this._onContentLengthKnown;
309
+ }
310
+ set onContentLengthKnown(e) {
311
+ this._onContentLengthKnown = e;
312
+ }
313
+ get onURLRedirect() {
314
+ return this._onURLRedirect;
315
+ }
316
+ set onURLRedirect(e) {
317
+ this._onURLRedirect = e;
318
+ }
319
+ get onDataArrival() {
320
+ return this._onDataArrival;
321
+ }
322
+ set onDataArrival(e) {
323
+ this._onDataArrival = e;
324
+ }
325
+ get onError() {
326
+ return this._onError;
327
+ }
328
+ set onError(e) {
329
+ this._onError = e;
330
+ }
331
+ get onComplete() {
332
+ return this._onComplete;
333
+ }
334
+ set onComplete(e) {
335
+ this._onComplete = e;
336
+ }
337
+ open(e, t) {
338
+ throw new A("Unimplemented abstract function!");
339
+ }
340
+ abort() {
341
+ throw new A("Unimplemented abstract function!");
342
+ }
343
+ }, P = class extends N {
344
+ static isSupported() {
345
+ try {
346
+ let e = D.msedge && D.version.minor >= 15048, t = D.msedge ? e : !0;
347
+ return self.fetch && self.ReadableStream && t;
348
+ } catch {
349
+ return !1;
350
+ }
351
+ }
352
+ constructor(e, t) {
353
+ super("fetch-stream-loader"), this.TAG = "FetchStreamLoader", this._seekHandler = e, this._config = t, this._needStash = !0, this._requestAbort = !1, this._contentLength = null, this._receivedLength = 0;
354
+ }
355
+ destroy() {
356
+ this.isWorking() && this.abort(), super.destroy();
357
+ }
358
+ open(e, t) {
359
+ this._dataSource = e, this._range = t;
360
+ let n = e.url;
361
+ this._config.reuseRedirectedURL && e.redirectedURL != null && (n = e.redirectedURL);
362
+ let r = this._seekHandler.getConfig(n, t), i = new self.Headers();
363
+ if (typeof r.headers == "object") {
364
+ let e = r.headers;
365
+ for (let t in e) e.hasOwnProperty(t) && i.append(t, e[t]);
366
+ }
367
+ let a = {
368
+ method: "GET",
369
+ headers: i,
370
+ mode: "cors",
371
+ cache: "default",
372
+ referrerPolicy: "no-referrer-when-downgrade"
373
+ };
374
+ if (typeof this._config.headers == "object") for (let e in this._config.headers) i.append(e, this._config.headers[e]);
375
+ e.cors === !1 && (a.mode = "same-origin"), e.withCredentials && (a.credentials = "include"), e.referrerPolicy && (a.referrerPolicy = e.referrerPolicy), self.AbortController && (this._abortController = new self.AbortController(), a.signal = this._abortController.signal), this._status = j.kConnecting, self.fetch(r.url, a).then((e) => {
376
+ if (this._requestAbort) {
377
+ this._status = j.kIdle, e.body.cancel();
378
+ return;
379
+ }
380
+ if (e.ok && e.status >= 200 && e.status <= 299) {
381
+ if (e.url !== r.url && this._onURLRedirect) {
382
+ let t = this._seekHandler.removeURLParameters(e.url);
383
+ this._onURLRedirect(t);
384
+ }
385
+ let t = e.headers.get("Content-Length");
386
+ return t != null && (this._contentLength = parseInt(t), this._contentLength !== 0 && this._onContentLengthKnown && this._onContentLengthKnown(this._contentLength)), this._pump.call(this, e.body.getReader());
387
+ } else if (this._status = j.kError, this._onError) this._onError(M.HTTP_STATUS_CODE_INVALID, {
388
+ code: e.status,
389
+ msg: e.statusText
390
+ });
391
+ else throw new k("FetchStreamLoader: Http code invalid, " + e.status + " " + e.statusText);
392
+ }).catch((e) => {
393
+ if (!(this._abortController && this._abortController.signal.aborted)) if (this._status = j.kError, this._onError) this._onError(M.EXCEPTION, {
394
+ code: -1,
395
+ msg: e.message
396
+ });
397
+ else throw e;
398
+ });
399
+ }
400
+ abort() {
401
+ if (this._requestAbort = !0, (this._status !== j.kBuffering || !D.chrome) && this._abortController) try {
402
+ this._abortController.abort();
403
+ } catch {}
404
+ }
405
+ _pump(e) {
406
+ return e.read().then((t) => {
407
+ if (t.done) if (this._contentLength !== null && this._receivedLength < this._contentLength) {
408
+ this._status = j.kError;
409
+ let e = M.EARLY_EOF, t = {
410
+ code: -1,
411
+ msg: "Fetch stream meet Early-EOF"
412
+ };
413
+ if (this._onError) this._onError(e, t);
414
+ else throw new k(t.msg);
415
+ } else this._status = j.kComplete, this._onComplete && this._onComplete(this._range.from, this._range.from + this._receivedLength - 1);
416
+ else {
417
+ if (this._abortController && this._abortController.signal.aborted) {
418
+ this._status = j.kComplete;
419
+ return;
420
+ } else if (this._requestAbort === !0) return this._status = j.kComplete, e.cancel();
421
+ this._status = j.kBuffering;
422
+ let n = t.value.buffer, r = this._range.from + this._receivedLength;
423
+ this._receivedLength += n.byteLength, this._onDataArrival && this._onDataArrival(n, r, this._receivedLength), this._pump(e);
424
+ }
425
+ }).catch((e) => {
426
+ if (this._abortController && this._abortController.signal.aborted) {
427
+ this._status = j.kComplete;
428
+ return;
429
+ }
430
+ if (e.code === 11 && D.msedge) return;
431
+ this._status = j.kError;
432
+ let t = 0, n = null;
433
+ if ((e.code === 19 || e.message === "network error") && (this._contentLength === null || this._contentLength !== null && this._receivedLength < this._contentLength) ? (t = M.EARLY_EOF, n = {
434
+ code: e.code,
435
+ msg: "Fetch stream meet Early-EOF"
436
+ }) : (t = M.EXCEPTION, n = {
437
+ code: e.code,
438
+ msg: e.message
439
+ }), this._onError) this._onError(t, n);
440
+ else throw new k(n.msg);
441
+ });
442
+ }
443
+ }, F = /* @__PURE__ */ e(a()), de = { class: "HdCameraList" }, fe = { class: "HdCameraList-header" }, pe = { class: "HdCameraList-headerContent" }, me = { class: "HdCameraList-title" }, he = { class: "HdCameraList-markerCheck" }, ge = { class: "HdCameraList-toolbar" }, I = { class: "HdCameraList-search" }, L = { class: "HdCameraList-count" }, _e = { class: "HdCameraList-body" }, ve = ["onClick"], ye = { class: "HdCameraList-thumb" }, be = ["src"], xe = {
444
+ key: 1,
445
+ class: "HdCameraList-thumbPlaceholder"
446
+ }, Se = { class: "HdCameraList-info" }, Ce = ["title"], we = {
447
+ key: 0,
448
+ class: "HdCameraList-meta"
449
+ }, Te = {
450
+ key: 0,
451
+ class: "HdCameraList-empty"
452
+ }, Ee = { class: "HdCameraList-player" }, De = { class: "HdCameraList-playerHead" }, Oe = { class: "HdCameraList-playerHeadTitle" }, ke = { class: "HdCameraList-playerBody" }, Ae = {
453
+ key: 0,
454
+ class: "HdCameraList-videoState HdCameraList-videoState--loading"
455
+ }, je = {
456
+ key: 1,
457
+ class: "HdCameraList-videoState HdCameraList-videoState--error"
458
+ }, R = /* @__PURE__ */ n(/* @__PURE__ */ m({
459
+ __name: "HdCameraList",
460
+ props: {
461
+ serviceTypeID: { default: "" },
462
+ baseHttp: { default: "" },
463
+ appKey: { default: "" },
464
+ appSalt: { default: "" },
465
+ httpUrl: { default: "" },
466
+ ids: { default: () => ({}) },
467
+ title: { default: "" },
468
+ list: { default: () => [] },
469
+ cameraApiUrl: { default: "" },
470
+ cameraCodeField: { default: "monitoring_id" },
471
+ streamProxyPrefix: { default: "/proxyApi-camera" },
472
+ streamProxyTarget: { default: "http://58.59.29.51:11014" },
473
+ streamProxyEnabled: {
474
+ type: Boolean,
475
+ default: !0
476
+ },
477
+ playType: { default: "海洋" }
478
+ },
479
+ emits: [
480
+ "close",
481
+ "play",
482
+ "addMarker",
483
+ "clearMarker"
484
+ ],
485
+ setup(e, { emit: t }) {
486
+ let n = h()?.appContext.config.globalProperties.$bus, a = e, m = t;
487
+ b([]);
488
+ let T = b({
489
+ title: "",
490
+ list: []
491
+ }), E = b("all"), D = b(""), O = b(""), k = b(!1), A = b(null), j = b(""), M = b(!1), N = b(""), R = b(null), z = b(null), B = b(null), V = b(!1), Me = c(() => a.title || T.value.title || "实景监控"), H = c(() => a.list.length ? a.list : T.value.list), Ne = c(() => {
492
+ let e = /* @__PURE__ */ new Map();
493
+ return e.set("all", "全部"), H.value.forEach((t) => {
494
+ t.location && !e.has(t.location) && e.set(t.location, t.location);
495
+ }), Array.from(e.entries()).map(([e, t]) => ({
496
+ value: e,
497
+ label: t
498
+ }));
499
+ }), U = c(() => {
500
+ let e = H.value;
501
+ E.value !== "all" && (e = e.filter((e) => e.location === E.value));
502
+ let t = O.value.trim().toLowerCase();
503
+ return t && (e = e.filter((e) => e.name.toLowerCase().includes(t))), e;
504
+ }), W = () => {
505
+ O.value = D.value;
506
+ }, Pe = (e) => /^https?:\/\//i.test(e), Fe = (e) => {
507
+ if (!e) return "";
508
+ if (Pe(e)) return e;
509
+ let t = a.baseHttp || "";
510
+ return `${t}${t && !t.endsWith("/") && !e.startsWith("/") ? "/" : ""}${e}`;
511
+ }, Ie = () => {
512
+ if (z.value) {
513
+ try {
514
+ z.value.pause(), z.value.unload(), z.value.detachMediaElement(), z.value.destroy();
515
+ } catch (e) {
516
+ console.warn("HdCameraList 销毁 flv 播放器失败", e);
517
+ }
518
+ z.value = null;
519
+ }
520
+ }, Le = () => {
521
+ if (B.value) {
522
+ try {
523
+ B.value.destroy();
524
+ } catch (e) {
525
+ console.warn("HdCameraList 销毁 hls 播放器失败", e);
526
+ }
527
+ B.value = null;
528
+ }
529
+ }, G = () => {
530
+ Ie(), Le(), R.value && (R.value.pause(), R.value.removeAttribute("src"), R.value.load());
531
+ }, K = (e) => {
532
+ if (!a.streamProxyEnabled || !e || !a.streamProxyPrefix || !a.streamProxyTarget) return console.log("[HdCameraList] proxyStreamUrl skip", {
533
+ enabled: a.streamProxyEnabled,
534
+ url: e,
535
+ prefix: a.streamProxyPrefix,
536
+ target: a.streamProxyTarget
537
+ }), e;
538
+ try {
539
+ let t = new URL(a.streamProxyTarget), n = new URL(e);
540
+ if (n.host === t.host) {
541
+ let t = `${a.streamProxyPrefix}${n.pathname}${n.search}`;
542
+ return console.log("[HdCameraList] proxyStreamUrl rewrite", e, "->", t), t;
543
+ }
544
+ } catch {
545
+ if (e.startsWith(a.streamProxyTarget)) {
546
+ let t = e.replace(a.streamProxyTarget, a.streamProxyPrefix);
547
+ return console.log("[HdCameraList] proxyStreamUrl rewrite fallback", e, "->", t), t;
548
+ }
549
+ }
550
+ return console.log("[HdCameraList] proxyStreamUrl no match", e, a.streamProxyTarget), e;
551
+ }, Re = (e) => {
552
+ let t = e.toLowerCase();
553
+ return t.includes(".m3u8") || t.includes("/hls/") || t.includes("application/x-mpegurl");
554
+ }, ze = (e) => {
555
+ if (R.value) {
556
+ G();
557
+ try {
558
+ let t = K(e);
559
+ i.isSupported() ? (B.value = new i({ liveDurationInfinity: !0 }), B.value.loadSource(t), B.value.attachMedia(R.value), B.value.on(i.Events.MANIFEST_PARSED, () => {
560
+ R.value?.play().catch(() => {});
561
+ }), B.value.on(i.Events.ERROR, (e, t) => {
562
+ console.error("[HdCameraList] hls error", t), t.fatal && (N.value = "HLS 视频流播放失败");
563
+ })) : R.value.canPlayType("application/vnd.apple.mpegurl") ? (R.value.src = t, R.value.play().catch(() => {})) : N.value = "当前浏览器不支持 HLS 视频播放";
564
+ } catch (e) {
565
+ N.value = "HLS 播放器初始化失败", console.error("HdCameraList hls 播放器初始化失败", e);
566
+ }
567
+ }
568
+ }, Be = (e) => {
569
+ if (R.value) {
570
+ if (!F.default.isSupported()) {
571
+ N.value = "当前浏览器不支持 FLV 视频播放";
572
+ return;
573
+ }
574
+ G();
575
+ try {
576
+ let t = K(e);
577
+ console.log("[HdCameraList] try http flv", t), z.value = F.default.createPlayer({
578
+ type: "flv",
579
+ url: t,
580
+ isLive: !0,
581
+ hasVideo: !0,
582
+ hasAudio: !1
583
+ }, {
584
+ enableWorker: !1,
585
+ reuseRedirectedURL: !0,
586
+ enableStashBuffer: !1,
587
+ stashInitialSize: 1280,
588
+ autoCleanupSourceBuffer: !0,
589
+ customLoader: P
590
+ }), z.value.attachMediaElement(R.value), z.value.load(), z.value.play().catch(() => {}), z.value.on(F.default.Events.ERROR, (e, t, n) => {
591
+ console.error("[HdCameraList] http flv error", e, t, n), N.value = "FLV 视频流播放失败";
592
+ });
593
+ } catch (e) {
594
+ N.value = "视频播放器初始化失败", console.error("HdCameraList flv 播放器初始化失败", e);
595
+ }
596
+ }
597
+ }, Ve = (e) => {
598
+ Re(e) ? ze(e) : Be(e);
599
+ }, He = (e) => {
600
+ let t = Z(e), n = t?.data ?? t;
601
+ if (!n || typeof n != "object") return "";
602
+ let r = n.flv || n.flvUrl || n.flv_url || "";
603
+ return r ? String(r) : Object.values(n).find((e) => typeof e == "string" && /^rtmp:/i.test(e)) || "";
604
+ }, Ue = async (e) => {
605
+ let t = a.ids?.camera;
606
+ if (!t?.id) throw Error("缺少摄像头流工作流配置");
607
+ let n = e[a.cameraCodeField] ?? e.monitoring_id, i = {
608
+ reqParams: String(n),
609
+ url: a.httpUrl || "https://xha.qdlimap.com:3030/xhayg/rest/videos/getVedioUrl",
610
+ serviceTypeID: a.serviceTypeID
611
+ };
612
+ a.cameraApiUrl && (i.url = a.cameraApiUrl);
613
+ let o = He(await r({
614
+ id: t.id,
615
+ baseHttp: a.baseHttp,
616
+ reqType: t.reqType,
617
+ variables: i,
618
+ isFormData: t.isFormData,
619
+ appKey: a.appKey,
620
+ appSalt: a.appSalt
621
+ }));
622
+ if (!o) throw Error("未获取到视频流地址");
623
+ return o;
624
+ }, q = async (e) => {
625
+ A.value = e, j.value = "", N.value = "", M.value = !0, k.value = !0, m("play", e);
626
+ try {
627
+ let t = "";
628
+ if (a.playType === "农业" && e.videoUrl) t = e.videoUrl;
629
+ else if (e.streamUrl) t = Fe(e.streamUrl);
630
+ else if (a.playType === "农业" && e.previewpic) {
631
+ let { videoUrl: n } = Q(e.previewpic);
632
+ t = n;
633
+ } else t = await Ue(e);
634
+ if (!t) throw Error("未获取到视频流地址");
635
+ j.value = t, await g(), Ve(t);
636
+ } catch (e) {
637
+ N.value = e?.message || "视频流加载失败", console.error("HdCameraList 加载视频流失败", e);
638
+ } finally {
639
+ M.value = !1;
640
+ }
641
+ }, J = () => {
642
+ G(), k.value = !1, A.value = null, j.value = "", N.value = "";
643
+ }, We = () => {
644
+ m("close", "HdCameraList", Y());
645
+ }, Ge = (e) => {
646
+ console.log(e, "row"), q(e);
647
+ }, Y = () => {
648
+ m("clearMarker", "hdCamera");
649
+ }, X = () => {
650
+ let e = H.value.filter((e) => e.lat && e.lon);
651
+ if (!e.length) {
652
+ console.warn("HdCameraList 没有有效经纬度数据,跳过绘制");
653
+ return;
654
+ }
655
+ let t = e.map((e) => {
656
+ let t = ["宝山农高蓝莓产业园摄像头", "大村农高蓝莓产业园摄像头"].includes(e.name);
657
+ return {
658
+ ...e,
659
+ name: e.name.replace("摄像头", ""),
660
+ cameraImage: t ? ue : le
661
+ };
662
+ }), n = {
663
+ clickOpen: !0,
664
+ spotObject: [{
665
+ offsetX: -12,
666
+ offsetY: -12,
667
+ spotArrone: [],
668
+ minZoom: 6
669
+ }],
670
+ drawArrObj: [],
671
+ onlyLayerID: "hdCamera"
672
+ };
673
+ t.forEach((e) => {
674
+ let t = `
675
+ <div data-markerId="camera-${e.id}" class="hd-camera-marker" style="position:relative;display:inline-block;width:24px;height:24px;">
676
+ <img src="${e.cameraImage}" alt="摄像头" style="width:24px;height:24px;display:block;cursor:pointer;" title="${e.name}" />
677
+ <!--
678
+ <div class="hd-camera-marker-content" style="position:absolute;top:0;left:100%;margin-left:4px;white-space:nowrap;">
679
+ <div class="hd-camera-marker-title" style="color:black;font-weight:bold;font-size:12px;line-height:1.4;text-shadow:0 1px white, 1px 0 white, -1px 0 white, 0 -1px white;">${e.name}</div>
680
+ </div>
681
+ -->
682
+ </div>
683
+ `;
684
+ n.spotObject[0].spotArrone.push({
685
+ lng: Number(e.lon),
686
+ lat: Number(e.lat),
687
+ htmlString: t,
688
+ data: e,
689
+ otherData: { markId: "hdCamera" }
690
+ });
691
+ }), m("addMarker", {
692
+ mapMarker: n,
693
+ removeMarker: "hdCamera"
694
+ });
695
+ }, Z = (e) => {
696
+ if (!e) return null;
697
+ let t = null;
698
+ if (t = e.data === void 0 ? e.result === void 0 ? e : e.result : e.data?.result?.output === void 0 ? e.data?.result === void 0 ? e.data : e.data.result : e.data.result.output, typeof t == "string") try {
699
+ t = JSON.parse(t);
700
+ } catch (e) {
701
+ console.warn("HdCameraList 接口返回非 JSON 字符串", e);
702
+ }
703
+ return t;
704
+ }, Ke = async () => {
705
+ let e = a.ids.data;
706
+ if (!e?.id) {
707
+ console.warn("HdCameraList 缺少数据工作流配置");
708
+ return;
709
+ }
710
+ try {
711
+ let t = Z(await r({
712
+ id: e.id,
713
+ baseHttp: a.baseHttp,
714
+ reqType: e.reqType,
715
+ variables: { serviceTypeID: a.serviceTypeID },
716
+ isFormData: e.isFormData,
717
+ appKey: a.appKey,
718
+ appSalt: a.appSalt
719
+ }));
720
+ console.log(t, "output");
721
+ let n = qe(t);
722
+ T.value = {
723
+ title: t?.title || "",
724
+ list: n.map((e) => Je(e))
725
+ };
726
+ } catch (e) {
727
+ console.error("HdCameraList 加载失败", e);
728
+ }
729
+ }, qe = (e) => e ? Array.isArray(e) ? e : Array.isArray(e.list) ? e.list : Array.isArray(e.ds) ? e.ds : Array.isArray(e.data) ? e.data : [] : [], Q = (e) => {
730
+ if (!e) return {
731
+ picUrl: "",
732
+ videoUrl: ""
733
+ };
734
+ let t = e.split(",").map((e) => e.trim()).filter(Boolean), n = "", r = "";
735
+ return t.forEach((e) => {
736
+ let t = e.toLowerCase();
737
+ t.includes(".m3u8") || t.includes("/hls/") ? r ||= e : n ||= e;
738
+ }), {
739
+ picUrl: n,
740
+ videoUrl: r
741
+ };
742
+ }, Je = (e) => {
743
+ let t = e.id ?? e.monitoring_id ?? Math.random().toString(36).slice(2), n = e.monitoring_id ?? e.id ?? "", r = e.cameranum ?? e.name ?? e.cameraName ?? e.camera_name ?? e.title ?? `摄像头${t}`, i = e.jobSiteName ?? e.location ?? e.areaName ?? e.area_name ?? e.region ?? e.address ?? "", { picUrl: a, videoUrl: o } = Q(e.previewpic ?? e.thumbnail ?? e.pic ?? e.image ?? "");
744
+ return {
745
+ id: t,
746
+ monitoring_id: n,
747
+ name: r,
748
+ location: i,
749
+ previewpic: a,
750
+ videoUrl: o,
751
+ streamUrl: e.streamUrl ?? e.url ?? e.stream_url ?? e.videoUrl ?? e.video_url ?? e.rtmp ?? "",
752
+ lat: e.lat === void 0 ? void 0 : Number(e.lat),
753
+ lon: e.lon === void 0 ? void 0 : Number(e.lon)
754
+ };
755
+ }, $ = async () => {
756
+ await Ke(), V.value && X();
757
+ };
758
+ re(V, (e) => {
759
+ e ? X() : Y();
760
+ });
761
+ let Ye = !1, Xe = () => {
762
+ Ye ||= (document.addEventListener("click", (e) => {
763
+ let t = e.target.closest(".hd-camera-marker");
764
+ if (!t) return;
765
+ e.stopPropagation();
766
+ let n = t.getAttribute("data-markerId")?.replace("camera-", "") || "", r = T.value.list.find((e) => e.id == n);
767
+ r && Ge(r);
768
+ }), !0);
769
+ };
770
+ return _(() => {
771
+ Xe(), n?.on("toComponent", (e) => {
772
+ e.componentName === "HdCameraList" && ($(), X());
773
+ }), $();
774
+ }), v(() => {
775
+ Y();
776
+ }), (e, t) => (y(), d("div", de, [
777
+ f("button", {
778
+ class: "HdCameraList-close",
779
+ onClick: We
780
+ }, [...t[3] ||= [f("span", null, "✕", -1)]]),
781
+ f("div", fe, [f("div", pe, [f("h3", me, S(Me.value), 1), f("label", he, [w(f("input", {
782
+ "onUpdate:modelValue": t[0] ||= (e) => V.value = e,
783
+ type: "checkbox"
784
+ }, null, 512), [[ee, V.value]]), t[4] ||= f("span", null, "地图标记", -1)])]), t[5] ||= f("img", {
785
+ class: "HdCameraList-headerLine",
786
+ src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbsAAAASBAMAAAAwI22/AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAwUExURQAAAAem/wem/wem/wem/wem/wem/wem/wem/wem/wem/wem/wem/wem/wem/wem/5bu5GYAAAAPdFJOUwAFwAwc2M8ULQYDn/hGXGnV2UoAAAGZSURBVEjH7ZM/S8NAGId/JYGmmeLspptThurk0CHWRXGo0Nk/S50y6CYSHMRF7Efo4uQXEIpbwUnM6OhnEIeChXjv5ZLLXdLtLCX68vDCe0eGJ7/3AJN1VcL+UImB/SruVJwYTqSAW5V3LLyaPR1c+IIdH12OPZiLcyTAjccZEdccZ0Nn4bXpC3KpCuFu5tkdziX3FJxBSBZZdFk9HempCduMk4xSitJTpOgJSSIPrx10YAUB0tYOwrQ1g12k7ZyODIYXZmQpppLV26rtbDFOXVhua2Fn7WTWwUEyAe5Zc2hiLWTTC3jjk8Hw+jrSM9/Z8raKOAtZVmyr9jbpee4lU9hvSUStw6YvOpqwiXlK9d8IL0Oq5tuqvc3KLMs7q9uyCC0y22aKvDVp4u2SjnJ1c+Wecg7h9gV4CFV8NHpEaw7yF2wVGcIa6OBx/Ax3PI6pRWx6Am98alBbpSODNVTxgAbQUpF3KeVv0s80xMUow8N//YVaqWEV9BJDdby2PBUZ1/te0uU0YzeLa623jjrrvaLOep/+str9ACyAtv25BhHcAAAAAElFTkSuQmCC",
787
+ alt: ""
788
+ }, null, -1)]),
789
+ f("div", ge, [
790
+ p(C(ce), {
791
+ modelValue: E.value,
792
+ "onUpdate:modelValue": t[1] ||= (e) => E.value = e,
793
+ class: "HdCameraList-select",
794
+ size: "small",
795
+ "popper-class": "HdCameraList-selectPopper",
796
+ placeholder: "全部",
797
+ onChange: W
798
+ }, {
799
+ default: ie(() => [(y(!0), d(o, null, x(Ne.value, (e) => (y(), l(C(se), {
800
+ key: e.value,
801
+ label: e.label,
802
+ value: e.value
803
+ }, null, 8, ["label", "value"]))), 128))]),
804
+ _: 1
805
+ }, 8, ["modelValue"]),
806
+ f("div", I, [w(f("input", {
807
+ "onUpdate:modelValue": t[2] ||= (e) => D.value = e,
808
+ type: "text",
809
+ class: "HdCameraList-searchInput",
810
+ placeholder: "搜索摄像头",
811
+ onKeyup: ae(W, ["enter"])
812
+ }, null, 544), [[te, D.value]]), (y(), d("svg", {
813
+ class: "HdCameraList-searchIcon",
814
+ viewBox: "0 0 24 24",
815
+ width: "14",
816
+ height: "14",
817
+ onClick: W
818
+ }, [...t[6] ||= [f("circle", {
819
+ cx: "11",
820
+ cy: "11",
821
+ r: "7",
822
+ fill: "none",
823
+ stroke: "currentColor",
824
+ "stroke-width": "1.5"
825
+ }, null, -1), f("path", {
826
+ d: "M16 16 L20 20",
827
+ fill: "none",
828
+ stroke: "currentColor",
829
+ "stroke-width": "1.5",
830
+ "stroke-linecap": "round"
831
+ }, null, -1)]]))]),
832
+ f("span", L, "共 " + S(U.value.length) + " 路", 1)
833
+ ]),
834
+ f("div", _e, [(y(!0), d(o, null, x(U.value, (e) => (y(), d("div", {
835
+ key: e.id,
836
+ class: "HdCameraList-item",
837
+ onClick: (t) => q(e)
838
+ }, [
839
+ f("div", ye, [e.previewpic ? (y(), d("img", {
840
+ key: 0,
841
+ src: e.previewpic,
842
+ alt: ""
843
+ }, null, 8, be)) : (y(), d("div", xe, [...t[7] ||= [f("svg", {
844
+ viewBox: "0 0 24 24",
845
+ width: "20",
846
+ height: "20"
847
+ }, [
848
+ f("rect", {
849
+ x: "2",
850
+ y: "6",
851
+ width: "20",
852
+ height: "12",
853
+ rx: "2",
854
+ fill: "none",
855
+ stroke: "currentColor",
856
+ "stroke-width": "1.5"
857
+ }),
858
+ f("circle", {
859
+ cx: "12",
860
+ cy: "12",
861
+ r: "3",
862
+ fill: "none",
863
+ stroke: "currentColor",
864
+ "stroke-width": "1.5"
865
+ }),
866
+ f("circle", {
867
+ cx: "12",
868
+ cy: "12",
869
+ r: "1",
870
+ fill: "currentColor"
871
+ })
872
+ ], -1)]]))]),
873
+ f("div", Se, [f("div", {
874
+ class: "HdCameraList-name",
875
+ title: e.name
876
+ }, S(e.name), 9, Ce), e.location ? (y(), d("div", we, S(e.location), 1)) : u("", !0)]),
877
+ t[8] ||= f("div", { class: "HdCameraList-play" }, [f("svg", {
878
+ viewBox: "0 0 24 24",
879
+ width: "18",
880
+ height: "18"
881
+ }, [f("circle", {
882
+ cx: "12",
883
+ cy: "12",
884
+ r: "10",
885
+ fill: "none",
886
+ stroke: "currentColor",
887
+ "stroke-width": "1.5"
888
+ }), f("polygon", {
889
+ points: "10 8 16 12 10 16",
890
+ fill: "currentColor"
891
+ })])], -1)
892
+ ], 8, ve))), 128)), U.value.length ? u("", !0) : (y(), d("div", Te, "暂无摄像头"))]),
893
+ (y(), l(s, { to: "body" }, [k.value ? (y(), d("div", {
894
+ key: 0,
895
+ class: "HdCameraList-mask",
896
+ onClick: oe(J, ["self"])
897
+ }, [f("div", Ee, [f("div", De, [
898
+ t[10] ||= f("i", { class: "HdCameraList-playerHeadBar" }, null, -1),
899
+ f("span", Oe, S(A.value?.name), 1),
900
+ f("button", {
901
+ class: "HdCameraList-playerClose",
902
+ onClick: J
903
+ }, [...t[9] ||= [f("span", null, "✕", -1)]])
904
+ ]), f("div", ke, [w(f("video", {
905
+ ref_key: "videoRef",
906
+ ref: R,
907
+ class: "HdCameraList-video",
908
+ controls: "",
909
+ autoplay: "",
910
+ playsinline: ""
911
+ }, null, 512), [[ne, !M.value && !N.value]]), M.value ? (y(), d("div", Ae, [...t[11] ||= [f("span", null, "视频加载中...", -1)]])) : N.value ? (y(), d("div", je, [f("span", null, S(N.value), 1)])) : u("", !0)])])])) : u("", !0)]))
912
+ ]));
913
+ }
914
+ }), [["__scopeId", "data-v-002d015d"]]);
915
+ //#endregion
916
+ export { R as t };