jwt-ui 1.0.7-8 → 1.0.8

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.
@@ -9,11 +9,19 @@
9
9
  /* harmony export */ "HD": function() { return /* binding */ isString; },
10
10
  /* harmony export */ "Kn": function() { return /* binding */ isObject; },
11
11
  /* harmony export */ "RI": function() { return /* binding */ hasOwn; },
12
+ /* harmony export */ "S0": function() { return /* binding */ isIntegerKey; },
13
+ /* harmony export */ "W7": function() { return /* binding */ toRawType; },
12
14
  /* harmony export */ "_A": function() { return /* binding */ camelize; },
15
+ /* harmony export */ "_N": function() { return /* binding */ isMap; },
16
+ /* harmony export */ "aU": function() { return /* binding */ hasChanged; },
13
17
  /* harmony export */ "dG": function() { return /* binding */ NOOP; },
14
- /* harmony export */ "mf": function() { return /* binding */ isFunction; }
18
+ /* harmony export */ "fY": function() { return /* binding */ makeMap; },
19
+ /* harmony export */ "kJ": function() { return /* binding */ isArray; },
20
+ /* harmony export */ "l7": function() { return /* binding */ extend; },
21
+ /* harmony export */ "mf": function() { return /* binding */ isFunction; },
22
+ /* harmony export */ "yk": function() { return /* binding */ isSymbol; }
15
23
  /* harmony export */ });
16
- /* unused harmony exports EMPTY_ARR, EMPTY_OBJ, NO, PatchFlagNames, capitalize, def, escapeHtml, escapeHtmlComment, extend, genPropsAccessExp, generateCodeFrame, getGlobalThis, hasChanged, hyphenate, includeBooleanAttr, invokeArrayFns, isArray, isBooleanAttr, isBuiltInDirective, isDate, isGloballyWhitelisted, isHTMLTag, isIntegerKey, isKnownHtmlAttr, isKnownSvgAttr, isMap, isModelListener, isNoUnitNumericStyleProp, isOn, isPlainObject, isPromise, isReservedProp, isSSRSafeAttrName, isSVGTag, isSet, isSpecialBooleanAttr, isSymbol, isVoidTag, looseEqual, looseIndexOf, makeMap, normalizeClass, normalizeProps, normalizeStyle, objectToString, parseStringStyle, propsToAttrMap, remove, slotFlagsText, stringifyStyle, toDisplayString, toHandlerKey, toNumber, toRawType, toTypeString */
24
+ /* unused harmony exports EMPTY_ARR, EMPTY_OBJ, NO, PatchFlagNames, capitalize, def, escapeHtml, escapeHtmlComment, genPropsAccessExp, generateCodeFrame, getGlobalThis, hyphenate, includeBooleanAttr, invokeArrayFns, isBooleanAttr, isBuiltInDirective, isDate, isGloballyWhitelisted, isHTMLTag, isKnownHtmlAttr, isKnownSvgAttr, isModelListener, isNoUnitNumericStyleProp, isOn, isPlainObject, isPromise, isReservedProp, isSSRSafeAttrName, isSVGTag, isSet, isSpecialBooleanAttr, isVoidTag, looseEqual, looseIndexOf, normalizeClass, normalizeProps, normalizeStyle, objectToString, parseStringStyle, propsToAttrMap, remove, slotFlagsText, stringifyStyle, toDisplayString, toHandlerKey, toNumber, toTypeString */
17
25
  /**
18
26
  * Make a map and return a function for checking if a key
19
27
  * is in that map.
@@ -40034,7 +40042,7 @@ const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(JwtCascaderArea
40034
40042
 
40035
40043
  /***/ }),
40036
40044
 
40037
- /***/ 5462:
40045
+ /***/ 8007:
40038
40046
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
40039
40047
 
40040
40048
  "use strict";
@@ -40048,10 +40056,10 @@ __webpack_require__.d(__webpack_exports__, {
40048
40056
 
40049
40057
  // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
40050
40058
  var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(3797);
40051
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/packages/JwtEditor/index.vue?vue&type=template&id=15382e44&scoped=true
40059
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/packages/JwtEditor/index.vue?vue&type=template&id=0d651e8c&scoped=true
40052
40060
 
40053
40061
 
40054
- const _withScopeId = n => (_pushScopeId("data-v-15382e44"), n = n(), _popScopeId(), n);
40062
+ const _withScopeId = n => (_pushScopeId("data-v-0d651e8c"), n = n(), _popScopeId(), n);
40055
40063
 
40056
40064
  const _hoisted_1 = {
40057
40065
  class: "base-wang-editor-wrapper",
@@ -40087,7 +40095,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
40087
40095
  onOnFocus: _ctx.handleFocus
40088
40096
  }, null, 8, ["default-config", "default-html", "mode", "onCustomAlert", "onOnBlur", "onOnChange", "onOnCreated", "onOnDestroyed", "onOnFocus"])]);
40089
40097
  }
40090
- ;// CONCATENATED MODULE: ./src/packages/JwtEditor/index.vue?vue&type=template&id=15382e44&scoped=true
40098
+ ;// CONCATENATED MODULE: ./src/packages/JwtEditor/index.vue?vue&type=template&id=0d651e8c&scoped=true
40091
40099
 
40092
40100
  // EXTERNAL MODULE: ./node_modules/@wangeditor/editor/dist/index.esm.js
40093
40101
  var index_esm = __webpack_require__(7877);
@@ -40349,7 +40357,8 @@ var Toolbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
40349
40357
 
40350
40358
  const state = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({
40351
40359
  // defaultHtml,
40352
- defaultContent
40360
+ defaultContent,
40361
+ initOnce: false
40353
40362
  });
40354
40363
  const toolbarConfig = {
40355
40364
  insertKeys: {
@@ -40448,6 +40457,7 @@ var Toolbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
40448
40457
  }); // 1.2 插入内容
40449
40458
 
40450
40459
  editor.dangerouslyInsertHtml(defaultHtml.value);
40460
+ state.initOnce = true;
40451
40461
  }; // 替换附件里面的内容
40452
40462
 
40453
40463
 
@@ -40467,10 +40477,21 @@ var Toolbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
40467
40477
  return html;
40468
40478
  };
40469
40479
 
40470
- (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
40471
- setTimeout(() => {
40472
- updateContent();
40473
- }, 200);
40480
+ (0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.modelValue, newValue => {
40481
+ // console.log('person变化了', newValue)
40482
+ // 这里直接执行的话是在onBeforeMount之前所以放在nextTick一个微任务里面
40483
+ (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
40484
+ if (!state.initOnce) {
40485
+ if (newValue && newValue !== '<p><br></p>') {
40486
+ updateContent();
40487
+ }
40488
+ }
40489
+ });
40490
+ } // { immediate: true }
40491
+ );
40492
+ (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {// setTimeout(() => {
40493
+ // updateContent();
40494
+ // }, 200);
40474
40495
  }); // 组件销毁时,也及时销毁编辑器
40475
40496
 
40476
40497
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onBeforeUnmount)(() => {
@@ -40499,10 +40520,10 @@ var Toolbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
40499
40520
  }));
40500
40521
  ;// CONCATENATED MODULE: ./src/packages/JwtEditor/index.vue?vue&type=script&lang=js
40501
40522
 
40502
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/packages/JwtEditor/index.vue?vue&type=style&index=0&id=15382e44&lang=scss&scoped=true
40523
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/packages/JwtEditor/index.vue?vue&type=style&index=0&id=0d651e8c&lang=scss&scoped=true
40503
40524
  // extracted by mini-css-extract-plugin
40504
40525
 
40505
- ;// CONCATENATED MODULE: ./src/packages/JwtEditor/index.vue?vue&type=style&index=0&id=15382e44&lang=scss&scoped=true
40526
+ ;// CONCATENATED MODULE: ./src/packages/JwtEditor/index.vue?vue&type=style&index=0&id=0d651e8c&lang=scss&scoped=true
40506
40527
 
40507
40528
  // EXTERNAL MODULE: ./node_modules/vue-loader/dist/exportHelper.js
40508
40529
  var exportHelper = __webpack_require__(3744);
@@ -40514,7 +40535,7 @@ var exportHelper = __webpack_require__(3744);
40514
40535
  ;
40515
40536
 
40516
40537
 
40517
- const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(JwtEditorvue_type_script_lang_js, [['render',render],['__scopeId',"data-v-15382e44"]])
40538
+ const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(JwtEditorvue_type_script_lang_js, [['render',render],['__scopeId',"data-v-0d651e8c"]])
40518
40539
 
40519
40540
  /* harmony default export */ var JwtEditor = (__exports__);
40520
40541
 
@@ -41966,7 +41987,7 @@ const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(JwtImagevue_typ
41966
41987
 
41967
41988
  /***/ }),
41968
41989
 
41969
- /***/ 5859:
41990
+ /***/ 1914:
41970
41991
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
41971
41992
 
41972
41993
  "use strict";
@@ -41980,7 +42001,7 @@ __webpack_require__.d(__webpack_exports__, {
41980
42001
 
41981
42002
  // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
41982
42003
  var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(3797);
41983
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/packages/JwtInput/index.vue?vue&type=template&id=172e66e8&scoped=true
42004
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/packages/JwtInput/index.vue?vue&type=template&id=72e5e110&scoped=true
41984
42005
 
41985
42006
  function render(_ctx, _cache, $props, $setup, $data, $options) {
41986
42007
  const _component_el_input = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("el-input");
@@ -41997,7 +42018,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
41997
42018
  onBlur: _ctx.handleBlur
41998
42019
  }), null, 16, ["modelValue", "style", "onBlur"]);
41999
42020
  }
42000
- ;// CONCATENATED MODULE: ./src/packages/JwtInput/index.vue?vue&type=template&id=172e66e8&scoped=true
42021
+ ;// CONCATENATED MODULE: ./src/packages/JwtInput/index.vue?vue&type=template&id=72e5e110&scoped=true
42001
42022
 
42002
42023
  ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/packages/JwtInput/index.vue?vue&type=script&lang=js
42003
42024
 
@@ -42018,7 +42039,12 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
42018
42039
  changeBg: {
42019
42040
  type: String,
42020
42041
  default: 'blue'
42021
- } // 改变时背景颜色
42042
+ },
42043
+ // 改变时背景颜色
42044
+ textColor: {
42045
+ type: String,
42046
+ default: ''
42047
+ } // 文字颜色
42022
42048
 
42023
42049
  },
42024
42050
  emits: ['update:modelValue', 'blur'],
@@ -42057,10 +42083,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
42057
42083
  }));
42058
42084
  ;// CONCATENATED MODULE: ./src/packages/JwtInput/index.vue?vue&type=script&lang=js
42059
42085
 
42060
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/packages/JwtInput/index.vue?vue&type=style&index=0&id=172e66e8&lang=scss&scoped=true
42086
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/packages/JwtInput/index.vue?vue&type=style&index=0&id=72e5e110&lang=scss&scoped=true
42061
42087
  // extracted by mini-css-extract-plugin
42062
42088
 
42063
- ;// CONCATENATED MODULE: ./src/packages/JwtInput/index.vue?vue&type=style&index=0&id=172e66e8&lang=scss&scoped=true
42089
+ ;// CONCATENATED MODULE: ./src/packages/JwtInput/index.vue?vue&type=style&index=0&id=72e5e110&lang=scss&scoped=true
42064
42090
 
42065
42091
  // EXTERNAL MODULE: ./node_modules/vue-loader/dist/exportHelper.js
42066
42092
  var exportHelper = __webpack_require__(3744);
@@ -42072,7 +42098,7 @@ var exportHelper = __webpack_require__(3744);
42072
42098
  ;
42073
42099
 
42074
42100
 
42075
- const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(JwtInputvue_type_script_lang_js, [['render',render],['__scopeId',"data-v-172e66e8"]])
42101
+ const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(JwtInputvue_type_script_lang_js, [['render',render],['__scopeId',"data-v-72e5e110"]])
42076
42102
 
42077
42103
  /* harmony default export */ var JwtInput = (__exports__);
42078
42104
 
@@ -42461,7 +42487,7 @@ const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(JwtSelectServer
42461
42487
 
42462
42488
  /***/ }),
42463
42489
 
42464
- /***/ 4619:
42490
+ /***/ 4282:
42465
42491
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
42466
42492
 
42467
42493
  "use strict";
@@ -45394,42 +45420,6 @@ const focusNode = (el) => {
45394
45420
 
45395
45421
  //# sourceMappingURL=aria.mjs.map
45396
45422
 
45397
- ;// CONCATENATED MODULE: ./node_modules/element-plus/es/utils/dom/event.mjs
45398
- const on = (element, event, handler, useCapture = false) => {
45399
- if (element && event && handler) {
45400
- element == null ? void 0 : element.addEventListener(event, handler, useCapture);
45401
- }
45402
- };
45403
- const off = (element, event, handler, useCapture = false) => {
45404
- if (element && event && handler) {
45405
- element == null ? void 0 : element.removeEventListener(event, handler, useCapture);
45406
- }
45407
- };
45408
- const once = (el, event, fn) => {
45409
- const listener = function(...args) {
45410
- if (fn) {
45411
- fn.apply(this, args);
45412
- }
45413
- off(el, event, listener);
45414
- };
45415
- on(el, event, listener);
45416
- };
45417
- const composeEventHandlers = (theirsHandler, oursHandler, { checkForDefaultPrevented = true } = {}) => {
45418
- const handleEvent = (event) => {
45419
- const shouldPrevent = theirsHandler == null ? void 0 : theirsHandler(event);
45420
- if (checkForDefaultPrevented === false || !shouldPrevent) {
45421
- return oursHandler == null ? void 0 : oursHandler(event);
45422
- }
45423
- };
45424
- return handleEvent;
45425
- };
45426
- const whenMouse = (handler) => {
45427
- return (e) => e.pointerType === "mouse" ? handler(e) : void 0;
45428
- };
45429
-
45430
-
45431
- //# sourceMappingURL=event.mjs.map
45432
-
45433
45423
  ;// CONCATENATED MODULE: ./node_modules/element-plus/es/directives/trap-focus/index.mjs
45434
45424
 
45435
45425
 
@@ -45437,7 +45427,6 @@ const whenMouse = (handler) => {
45437
45427
 
45438
45428
 
45439
45429
 
45440
-
45441
45430
  const FOCUSABLE_CHILDREN = "_trap-focus-children";
45442
45431
  const TRAP_FOCUS_HANDLER = "_trap-focus-handler";
45443
45432
  const FOCUS_STACK = [];
@@ -45473,7 +45462,7 @@ const TrapFocus = {
45473
45462
  el[FOCUSABLE_CHILDREN] = obtainAllFocusableElements(el);
45474
45463
  FOCUS_STACK.push(el);
45475
45464
  if (FOCUS_STACK.length <= 1) {
45476
- on(document, "keydown", FOCUS_HANDLER);
45465
+ document.addEventListener("keydown", FOCUS_HANDLER);
45477
45466
  }
45478
45467
  },
45479
45468
  updated(el) {
@@ -45484,7 +45473,7 @@ const TrapFocus = {
45484
45473
  unmounted() {
45485
45474
  FOCUS_STACK.shift();
45486
45475
  if (FOCUS_STACK.length === 0) {
45487
- off(document, "keydown", FOCUS_HANDLER);
45476
+ document.removeEventListener("keydown", FOCUS_HANDLER);
45488
45477
  }
45489
45478
  }
45490
45479
  };
@@ -45607,13 +45596,13 @@ const FOCUS_TRAP_INJECTION_KEY = Symbol("elFocusTrap");
45607
45596
 
45608
45597
 
45609
45598
  let registeredEscapeHandlers = [];
45599
+ const cachedHandler = (e) => {
45600
+ const event = e;
45601
+ if (event.key === aria/* EVENT_CODE.esc */.n.esc) {
45602
+ registeredEscapeHandlers.forEach((registeredHandler) => registeredHandler(event));
45603
+ }
45604
+ };
45610
45605
  const useEscapeKeydown = (handler) => {
45611
- const cachedHandler = (e) => {
45612
- const event = e;
45613
- if (event.key === aria/* EVENT_CODE.esc */.n.esc) {
45614
- registeredEscapeHandlers.forEach((registeredHandler) => registeredHandler(event));
45615
- }
45616
- };
45617
45606
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
45618
45607
  if (registeredEscapeHandlers.length === 0) {
45619
45608
  document.addEventListener("keydown", cachedHandler);
@@ -47480,6 +47469,1211 @@ const useDraggable = (targetRef, dragRef, draggable) => {
47480
47469
 
47481
47470
  //# sourceMappingURL=index.mjs.map
47482
47471
 
47472
+ ;// CONCATENATED MODULE: ./node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js
47473
+
47474
+
47475
+ function warn(msg, ...args) {
47476
+ console.warn(`[Vue warn] ${msg}`, ...args);
47477
+ }
47478
+
47479
+ let activeEffectScope;
47480
+ class EffectScope {
47481
+ constructor(detached = false) {
47482
+ /**
47483
+ * @internal
47484
+ */
47485
+ this.active = true;
47486
+ /**
47487
+ * @internal
47488
+ */
47489
+ this.effects = [];
47490
+ /**
47491
+ * @internal
47492
+ */
47493
+ this.cleanups = [];
47494
+ if (!detached && activeEffectScope) {
47495
+ this.parent = activeEffectScope;
47496
+ this.index =
47497
+ (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push(this) - 1;
47498
+ }
47499
+ }
47500
+ run(fn) {
47501
+ if (this.active) {
47502
+ const currentEffectScope = activeEffectScope;
47503
+ try {
47504
+ activeEffectScope = this;
47505
+ return fn();
47506
+ }
47507
+ finally {
47508
+ activeEffectScope = currentEffectScope;
47509
+ }
47510
+ }
47511
+ else if ((false)) {}
47512
+ }
47513
+ /**
47514
+ * This should only be called on non-detached scopes
47515
+ * @internal
47516
+ */
47517
+ on() {
47518
+ activeEffectScope = this;
47519
+ }
47520
+ /**
47521
+ * This should only be called on non-detached scopes
47522
+ * @internal
47523
+ */
47524
+ off() {
47525
+ activeEffectScope = this.parent;
47526
+ }
47527
+ stop(fromParent) {
47528
+ if (this.active) {
47529
+ let i, l;
47530
+ for (i = 0, l = this.effects.length; i < l; i++) {
47531
+ this.effects[i].stop();
47532
+ }
47533
+ for (i = 0, l = this.cleanups.length; i < l; i++) {
47534
+ this.cleanups[i]();
47535
+ }
47536
+ if (this.scopes) {
47537
+ for (i = 0, l = this.scopes.length; i < l; i++) {
47538
+ this.scopes[i].stop(true);
47539
+ }
47540
+ }
47541
+ // nested scope, dereference from parent to avoid memory leaks
47542
+ if (this.parent && !fromParent) {
47543
+ // optimized O(1) removal
47544
+ const last = this.parent.scopes.pop();
47545
+ if (last && last !== this) {
47546
+ this.parent.scopes[this.index] = last;
47547
+ last.index = this.index;
47548
+ }
47549
+ }
47550
+ this.active = false;
47551
+ }
47552
+ }
47553
+ }
47554
+ function effectScope(detached) {
47555
+ return new EffectScope(detached);
47556
+ }
47557
+ function recordEffectScope(effect, scope = activeEffectScope) {
47558
+ if (scope && scope.active) {
47559
+ scope.effects.push(effect);
47560
+ }
47561
+ }
47562
+ function getCurrentScope() {
47563
+ return activeEffectScope;
47564
+ }
47565
+ function onScopeDispose(fn) {
47566
+ if (activeEffectScope) {
47567
+ activeEffectScope.cleanups.push(fn);
47568
+ }
47569
+ else if ((false)) {}
47570
+ }
47571
+
47572
+ const createDep = (effects) => {
47573
+ const dep = new Set(effects);
47574
+ dep.w = 0;
47575
+ dep.n = 0;
47576
+ return dep;
47577
+ };
47578
+ const wasTracked = (dep) => (dep.w & trackOpBit) > 0;
47579
+ const newTracked = (dep) => (dep.n & trackOpBit) > 0;
47580
+ const initDepMarkers = ({ deps }) => {
47581
+ if (deps.length) {
47582
+ for (let i = 0; i < deps.length; i++) {
47583
+ deps[i].w |= trackOpBit; // set was tracked
47584
+ }
47585
+ }
47586
+ };
47587
+ const finalizeDepMarkers = (effect) => {
47588
+ const { deps } = effect;
47589
+ if (deps.length) {
47590
+ let ptr = 0;
47591
+ for (let i = 0; i < deps.length; i++) {
47592
+ const dep = deps[i];
47593
+ if (wasTracked(dep) && !newTracked(dep)) {
47594
+ dep.delete(effect);
47595
+ }
47596
+ else {
47597
+ deps[ptr++] = dep;
47598
+ }
47599
+ // clear bits
47600
+ dep.w &= ~trackOpBit;
47601
+ dep.n &= ~trackOpBit;
47602
+ }
47603
+ deps.length = ptr;
47604
+ }
47605
+ };
47606
+
47607
+ const targetMap = new WeakMap();
47608
+ // The number of effects currently being tracked recursively.
47609
+ let effectTrackDepth = 0;
47610
+ let trackOpBit = 1;
47611
+ /**
47612
+ * The bitwise track markers support at most 30 levels of recursion.
47613
+ * This value is chosen to enable modern JS engines to use a SMI on all platforms.
47614
+ * When recursion depth is greater, fall back to using a full cleanup.
47615
+ */
47616
+ const maxMarkerBits = 30;
47617
+ let activeEffect;
47618
+ const ITERATE_KEY = Symbol(( false) ? 0 : '');
47619
+ const MAP_KEY_ITERATE_KEY = Symbol(( false) ? 0 : '');
47620
+ class ReactiveEffect {
47621
+ constructor(fn, scheduler = null, scope) {
47622
+ this.fn = fn;
47623
+ this.scheduler = scheduler;
47624
+ this.active = true;
47625
+ this.deps = [];
47626
+ this.parent = undefined;
47627
+ recordEffectScope(this, scope);
47628
+ }
47629
+ run() {
47630
+ if (!this.active) {
47631
+ return this.fn();
47632
+ }
47633
+ let parent = activeEffect;
47634
+ let lastShouldTrack = shouldTrack;
47635
+ while (parent) {
47636
+ if (parent === this) {
47637
+ return;
47638
+ }
47639
+ parent = parent.parent;
47640
+ }
47641
+ try {
47642
+ this.parent = activeEffect;
47643
+ activeEffect = this;
47644
+ shouldTrack = true;
47645
+ trackOpBit = 1 << ++effectTrackDepth;
47646
+ if (effectTrackDepth <= maxMarkerBits) {
47647
+ initDepMarkers(this);
47648
+ }
47649
+ else {
47650
+ cleanupEffect(this);
47651
+ }
47652
+ return this.fn();
47653
+ }
47654
+ finally {
47655
+ if (effectTrackDepth <= maxMarkerBits) {
47656
+ finalizeDepMarkers(this);
47657
+ }
47658
+ trackOpBit = 1 << --effectTrackDepth;
47659
+ activeEffect = this.parent;
47660
+ shouldTrack = lastShouldTrack;
47661
+ this.parent = undefined;
47662
+ if (this.deferStop) {
47663
+ this.stop();
47664
+ }
47665
+ }
47666
+ }
47667
+ stop() {
47668
+ // stopped while running itself - defer the cleanup
47669
+ if (activeEffect === this) {
47670
+ this.deferStop = true;
47671
+ }
47672
+ else if (this.active) {
47673
+ cleanupEffect(this);
47674
+ if (this.onStop) {
47675
+ this.onStop();
47676
+ }
47677
+ this.active = false;
47678
+ }
47679
+ }
47680
+ }
47681
+ function cleanupEffect(effect) {
47682
+ const { deps } = effect;
47683
+ if (deps.length) {
47684
+ for (let i = 0; i < deps.length; i++) {
47685
+ deps[i].delete(effect);
47686
+ }
47687
+ deps.length = 0;
47688
+ }
47689
+ }
47690
+ function effect(fn, options) {
47691
+ if (fn.effect) {
47692
+ fn = fn.effect.fn;
47693
+ }
47694
+ const _effect = new ReactiveEffect(fn);
47695
+ if (options) {
47696
+ extend(_effect, options);
47697
+ if (options.scope)
47698
+ recordEffectScope(_effect, options.scope);
47699
+ }
47700
+ if (!options || !options.lazy) {
47701
+ _effect.run();
47702
+ }
47703
+ const runner = _effect.run.bind(_effect);
47704
+ runner.effect = _effect;
47705
+ return runner;
47706
+ }
47707
+ function stop(runner) {
47708
+ runner.effect.stop();
47709
+ }
47710
+ let shouldTrack = true;
47711
+ const trackStack = [];
47712
+ function pauseTracking() {
47713
+ trackStack.push(shouldTrack);
47714
+ shouldTrack = false;
47715
+ }
47716
+ function enableTracking() {
47717
+ trackStack.push(shouldTrack);
47718
+ shouldTrack = true;
47719
+ }
47720
+ function resetTracking() {
47721
+ const last = trackStack.pop();
47722
+ shouldTrack = last === undefined ? true : last;
47723
+ }
47724
+ function track(target, type, key) {
47725
+ if (shouldTrack && activeEffect) {
47726
+ let depsMap = targetMap.get(target);
47727
+ if (!depsMap) {
47728
+ targetMap.set(target, (depsMap = new Map()));
47729
+ }
47730
+ let dep = depsMap.get(key);
47731
+ if (!dep) {
47732
+ depsMap.set(key, (dep = createDep()));
47733
+ }
47734
+ const eventInfo = ( false)
47735
+ ? 0
47736
+ : undefined;
47737
+ trackEffects(dep, eventInfo);
47738
+ }
47739
+ }
47740
+ function trackEffects(dep, debuggerEventExtraInfo) {
47741
+ let shouldTrack = false;
47742
+ if (effectTrackDepth <= maxMarkerBits) {
47743
+ if (!newTracked(dep)) {
47744
+ dep.n |= trackOpBit; // set newly tracked
47745
+ shouldTrack = !wasTracked(dep);
47746
+ }
47747
+ }
47748
+ else {
47749
+ // Full cleanup mode.
47750
+ shouldTrack = !dep.has(activeEffect);
47751
+ }
47752
+ if (shouldTrack) {
47753
+ dep.add(activeEffect);
47754
+ activeEffect.deps.push(dep);
47755
+ if (false) {}
47756
+ }
47757
+ }
47758
+ function trigger(target, type, key, newValue, oldValue, oldTarget) {
47759
+ const depsMap = targetMap.get(target);
47760
+ if (!depsMap) {
47761
+ // never been tracked
47762
+ return;
47763
+ }
47764
+ let deps = [];
47765
+ if (type === "clear" /* CLEAR */) {
47766
+ // collection being cleared
47767
+ // trigger all effects for target
47768
+ deps = [...depsMap.values()];
47769
+ }
47770
+ else if (key === 'length' && (0,shared_esm_bundler/* isArray */.kJ)(target)) {
47771
+ depsMap.forEach((dep, key) => {
47772
+ if (key === 'length' || key >= newValue) {
47773
+ deps.push(dep);
47774
+ }
47775
+ });
47776
+ }
47777
+ else {
47778
+ // schedule runs for SET | ADD | DELETE
47779
+ if (key !== void 0) {
47780
+ deps.push(depsMap.get(key));
47781
+ }
47782
+ // also run for iteration key on ADD | DELETE | Map.SET
47783
+ switch (type) {
47784
+ case "add" /* ADD */:
47785
+ if (!(0,shared_esm_bundler/* isArray */.kJ)(target)) {
47786
+ deps.push(depsMap.get(ITERATE_KEY));
47787
+ if ((0,shared_esm_bundler/* isMap */._N)(target)) {
47788
+ deps.push(depsMap.get(MAP_KEY_ITERATE_KEY));
47789
+ }
47790
+ }
47791
+ else if ((0,shared_esm_bundler/* isIntegerKey */.S0)(key)) {
47792
+ // new index added to array -> length changes
47793
+ deps.push(depsMap.get('length'));
47794
+ }
47795
+ break;
47796
+ case "delete" /* DELETE */:
47797
+ if (!(0,shared_esm_bundler/* isArray */.kJ)(target)) {
47798
+ deps.push(depsMap.get(ITERATE_KEY));
47799
+ if ((0,shared_esm_bundler/* isMap */._N)(target)) {
47800
+ deps.push(depsMap.get(MAP_KEY_ITERATE_KEY));
47801
+ }
47802
+ }
47803
+ break;
47804
+ case "set" /* SET */:
47805
+ if ((0,shared_esm_bundler/* isMap */._N)(target)) {
47806
+ deps.push(depsMap.get(ITERATE_KEY));
47807
+ }
47808
+ break;
47809
+ }
47810
+ }
47811
+ const eventInfo = ( false)
47812
+ ? 0
47813
+ : undefined;
47814
+ if (deps.length === 1) {
47815
+ if (deps[0]) {
47816
+ if ((false)) {}
47817
+ else {
47818
+ triggerEffects(deps[0]);
47819
+ }
47820
+ }
47821
+ }
47822
+ else {
47823
+ const effects = [];
47824
+ for (const dep of deps) {
47825
+ if (dep) {
47826
+ effects.push(...dep);
47827
+ }
47828
+ }
47829
+ if ((false)) {}
47830
+ else {
47831
+ triggerEffects(createDep(effects));
47832
+ }
47833
+ }
47834
+ }
47835
+ function triggerEffects(dep, debuggerEventExtraInfo) {
47836
+ // spread into array for stabilization
47837
+ const effects = (0,shared_esm_bundler/* isArray */.kJ)(dep) ? dep : [...dep];
47838
+ for (const effect of effects) {
47839
+ if (effect.computed) {
47840
+ triggerEffect(effect, debuggerEventExtraInfo);
47841
+ }
47842
+ }
47843
+ for (const effect of effects) {
47844
+ if (!effect.computed) {
47845
+ triggerEffect(effect, debuggerEventExtraInfo);
47846
+ }
47847
+ }
47848
+ }
47849
+ function triggerEffect(effect, debuggerEventExtraInfo) {
47850
+ if (effect !== activeEffect || effect.allowRecurse) {
47851
+ if (false) {}
47852
+ if (effect.scheduler) {
47853
+ effect.scheduler();
47854
+ }
47855
+ else {
47856
+ effect.run();
47857
+ }
47858
+ }
47859
+ }
47860
+
47861
+ const isNonTrackableKeys = /*#__PURE__*/ (0,shared_esm_bundler/* makeMap */.fY)(`__proto__,__v_isRef,__isVue`);
47862
+ const builtInSymbols = new Set(
47863
+ /*#__PURE__*/
47864
+ Object.getOwnPropertyNames(Symbol)
47865
+ // ios10.x Object.getOwnPropertyNames(Symbol) can enumerate 'arguments' and 'caller'
47866
+ // but accessing them on Symbol leads to TypeError because Symbol is a strict mode
47867
+ // function
47868
+ .filter(key => key !== 'arguments' && key !== 'caller')
47869
+ .map(key => Symbol[key])
47870
+ .filter(shared_esm_bundler/* isSymbol */.yk));
47871
+ const reactivity_esm_bundler_get = /*#__PURE__*/ createGetter();
47872
+ const shallowGet = /*#__PURE__*/ createGetter(false, true);
47873
+ const readonlyGet = /*#__PURE__*/ createGetter(true);
47874
+ const shallowReadonlyGet = /*#__PURE__*/ createGetter(true, true);
47875
+ const arrayInstrumentations = /*#__PURE__*/ createArrayInstrumentations();
47876
+ function createArrayInstrumentations() {
47877
+ const instrumentations = {};
47878
+ ['includes', 'indexOf', 'lastIndexOf'].forEach(key => {
47879
+ instrumentations[key] = function (...args) {
47880
+ const arr = toRaw(this);
47881
+ for (let i = 0, l = this.length; i < l; i++) {
47882
+ track(arr, "get" /* GET */, i + '');
47883
+ }
47884
+ // we run the method using the original args first (which may be reactive)
47885
+ const res = arr[key](...args);
47886
+ if (res === -1 || res === false) {
47887
+ // if that didn't work, run it again using raw values.
47888
+ return arr[key](...args.map(toRaw));
47889
+ }
47890
+ else {
47891
+ return res;
47892
+ }
47893
+ };
47894
+ });
47895
+ ['push', 'pop', 'shift', 'unshift', 'splice'].forEach(key => {
47896
+ instrumentations[key] = function (...args) {
47897
+ pauseTracking();
47898
+ const res = toRaw(this)[key].apply(this, args);
47899
+ resetTracking();
47900
+ return res;
47901
+ };
47902
+ });
47903
+ return instrumentations;
47904
+ }
47905
+ function createGetter(isReadonly = false, shallow = false) {
47906
+ return function get(target, key, receiver) {
47907
+ if (key === "__v_isReactive" /* IS_REACTIVE */) {
47908
+ return !isReadonly;
47909
+ }
47910
+ else if (key === "__v_isReadonly" /* IS_READONLY */) {
47911
+ return isReadonly;
47912
+ }
47913
+ else if (key === "__v_isShallow" /* IS_SHALLOW */) {
47914
+ return shallow;
47915
+ }
47916
+ else if (key === "__v_raw" /* RAW */ &&
47917
+ receiver ===
47918
+ (isReadonly
47919
+ ? shallow
47920
+ ? shallowReadonlyMap
47921
+ : readonlyMap
47922
+ : shallow
47923
+ ? shallowReactiveMap
47924
+ : reactiveMap).get(target)) {
47925
+ return target;
47926
+ }
47927
+ const targetIsArray = (0,shared_esm_bundler/* isArray */.kJ)(target);
47928
+ if (!isReadonly && targetIsArray && (0,shared_esm_bundler/* hasOwn */.RI)(arrayInstrumentations, key)) {
47929
+ return Reflect.get(arrayInstrumentations, key, receiver);
47930
+ }
47931
+ const res = Reflect.get(target, key, receiver);
47932
+ if ((0,shared_esm_bundler/* isSymbol */.yk)(key) ? builtInSymbols.has(key) : isNonTrackableKeys(key)) {
47933
+ return res;
47934
+ }
47935
+ if (!isReadonly) {
47936
+ track(target, "get" /* GET */, key);
47937
+ }
47938
+ if (shallow) {
47939
+ return res;
47940
+ }
47941
+ if (isRef(res)) {
47942
+ // ref unwrapping - skip unwrap for Array + integer key.
47943
+ return targetIsArray && (0,shared_esm_bundler/* isIntegerKey */.S0)(key) ? res : res.value;
47944
+ }
47945
+ if ((0,shared_esm_bundler/* isObject */.Kn)(res)) {
47946
+ // Convert returned value into a proxy as well. we do the isObject check
47947
+ // here to avoid invalid value warning. Also need to lazy access readonly
47948
+ // and reactive here to avoid circular dependency.
47949
+ return isReadonly ? readonly(res) : reactive(res);
47950
+ }
47951
+ return res;
47952
+ };
47953
+ }
47954
+ const set = /*#__PURE__*/ createSetter();
47955
+ const shallowSet = /*#__PURE__*/ createSetter(true);
47956
+ function createSetter(shallow = false) {
47957
+ return function set(target, key, value, receiver) {
47958
+ let oldValue = target[key];
47959
+ if (isReadonly(oldValue) && isRef(oldValue) && !isRef(value)) {
47960
+ return false;
47961
+ }
47962
+ if (!shallow && !isReadonly(value)) {
47963
+ if (!isShallow(value)) {
47964
+ value = toRaw(value);
47965
+ oldValue = toRaw(oldValue);
47966
+ }
47967
+ if (!(0,shared_esm_bundler/* isArray */.kJ)(target) && isRef(oldValue) && !isRef(value)) {
47968
+ oldValue.value = value;
47969
+ return true;
47970
+ }
47971
+ }
47972
+ const hadKey = (0,shared_esm_bundler/* isArray */.kJ)(target) && (0,shared_esm_bundler/* isIntegerKey */.S0)(key)
47973
+ ? Number(key) < target.length
47974
+ : (0,shared_esm_bundler/* hasOwn */.RI)(target, key);
47975
+ const result = Reflect.set(target, key, value, receiver);
47976
+ // don't trigger if target is something up in the prototype chain of original
47977
+ if (target === toRaw(receiver)) {
47978
+ if (!hadKey) {
47979
+ trigger(target, "add" /* ADD */, key, value);
47980
+ }
47981
+ else if ((0,shared_esm_bundler/* hasChanged */.aU)(value, oldValue)) {
47982
+ trigger(target, "set" /* SET */, key, value, oldValue);
47983
+ }
47984
+ }
47985
+ return result;
47986
+ };
47987
+ }
47988
+ function deleteProperty(target, key) {
47989
+ const hadKey = (0,shared_esm_bundler/* hasOwn */.RI)(target, key);
47990
+ const oldValue = target[key];
47991
+ const result = Reflect.deleteProperty(target, key);
47992
+ if (result && hadKey) {
47993
+ trigger(target, "delete" /* DELETE */, key, undefined, oldValue);
47994
+ }
47995
+ return result;
47996
+ }
47997
+ function has(target, key) {
47998
+ const result = Reflect.has(target, key);
47999
+ if (!(0,shared_esm_bundler/* isSymbol */.yk)(key) || !builtInSymbols.has(key)) {
48000
+ track(target, "has" /* HAS */, key);
48001
+ }
48002
+ return result;
48003
+ }
48004
+ function ownKeys(target) {
48005
+ track(target, "iterate" /* ITERATE */, (0,shared_esm_bundler/* isArray */.kJ)(target) ? 'length' : ITERATE_KEY);
48006
+ return Reflect.ownKeys(target);
48007
+ }
48008
+ const mutableHandlers = {
48009
+ get: reactivity_esm_bundler_get,
48010
+ set,
48011
+ deleteProperty,
48012
+ has,
48013
+ ownKeys
48014
+ };
48015
+ const readonlyHandlers = {
48016
+ get: readonlyGet,
48017
+ set(target, key) {
48018
+ if ((false)) {}
48019
+ return true;
48020
+ },
48021
+ deleteProperty(target, key) {
48022
+ if ((false)) {}
48023
+ return true;
48024
+ }
48025
+ };
48026
+ const shallowReactiveHandlers = /*#__PURE__*/ (0,shared_esm_bundler/* extend */.l7)({}, mutableHandlers, {
48027
+ get: shallowGet,
48028
+ set: shallowSet
48029
+ });
48030
+ // Props handlers are special in the sense that it should not unwrap top-level
48031
+ // refs (in order to allow refs to be explicitly passed down), but should
48032
+ // retain the reactivity of the normal readonly object.
48033
+ const shallowReadonlyHandlers = /*#__PURE__*/ (0,shared_esm_bundler/* extend */.l7)({}, readonlyHandlers, {
48034
+ get: shallowReadonlyGet
48035
+ });
48036
+
48037
+ const toShallow = (value) => value;
48038
+ const getProto = (v) => Reflect.getPrototypeOf(v);
48039
+ function get$1(target, key, isReadonly = false, isShallow = false) {
48040
+ // #1772: readonly(reactive(Map)) should return readonly + reactive version
48041
+ // of the value
48042
+ target = target["__v_raw" /* RAW */];
48043
+ const rawTarget = toRaw(target);
48044
+ const rawKey = toRaw(key);
48045
+ if (!isReadonly) {
48046
+ if (key !== rawKey) {
48047
+ track(rawTarget, "get" /* GET */, key);
48048
+ }
48049
+ track(rawTarget, "get" /* GET */, rawKey);
48050
+ }
48051
+ const { has } = getProto(rawTarget);
48052
+ const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;
48053
+ if (has.call(rawTarget, key)) {
48054
+ return wrap(target.get(key));
48055
+ }
48056
+ else if (has.call(rawTarget, rawKey)) {
48057
+ return wrap(target.get(rawKey));
48058
+ }
48059
+ else if (target !== rawTarget) {
48060
+ // #3602 readonly(reactive(Map))
48061
+ // ensure that the nested reactive `Map` can do tracking for itself
48062
+ target.get(key);
48063
+ }
48064
+ }
48065
+ function has$1(key, isReadonly = false) {
48066
+ const target = this["__v_raw" /* RAW */];
48067
+ const rawTarget = toRaw(target);
48068
+ const rawKey = toRaw(key);
48069
+ if (!isReadonly) {
48070
+ if (key !== rawKey) {
48071
+ track(rawTarget, "has" /* HAS */, key);
48072
+ }
48073
+ track(rawTarget, "has" /* HAS */, rawKey);
48074
+ }
48075
+ return key === rawKey
48076
+ ? target.has(key)
48077
+ : target.has(key) || target.has(rawKey);
48078
+ }
48079
+ function reactivity_esm_bundler_size(target, isReadonly = false) {
48080
+ target = target["__v_raw" /* RAW */];
48081
+ !isReadonly && track(toRaw(target), "iterate" /* ITERATE */, ITERATE_KEY);
48082
+ return Reflect.get(target, 'size', target);
48083
+ }
48084
+ function add(value) {
48085
+ value = toRaw(value);
48086
+ const target = toRaw(this);
48087
+ const proto = getProto(target);
48088
+ const hadKey = proto.has.call(target, value);
48089
+ if (!hadKey) {
48090
+ target.add(value);
48091
+ trigger(target, "add" /* ADD */, value, value);
48092
+ }
48093
+ return this;
48094
+ }
48095
+ function set$1(key, value) {
48096
+ value = toRaw(value);
48097
+ const target = toRaw(this);
48098
+ const { has, get } = getProto(target);
48099
+ let hadKey = has.call(target, key);
48100
+ if (!hadKey) {
48101
+ key = toRaw(key);
48102
+ hadKey = has.call(target, key);
48103
+ }
48104
+ else if ((false)) {}
48105
+ const oldValue = get.call(target, key);
48106
+ target.set(key, value);
48107
+ if (!hadKey) {
48108
+ trigger(target, "add" /* ADD */, key, value);
48109
+ }
48110
+ else if ((0,shared_esm_bundler/* hasChanged */.aU)(value, oldValue)) {
48111
+ trigger(target, "set" /* SET */, key, value, oldValue);
48112
+ }
48113
+ return this;
48114
+ }
48115
+ function deleteEntry(key) {
48116
+ const target = toRaw(this);
48117
+ const { has, get } = getProto(target);
48118
+ let hadKey = has.call(target, key);
48119
+ if (!hadKey) {
48120
+ key = toRaw(key);
48121
+ hadKey = has.call(target, key);
48122
+ }
48123
+ else if ((false)) {}
48124
+ const oldValue = get ? get.call(target, key) : undefined;
48125
+ // forward the operation before queueing reactions
48126
+ const result = target.delete(key);
48127
+ if (hadKey) {
48128
+ trigger(target, "delete" /* DELETE */, key, undefined, oldValue);
48129
+ }
48130
+ return result;
48131
+ }
48132
+ function clear() {
48133
+ const target = toRaw(this);
48134
+ const hadItems = target.size !== 0;
48135
+ const oldTarget = ( false)
48136
+ ? 0
48137
+ : undefined;
48138
+ // forward the operation before queueing reactions
48139
+ const result = target.clear();
48140
+ if (hadItems) {
48141
+ trigger(target, "clear" /* CLEAR */, undefined, undefined, oldTarget);
48142
+ }
48143
+ return result;
48144
+ }
48145
+ function createForEach(isReadonly, isShallow) {
48146
+ return function forEach(callback, thisArg) {
48147
+ const observed = this;
48148
+ const target = observed["__v_raw" /* RAW */];
48149
+ const rawTarget = toRaw(target);
48150
+ const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;
48151
+ !isReadonly && track(rawTarget, "iterate" /* ITERATE */, ITERATE_KEY);
48152
+ return target.forEach((value, key) => {
48153
+ // important: make sure the callback is
48154
+ // 1. invoked with the reactive map as `this` and 3rd arg
48155
+ // 2. the value received should be a corresponding reactive/readonly.
48156
+ return callback.call(thisArg, wrap(value), wrap(key), observed);
48157
+ });
48158
+ };
48159
+ }
48160
+ function createIterableMethod(method, isReadonly, isShallow) {
48161
+ return function (...args) {
48162
+ const target = this["__v_raw" /* RAW */];
48163
+ const rawTarget = toRaw(target);
48164
+ const targetIsMap = (0,shared_esm_bundler/* isMap */._N)(rawTarget);
48165
+ const isPair = method === 'entries' || (method === Symbol.iterator && targetIsMap);
48166
+ const isKeyOnly = method === 'keys' && targetIsMap;
48167
+ const innerIterator = target[method](...args);
48168
+ const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;
48169
+ !isReadonly &&
48170
+ track(rawTarget, "iterate" /* ITERATE */, isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY);
48171
+ // return a wrapped iterator which returns observed versions of the
48172
+ // values emitted from the real iterator
48173
+ return {
48174
+ // iterator protocol
48175
+ next() {
48176
+ const { value, done } = innerIterator.next();
48177
+ return done
48178
+ ? { value, done }
48179
+ : {
48180
+ value: isPair ? [wrap(value[0]), wrap(value[1])] : wrap(value),
48181
+ done
48182
+ };
48183
+ },
48184
+ // iterable protocol
48185
+ [Symbol.iterator]() {
48186
+ return this;
48187
+ }
48188
+ };
48189
+ };
48190
+ }
48191
+ function createReadonlyMethod(type) {
48192
+ return function (...args) {
48193
+ if ((false)) {}
48194
+ return type === "delete" /* DELETE */ ? false : this;
48195
+ };
48196
+ }
48197
+ function createInstrumentations() {
48198
+ const mutableInstrumentations = {
48199
+ get(key) {
48200
+ return get$1(this, key);
48201
+ },
48202
+ get size() {
48203
+ return reactivity_esm_bundler_size(this);
48204
+ },
48205
+ has: has$1,
48206
+ add,
48207
+ set: set$1,
48208
+ delete: deleteEntry,
48209
+ clear,
48210
+ forEach: createForEach(false, false)
48211
+ };
48212
+ const shallowInstrumentations = {
48213
+ get(key) {
48214
+ return get$1(this, key, false, true);
48215
+ },
48216
+ get size() {
48217
+ return reactivity_esm_bundler_size(this);
48218
+ },
48219
+ has: has$1,
48220
+ add,
48221
+ set: set$1,
48222
+ delete: deleteEntry,
48223
+ clear,
48224
+ forEach: createForEach(false, true)
48225
+ };
48226
+ const readonlyInstrumentations = {
48227
+ get(key) {
48228
+ return get$1(this, key, true);
48229
+ },
48230
+ get size() {
48231
+ return reactivity_esm_bundler_size(this, true);
48232
+ },
48233
+ has(key) {
48234
+ return has$1.call(this, key, true);
48235
+ },
48236
+ add: createReadonlyMethod("add" /* ADD */),
48237
+ set: createReadonlyMethod("set" /* SET */),
48238
+ delete: createReadonlyMethod("delete" /* DELETE */),
48239
+ clear: createReadonlyMethod("clear" /* CLEAR */),
48240
+ forEach: createForEach(true, false)
48241
+ };
48242
+ const shallowReadonlyInstrumentations = {
48243
+ get(key) {
48244
+ return get$1(this, key, true, true);
48245
+ },
48246
+ get size() {
48247
+ return reactivity_esm_bundler_size(this, true);
48248
+ },
48249
+ has(key) {
48250
+ return has$1.call(this, key, true);
48251
+ },
48252
+ add: createReadonlyMethod("add" /* ADD */),
48253
+ set: createReadonlyMethod("set" /* SET */),
48254
+ delete: createReadonlyMethod("delete" /* DELETE */),
48255
+ clear: createReadonlyMethod("clear" /* CLEAR */),
48256
+ forEach: createForEach(true, true)
48257
+ };
48258
+ const iteratorMethods = ['keys', 'values', 'entries', Symbol.iterator];
48259
+ iteratorMethods.forEach(method => {
48260
+ mutableInstrumentations[method] = createIterableMethod(method, false, false);
48261
+ readonlyInstrumentations[method] = createIterableMethod(method, true, false);
48262
+ shallowInstrumentations[method] = createIterableMethod(method, false, true);
48263
+ shallowReadonlyInstrumentations[method] = createIterableMethod(method, true, true);
48264
+ });
48265
+ return [
48266
+ mutableInstrumentations,
48267
+ readonlyInstrumentations,
48268
+ shallowInstrumentations,
48269
+ shallowReadonlyInstrumentations
48270
+ ];
48271
+ }
48272
+ const [mutableInstrumentations, readonlyInstrumentations, shallowInstrumentations, shallowReadonlyInstrumentations] = /* #__PURE__*/ createInstrumentations();
48273
+ function createInstrumentationGetter(isReadonly, shallow) {
48274
+ const instrumentations = shallow
48275
+ ? isReadonly
48276
+ ? shallowReadonlyInstrumentations
48277
+ : shallowInstrumentations
48278
+ : isReadonly
48279
+ ? readonlyInstrumentations
48280
+ : mutableInstrumentations;
48281
+ return (target, key, receiver) => {
48282
+ if (key === "__v_isReactive" /* IS_REACTIVE */) {
48283
+ return !isReadonly;
48284
+ }
48285
+ else if (key === "__v_isReadonly" /* IS_READONLY */) {
48286
+ return isReadonly;
48287
+ }
48288
+ else if (key === "__v_raw" /* RAW */) {
48289
+ return target;
48290
+ }
48291
+ return Reflect.get((0,shared_esm_bundler/* hasOwn */.RI)(instrumentations, key) && key in target
48292
+ ? instrumentations
48293
+ : target, key, receiver);
48294
+ };
48295
+ }
48296
+ const mutableCollectionHandlers = {
48297
+ get: /*#__PURE__*/ createInstrumentationGetter(false, false)
48298
+ };
48299
+ const shallowCollectionHandlers = {
48300
+ get: /*#__PURE__*/ createInstrumentationGetter(false, true)
48301
+ };
48302
+ const readonlyCollectionHandlers = {
48303
+ get: /*#__PURE__*/ createInstrumentationGetter(true, false)
48304
+ };
48305
+ const shallowReadonlyCollectionHandlers = {
48306
+ get: /*#__PURE__*/ createInstrumentationGetter(true, true)
48307
+ };
48308
+ function checkIdentityKeys(target, has, key) {
48309
+ const rawKey = toRaw(key);
48310
+ if (rawKey !== key && has.call(target, rawKey)) {
48311
+ const type = toRawType(target);
48312
+ console.warn(`Reactive ${type} contains both the raw and reactive ` +
48313
+ `versions of the same object${type === `Map` ? ` as keys` : ``}, ` +
48314
+ `which can lead to inconsistencies. ` +
48315
+ `Avoid differentiating between the raw and reactive versions ` +
48316
+ `of an object and only use the reactive version if possible.`);
48317
+ }
48318
+ }
48319
+
48320
+ const reactiveMap = new WeakMap();
48321
+ const shallowReactiveMap = new WeakMap();
48322
+ const readonlyMap = new WeakMap();
48323
+ const shallowReadonlyMap = new WeakMap();
48324
+ function targetTypeMap(rawType) {
48325
+ switch (rawType) {
48326
+ case 'Object':
48327
+ case 'Array':
48328
+ return 1 /* COMMON */;
48329
+ case 'Map':
48330
+ case 'Set':
48331
+ case 'WeakMap':
48332
+ case 'WeakSet':
48333
+ return 2 /* COLLECTION */;
48334
+ default:
48335
+ return 0 /* INVALID */;
48336
+ }
48337
+ }
48338
+ function getTargetType(value) {
48339
+ return value["__v_skip" /* SKIP */] || !Object.isExtensible(value)
48340
+ ? 0 /* INVALID */
48341
+ : targetTypeMap((0,shared_esm_bundler/* toRawType */.W7)(value));
48342
+ }
48343
+ function reactive(target) {
48344
+ // if trying to observe a readonly proxy, return the readonly version.
48345
+ if (isReadonly(target)) {
48346
+ return target;
48347
+ }
48348
+ return createReactiveObject(target, false, mutableHandlers, mutableCollectionHandlers, reactiveMap);
48349
+ }
48350
+ /**
48351
+ * Return a shallowly-reactive copy of the original object, where only the root
48352
+ * level properties are reactive. It also does not auto-unwrap refs (even at the
48353
+ * root level).
48354
+ */
48355
+ function shallowReactive(target) {
48356
+ return createReactiveObject(target, false, shallowReactiveHandlers, shallowCollectionHandlers, shallowReactiveMap);
48357
+ }
48358
+ /**
48359
+ * Creates a readonly copy of the original object. Note the returned copy is not
48360
+ * made reactive, but `readonly` can be called on an already reactive object.
48361
+ */
48362
+ function readonly(target) {
48363
+ return createReactiveObject(target, true, readonlyHandlers, readonlyCollectionHandlers, readonlyMap);
48364
+ }
48365
+ /**
48366
+ * Returns a reactive-copy of the original object, where only the root level
48367
+ * properties are readonly, and does NOT unwrap refs nor recursively convert
48368
+ * returned properties.
48369
+ * This is used for creating the props proxy object for stateful components.
48370
+ */
48371
+ function shallowReadonly(target) {
48372
+ return createReactiveObject(target, true, shallowReadonlyHandlers, shallowReadonlyCollectionHandlers, shallowReadonlyMap);
48373
+ }
48374
+ function createReactiveObject(target, isReadonly, baseHandlers, collectionHandlers, proxyMap) {
48375
+ if (!(0,shared_esm_bundler/* isObject */.Kn)(target)) {
48376
+ if ((false)) {}
48377
+ return target;
48378
+ }
48379
+ // target is already a Proxy, return it.
48380
+ // exception: calling readonly() on a reactive object
48381
+ if (target["__v_raw" /* RAW */] &&
48382
+ !(isReadonly && target["__v_isReactive" /* IS_REACTIVE */])) {
48383
+ return target;
48384
+ }
48385
+ // target already has corresponding Proxy
48386
+ const existingProxy = proxyMap.get(target);
48387
+ if (existingProxy) {
48388
+ return existingProxy;
48389
+ }
48390
+ // only specific value types can be observed.
48391
+ const targetType = getTargetType(target);
48392
+ if (targetType === 0 /* INVALID */) {
48393
+ return target;
48394
+ }
48395
+ const proxy = new Proxy(target, targetType === 2 /* COLLECTION */ ? collectionHandlers : baseHandlers);
48396
+ proxyMap.set(target, proxy);
48397
+ return proxy;
48398
+ }
48399
+ function isReactive(value) {
48400
+ if (isReadonly(value)) {
48401
+ return isReactive(value["__v_raw" /* RAW */]);
48402
+ }
48403
+ return !!(value && value["__v_isReactive" /* IS_REACTIVE */]);
48404
+ }
48405
+ function isReadonly(value) {
48406
+ return !!(value && value["__v_isReadonly" /* IS_READONLY */]);
48407
+ }
48408
+ function isShallow(value) {
48409
+ return !!(value && value["__v_isShallow" /* IS_SHALLOW */]);
48410
+ }
48411
+ function isProxy(value) {
48412
+ return isReactive(value) || isReadonly(value);
48413
+ }
48414
+ function toRaw(observed) {
48415
+ const raw = observed && observed["__v_raw" /* RAW */];
48416
+ return raw ? toRaw(raw) : observed;
48417
+ }
48418
+ function markRaw(value) {
48419
+ def(value, "__v_skip" /* SKIP */, true);
48420
+ return value;
48421
+ }
48422
+ const toReactive = (value) => (0,shared_esm_bundler/* isObject */.Kn)(value) ? reactive(value) : value;
48423
+ const toReadonly = (value) => (0,shared_esm_bundler/* isObject */.Kn)(value) ? readonly(value) : value;
48424
+
48425
+ function trackRefValue(ref) {
48426
+ if (shouldTrack && activeEffect) {
48427
+ ref = toRaw(ref);
48428
+ if ((false)) {}
48429
+ else {
48430
+ trackEffects(ref.dep || (ref.dep = createDep()));
48431
+ }
48432
+ }
48433
+ }
48434
+ function triggerRefValue(ref, newVal) {
48435
+ ref = toRaw(ref);
48436
+ if (ref.dep) {
48437
+ if ((false)) {}
48438
+ else {
48439
+ triggerEffects(ref.dep);
48440
+ }
48441
+ }
48442
+ }
48443
+ function isRef(r) {
48444
+ return !!(r && r.__v_isRef === true);
48445
+ }
48446
+ function ref(value) {
48447
+ return createRef(value, false);
48448
+ }
48449
+ function shallowRef(value) {
48450
+ return createRef(value, true);
48451
+ }
48452
+ function createRef(rawValue, shallow) {
48453
+ if (isRef(rawValue)) {
48454
+ return rawValue;
48455
+ }
48456
+ return new RefImpl(rawValue, shallow);
48457
+ }
48458
+ class RefImpl {
48459
+ constructor(value, __v_isShallow) {
48460
+ this.__v_isShallow = __v_isShallow;
48461
+ this.dep = undefined;
48462
+ this.__v_isRef = true;
48463
+ this._rawValue = __v_isShallow ? value : toRaw(value);
48464
+ this._value = __v_isShallow ? value : toReactive(value);
48465
+ }
48466
+ get value() {
48467
+ trackRefValue(this);
48468
+ return this._value;
48469
+ }
48470
+ set value(newVal) {
48471
+ newVal = this.__v_isShallow ? newVal : toRaw(newVal);
48472
+ if (hasChanged(newVal, this._rawValue)) {
48473
+ this._rawValue = newVal;
48474
+ this._value = this.__v_isShallow ? newVal : toReactive(newVal);
48475
+ triggerRefValue(this, newVal);
48476
+ }
48477
+ }
48478
+ }
48479
+ function triggerRef(ref) {
48480
+ triggerRefValue(ref, ( false) ? 0 : void 0);
48481
+ }
48482
+ function unref(ref) {
48483
+ return isRef(ref) ? ref.value : ref;
48484
+ }
48485
+ const shallowUnwrapHandlers = {
48486
+ get: (target, key, receiver) => unref(Reflect.get(target, key, receiver)),
48487
+ set: (target, key, value, receiver) => {
48488
+ const oldValue = target[key];
48489
+ if (isRef(oldValue) && !isRef(value)) {
48490
+ oldValue.value = value;
48491
+ return true;
48492
+ }
48493
+ else {
48494
+ return Reflect.set(target, key, value, receiver);
48495
+ }
48496
+ }
48497
+ };
48498
+ function proxyRefs(objectWithRefs) {
48499
+ return isReactive(objectWithRefs)
48500
+ ? objectWithRefs
48501
+ : new Proxy(objectWithRefs, shallowUnwrapHandlers);
48502
+ }
48503
+ class CustomRefImpl {
48504
+ constructor(factory) {
48505
+ this.dep = undefined;
48506
+ this.__v_isRef = true;
48507
+ const { get, set } = factory(() => trackRefValue(this), () => triggerRefValue(this));
48508
+ this._get = get;
48509
+ this._set = set;
48510
+ }
48511
+ get value() {
48512
+ return this._get();
48513
+ }
48514
+ set value(newVal) {
48515
+ this._set(newVal);
48516
+ }
48517
+ }
48518
+ function customRef(factory) {
48519
+ return new CustomRefImpl(factory);
48520
+ }
48521
+ function toRefs(object) {
48522
+ if (false) {}
48523
+ const ret = isArray(object) ? new Array(object.length) : {};
48524
+ for (const key in object) {
48525
+ ret[key] = toRef(object, key);
48526
+ }
48527
+ return ret;
48528
+ }
48529
+ class ObjectRefImpl {
48530
+ constructor(_object, _key, _defaultValue) {
48531
+ this._object = _object;
48532
+ this._key = _key;
48533
+ this._defaultValue = _defaultValue;
48534
+ this.__v_isRef = true;
48535
+ }
48536
+ get value() {
48537
+ const val = this._object[this._key];
48538
+ return val === undefined ? this._defaultValue : val;
48539
+ }
48540
+ set value(newVal) {
48541
+ this._object[this._key] = newVal;
48542
+ }
48543
+ }
48544
+ function toRef(object, key, defaultValue) {
48545
+ const val = object[key];
48546
+ return isRef(val)
48547
+ ? val
48548
+ : new ObjectRefImpl(object, key, defaultValue);
48549
+ }
48550
+
48551
+ class ComputedRefImpl {
48552
+ constructor(getter, _setter, isReadonly, isSSR) {
48553
+ this._setter = _setter;
48554
+ this.dep = undefined;
48555
+ this.__v_isRef = true;
48556
+ this._dirty = true;
48557
+ this.effect = new ReactiveEffect(getter, () => {
48558
+ if (!this._dirty) {
48559
+ this._dirty = true;
48560
+ triggerRefValue(this);
48561
+ }
48562
+ });
48563
+ this.effect.computed = this;
48564
+ this.effect.active = this._cacheable = !isSSR;
48565
+ this["__v_isReadonly" /* IS_READONLY */] = isReadonly;
48566
+ }
48567
+ get value() {
48568
+ // the computed ref may get wrapped by other proxies e.g. readonly() #3376
48569
+ const self = toRaw(this);
48570
+ trackRefValue(self);
48571
+ if (self._dirty || !self._cacheable) {
48572
+ self._dirty = false;
48573
+ self._value = self.effect.run();
48574
+ }
48575
+ return self._value;
48576
+ }
48577
+ set value(newValue) {
48578
+ this._setter(newValue);
48579
+ }
48580
+ }
48581
+ function computed(getterOrOptions, debugOptions, isSSR = false) {
48582
+ let getter;
48583
+ let setter;
48584
+ const onlyGetter = (0,shared_esm_bundler/* isFunction */.mf)(getterOrOptions);
48585
+ if (onlyGetter) {
48586
+ getter = getterOrOptions;
48587
+ setter = ( false)
48588
+ ? 0
48589
+ : shared_esm_bundler/* NOOP */.dG;
48590
+ }
48591
+ else {
48592
+ getter = getterOrOptions.get;
48593
+ setter = getterOrOptions.set;
48594
+ }
48595
+ const cRef = new ComputedRefImpl(getter, setter, onlyGetter || !setter, isSSR);
48596
+ if (false) {}
48597
+ return cRef;
48598
+ }
48599
+
48600
+ var _a;
48601
+ const tick = /*#__PURE__*/ (/* unused pure expression or super */ null && (Promise.resolve()));
48602
+ const queue = (/* unused pure expression or super */ null && ([]));
48603
+ let queued = false;
48604
+ const scheduler = (fn) => {
48605
+ queue.push(fn);
48606
+ if (!queued) {
48607
+ queued = true;
48608
+ tick.then(flush);
48609
+ }
48610
+ };
48611
+ const flush = () => {
48612
+ for (let i = 0; i < queue.length; i++) {
48613
+ queue[i]();
48614
+ }
48615
+ queue.length = 0;
48616
+ queued = false;
48617
+ };
48618
+ class DeferredComputedRefImpl {
48619
+ constructor(getter) {
48620
+ this.dep = undefined;
48621
+ this._dirty = true;
48622
+ this.__v_isRef = true;
48623
+ this[_a] = true;
48624
+ let compareTarget;
48625
+ let hasCompareTarget = false;
48626
+ let scheduled = false;
48627
+ this.effect = new ReactiveEffect(getter, (computedTrigger) => {
48628
+ if (this.dep) {
48629
+ if (computedTrigger) {
48630
+ compareTarget = this._value;
48631
+ hasCompareTarget = true;
48632
+ }
48633
+ else if (!scheduled) {
48634
+ const valueToCompare = hasCompareTarget ? compareTarget : this._value;
48635
+ scheduled = true;
48636
+ hasCompareTarget = false;
48637
+ scheduler(() => {
48638
+ if (this.effect.active && this._get() !== valueToCompare) {
48639
+ triggerRefValue(this);
48640
+ }
48641
+ scheduled = false;
48642
+ });
48643
+ }
48644
+ // chained upstream computeds are notified synchronously to ensure
48645
+ // value invalidation in case of sync access; normal effects are
48646
+ // deferred to be triggered in scheduler.
48647
+ for (const e of this.dep) {
48648
+ if (e.computed instanceof DeferredComputedRefImpl) {
48649
+ e.scheduler(true /* computedTrigger */);
48650
+ }
48651
+ }
48652
+ }
48653
+ this._dirty = true;
48654
+ });
48655
+ this.effect.computed = this;
48656
+ }
48657
+ _get() {
48658
+ if (this._dirty) {
48659
+ this._dirty = false;
48660
+ return (this._value = this.effect.run());
48661
+ }
48662
+ return this._value;
48663
+ }
48664
+ get value() {
48665
+ trackRefValue(this);
48666
+ // the computed ref may get wrapped by other proxies e.g. readonly() #3376
48667
+ return toRaw(this)._get();
48668
+ }
48669
+ }
48670
+ _a = "__v_isReadonly" /* IS_READONLY */;
48671
+ function deferredComputed(getter) {
48672
+ return new DeferredComputedRefImpl(getter);
48673
+ }
48674
+
48675
+
48676
+
47483
48677
  ;// CONCATENATED MODULE: ./node_modules/element-plus/es/utils/dom/scroll.mjs
47484
48678
 
47485
48679
 
@@ -47509,14 +48703,14 @@ const getScrollContainer = (el, isVertical) => {
47509
48703
  return parent;
47510
48704
  };
47511
48705
  let scrollBarWidth;
47512
- const getScrollBarWidth = () => {
48706
+ const getScrollBarWidth = (namespace) => {
47513
48707
  var _a;
47514
48708
  if (!shared/* isClient */.C5)
47515
48709
  return 0;
47516
48710
  if (scrollBarWidth !== void 0)
47517
48711
  return scrollBarWidth;
47518
48712
  const outer = document.createElement("div");
47519
- outer.className = "el-scrollbar__wrap";
48713
+ outer.className = `${namespace}-scrollbar__wrap`;
47520
48714
  outer.style.visibility = "hidden";
47521
48715
  outer.style.width = "100px";
47522
48716
  outer.style.position = "absolute";
@@ -47567,11 +48761,15 @@ function scrollIntoView(container, selected) {
47567
48761
 
47568
48762
 
47569
48763
 
48764
+
48765
+
47570
48766
  const useLockscreen = (trigger) => {
47571
48767
  if (!(0,external_commonjs_vue_commonjs2_vue_root_Vue_.isRef)(trigger)) {
47572
48768
  (0,error/* throwError */._)("[useLockscreen]", "You need to pass a ref param to this function");
47573
48769
  }
47574
- if (!shared/* isClient */.C5 || (0,style/* hasClass */.pv)(document.body, "el-popup-parent--hidden")) {
48770
+ const ns = (0,use_namespace/* useNamespace */.s)("popup");
48771
+ const hiddenCls = computed(() => ns.bm("parent", "hidden"));
48772
+ if (!shared/* isClient */.C5 || (0,style/* hasClass */.pv)(document.body, hiddenCls.value)) {
47575
48773
  return;
47576
48774
  }
47577
48775
  let scrollBarWidth = 0;
@@ -47579,7 +48777,7 @@ const useLockscreen = (trigger) => {
47579
48777
  let bodyPaddingRight = "0";
47580
48778
  let computedBodyPaddingRight = 0;
47581
48779
  const cleanup = () => {
47582
- (0,style/* removeClass */.IV)(document.body, "el-popup-parent--hidden");
48780
+ (0,style/* removeClass */.IV)(document.body, hiddenCls.value);
47583
48781
  if (withoutHiddenClass) {
47584
48782
  document.body.style.paddingRight = bodyPaddingRight;
47585
48783
  }
@@ -47589,18 +48787,18 @@ const useLockscreen = (trigger) => {
47589
48787
  cleanup();
47590
48788
  return;
47591
48789
  }
47592
- withoutHiddenClass = !(0,style/* hasClass */.pv)(document.body, "el-popup-parent--hidden");
48790
+ withoutHiddenClass = !(0,style/* hasClass */.pv)(document.body, hiddenCls.value);
47593
48791
  if (withoutHiddenClass) {
47594
48792
  bodyPaddingRight = document.body.style.paddingRight;
47595
48793
  computedBodyPaddingRight = Number.parseInt((0,style/* getStyle */.C2)(document.body, "paddingRight"), 10);
47596
48794
  }
47597
- scrollBarWidth = getScrollBarWidth();
48795
+ scrollBarWidth = getScrollBarWidth(ns.namespace.value);
47598
48796
  const bodyHasOverflow = document.documentElement.clientHeight < document.body.scrollHeight;
47599
48797
  const bodyOverflowY = (0,style/* getStyle */.C2)(document.body, "overflowY");
47600
48798
  if (scrollBarWidth > 0 && (bodyHasOverflow || bodyOverflowY === "scroll") && withoutHiddenClass) {
47601
48799
  document.body.style.paddingRight = `${computedBodyPaddingRight + scrollBarWidth}px`;
47602
48800
  }
47603
- (0,style/* addClass */.cn)(document.body, "el-popup-parent--hidden");
48801
+ (0,style/* addClass */.cn)(document.body, hiddenCls.value);
47604
48802
  });
47605
48803
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onScopeDispose)(() => cleanup());
47606
48804
  };
@@ -47654,7 +48852,6 @@ const useRestoreActive = (toggle, initialFocus) => {
47654
48852
 
47655
48853
 
47656
48854
 
47657
-
47658
48855
 
47659
48856
 
47660
48857
  const src_sfc_main = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
@@ -47812,12 +49009,12 @@ const src_sfc_main = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComp
47812
49009
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(async () => {
47813
49010
  await (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
47814
49011
  if (props.closeOnHashChange) {
47815
- on(window, "hashchange", doClose);
49012
+ window.addEventListener("hashchange", doClose);
47816
49013
  }
47817
49014
  });
47818
49015
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onBeforeUnmount)(() => {
47819
49016
  if (props.closeOnHashChange) {
47820
- off(window, "hashchange", doClose);
49017
+ window.removeEventListener("hashchange", doClose);
47821
49018
  }
47822
49019
  });
47823
49020
  function doClose() {
@@ -50226,16 +51423,16 @@ const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(JwtUploadImagev
50226
51423
 
50227
51424
  var map = {
50228
51425
  "./JwtCascaderArea/index.vue": 3724,
50229
- "./JwtEditor/index.vue": 5462,
51426
+ "./JwtEditor/index.vue": 8007,
50230
51427
  "./JwtForm/index.vue": 4751,
50231
51428
  "./JwtHeaderButton/index.vue": 6886,
50232
51429
  "./JwtIcon/index.vue": 8916,
50233
51430
  "./JwtIconSelect/index.vue": 7047,
50234
51431
  "./JwtImage/index.vue": 8328,
50235
- "./JwtInput/index.vue": 5859,
51432
+ "./JwtInput/index.vue": 1914,
50236
51433
  "./JwtRateIcon/index.vue": 5939,
50237
51434
  "./JwtSelectServer/index.vue": 1279,
50238
- "./JwtTable/index.vue": 4619,
51435
+ "./JwtTable/index.vue": 4282,
50239
51436
  "./JwtTableButton/index.vue": 9033,
50240
51437
  "./JwtTableOnly/index.vue": 4016,
50241
51438
  "./JwtTags/index.vue": 1382,
@@ -63820,7 +65017,9 @@ const normalizeOptions = (params) => {
63820
65017
  ...messageDefaults,
63821
65018
  ...options
63822
65019
  };
63823
- if ((0,shared_esm_bundler/* isString */.HD)(normalized.appendTo)) {
65020
+ if (!normalized.appendTo) {
65021
+ normalized.appendTo = document.body;
65022
+ } else if ((0,shared_esm_bundler/* isString */.HD)(normalized.appendTo)) {
63824
65023
  let appendTo = document.querySelector(normalized.appendTo);
63825
65024
  if (!(0,types/* isElement */.kK)(appendTo)) {
63826
65025
  (0,error/* debugWarn */.N)("ElMessage", "the appendTo option is not an HTMLElement. Falling back to document.body.");
@@ -64196,14 +65395,18 @@ const useNamespace = (block) => {
64196
65395
  const cssVar = (object) => {
64197
65396
  const styles = {};
64198
65397
  for (const key in object) {
64199
- styles[`--${namespace.value}-${key}`] = object[key];
65398
+ if (object[key]) {
65399
+ styles[`--${namespace.value}-${key}`] = object[key];
65400
+ }
64200
65401
  }
64201
65402
  return styles;
64202
65403
  };
64203
65404
  const cssVarBlock = (object) => {
64204
65405
  const styles = {};
64205
65406
  for (const key in object) {
64206
- styles[`--${namespace.value}-${block}-${key}`] = object[key];
65407
+ if (object[key]) {
65408
+ styles[`--${namespace.value}-${block}-${key}`] = object[key];
65409
+ }
64207
65410
  }
64208
65411
  return styles;
64209
65412
  };