@ezuikit/player-theme 3.1.2-beta.4 → 3.1.3-beta.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.
package/dist/index.esm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*
2
- * @ezuikit/player-theme v3.1.2-beta.4
3
- * Copyright (c) 2026-08-16 15:20:04 Ezviz-OpenBiz
2
+ * @ezuikit/player-theme v3.1.3-beta.1
3
+ * Copyright (c) 2026-08-19 16:47:24 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import EventEmitter from 'eventemitter3';
@@ -16,6 +16,7 @@ import { Ptz as Ptz$1, MobilePtz } from '@ezuikit/control-ptz';
16
16
  import RecListModal from '@ezuikit/control-rec-list-modal';
17
17
  import { DatePicker, TimePicker } from '@ezuikit/control-date-picker';
18
18
  import { MobileTimeLine, TimeLine } from '@ezuikit/control-time-line';
19
+ import SegmentProgress from '@ezuikit/control-segment-progress';
19
20
 
20
21
  /**
21
22
  * 播放器的类名前缀
@@ -46,7 +47,9 @@ var THEME_PROPS = [
46
47
  'videoLevelList',
47
48
  'videoLevel',
48
49
  'recMonth',
49
- 'url'
50
+ 'url',
51
+ // 播放区间(片段分享)。通过 props 下发而不是靠事件,避免主题异步渲染时错过初始化事件
52
+ 'playbackRange'
50
53
  ];
51
54
  /**
52
55
  * 当移动端 picker 控件打开时需要关闭动画(定时器)
@@ -91,7 +94,8 @@ var THEME_PROPS = [
91
94
  'ptz',
92
95
  'timeLine',
93
96
  'rec',
94
- 'date'
97
+ 'date',
98
+ 'segmentProgress'
95
99
  ];
96
100
  /**
97
101
  *
@@ -156,6 +160,7 @@ var EVENTS = {
156
160
  currentVideoLevelAuto: 'currentVideoLevelAuto',
157
161
  setAllDayRecTimes: 'setAllDayRecTimes',
158
162
  getOSDTime: 'getOSDTime',
163
+ /** 播放区间播放结束(SDK 层 playbackRange 特性) */ playbackEnd: 'playbackEnd',
159
164
  /**
160
165
  * 控件相关
161
166
  */ control: {
@@ -257,7 +262,7 @@ function _create_class$9(Constructor, protoProps, staticProps) {
257
262
  if (protoProps) _defineProperties$9(Constructor.prototype, protoProps);
258
263
  return Constructor;
259
264
  }
260
- function _inherits$y(subClass, superClass) {
265
+ function _inherits$z(subClass, superClass) {
261
266
  if (typeof superClass !== "function" && superClass !== null) {
262
267
  throw new TypeError("Super expression must either be null or a function");
263
268
  }
@@ -268,14 +273,14 @@ function _inherits$y(subClass, superClass) {
268
273
  configurable: true
269
274
  }
270
275
  });
271
- if (superClass) _set_prototype_of$y(subClass, superClass);
276
+ if (superClass) _set_prototype_of$z(subClass, superClass);
272
277
  }
273
- function _set_prototype_of$y(o, p) {
274
- _set_prototype_of$y = Object.setPrototypeOf || function setPrototypeOf(o, p) {
278
+ function _set_prototype_of$z(o, p) {
279
+ _set_prototype_of$z = Object.setPrototypeOf || function setPrototypeOf(o, p) {
275
280
  o.__proto__ = p;
276
281
  return o;
277
282
  };
278
- return _set_prototype_of$y(o, p);
283
+ return _set_prototype_of$z(o, p);
279
284
  }
280
285
  /**
281
286
  * 控件基类
@@ -289,7 +294,7 @@ function _set_prototype_of$y(o, p) {
289
294
  * const myControl = new MyControl({})
290
295
  * ```
291
296
  */ var Control = /*#__PURE__*/ function(EventEmitter) {
292
- _inherits$y(Control, EventEmitter);
297
+ _inherits$z(Control, EventEmitter);
293
298
  function Control(options) {
294
299
  var _this;
295
300
  var _this___options;
@@ -472,21 +477,17 @@ function _set_prototype_of$y(o, p) {
472
477
  return Control;
473
478
  }(EventEmitter);
474
479
 
475
- function _extends$x() {
476
- _extends$x = Object.assign || function(target) {
480
+ function _extends$y() {
481
+ _extends$y = Object.assign || function assign(target) {
477
482
  for(var i = 1; i < arguments.length; i++){
478
483
  var source = arguments[i];
479
- for(var key in source){
480
- if (Object.prototype.hasOwnProperty.call(source, key)) {
481
- target[key] = source[key];
482
- }
483
- }
484
+ for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
484
485
  }
485
486
  return target;
486
487
  };
487
- return _extends$x.apply(this, arguments);
488
+ return _extends$y.apply(this, arguments);
488
489
  }
489
- function _inherits$x(subClass, superClass) {
490
+ function _inherits$y(subClass, superClass) {
490
491
  if (typeof superClass !== "function" && superClass !== null) {
491
492
  throw new TypeError("Super expression must either be null or a function");
492
493
  }
@@ -497,25 +498,25 @@ function _inherits$x(subClass, superClass) {
497
498
  configurable: true
498
499
  }
499
500
  });
500
- if (superClass) _set_prototype_of$x(subClass, superClass);
501
+ if (superClass) _set_prototype_of$y(subClass, superClass);
501
502
  }
502
- function _set_prototype_of$x(o, p) {
503
- _set_prototype_of$x = Object.setPrototypeOf || function setPrototypeOf(o, p) {
503
+ function _set_prototype_of$y(o, p) {
504
+ _set_prototype_of$y = Object.setPrototypeOf || function setPrototypeOf(o, p) {
504
505
  o.__proto__ = p;
505
506
  return o;
506
507
  };
507
- return _set_prototype_of$x(o, p);
508
+ return _set_prototype_of$y(o, p);
508
509
  }
509
510
  var LOADING_DEFAULT_OPTIONS = {};
510
511
  /**
511
512
  * 加载动画控件
512
513
  * @category Control
513
514
  */ var Loading = /*#__PURE__*/ function(Control) {
514
- _inherits$x(Loading, Control);
515
+ _inherits$y(Loading, Control);
515
516
  function Loading(options) {
516
517
  if (options === void 0) options = {};
517
518
  var _this;
518
- _this = Control.call(this, Object.assign({}, LOADING_DEFAULT_OPTIONS, _extends$x({}, options, {
519
+ _this = Control.call(this, Object.assign({}, LOADING_DEFAULT_OPTIONS, _extends$y({}, options, {
519
520
  tagName: 'div',
520
521
  controlType: 'block',
521
522
  classNameSuffix: 'loading'
@@ -553,21 +554,17 @@ var LOADING_DEFAULT_OPTIONS = {};
553
554
  return Loading;
554
555
  }(Control);
555
556
 
556
- function _extends$w() {
557
- _extends$w = Object.assign || function(target) {
557
+ function _extends$x() {
558
+ _extends$x = Object.assign || function assign(target) {
558
559
  for(var i = 1; i < arguments.length; i++){
559
560
  var source = arguments[i];
560
- for(var key in source){
561
- if (Object.prototype.hasOwnProperty.call(source, key)) {
562
- target[key] = source[key];
563
- }
564
- }
561
+ for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
565
562
  }
566
563
  return target;
567
564
  };
568
- return _extends$w.apply(this, arguments);
565
+ return _extends$x.apply(this, arguments);
569
566
  }
570
- function _inherits$w(subClass, superClass) {
567
+ function _inherits$x(subClass, superClass) {
571
568
  if (typeof superClass !== "function" && superClass !== null) {
572
569
  throw new TypeError("Super expression must either be null or a function");
573
570
  }
@@ -578,14 +575,14 @@ function _inherits$w(subClass, superClass) {
578
575
  configurable: true
579
576
  }
580
577
  });
581
- if (superClass) _set_prototype_of$w(subClass, superClass);
578
+ if (superClass) _set_prototype_of$x(subClass, superClass);
582
579
  }
583
- function _set_prototype_of$w(o, p) {
584
- _set_prototype_of$w = Object.setPrototypeOf || function setPrototypeOf(o, p) {
580
+ function _set_prototype_of$x(o, p) {
581
+ _set_prototype_of$x = Object.setPrototypeOf || function setPrototypeOf(o, p) {
585
582
  o.__proto__ = p;
586
583
  return o;
587
584
  };
588
- return _set_prototype_of$w(o, p);
585
+ return _set_prototype_of$x(o, p);
589
586
  }
590
587
  // 不放在服务器上 是因为有可能http加载失败
591
588
  // prettier-ignore
@@ -597,11 +594,11 @@ var POSTER_OPTIONS = {
597
594
  * 封面控件
598
595
  * @category Control
599
596
  */ var Poster = /*#__PURE__*/ function(Control) {
600
- _inherits$w(Poster, Control);
597
+ _inherits$x(Poster, Control);
601
598
  function Poster(options) {
602
599
  if (options === void 0) options = {};
603
600
  var _this;
604
- _this = Control.call(this, Object.assign({}, POSTER_OPTIONS, _extends$w({}, options, {
601
+ _this = Control.call(this, Object.assign({}, POSTER_OPTIONS, _extends$x({}, options, {
605
602
  tagName: 'div',
606
603
  controlType: 'block',
607
604
  classNameSuffix: 'poster'
@@ -667,7 +664,7 @@ var POSTER_OPTIONS = {
667
664
  var Icons = {
668
665
  /** 播放 */ play: '<svg width="1em" height="1em" viewBox="0 0 24 24" fill="currentColor" focusable="false" aria-hidden="true" data-icon="play">\n <rect x="6.5" y="5.5" rx="1.25" width="2.5" height="13"/>\n <rect x="15" y="5.5" rx="1.25" width="2.5" height="13"/>\n </svg>',
669
666
  /** 暂停 */ pause: '<svg width="1em" height="1em" viewBox="0 0 24 24" fill="currentColor" focusable="false" aria-hidden="true" data-icon="pause"> <path d="M17.5 13.66L9.1 19.26C7.78 20.14 6 19.19 6 17.59L6 6.4C6 4.8 7.78 3.85 9.1 4.73L17.5 10.33C18.69 11.12 18.69 12.87 17.5 13.66Z" /></svg>',
670
- /** 音量 */ volume: function(prefix) {
667
+ /** 音量 */ volume: function volume(prefix) {
671
668
  return '<svg width="1em" height="1em" viewBox="0 0 24 24" stroke="currentColor" fill="none" focusable="false" aria-hidden="true" data-icon="volume">\n <path class="' + prefix + '-icon-volume-muted" d="M20.57 9.69L16.07 14.19" stroke-width="1.500000" stroke-linejoin="round" stroke-linecap="round"/>\n <path class="' + prefix + '-icon-volume-muted" d="M20.57 14.19L16.07 9.69" stroke-width="1.500000" stroke-linejoin="round" stroke-linecap="round"/>\n <!-- 音低 -->\n <path class="' + prefix + '-icon-volume-low" d="M15.53 15.97C16.69 15.25 17.49 13.75 17.49 12C17.49 10.25 16.69 8.75 15.53 8.02" stroke-width="1.500000" stroke-linejoin="round" stroke-linecap="round"/>\n <!-- 音高 -->\n <path class="' + prefix + '-icon-volume-high" d="M18.5 19.06C20.31 17.5 21.49 14.93 21.49 12C21.49 9.07 20.31 6.48 18.49 4.93" stroke-width="1.500000" stroke-linejoin="round" stroke-linecap="round"/>\n <path d="M5.87 8.62L9.85 5.25C10.5 4.7 11.49 5.16 11.49 6.01L11.49 17.98C11.49 18.83 10.5 19.29 9.85 18.74L5.87 15.37" stroke-width="1.500000" stroke-linejoin="round" stroke-linecap="round"/>\n <path d="M5.87 15.37L3.49 15.37C2.94 15.37 2.49 14.92 2.49 14.37L2.49 9.62C2.49 9.07 2.94 8.62 3.49 8.62L5.87 8.62" stroke-width="1.500000" stroke-linejoin="round" stroke-linecap="round"/>\n </svg>';
672
669
  },
673
670
  /** 全屏 */ mobileFullscreen: '<svg width="1em" height="1em" viewBox="0 0 24 24" fill="currentColor" focusable="false" aria-hidden="true" data-icon="mobile-fullscreen">\n <path d="M4 2.9082L11 2.9082C12.5188 2.9082 13.75 4.1394 13.75 5.6582L13.75 17.6582C13.75 19.177 12.5188 20.4082 11 20.4082L4 20.4082C2.4812 20.4082 1.25 19.177 1.25 17.6582L1.25 5.6582C1.25 4.1394 2.4812 2.9082 4 2.9082ZM4 4.4082L11 4.4082C11.6903 4.4082 12.25 4.9679 12.25 5.6582L12.25 17.6582C12.25 18.3485 11.6903 18.9082 11 18.9082L4 18.9082C3.30969 18.9082 2.75 18.3485 2.75 17.6582L2.75 5.6582C2.75 4.9679 3.30969 4.4082 4 4.4082ZM22.1511 18.3113C22.1511 19.3595 21.2467 20.1652 20.1509 20.2362L19.993 20.2413L15.2939 20.2413C14.8798 20.2413 14.5439 19.9055 14.5439 19.4913C14.5439 19.1116 14.8262 18.7979 15.1921 18.7482L15.2939 18.7413L19.993 18.7413C20.344 18.7413 20.5962 18.5592 20.6432 18.3732L20.6511 18.3113L20.6511 12.4895C20.6511 12.3048 20.4338 12.1042 20.1062 12.066L19.993 12.0594L15.2939 12.0594C14.8798 12.0594 14.5439 11.7238 14.5439 11.3094C14.5439 10.9298 14.8262 10.616 15.1921 10.5663L15.2939 10.5594L19.993 10.5594C21.1055 10.5594 22.0605 11.3175 22.145 12.3416L22.1511 12.4895L22.1511 18.3113ZM10.3225 16.1035C10.3225 15.6893 9.98669 15.3535 9.57251 15.3535L5.84644 15.3535L5.74463 15.3604C5.37854 15.41 5.09644 15.7239 5.09644 16.1035C5.09644 16.5177 5.43225 16.8535 5.84644 16.8535L9.57251 16.8535L9.67432 16.8467C10.0404 16.797 10.3225 16.4832 10.3225 16.1035Z" clip-rule="evenodd" fill-rule="evenodd"/>\n </svg>',
@@ -693,7 +690,7 @@ var Icons = {
693
690
  /** 录制/摄像机 */ record: '<svg width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" focusable="false" aria-hidden="true" data-icon="record">\n <path d="M4.53 19C3.03 19 1.8 17.74 1.8 16.2L1.8 7.8C1.8 6.25 3.03 5 4.53 5L14.08 5C15.58 5 16.8 6.25 16.8 7.8L16.8 16.2C16.8 17.74 15.58 19 14.08 19L4.53 19Z" stroke-width="1.5" stroke-linejoin="round"/>\n <path d="M17.25 13.64C17.94 14.2 18.97 15.03 20.36 16.15C21.09 16.74 22.19 16.21 22.19 15.27L22.19 8.72C22.19 7.78 21.09 7.25 20.36 7.84C18.99 8.94 17.96 9.77 17.28 10.32" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n </svg>',
694
691
  recordCircle: '<svg width="1em" height="1em" viewBox="0 0 14 14" fill="currentColor" stroke="none" focusable="false" aria-hidden="true" data-icon="record-circle">\n <path d="M7.00044 2.5C9.70278 2.5 11.8935 4.69068 11.8935 7.39302C11.8935 10.0954 9.70278 12.286 7.00044 12.286C4.2981 12.286 2.10742 10.0954 2.10742 7.39302C2.10742 4.69068 4.2981 2.5 7.00044 2.5ZM7.00044 3.5C4.85039 3.5 3.10742 5.24296 3.10742 7.39302C3.10742 9.54307 4.85039 11.286 7.00044 11.286C9.15049 11.286 10.8935 9.54307 10.8935 7.39302C10.8935 5.24296 9.15049 3.5 7.00044 3.5ZM9.50049 7.39252C9.50049 6.01181 8.3812 4.89252 7.00049 4.89252C5.61978 4.89252 4.50049 6.01181 4.50049 7.39252C4.50049 8.77323 5.61978 9.89252 7.00049 9.89252C8.3812 9.89252 9.50049 8.77323 9.50049 7.39252Z" fill-rule="evenodd" />\n </svg>\n ',
695
692
  /** 对讲 */ talk: '<svg width="1em" height="1em" viewBox="0 0 24 24" fill="currentColor" stroke="currentColor" focusable="false" aria-hidden="true" data-icon="talk">\n <path stroke="none" d="M12.22 18.95C12.65 18.95 13.01 19.21 13.07 19.54L13.08 19.64L13.08 21.78C13.08 22.16 12.69 22.47 12.22 22.47C11.78 22.47 11.42 22.21 11.37 21.87L11.36 21.78L11.36 19.64C11.36 19.26 11.74 18.95 12.22 18.95Z" fill-rule="evenodd"/>\n <path d="M19.53 11.37L19.53 11.58C19.53 15.74 16.15 19.11 11.99 19.11C7.83 19.11 4.46 15.74 4.46 11.58L4.46 11.43" fill="none" stroke-width="1.5" stroke-linecap="round"/>\n <path stroke="none" d="M12.05 1.52C9.3 1.52 7.07 3.58 7.07 6.12L7.07 12.07C7.07 14.61 9.3 16.67 12.05 16.67C14.79 16.67 17.02 14.61 17.02 12.07L17.02 6.12C17.02 3.58 14.79 1.52 12.05 1.52ZM8.57 12.07L8.57 6.12C8.57 5.94 8.59 5.75 8.63 5.57C8.67 5.36 8.74 5.16 8.83 4.96C8.86 4.89 8.9 4.82 8.93 4.75C9.09 4.46 9.3 4.21 9.55 3.97C9.64 3.89 9.73 3.81 9.83 3.74C10.08 3.55 10.35 3.4 10.66 3.28C10.79 3.23 10.93 3.19 11.06 3.15C11.38 3.07 11.71 3.02 12.05 3.02C12.38 3.02 12.71 3.07 13.03 3.15C13.17 3.19 13.3 3.23 13.43 3.28C13.74 3.4 14.02 3.55 14.27 3.74C14.36 3.81 14.45 3.89 14.54 3.97C14.79 4.21 15 4.46 15.16 4.75C15.2 4.82 15.23 4.89 15.26 4.96C15.35 5.16 15.42 5.36 15.46 5.57C15.5 5.75 15.52 5.94 15.52 6.12L15.52 12.07C15.52 12.26 15.5 12.44 15.46 12.63C15.42 12.83 15.35 13.04 15.26 13.24C15.23 13.31 15.2 13.38 15.16 13.45C15 13.73 14.79 13.99 14.54 14.22C14.45 14.3 14.36 14.38 14.27 14.45C14.02 14.64 13.74 14.79 13.43 14.91C13.3 14.96 13.17 15.01 13.03 15.05C12.71 15.13 12.38 15.17 12.05 15.17C11.71 15.17 11.38 15.13 11.06 15.05C10.93 15.01 10.79 14.96 10.66 14.91C10.35 14.79 10.08 14.64 9.83 14.45C9.73 14.38 9.64 14.3 9.55 14.22C9.3 13.99 9.09 13.73 8.93 13.45C8.9 13.38 8.86 13.31 8.83 13.24C8.74 13.04 8.67 12.83 8.63 12.63C8.59 12.44 8.57 12.26 8.57 12.07Z" fill-rule="evenodd"/>\n </svg>',
696
- talkGrowth: function(prefix) {
693
+ talkGrowth: function talkGrowth(prefix) {
697
694
  return '<svg width="1em" height="1em" viewBox="0 0 24 24" focusable="false" aria-hidden="true" data-icon="talk-growth">\n <g fill="currentColor" stroke="currentColor">\n <path stroke="none" d="M9.22313 18.9543C9.6588 18.9543 10.0189 19.2133 10.0759 19.5494L10.0837 19.6428L10.0837 21.7847C10.0837 22.1649 9.69841 22.4732 9.22313 22.4732C8.78745 22.4732 8.42739 22.2142 8.37041 21.8781L8.36255 21.7847L8.36255 19.6428C8.36255 19.2626 8.74784 18.9543 9.22313 18.9543Z" fill-rule="evenodd" />\n <path d="M16.5323 11.3779L16.5323 11.5872C16.5323 15.7472 13.1599 19.1197 8.99981 19.1197C4.83971 19.1197 1.46729 15.7472 1.46729 11.5872L1.46729 11.4335" fill-rule="evenodd" fill="none" stroke-width="1.5" />\n <path stroke="none" d="M4.07861 6.12978C4.07861 3.589 6.30476 1.5293 9.05085 1.5293C11.7969 1.5293 14.0231 3.589 14.0231 6.12978L14.0231 12.075C14.0231 14.6158 11.7969 16.6755 9.05085 16.6755C6.30476 16.6755 4.07861 14.6158 4.07861 12.075L4.07861 6.12978ZM5.57861 12.075L5.57861 6.12978C5.57861 5.94083 5.597 5.75561 5.63376 5.57412C5.67605 5.36539 5.74265 5.16158 5.83357 4.9627C5.86625 4.8912 5.90164 4.82121 5.93974 4.75272C6.09781 4.4685 6.30245 4.21019 6.55365 3.97777C6.64206 3.89597 6.73424 3.81921 6.83019 3.7475C7.0816 3.55959 7.3589 3.40632 7.66207 3.28767C7.79552 3.23545 7.93107 3.19114 8.06871 3.15475C8.38503 3.07111 8.71241 3.0293 9.05085 3.0293C9.38929 3.0293 9.71668 3.07112 10.033 3.15475C10.1706 3.19114 10.3062 3.23545 10.4396 3.28767C10.7428 3.40632 11.0201 3.55959 11.2715 3.74749C11.3675 3.81921 11.4596 3.89596 11.548 3.97777C11.7993 4.2102 12.0039 4.46853 12.162 4.75276C12.2001 4.82124 12.2354 4.89122 12.2681 4.9627C12.359 5.16157 12.4256 5.36536 12.4679 5.57407C12.5047 5.75558 12.5231 5.94082 12.5231 6.12978L12.5231 12.075C12.5231 12.264 12.5047 12.4492 12.4679 12.6307C12.4256 12.8394 12.359 13.0432 12.2681 13.2421C12.2355 13.3136 12.2001 13.3835 12.162 13.452C12.0039 13.7362 11.7993 13.9946 11.548 14.227C11.4596 14.3088 11.3675 14.3856 11.2715 14.4573C11.0201 14.6452 10.7428 14.7985 10.4396 14.9171C10.3062 14.9693 10.1706 15.0136 10.033 15.05C9.71667 15.1337 9.38929 15.1755 9.05085 15.1755C8.71241 15.1755 8.38503 15.1337 8.06871 15.05C7.93107 15.0136 7.79552 14.9693 7.66207 14.9171C7.3589 14.7985 7.0816 14.6452 6.83019 14.4573C6.73424 14.3856 6.64206 14.3088 6.55365 14.227C6.30244 13.9946 6.09779 13.7363 5.93972 13.452C5.90163 13.3836 5.86625 13.3136 5.83357 13.2421C5.74265 13.0432 5.67605 12.8394 5.63377 12.6307C5.597 12.4492 5.57861 12.264 5.57861 12.075Z" fill-rule="evenodd" />\n </g>\n <g class="' + prefix + '-icon-talk-growth-dot">\n <path class="' + prefix + '-icon-talk-growth-dot1" d="M19.1333 6.40039L22.8667 6.40039" stroke="currentColor" stroke-linecap="round" stroke-width="1.86666667" />\n <path class="' + prefix + '-icon-talk-growth-dot2" d="M19.1333 10.1338L21.9331 10.1338" stroke="currentColor" stroke-linecap="round" stroke-width="1.86666667" />\n <path class="' + prefix + '-icon-talk-growth-dot3" d="M19.1333 13.8672L20.9995 13.8672" stroke="currentColor" stroke-linecap="round" stroke-width="1.86666667" />\n <path class="' + prefix + '-icon-talk-growth-dot4" d="M19.1333 17.6001L20.0669 17.6001" stroke="currentColor" stroke-linecap="round" stroke-width="1.86666667" />\n </g>\n </svg>';
698
695
  },
699
696
  /** 语音广播 */ broadcast: '\n <svg width="1em" height="1em" viewBox="0 0 24 24" fill="currentColor" stroke="none" focusable="false" aria-hidden="true" data-icon="broadcast">\n <g>\n <path id="矢量 1" d="m8.52109,6.76609l6.17823,-2.91335c0.2485,-0.11718 0.5027,-0.19531 0.7627,-0.2351c0.2034,-0.03077 0.4104,-0.03809 0.6211,-0.02173c0.2092,0.01636 0.4116,0.05493 0.6069,0.11621c0.2278,0.07129 0.4461,0.1731 0.6548,0.30542c0.2087,0.13232 0.394,0.28638 0.5557,0.46216l0.0002,0l0,0c0.1384,0.15064 0.2598,0.31714 0.3638,0.49951c0.1047,0.18335 0.1865,0.37354 0.2451,0.57081c0.0752,0.25219 0.1128,0.51562 0.1128,0.79004l0,10.64651c0,0.2744 -0.0376,0.5379 -0.1128,0.7901l0,0c-0.0586,0.197 -0.1404,0.3874 -0.2451,0.5708c-0.104,0.1823 -0.2254,0.3488 -0.364,0.4995c-0.1617,0.1758 -0.347,0.3298 -0.5557,0.4621c-0.2087,0.1324 -0.427,0.2342 -0.6548,0.3054c-0.1953,0.0611 -0.3977,0.0999 -0.6069,0.1163c-0.2107,0.0163 -0.4175,0.009 -0.6209,-0.0218c-0.2602,-0.0398 -0.5144,-0.1181 -0.7629,-0.2351l-5.45044,-2.5703l0,2.759c0,0.1036 -0.01831,0.1995 -0.05494,0.2879c-0.03662,0.0886 -0.09155,0.1692 -0.16479,0.2424c-0.14624,0.1465 -0.32324,0.2197 -0.53027,0.2197l-2,0c-0.14209,0 -0.27344,-0.0373 -0.39429,-0.112c-0.12085,-0.0745 -0.21289,-0.1756 -0.27661,-0.3025l-1.99268,-3.9856c-0.06225,-0.0234 -0.12402,-0.0481 -0.18555,-0.074c-0.26953,-0.114 -0.52417,-0.2502 -0.7644,-0.4084c-0.26636,-0.1758 -0.51489,-0.3789 -0.74512,-0.6094c-0.23047,-0.2302 -0.43359,-0.4788 -0.60937,-0.7451c-0.1582,-0.2403 -0.29444,-0.4949 -0.40845,-0.7644c-0.11328,-0.2679 -0.20068,-0.5413 -0.26245,-0.8206l0,0c-0.07398,-0.3347 -0.11108,-0.6775 -0.11108,-1.0286c0,-0.351 0.0371,-0.6938 0.11108,-1.0285c0.06177,-0.2793 0.14917,-0.5528 0.26245,-0.8206c0.11401,-0.26953 0.25025,-0.52417 0.40845,-0.7644c0.17578,-0.26636 0.3789,-0.5149 0.60937,-0.74512c0.23023,-0.23047 0.47876,-0.4336 0.74512,-0.60938l0,0c0.24023,-0.1582 0.49487,-0.29444 0.7644,-0.40845c0.26783,-0.11328 0.54126,-0.20068 0.82056,-0.26245l0,0l0,0l0,0c0.33472,-0.07398 0.67749,-0.11109 1.02857,-0.11109l2.93872,0c0.02636,-0.0166 0.05444,-0.03198 0.08349,-0.04589zm0.72876,8.47948l6.08937,2.8716c0.1287,0.0606 0.2598,0.0987 0.3935,0.114c0.0772,0.0088 0.1551,0.0103 0.2337,0.0042c0.0857,-0.0068 0.1687,-0.0217 0.2495,-0.0452c0.1133,-0.0329 0.2219,-0.0822 0.3257,-0.1479c0.104,-0.0659 0.1948,-0.1431 0.2729,-0.2317c0.0554,-0.063 0.1045,-0.1318 0.147,-0.2063c0.0393,-0.0686 0.0713,-0.1397 0.0962,-0.2131c0.043,-0.1277 0.0647,-0.2625 0.0647,-0.4046l0,-10.64651c0,-0.14209 -0.0217,-0.2771 -0.0647,-0.40454c-0.0249,-0.07349 -0.0569,-0.14454 -0.0962,-0.21314c-0.0425,-0.07471 -0.0916,-0.14331 -0.147,-0.2063c-0.0781,-0.08862 -0.1689,-0.16577 -0.2729,-0.23169c-0.1038,-0.06567 -0.2124,-0.11523 -0.3257,-0.14795c-0.0808,-0.02344 -0.1638,-0.03833 -0.2495,-0.04517c-0.0786,-0.0061 -0.1565,-0.00463 -0.2337,0.00415c-0.1337,0.01539 -0.2648,0.05347 -0.3935,0.11402l-6.09034,2.87208l0.00097,7.16405zm13.58447,-7.9121l-2,1c-0.3757,0.18775 -0.8184,0.04029 -1.0063,-0.33545c-0.0552,-0.11035 -0.0813,-0.22656 -0.0813,-0.34033c0,-0.27344 0.1516,-0.53321 0.4167,-0.66602l2,-1c0.3757,-0.18775 0.8186,-0.04004 1.0064,0.33545c0.0551,0.11035 0.0813,0.22656 0.0813,0.34033c0,0.27368 -0.1514,0.53345 -0.4168,0.66602zm-15.08544,8.9785l-2.08667,0l1.30029,2.6006l0.78638,0l0,-2.6006zm0,-7.99998l-2.25,0c-0.24976,0 -0.49317,0.02734 -0.73023,0.08179c-0.18188,0.04174 -0.36011,0.09961 -0.53467,0.17334c-0.17944,0.07593 -0.34961,0.1665 -0.51049,0.27124c-0.18702,0.12231 -0.36133,0.26416 -0.52271,0.42554c-0.16138,0.16137 -0.30322,0.33569 -0.42554,0.52267c-0.10473,0.1609 -0.19531,0.3311 -0.27124,0.5105c-0.07373,0.1746 -0.13159,0.3528 -0.17334,0.5347c-0.05444,0.2371 -0.08178,0.4805 -0.08178,0.7302c0,0.2498 0.02734,0.4932 0.08178,0.7303c0.04175,0.1818 0.09961,0.3601 0.17334,0.5346c0.07593,0.1795 0.16651,0.3496 0.27124,0.5105c0.12232,0.187 0.26416,0.3614 0.42554,0.5227c0.16138,0.1614 0.33569,0.3033 0.52271,0.4256c0.16088,0.1047 0.33105,0.1953 0.51049,0.2712c0.17456,0.0737 0.35279,0.1316 0.53467,0.1734c0.23706,0.0544 0.48047,0.0817 0.73023,0.0817l2.25097,0l-0.00097,-6.49998zm12.75004,2.60058l2,0c0.4199,0 0.75,0.3301 0.75,0.75c0,0.4199 -0.3301,0.75 -0.75,0.75l-2,0c-0.42,0 -0.75,-0.3301 -0.75,-0.75c0,-0.4199 0.33,-0.75 0.75,-0.75zm0.3354,4.0791l2,1c0.2654,0.1326 0.4168,0.3924 0.4168,0.6661c0,0.1137 -0.0262,0.2299 -0.0813,0.3403c-0.1878,0.3755 -0.6307,0.5232 -1.0064,0.3354l-2,-1c-0.2651,-0.1328 -0.4167,-0.3925 -0.4167,-0.666c0,-0.1138 0.0261,-0.23 0.0813,-0.3403c0.1879,-0.3758 0.6306,-0.5232 1.0063,-0.3355z" fill-rule="evenodd"/>\n </g>\n</svg>',
@@ -735,179 +732,175 @@ var Icons = {
735
732
  return '<span class="' + PREFIX_CLASS + "-icon " + PREFIX_CLASS + "-icon-" + type + '" ' + attrStr + ">" + svg + "</span>";
736
733
  }
737
734
  var IconComponents = {
738
- /** 播放 */ play: function(attr) {
735
+ /** 播放 */ play: function play(attr) {
739
736
  if (attr === void 0) attr = {};
740
737
  return createIcon(Icons.play, 'play', attr);
741
738
  },
742
- /** 暂停 */ pause: function(attr) {
739
+ /** 暂停 */ pause: function pause(attr) {
743
740
  if (attr === void 0) attr = {};
744
741
  return createIcon(Icons.pause, 'pause', attr);
745
742
  },
746
- volume: function(attr) {
743
+ volume: function volume(attr) {
747
744
  if (attr === void 0) attr = {};
748
745
  return createIcon(Icons.volume(PREFIX_CLASS), 'volume', attr);
749
746
  },
750
- mobileFullscreen: function(attr) {
747
+ mobileFullscreen: function mobileFullscreen(attr) {
751
748
  if (attr === void 0) attr = {};
752
749
  return createIcon(Icons.mobileFullscreen, 'mobile-fullscreen', attr);
753
750
  },
754
- exitFullscreen: function(attr) {
751
+ exitFullscreen: function exitFullscreen(attr) {
755
752
  if (attr === void 0) attr = {};
756
753
  return createIcon(Icons.exitFullscreen, 'exit-fullscreen', attr);
757
754
  },
758
- fullscreen: function(attr) {
755
+ fullscreen: function fullscreen(attr) {
759
756
  if (attr === void 0) attr = {};
760
757
  return createIcon(Icons.fullscreen, 'fullscreen', attr);
761
758
  },
762
- exitGlobalFullscreen: function(attr) {
759
+ exitGlobalFullscreen: function exitGlobalFullscreen(attr) {
763
760
  if (attr === void 0) attr = {};
764
761
  return createIcon(Icons.exitGlobalFullscreen, 'exit-global-fullscreen', attr);
765
762
  },
766
- globalFullscreen: function(attr) {
763
+ globalFullscreen: function globalFullscreen(attr) {
767
764
  if (attr === void 0) attr = {};
768
765
  return createIcon(Icons.globalFullscreen, 'global-fullscreen', attr);
769
766
  },
770
- capturePicture: function(attr) {
767
+ capturePicture: function capturePicture(attr) {
771
768
  if (attr === void 0) attr = {};
772
769
  return createIcon(Icons.capturePicture, 'capture-picture', attr);
773
770
  },
774
- ptz: function(attr) {
771
+ ptz: function ptz(attr) {
775
772
  if (attr === void 0) attr = {};
776
773
  return createIcon(Icons.ptz, 'ptz', attr);
777
774
  },
778
- record: function(attr) {
775
+ record: function record(attr) {
779
776
  if (attr === void 0) attr = {};
780
777
  return createIcon(Icons.record, 'record', attr);
781
778
  },
782
- recordCircle: function(attr) {
779
+ recordCircle: function recordCircle(attr) {
783
780
  if (attr === void 0) attr = {};
784
781
  return createIcon(Icons.recordCircle, 'record-circle', attr);
785
782
  },
786
- talk: function(attr) {
783
+ talk: function talk(attr) {
787
784
  if (attr === void 0) attr = {};
788
785
  return createIcon(Icons.talk, 'talk', attr);
789
786
  },
790
- broadcast: function(attr) {
787
+ broadcast: function broadcast(attr) {
791
788
  if (attr === void 0) attr = {};
792
789
  return createIcon(Icons.broadcast, 'broadcast', attr);
793
790
  },
794
- aiChat: function(attr) {
791
+ aiChat: function aiChat(attr) {
795
792
  if (attr === void 0) attr = {};
796
793
  return createIcon(Icons.aiChat, 'aiChat', attr);
797
794
  },
798
- talkGrowth: function(attr) {
795
+ talkGrowth: function talkGrowth(attr) {
799
796
  if (attr === void 0) attr = {};
800
797
  return createIcon(Icons.talkGrowth(PREFIX_CLASS), 'talk-growth', attr);
801
798
  },
802
- zoom: function(attr) {
799
+ zoom: function zoom(attr) {
803
800
  if (attr === void 0) attr = {};
804
801
  return createIcon(Icons.zoom, 'zoom', attr);
805
802
  },
806
- more: function(attr) {
803
+ more: function more(attr) {
807
804
  if (attr === void 0) attr = {};
808
805
  return createIcon(Icons.more, 'more', attr);
809
806
  },
810
- moreDot: function(attr) {
807
+ moreDot: function moreDot(attr) {
811
808
  if (attr === void 0) attr = {};
812
809
  return createIcon(Icons.moreDot, 'more-dot', attr);
813
810
  },
814
- minusCircle: function(attr) {
811
+ minusCircle: function minusCircle(attr) {
815
812
  if (attr === void 0) attr = {};
816
813
  return createIcon(Icons.minusCircle, 'minus-circle', attr);
817
814
  },
818
- plusCircle: function(attr) {
815
+ plusCircle: function plusCircle(attr) {
819
816
  if (attr === void 0) attr = {};
820
817
  return createIcon(Icons.plusCircle, 'plus-circle', attr);
821
818
  },
822
- sdk: function(attr) {
819
+ sdk: function sdk(attr) {
823
820
  if (attr === void 0) attr = {};
824
821
  return createIcon(Icons.sdk, 'sdk', attr);
825
822
  },
826
- cloudRec: function(attr) {
823
+ cloudRec: function cloudRec(attr) {
827
824
  if (attr === void 0) attr = {};
828
825
  return createIcon(Icons.cloudRec, 'cloud-rec', attr);
829
826
  },
830
- cloudRecord: function(attr) {
827
+ cloudRecord: function cloudRecord(attr) {
831
828
  if (attr === void 0) attr = {};
832
829
  return createIcon(Icons.cloudRecord, 'cloud-record', attr);
833
830
  },
834
- error: function(attr) {
831
+ error: function error(attr) {
835
832
  if (attr === void 0) attr = {};
836
833
  return createIcon(Icons.error, 'error', attr);
837
834
  },
838
- info: function(attr) {
835
+ info: function info(attr) {
839
836
  if (attr === void 0) attr = {};
840
837
  return createIcon(Icons.info, 'info', attr);
841
838
  },
842
- close: function(attr) {
839
+ close: function close(attr) {
843
840
  if (attr === void 0) attr = {};
844
841
  return createIcon(Icons.close, 'close', attr);
845
842
  },
846
- closeCircleOutLined: function(attr) {
843
+ closeCircleOutLined: function closeCircleOutLined(attr) {
847
844
  if (attr === void 0) attr = {};
848
845
  return createIcon(Icons.closeCircleOutLined, 'close-circle', attr);
849
846
  },
850
- warnCircleOutLined: function(attr) {
847
+ warnCircleOutLined: function warnCircleOutLined(attr) {
851
848
  if (attr === void 0) attr = {};
852
849
  return createIcon(Icons.warnCircleOutLined, 'warn-circle', attr);
853
850
  },
854
- infoCircleOutLined: function(attr) {
851
+ infoCircleOutLined: function infoCircleOutLined(attr) {
855
852
  if (attr === void 0) attr = {};
856
853
  return createIcon(Icons.infoCircleOutLined, 'info-circle', attr);
857
854
  },
858
- date: function(attr) {
855
+ date: function date(attr) {
859
856
  if (attr === void 0) attr = {};
860
857
  return createIcon(Icons.date, 'date', attr);
861
858
  },
862
- filter: function(attr) {
859
+ filter: function filter(attr) {
863
860
  if (attr === void 0) attr = {};
864
861
  return createIcon(Icons.filter, 'filter', attr);
865
862
  },
866
- add: function(attr) {
863
+ add: function add(attr) {
867
864
  if (attr === void 0) attr = {};
868
865
  return createIcon(Icons.add, 'add', attr);
869
866
  },
870
- reduce: function(attr) {
867
+ reduce: function reduce(attr) {
871
868
  if (attr === void 0) attr = {};
872
869
  return createIcon(Icons.reduce, 'reduce', attr);
873
870
  },
874
- /** 直播 */ live: function(attr) {
871
+ /** 直播 */ live: function live(attr) {
875
872
  if (attr === void 0) attr = {};
876
873
  return createIcon(Icons.live, 'live', attr);
877
874
  },
878
- /** 回放 */ recDropdown: function(attr) {
875
+ /** 回放 */ recDropdown: function recDropdown(attr) {
879
876
  if (attr === void 0) attr = {};
880
877
  return createIcon(Icons.recDropdown, 'rec-dropdown', attr);
881
878
  },
882
- /** 录像列表 */ recList: function(attr) {
879
+ /** 录像列表 */ recList: function recList(attr) {
883
880
  if (attr === void 0) attr = {};
884
881
  return createIcon(Icons.list, 'rec-list', attr);
885
882
  },
886
- /** 消息 */ alarmMessage: function(attr) {
883
+ /** 消息 */ alarmMessage: function alarmMessage(attr) {
887
884
  if (attr === void 0) attr = {};
888
885
  return createIcon(Icons.alarmMessage, 'alarm-message', attr);
889
886
  },
890
- time: function(attr) {
887
+ time: function time(attr) {
891
888
  if (attr === void 0) attr = {};
892
889
  return createIcon(Icons.time, 'time', attr);
893
890
  }
894
891
  };
895
892
 
896
- function _extends$v() {
897
- _extends$v = Object.assign || function(target) {
893
+ function _extends$w() {
894
+ _extends$w = Object.assign || function assign(target) {
898
895
  for(var i = 1; i < arguments.length; i++){
899
896
  var source = arguments[i];
900
- for(var key in source){
901
- if (Object.prototype.hasOwnProperty.call(source, key)) {
902
- target[key] = source[key];
903
- }
904
- }
897
+ for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
905
898
  }
906
899
  return target;
907
900
  };
908
- return _extends$v.apply(this, arguments);
901
+ return _extends$w.apply(this, arguments);
909
902
  }
910
- function _inherits$v(subClass, superClass) {
903
+ function _inherits$w(subClass, superClass) {
911
904
  if (typeof superClass !== "function" && superClass !== null) {
912
905
  throw new TypeError("Super expression must either be null or a function");
913
906
  }
@@ -918,25 +911,25 @@ function _inherits$v(subClass, superClass) {
918
911
  configurable: true
919
912
  }
920
913
  });
921
- if (superClass) _set_prototype_of$v(subClass, superClass);
914
+ if (superClass) _set_prototype_of$w(subClass, superClass);
922
915
  }
923
- function _set_prototype_of$v(o, p) {
924
- _set_prototype_of$v = Object.setPrototypeOf || function setPrototypeOf(o, p) {
916
+ function _set_prototype_of$w(o, p) {
917
+ _set_prototype_of$w = Object.setPrototypeOf || function setPrototypeOf(o, p) {
925
918
  o.__proto__ = p;
926
919
  return o;
927
920
  };
928
- return _set_prototype_of$v(o, p);
921
+ return _set_prototype_of$w(o, p);
929
922
  }
930
923
  var MESSAGE_DEFAULT_OPTIONS = {};
931
924
  /**
932
925
  * 消息控件
933
926
  * @category Control
934
927
  */ var Message = /*#__PURE__*/ function(Control) {
935
- _inherits$v(Message, Control);
928
+ _inherits$w(Message, Control);
936
929
  function Message(options) {
937
930
  if (options === void 0) options = {};
938
931
  var _this;
939
- _this = Control.call(this, Object.assign({}, MESSAGE_DEFAULT_OPTIONS, _extends$v({}, options, {
932
+ _this = Control.call(this, Object.assign({}, MESSAGE_DEFAULT_OPTIONS, _extends$w({}, options, {
940
933
  tagName: 'div',
941
934
  controlType: 'block'
942
935
  }))) || this, _this._$toast = null;
@@ -1093,21 +1086,17 @@ function _create_class$8(Constructor, protoProps, staticProps) {
1093
1086
  if (protoProps) _defineProperties$8(Constructor.prototype, protoProps);
1094
1087
  return Constructor;
1095
1088
  }
1096
- function _extends$u() {
1097
- _extends$u = Object.assign || function(target) {
1089
+ function _extends$v() {
1090
+ _extends$v = Object.assign || function assign(target) {
1098
1091
  for(var i = 1; i < arguments.length; i++){
1099
1092
  var source = arguments[i];
1100
- for(var key in source){
1101
- if (Object.prototype.hasOwnProperty.call(source, key)) {
1102
- target[key] = source[key];
1103
- }
1104
- }
1093
+ for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
1105
1094
  }
1106
1095
  return target;
1107
1096
  };
1108
- return _extends$u.apply(this, arguments);
1097
+ return _extends$v.apply(this, arguments);
1109
1098
  }
1110
- function _inherits$u(subClass, superClass) {
1099
+ function _inherits$v(subClass, superClass) {
1111
1100
  if (typeof superClass !== "function" && superClass !== null) {
1112
1101
  throw new TypeError("Super expression must either be null or a function");
1113
1102
  }
@@ -1118,23 +1107,23 @@ function _inherits$u(subClass, superClass) {
1118
1107
  configurable: true
1119
1108
  }
1120
1109
  });
1121
- if (superClass) _set_prototype_of$u(subClass, superClass);
1110
+ if (superClass) _set_prototype_of$v(subClass, superClass);
1122
1111
  }
1123
- function _set_prototype_of$u(o, p) {
1124
- _set_prototype_of$u = Object.setPrototypeOf || function setPrototypeOf(o, p) {
1112
+ function _set_prototype_of$v(o, p) {
1113
+ _set_prototype_of$v = Object.setPrototypeOf || function setPrototypeOf(o, p) {
1125
1114
  o.__proto__ = p;
1126
1115
  return o;
1127
1116
  };
1128
- return _set_prototype_of$u(o, p);
1117
+ return _set_prototype_of$v(o, p);
1129
1118
  }
1130
1119
  /**
1131
1120
  * 播放/暂停控件
1132
1121
  * @category Control
1133
1122
  */ var Play = /*#__PURE__*/ function(Control) {
1134
- _inherits$u(Play, Control);
1123
+ _inherits$v(Play, Control);
1135
1124
  function Play(options) {
1136
1125
  var _this;
1137
- _this = Control.call(this, _extends$u({}, options, {
1126
+ _this = Control.call(this, _extends$v({}, options, {
1138
1127
  tagName: 'span',
1139
1128
  controlType: 'button',
1140
1129
  classNameSuffix: 'play'
@@ -1220,14 +1209,6 @@ function _array_like_to_array$2(arr, len) {
1220
1209
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
1221
1210
  return arr2;
1222
1211
  }
1223
- function _unsupported_iterable_to_array$2(o, minLen) {
1224
- if (!o) return;
1225
- if (typeof o === "string") return _array_like_to_array$2(o, minLen);
1226
- var n = Object.prototype.toString.call(o).slice(8, -1);
1227
- if (n === "Object" && o.constructor) n = o.constructor.name;
1228
- if (n === "Map" || n === "Set") return Array.from(n);
1229
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$2(o, minLen);
1230
- }
1231
1212
  function _create_for_of_iterator_helper_loose$2(o, allowArrayLike) {
1232
1213
  var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
1233
1214
  if (it) return (it = it.call(o)).next.bind(it);
@@ -1235,18 +1216,24 @@ function _create_for_of_iterator_helper_loose$2(o, allowArrayLike) {
1235
1216
  if (it) o = it;
1236
1217
  var i = 0;
1237
1218
  return function() {
1238
- if (i >= o.length) {
1239
- return {
1240
- done: true
1241
- };
1242
- }
1219
+ if (i >= o.length) return {
1220
+ done: true
1221
+ };
1243
1222
  return {
1244
1223
  done: false,
1245
1224
  value: o[i++]
1246
1225
  };
1247
1226
  };
1248
1227
  }
1249
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1228
+ throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1229
+ }
1230
+ function _unsupported_iterable_to_array$2(o, minLen) {
1231
+ if (!o) return;
1232
+ if (typeof o === "string") return _array_like_to_array$2(o, minLen);
1233
+ var n = Object.prototype.toString.call(o).slice(8, -1);
1234
+ if (n === "Object" && o.constructor) n = o.constructor.name;
1235
+ if (n === "Map" || n === "Set") return Array.from(n);
1236
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$2(o, minLen);
1250
1237
  }
1251
1238
  /**
1252
1239
  * 工具类
@@ -1273,7 +1260,7 @@ function _create_for_of_iterator_helper_loose$2(o, allowArrayLike) {
1273
1260
  */ // prettier-ignore
1274
1261
  Utils.orientationEventListener = function orientationEventListener(change) {
1275
1262
  var _orientationTimer = null;
1276
- var getOrientation = function() {
1263
+ var getOrientation = function getOrientation() {
1277
1264
  var _screen, _window;
1278
1265
  // 现代浏览器方案
1279
1266
  if ((_screen = screen) == null ? void 0 : _screen.orientation) {
@@ -1310,7 +1297,7 @@ function _create_for_of_iterator_helper_loose$2(o, allowArrayLike) {
1310
1297
  };
1311
1298
  var orientation = getOrientation();
1312
1299
  // 监听变化(兼容写法)
1313
- var onOrientationChange = function() {
1300
+ var onOrientationChange = function onOrientationChange() {
1314
1301
  var newOrientation = getOrientation == null ? void 0 : getOrientation();
1315
1302
  // console.log("onOrientationChange", newOrientation, orientation)
1316
1303
  // prettier-ignore
@@ -1319,7 +1306,7 @@ function _create_for_of_iterator_helper_loose$2(o, allowArrayLike) {
1319
1306
  orientation = newOrientation;
1320
1307
  }
1321
1308
  };
1322
- var onResize = function() {
1309
+ var onResize = function onResize() {
1323
1310
  // 防抖处理
1324
1311
  if (_orientationTimer) clearTimeout(_orientationTimer);
1325
1312
  if (onOrientationChange) _orientationTimer = setTimeout(onOrientationChange, 200);
@@ -1374,7 +1361,7 @@ function _create_for_of_iterator_helper_loose$2(o, allowArrayLike) {
1374
1361
  */ // prettier-ignore
1375
1362
  Utils.resizeObserver = function resizeObserver(node, callback) {
1376
1363
  // prettier-ignore
1377
- var observerFn = function(entries, observer) {
1364
+ var observerFn = function observerFn(entries, observer) {
1378
1365
  for(var _iterator = _create_for_of_iterator_helper_loose$2(entries), _step; !(_step = _iterator()).done;){
1379
1366
  var entry = _step.value;
1380
1367
  if (entry.target === node) {
@@ -1438,9 +1425,9 @@ var PROGRESS_DEFAULT_OPTIONS = {
1438
1425
  showPlus: false,
1439
1426
  showMinus: false,
1440
1427
  isRotated: false,
1441
- onChange: function() {
1428
+ onChange: function onChange() {
1442
1429
  /* no-op */ },
1443
- renderText: function(_, percent) {
1430
+ renderText: function renderText(_, percent) {
1444
1431
  return (percent * 100).toFixed(0);
1445
1432
  }
1446
1433
  };
@@ -1463,6 +1450,7 @@ var PROGRESS_DEFAULT_OPTIONS = {
1463
1450
  * })
1464
1451
  */ var Progress = /*#__PURE__*/ function() {
1465
1452
  function Progress(options) {
1453
+ var _this_options_defaultValue;
1466
1454
  var _this_options_range;
1467
1455
  this._percent = 0;
1468
1456
  this._value = 0;
@@ -1484,7 +1472,6 @@ var PROGRESS_DEFAULT_OPTIONS = {
1484
1472
  this.$container = options.container;
1485
1473
  this._render();
1486
1474
  this._eventListeners();
1487
- var _this_options_defaultValue;
1488
1475
  var value = (_this_options_defaultValue = this.options.defaultValue) != null ? _this_options_defaultValue : this.options.range[0]; // 设置默认值
1489
1476
  this._value = +value.toFixed(2); // 保留两位小数
1490
1477
  // prettier-ignore
@@ -1557,8 +1544,8 @@ var PROGRESS_DEFAULT_OPTIONS = {
1557
1544
  this._percent = +((value - this.options.range[0]) / (this.options.range[1] - this.options.range[0])).toFixed(2);
1558
1545
  };
1559
1546
  _proto._render = function _render() {
1560
- this.$content = document.createElement('div');
1561
1547
  var _this_options_className;
1548
+ this.$content = document.createElement('div');
1562
1549
  this.$content.className = PREFIX_CLASS + "-progress " + ((_this_options_className = this.options.className) != null ? _this_options_className : '');
1563
1550
  this.$content.innerHTML = (this.options.showPercent ? '<div class="' + PREFIX_CLASS + '-progress-text">' + (this.options.renderText == null ? void 0 : this.options.renderText.call(this.options, this._value, this._percent, this.options.range)) + "</div>" : '') + "\n " + (this.options.showPlus ? '<div class="' + PREFIX_CLASS + '-progress-plus">\n ' + IconComponents.plusCircle() + "\n </div>" : '') + '\n <div class="' + PREFIX_CLASS + '-progress-slider">\n <div class="' + PREFIX_CLASS + '-progress-slider-fill"></div>\n <div class="' + PREFIX_CLASS + '-progress-slider-handle" style="top: 100%"></div>\n </div>\n ' + (this.options.showMinus ? '<div class="' + PREFIX_CLASS + '-progress-minus">\n ' + IconComponents.minusCircle() + "\n </div>" : '');
1564
1551
  this.$container.appendChild(this.$content);
@@ -1750,21 +1737,17 @@ function _create_class$6(Constructor, protoProps, staticProps) {
1750
1737
  if (protoProps) _defineProperties$6(Constructor.prototype, protoProps);
1751
1738
  return Constructor;
1752
1739
  }
1753
- function _extends$t() {
1754
- _extends$t = Object.assign || function(target) {
1740
+ function _extends$u() {
1741
+ _extends$u = Object.assign || function assign(target) {
1755
1742
  for(var i = 1; i < arguments.length; i++){
1756
1743
  var source = arguments[i];
1757
- for(var key in source){
1758
- if (Object.prototype.hasOwnProperty.call(source, key)) {
1759
- target[key] = source[key];
1760
- }
1761
- }
1744
+ for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
1762
1745
  }
1763
1746
  return target;
1764
1747
  };
1765
- return _extends$t.apply(this, arguments);
1748
+ return _extends$u.apply(this, arguments);
1766
1749
  }
1767
- function _inherits$t(subClass, superClass) {
1750
+ function _inherits$u(subClass, superClass) {
1768
1751
  if (typeof superClass !== "function" && superClass !== null) {
1769
1752
  throw new TypeError("Super expression must either be null or a function");
1770
1753
  }
@@ -1775,33 +1758,33 @@ function _inherits$t(subClass, superClass) {
1775
1758
  configurable: true
1776
1759
  }
1777
1760
  });
1778
- if (superClass) _set_prototype_of$t(subClass, superClass);
1761
+ if (superClass) _set_prototype_of$u(subClass, superClass);
1779
1762
  }
1780
- function _set_prototype_of$t(o, p) {
1781
- _set_prototype_of$t = Object.setPrototypeOf || function setPrototypeOf(o, p) {
1763
+ function _set_prototype_of$u(o, p) {
1764
+ _set_prototype_of$u = Object.setPrototypeOf || function setPrototypeOf(o, p) {
1782
1765
  o.__proto__ = p;
1783
1766
  return o;
1784
1767
  };
1785
- return _set_prototype_of$t(o, p);
1768
+ return _set_prototype_of$u(o, p);
1786
1769
  }
1787
1770
  var VOLUME_DEFAULT_OPTIONS = {
1788
1771
  volume: 0.8,
1789
1772
  muted: false,
1790
1773
  open: false,
1791
1774
  trigger: 'hover',
1792
- onOpenChange: function() {},
1793
- onChange: function() {}
1775
+ onOpenChange: function onOpenChange() {},
1776
+ onChange: function onChange() {}
1794
1777
  };
1795
1778
  /**
1796
1779
  * 音量调节控件
1797
1780
  * @category Control
1798
1781
  */ var Volume = /*#__PURE__*/ function(Control) {
1799
- _inherits$t(Volume, Control);
1782
+ _inherits$u(Volume, Control);
1800
1783
  function Volume(options) {
1801
1784
  if (options === void 0) options = {};
1802
1785
  var _this;
1803
1786
  var _this__options_props, _this__options_props1, _this__options_props2, _this__options_props3;
1804
- _this = Control.call(this, _extends$t({}, options, {
1787
+ _this = Control.call(this, _extends$u({}, options, {
1805
1788
  tagName: 'span',
1806
1789
  classNameSuffix: 'volume',
1807
1790
  controlType: 'button'
@@ -1818,7 +1801,7 @@ var VOLUME_DEFAULT_OPTIONS = {
1818
1801
  if (!(Utils.isMobile || _this._options.PLAY_TYPE === 'ezopen' || _this._options.PLAY_TYPE === 'ezhls')) {
1819
1802
  var _this__options_props4, _this__options_props5;
1820
1803
  _this.picker = new Picker(_this.$container, {
1821
- getPopupContainer: function() {
1804
+ getPopupContainer: function getPopupContainer() {
1822
1805
  return _this.$container;
1823
1806
  },
1824
1807
  trigger: _this._options.trigger,
@@ -1829,7 +1812,7 @@ var VOLUME_DEFAULT_OPTIONS = {
1829
1812
  -10
1830
1813
  ],
1831
1814
  placement: 'top',
1832
- onOpenChange: function(open) {
1815
+ onOpenChange: function onOpenChange(open) {
1833
1816
  _this._options.onOpenChange == null ? void 0 : _this._options.onOpenChange.call(_this._options, open, _this._muted ? _this._lastVolume : _this.volume, _this._muted);
1834
1817
  // prettier-ignore
1835
1818
  _this.emit(EVENTS.control.volumePanelOpenChange, open, _this._lastVolume, _this._muted);
@@ -1846,10 +1829,10 @@ var VOLUME_DEFAULT_OPTIONS = {
1846
1829
  showPercent: true,
1847
1830
  className: "" + PREFIX_CLASS + "-volume-progress",
1848
1831
  // 为了解决点击进度调取消静音
1849
- onProgressClick: function() {
1832
+ onProgressClick: function onProgressClick() {
1850
1833
  _this.muted = false;
1851
1834
  },
1852
- onChange: function(value) {
1835
+ onChange: function onChange(value) {
1853
1836
  if (value !== _this._volume) _this.volume = value;
1854
1837
  }
1855
1838
  });
@@ -2026,11 +2009,8 @@ function asyncGeneratorStep$7(gen, resolve, reject, _next, _throw, key, arg) {
2026
2009
  reject(error);
2027
2010
  return;
2028
2011
  }
2029
- if (info.done) {
2030
- resolve(value);
2031
- } else {
2032
- Promise.resolve(value).then(_next, _throw);
2033
- }
2012
+ if (info.done) resolve(value);
2013
+ else Promise.resolve(value).then(_next, _throw);
2034
2014
  }
2035
2015
  function _async_to_generator$7(fn) {
2036
2016
  return function() {
@@ -2056,9 +2036,17 @@ function _ts_generator$7(thisArg, body) {
2056
2036
  },
2057
2037
  trys: [],
2058
2038
  ops: []
2059
- }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
2060
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
2061
- return this;
2039
+ }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
2040
+ return d(g, "next", {
2041
+ value: verb(0)
2042
+ }), d(g, "throw", {
2043
+ value: verb(1)
2044
+ }), d(g, "return", {
2045
+ value: verb(2)
2046
+ }), typeof Symbol === "function" && d(g, Symbol.iterator, {
2047
+ value: function() {
2048
+ return this;
2049
+ }
2062
2050
  }), g;
2063
2051
  function verb(n) {
2064
2052
  return function(v) {
@@ -2461,21 +2449,17 @@ var __fullscreenProvider__ = Provider.getInstance();
2461
2449
  return Fullscreen;
2462
2450
  }();
2463
2451
 
2464
- function _extends$s() {
2465
- _extends$s = Object.assign || function(target) {
2452
+ function _extends$t() {
2453
+ _extends$t = Object.assign || function assign(target) {
2466
2454
  for(var i = 1; i < arguments.length; i++){
2467
2455
  var source = arguments[i];
2468
- for(var key in source){
2469
- if (Object.prototype.hasOwnProperty.call(source, key)) {
2470
- target[key] = source[key];
2471
- }
2472
- }
2456
+ for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
2473
2457
  }
2474
2458
  return target;
2475
2459
  };
2476
- return _extends$s.apply(this, arguments);
2460
+ return _extends$t.apply(this, arguments);
2477
2461
  }
2478
- function _inherits$s(subClass, superClass) {
2462
+ function _inherits$t(subClass, superClass) {
2479
2463
  if (typeof superClass !== "function" && superClass !== null) {
2480
2464
  throw new TypeError("Super expression must either be null or a function");
2481
2465
  }
@@ -2486,24 +2470,24 @@ function _inherits$s(subClass, superClass) {
2486
2470
  configurable: true
2487
2471
  }
2488
2472
  });
2489
- if (superClass) _set_prototype_of$s(subClass, superClass);
2473
+ if (superClass) _set_prototype_of$t(subClass, superClass);
2490
2474
  }
2491
- function _set_prototype_of$s(o, p) {
2492
- _set_prototype_of$s = Object.setPrototypeOf || function setPrototypeOf(o, p) {
2475
+ function _set_prototype_of$t(o, p) {
2476
+ _set_prototype_of$t = Object.setPrototypeOf || function setPrototypeOf(o, p) {
2493
2477
  o.__proto__ = p;
2494
2478
  return o;
2495
2479
  };
2496
- return _set_prototype_of$s(o, p);
2480
+ return _set_prototype_of$t(o, p);
2497
2481
  }
2498
2482
  /**
2499
2483
  * 全屏控件
2500
2484
  * @category Control
2501
2485
  */ var Fullscreen = /*#__PURE__*/ function(Control) {
2502
- _inherits$s(Fullscreen, Control);
2486
+ _inherits$t(Fullscreen, Control);
2503
2487
  function Fullscreen(options) {
2504
2488
  var _this;
2505
2489
  var _options_props, _this_options;
2506
- _this = Control.call(this, _extends$s({
2490
+ _this = Control.call(this, _extends$t({
2507
2491
  tagName: 'span',
2508
2492
  classNameSuffix: 'fullscreen',
2509
2493
  controlType: 'button'
@@ -2568,21 +2552,17 @@ function _set_prototype_of$s(o, p) {
2568
2552
  return Fullscreen;
2569
2553
  }(Control);
2570
2554
 
2571
- function _extends$r() {
2572
- _extends$r = Object.assign || function(target) {
2555
+ function _extends$s() {
2556
+ _extends$s = Object.assign || function assign(target) {
2573
2557
  for(var i = 1; i < arguments.length; i++){
2574
2558
  var source = arguments[i];
2575
- for(var key in source){
2576
- if (Object.prototype.hasOwnProperty.call(source, key)) {
2577
- target[key] = source[key];
2578
- }
2579
- }
2559
+ for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
2580
2560
  }
2581
2561
  return target;
2582
2562
  };
2583
- return _extends$r.apply(this, arguments);
2563
+ return _extends$s.apply(this, arguments);
2584
2564
  }
2585
- function _inherits$r(subClass, superClass) {
2565
+ function _inherits$s(subClass, superClass) {
2586
2566
  if (typeof superClass !== "function" && superClass !== null) {
2587
2567
  throw new TypeError("Super expression must either be null or a function");
2588
2568
  }
@@ -2593,24 +2573,24 @@ function _inherits$r(subClass, superClass) {
2593
2573
  configurable: true
2594
2574
  }
2595
2575
  });
2596
- if (superClass) _set_prototype_of$r(subClass, superClass);
2576
+ if (superClass) _set_prototype_of$s(subClass, superClass);
2597
2577
  }
2598
- function _set_prototype_of$r(o, p) {
2599
- _set_prototype_of$r = Object.setPrototypeOf || function setPrototypeOf(o, p) {
2578
+ function _set_prototype_of$s(o, p) {
2579
+ _set_prototype_of$s = Object.setPrototypeOf || function setPrototypeOf(o, p) {
2600
2580
  o.__proto__ = p;
2601
2581
  return o;
2602
2582
  };
2603
- return _set_prototype_of$r(o, p);
2583
+ return _set_prototype_of$s(o, p);
2604
2584
  }
2605
2585
  /**
2606
2586
  * 回放类型切换(本地回放(sdk 卡), 云存储回放, 云录制回放)控件
2607
2587
  * @category Control
2608
2588
  */ var Rec = /*#__PURE__*/ function(Control) {
2609
- _inherits$r(Rec, Control);
2589
+ _inherits$s(Rec, Control);
2610
2590
  function Rec(options) {
2611
2591
  var _this;
2612
2592
  var _options_props;
2613
- _this = Control.call(this, _extends$r({}, options, {
2593
+ _this = Control.call(this, _extends$s({}, options, {
2614
2594
  tagName: 'div',
2615
2595
  controlType: 'block',
2616
2596
  classNameSuffix: 'rec'
@@ -3950,7 +3930,7 @@ var en = {
3950
3930
  voice: voice
3951
3931
  };
3952
3932
 
3953
- function _inherits$q(subClass, superClass) {
3933
+ function _inherits$r(subClass, superClass) {
3954
3934
  if (typeof superClass !== "function" && superClass !== null) {
3955
3935
  throw new TypeError("Super expression must either be null or a function");
3956
3936
  }
@@ -3961,20 +3941,20 @@ function _inherits$q(subClass, superClass) {
3961
3941
  configurable: true
3962
3942
  }
3963
3943
  });
3964
- if (superClass) _set_prototype_of$q(subClass, superClass);
3944
+ if (superClass) _set_prototype_of$r(subClass, superClass);
3965
3945
  }
3966
- function _set_prototype_of$q(o, p) {
3967
- _set_prototype_of$q = Object.setPrototypeOf || function setPrototypeOf(o, p) {
3946
+ function _set_prototype_of$r(o, p) {
3947
+ _set_prototype_of$r = Object.setPrototypeOf || function setPrototypeOf(o, p) {
3968
3948
  o.__proto__ = p;
3969
3949
  return o;
3970
3950
  };
3971
- return _set_prototype_of$q(o, p);
3951
+ return _set_prototype_of$r(o, p);
3972
3952
  }
3973
3953
  /**
3974
3954
  * 截图控件
3975
3955
  * @category Content
3976
3956
  */ var Content = /*#__PURE__*/ function(EventEmitter) {
3977
- _inherits$q(Content, EventEmitter);
3957
+ _inherits$r(Content, EventEmitter);
3978
3958
  function Content(options) {
3979
3959
  var _this;
3980
3960
  _this = EventEmitter.call(this) || this, _this._scaleMode = 0, _this._cleanUpResizeObserver = null, _this._originWidth = 0, _this._originHeight = 0, _this._width = 0, _this._height = 0;
@@ -4089,21 +4069,17 @@ function _set_prototype_of$q(o, p) {
4089
4069
  return Content;
4090
4070
  }(EventEmitter);
4091
4071
 
4092
- function _extends$q() {
4093
- _extends$q = Object.assign || function(target) {
4072
+ function _extends$r() {
4073
+ _extends$r = Object.assign || function assign(target) {
4094
4074
  for(var i = 1; i < arguments.length; i++){
4095
4075
  var source = arguments[i];
4096
- for(var key in source){
4097
- if (Object.prototype.hasOwnProperty.call(source, key)) {
4098
- target[key] = source[key];
4099
- }
4100
- }
4076
+ for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
4101
4077
  }
4102
4078
  return target;
4103
4079
  };
4104
- return _extends$q.apply(this, arguments);
4080
+ return _extends$r.apply(this, arguments);
4105
4081
  }
4106
- function _inherits$p(subClass, superClass) {
4082
+ function _inherits$q(subClass, superClass) {
4107
4083
  if (typeof superClass !== "function" && superClass !== null) {
4108
4084
  throw new TypeError("Super expression must either be null or a function");
4109
4085
  }
@@ -4114,23 +4090,23 @@ function _inherits$p(subClass, superClass) {
4114
4090
  configurable: true
4115
4091
  }
4116
4092
  });
4117
- if (superClass) _set_prototype_of$p(subClass, superClass);
4093
+ if (superClass) _set_prototype_of$q(subClass, superClass);
4118
4094
  }
4119
- function _set_prototype_of$p(o, p) {
4120
- _set_prototype_of$p = Object.setPrototypeOf || function setPrototypeOf(o, p) {
4095
+ function _set_prototype_of$q(o, p) {
4096
+ _set_prototype_of$q = Object.setPrototypeOf || function setPrototypeOf(o, p) {
4121
4097
  o.__proto__ = p;
4122
4098
  return o;
4123
4099
  };
4124
- return _set_prototype_of$p(o, p);
4100
+ return _set_prototype_of$q(o, p);
4125
4101
  }
4126
4102
  /**
4127
4103
  * 更多控件
4128
4104
  * @category Control
4129
4105
  */ var More = /*#__PURE__*/ function(Control) {
4130
- _inherits$p(More, Control);
4106
+ _inherits$q(More, Control);
4131
4107
  function More(options) {
4132
4108
  var _this;
4133
- _this = Control.call(this, _extends$q({}, options, {
4109
+ _this = Control.call(this, _extends$r({}, options, {
4134
4110
  tagName: 'span',
4135
4111
  controlType: 'button',
4136
4112
  classNameSuffix: 'more'
@@ -4149,7 +4125,7 @@ function _set_prototype_of$p(o, p) {
4149
4125
  title: (_this_locale1 = this.locale) == null ? void 0 : _this_locale1.BTN_MORE
4150
4126
  });
4151
4127
  this.picker = new Picker(this.$container, {
4152
- getPopupContainer: function() {
4128
+ getPopupContainer: function getPopupContainer() {
4153
4129
  return _this.$container;
4154
4130
  },
4155
4131
  trigger: Utils.isMobile ? 'click' : 'hover',
@@ -4412,14 +4388,22 @@ function debounce(func, wait) {
4412
4388
  // 回放片段
4413
4389
  // =======================================================
4414
4390
  theme.on(EVENTS.setAllDayRecTimes, function(list) {
4415
- var _theme_controls_timeLineControl_emit, _theme_controls_timeLineControl, _theme_controls, _theme_controls_recListControl_emit, _theme_controls_recListControl, _theme_controls1;
4391
+ var _theme_controls_timeLineControl_emit, _theme_controls_timeLineControl, _theme_controls, _theme_controls_recListControl_emit, _theme_controls_recListControl, _theme_controls1, // 播放区间存在时录像列表已在服务端侧按区间查询,这里无需再过滤
4392
+ _theme_controls_segmentProgressControl_emit, _theme_controls_segmentProgressControl, _theme_controls2;
4416
4393
  (_theme_controls = theme.controls) == null ? void 0 : (_theme_controls_timeLineControl = _theme_controls.timeLineControl) == null ? void 0 : (_theme_controls_timeLineControl_emit = _theme_controls_timeLineControl.emit) == null ? void 0 : _theme_controls_timeLineControl_emit.call(_theme_controls_timeLineControl, EVENTS.setAllDayRecTimes, list.list);
4417
4394
  (_theme_controls1 = theme.controls) == null ? void 0 : (_theme_controls_recListControl = _theme_controls1.recListControl) == null ? void 0 : (_theme_controls_recListControl_emit = _theme_controls_recListControl.emit) == null ? void 0 : _theme_controls_recListControl_emit.call(_theme_controls_recListControl, EVENTS.setAllDayRecTimes, list.list);
4395
+ (_theme_controls2 = theme.controls) == null ? void 0 : (_theme_controls_segmentProgressControl = _theme_controls2.segmentProgressControl) == null ? void 0 : (_theme_controls_segmentProgressControl_emit = _theme_controls_segmentProgressControl.emit) == null ? void 0 : _theme_controls_segmentProgressControl_emit.call(_theme_controls_segmentProgressControl, EVENTS.setAllDayRecTimes, list.list);
4418
4396
  });
4419
4397
  theme.on(EVENTS.getOSDTime, function(time) {
4420
- var _theme_controls_timeLineControl_emit, _theme_controls_timeLineControl, _theme_controls, _theme_controls_recListControl_emit, _theme_controls_recListControl, _theme_controls1;
4398
+ var _theme_controls_timeLineControl_emit, _theme_controls_timeLineControl, _theme_controls, _theme_controls_recListControl_emit, _theme_controls_recListControl, _theme_controls1, _theme_controls_segmentProgressControl_emit, _theme_controls_segmentProgressControl, _theme_controls2;
4421
4399
  (_theme_controls = theme.controls) == null ? void 0 : (_theme_controls_timeLineControl = _theme_controls.timeLineControl) == null ? void 0 : (_theme_controls_timeLineControl_emit = _theme_controls_timeLineControl.emit) == null ? void 0 : _theme_controls_timeLineControl_emit.call(_theme_controls_timeLineControl, EVENTS.getOSDTime, time.data);
4422
4400
  (_theme_controls1 = theme.controls) == null ? void 0 : (_theme_controls_recListControl = _theme_controls1.recListControl) == null ? void 0 : (_theme_controls_recListControl_emit = _theme_controls_recListControl.emit) == null ? void 0 : _theme_controls_recListControl_emit.call(_theme_controls_recListControl, EVENTS.getOSDTime, time.data);
4401
+ (_theme_controls2 = theme.controls) == null ? void 0 : (_theme_controls_segmentProgressControl = _theme_controls2.segmentProgressControl) == null ? void 0 : (_theme_controls_segmentProgressControl_emit = _theme_controls_segmentProgressControl.emit) == null ? void 0 : _theme_controls_segmentProgressControl_emit.call(_theme_controls_segmentProgressControl, EVENTS.getOSDTime, time.data);
4402
+ });
4403
+ // 区间播放结束:进度条需要把完成度补到末端(OSD 通常停在末端之前若干秒)
4404
+ theme.on(EVENTS.playbackEnd, function(data) {
4405
+ var _theme_controls_segmentProgressControl_emit, _theme_controls_segmentProgressControl, _theme_controls;
4406
+ (_theme_controls = theme.controls) == null ? void 0 : (_theme_controls_segmentProgressControl = _theme_controls.segmentProgressControl) == null ? void 0 : (_theme_controls_segmentProgressControl_emit = _theme_controls_segmentProgressControl.emit) == null ? void 0 : _theme_controls_segmentProgressControl_emit.call(_theme_controls_segmentProgressControl, EVENTS.playbackEnd, data);
4423
4407
  });
4424
4408
  // =======================================================
4425
4409
  // 全屏
@@ -4465,7 +4449,7 @@ function debounce(func, wait) {
4465
4449
  *
4466
4450
  * @param theme - Theme
4467
4451
  */ function _controlEventemitter(theme) {
4468
- var _theme_controls, _theme_controls1, _theme_controls2, _theme_controls3, _theme_controls4, _theme_controls5, _theme_controls6, _theme_controls7, _theme_controls8, _theme_controls9, _theme_controls10, _theme_controls11, _theme_controls12, _theme_controls13, _theme_controls14, _theme_controls15, _theme_controls16, _theme_controls17, _theme_controls18, _theme_controls19, _theme_controls20, _theme_controls21, _theme_controls22, _theme_controls23, _theme_controls24;
4452
+ var _theme_controls, _theme_controls1, _theme_controls2, _theme_controls3, _theme_controls4, _theme_controls5, _theme_controls6, _theme_controls7, _theme_controls8, _theme_controls9, _theme_controls10, _theme_controls11, _theme_controls12, _theme_controls13, _theme_controls14, _theme_controls15, _theme_controls16, _theme_controls17, _theme_controls18, _theme_controls19, _theme_controls20, _theme_controls21, _theme_controls22, _theme_controls23, _theme_controls24, _theme_controls25;
4469
4453
  // Controls
4470
4454
  if (theme._recFooter) {
4471
4455
  theme._recFooter.on(EVENTS.theme.recFooterDestroy, function() {
@@ -4730,8 +4714,15 @@ function debounce(func, wait) {
4730
4714
  theme.emit(EVENTS.control.recDestroy);
4731
4715
  });
4732
4716
  }
4717
+ // 回放片段进度条控件:拖动/点击后与时间轴共用同一条 seek 通道,
4718
+ // 这里必须把控件实例上的事件中继到 theme,否则 SDK 层收不到(拖动看似生效但不会 seek)
4719
+ if ((_theme_controls21 = theme.controls) == null ? void 0 : _theme_controls21.segmentProgressControl) {
4720
+ theme.controls.segmentProgressControl.on(EVENTS.control.timeLineChange, function(date) {
4721
+ theme.emit(EVENTS.control.timeLineChange, date);
4722
+ });
4723
+ }
4733
4724
  // 时间轴控件
4734
- if ((_theme_controls21 = theme.controls) == null ? void 0 : _theme_controls21.timeLineControl) {
4725
+ if ((_theme_controls22 = theme.controls) == null ? void 0 : _theme_controls22.timeLineControl) {
4735
4726
  theme.controls.timeLineControl.on(EVENTS.control.timeLineChange, function(date) {
4736
4727
  theme.emit(EVENTS.control.timeLineChange, date);
4737
4728
  });
@@ -4761,7 +4752,7 @@ function debounce(func, wait) {
4761
4752
  });
4762
4753
  }
4763
4754
  // 日历控件
4764
- if ((_theme_controls22 = theme.controls) == null ? void 0 : _theme_controls22.dateControl) {
4755
+ if ((_theme_controls23 = theme.controls) == null ? void 0 : _theme_controls23.dateControl) {
4765
4756
  theme.controls.dateControl.on(EVENTS.control.datePanelOpenChange, function(open, date) {
4766
4757
  theme.emit(EVENTS.control.datePanelOpenChange, open, date);
4767
4758
  });
@@ -4773,7 +4764,7 @@ function debounce(func, wait) {
4773
4764
  });
4774
4765
  }
4775
4766
  // 时间控件
4776
- if ((_theme_controls23 = theme.controls) == null ? void 0 : _theme_controls23.timeControl) {
4767
+ if ((_theme_controls24 = theme.controls) == null ? void 0 : _theme_controls24.timeControl) {
4777
4768
  theme.controls.timeControl.on(EVENTS.control.timePanelOpenChange, function(open, time) {
4778
4769
  theme.emit(EVENTS.control.timePanelOpenChange, open, time);
4779
4770
  });
@@ -4782,7 +4773,7 @@ function debounce(func, wait) {
4782
4773
  });
4783
4774
  }
4784
4775
  // 回放片段列表
4785
- if ((_theme_controls24 = theme.controls) == null ? void 0 : _theme_controls24.recListControl) {
4776
+ if ((_theme_controls25 = theme.controls) == null ? void 0 : _theme_controls25.recListControl) {
4786
4777
  theme.controls.recListControl.on(EVENTS.control.recListCardClick, function(section, index, sections) {
4787
4778
  theme.emit(EVENTS.control.recListCardClick, section, index, sections);
4788
4779
  });
@@ -4872,21 +4863,17 @@ function _create_class$5(Constructor, protoProps, staticProps) {
4872
4863
  if (protoProps) _defineProperties$5(Constructor.prototype, protoProps);
4873
4864
  return Constructor;
4874
4865
  }
4875
- function _extends$p() {
4876
- _extends$p = Object.assign || function(target) {
4866
+ function _extends$q() {
4867
+ _extends$q = Object.assign || function assign(target) {
4877
4868
  for(var i = 1; i < arguments.length; i++){
4878
4869
  var source = arguments[i];
4879
- for(var key in source){
4880
- if (Object.prototype.hasOwnProperty.call(source, key)) {
4881
- target[key] = source[key];
4882
- }
4883
- }
4870
+ for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
4884
4871
  }
4885
4872
  return target;
4886
4873
  };
4887
- return _extends$p.apply(this, arguments);
4874
+ return _extends$q.apply(this, arguments);
4888
4875
  }
4889
- function _inherits$o(subClass, superClass) {
4876
+ function _inherits$p(subClass, superClass) {
4890
4877
  if (typeof superClass !== "function" && superClass !== null) {
4891
4878
  throw new TypeError("Super expression must either be null or a function");
4892
4879
  }
@@ -4897,14 +4884,14 @@ function _inherits$o(subClass, superClass) {
4897
4884
  configurable: true
4898
4885
  }
4899
4886
  });
4900
- if (superClass) _set_prototype_of$o(subClass, superClass);
4887
+ if (superClass) _set_prototype_of$p(subClass, superClass);
4901
4888
  }
4902
- function _set_prototype_of$o(o, p) {
4903
- _set_prototype_of$o = Object.setPrototypeOf || function setPrototypeOf(o, p) {
4889
+ function _set_prototype_of$p(o, p) {
4890
+ _set_prototype_of$p = Object.setPrototypeOf || function setPrototypeOf(o, p) {
4904
4891
  o.__proto__ = p;
4905
4892
  return o;
4906
4893
  };
4907
- return _set_prototype_of$o(o, p);
4894
+ return _set_prototype_of$p(o, p);
4908
4895
  }
4909
4896
  var ZOOM_DEFAULT_OPTIONS = {
4910
4897
  open: false,
@@ -4914,10 +4901,10 @@ var ZOOM_DEFAULT_OPTIONS = {
4914
4901
  * 电子放大控件
4915
4902
  * @category Control
4916
4903
  */ var Zoom = /*#__PURE__*/ function(Control) {
4917
- _inherits$o(Zoom, Control);
4904
+ _inherits$p(Zoom, Control);
4918
4905
  function Zoom(options) {
4919
4906
  var _this;
4920
- _this = Control.call(this, _extends$p({}, options, {
4907
+ _this = Control.call(this, _extends$q({}, options, {
4921
4908
  tagName: 'span',
4922
4909
  controlType: 'button',
4923
4910
  classNameSuffix: 'zoom'
@@ -4959,14 +4946,14 @@ var ZOOM_DEFAULT_OPTIONS = {
4959
4946
  showPlus: true,
4960
4947
  showPercent: true,
4961
4948
  isRotated: this._isRotated,
4962
- onChange: function(value, percent, range) {
4949
+ onChange: function onChange(value, percent, range) {
4963
4950
  if (value !== _this._value) {
4964
4951
  _this._value = value;
4965
4952
  _this._options.onChange == null ? void 0 : _this._options.onChange.call(_this._options, value, percent, range);
4966
4953
  _this.emit(EVENTS.control.zoomChange, value, percent, range);
4967
4954
  }
4968
4955
  },
4969
- renderText: function(value) {
4956
+ renderText: function renderText(value) {
4970
4957
  return "" + value + "X";
4971
4958
  }
4972
4959
  });
@@ -5045,31 +5032,27 @@ var ZOOM_DEFAULT_OPTIONS = {
5045
5032
  return Zoom;
5046
5033
  }(Control);
5047
5034
 
5048
- function _extends$o() {
5049
- _extends$o = Object.assign || function(target) {
5035
+ function _extends$p() {
5036
+ _extends$p = Object.assign || function assign(target) {
5050
5037
  for(var i = 1; i < arguments.length; i++){
5051
5038
  var source = arguments[i];
5052
- for(var key in source){
5053
- if (Object.prototype.hasOwnProperty.call(source, key)) {
5054
- target[key] = source[key];
5055
- }
5056
- }
5039
+ for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
5057
5040
  }
5058
5041
  return target;
5059
5042
  };
5060
- return _extends$o.apply(this, arguments);
5043
+ return _extends$p.apply(this, arguments);
5061
5044
  }
5062
5045
  function __zoom(theme, container, options) {
5063
- theme.zoomUtil = new Zoom$1(container, _extends$o({}, options || {}, {
5046
+ theme.zoomUtil = new Zoom$1(container, _extends$p({}, options || {}, {
5064
5047
  min: 1,
5065
- onChange: function(zoom, reset) {
5048
+ onChange: function onChange(zoom, reset) {
5066
5049
  if (zoom !== theme._zoom) {
5067
5050
  var _options_onChange;
5068
5051
  theme.zoom = zoom;
5069
5052
  options == null ? void 0 : (_options_onChange = options.onChange) == null ? void 0 : _options_onChange.call(options, zoom, reset);
5070
5053
  }
5071
5054
  },
5072
- onTranslateChange: function(pos) {
5055
+ onTranslateChange: function onTranslateChange(pos) {
5073
5056
  var _options_onTranslateChange;
5074
5057
  theme.emit(EVENTS.zoomTranslateChange, pos);
5075
5058
  options == null ? void 0 : (_options_onTranslateChange = options.onTranslateChange) == null ? void 0 : _options_onTranslateChange.call(options, pos);
@@ -5086,11 +5069,8 @@ function asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, key, arg) {
5086
5069
  reject(error);
5087
5070
  return;
5088
5071
  }
5089
- if (info.done) {
5090
- resolve(value);
5091
- } else {
5092
- Promise.resolve(value).then(_next, _throw);
5093
- }
5072
+ if (info.done) resolve(value);
5073
+ else Promise.resolve(value).then(_next, _throw);
5094
5074
  }
5095
5075
  function _async_to_generator$6(fn) {
5096
5076
  return function() {
@@ -5116,9 +5096,17 @@ function _ts_generator$6(thisArg, body) {
5116
5096
  },
5117
5097
  trys: [],
5118
5098
  ops: []
5119
- }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
5120
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
5121
- return this;
5099
+ }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
5100
+ return d(g, "next", {
5101
+ value: verb(0)
5102
+ }), d(g, "throw", {
5103
+ value: verb(1)
5104
+ }), d(g, "return", {
5105
+ value: verb(2)
5106
+ }), typeof Symbol === "function" && d(g, Symbol.iterator, {
5107
+ value: function() {
5108
+ return this;
5109
+ }
5122
5110
  }), g;
5123
5111
  function verb(n) {
5124
5112
  return function(v) {
@@ -5274,11 +5262,8 @@ function asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, key, arg) {
5274
5262
  reject(error);
5275
5263
  return;
5276
5264
  }
5277
- if (info.done) {
5278
- resolve(value);
5279
- } else {
5280
- Promise.resolve(value).then(_next, _throw);
5281
- }
5265
+ if (info.done) resolve(value);
5266
+ else Promise.resolve(value).then(_next, _throw);
5282
5267
  }
5283
5268
  function _async_to_generator$5(fn) {
5284
5269
  return function() {
@@ -5295,19 +5280,15 @@ function _async_to_generator$5(fn) {
5295
5280
  });
5296
5281
  };
5297
5282
  }
5298
- function _extends$n() {
5299
- _extends$n = Object.assign || function(target) {
5283
+ function _extends$o() {
5284
+ _extends$o = Object.assign || function assign(target) {
5300
5285
  for(var i = 1; i < arguments.length; i++){
5301
5286
  var source = arguments[i];
5302
- for(var key in source){
5303
- if (Object.prototype.hasOwnProperty.call(source, key)) {
5304
- target[key] = source[key];
5305
- }
5306
- }
5287
+ for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
5307
5288
  }
5308
5289
  return target;
5309
5290
  };
5310
- return _extends$n.apply(this, arguments);
5291
+ return _extends$o.apply(this, arguments);
5311
5292
  }
5312
5293
  function _ts_generator$5(thisArg, body) {
5313
5294
  var f, y, t, _ = {
@@ -5318,9 +5299,17 @@ function _ts_generator$5(thisArg, body) {
5318
5299
  },
5319
5300
  trys: [],
5320
5301
  ops: []
5321
- }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
5322
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
5323
- return this;
5302
+ }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
5303
+ return d(g, "next", {
5304
+ value: verb(0)
5305
+ }), d(g, "throw", {
5306
+ value: verb(1)
5307
+ }), d(g, "return", {
5308
+ value: verb(2)
5309
+ }), typeof Symbol === "function" && d(g, Symbol.iterator, {
5310
+ value: function() {
5311
+ return this;
5312
+ }
5324
5313
  }), g;
5325
5314
  function verb(n) {
5326
5315
  return function(v) {
@@ -5413,10 +5402,10 @@ function _ts_generator$5(thisArg, body) {
5413
5402
  * @param {IThemeData} themeData 主题数据
5414
5403
  * @returns
5415
5404
  */ function _filterControls(themeData) {
5405
+ var _ref;
5416
5406
  var _themeData_header, _themeData_footer;
5417
5407
  var data = {};
5418
- var _themeData_autoFocus;
5419
- data.autoFocus = (_themeData_autoFocus = themeData == null ? void 0 : themeData.autoFocus) != null ? _themeData_autoFocus : 3; // 3s
5408
+ data.autoFocus = (_ref = themeData == null ? void 0 : themeData.autoFocus) != null ? _ref : 3; // 3s
5420
5409
  data.poster = (themeData == null ? void 0 : themeData.poster) || ''; //
5421
5410
  var deviceControls = [];
5422
5411
  var recControls = [];
@@ -5435,7 +5424,7 @@ function _ts_generator$5(thisArg, body) {
5435
5424
  }
5436
5425
  if (item.isrender !== 0 && REC_GROUP.includes(item.iconId)) {
5437
5426
  // TODO: 因为回放是一组, 位置以第一个位置为准
5438
- recControls.push(recControls[0] ? _extends$n({}, item, {
5427
+ recControls.push(recControls[0] ? _extends$o({}, item, {
5439
5428
  part: recControls[0].part
5440
5429
  }) : item);
5441
5430
  return false;
@@ -5458,7 +5447,7 @@ function _ts_generator$5(thisArg, body) {
5458
5447
  }
5459
5448
  if (item.isrender !== 0 && REC_GROUP.includes(item.iconId)) {
5460
5449
  // TODO: 因为回放是一组, 位置以第一个位置为准
5461
- recControls.push(recControls[0] ? _extends$n({}, item, {
5450
+ recControls.push(recControls[0] ? _extends$o({}, item, {
5462
5451
  part: recControls[0].part
5463
5452
  }) : item);
5464
5453
  return false;
@@ -5720,21 +5709,17 @@ function rgbOrHexToRgbaWithOpacity(color, opacity) {
5720
5709
  return Component;
5721
5710
  }();
5722
5711
 
5723
- function _extends$m() {
5724
- _extends$m = Object.assign || function(target) {
5712
+ function _extends$n() {
5713
+ _extends$n = Object.assign || function assign(target) {
5725
5714
  for(var i = 1; i < arguments.length; i++){
5726
5715
  var source = arguments[i];
5727
- for(var key in source){
5728
- if (Object.prototype.hasOwnProperty.call(source, key)) {
5729
- target[key] = source[key];
5730
- }
5731
- }
5716
+ for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
5732
5717
  }
5733
5718
  return target;
5734
5719
  };
5735
- return _extends$m.apply(this, arguments);
5720
+ return _extends$n.apply(this, arguments);
5736
5721
  }
5737
- function _inherits$n(subClass, superClass) {
5722
+ function _inherits$o(subClass, superClass) {
5738
5723
  if (typeof superClass !== "function" && superClass !== null) {
5739
5724
  throw new TypeError("Super expression must either be null or a function");
5740
5725
  }
@@ -5745,41 +5730,37 @@ function _inherits$n(subClass, superClass) {
5745
5730
  configurable: true
5746
5731
  }
5747
5732
  });
5748
- if (superClass) _set_prototype_of$n(subClass, superClass);
5733
+ if (superClass) _set_prototype_of$o(subClass, superClass);
5749
5734
  }
5750
- function _set_prototype_of$n(o, p) {
5751
- _set_prototype_of$n = Object.setPrototypeOf || function setPrototypeOf(o, p) {
5735
+ function _set_prototype_of$o(o, p) {
5736
+ _set_prototype_of$o = Object.setPrototypeOf || function setPrototypeOf(o, p) {
5752
5737
  o.__proto__ = p;
5753
5738
  return o;
5754
5739
  };
5755
- return _set_prototype_of$n(o, p);
5740
+ return _set_prototype_of$o(o, p);
5756
5741
  }
5757
5742
  var Footer = /*#__PURE__*/ function(Component) {
5758
- _inherits$n(Footer, Component);
5743
+ _inherits$o(Footer, Component);
5759
5744
  function Footer(options) {
5760
5745
  if (options === void 0) options = {};
5761
- return Component.call(this, _extends$m({}, options, {
5746
+ return Component.call(this, _extends$n({}, options, {
5762
5747
  cType: 'footer'
5763
5748
  })) || this;
5764
5749
  }
5765
5750
  return Footer;
5766
5751
  }(Component);
5767
5752
 
5768
- function _extends$l() {
5769
- _extends$l = Object.assign || function(target) {
5753
+ function _extends$m() {
5754
+ _extends$m = Object.assign || function assign(target) {
5770
5755
  for(var i = 1; i < arguments.length; i++){
5771
5756
  var source = arguments[i];
5772
- for(var key in source){
5773
- if (Object.prototype.hasOwnProperty.call(source, key)) {
5774
- target[key] = source[key];
5775
- }
5776
- }
5757
+ for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
5777
5758
  }
5778
5759
  return target;
5779
5760
  };
5780
- return _extends$l.apply(this, arguments);
5761
+ return _extends$m.apply(this, arguments);
5781
5762
  }
5782
- function _inherits$m(subClass, superClass) {
5763
+ function _inherits$n(subClass, superClass) {
5783
5764
  if (typeof superClass !== "function" && superClass !== null) {
5784
5765
  throw new TypeError("Super expression must either be null or a function");
5785
5766
  }
@@ -5790,20 +5771,20 @@ function _inherits$m(subClass, superClass) {
5790
5771
  configurable: true
5791
5772
  }
5792
5773
  });
5793
- if (superClass) _set_prototype_of$m(subClass, superClass);
5774
+ if (superClass) _set_prototype_of$n(subClass, superClass);
5794
5775
  }
5795
- function _set_prototype_of$m(o, p) {
5796
- _set_prototype_of$m = Object.setPrototypeOf || function setPrototypeOf(o, p) {
5776
+ function _set_prototype_of$n(o, p) {
5777
+ _set_prototype_of$n = Object.setPrototypeOf || function setPrototypeOf(o, p) {
5797
5778
  o.__proto__ = p;
5798
5779
  return o;
5799
5780
  };
5800
- return _set_prototype_of$m(o, p);
5781
+ return _set_prototype_of$n(o, p);
5801
5782
  }
5802
5783
  var Header = /*#__PURE__*/ function(Component) {
5803
- _inherits$m(Header, Component);
5784
+ _inherits$n(Header, Component);
5804
5785
  function Header(options) {
5805
5786
  if (options === void 0) options = {};
5806
- return Component.call(this, _extends$l({}, options, {
5787
+ return Component.call(this, _extends$m({}, options, {
5807
5788
  cType: 'header'
5808
5789
  })) || this;
5809
5790
  }
@@ -5825,13 +5806,13 @@ function interactiveHF($container, second, callback) {
5825
5806
  var _alwaysDisplay = false;
5826
5807
  var _$header = $container.querySelector("." + PREFIX_CLASS + "-header");
5827
5808
  var _$footer = $container.querySelector("." + PREFIX_CLASS + "-footer");
5828
- var _clearTimeout = function() {
5809
+ var _clearTimeout = function _clearTimeout() {
5829
5810
  if (_timer) {
5830
5811
  clearTimeout(_timer);
5831
5812
  _timer = null;
5832
5813
  }
5833
5814
  };
5834
- var _show = function() {
5815
+ var _show = function _show() {
5835
5816
  _clearTimeout == null ? void 0 : _clearTimeout();
5836
5817
  _$header == null ? void 0 : _$header.classList.remove("" + PREFIX_CLASS + "-hide-transition");
5837
5818
  _$footer == null ? void 0 : _$footer.classList.remove("" + PREFIX_CLASS + "-hide-transition");
@@ -5841,7 +5822,7 @@ function interactiveHF($container, second, callback) {
5841
5822
  }
5842
5823
  _open = true;
5843
5824
  };
5844
- var _hide = function() {
5825
+ var _hide = function _hide() {
5845
5826
  if (_alwaysDisplay) {
5846
5827
  return;
5847
5828
  }
@@ -5856,27 +5837,27 @@ function interactiveHF($container, second, callback) {
5856
5837
  }
5857
5838
  _open = false;
5858
5839
  };
5859
- var _setTimeoutShow = function() {
5840
+ var _setTimeoutShow = function _setTimeoutShow() {
5860
5841
  _show == null ? void 0 : _show();
5861
5842
  _timer = setTimeout(function() {
5862
5843
  _clearTimeout == null ? void 0 : _clearTimeout();
5863
5844
  _hide == null ? void 0 : _hide();
5864
5845
  }, second);
5865
5846
  };
5866
- var _headerFooterMousemove = function(e) {
5847
+ var _headerFooterMousemove = function _headerFooterMousemove(e) {
5867
5848
  var // 鼠标在header footer 移动, 不允许消失及不要冒泡
5868
5849
  _e_stopPropagation;
5869
5850
  e == null ? void 0 : (_e_stopPropagation = e.stopPropagation) == null ? void 0 : _e_stopPropagation.call(e);
5870
5851
  _clearTimeout == null ? void 0 : _clearTimeout();
5871
5852
  };
5872
- var _touchStart = function() {
5853
+ var _touchStart = function _touchStart() {
5873
5854
  if (_open) {
5874
5855
  _hide == null ? void 0 : _hide();
5875
5856
  } else {
5876
5857
  _setTimeoutShow == null ? void 0 : _setTimeoutShow();
5877
5858
  }
5878
5859
  };
5879
- var _headerFooterTouchStart = function(e) {
5860
+ var _headerFooterTouchStart = function _headerFooterTouchStart(e) {
5880
5861
  var // 移动端特殊处理, 点击 header footer不允许消失及不要冒泡
5881
5862
  _e_stopPropagation;
5882
5863
  e == null ? void 0 : (_e_stopPropagation = e.stopPropagation) == null ? void 0 : _e_stopPropagation.call(e);
@@ -5913,7 +5894,7 @@ function interactiveHF($container, second, callback) {
5913
5894
  }
5914
5895
  /**
5915
5896
  * 销毁
5916
- */ var cleanup = function() {
5897
+ */ var cleanup = function cleanup() {
5917
5898
  if ($container) {
5918
5899
  if (Utils.isMobile && _touchStart) {
5919
5900
  var eventName = "click";
@@ -5957,11 +5938,11 @@ function interactiveHF($container, second, callback) {
5957
5938
  };
5958
5939
  return {
5959
5940
  cleanup: cleanup,
5960
- clearTimeout: function() {
5941
+ clearTimeout: function clearTimeout1() {
5961
5942
  _clearTimeout == null ? void 0 : _clearTimeout();
5962
5943
  _alwaysDisplay = true;
5963
5944
  },
5964
- setTimeoutShow: function() {
5945
+ setTimeoutShow: function setTimeoutShow() {
5965
5946
  _setTimeoutShow == null ? void 0 : _setTimeoutShow();
5966
5947
  _alwaysDisplay = false;
5967
5948
  },
@@ -5969,21 +5950,17 @@ function interactiveHF($container, second, callback) {
5969
5950
  };
5970
5951
  }
5971
5952
 
5972
- function _extends$k() {
5973
- _extends$k = Object.assign || function(target) {
5953
+ function _extends$l() {
5954
+ _extends$l = Object.assign || function assign(target) {
5974
5955
  for(var i = 1; i < arguments.length; i++){
5975
5956
  var source = arguments[i];
5976
- for(var key in source){
5977
- if (Object.prototype.hasOwnProperty.call(source, key)) {
5978
- target[key] = source[key];
5979
- }
5980
- }
5957
+ for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
5981
5958
  }
5982
5959
  return target;
5983
5960
  };
5984
- return _extends$k.apply(this, arguments);
5961
+ return _extends$l.apply(this, arguments);
5985
5962
  }
5986
- function _inherits$l(subClass, superClass) {
5963
+ function _inherits$m(subClass, superClass) {
5987
5964
  if (typeof superClass !== "function" && superClass !== null) {
5988
5965
  throw new TypeError("Super expression must either be null or a function");
5989
5966
  }
@@ -5994,23 +5971,23 @@ function _inherits$l(subClass, superClass) {
5994
5971
  configurable: true
5995
5972
  }
5996
5973
  });
5997
- if (superClass) _set_prototype_of$l(subClass, superClass);
5974
+ if (superClass) _set_prototype_of$m(subClass, superClass);
5998
5975
  }
5999
- function _set_prototype_of$l(o, p) {
6000
- _set_prototype_of$l = Object.setPrototypeOf || function setPrototypeOf(o, p) {
5976
+ function _set_prototype_of$m(o, p) {
5977
+ _set_prototype_of$m = Object.setPrototypeOf || function setPrototypeOf(o, p) {
6001
5978
  o.__proto__ = p;
6002
5979
  return o;
6003
5980
  };
6004
- return _set_prototype_of$l(o, p);
5981
+ return _set_prototype_of$m(o, p);
6005
5982
  }
6006
5983
  /**
6007
5984
  * 全局全屏
6008
5985
  * 主题和播放器不提供全局全屏的api, 如果开发者想要可以参考这个组件自己实现
6009
5986
  * @category Control
6010
5987
  */ var GlobalFullscreen = /*#__PURE__*/ function(Fullscreen) {
6011
- _inherits$l(GlobalFullscreen, Fullscreen);
5988
+ _inherits$m(GlobalFullscreen, Fullscreen);
6012
5989
  function GlobalFullscreen(options) {
6013
- return Fullscreen.call(this, _extends$k({}, options, {
5990
+ return Fullscreen.call(this, _extends$l({}, options, {
6014
5991
  controlType: 'button',
6015
5992
  classNameSuffix: 'global-fullscreen'
6016
5993
  })) || this;
@@ -6041,21 +6018,17 @@ function _set_prototype_of$l(o, p) {
6041
6018
  return GlobalFullscreen;
6042
6019
  }(Fullscreen);
6043
6020
 
6044
- function _extends$j() {
6045
- _extends$j = Object.assign || function(target) {
6021
+ function _extends$k() {
6022
+ _extends$k = Object.assign || function assign(target) {
6046
6023
  for(var i = 1; i < arguments.length; i++){
6047
6024
  var source = arguments[i];
6048
- for(var key in source){
6049
- if (Object.prototype.hasOwnProperty.call(source, key)) {
6050
- target[key] = source[key];
6051
- }
6052
- }
6025
+ for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
6053
6026
  }
6054
6027
  return target;
6055
6028
  };
6056
- return _extends$j.apply(this, arguments);
6029
+ return _extends$k.apply(this, arguments);
6057
6030
  }
6058
- function _inherits$k(subClass, superClass) {
6031
+ function _inherits$l(subClass, superClass) {
6059
6032
  if (typeof superClass !== "function" && superClass !== null) {
6060
6033
  throw new TypeError("Super expression must either be null or a function");
6061
6034
  }
@@ -6066,23 +6039,23 @@ function _inherits$k(subClass, superClass) {
6066
6039
  configurable: true
6067
6040
  }
6068
6041
  });
6069
- if (superClass) _set_prototype_of$k(subClass, superClass);
6042
+ if (superClass) _set_prototype_of$l(subClass, superClass);
6070
6043
  }
6071
- function _set_prototype_of$k(o, p) {
6072
- _set_prototype_of$k = Object.setPrototypeOf || function setPrototypeOf(o, p) {
6044
+ function _set_prototype_of$l(o, p) {
6045
+ _set_prototype_of$l = Object.setPrototypeOf || function setPrototypeOf(o, p) {
6073
6046
  o.__proto__ = p;
6074
6047
  return o;
6075
6048
  };
6076
- return _set_prototype_of$k(o, p);
6049
+ return _set_prototype_of$l(o, p);
6077
6050
  }
6078
6051
  /**
6079
6052
  * 截图控件,点击后会触发截图事件, 截图数据会通过 onCapture 回调函数返回
6080
6053
  * @category Control
6081
6054
  */ var CapturePicture = /*#__PURE__*/ function(Control) {
6082
- _inherits$k(CapturePicture, Control);
6055
+ _inherits$l(CapturePicture, Control);
6083
6056
  function CapturePicture(options) {
6084
6057
  var _this;
6085
- _this = Control.call(this, _extends$j({}, options, {
6058
+ _this = Control.call(this, _extends$k({}, options, {
6086
6059
  tagName: 'span',
6087
6060
  classNameSuffix: 'capture-picture'
6088
6061
  })) || this, _this._timer = null;
@@ -6112,8 +6085,8 @@ function _set_prototype_of$k(o, p) {
6112
6085
  * 点击 Control 会触发
6113
6086
  */ _proto._onControlClick = function _onControlClick(e) {
6114
6087
  var _this = this;
6115
- this.active = true;
6116
6088
  var _this_options_type, _this_options_cloudRecUpload;
6089
+ this.active = true;
6117
6090
  this.emit(EVENTS.control.capturePicture, {
6118
6091
  type: (_this_options_type = this.options.type) != null ? _this_options_type : 'download',
6119
6092
  quality: this.options.quality || 0.9,
@@ -6148,21 +6121,17 @@ function _create_class$4(Constructor, protoProps, staticProps) {
6148
6121
  if (protoProps) _defineProperties$4(Constructor.prototype, protoProps);
6149
6122
  return Constructor;
6150
6123
  }
6151
- function _extends$i() {
6152
- _extends$i = Object.assign || function(target) {
6124
+ function _extends$j() {
6125
+ _extends$j = Object.assign || function assign(target) {
6153
6126
  for(var i = 1; i < arguments.length; i++){
6154
6127
  var source = arguments[i];
6155
- for(var key in source){
6156
- if (Object.prototype.hasOwnProperty.call(source, key)) {
6157
- target[key] = source[key];
6158
- }
6159
- }
6128
+ for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
6160
6129
  }
6161
6130
  return target;
6162
6131
  };
6163
- return _extends$i.apply(this, arguments);
6132
+ return _extends$j.apply(this, arguments);
6164
6133
  }
6165
- function _inherits$j(subClass, superClass) {
6134
+ function _inherits$k(subClass, superClass) {
6166
6135
  if (typeof superClass !== "function" && superClass !== null) {
6167
6136
  throw new TypeError("Super expression must either be null or a function");
6168
6137
  }
@@ -6173,23 +6142,23 @@ function _inherits$j(subClass, superClass) {
6173
6142
  configurable: true
6174
6143
  }
6175
6144
  });
6176
- if (superClass) _set_prototype_of$j(subClass, superClass);
6145
+ if (superClass) _set_prototype_of$k(subClass, superClass);
6177
6146
  }
6178
- function _set_prototype_of$j(o, p) {
6179
- _set_prototype_of$j = Object.setPrototypeOf || function setPrototypeOf(o, p) {
6147
+ function _set_prototype_of$k(o, p) {
6148
+ _set_prototype_of$k = Object.setPrototypeOf || function setPrototypeOf(o, p) {
6180
6149
  o.__proto__ = p;
6181
6150
  return o;
6182
6151
  };
6183
- return _set_prototype_of$j(o, p);
6152
+ return _set_prototype_of$k(o, p);
6184
6153
  }
6185
6154
  /**
6186
6155
  * 云台控件
6187
6156
  * @category Control
6188
6157
  */ var Ptz = /*#__PURE__*/ function(Control) {
6189
- _inherits$j(Ptz, Control);
6158
+ _inherits$k(Ptz, Control);
6190
6159
  function Ptz(options) {
6191
6160
  var _this;
6192
- _this = Control.call(this, _extends$i({}, options, {
6161
+ _this = Control.call(this, _extends$j({}, options, {
6193
6162
  tagName: 'span',
6194
6163
  controlType: 'button',
6195
6164
  classNameSuffix: 'ptz'
@@ -6232,7 +6201,7 @@ function _set_prototype_of$j(o, p) {
6232
6201
  this.$turntable.classList.add("" + PREFIX_CLASS + "-ptz-turntable");
6233
6202
  this.$panel.appendChild(this.$turntable);
6234
6203
  // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
6235
- this._ptzControl = new Ptz$1(this.$turntable, _extends$i({}, this._options, {
6204
+ this._ptzControl = new Ptz$1(this.$turntable, _extends$j({}, this._options, {
6236
6205
  onSpeedChange: this._onSpeedChange.bind(this),
6237
6206
  onDirection: this._onDirection.bind(this)
6238
6207
  }));
@@ -6241,7 +6210,7 @@ function _set_prototype_of$j(o, p) {
6241
6210
  };
6242
6211
  _proto.renderMobileExtend = function renderMobileExtend($container) {
6243
6212
  // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
6244
- if (!this._ptzControl1) this._ptzControl1 = new MobilePtz($container, _extends$i({}, this._options, {
6213
+ if (!this._ptzControl1) this._ptzControl1 = new MobilePtz($container, _extends$j({}, this._options, {
6245
6214
  onSpeedChange: this._onSpeedChange.bind(this),
6246
6215
  onDirection: this._onDirection.bind(this)
6247
6216
  }));
@@ -6325,7 +6294,7 @@ function formatTime(seconds, format) {
6325
6294
  var hours = Math.floor(seconds / 3600);
6326
6295
  var minutes = Math.floor(seconds % 3600 / 60);
6327
6296
  var secs = seconds % 60;
6328
- var pad = function(num) {
6297
+ var pad = function pad(num) {
6329
6298
  return num.toString().padStart(2, '0');
6330
6299
  };
6331
6300
  return format.replace('HH', pad(hours)).replace('MM', pad(minutes)).replace('SS', pad(secs));
@@ -6344,21 +6313,17 @@ function _create_class$3(Constructor, protoProps, staticProps) {
6344
6313
  if (protoProps) _defineProperties$3(Constructor.prototype, protoProps);
6345
6314
  return Constructor;
6346
6315
  }
6347
- function _extends$h() {
6348
- _extends$h = Object.assign || function(target) {
6316
+ function _extends$i() {
6317
+ _extends$i = Object.assign || function assign(target) {
6349
6318
  for(var i = 1; i < arguments.length; i++){
6350
6319
  var source = arguments[i];
6351
- for(var key in source){
6352
- if (Object.prototype.hasOwnProperty.call(source, key)) {
6353
- target[key] = source[key];
6354
- }
6355
- }
6320
+ for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
6356
6321
  }
6357
6322
  return target;
6358
6323
  };
6359
- return _extends$h.apply(this, arguments);
6324
+ return _extends$i.apply(this, arguments);
6360
6325
  }
6361
- function _inherits$i(subClass, superClass) {
6326
+ function _inherits$j(subClass, superClass) {
6362
6327
  if (typeof superClass !== "function" && superClass !== null) {
6363
6328
  throw new TypeError("Super expression must either be null or a function");
6364
6329
  }
@@ -6369,14 +6334,14 @@ function _inherits$i(subClass, superClass) {
6369
6334
  configurable: true
6370
6335
  }
6371
6336
  });
6372
- if (superClass) _set_prototype_of$i(subClass, superClass);
6337
+ if (superClass) _set_prototype_of$j(subClass, superClass);
6373
6338
  }
6374
- function _set_prototype_of$i(o, p) {
6375
- _set_prototype_of$i = Object.setPrototypeOf || function setPrototypeOf(o, p) {
6339
+ function _set_prototype_of$j(o, p) {
6340
+ _set_prototype_of$j = Object.setPrototypeOf || function setPrototypeOf(o, p) {
6376
6341
  o.__proto__ = p;
6377
6342
  return o;
6378
6343
  };
6379
- return _set_prototype_of$i(o, p);
6344
+ return _set_prototype_of$j(o, p);
6380
6345
  }
6381
6346
  var RECORD_DEFAULT_OPTIONS = {
6382
6347
  maxDuration: 3600
@@ -6390,10 +6355,10 @@ var RECORD_DEFAULT_OPTIONS = {
6390
6355
  * 2. 录制时间很短可能会因为浏览器的限制或没有I帧而无法生成有效的视频文件
6391
6356
  * @category Control
6392
6357
  */ var Record = /*#__PURE__*/ function(Control) {
6393
- _inherits$i(Record, Control);
6358
+ _inherits$j(Record, Control);
6394
6359
  function Record(options) {
6395
6360
  var _this;
6396
- _this = Control.call(this, _extends$h({}, options, {
6361
+ _this = Control.call(this, _extends$i({}, options, {
6397
6362
  tagName: 'span',
6398
6363
  controlType: 'button',
6399
6364
  classNameSuffix: 'record'
@@ -6500,11 +6465,8 @@ function asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, key, arg) {
6500
6465
  reject(error);
6501
6466
  return;
6502
6467
  }
6503
- if (info.done) {
6504
- resolve(value);
6505
- } else {
6506
- Promise.resolve(value).then(_next, _throw);
6507
- }
6468
+ if (info.done) resolve(value);
6469
+ else Promise.resolve(value).then(_next, _throw);
6508
6470
  }
6509
6471
  function _async_to_generator$4(fn) {
6510
6472
  return function() {
@@ -6534,21 +6496,17 @@ function _create_class$2(Constructor, protoProps, staticProps) {
6534
6496
  if (protoProps) _defineProperties$2(Constructor.prototype, protoProps);
6535
6497
  return Constructor;
6536
6498
  }
6537
- function _extends$g() {
6538
- _extends$g = Object.assign || function(target) {
6499
+ function _extends$h() {
6500
+ _extends$h = Object.assign || function assign(target) {
6539
6501
  for(var i = 1; i < arguments.length; i++){
6540
6502
  var source = arguments[i];
6541
- for(var key in source){
6542
- if (Object.prototype.hasOwnProperty.call(source, key)) {
6543
- target[key] = source[key];
6544
- }
6545
- }
6503
+ for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
6546
6504
  }
6547
6505
  return target;
6548
6506
  };
6549
- return _extends$g.apply(this, arguments);
6507
+ return _extends$h.apply(this, arguments);
6550
6508
  }
6551
- function _inherits$h(subClass, superClass) {
6509
+ function _inherits$i(subClass, superClass) {
6552
6510
  if (typeof superClass !== "function" && superClass !== null) {
6553
6511
  throw new TypeError("Super expression must either be null or a function");
6554
6512
  }
@@ -6559,14 +6517,14 @@ function _inherits$h(subClass, superClass) {
6559
6517
  configurable: true
6560
6518
  }
6561
6519
  });
6562
- if (superClass) _set_prototype_of$h(subClass, superClass);
6520
+ if (superClass) _set_prototype_of$i(subClass, superClass);
6563
6521
  }
6564
- function _set_prototype_of$h(o, p) {
6565
- _set_prototype_of$h = Object.setPrototypeOf || function setPrototypeOf(o, p) {
6522
+ function _set_prototype_of$i(o, p) {
6523
+ _set_prototype_of$i = Object.setPrototypeOf || function setPrototypeOf(o, p) {
6566
6524
  o.__proto__ = p;
6567
6525
  return o;
6568
6526
  };
6569
- return _set_prototype_of$h(o, p);
6527
+ return _set_prototype_of$i(o, p);
6570
6528
  }
6571
6529
  function _ts_generator$4(thisArg, body) {
6572
6530
  var f, y, t, _ = {
@@ -6577,9 +6535,17 @@ function _ts_generator$4(thisArg, body) {
6577
6535
  },
6578
6536
  trys: [],
6579
6537
  ops: []
6580
- }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
6581
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
6582
- return this;
6538
+ }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
6539
+ return d(g, "next", {
6540
+ value: verb(0)
6541
+ }), d(g, "throw", {
6542
+ value: verb(1)
6543
+ }), d(g, "return", {
6544
+ value: verb(2)
6545
+ }), typeof Symbol === "function" && d(g, Symbol.iterator, {
6546
+ value: function() {
6547
+ return this;
6548
+ }
6583
6549
  }), g;
6584
6550
  function verb(n) {
6585
6551
  return function(v) {
@@ -6668,10 +6634,10 @@ function _ts_generator$4(thisArg, body) {
6668
6634
  *
6669
6635
  * @category Control
6670
6636
  */ var Talk = /*#__PURE__*/ function(Control) {
6671
- _inherits$h(Talk, Control);
6637
+ _inherits$i(Talk, Control);
6672
6638
  function Talk(options) {
6673
6639
  var _this;
6674
- _this = Control.call(this, _extends$g({}, options, {
6640
+ _this = Control.call(this, _extends$h({}, options, {
6675
6641
  tagName: 'span',
6676
6642
  controlType: 'button',
6677
6643
  classNameSuffix: 'talk'
@@ -6720,7 +6686,7 @@ function _ts_generator$4(thisArg, body) {
6720
6686
  /**
6721
6687
  * 点击 Control 会触发
6722
6688
  */ _proto._onControlClick = function _onControlClick(e) {
6723
- var _this = this, _superprop_get__onControlClick = function() {
6689
+ var _this = this, _superprop_get__onControlClick = function _superprop_get__onControlClick() {
6724
6690
  return Control.prototype._onControlClick;
6725
6691
  };
6726
6692
  return _async_to_generator$4(function() {
@@ -6783,11 +6749,8 @@ function asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, key, arg) {
6783
6749
  reject(error);
6784
6750
  return;
6785
6751
  }
6786
- if (info.done) {
6787
- resolve(value);
6788
- } else {
6789
- Promise.resolve(value).then(_next, _throw);
6790
- }
6752
+ if (info.done) resolve(value);
6753
+ else Promise.resolve(value).then(_next, _throw);
6791
6754
  }
6792
6755
  function _async_to_generator$3(fn) {
6793
6756
  return function() {
@@ -6804,21 +6767,17 @@ function _async_to_generator$3(fn) {
6804
6767
  });
6805
6768
  };
6806
6769
  }
6807
- function _extends$f() {
6808
- _extends$f = Object.assign || function(target) {
6770
+ function _extends$g() {
6771
+ _extends$g = Object.assign || function assign(target) {
6809
6772
  for(var i = 1; i < arguments.length; i++){
6810
6773
  var source = arguments[i];
6811
- for(var key in source){
6812
- if (Object.prototype.hasOwnProperty.call(source, key)) {
6813
- target[key] = source[key];
6814
- }
6815
- }
6774
+ for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
6816
6775
  }
6817
6776
  return target;
6818
6777
  };
6819
- return _extends$f.apply(this, arguments);
6778
+ return _extends$g.apply(this, arguments);
6820
6779
  }
6821
- function _inherits$g(subClass, superClass) {
6780
+ function _inherits$h(subClass, superClass) {
6822
6781
  if (typeof superClass !== "function" && superClass !== null) {
6823
6782
  throw new TypeError("Super expression must either be null or a function");
6824
6783
  }
@@ -6829,14 +6788,14 @@ function _inherits$g(subClass, superClass) {
6829
6788
  configurable: true
6830
6789
  }
6831
6790
  });
6832
- if (superClass) _set_prototype_of$g(subClass, superClass);
6791
+ if (superClass) _set_prototype_of$h(subClass, superClass);
6833
6792
  }
6834
- function _set_prototype_of$g(o, p) {
6835
- _set_prototype_of$g = Object.setPrototypeOf || function setPrototypeOf(o, p) {
6793
+ function _set_prototype_of$h(o, p) {
6794
+ _set_prototype_of$h = Object.setPrototypeOf || function setPrototypeOf(o, p) {
6836
6795
  o.__proto__ = p;
6837
6796
  return o;
6838
6797
  };
6839
- return _set_prototype_of$g(o, p);
6798
+ return _set_prototype_of$h(o, p);
6840
6799
  }
6841
6800
  function _ts_generator$3(thisArg, body) {
6842
6801
  var f, y, t, _ = {
@@ -6847,9 +6806,17 @@ function _ts_generator$3(thisArg, body) {
6847
6806
  },
6848
6807
  trys: [],
6849
6808
  ops: []
6850
- }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
6851
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
6852
- return this;
6809
+ }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
6810
+ return d(g, "next", {
6811
+ value: verb(0)
6812
+ }), d(g, "throw", {
6813
+ value: verb(1)
6814
+ }), d(g, "return", {
6815
+ value: verb(2)
6816
+ }), typeof Symbol === "function" && d(g, Symbol.iterator, {
6817
+ value: function() {
6818
+ return this;
6819
+ }
6853
6820
  }), g;
6854
6821
  function verb(n) {
6855
6822
  return function(v) {
@@ -6936,10 +6903,10 @@ function _ts_generator$3(thisArg, body) {
6936
6903
  *
6937
6904
  * @category Control
6938
6905
  */ var Broadcast = /*#__PURE__*/ function(Control) {
6939
- _inherits$g(Broadcast, Control);
6906
+ _inherits$h(Broadcast, Control);
6940
6907
  function Broadcast(options) {
6941
6908
  var _this;
6942
- _this = Control.call(this, _extends$f({}, options, {
6909
+ _this = Control.call(this, _extends$g({}, options, {
6943
6910
  tagName: 'span',
6944
6911
  controlType: 'button',
6945
6912
  classNameSuffix: 'broadcast'
@@ -6985,7 +6952,7 @@ function _ts_generator$3(thisArg, body) {
6985
6952
  /**
6986
6953
  * 点击 Control 会触发
6987
6954
  */ _proto._onControlClick = function _onControlClick(e) {
6988
- var _this = this, _superprop_get__onControlClick = function() {
6955
+ var _this = this, _superprop_get__onControlClick = function _superprop_get__onControlClick() {
6989
6956
  return Control.prototype._onControlClick;
6990
6957
  };
6991
6958
  return _async_to_generator$3(function() {
@@ -7013,11 +6980,8 @@ function asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, key, arg) {
7013
6980
  reject(error);
7014
6981
  return;
7015
6982
  }
7016
- if (info.done) {
7017
- resolve(value);
7018
- } else {
7019
- Promise.resolve(value).then(_next, _throw);
7020
- }
6983
+ if (info.done) resolve(value);
6984
+ else Promise.resolve(value).then(_next, _throw);
7021
6985
  }
7022
6986
  function _async_to_generator$2(fn) {
7023
6987
  return function() {
@@ -7034,21 +6998,17 @@ function _async_to_generator$2(fn) {
7034
6998
  });
7035
6999
  };
7036
7000
  }
7037
- function _extends$e() {
7038
- _extends$e = Object.assign || function(target) {
7001
+ function _extends$f() {
7002
+ _extends$f = Object.assign || function assign(target) {
7039
7003
  for(var i = 1; i < arguments.length; i++){
7040
7004
  var source = arguments[i];
7041
- for(var key in source){
7042
- if (Object.prototype.hasOwnProperty.call(source, key)) {
7043
- target[key] = source[key];
7044
- }
7045
- }
7005
+ for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
7046
7006
  }
7047
7007
  return target;
7048
7008
  };
7049
- return _extends$e.apply(this, arguments);
7009
+ return _extends$f.apply(this, arguments);
7050
7010
  }
7051
- function _inherits$f(subClass, superClass) {
7011
+ function _inherits$g(subClass, superClass) {
7052
7012
  if (typeof superClass !== "function" && superClass !== null) {
7053
7013
  throw new TypeError("Super expression must either be null or a function");
7054
7014
  }
@@ -7059,14 +7019,14 @@ function _inherits$f(subClass, superClass) {
7059
7019
  configurable: true
7060
7020
  }
7061
7021
  });
7062
- if (superClass) _set_prototype_of$f(subClass, superClass);
7022
+ if (superClass) _set_prototype_of$g(subClass, superClass);
7063
7023
  }
7064
- function _set_prototype_of$f(o, p) {
7065
- _set_prototype_of$f = Object.setPrototypeOf || function setPrototypeOf(o, p) {
7024
+ function _set_prototype_of$g(o, p) {
7025
+ _set_prototype_of$g = Object.setPrototypeOf || function setPrototypeOf(o, p) {
7066
7026
  o.__proto__ = p;
7067
7027
  return o;
7068
7028
  };
7069
- return _set_prototype_of$f(o, p);
7029
+ return _set_prototype_of$g(o, p);
7070
7030
  }
7071
7031
  function _ts_generator$2(thisArg, body) {
7072
7032
  var f, y, t, _ = {
@@ -7077,9 +7037,17 @@ function _ts_generator$2(thisArg, body) {
7077
7037
  },
7078
7038
  trys: [],
7079
7039
  ops: []
7080
- }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
7081
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
7082
- return this;
7040
+ }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
7041
+ return d(g, "next", {
7042
+ value: verb(0)
7043
+ }), d(g, "throw", {
7044
+ value: verb(1)
7045
+ }), d(g, "return", {
7046
+ value: verb(2)
7047
+ }), typeof Symbol === "function" && d(g, Symbol.iterator, {
7048
+ value: function() {
7049
+ return this;
7050
+ }
7083
7051
  }), g;
7084
7052
  function verb(n) {
7085
7053
  return function(v) {
@@ -7166,11 +7134,11 @@ function _ts_generator$2(thisArg, body) {
7166
7134
  *
7167
7135
  * @category Control
7168
7136
  */ var AIChat = /*#__PURE__*/ function(Control) {
7169
- _inherits$f(AIChat, Control);
7137
+ _inherits$g(AIChat, Control);
7170
7138
  function AIChat(options) {
7171
7139
  var _this;
7172
7140
  var _options_urlInfo_searchParams, _options_urlInfo, _options_urlInfo1;
7173
- _this = Control.call(this, _extends$e({}, options, {
7141
+ _this = Control.call(this, _extends$f({}, options, {
7174
7142
  tagName: 'span',
7175
7143
  controlType: 'button',
7176
7144
  classNameSuffix: 'aichat'
@@ -7216,7 +7184,7 @@ function _ts_generator$2(thisArg, body) {
7216
7184
  /**
7217
7185
  * 点击 Control 会触发
7218
7186
  */ _proto._onControlClick = function _onControlClick(e) {
7219
- var _this = this, _superprop_get__onControlClick = function() {
7187
+ var _this = this, _superprop_get__onControlClick = function _superprop_get__onControlClick() {
7220
7188
  return Control.prototype._onControlClick;
7221
7189
  };
7222
7190
  return _async_to_generator$2(function() {
@@ -7236,21 +7204,17 @@ function _ts_generator$2(thisArg, body) {
7236
7204
  return AIChat;
7237
7205
  }(Control);
7238
7206
 
7239
- function _extends$d() {
7240
- _extends$d = Object.assign || function(target) {
7207
+ function _extends$e() {
7208
+ _extends$e = Object.assign || function assign(target) {
7241
7209
  for(var i = 1; i < arguments.length; i++){
7242
7210
  var source = arguments[i];
7243
- for(var key in source){
7244
- if (Object.prototype.hasOwnProperty.call(source, key)) {
7245
- target[key] = source[key];
7246
- }
7247
- }
7211
+ for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
7248
7212
  }
7249
7213
  return target;
7250
7214
  };
7251
- return _extends$d.apply(this, arguments);
7215
+ return _extends$e.apply(this, arguments);
7252
7216
  }
7253
- function _inherits$e(subClass, superClass) {
7217
+ function _inherits$f(subClass, superClass) {
7254
7218
  if (typeof superClass !== "function" && superClass !== null) {
7255
7219
  throw new TypeError("Super expression must either be null or a function");
7256
7220
  }
@@ -7261,14 +7225,14 @@ function _inherits$e(subClass, superClass) {
7261
7225
  configurable: true
7262
7226
  }
7263
7227
  });
7264
- if (superClass) _set_prototype_of$e(subClass, superClass);
7228
+ if (superClass) _set_prototype_of$f(subClass, superClass);
7265
7229
  }
7266
- function _set_prototype_of$e(o, p) {
7267
- _set_prototype_of$e = Object.setPrototypeOf || function setPrototypeOf(o, p) {
7230
+ function _set_prototype_of$f(o, p) {
7231
+ _set_prototype_of$f = Object.setPrototypeOf || function setPrototypeOf(o, p) {
7268
7232
  o.__proto__ = p;
7269
7233
  return o;
7270
7234
  };
7271
- return _set_prototype_of$e(o, p);
7235
+ return _set_prototype_of$f(o, p);
7272
7236
  }
7273
7237
  /**
7274
7238
  * 直播按钮控件
@@ -7277,11 +7241,11 @@ function _set_prototype_of$e(o, p) {
7277
7241
  *
7278
7242
  * @category Control
7279
7243
  */ var Live = /*#__PURE__*/ function(Control) {
7280
- _inherits$e(Live, Control);
7244
+ _inherits$f(Live, Control);
7281
7245
  function Live(options) {
7282
7246
  var _this;
7283
7247
  var _this___options_props1;
7284
- _this = Control.call(this, _extends$d({}, options, {
7248
+ _this = Control.call(this, _extends$e({}, options, {
7285
7249
  tagName: 'span',
7286
7250
  controlType: 'button',
7287
7251
  classNameSuffix: 'live'
@@ -7331,21 +7295,17 @@ function _set_prototype_of$e(o, p) {
7331
7295
  return Live;
7332
7296
  }(Control);
7333
7297
 
7334
- function _extends$c() {
7335
- _extends$c = Object.assign || function(target) {
7298
+ function _extends$d() {
7299
+ _extends$d = Object.assign || function assign(target) {
7336
7300
  for(var i = 1; i < arguments.length; i++){
7337
7301
  var source = arguments[i];
7338
- for(var key in source){
7339
- if (Object.prototype.hasOwnProperty.call(source, key)) {
7340
- target[key] = source[key];
7341
- }
7342
- }
7302
+ for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
7343
7303
  }
7344
7304
  return target;
7345
7305
  };
7346
- return _extends$c.apply(this, arguments);
7306
+ return _extends$d.apply(this, arguments);
7347
7307
  }
7348
- function _inherits$d(subClass, superClass) {
7308
+ function _inherits$e(subClass, superClass) {
7349
7309
  if (typeof superClass !== "function" && superClass !== null) {
7350
7310
  throw new TypeError("Super expression must either be null or a function");
7351
7311
  }
@@ -7356,14 +7316,14 @@ function _inherits$d(subClass, superClass) {
7356
7316
  configurable: true
7357
7317
  }
7358
7318
  });
7359
- if (superClass) _set_prototype_of$d(subClass, superClass);
7319
+ if (superClass) _set_prototype_of$e(subClass, superClass);
7360
7320
  }
7361
- function _set_prototype_of$d(o, p) {
7362
- _set_prototype_of$d = Object.setPrototypeOf || function setPrototypeOf(o, p) {
7321
+ function _set_prototype_of$e(o, p) {
7322
+ _set_prototype_of$e = Object.setPrototypeOf || function setPrototypeOf(o, p) {
7363
7323
  o.__proto__ = p;
7364
7324
  return o;
7365
7325
  };
7366
- return _set_prototype_of$d(o, p);
7326
+ return _set_prototype_of$e(o, p);
7367
7327
  }
7368
7328
  /**
7369
7329
  * 回放下拉控件
@@ -7372,11 +7332,11 @@ function _set_prototype_of$d(o, p) {
7372
7332
  *
7373
7333
  * @category Control
7374
7334
  */ var RecDropdown = /*#__PURE__*/ function(Control) {
7375
- _inherits$d(RecDropdown, Control);
7335
+ _inherits$e(RecDropdown, Control);
7376
7336
  function RecDropdown(options) {
7377
7337
  var _this;
7378
7338
  var _options_props, _this___options_props1;
7379
- _this = Control.call(this, _extends$c({}, options, {
7339
+ _this = Control.call(this, _extends$d({}, options, {
7380
7340
  tagName: 'span',
7381
7341
  controlType: 'button',
7382
7342
  classNameSuffix: 'rec-dropdown'
@@ -7422,7 +7382,7 @@ function _set_prototype_of$d(o, p) {
7422
7382
  _proto._initPicker = function _initPicker() {
7423
7383
  var _this = this;
7424
7384
  this._picker = new Picker(this.$container, {
7425
- getPopupContainer: function() {
7385
+ getPopupContainer: function getPopupContainer() {
7426
7386
  return Utils.isMobile ? _this.__options.rootContainer : _this.$container;
7427
7387
  },
7428
7388
  trigger: Utils.isMobile ? 'click' : 'hover',
@@ -7495,21 +7455,17 @@ function _set_prototype_of$d(o, p) {
7495
7455
  return RecDropdown;
7496
7456
  }(Control);
7497
7457
 
7498
- function _extends$b() {
7499
- _extends$b = Object.assign || function(target) {
7458
+ function _extends$c() {
7459
+ _extends$c = Object.assign || function assign(target) {
7500
7460
  for(var i = 1; i < arguments.length; i++){
7501
7461
  var source = arguments[i];
7502
- for(var key in source){
7503
- if (Object.prototype.hasOwnProperty.call(source, key)) {
7504
- target[key] = source[key];
7505
- }
7506
- }
7462
+ for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
7507
7463
  }
7508
7464
  return target;
7509
7465
  };
7510
- return _extends$b.apply(this, arguments);
7466
+ return _extends$c.apply(this, arguments);
7511
7467
  }
7512
- function _inherits$c(subClass, superClass) {
7468
+ function _inherits$d(subClass, superClass) {
7513
7469
  if (typeof superClass !== "function" && superClass !== null) {
7514
7470
  throw new TypeError("Super expression must either be null or a function");
7515
7471
  }
@@ -7520,14 +7476,14 @@ function _inherits$c(subClass, superClass) {
7520
7476
  configurable: true
7521
7477
  }
7522
7478
  });
7523
- if (superClass) _set_prototype_of$c(subClass, superClass);
7479
+ if (superClass) _set_prototype_of$d(subClass, superClass);
7524
7480
  }
7525
- function _set_prototype_of$c(o, p) {
7526
- _set_prototype_of$c = Object.setPrototypeOf || function setPrototypeOf(o, p) {
7481
+ function _set_prototype_of$d(o, p) {
7482
+ _set_prototype_of$d = Object.setPrototypeOf || function setPrototypeOf(o, p) {
7527
7483
  o.__proto__ = p;
7528
7484
  return o;
7529
7485
  };
7530
- return _set_prototype_of$c(o, p);
7486
+ return _set_prototype_of$d(o, p);
7531
7487
  }
7532
7488
  /**
7533
7489
  * 录像列表按钮控件
@@ -7536,12 +7492,12 @@ function _set_prototype_of$c(o, p) {
7536
7492
  *
7537
7493
  * @category Control
7538
7494
  */ var RecList = /*#__PURE__*/ function(Control) {
7539
- _inherits$c(RecList, Control);
7495
+ _inherits$d(RecList, Control);
7540
7496
  function RecList(options) {
7541
7497
  var _this;
7542
7498
  var _this__options_props, _this__options, _this_locale;
7543
7499
  // eslint-disable-next-line @typescript-eslint/consistent-type-assertions
7544
- _this = Control.call(this, _extends$b({}, options, {
7500
+ _this = Control.call(this, _extends$c({}, options, {
7545
7501
  tagName: 'span',
7546
7502
  controlType: 'button',
7547
7503
  classNameSuffix: 'rec-list'
@@ -7549,17 +7505,17 @@ function _set_prototype_of$c(o, p) {
7549
7505
  _this._options = options;
7550
7506
  _this.records = ((_this__options = _this._options) == null ? void 0 : (_this__options_props = _this__options.props) == null ? void 0 : _this__options_props.recordList) || [];
7551
7507
  _this._render();
7552
- _this._modal = new RecListModal(_this._options.rootContainer, _extends$b({
7508
+ _this._modal = new RecListModal(_this._options.rootContainer, _extends$c({
7553
7509
  showMask: false,
7554
7510
  title: (_this_locale = _this.locale) == null ? void 0 : _this_locale.BTN_REC_LIST_TITLE
7555
7511
  }, options, {
7556
7512
  showEventFilter: false,
7557
7513
  showCardTypeIcon: false,
7558
7514
  sections: [],
7559
- onCardClick: function(section, index, sections) {
7515
+ onCardClick: function onCardClick(section, index, sections) {
7560
7516
  _this.emit(EVENTS.control.recListCardClick, section, index, sections);
7561
7517
  },
7562
- onClose: function() {
7518
+ onClose: function onClose() {
7563
7519
  var _this__options_onClose, _this__options;
7564
7520
  _this._panelOpen = false;
7565
7521
  _this.active = false;
@@ -7647,21 +7603,17 @@ function _set_prototype_of$c(o, p) {
7647
7603
  return RecList;
7648
7604
  }(Control);
7649
7605
 
7650
- function _extends$a() {
7651
- _extends$a = Object.assign || function(target) {
7606
+ function _extends$b() {
7607
+ _extends$b = Object.assign || function assign(target) {
7652
7608
  for(var i = 1; i < arguments.length; i++){
7653
7609
  var source = arguments[i];
7654
- for(var key in source){
7655
- if (Object.prototype.hasOwnProperty.call(source, key)) {
7656
- target[key] = source[key];
7657
- }
7658
- }
7610
+ for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
7659
7611
  }
7660
7612
  return target;
7661
7613
  };
7662
- return _extends$a.apply(this, arguments);
7614
+ return _extends$b.apply(this, arguments);
7663
7615
  }
7664
- function _inherits$b(subClass, superClass) {
7616
+ function _inherits$c(subClass, superClass) {
7665
7617
  if (typeof superClass !== "function" && superClass !== null) {
7666
7618
  throw new TypeError("Super expression must either be null or a function");
7667
7619
  }
@@ -7672,14 +7624,14 @@ function _inherits$b(subClass, superClass) {
7672
7624
  configurable: true
7673
7625
  }
7674
7626
  });
7675
- if (superClass) _set_prototype_of$b(subClass, superClass);
7627
+ if (superClass) _set_prototype_of$c(subClass, superClass);
7676
7628
  }
7677
- function _set_prototype_of$b(o, p) {
7678
- _set_prototype_of$b = Object.setPrototypeOf || function setPrototypeOf(o, p) {
7629
+ function _set_prototype_of$c(o, p) {
7630
+ _set_prototype_of$c = Object.setPrototypeOf || function setPrototypeOf(o, p) {
7679
7631
  o.__proto__ = p;
7680
7632
  return o;
7681
7633
  };
7682
- return _set_prototype_of$b(o, p);
7634
+ return _set_prototype_of$c(o, p);
7683
7635
  }
7684
7636
  /**
7685
7637
  * 告警消息按钮控件
@@ -7688,10 +7640,10 @@ function _set_prototype_of$b(o, p) {
7688
7640
  *
7689
7641
  * @category Control
7690
7642
  */ var AlarmMessage = /*#__PURE__*/ function(Control) {
7691
- _inherits$b(AlarmMessage, Control);
7643
+ _inherits$c(AlarmMessage, Control);
7692
7644
  function AlarmMessage(options) {
7693
7645
  var _this;
7694
- _this = Control.call(this, _extends$a({}, options, {
7646
+ _this = Control.call(this, _extends$b({}, options, {
7695
7647
  tagName: 'span',
7696
7648
  controlType: 'button',
7697
7649
  classNameSuffix: 'alarm-message'
@@ -7743,21 +7695,17 @@ function _create_class$1(Constructor, protoProps, staticProps) {
7743
7695
  if (protoProps) _defineProperties$1(Constructor.prototype, protoProps);
7744
7696
  return Constructor;
7745
7697
  }
7746
- function _extends$9() {
7747
- _extends$9 = Object.assign || function(target) {
7698
+ function _extends$a() {
7699
+ _extends$a = Object.assign || function assign(target) {
7748
7700
  for(var i = 1; i < arguments.length; i++){
7749
7701
  var source = arguments[i];
7750
- for(var key in source){
7751
- if (Object.prototype.hasOwnProperty.call(source, key)) {
7752
- target[key] = source[key];
7753
- }
7754
- }
7702
+ for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
7755
7703
  }
7756
7704
  return target;
7757
7705
  };
7758
- return _extends$9.apply(this, arguments);
7706
+ return _extends$a.apply(this, arguments);
7759
7707
  }
7760
- function _inherits$a(subClass, superClass) {
7708
+ function _inherits$b(subClass, superClass) {
7761
7709
  if (typeof superClass !== "function" && superClass !== null) {
7762
7710
  throw new TypeError("Super expression must either be null or a function");
7763
7711
  }
@@ -7768,25 +7716,25 @@ function _inherits$a(subClass, superClass) {
7768
7716
  configurable: true
7769
7717
  }
7770
7718
  });
7771
- if (superClass) _set_prototype_of$a(subClass, superClass);
7719
+ if (superClass) _set_prototype_of$b(subClass, superClass);
7772
7720
  }
7773
- function _set_prototype_of$a(o, p) {
7774
- _set_prototype_of$a = Object.setPrototypeOf || function setPrototypeOf(o, p) {
7721
+ function _set_prototype_of$b(o, p) {
7722
+ _set_prototype_of$b = Object.setPrototypeOf || function setPrototypeOf(o, p) {
7775
7723
  o.__proto__ = p;
7776
7724
  return o;
7777
7725
  };
7778
- return _set_prototype_of$a(o, p);
7726
+ return _set_prototype_of$b(o, p);
7779
7727
  }
7780
7728
  var SELECT_DEFAULT_OPTIONS = {
7781
7729
  fieldNames: {
7782
7730
  label: 'label',
7783
7731
  value: 'value'
7784
7732
  },
7785
- renderLabel: function(label) {
7733
+ renderLabel: function renderLabel(label) {
7786
7734
  return "<span>" + (label || '') + "</span>";
7787
7735
  },
7788
- onChange: function() {},
7789
- onOpenChange: function() {}
7736
+ onChange: function onChange() {},
7737
+ onOpenChange: function onOpenChange() {}
7790
7738
  };
7791
7739
  /**
7792
7740
  * 选择器切换 (支持PC/Mobile)
@@ -7837,11 +7785,12 @@ var SELECT_DEFAULT_OPTIONS = {
7837
7785
  * }
7838
7786
  * ```
7839
7787
  */ var Select = /*#__PURE__*/ function(Control) {
7840
- _inherits$a(Select, Control);
7788
+ _inherits$b(Select, Control);
7841
7789
  function Select(options) {
7842
7790
  var _this;
7791
+ var _ref;
7843
7792
  var _this__options_fieldNames, _this__picker_$body;
7844
- _this = Control.call(this, _extends$9({
7793
+ _this = Control.call(this, _extends$a({
7845
7794
  tagName: 'span',
7846
7795
  type: 'button',
7847
7796
  controlType: 'button'
@@ -7853,11 +7802,10 @@ var SELECT_DEFAULT_OPTIONS = {
7853
7802
  if (options.value !== undefined || options.value !== null) {
7854
7803
  _this._value = options.value + '';
7855
7804
  }
7856
- var _this__options_fieldNames_value;
7857
- var valueKey = (_this__options_fieldNames_value = (_this__options_fieldNames = _this._options.fieldNames) == null ? void 0 : _this__options_fieldNames.value) != null ? _this__options_fieldNames_value : 'value';
7805
+ var valueKey = (_ref = (_this__options_fieldNames = _this._options.fieldNames) == null ? void 0 : _this__options_fieldNames.value) != null ? _ref : 'value';
7858
7806
  _this._picker = new Picker(_this.$container, {
7859
7807
  // 由于某些原因, 移动端强制渲染在 body 上
7860
- getPopupContainer: function() {
7808
+ getPopupContainer: function getPopupContainer() {
7861
7809
  return Utils.isMobile ? options.rootContainer : _this.$container;
7862
7810
  },
7863
7811
  trigger: Utils.isMobile ? 'click' : 'hover',
@@ -7870,7 +7818,7 @@ var SELECT_DEFAULT_OPTIONS = {
7870
7818
  ],
7871
7819
  placement: 'top',
7872
7820
  // zIndex: 10000,
7873
- onOpenChange: function(open) {
7821
+ onOpenChange: function onOpenChange(open) {
7874
7822
  var item = _this.list.find(function(item) {
7875
7823
  return item[valueKey] + '' === _this.value;
7876
7824
  });
@@ -7894,11 +7842,10 @@ var SELECT_DEFAULT_OPTIONS = {
7894
7842
  var _this = this;
7895
7843
  if (list === void 0) list = [];
7896
7844
  if ((list == null ? void 0 : list.length) > 0 && this._picker) {
7845
+ var _ref, _ref1;
7897
7846
  var _this__options_fieldNames, _this__options_fieldNames1, _this_locale, _this__picker;
7898
- var _this__options_fieldNames_label;
7899
- var labelKey = (_this__options_fieldNames_label = (_this__options_fieldNames = this._options.fieldNames) == null ? void 0 : _this__options_fieldNames.label) != null ? _this__options_fieldNames_label : 'label';
7900
- var _this__options_fieldNames_value;
7901
- var valueKey = (_this__options_fieldNames_value = (_this__options_fieldNames1 = this._options.fieldNames) == null ? void 0 : _this__options_fieldNames1.value) != null ? _this__options_fieldNames_value : 'value';
7847
+ var labelKey = (_ref = (_this__options_fieldNames = this._options.fieldNames) == null ? void 0 : _this__options_fieldNames.label) != null ? _ref : 'label';
7848
+ var valueKey = (_ref1 = (_this__options_fieldNames1 = this._options.fieldNames) == null ? void 0 : _this__options_fieldNames1.value) != null ? _ref1 : 'value';
7902
7849
  (_this__picker = this._picker) == null ? void 0 : _this__picker.innerHTML('<div class="' + PREFIX_CLASS + '-select-panel">\n <ul class="' + PREFIX_CLASS + '-select-list">\n ' + list.map(function(item) {
7903
7850
  return '\n <li class="' + PREFIX_CLASS + "-select-option " + (+item[valueKey] === _this.value ? "" + PREFIX_CLASS + "-active" : '') + '" data-value="' + item[valueKey] + '">\n <span>' + item[labelKey] + "</span>\n </li>\n ";
7904
7851
  }).join('') + "\n </ul>\n " + (Utils.isMobile ? '<div class="' + PREFIX_CLASS + '-select-cancel">\n <span>' + (((_this_locale = this.locale) == null ? void 0 : _this_locale.cancel) || '取消') + "</span>\n </div>" : '') + "\n " + (Utils.isMobile ? '<span class="' + PREFIX_CLASS + '-select-close">' + IconComponents.close() + "</span>" : '') + "\n <div>");
@@ -7910,12 +7857,12 @@ var SELECT_DEFAULT_OPTIONS = {
7910
7857
  }
7911
7858
  };
7912
7859
  _proto._render = function _render(item) {
7860
+ var _ref;
7913
7861
  var _this__options_fieldNames;
7914
7862
  if (this.list.length === 0) {
7915
7863
  return;
7916
7864
  }
7917
- var _this__options_fieldNames_label;
7918
- var labelKey = (_this__options_fieldNames_label = (_this__options_fieldNames = this._options.fieldNames) == null ? void 0 : _this__options_fieldNames.label) != null ? _this__options_fieldNames_label : 'label';
7865
+ var labelKey = (_ref = (_this__options_fieldNames = this._options.fieldNames) == null ? void 0 : _this__options_fieldNames.label) != null ? _ref : 'label';
7919
7866
  if (this.$container.querySelector("." + PREFIX_CLASS + "-select-btn")) {
7920
7867
  this.$container.querySelector("." + PREFIX_CLASS + "-select-btn").innerHTML = this._options.renderLabel == null ? void 0 : this._options.renderLabel.call(this._options, item == null ? void 0 : item[labelKey], item, this.list);
7921
7868
  } else {
@@ -7931,9 +7878,9 @@ var SELECT_DEFAULT_OPTIONS = {
7931
7878
  _proto._activeOption = function _activeOption() {
7932
7879
  var _this = this;
7933
7880
  if (this._picker) {
7881
+ var _ref;
7934
7882
  var _this__options_fieldNames, _this__picker_$body, _this__picker_$body1;
7935
- var _this__options_fieldNames_value;
7936
- var valueKey = (_this__options_fieldNames_value = (_this__options_fieldNames = this._options.fieldNames) == null ? void 0 : _this__options_fieldNames.value) != null ? _this__options_fieldNames_value : 'value';
7883
+ var valueKey = (_ref = (_this__options_fieldNames = this._options.fieldNames) == null ? void 0 : _this__options_fieldNames.value) != null ? _ref : 'value';
7937
7884
  var $active = (_this__picker_$body = this._picker.$body) == null ? void 0 : _this__picker_$body.querySelector("." + PREFIX_CLASS + "-active");
7938
7885
  $active == null ? void 0 : $active.classList.remove(PREFIX_CLASS + '-active');
7939
7886
  var $target = (_this__picker_$body1 = this._picker.$body) == null ? void 0 : _this__picker_$body1.querySelector("." + PREFIX_CLASS + '-select-option[data-value="' + this.value + '"]');
@@ -7947,9 +7894,9 @@ var SELECT_DEFAULT_OPTIONS = {
7947
7894
  _proto._onSelectChange = function _onSelectChange() {
7948
7895
  var _this = this;
7949
7896
  if (this._picker) {
7897
+ var _ref;
7950
7898
  var _this__options_fieldNames;
7951
- var _this__options_fieldNames_value;
7952
- var valueKey = (_this__options_fieldNames_value = (_this__options_fieldNames = this._options.fieldNames) == null ? void 0 : _this__options_fieldNames.value) != null ? _this__options_fieldNames_value : 'value';
7899
+ var valueKey = (_ref = (_this__options_fieldNames = this._options.fieldNames) == null ? void 0 : _this__options_fieldNames.value) != null ? _ref : 'value';
7953
7900
  this._delegationOption = delegate(this._picker.$body, "." + PREFIX_CLASS + "-select-option", 'click', function(e) {
7954
7901
  var target = e.delegateTarget;
7955
7902
  e.stopPropagation();
@@ -8034,26 +7981,20 @@ var SELECT_DEFAULT_OPTIONS = {
8034
7981
  }(Control);
8035
7982
 
8036
7983
  function _assert_this_initialized$1(self) {
8037
- if (self === void 0) {
8038
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
8039
- }
7984
+ if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
8040
7985
  return self;
8041
7986
  }
8042
- function _extends$8() {
8043
- _extends$8 = Object.assign || function(target) {
7987
+ function _extends$9() {
7988
+ _extends$9 = Object.assign || function assign(target) {
8044
7989
  for(var i = 1; i < arguments.length; i++){
8045
7990
  var source = arguments[i];
8046
- for(var key in source){
8047
- if (Object.prototype.hasOwnProperty.call(source, key)) {
8048
- target[key] = source[key];
8049
- }
8050
- }
7991
+ for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
8051
7992
  }
8052
7993
  return target;
8053
7994
  };
8054
- return _extends$8.apply(this, arguments);
7995
+ return _extends$9.apply(this, arguments);
8055
7996
  }
8056
- function _inherits$9(subClass, superClass) {
7997
+ function _inherits$a(subClass, superClass) {
8057
7998
  if (typeof superClass !== "function" && superClass !== null) {
8058
7999
  throw new TypeError("Super expression must either be null or a function");
8059
8000
  }
@@ -8064,14 +8005,14 @@ function _inherits$9(subClass, superClass) {
8064
8005
  configurable: true
8065
8006
  }
8066
8007
  });
8067
- if (superClass) _set_prototype_of$9(subClass, superClass);
8008
+ if (superClass) _set_prototype_of$a(subClass, superClass);
8068
8009
  }
8069
- function _set_prototype_of$9(o, p) {
8070
- _set_prototype_of$9 = Object.setPrototypeOf || function setPrototypeOf(o, p) {
8010
+ function _set_prototype_of$a(o, p) {
8011
+ _set_prototype_of$a = Object.setPrototypeOf || function setPrototypeOf(o, p) {
8071
8012
  o.__proto__ = p;
8072
8013
  return o;
8073
8014
  };
8074
- return _set_prototype_of$9(o, p);
8015
+ return _set_prototype_of$a(o, p);
8075
8016
  }
8076
8017
  function _type_of(obj) {
8077
8018
  "@swc/helpers - typeof";
@@ -8121,12 +8062,12 @@ function __filter(list, locale) {
8121
8062
  *
8122
8063
  * @category Control
8123
8064
  */ var Definition = /*#__PURE__*/ function(Select) {
8124
- _inherits$9(Definition, Select);
8065
+ _inherits$a(Definition, Select);
8125
8066
  function Definition(options) {
8126
8067
  if (options === void 0) options = {};
8127
8068
  var _this;
8128
8069
  var _options_props, _options_props1, _options_locales_options_language;
8129
- _this = Select.call(this, _extends$8({}, DEFINITION_DEFAULT_OPTIONS, {
8070
+ _this = Select.call(this, _extends$9({}, DEFINITION_DEFAULT_OPTIONS, {
8130
8071
  value: (_options_props = options.props) == null ? void 0 : _options_props.videoLevel
8131
8072
  }, options, {
8132
8073
  fieldNames: {
@@ -8137,7 +8078,7 @@ function __filter(list, locale) {
8137
8078
  title: options == null ? void 0 : (_options_locales_options_language = options.locales[options.language]) == null ? void 0 : _options_locales_options_language.BTN_HD,
8138
8079
  controlType: 'button',
8139
8080
  classNameSuffix: 'definition',
8140
- renderLabel: function(label, item, list) {
8081
+ renderLabel: function renderLabel(label, item, list) {
8141
8082
  var _list_;
8142
8083
  if ((item == null ? void 0 : item.level) === 'auto') {
8143
8084
  var _options_locales_options_language;
@@ -8149,7 +8090,7 @@ function __filter(list, locale) {
8149
8090
  // 如果 label 不存在,则不显示label,直接显示list的第一个label, 一般自定义清晰度列表可能会出现
8150
8091
  return "<span>" + (label || ((_list_ = list[0]) == null ? void 0 : _list_.name) || '') + "</span>";
8151
8092
  },
8152
- onChange: function(value, item) {
8093
+ onChange: function onChange(value, item) {
8153
8094
  var _options_onChange;
8154
8095
  options == null ? void 0 : (_options_onChange = options.onChange) == null ? void 0 : _options_onChange.call(options, value, item);
8155
8096
  if (value === 'auto') {
@@ -8159,7 +8100,7 @@ function __filter(list, locale) {
8159
8100
  _assert_this_initialized$1(_this).emit(EVENTS.control.definitionChange, value, item);
8160
8101
  }
8161
8102
  },
8162
- onOpenChange: function(open, value, item) {
8103
+ onOpenChange: function onOpenChange(open, value, item) {
8163
8104
  var _options_onOpenChange;
8164
8105
  options == null ? void 0 : (_options_onOpenChange = options.onOpenChange) == null ? void 0 : _options_onOpenChange.call(options, open, value, item);
8165
8106
  _assert_this_initialized$1(_this).emit(EVENTS.control.definitionPanelOpenChange, open, value, item);
@@ -8195,26 +8136,20 @@ function __filter(list, locale) {
8195
8136
  }(Select);
8196
8137
 
8197
8138
  function _assert_this_initialized(self) {
8198
- if (self === void 0) {
8199
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
8200
- }
8139
+ if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
8201
8140
  return self;
8202
8141
  }
8203
- function _extends$7() {
8204
- _extends$7 = Object.assign || function(target) {
8142
+ function _extends$8() {
8143
+ _extends$8 = Object.assign || function assign(target) {
8205
8144
  for(var i = 1; i < arguments.length; i++){
8206
8145
  var source = arguments[i];
8207
- for(var key in source){
8208
- if (Object.prototype.hasOwnProperty.call(source, key)) {
8209
- target[key] = source[key];
8210
- }
8211
- }
8146
+ for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
8212
8147
  }
8213
8148
  return target;
8214
8149
  };
8215
- return _extends$7.apply(this, arguments);
8150
+ return _extends$8.apply(this, arguments);
8216
8151
  }
8217
- function _inherits$8(subClass, superClass) {
8152
+ function _inherits$9(subClass, superClass) {
8218
8153
  if (typeof superClass !== "function" && superClass !== null) {
8219
8154
  throw new TypeError("Super expression must either be null or a function");
8220
8155
  }
@@ -8225,14 +8160,14 @@ function _inherits$8(subClass, superClass) {
8225
8160
  configurable: true
8226
8161
  }
8227
8162
  });
8228
- if (superClass) _set_prototype_of$8(subClass, superClass);
8163
+ if (superClass) _set_prototype_of$9(subClass, superClass);
8229
8164
  }
8230
- function _set_prototype_of$8(o, p) {
8231
- _set_prototype_of$8 = Object.setPrototypeOf || function setPrototypeOf(o, p) {
8165
+ function _set_prototype_of$9(o, p) {
8166
+ _set_prototype_of$9 = Object.setPrototypeOf || function setPrototypeOf(o, p) {
8232
8167
  o.__proto__ = p;
8233
8168
  return o;
8234
8169
  };
8235
- return _set_prototype_of$8(o, p);
8170
+ return _set_prototype_of$9(o, p);
8236
8171
  }
8237
8172
  // 支持的倍速列表, 需要是 2 的指数,不能小于 0.5, 最大 16 倍
8238
8173
  var SUPPORT_SPEED = [
@@ -8266,22 +8201,22 @@ var SPEED_DEFAULT_OPTIONS = {
8266
8201
  * 2. 标准流不支持;
8267
8202
  * @category Control
8268
8203
  */ var Speed = /*#__PURE__*/ function(Select) {
8269
- _inherits$8(Speed, Select);
8204
+ _inherits$9(Speed, Select);
8270
8205
  function Speed(options) {
8271
8206
  var _this;
8272
8207
  var _options_locales_options_language, _options_locales;
8273
- _this = Select.call(this, _extends$7({}, SPEED_DEFAULT_OPTIONS, options, {
8208
+ _this = Select.call(this, _extends$8({}, SPEED_DEFAULT_OPTIONS, options, {
8274
8209
  value: (options.props.speed || 1) + '',
8275
8210
  classNameSuffix: 'speed',
8276
8211
  controlType: 'button',
8277
8212
  title: options == null ? void 0 : (_options_locales = options.locales) == null ? void 0 : (_options_locales_options_language = _options_locales[options.language]) == null ? void 0 : _options_locales_options_language.BTN_SPEED,
8278
- onChange: function(value, item) {
8213
+ onChange: function onChange(value, item) {
8279
8214
  var _options_onChange;
8280
8215
  value = +value;
8281
8216
  options == null ? void 0 : (_options_onChange = options.onChange) == null ? void 0 : _options_onChange.call(options, value, item);
8282
8217
  _assert_this_initialized(_this).emit(EVENTS.control.speedChange, value, item);
8283
8218
  },
8284
- onOpenChange: function(open, value, item) {
8219
+ onOpenChange: function onOpenChange(open, value, item) {
8285
8220
  var _options_onOpenChange;
8286
8221
  value = +value;
8287
8222
  options == null ? void 0 : (_options_onOpenChange = options.onOpenChange) == null ? void 0 : _options_onOpenChange.call(options, open, value, item);
@@ -8330,21 +8265,17 @@ var SPEED_DEFAULT_OPTIONS = {
8330
8265
  return Speed;
8331
8266
  }(Select);
8332
8267
 
8333
- function _extends$6() {
8334
- _extends$6 = Object.assign || function(target) {
8268
+ function _extends$7() {
8269
+ _extends$7 = Object.assign || function assign(target) {
8335
8270
  for(var i = 1; i < arguments.length; i++){
8336
8271
  var source = arguments[i];
8337
- for(var key in source){
8338
- if (Object.prototype.hasOwnProperty.call(source, key)) {
8339
- target[key] = source[key];
8340
- }
8341
- }
8272
+ for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
8342
8273
  }
8343
8274
  return target;
8344
8275
  };
8345
- return _extends$6.apply(this, arguments);
8276
+ return _extends$7.apply(this, arguments);
8346
8277
  }
8347
- function _inherits$7(subClass, superClass) {
8278
+ function _inherits$8(subClass, superClass) {
8348
8279
  if (typeof superClass !== "function" && superClass !== null) {
8349
8280
  throw new TypeError("Super expression must either be null or a function");
8350
8281
  }
@@ -8355,24 +8286,24 @@ function _inherits$7(subClass, superClass) {
8355
8286
  configurable: true
8356
8287
  }
8357
8288
  });
8358
- if (superClass) _set_prototype_of$7(subClass, superClass);
8289
+ if (superClass) _set_prototype_of$8(subClass, superClass);
8359
8290
  }
8360
- function _set_prototype_of$7(o, p) {
8361
- _set_prototype_of$7 = Object.setPrototypeOf || function setPrototypeOf(o, p) {
8291
+ function _set_prototype_of$8(o, p) {
8292
+ _set_prototype_of$8 = Object.setPrototypeOf || function setPrototypeOf(o, p) {
8362
8293
  o.__proto__ = p;
8363
8294
  return o;
8364
8295
  };
8365
- return _set_prototype_of$7(o, p);
8296
+ return _set_prototype_of$8(o, p);
8366
8297
  }
8367
8298
  /**
8368
8299
  * 日历选择器控件
8369
8300
  * @category Control
8370
8301
  */ var DatePickerControl = /*#__PURE__*/ function(Control) {
8371
- _inherits$7(DatePickerControl, Control);
8302
+ _inherits$8(DatePickerControl, Control);
8372
8303
  function DatePickerControl(options) {
8373
8304
  var _this;
8374
8305
  var _this_options_props_urlInfo_searchParams, _this_options_props_urlInfo, _this_options_props;
8375
- _this = Control.call(this, _extends$6({
8306
+ _this = Control.call(this, _extends$7({
8376
8307
  maxDate: new Date()
8377
8308
  }, options, {
8378
8309
  tagName: 'span',
@@ -8403,7 +8334,7 @@ function _set_prototype_of$7(o, p) {
8403
8334
  title: (_this_locale1 = this.locale) == null ? void 0 : _this_locale1.BTN_CALENDAR
8404
8335
  });
8405
8336
  }
8406
- this.datePicker = new DatePicker(this.$container, _extends$6({
8337
+ this.datePicker = new DatePicker(this.$container, _extends$7({
8407
8338
  isMobile: isMobile1,
8408
8339
  mode: 'date',
8409
8340
  offset: [
@@ -8415,16 +8346,16 @@ function _set_prototype_of$7(o, p) {
8415
8346
  current: DateTime.toDate(this._value),
8416
8347
  placement: 'tr',
8417
8348
  triggerClose: true,
8418
- disabledDate: function(date) {
8349
+ disabledDate: function disabledDate(date) {
8419
8350
  return date.getTime() > (_this.options.maxDate || new Date()).getTime();
8420
8351
  }
8421
8352
  }, this.options || {}, {
8422
8353
  // 不支持自定义
8423
- getPopupContainer: function() {
8354
+ getPopupContainer: function getPopupContainer() {
8424
8355
  return _this.$container;
8425
8356
  },
8426
8357
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
8427
- onOk: function(date, _mode) {
8358
+ onOk: function onOk(date, _mode) {
8428
8359
  if (date && _this._value !== DateTime.format(date, 'YYYY-MM-DD') && isMobile1) {
8429
8360
  _this._value = DateTime.format(date, 'YYYY-MM-DD');
8430
8361
  _this.options.onOk == null ? void 0 : _this.options.onOk.call(_this.options, date);
@@ -8434,14 +8365,14 @@ function _set_prototype_of$7(o, p) {
8434
8365
  }
8435
8366
  }
8436
8367
  },
8437
- onChange: function(date, mode) {
8368
+ onChange: function onChange(date, mode) {
8438
8369
  if (date && _this._value !== DateTime.format(date, 'YYYY-MM-DD') && !isMobile1 && mode === 'date') {
8439
8370
  _this._value = DateTime.format(date, 'YYYY-MM-DD');
8440
8371
  _this.options.onChange == null ? void 0 : _this.options.onChange.call(_this.options, date);
8441
8372
  _this.emit(EVENTS.control.dateChange, date);
8442
8373
  }
8443
8374
  },
8444
- onOpenChange: function(open) {
8375
+ onOpenChange: function onOpenChange(open) {
8445
8376
  _this.options.onPanelChange == null ? void 0 : _this.options.onPanelChange.call(_this.options, open, _this.datePicker.current);
8446
8377
  _this.emit(EVENTS.control.datePanelOpenChange, open, _this.datePicker.current);
8447
8378
  }
@@ -8490,21 +8421,17 @@ function _set_prototype_of$7(o, p) {
8490
8421
  return DatePickerControl;
8491
8422
  }(Control);
8492
8423
 
8493
- function _extends$5() {
8494
- _extends$5 = Object.assign || function(target) {
8424
+ function _extends$6() {
8425
+ _extends$6 = Object.assign || function assign(target) {
8495
8426
  for(var i = 1; i < arguments.length; i++){
8496
8427
  var source = arguments[i];
8497
- for(var key in source){
8498
- if (Object.prototype.hasOwnProperty.call(source, key)) {
8499
- target[key] = source[key];
8500
- }
8501
- }
8428
+ for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
8502
8429
  }
8503
8430
  return target;
8504
8431
  };
8505
- return _extends$5.apply(this, arguments);
8432
+ return _extends$6.apply(this, arguments);
8506
8433
  }
8507
- function _inherits$6(subClass, superClass) {
8434
+ function _inherits$7(subClass, superClass) {
8508
8435
  if (typeof superClass !== "function" && superClass !== null) {
8509
8436
  throw new TypeError("Super expression must either be null or a function");
8510
8437
  }
@@ -8515,25 +8442,25 @@ function _inherits$6(subClass, superClass) {
8515
8442
  configurable: true
8516
8443
  }
8517
8444
  });
8518
- if (superClass) _set_prototype_of$6(subClass, superClass);
8445
+ if (superClass) _set_prototype_of$7(subClass, superClass);
8519
8446
  }
8520
- function _set_prototype_of$6(o, p) {
8521
- _set_prototype_of$6 = Object.setPrototypeOf || function setPrototypeOf(o, p) {
8447
+ function _set_prototype_of$7(o, p) {
8448
+ _set_prototype_of$7 = Object.setPrototypeOf || function setPrototypeOf(o, p) {
8522
8449
  o.__proto__ = p;
8523
8450
  return o;
8524
8451
  };
8525
- return _set_prototype_of$6(o, p);
8452
+ return _set_prototype_of$7(o, p);
8526
8453
  }
8527
8454
  /** 时间格式 HH:mm:ss */ var TIME_FORMAT = 'HH:mm:ss';
8528
8455
  /**
8529
8456
  * 时间选择器控件
8530
8457
  * @category Control
8531
8458
  */ var TimePickerControl = /*#__PURE__*/ function(Control) {
8532
- _inherits$6(TimePickerControl, Control);
8459
+ _inherits$7(TimePickerControl, Control);
8533
8460
  function TimePickerControl(options) {
8534
8461
  var _this;
8535
8462
  var _this_options_props_urlInfo_searchParams, _this_options_props_urlInfo, _this_options_props;
8536
- _this = Control.call(this, _extends$5({}, options, {
8463
+ _this = Control.call(this, _extends$6({}, options, {
8537
8464
  tagName: 'span',
8538
8465
  controlType: 'button',
8539
8466
  classNameSuffix: 'time'
@@ -8559,7 +8486,7 @@ function _set_prototype_of$6(o, p) {
8559
8486
  title: (_this_locale = this.locale) == null ? void 0 : _this_locale.BTN_TIME
8560
8487
  });
8561
8488
  // }
8562
- this.timePicker = new TimePicker(this.$container, _extends$5({
8489
+ this.timePicker = new TimePicker(this.$container, _extends$6({
8563
8490
  showHeader: false,
8564
8491
  isMobile: false,
8565
8492
  offset: [
@@ -8572,17 +8499,17 @@ function _set_prototype_of$6(o, p) {
8572
8499
  triggerClose: true
8573
8500
  }, this.options || {}, {
8574
8501
  // 不支持自定义
8575
- getPopupContainer: function() {
8502
+ getPopupContainer: function getPopupContainer() {
8576
8503
  return _this.$container;
8577
8504
  },
8578
- onChange: function(time, _times) {
8505
+ onChange: function onChange(time, _times) {
8579
8506
  if (time && _this._value !== time) {
8580
8507
  _this._value = time;
8581
8508
  _this.options.onChange == null ? void 0 : _this.options.onChange.call(_this.options, time, _times);
8582
8509
  _this.emit(EVENTS.control.timeChange, time);
8583
8510
  }
8584
8511
  },
8585
- onOpenChange: function(open) {
8512
+ onOpenChange: function onOpenChange(open) {
8586
8513
  _this.options.onPanelChange == null ? void 0 : _this.options.onPanelChange.call(_this.options, open, _this.timePicker.current);
8587
8514
  _this.emit(EVENTS.control.timePanelOpenChange, open, _this.timePicker.current);
8588
8515
  }
@@ -8629,21 +8556,17 @@ function _set_prototype_of$6(o, p) {
8629
8556
  return TimePickerControl;
8630
8557
  }(Control);
8631
8558
 
8632
- function _extends$4() {
8633
- _extends$4 = Object.assign || function(target) {
8559
+ function _extends$5() {
8560
+ _extends$5 = Object.assign || function assign(target) {
8634
8561
  for(var i = 1; i < arguments.length; i++){
8635
8562
  var source = arguments[i];
8636
- for(var key in source){
8637
- if (Object.prototype.hasOwnProperty.call(source, key)) {
8638
- target[key] = source[key];
8639
- }
8640
- }
8563
+ for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
8641
8564
  }
8642
8565
  return target;
8643
8566
  };
8644
- return _extends$4.apply(this, arguments);
8567
+ return _extends$5.apply(this, arguments);
8645
8568
  }
8646
- function _inherits$5(subClass, superClass) {
8569
+ function _inherits$6(subClass, superClass) {
8647
8570
  if (typeof superClass !== "function" && superClass !== null) {
8648
8571
  throw new TypeError("Super expression must either be null or a function");
8649
8572
  }
@@ -8654,23 +8577,23 @@ function _inherits$5(subClass, superClass) {
8654
8577
  configurable: true
8655
8578
  }
8656
8579
  });
8657
- if (superClass) _set_prototype_of$5(subClass, superClass);
8580
+ if (superClass) _set_prototype_of$6(subClass, superClass);
8658
8581
  }
8659
- function _set_prototype_of$5(o, p) {
8660
- _set_prototype_of$5 = Object.setPrototypeOf || function setPrototypeOf(o, p) {
8582
+ function _set_prototype_of$6(o, p) {
8583
+ _set_prototype_of$6 = Object.setPrototypeOf || function setPrototypeOf(o, p) {
8661
8584
  o.__proto__ = p;
8662
8585
  return o;
8663
8586
  };
8664
- return _set_prototype_of$5(o, p);
8587
+ return _set_prototype_of$6(o, p);
8665
8588
  }
8666
8589
  /**
8667
8590
  * 回放时间轴控件
8668
8591
  */ var TimeLineControl = /*#__PURE__*/ function(Control) {
8669
- _inherits$5(TimeLineControl, Control);
8592
+ _inherits$6(TimeLineControl, Control);
8670
8593
  function TimeLineControl(options) {
8671
8594
  var _this;
8672
8595
  var _this__options_props, _this__options;
8673
- _this = Control.call(this, _extends$4({}, options, {
8596
+ _this = Control.call(this, _extends$5({}, options, {
8674
8597
  tagName: 'div',
8675
8598
  controlType: 'block',
8676
8599
  classNameSuffix: 'time-line'
@@ -8706,9 +8629,9 @@ function _set_prototype_of$5(o, p) {
8706
8629
  var _proto = TimeLineControl.prototype;
8707
8630
  _proto._render = function _render() {
8708
8631
  var _this = this;
8709
- var _this_timeLineUtil_updateTimeSections, _this_timeLineUtil;
8710
8632
  var _this__options_showTimeWidthBtn, _this__options_showCoverFold;
8711
- var _timeLineOptions = _extends$4({
8633
+ var _this_timeLineUtil_updateTimeSections, _this_timeLineUtil;
8634
+ var _timeLineOptions = _extends$5({
8712
8635
  language: this._options.language || 'zh',
8713
8636
  coverQuery: this._options.coverQuery || '',
8714
8637
  showTimeWidthBtn: (_this__options_showTimeWidthBtn = this._options.showTimeWidthBtn) != null ? _this__options_showTimeWidthBtn : true,
@@ -8716,23 +8639,42 @@ function _set_prototype_of$5(o, p) {
8716
8639
  hoverTipPlacement: 'top'
8717
8640
  }, this._options || {}, {
8718
8641
  showSectionIcon: false,
8719
- onClickSeek: function(date) {
8642
+ onClickSeek: function onClickSeek(date) {
8720
8643
  if (date == null ? void 0 : date.getTime()) {
8721
8644
  _this._options.onClickSeek == null ? void 0 : _this._options.onClickSeek.call(_this._options, date);
8722
8645
  _this.emit(EVENTS.control.timeLineChange, date);
8723
8646
  }
8724
8647
  },
8725
- onChange: function(date) {
8648
+ onChange: function onChange(date) {
8726
8649
  if (_this._currentTime !== (date == null ? void 0 : date.getTime())) {
8727
8650
  _this._options.onChange == null ? void 0 : _this._options.onChange.call(_this._options, date);
8728
8651
  _this.emit(EVENTS.control.timeLineChange, date);
8729
8652
  }
8730
8653
  },
8731
- onPickerOpenChange: function(open) {
8654
+ onDragEnd: function onDragEnd(date, isOver) {
8655
+ var _this__options_props_playbackRange, _this__options_props, _this__options;
8656
+ _this._options.onDragEnd == null ? void 0 : _this._options.onDragEnd.call(_this._options, date, isOver);
8657
+ // 松手时鼠标已移出时间轴容器(isOver 为 false):控件把这种拖动视为取消,
8658
+ // onChange 不会触发(见 @ezuikit/control-time-line 的 pc/index.ts _moveEndOrTouchEndFun,
8659
+ // onChange 受 _isOver 约束),于是 SDK 层的播放区间夹取拿不到事件,光标停在
8660
+ // 区间外不再被纠正 —— 播放已结束时 OSD 轮询也已停止,靠后续同步也拉不回来。
8661
+ // 这里补发一次 timeLineChange 交给 SDK 层夹取回弹。
8662
+ //
8663
+ // 必须用 isOver === false 而不是 !isOver:移动端(mobile/index.ts)调 onDragEnd
8664
+ // 时不传第二个参数,值为 undefined,用 !isOver 会让移动端每次拖动都补发,
8665
+ // 而它的 _setState 已经触发过一次 onChange,会造成重复 seek。
8666
+ // 移动端也不需要这个补丁:DragScroll 是容器内滚动,没有"拖出容器外松手"的情况。
8667
+ //
8668
+ // 无播放区间时不补发,保持控件"拖出容器不 seek"的既有语义,避免破坏存量集成
8669
+ if (isOver === false && ((_this__options = _this._options) == null ? void 0 : (_this__options_props = _this__options.props) == null ? void 0 : (_this__options_props_playbackRange = _this__options_props.playbackRange) == null ? void 0 : _this__options_props_playbackRange.begin)) {
8670
+ _this.emit(EVENTS.control.timeLineChange, date);
8671
+ }
8672
+ },
8673
+ onPickerOpenChange: function onPickerOpenChange(open) {
8732
8674
  _this.emit(EVENTS.control.timeLinePanelOpenChange, open);
8733
8675
  },
8734
8676
  // 2025-10-27 仅移动端支持
8735
- onPickerSelect: function(item) {
8677
+ onPickerSelect: function onPickerSelect(item) {
8736
8678
  var date = null;
8737
8679
  try {
8738
8680
  if ((item.startTime + '').length === 10) date = new Date(item.startTime * 1000);
@@ -8743,7 +8685,7 @@ function _set_prototype_of$5(o, p) {
8743
8685
  } catch (error) {
8744
8686
  }
8745
8687
  },
8746
- onSectionIconClick: function(result) {
8688
+ onSectionIconClick: function onSectionIconClick(result) {
8747
8689
  _this.emit('TimeLine.onSectionIconClick', result);
8748
8690
  }
8749
8691
  });
@@ -8813,15 +8755,224 @@ function _set_prototype_of$5(o, p) {
8813
8755
  return TimeLineControl;
8814
8756
  }(Control);
8815
8757
 
8816
- function _extends$3() {
8817
- _extends$3 = Object.assign || function(target) {
8758
+ function _extends$4() {
8759
+ _extends$4 = Object.assign || function assign(target) {
8818
8760
  for(var i = 1; i < arguments.length; i++){
8819
8761
  var source = arguments[i];
8820
- for(var key in source){
8821
- if (Object.prototype.hasOwnProperty.call(source, key)) {
8822
- target[key] = source[key];
8823
- }
8762
+ for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
8763
+ }
8764
+ return target;
8765
+ };
8766
+ return _extends$4.apply(this, arguments);
8767
+ }
8768
+ function _inherits$5(subClass, superClass) {
8769
+ if (typeof superClass !== "function" && superClass !== null) {
8770
+ throw new TypeError("Super expression must either be null or a function");
8771
+ }
8772
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
8773
+ constructor: {
8774
+ value: subClass,
8775
+ writable: true,
8776
+ configurable: true
8777
+ }
8778
+ });
8779
+ if (superClass) _set_prototype_of$5(subClass, superClass);
8780
+ }
8781
+ function _set_prototype_of$5(o, p) {
8782
+ _set_prototype_of$5 = Object.setPrototypeOf || function setPrototypeOf(o, p) {
8783
+ o.__proto__ = p;
8784
+ return o;
8785
+ };
8786
+ return _set_prototype_of$5(o, p);
8787
+ }
8788
+ /**
8789
+ * 播放结束后忽略 OSD 回写的静默期(毫秒)
8790
+ *
8791
+ * 断流结束时 SDK 不会立刻停掉 OSD 轮询(要让时间轴光标跟到画面最后一帧,见
8792
+ * api/_playbackRange.ts 的 OSD_SETTLE_MS = 2500),这些回写的时间早于区间末端,
8793
+ * 会把刚补满的进度拉回去。取值需覆盖该窗口。
8794
+ *
8795
+ * 用静默期而不是永久忽略:用户可能从时间轴点回区间内继续看,那条 seek 不经过
8796
+ * 进度条的 onChange,永久忽略会让进度条卡死不再更新。
8797
+ */ var PLAYBACK_END_SILENCE_MS = 3000;
8798
+ /**
8799
+ * 读取录像片段的起止时间(毫秒)
8800
+ *
8801
+ * 录像列表是服务端原始返回、未做字段归一化,`begin/end` 与 `startTime/endTime`
8802
+ * 两套字段名在不同回放类型下都出现过,这里统一兼容。
8803
+ *
8804
+ * @param seg 录像片段
8805
+ * @param which 取起点还是终点
8806
+ */ function segMs(seg, which) {
8807
+ var _ref, _ref1;
8808
+ var value = which === 'start' ? (_ref = seg == null ? void 0 : seg.startTime) != null ? _ref : seg == null ? void 0 : seg.begin : (_ref1 = seg == null ? void 0 : seg.endTime) != null ? _ref1 : seg == null ? void 0 : seg.end;
8809
+ if (value === undefined || value === null || value === '') return NaN;
8810
+ if (typeof value === 'number') return value < 1e12 ? value * 1000 : value;
8811
+ return DateTime.toDate(value).getTime();
8812
+ }
8813
+ /**
8814
+ * 回放片段进度条控件(移动端)
8815
+ *
8816
+ * 只在设置了播放区间时渲染,范围是「当前录像片段 ∩ 播放区间」。
8817
+ * 区间内跨片段的定位由时间轴承担,这里只负责当前片段的精细拖动。
8818
+ * @category Control
8819
+ */ var SegmentProgressControl = /*#__PURE__*/ function(Control) {
8820
+ _inherits$5(SegmentProgressControl, Control);
8821
+ function SegmentProgressControl(options) {
8822
+ var _this;
8823
+ var _this__options_props, _this__options_props1;
8824
+ _this = Control.call(this, _extends$4({}, options, {
8825
+ tagName: 'div',
8826
+ controlType: 'block',
8827
+ classNameSuffix: 'segment-progress'
8828
+ })) || this, /** 播放区间(毫秒) */ _this._rangeBeginMs = 0, _this._rangeEndMs = 0, /** 区间内的录像片段,按起点升序 */ _this._segments = [], /** 当前片段下标,-1 表示不在任何片段内 */ _this._currentIndex = -1, _this._isDragging = false, /** 播放结束静默期的截止时刻(时间戳),此前忽略 OSD 回写 */ _this._silenceUntil = 0;
8829
+ _this._options = options;
8830
+ _this._render();
8831
+ // 区间通过 props 下发,避免主题异步渲染时错过初始化事件。
8832
+ // 区间只在初始化时设置,没有运行时变更入口
8833
+ _this._setRange((_this__options_props = _this._options.props) == null ? void 0 : _this__options_props.playbackRange);
8834
+ _this._setSegments(((_this__options_props1 = _this._options.props) == null ? void 0 : _this__options_props1.recordList) || []);
8835
+ _this.on(EVENTS.setAllDayRecTimes, function(records) {
8836
+ _this._setSegments(records || []);
8837
+ _this._syncSegment(true);
8838
+ });
8839
+ _this.on(EVENTS.getOSDTime, function(time) {
8840
+ if (!time || _this._isDragging) return;
8841
+ // 结束静默期内忽略回写,避免把补满的进度拉回(详见 PLAYBACK_END_SILENCE_MS)
8842
+ if (_this._silenceUntil > Date.now()) return;
8843
+ // OSD 如实跟随,不做 seek 过渡期的拦截或下限抑制:
8844
+ // 定位后 OSD 还会推几拍 seek 之前的位置,进度会先回到原处再跳到目标(跳两次),
8845
+ // 关键帧定位还可能让落点比目标早一秒(退一格)。这些与时间轴光标的表现一致,
8846
+ // 由 SDK 侧的定位行为决定,控件层不再单独补偿
8847
+ _this._syncCurrent(time * 1000);
8848
+ });
8849
+ // 区间播完时把完成度补到轨道末端。
8850
+ // 进度值来自 OSD 轮询,受轮询精度(1s)与服务端提前断流影响,通常停在末端之前
8851
+ // 若干秒(实测 1~5s)。时间轴光标停在真实最后一帧是对的,但进度条表达的是"完成度",
8852
+ // 停在 87% 却提示"回放结束"会让人以为卡住,所以这里补满。
8853
+ // noMoreSegment 不补:那时播放停在无录像间隔,补满会谎报已看完整段
8854
+ _this.on(EVENTS.playbackEnd, function(data) {
8855
+ var _this__segments_this__currentIndex;
8856
+ if ((data == null ? void 0 : data.reason) !== 'reachRangeEnd' || _this._isDragging) return;
8857
+ var endMs = _this._currentIndex >= 0 ? (_this__segments_this__currentIndex = _this._segments[_this._currentIndex]) == null ? void 0 : _this__segments_this__currentIndex.endTime : _this._rangeEndMs;
8858
+ if (!Number.isFinite(endMs)) return;
8859
+ // 先开静默期再补满,否则紧随其后的收尾 OSD 会把进度拉回
8860
+ _this._silenceUntil = Date.now() + PLAYBACK_END_SILENCE_MS;
8861
+ _this._progress.setCurrent(endMs);
8862
+ });
8863
+ return _this;
8864
+ }
8865
+ var _proto = SegmentProgressControl.prototype;
8866
+ _proto._render = function _render() {
8867
+ var _this = this;
8868
+ this._progress = new SegmentProgress(this.$container, {
8869
+ onChange: function onChange(date) {
8870
+ // 用户主动定位即视为重新开始播放,立即解除结束静默,否则静默期内的回写被丢弃、
8871
+ // 进度条会停住不动
8872
+ _this._silenceUntil = 0;
8873
+ _this._options.onChange == null ? void 0 : _this._options.onChange.call(_this._options, date);
8874
+ _this.emit(EVENTS.control.timeLineChange, date);
8875
+ },
8876
+ onDragStart: function onDragStart() {
8877
+ _this._isDragging = true;
8878
+ },
8879
+ onDragEnd: function onDragEnd() {
8880
+ _this._isDragging = false;
8824
8881
  }
8882
+ });
8883
+ this._updateVisible();
8884
+ };
8885
+ /**
8886
+ * 设置播放区间
8887
+ * @param range 区间;null 表示解除约束
8888
+ */ _proto._setRange = function _setRange(range) {
8889
+ if ((range == null ? void 0 : range.begin) && (range == null ? void 0 : range.end)) {
8890
+ this._rangeBeginMs = DateTime.toDate(range.begin).getTime();
8891
+ this._rangeEndMs = DateTime.toDate(range.end).getTime();
8892
+ } else {
8893
+ this._rangeBeginMs = 0;
8894
+ this._rangeEndMs = 0;
8895
+ }
8896
+ this._updateVisible();
8897
+ };
8898
+ /**
8899
+ * 用区间裁剪录像片段
8900
+ * @param records 全天录像片段
8901
+ */ _proto._setSegments = function _setSegments(records) {
8902
+ var _this = this;
8903
+ if (!this._hasRange() || !Array.isArray(records)) {
8904
+ this._segments = [];
8905
+ return;
8906
+ }
8907
+ this._segments = records.map(function(seg) {
8908
+ return {
8909
+ startTime: segMs(seg, 'start'),
8910
+ endTime: segMs(seg, 'end')
8911
+ };
8912
+ }).filter(function(seg) {
8913
+ return !Number.isNaN(seg.startTime) && !Number.isNaN(seg.endTime) && seg.endTime > _this._rangeBeginMs && seg.startTime < _this._rangeEndMs;
8914
+ }).map(function(seg) {
8915
+ return {
8916
+ startTime: Math.max(seg.startTime, _this._rangeBeginMs),
8917
+ endTime: Math.min(seg.endTime, _this._rangeEndMs)
8918
+ };
8919
+ }).sort(function(a, b) {
8920
+ return a.startTime - b.startTime;
8921
+ });
8922
+ };
8923
+ /** 用当前进度重新定位所属片段 */ _proto._syncSegment = function _syncSegment(force) {
8924
+ if (force === void 0) force = false;
8925
+ if (force) this._currentIndex = -1;
8926
+ this._updateVisible();
8927
+ };
8928
+ /**
8929
+ * 按播放进度更新片段与进度
8930
+ * @param currentMs 当前播放时间(毫秒)
8931
+ */ _proto._syncCurrent = function _syncCurrent(currentMs) {
8932
+ if (!this._hasRange()) return;
8933
+ var index = this._segments.findIndex(function(seg) {
8934
+ return currentMs >= seg.startTime && currentMs < seg.endTime;
8935
+ });
8936
+ // 落在片段间隔时保持上一个片段的展示,等 SDK 层完成自动续播后再切换
8937
+ if (index === -1) {
8938
+ if (this._currentIndex === -1) this._fallbackToRange();
8939
+ this._progress.setCurrent(currentMs);
8940
+ return;
8941
+ }
8942
+ if (index !== this._currentIndex) {
8943
+ this._currentIndex = index;
8944
+ var seg = this._segments[index];
8945
+ this._progress.setSegment(seg.startTime, seg.endTime);
8946
+ }
8947
+ this._progress.setCurrent(currentMs);
8948
+ };
8949
+ /** 没有可用片段信息时退化为整个区间,避免进度条空转 */ _proto._fallbackToRange = function _fallbackToRange() {
8950
+ if (!this._hasRange()) return;
8951
+ this._progress.setSegment(this._rangeBeginMs, this._rangeEndMs);
8952
+ };
8953
+ _proto._hasRange = function _hasRange() {
8954
+ return this._rangeEndMs > this._rangeBeginMs;
8955
+ };
8956
+ _proto._updateVisible = function _updateVisible() {
8957
+ var visible = this._hasRange();
8958
+ this.$container.style.display = visible ? '' : 'none';
8959
+ if (visible && this._currentIndex === -1 && !this._segments.length) {
8960
+ this._fallbackToRange();
8961
+ }
8962
+ };
8963
+ _proto.destroy = function destroy() {
8964
+ var _this__progress;
8965
+ (_this__progress = this._progress) == null ? void 0 : _this__progress.destroy();
8966
+ Control.prototype.destroy.call(this);
8967
+ };
8968
+ return SegmentProgressControl;
8969
+ }(Control);
8970
+
8971
+ function _extends$3() {
8972
+ _extends$3 = Object.assign || function assign(target) {
8973
+ for(var i = 1; i < arguments.length; i++){
8974
+ var source = arguments[i];
8975
+ for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
8825
8976
  }
8826
8977
  return target;
8827
8978
  };
@@ -8907,10 +9058,11 @@ var Controls = {
8907
9058
  speed: Speed,
8908
9059
  date: DatePickerControl,
8909
9060
  time: TimePickerControl,
8910
- timeLine: TimeLineControl
9061
+ timeLine: TimeLineControl,
9062
+ segmentProgress: SegmentProgressControl
8911
9063
  };
8912
9064
 
8913
- /* eslint-disable @typescript-eslint/no-non-null-assertion */ function _inherits$3(subClass, superClass) {
9065
+ function _inherits$3(subClass, superClass) {
8914
9066
  if (typeof superClass !== "function" && superClass !== null) {
8915
9067
  throw new TypeError("Super expression must either be null or a function");
8916
9068
  }
@@ -9051,6 +9203,10 @@ function _set_prototype_of$2(o, p) {
9051
9203
  this.$content = document.createElement('div');
9052
9204
  this.$content.classList.add("" + PREFIX_CLASS + "-mobile-extend-control-content");
9053
9205
  this.$controlPanel.appendChild(this.$content);
9206
+ // 片段进度条紧贴播放控件下方,位于日期/回放类型那一行之前
9207
+ this.$segmentProgress = document.createElement('div');
9208
+ this.$segmentProgress.classList.add("" + PREFIX_CLASS + "-mobile-extend-segment-progress");
9209
+ this.$content.appendChild(this.$segmentProgress);
9054
9210
  this.$top = document.createElement('div');
9055
9211
  this.$top.classList.add("" + PREFIX_CLASS + "-mobile-extend-control-top");
9056
9212
  this.$content.appendChild(this.$top);
@@ -9071,14 +9227,10 @@ function _set_prototype_of$2(o, p) {
9071
9227
  }(EventEmitter);
9072
9228
 
9073
9229
  function _extends$2() {
9074
- _extends$2 = Object.assign || function(target) {
9230
+ _extends$2 = Object.assign || function assign(target) {
9075
9231
  for(var i = 1; i < arguments.length; i++){
9076
9232
  var source = arguments[i];
9077
- for(var key in source){
9078
- if (Object.prototype.hasOwnProperty.call(source, key)) {
9079
- target[key] = source[key];
9080
- }
9081
- }
9233
+ for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
9082
9234
  }
9083
9235
  return target;
9084
9236
  };
@@ -9210,7 +9362,7 @@ var PAUSE_DEFAULT_OPTIONS = {};
9210
9362
  return Pause;
9211
9363
  }(Control);
9212
9364
 
9213
- var _unmountedControls = function(theme) {
9365
+ var _unmountedControls = function _unmountedControls(theme) {
9214
9366
  if (!theme.controls) {
9215
9367
  return;
9216
9368
  }
@@ -9297,11 +9449,8 @@ function asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, key, arg) {
9297
9449
  reject(error);
9298
9450
  return;
9299
9451
  }
9300
- if (info.done) {
9301
- resolve(value);
9302
- } else {
9303
- Promise.resolve(value).then(_next, _throw);
9304
- }
9452
+ if (info.done) resolve(value);
9453
+ else Promise.resolve(value).then(_next, _throw);
9305
9454
  }
9306
9455
  function _async_to_generator$1(fn) {
9307
9456
  return function() {
@@ -9318,28 +9467,6 @@ function _async_to_generator$1(fn) {
9318
9467
  });
9319
9468
  };
9320
9469
  }
9321
- function _extends$1() {
9322
- _extends$1 = Object.assign || function(target) {
9323
- for(var i = 1; i < arguments.length; i++){
9324
- var source = arguments[i];
9325
- for(var key in source){
9326
- if (Object.prototype.hasOwnProperty.call(source, key)) {
9327
- target[key] = source[key];
9328
- }
9329
- }
9330
- }
9331
- return target;
9332
- };
9333
- return _extends$1.apply(this, arguments);
9334
- }
9335
- function _unsupported_iterable_to_array$1(o, minLen) {
9336
- if (!o) return;
9337
- if (typeof o === "string") return _array_like_to_array$1(o, minLen);
9338
- var n = Object.prototype.toString.call(o).slice(8, -1);
9339
- if (n === "Object" && o.constructor) n = o.constructor.name;
9340
- if (n === "Map" || n === "Set") return Array.from(n);
9341
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$1(o, minLen);
9342
- }
9343
9470
  function _create_for_of_iterator_helper_loose$1(o, allowArrayLike) {
9344
9471
  var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
9345
9472
  if (it) return (it = it.call(o)).next.bind(it);
@@ -9347,18 +9474,26 @@ function _create_for_of_iterator_helper_loose$1(o, allowArrayLike) {
9347
9474
  if (it) o = it;
9348
9475
  var i = 0;
9349
9476
  return function() {
9350
- if (i >= o.length) {
9351
- return {
9352
- done: true
9353
- };
9354
- }
9477
+ if (i >= o.length) return {
9478
+ done: true
9479
+ };
9355
9480
  return {
9356
9481
  done: false,
9357
9482
  value: o[i++]
9358
9483
  };
9359
9484
  };
9360
9485
  }
9361
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
9486
+ throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
9487
+ }
9488
+ function _extends$1() {
9489
+ _extends$1 = Object.assign || function assign(target) {
9490
+ for(var i = 1; i < arguments.length; i++){
9491
+ var source = arguments[i];
9492
+ for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
9493
+ }
9494
+ return target;
9495
+ };
9496
+ return _extends$1.apply(this, arguments);
9362
9497
  }
9363
9498
  function _ts_generator$1(thisArg, body) {
9364
9499
  var f, y, t, _ = {
@@ -9369,9 +9504,17 @@ function _ts_generator$1(thisArg, body) {
9369
9504
  },
9370
9505
  trys: [],
9371
9506
  ops: []
9372
- }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
9373
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
9374
- return this;
9507
+ }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
9508
+ return d(g, "next", {
9509
+ value: verb(0)
9510
+ }), d(g, "throw", {
9511
+ value: verb(1)
9512
+ }), d(g, "return", {
9513
+ value: verb(2)
9514
+ }), typeof Symbol === "function" && d(g, Symbol.iterator, {
9515
+ value: function() {
9516
+ return this;
9517
+ }
9375
9518
  }), g;
9376
9519
  function verb(n) {
9377
9520
  return function(v) {
@@ -9451,6 +9594,14 @@ function _ts_generator$1(thisArg, body) {
9451
9594
  };
9452
9595
  }
9453
9596
  }
9597
+ function _unsupported_iterable_to_array$1(o, minLen) {
9598
+ if (!o) return;
9599
+ if (typeof o === "string") return _array_like_to_array$1(o, minLen);
9600
+ var n = Object.prototype.toString.call(o).slice(8, -1);
9601
+ if (n === "Object" && o.constructor) n = o.constructor.name;
9602
+ if (n === "Map" || n === "Set") return Array.from(n);
9603
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$1(o, minLen);
9604
+ }
9454
9605
  // 需要权限的控件
9455
9606
  var AUTH_KEY = [
9456
9607
  'ptz',
@@ -9489,7 +9640,7 @@ function _renderControls(theme, $container, btnList, props) {
9489
9640
  // eslint-disable-next-line @typescript-eslint/dot-notation, new-cap, @typescript-eslint/no-unsafe-argument
9490
9641
  theme.controls["deviceControl"] = new Controls["device"](_extends$1({
9491
9642
  rootContainer: theme.$container,
9492
- getPopupContainer: function() {
9643
+ getPopupContainer: function getPopupContainer() {
9493
9644
  return $container;
9494
9645
  },
9495
9646
  recType: theme.recType,
@@ -9512,7 +9663,7 @@ function _renderControls(theme, $container, btnList, props) {
9512
9663
  // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
9513
9664
  theme.controls["" + item.iconId + "Control"] = new Controls[item.iconId](_extends$1({
9514
9665
  rootContainer: theme.$container,
9515
- getPopupContainer: function() {
9666
+ getPopupContainer: function getPopupContainer() {
9516
9667
  return $container;
9517
9668
  },
9518
9669
  language: theme.options.language || "zh",
@@ -9539,7 +9690,7 @@ function _renderControls(theme, $container, btnList, props) {
9539
9690
  }
9540
9691
  function _renderTheme(theme, data) {
9541
9692
  return _async_to_generator$1(function() {
9542
- var _theme_posterControl, _filterThemeData_header, _filterThemeData_footer, _theme_urlInfo, _theme_options_mobileExtendOptions_controls, _theme_options_mobileExtendOptions, themeData, filterThemeData, props, _$_filterLeftRightControls, leftBtns, rightBtns, _theme_controls, _theme_controls1, _$_filterLeftRightControls1, leftBtns1, rightBtns1, _filterThemeData_footer_btnList, list, _needTimeLine, hasPtz, _theme_options_mobileExtendOptions1, _theme_options_mobileExtendOptions2, _theme_options_mobileExtendOptions3, _theme_controls2, _theme_options_mobileExtendOptions4, _theme_options_mobileExtendOptions_controls1, _theme_options_mobileExtendOptions5, _filterThemeData_header1, _filterThemeData_footer1, _filterThemeData_footer_btnList1, _theme_options;
9693
+ var _ref, _theme_posterControl, _filterThemeData_header, _filterThemeData_footer, _theme_urlInfo, _theme_playbackRange, _theme_playbackRange1, _theme_options_mobileExtendOptions_controls, _theme_options_mobileExtendOptions, themeData, filterThemeData, props, _$_filterLeftRightControls, leftBtns, rightBtns, _theme_controls, _theme_controls1, _$_filterLeftRightControls1, leftBtns1, rightBtns1, list, _needTimeLine, _hasPlaybackRange, _needDatePicker, hasPtz, _theme_options_mobileExtendOptions1, _theme_options_mobileExtendOptions2, _theme_options_mobileExtendOptions3, _theme_options_mobileExtendOptions4, _theme_controls2, _theme_options_mobileExtendOptions5, _theme_options_mobileExtendOptions_controls1, _theme_options_mobileExtendOptions6, _ref1, _filterThemeData_header1, _filterThemeData_footer1, _theme_options;
9543
9694
  return _ts_generator$1(this, function(_state) {
9544
9695
  switch(_state.label){
9545
9696
  case 0:
@@ -9565,7 +9716,7 @@ function _renderTheme(theme, data) {
9565
9716
  language: theme.options.language,
9566
9717
  locales: theme.i18n.translations
9567
9718
  }, theme.options.loadingOptions || {}, {
9568
- getPopupContainer: function() {
9719
+ getPopupContainer: function getPopupContainer() {
9569
9720
  return theme.$container;
9570
9721
  }
9571
9722
  }));
@@ -9575,7 +9726,7 @@ function _renderTheme(theme, data) {
9575
9726
  language: theme.options.language,
9576
9727
  locales: theme.i18n.translations
9577
9728
  }, theme.options.pauseOptions || {}, {
9578
- getPopupContainer: function() {
9729
+ getPopupContainer: function getPopupContainer() {
9579
9730
  return theme.contentControl.$wrapper;
9580
9731
  }
9581
9732
  }));
@@ -9587,14 +9738,14 @@ function _renderTheme(theme, data) {
9587
9738
  theme.messageControl = new Message(_extends$1({
9588
9739
  rootContainer: theme.$container
9589
9740
  }, theme.options.messageOptions || {}, {
9590
- getPopupContainer: function() {
9741
+ getPopupContainer: function getPopupContainer() {
9591
9742
  return theme.contentControl.$wrapper;
9592
9743
  }
9593
9744
  }));
9594
9745
  }
9595
9746
  if (theme.options.posterOptions !== null) {
9596
9747
  theme.posterControl = new Poster(_extends$1({}, theme.options.posterOptions || {}, {
9597
- getPopupContainer: function() {
9748
+ getPopupContainer: function getPopupContainer() {
9598
9749
  return theme.contentControl.$video;
9599
9750
  }
9600
9751
  }));
@@ -9624,7 +9775,7 @@ function _renderTheme(theme, data) {
9624
9775
  }
9625
9776
  if (filterThemeData.header) {
9626
9777
  theme._header = new Header({
9627
- getPopupContainer: function() {
9778
+ getPopupContainer: function getPopupContainer() {
9628
9779
  return theme.$container;
9629
9780
  },
9630
9781
  color: filterThemeData.header.color,
@@ -9639,7 +9790,7 @@ function _renderTheme(theme, data) {
9639
9790
  if (filterThemeData.footer) {
9640
9791
  // prettier-ignore
9641
9792
  theme._footer = new Footer({
9642
- getPopupContainer: function() {
9793
+ getPopupContainer: function getPopupContainer() {
9643
9794
  return theme.$container;
9644
9795
  },
9645
9796
  color: filterThemeData.footer.color,
@@ -9685,20 +9836,23 @@ function _renderTheme(theme, data) {
9685
9836
  _renderControls(theme, theme._footer.$left, leftBtns1, props);
9686
9837
  _renderControls(theme, theme._footer.$right, rightBtns1, props);
9687
9838
  }
9688
- list = [].concat(((_filterThemeData_header = filterThemeData.header) == null ? void 0 : _filterThemeData_header.btnList) || [], (_filterThemeData_footer_btnList = (_filterThemeData_footer = filterThemeData.footer) == null ? void 0 : _filterThemeData_footer.btnList) != null ? _filterThemeData_footer_btnList : []);
9839
+ list = [].concat(((_filterThemeData_header = filterThemeData.header) == null ? void 0 : _filterThemeData_header.btnList) || [], (_ref = (_filterThemeData_footer = filterThemeData.footer) == null ? void 0 : _filterThemeData_footer.btnList) != null ? _ref : []);
9689
9840
  // FIXME: 这个逻辑实际上是有问题的
9690
9841
  _needTimeLine = list.some(function(item) {
9691
9842
  return REC_GROUP.includes(item.iconId) || item.iconId === 'recDropdown';
9692
9843
  }) && ((_theme_urlInfo = theme.urlInfo) == null ? void 0 : _theme_urlInfo.type) === 'rec';
9844
+ // 处于播放区间约束中时不渲染日历:区间必然在同一天内,切到任何其它日期都会越界
9845
+ _hasPlaybackRange = !!((_theme_playbackRange = theme.playbackRange) == null ? void 0 : _theme_playbackRange.begin) && !!((_theme_playbackRange1 = theme.playbackRange) == null ? void 0 : _theme_playbackRange1.end);
9846
+ _needDatePicker = theme.options.dateOptions !== null && !_hasPlaybackRange;
9693
9847
  theme.$container.classList.remove("" + PREFIX_CLASS + "-has-time-line");
9694
9848
  // PC 单独渲染timeLine
9695
9849
  if (!Utils.isMobile && !(theme.options.timeLineOptions === null || theme.options.disabledTimeLine) && _needTimeLine) {
9696
9850
  theme._recFooter = new RecFooter(theme.$container, {
9697
- hasDatePicker: theme.options.dateOptions !== null,
9851
+ hasDatePicker: _needDatePicker,
9698
9852
  hasTimePicker: theme.options.timeOptions !== null
9699
9853
  });
9700
9854
  // 放置在 timeline 前面是为了防止 时间轴宽度设置后导致 图标按钮被挤出 footer
9701
- if (theme.options.dateOptions !== null) {
9855
+ if (_needDatePicker) {
9702
9856
  _renderDatePicker(theme, theme._recFooter.$datePickerContainer, props);
9703
9857
  }
9704
9858
  if (theme.options.timeOptions !== null) {
@@ -9718,14 +9872,19 @@ function _renderTheme(theme, data) {
9718
9872
  });
9719
9873
  if (hasPtz || _needTimeLine) {
9720
9874
  theme._mobileExtend = new MobileExtend(theme.$container);
9721
- if (theme.options.dateOptions !== null && ((_theme_options_mobileExtendOptions1 = theme.options.mobileExtendOptions) == null ? void 0 : _theme_options_mobileExtendOptions1.controls.includes('date')) && _needTimeLine) {
9875
+ // 播放区间约束下渲染片段进度条(紧贴播放控件下方)
9876
+ if (_hasPlaybackRange && theme.options.segmentProgressOptions !== null && ((_theme_options_mobileExtendOptions1 = theme.options.mobileExtendOptions) == null ? void 0 : _theme_options_mobileExtendOptions1.controls.includes('segmentProgress')) && _needTimeLine) {
9877
+ _renderSegmentProgress(theme, theme._mobileExtend.$segmentProgress, props);
9878
+ }
9879
+ if (_needDatePicker && ((_theme_options_mobileExtendOptions2 = theme.options.mobileExtendOptions) == null ? void 0 : _theme_options_mobileExtendOptions2.controls.includes('date')) && _needTimeLine) {
9722
9880
  _renderDatePicker(theme, theme._mobileExtend.$topLeft, props);
9723
9881
  }
9724
- if (theme.options.timeOptions !== null && ((_theme_options_mobileExtendOptions2 = theme.options.mobileExtendOptions) == null ? void 0 : _theme_options_mobileExtendOptions2.controls.includes('time')) && _needTimeLine) {
9882
+ if (theme.options.timeOptions !== null && ((_theme_options_mobileExtendOptions3 = theme.options.mobileExtendOptions) == null ? void 0 : _theme_options_mobileExtendOptions3.controls.includes('time')) && _needTimeLine) {
9725
9883
  _renderTimePicker(theme, theme._mobileExtend.$topLeft, props);
9726
9884
  }
9727
- if (theme.options.recOptions !== null && ((_theme_options_mobileExtendOptions3 = theme.options.mobileExtendOptions) == null ? void 0 : _theme_options_mobileExtendOptions3.controls.includes('rec')) && _needTimeLine) {
9728
- [].concat(((_filterThemeData_header1 = filterThemeData.header) == null ? void 0 : _filterThemeData_header1.btnList) || [], (_filterThemeData_footer_btnList1 = (_filterThemeData_footer1 = filterThemeData.footer) == null ? void 0 : _filterThemeData_footer1.btnList) != null ? _filterThemeData_footer_btnList1 : []).forEach(function(item) {
9885
+ // 回放类型切换正常渲染,用户点击后由 SDK 层在 recDropdownChange 事件中自行处理
9886
+ if (theme.options.recOptions !== null && ((_theme_options_mobileExtendOptions4 = theme.options.mobileExtendOptions) == null ? void 0 : _theme_options_mobileExtendOptions4.controls.includes('rec')) && _needTimeLine) {
9887
+ [].concat(((_filterThemeData_header1 = filterThemeData.header) == null ? void 0 : _filterThemeData_header1.btnList) || [], (_ref1 = (_filterThemeData_footer1 = filterThemeData.footer) == null ? void 0 : _filterThemeData_footer1.btnList) != null ? _ref1 : []).forEach(function(item) {
9729
9888
  var _theme__mobileExtend;
9730
9889
  if (REC_GROUP.includes(item.iconId)) _renderRecType(theme, (_theme__mobileExtend = theme._mobileExtend) == null ? void 0 : _theme__mobileExtend.$topRight, item.iconId, props);
9731
9890
  });
@@ -9735,7 +9894,7 @@ function _renderTheme(theme, data) {
9735
9894
  // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
9736
9895
  theme.controls['alarmMessageControl'] = new Controls['alarmMessage'](_extends$1({
9737
9896
  rootContainer: theme.$container,
9738
- getPopupContainer: function() {
9897
+ getPopupContainer: function getPopupContainer() {
9739
9898
  var _theme__mobileExtend;
9740
9899
  return (_theme__mobileExtend = theme._mobileExtend) == null ? void 0 : _theme__mobileExtend.$topRight;
9741
9900
  },
@@ -9747,10 +9906,10 @@ function _renderTheme(theme, data) {
9747
9906
  props: props
9748
9907
  }));
9749
9908
  }
9750
- if ((theme.options.timeLineOptions !== null || !theme.options.disabledTimeLine) && ((_theme_options_mobileExtendOptions4 = theme.options.mobileExtendOptions) == null ? void 0 : _theme_options_mobileExtendOptions4.controls.includes('timeLine')) && _needTimeLine) {
9909
+ if ((theme.options.timeLineOptions !== null || !theme.options.disabledTimeLine) && ((_theme_options_mobileExtendOptions5 = theme.options.mobileExtendOptions) == null ? void 0 : _theme_options_mobileExtendOptions5.controls.includes('timeLine')) && _needTimeLine) {
9751
9910
  _renderTimeLine(theme, theme._mobileExtend.$content, props);
9752
9911
  }
9753
- if (Utils.isMobile && ((_theme_options_mobileExtendOptions5 = theme.options.mobileExtendOptions) == null ? void 0 : (_theme_options_mobileExtendOptions_controls1 = _theme_options_mobileExtendOptions5.controls) == null ? void 0 : _theme_options_mobileExtendOptions_controls1.includes('ptz')) && hasPtz && theme.controls.ptzControl) {
9912
+ if (Utils.isMobile && ((_theme_options_mobileExtendOptions6 = theme.options.mobileExtendOptions) == null ? void 0 : (_theme_options_mobileExtendOptions_controls1 = _theme_options_mobileExtendOptions6.controls) == null ? void 0 : _theme_options_mobileExtendOptions_controls1.includes('ptz')) && hasPtz && theme.controls.ptzControl) {
9754
9913
  theme.controls.ptzControl.renderMobileExtend(theme._mobileExtend.$content);
9755
9914
  }
9756
9915
  }
@@ -9769,32 +9928,49 @@ function _renderTheme(theme, data) {
9769
9928
  });
9770
9929
  })();
9771
9930
  }
9772
- var _renderTimeLine = function(theme, container, props) {
9931
+ var _renderTimeLine = function _renderTimeLine(theme, container, props) {
9773
9932
  if (props === void 0) props = {};
9774
9933
  if (!theme.controls.timeLineControl && theme.options.timeLineOptions !== null) {
9934
+ var _ref;
9775
9935
  var _theme_urlInfo, _theme_urlInfo1, _theme_options, _theme_options1, _this, _theme_options2;
9776
- var _showSectionIcon;
9777
9936
  // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
9778
9937
  theme.controls.timeLineControl = new Controls['timeLine'](_extends$1({
9779
- getPopupContainer: function() {
9938
+ getPopupContainer: function getPopupContainer() {
9780
9939
  return container;
9781
9940
  },
9782
9941
  language: theme.options.language,
9783
9942
  locales: theme.i18n.translations,
9784
9943
  coverQuery: ((_theme_urlInfo = theme.urlInfo) == null ? void 0 : _theme_urlInfo.validateCode) ? "decodekey=" + ((_theme_urlInfo1 = theme.urlInfo) == null ? void 0 : _theme_urlInfo1.validateCode) : ''
9785
9944
  }, ((_theme_options = theme.options) == null ? void 0 : _theme_options["timeLineOptions"]) || {}, {
9786
- showSectionIcon: ((_theme_options1 = theme.options) == null ? void 0 : _theme_options1["recListOptions"]) !== null ? (_showSectionIcon = (_this = ((_theme_options2 = theme.options) == null ? void 0 : _theme_options2["timeLineOptions"]) || {}) == null ? void 0 : _this.showSectionIcon) != null ? _showSectionIcon : true : true,
9945
+ showSectionIcon: ((_theme_options1 = theme.options) == null ? void 0 : _theme_options1["recListOptions"]) !== null ? (_ref = (_this = ((_theme_options2 = theme.options) == null ? void 0 : _theme_options2["timeLineOptions"]) || {}) == null ? void 0 : _this.showSectionIcon) != null ? _ref : true : true,
9946
+ props: props
9947
+ }));
9948
+ }
9949
+ };
9950
+ var _renderSegmentProgress = function _renderSegmentProgress(theme, container, props) {
9951
+ if (props === void 0) props = {};
9952
+ if (!theme.controls.segmentProgressControl && theme.options.segmentProgressOptions !== null) {
9953
+ var _theme_options;
9954
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
9955
+ theme.controls.segmentProgressControl = new Controls['segmentProgress'](_extends$1({
9956
+ rootContainer: theme.$container,
9957
+ getPopupContainer: function getPopupContainer() {
9958
+ return container;
9959
+ },
9960
+ language: theme.options.language,
9961
+ locales: theme.i18n.translations
9962
+ }, ((_theme_options = theme.options) == null ? void 0 : _theme_options["segmentProgressOptions"]) || {}, {
9787
9963
  props: props
9788
9964
  }));
9789
9965
  }
9790
9966
  };
9791
- var _renderDatePicker = function(theme, container, props) {
9967
+ var _renderDatePicker = function _renderDatePicker(theme, container, props) {
9792
9968
  if (props === void 0) props = {};
9793
9969
  if (!theme.controls.dateControl && theme.options.dateOptions !== null) {
9794
9970
  var _theme_options;
9795
9971
  // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
9796
9972
  theme.controls.dateControl = new Controls['date'](_extends$1({
9797
- getPopupContainer: function() {
9973
+ getPopupContainer: function getPopupContainer() {
9798
9974
  return container;
9799
9975
  },
9800
9976
  language: theme.options.language,
@@ -9804,13 +9980,13 @@ var _renderDatePicker = function(theme, container, props) {
9804
9980
  }));
9805
9981
  }
9806
9982
  };
9807
- var _renderTimePicker = function(theme, container, props) {
9983
+ var _renderTimePicker = function _renderTimePicker(theme, container, props) {
9808
9984
  if (props === void 0) props = {};
9809
9985
  if (!theme.controls.timeControl && theme.options.timeOptions !== null) {
9810
9986
  var _theme_options;
9811
9987
  // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
9812
9988
  theme.controls.timeControl = new Controls['time'](_extends$1({
9813
- getPopupContainer: function() {
9989
+ getPopupContainer: function getPopupContainer() {
9814
9990
  return container;
9815
9991
  },
9816
9992
  language: theme.options.language,
@@ -9820,14 +9996,14 @@ var _renderTimePicker = function(theme, container, props) {
9820
9996
  }));
9821
9997
  }
9822
9998
  };
9823
- var _renderRecType = function(theme, container, recType, props) {
9999
+ var _renderRecType = function _renderRecType(theme, container, recType, props) {
9824
10000
  if (props === void 0) props = {};
9825
10001
  var _theme_controls, _theme_controls1, _theme_controls2;
9826
10002
  if (!((_theme_controls = theme.controls) == null ? void 0 : _theme_controls['recControl']) && theme.options.recOptions !== null && container) {
9827
10003
  var _theme_options;
9828
10004
  // eslint-disable-next-line @typescript-eslint/dot-notation, new-cap, @typescript-eslint/no-unsafe-argument
9829
10005
  theme.controls['recControl'] = new Controls['rec'](_extends$1({
9830
- getPopupContainer: function() {
10006
+ getPopupContainer: function getPopupContainer() {
9831
10007
  return container;
9832
10008
  },
9833
10009
  recType: theme.recType,
@@ -9931,7 +10107,7 @@ var _renderRecType = function(theme, container, recType, props) {
9931
10107
  return width - leftWidth - rightWidth > offset;
9932
10108
  }
9933
10109
 
9934
- /* eslint-disable @typescript-eslint/no-non-null-assertion */ function _array_like_to_array(arr, len) {
10110
+ function _array_like_to_array(arr, len) {
9935
10111
  if (len == null || len > arr.length) len = arr.length;
9936
10112
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
9937
10113
  return arr2;
@@ -9944,11 +10120,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
9944
10120
  reject(error);
9945
10121
  return;
9946
10122
  }
9947
- if (info.done) {
9948
- resolve(value);
9949
- } else {
9950
- Promise.resolve(value).then(_next, _throw);
9951
- }
10123
+ if (info.done) resolve(value);
10124
+ else Promise.resolve(value).then(_next, _throw);
9952
10125
  }
9953
10126
  function _async_to_generator(fn) {
9954
10127
  return function() {
@@ -9978,15 +10151,29 @@ function _create_class(Constructor, protoProps, staticProps) {
9978
10151
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
9979
10152
  return Constructor;
9980
10153
  }
10154
+ function _create_for_of_iterator_helper_loose(o, allowArrayLike) {
10155
+ var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
10156
+ if (it) return (it = it.call(o)).next.bind(it);
10157
+ if (Array.isArray(o) || (it = _unsupported_iterable_to_array(o)) || allowArrayLike) {
10158
+ if (it) o = it;
10159
+ var i = 0;
10160
+ return function() {
10161
+ if (i >= o.length) return {
10162
+ done: true
10163
+ };
10164
+ return {
10165
+ done: false,
10166
+ value: o[i++]
10167
+ };
10168
+ };
10169
+ }
10170
+ throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
10171
+ }
9981
10172
  function _extends() {
9982
- _extends = Object.assign || function(target) {
10173
+ _extends = Object.assign || function assign(target) {
9983
10174
  for(var i = 1; i < arguments.length; i++){
9984
10175
  var source = arguments[i];
9985
- for(var key in source){
9986
- if (Object.prototype.hasOwnProperty.call(source, key)) {
9987
- target[key] = source[key];
9988
- }
9989
- }
10176
+ for(var key in source)if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
9990
10177
  }
9991
10178
  return target;
9992
10179
  };
@@ -10012,34 +10199,6 @@ function _set_prototype_of(o, p) {
10012
10199
  };
10013
10200
  return _set_prototype_of(o, p);
10014
10201
  }
10015
- function _unsupported_iterable_to_array(o, minLen) {
10016
- if (!o) return;
10017
- if (typeof o === "string") return _array_like_to_array(o, minLen);
10018
- var n = Object.prototype.toString.call(o).slice(8, -1);
10019
- if (n === "Object" && o.constructor) n = o.constructor.name;
10020
- if (n === "Map" || n === "Set") return Array.from(n);
10021
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
10022
- }
10023
- function _create_for_of_iterator_helper_loose(o, allowArrayLike) {
10024
- var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
10025
- if (it) return (it = it.call(o)).next.bind(it);
10026
- if (Array.isArray(o) || (it = _unsupported_iterable_to_array(o)) || allowArrayLike) {
10027
- if (it) o = it;
10028
- var i = 0;
10029
- return function() {
10030
- if (i >= o.length) {
10031
- return {
10032
- done: true
10033
- };
10034
- }
10035
- return {
10036
- done: false,
10037
- value: o[i++]
10038
- };
10039
- };
10040
- }
10041
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
10042
- }
10043
10202
  function _ts_generator(thisArg, body) {
10044
10203
  var f, y, t, _ = {
10045
10204
  label: 0,
@@ -10049,9 +10208,17 @@ function _ts_generator(thisArg, body) {
10049
10208
  },
10050
10209
  trys: [],
10051
10210
  ops: []
10052
- }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
10053
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
10054
- return this;
10211
+ }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
10212
+ return d(g, "next", {
10213
+ value: verb(0)
10214
+ }), d(g, "throw", {
10215
+ value: verb(1)
10216
+ }), d(g, "return", {
10217
+ value: verb(2)
10218
+ }), typeof Symbol === "function" && d(g, Symbol.iterator, {
10219
+ value: function() {
10220
+ return this;
10221
+ }
10055
10222
  }), g;
10056
10223
  function verb(n) {
10057
10224
  return function(v) {
@@ -10131,6 +10298,14 @@ function _ts_generator(thisArg, body) {
10131
10298
  };
10132
10299
  }
10133
10300
  }
10301
+ function _unsupported_iterable_to_array(o, minLen) {
10302
+ if (!o) return;
10303
+ if (typeof o === "string") return _array_like_to_array(o, minLen);
10304
+ var n = Object.prototype.toString.call(o).slice(8, -1);
10305
+ if (n === "Object" && o.constructor) n = o.constructor.name;
10306
+ if (n === "Map" || n === "Set") return Array.from(n);
10307
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
10308
+ }
10134
10309
  var THEME_DEFAULT_OPTIONS = {
10135
10310
  dblClickFullscreen: true,
10136
10311
  language: 'zh',
@@ -10184,6 +10359,7 @@ var THEME_DEFAULT_OPTIONS = {
10184
10359
  _inherits(Theme, EventEmitter);
10185
10360
  function Theme(options) {
10186
10361
  var _this;
10362
+ var _ref, _ref1, _ref2, _ref3, _ref4, _ref5;
10187
10363
  var _this_options_volumeOptions, _this_options_volumeOptions1, _this_options_speedOptions, _this_urlInfo_searchParams, _this_urlInfo, _this_options, _this_options1;
10188
10364
  _this = EventEmitter.call(this) || this, /** 播放器配置项 */ _this.options = THEME_DEFAULT_OPTIONS, _this.staticPath = '', /** 所有控件列表, 所有控件名称规则(`${iconId}Control`), 如音量控件 this.controls["volumeControl"] @since 0.0.1 */ _this.controls = {}, /**
10189
10365
  * @since 0.0.1
@@ -10204,7 +10380,11 @@ var THEME_DEFAULT_OPTIONS = {
10204
10380
  */ _this._footerMoreControl = null, /** 头部控件 @since 0.0.1 @private */ _this._header = null, /** 低部控件 @since 0.0.1 @private */ _this._footer = null, /** 回放底部时间轴 @since 0.0.1 @private */ _this._recFooter = null, /**
10205
10381
  * 移动端扩展容器, 扩展的控件渲染在指定容器以外, 仅只用端适用, 为了可以放置大的控件和方便开发接入
10206
10382
  * @private
10207
- */ _this._mobileExtend = null, /** @since 0.0.1 @private */ _this._interactiveResult = null, /** @since 0.0.1 @private */ _this._themeData = null, _this._fullscreen = null, _this.zoomUtil = null, /** 清除屏幕旋转 */ _this._cleanupOrientation = null, /** resizeObserver 监听销毁 */ _this._cleanUpResizeObserver = null, /** 容器的宽 */ _this._width = 0, /** 容器的高 */ _this._height = 0, /** 当前容器的全屏状态 true: 全屏, false: 非全屏 */ _this._isCurrentFullscreen = false, /** 屏幕旋转角度 0 | 90 | 180 | 270 */ _this._orientationAngle = 0, _this._url = '', /** 是否播放中 @private */ _this._playing = false, /** @private 加载中 */ _this._loading = false, /** 音量 */ _this._volume = 0, /** 静音 */ _this._muted = false, /** 电子放大倍数 @private */ _this._zoom = 1, /** 放大中 true: 可缩放状态,false: 禁止缩放状态(不能缩放) @private */ _this._zooming = false, /** 录制中 @private */ _this._recording = false, /** 对讲中 @private */ _this._talking = false, /** 倍速 @private */ _this._speed = 1, /** 自定清晰度 @private */ _this._videoLevelAuto = false, /** 清晰度列表 */ _this.videoLevelList = [], /** 回放片段列表 */ _this.recordList = [], /** 窗口尺寸变化时,设置窗口超出隐藏,防止出现滚动条 */ _this._resizeOverflowTimer = null, // /**
10383
+ */ _this._mobileExtend = null, /** @since 0.0.1 @private */ _this._interactiveResult = null, /** @since 0.0.1 @private */ _this._themeData = null, _this._fullscreen = null, _this.zoomUtil = null, /** 清除屏幕旋转 */ _this._cleanupOrientation = null, /** resizeObserver 监听销毁 */ _this._cleanUpResizeObserver = null, /** 容器的宽 */ _this._width = 0, /** 容器的高 */ _this._height = 0, /** 当前容器的全屏状态 true: 全屏, false: 非全屏 */ _this._isCurrentFullscreen = false, /** 屏幕旋转角度 0 | 90 | 180 | 270 */ _this._orientationAngle = 0, _this._url = '', /** 是否播放中 @private */ _this._playing = false, /** @private 加载中 */ _this._loading = false, /** 音量 */ _this._volume = 0, /** 静音 */ _this._muted = false, /** 电子放大倍数 @private */ _this._zoom = 1, /** 放大中 true: 可缩放状态,false: 禁止缩放状态(不能缩放) @private */ _this._zooming = false, /** 录制中 @private */ _this._recording = false, /** 对讲中 @private */ _this._talking = false, /** 倍速 @private */ _this._speed = 1, /** 自定清晰度 @private */ _this._videoLevelAuto = false, /** 清晰度列表 */ _this.videoLevelList = [], /** 回放片段列表 */ _this.recordList = [], /**
10384
+ * 播放区间(片段分享),null 表示不约束。
10385
+ * 由 SDK 层在初始化时通过 props 下发,主题层据此决定日历/回放类型按钮
10386
+ * 是否渲染、片段进度条是否渲染。区间没有运行时变更入口。
10387
+ */ _this.playbackRange = null, /** 窗口尺寸变化时,设置窗口超出隐藏,防止出现滚动条 */ _this._resizeOverflowTimer = null, // /**
10208
10388
  // * 记录回放的月份
10209
10389
  // *
10210
10390
  // * key: {序列号}_{通道号}_{rec | cloud | cloudRecord} 比如:BC7799091_1_rec BC7799091_1_cloud BC7799091_1_cloudRecord
@@ -10245,7 +10425,7 @@ var THEME_DEFAULT_OPTIONS = {
10245
10425
  _this._initClassName();
10246
10426
  // 画布需要渲染在 this.contentControl.$content 内
10247
10427
  _this.contentControl = new Content({
10248
- getContainer: function() {
10428
+ getContainer: function getContainer() {
10249
10429
  return _this.$container;
10250
10430
  },
10251
10431
  scaleMode: _this.scaleMode
@@ -10255,18 +10435,15 @@ var THEME_DEFAULT_OPTIONS = {
10255
10435
  });
10256
10436
  // zoom utils
10257
10437
  __zoom(_this, _this.contentControl.$content, _extends({}, _this.options.zoomOptions || {}, {
10258
- onTap: function() {
10438
+ onTap: function onTap() {
10259
10439
  var _this__interactiveResult_setTimeoutShow, _this__interactiveResult;
10260
10440
  (_this__interactiveResult = _this._interactiveResult) == null ? void 0 : (_this__interactiveResult_setTimeoutShow = _this__interactiveResult.setTimeoutShow) == null ? void 0 : _this__interactiveResult_setTimeoutShow.call(_this__interactiveResult);
10261
10441
  }
10262
10442
  }));
10263
- var _this_options_volumeOptions_volume, _ref;
10264
- _this._volume = (_ref = (_this_options_volumeOptions_volume = (_this_options_volumeOptions = _this.options.volumeOptions) == null ? void 0 : _this_options_volumeOptions.volume) != null ? _this_options_volumeOptions_volume : _this.options.volume) != null ? _ref : 0.8;
10265
- var _this_options_volumeOptions_muted, _ref1;
10266
- _this._muted = (_ref1 = (_this_options_volumeOptions_muted = (_this_options_volumeOptions1 = _this.options.volumeOptions) == null ? void 0 : _this_options_volumeOptions1.muted) != null ? _this_options_volumeOptions_muted : _this.options.muted) != null ? _ref1 : false;
10267
- var _this_options_speedOptions_value, _ref2;
10443
+ _this._volume = (_ref = (_ref1 = (_this_options_volumeOptions = _this.options.volumeOptions) == null ? void 0 : _this_options_volumeOptions.volume) != null ? _ref1 : _this.options.volume) != null ? _ref : 0.8;
10444
+ _this._muted = (_ref2 = (_ref3 = (_this_options_volumeOptions1 = _this.options.volumeOptions) == null ? void 0 : _this_options_volumeOptions1.muted) != null ? _ref3 : _this.options.muted) != null ? _ref2 : false;
10268
10445
  // playbackSpeed 是 萤石标准流倍速字段
10269
- _this._speed = +((_ref2 = (_this_options_speedOptions_value = (_this_options_speedOptions = _this.options.speedOptions) == null ? void 0 : _this_options_speedOptions.value) != null ? _this_options_speedOptions_value : (_this_urlInfo = _this.urlInfo) == null ? void 0 : (_this_urlInfo_searchParams = _this_urlInfo.searchParams) == null ? void 0 : _this_urlInfo_searchParams.playbackSpeed) != null ? _ref2 : 1);
10446
+ _this._speed = +((_ref4 = (_ref5 = (_this_options_speedOptions = _this.options.speedOptions) == null ? void 0 : _this_options_speedOptions.value) != null ? _ref5 : (_this_urlInfo = _this.urlInfo) == null ? void 0 : (_this_urlInfo_searchParams = _this_urlInfo.searchParams) == null ? void 0 : _this_urlInfo_searchParams.playbackSpeed) != null ? _ref4 : 1);
10270
10447
  _this._mobileInnerWidthHeight = _this._mobileInnerWidthHeight.bind(_this);
10271
10448
  _this._throttleMobileInnerWidthHeight = throttle(_this._mobileInnerWidthHeight, 20).bind(_this);
10272
10449
  _this._onDblClickFullscreen = debounce(_this._onDblClickFullscreen, 20).bind(_this);
@@ -10294,9 +10471,9 @@ var THEME_DEFAULT_OPTIONS = {
10294
10471
  // flv / mp4:支持自定义 themeData,未传时回退到标准直播模板 LiveTemplate(2026-01-19 起支持自定义)
10295
10472
  initialThemeData = themeData !== undefined ? themeData : LiveTemplate;
10296
10473
  } else {
10297
- var _ref3;
10474
+ var _ref6;
10298
10475
  // 其余类型(如 ezopen 私有流):template 优先级高于 themeData,二者都未设置时为 null
10299
- initialThemeData = (_ref3 = template != null ? template : themeData) != null ? _ref3 : null;
10476
+ initialThemeData = (_ref6 = template != null ? template : themeData) != null ? _ref6 : null;
10300
10477
  }
10301
10478
  _this._renderTheme(initialThemeData);
10302
10479
  _this._addEventListener();
@@ -10647,7 +10824,7 @@ var THEME_DEFAULT_OPTIONS = {
10647
10824
  this._fullscreen = new Fullscreen$1(this.$container, {
10648
10825
  prefix: PREFIX_CLASS,
10649
10826
  // 全屏变化
10650
- onChange: function(info) {
10827
+ onChange: function onChange(info) {
10651
10828
  if (info.isCurrentFullscreen) {
10652
10829
  _this.emit(EVENTS.fullscreen);
10653
10830
  } else if (_this._isCurrentFullscreen) {
@@ -10665,7 +10842,7 @@ var THEME_DEFAULT_OPTIONS = {
10665
10842
  }
10666
10843
  });
10667
10844
  // ------------------------------ 旋转方向 -----------------------------
10668
- var rotateOrientation = function(orientation) {
10845
+ var rotateOrientation = function rotateOrientation(orientation) {
10669
10846
  if (_this.$container) {
10670
10847
  var // 重置移除旋转角度
10671
10848
  _this_$container_classList;
@@ -10788,7 +10965,7 @@ var THEME_DEFAULT_OPTIONS = {
10788
10965
  language: this.options.language,
10789
10966
  locales: this.i18n.translations,
10790
10967
  rootContainer: this.$container,
10791
- getPopupContainer: function() {
10968
+ getPopupContainer: function getPopupContainer() {
10792
10969
  var _this__header;
10793
10970
  return (_this__header = _this._header) == null ? void 0 : _this__header.$right;
10794
10971
  },
@@ -10800,7 +10977,7 @@ var THEME_DEFAULT_OPTIONS = {
10800
10977
  8
10801
10978
  ],
10802
10979
  wrapClassName: "" + PREFIX_CLASS + "-header-more",
10803
- onOpenChange: function(open) {
10980
+ onOpenChange: function onOpenChange(open) {
10804
10981
  _this.emit(EVENTS.control.headerMorePanelOpenChange, open);
10805
10982
  }
10806
10983
  });
@@ -10843,7 +11020,7 @@ var THEME_DEFAULT_OPTIONS = {
10843
11020
  language: this.options.language,
10844
11021
  locales: this.i18n.translations,
10845
11022
  rootContainer: this.$container,
10846
- getPopupContainer: function() {
11023
+ getPopupContainer: function getPopupContainer() {
10847
11024
  var _this__footer;
10848
11025
  return (_this__footer = _this._footer) == null ? void 0 : _this__footer.$right;
10849
11026
  },
@@ -10855,7 +11032,7 @@ var THEME_DEFAULT_OPTIONS = {
10855
11032
  -8
10856
11033
  ],
10857
11034
  wrapClassName: "" + PREFIX_CLASS + "-footer-more",
10858
- onOpenChange: function(open) {
11035
+ onOpenChange: function onOpenChange(open) {
10859
11036
  _this.emit(EVENTS.control.footerMorePanelOpenChange, open);
10860
11037
  }
10861
11038
  });
@@ -11371,6 +11548,7 @@ var THEME_DEFAULT_OPTIONS = {
11371
11548
  * theme.on(Theme.EVENTS.zoomChange, (zoom: number) => {})
11372
11549
  * ```
11373
11550
  */ function set(zoom) {
11551
+ var _ref;
11374
11552
  var _this_options_zoomOptions;
11375
11553
  if (!this._zooming) {
11376
11554
  var _this_messageControl_info, _this_messageControl, _this_logger;
@@ -11379,8 +11557,7 @@ var THEME_DEFAULT_OPTIONS = {
11379
11557
  return;
11380
11558
  }
11381
11559
  zoom = +zoom.toFixed(1);
11382
- var _this_options_zoomOptions_max;
11383
- var ZOOM_MAX = (_this_options_zoomOptions_max = (_this_options_zoomOptions = this.options.zoomOptions) == null ? void 0 : _this_options_zoomOptions.max) != null ? _this_options_zoomOptions_max : ZOOM_DEFAULT_OPTIONS.max;
11560
+ var ZOOM_MAX = (_ref = (_this_options_zoomOptions = this.options.zoomOptions) == null ? void 0 : _this_options_zoomOptions.max) != null ? _ref : ZOOM_DEFAULT_OPTIONS.max;
11384
11561
  if (zoom > ZOOM_MAX) {
11385
11562
  var _this_messageControl_info1, _this_messageControl1, _this_logger1;
11386
11563
  (_this_messageControl1 = this.messageControl) == null ? void 0 : (_this_messageControl_info1 = _this_messageControl1.info) == null ? void 0 : _this_messageControl_info1.call(_this_messageControl1, this.i18n.t('ZOOM_LIMIT_MAX', {
@@ -11584,6 +11761,6 @@ var THEME_DEFAULT_OPTIONS = {
11584
11761
  zh: zh,
11585
11762
  en: en
11586
11763
  };
11587
- /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.1.2-beta.4';
11764
+ /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.1.3-beta.1';
11588
11765
 
11589
11766
  export { Control, EVENTS, Fullscreen, Loading, Message, Play, Poster, Rec, Theme, Utils, Volume };