@valaxyjs/devtools 0.23.2 → 0.23.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-CsPJs7Eh.js","./splitpanes.es-D2L3Pnei.js","./index-DKnSvpEK.css","./migration-BGdmmslF.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-Ch5EOJMr.js","./splitpanes.es-DWSQbq7A.js","./index-DKnSvpEK.css","./migration-D4i7vW_8.js"])))=>i.map(i=>d[i]);
2
2
  true &&(function polyfill() {
3
3
  const relList = document.createElement("link").relList;
4
4
  if (relList && relList.supports && relList.supports("modulepreload")) {
@@ -756,13 +756,9 @@ function definePreset(...presets) {
756
756
  }
757
757
  var ThemeService = EventBus();
758
758
  var service_default = ThemeService;
759
- function merge(value1, value2) {
760
- if (isArray$3(value1)) {
761
- value1.push(...value2 || []);
762
- } else if (isObject$3(value1)) {
763
- Object.assign(value1, value2);
764
- }
765
- }
759
+ var EXPR_REGEX = /{([^}]*)}/g;
760
+ var CALC_REGEX = /(\d+\s+[\+\-\*\/]\s+\d+)/g;
761
+ var VAR_REGEX = /var\([^)]+\)/g;
766
762
  function toValue$1(value) {
767
763
  return isObject$3(value) && value.hasOwnProperty("$value") && value.hasOwnProperty("$type") ? value.$value : value;
768
764
  }
@@ -782,19 +778,16 @@ function hasOddBraces(str = "") {
782
778
  }
783
779
  function getVariableValue(value, variable = "", prefix = "", excludedKeyRegexes = [], fallback) {
784
780
  if (isString$2(value)) {
785
- const regex = /{([^}]*)}/g;
786
781
  const val = value.trim();
787
782
  if (hasOddBraces(val)) {
788
783
  return void 0;
789
- } else if (matchRegex(val, regex)) {
790
- const _val = val.replaceAll(regex, (v) => {
784
+ } else if (matchRegex(val, EXPR_REGEX)) {
785
+ const _val = val.replaceAll(EXPR_REGEX, (v) => {
791
786
  const path = v.replace(/{|}/g, "");
792
787
  const keys = path.split(".").filter((_v) => !excludedKeyRegexes.some((_r) => matchRegex(_v, _r)));
793
788
  return `var(${getVariableName(prefix, toKebabCase(keys.join("-")))}${isNotEmpty(fallback) ? `, ${fallback}` : ""})`;
794
789
  });
795
- const calculationRegex = /(\d+\s+[\+\-\*\/]\s+\d+)/g;
796
- const cleanedVarRegex = /var\([^)]+\)/g;
797
- return matchRegex(_val.replace(cleanedVarRegex, "0"), calculationRegex) ? `calc(${_val})` : _val;
790
+ return matchRegex(_val.replace(VAR_REGEX, "0"), CALC_REGEX) ? `calc(${_val})` : _val;
798
791
  }
799
792
  return val;
800
793
  } else if (isNumber$1(value)) {
@@ -813,6 +806,70 @@ function getRule(selector, properties) {
813
806
  }
814
807
  return "";
815
808
  }
809
+ function evaluateDtExpressions(input, fn) {
810
+ if (input.indexOf("dt(") === -1) return input;
811
+ function fastParseArgs(str, fn2) {
812
+ const args = [];
813
+ let i = 0;
814
+ let current = "";
815
+ let quote = null;
816
+ let depth = 0;
817
+ while (i <= str.length) {
818
+ const c = str[i];
819
+ if ((c === '"' || c === "'" || c === "`") && str[i - 1] !== "\\") {
820
+ quote = quote === c ? null : c;
821
+ }
822
+ if (!quote) {
823
+ if (c === "(") depth++;
824
+ if (c === ")") depth--;
825
+ if ((c === "," || i === str.length) && depth === 0) {
826
+ const arg = current.trim();
827
+ if (arg.startsWith("dt(")) {
828
+ args.push(evaluateDtExpressions(arg, fn2));
829
+ } else {
830
+ args.push(parseArg(arg));
831
+ }
832
+ current = "";
833
+ i++;
834
+ continue;
835
+ }
836
+ }
837
+ if (c !== void 0) current += c;
838
+ i++;
839
+ }
840
+ return args;
841
+ }
842
+ function parseArg(arg) {
843
+ const q = arg[0];
844
+ if ((q === '"' || q === "'" || q === "`") && arg[arg.length - 1] === q) {
845
+ return arg.slice(1, -1);
846
+ }
847
+ const num = Number(arg);
848
+ return isNaN(num) ? arg : num;
849
+ }
850
+ const indices = [];
851
+ const stack = [];
852
+ for (let i = 0; i < input.length; i++) {
853
+ if (input[i] === "d" && input.slice(i, i + 3) === "dt(") {
854
+ stack.push(i);
855
+ i += 2;
856
+ } else if (input[i] === ")" && stack.length > 0) {
857
+ const start = stack.pop();
858
+ if (stack.length === 0) {
859
+ indices.push([start, i]);
860
+ }
861
+ }
862
+ }
863
+ if (!indices.length) return input;
864
+ for (let i = indices.length - 1; i >= 0; i--) {
865
+ const [start, end] = indices[i];
866
+ const inner = input.slice(start + 3, end);
867
+ const args = fastParseArgs(inner, fn);
868
+ const resolved = fn(...args);
869
+ input = input.slice(0, start) + resolved + input.slice(end + 1);
870
+ }
871
+ return input;
872
+ }
816
873
  var dt = (...args) => {
817
874
  return dtwt(config_default.getTheme(), ...args);
818
875
  };
@@ -820,40 +877,57 @@ var dtwt = (theme = {}, tokenPath, fallback, type) => {
820
877
  if (tokenPath) {
821
878
  const { variable: VARIABLE, options: OPTIONS } = config_default.defaults || {};
822
879
  const { prefix, transform } = (theme == null ? void 0 : theme.options) || OPTIONS || {};
823
- const regex = /{([^}]*)}/g;
824
- const token = matchRegex(tokenPath, regex) ? tokenPath : `{${tokenPath}}`;
880
+ const token = matchRegex(tokenPath, EXPR_REGEX) ? tokenPath : `{${tokenPath}}`;
825
881
  const isStrictTransform = type === "value" || isEmpty(type) && transform === "strict";
826
882
  return isStrictTransform ? config_default.getTokenValue(tokenPath) : getVariableValue(token, void 0, prefix, [VARIABLE.excludedKeyRegex], fallback);
827
883
  }
828
884
  return "";
829
885
  };
886
+
887
+ // src/helpers/css.ts
888
+ function css$1(strings, ...exprs) {
889
+ if (strings instanceof Array) {
890
+ const raw = strings.reduce((acc, str, i) => {
891
+ var _a;
892
+ return acc + str + ((_a = resolve$1(exprs[i], { dt })) != null ? _a : "");
893
+ }, "");
894
+ return evaluateDtExpressions(raw, dt);
895
+ }
896
+ return resolve$1(strings, { dt });
897
+ }
830
898
  function toVariables_default(theme, options = {}) {
831
899
  const VARIABLE = config_default.defaults.variable;
832
900
  const { prefix = VARIABLE.prefix, selector = VARIABLE.selector, excludedKeyRegex = VARIABLE.excludedKeyRegex } = options;
833
- const _toVariables = (_theme, _prefix = "") => {
834
- return Object.entries(_theme).reduce(
835
- (acc, [key, value]) => {
836
- const px = matchRegex(key, excludedKeyRegex) ? toNormalizeVariable(_prefix) : toNormalizeVariable(_prefix, toKebabCase(key));
837
- const v = toValue$1(value);
838
- if (isObject$3(v)) {
839
- const { variables: variables2, tokens: tokens2 } = _toVariables(v, px);
840
- merge(acc["tokens"], tokens2);
841
- merge(acc["variables"], variables2);
842
- } else {
843
- acc["tokens"].push((prefix ? px.replace(`${prefix}-`, "") : px).replaceAll("-", "."));
844
- setProperty(acc["variables"], getVariableName(px), getVariableValue(v, px, prefix, [excludedKeyRegex]));
901
+ const tokens = [];
902
+ const variables = [];
903
+ const stack = [{ node: theme, path: prefix }];
904
+ while (stack.length) {
905
+ const { node, path } = stack.pop();
906
+ for (const key in node) {
907
+ const raw = node[key];
908
+ const val = toValue$1(raw);
909
+ const skipNormalize = matchRegex(key, excludedKeyRegex);
910
+ const variablePath = skipNormalize ? toNormalizeVariable(path) : toNormalizeVariable(path, toKebabCase(key));
911
+ if (isObject$3(val)) {
912
+ stack.push({ node: val, path: variablePath });
913
+ } else {
914
+ const varName = getVariableName(variablePath);
915
+ const varValue = getVariableValue(val, variablePath, prefix, [excludedKeyRegex]);
916
+ setProperty(variables, varName, varValue);
917
+ let token = variablePath;
918
+ if (prefix && token.startsWith(prefix + "-")) {
919
+ token = token.slice(prefix.length + 1);
845
920
  }
846
- return acc;
847
- },
848
- { variables: [], tokens: [] }
849
- );
850
- };
851
- const { variables, tokens } = _toVariables(theme, prefix);
921
+ tokens.push(token.replace(/-/g, "."));
922
+ }
923
+ }
924
+ }
925
+ const declarations = variables.join("");
852
926
  return {
853
927
  value: variables,
854
928
  tokens,
855
- declarations: variables.join(""),
856
- css: getRule(selector, variables.join(""))
929
+ declarations,
930
+ css: getRule(selector, declarations)
857
931
  };
858
932
  }
859
933
 
@@ -1014,8 +1088,8 @@ var themeUtils_default = {
1014
1088
  const common = this.getCommon({ name, theme, params, set, defaults });
1015
1089
  const _props = Object.entries(props).reduce((acc, [k, v]) => acc.push(`${k}="${v}"`) && acc, []).join(" ");
1016
1090
  return Object.entries(common || {}).reduce((acc, [key, value]) => {
1017
- if (value == null ? void 0 : value.css) {
1018
- const _css = minifyCSS(value == null ? void 0 : value.css);
1091
+ if (isObject$3(value) && Object.hasOwn(value, "css")) {
1092
+ const _css = minifyCSS(value.css);
1019
1093
  const id = `${key}-variables`;
1020
1094
  acc.push(`<style type="text/css" data-primevue-style-id="${id}" ${_props}>${_css}</style>`);
1021
1095
  }
@@ -1053,21 +1127,18 @@ var themeUtils_default = {
1053
1127
  value,
1054
1128
  scheme: currentPath.includes("colorScheme.light") ? "light" : currentPath.includes("colorScheme.dark") ? "dark" : "none",
1055
1129
  computed(colorScheme, tokenPathMap = {}) {
1056
- const regex = /{([^}]*)}/g;
1057
1130
  let computedValue = value;
1058
1131
  tokenPathMap["name"] = this.path;
1059
1132
  tokenPathMap["binding"] || (tokenPathMap["binding"] = {});
1060
- if (matchRegex(value, regex)) {
1133
+ if (matchRegex(value, EXPR_REGEX)) {
1061
1134
  const val = value.trim();
1062
- const _val = val.replaceAll(regex, (v) => {
1135
+ const _val = val.replaceAll(EXPR_REGEX, (v) => {
1063
1136
  var _a;
1064
1137
  const path = v.replace(/{|}/g, "");
1065
1138
  const computed = (_a = tokens[path]) == null ? void 0 : _a.computed(colorScheme, tokenPathMap);
1066
1139
  return isArray$3(computed) && computed.length === 2 ? `light-dark(${computed[0].value},${computed[1].value})` : computed == null ? void 0 : computed.value;
1067
1140
  });
1068
- const calculationRegex = /(\d+\w*\s+[\+\-\*\/]\s+\d+\w*)/g;
1069
- const cleanedVarRegex = /var\([^)]+\)/g;
1070
- computedValue = matchRegex(_val.replace(cleanedVarRegex, "0"), calculationRegex) ? `calc(${_val})` : _val;
1141
+ computedValue = matchRegex(_val.replace(VAR_REGEX, "0"), CALC_REGEX) ? `calc(${_val})` : _val;
1071
1142
  }
1072
1143
  isEmpty(tokenPathMap["binding"]) && delete tokenPathMap["binding"];
1073
1144
  return {
@@ -1546,7 +1617,7 @@ var index = _objectSpread$3(_objectSpread$3({}, e$Q), {}, {
1546
1617
  /* Injected with object hook! */
1547
1618
 
1548
1619
  /**
1549
- * @vue/shared v3.5.13
1620
+ * @vue/shared v3.5.14
1550
1621
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
1551
1622
  * @license MIT
1552
1623
  **/
@@ -1794,7 +1865,7 @@ const stringifySymbol = (v, i = "") => {
1794
1865
  /* Injected with object hook! */
1795
1866
 
1796
1867
  /**
1797
- * @vue/reactivity v3.5.13
1868
+ * @vue/reactivity v3.5.14
1798
1869
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
1799
1870
  * @license MIT
1800
1871
  **/
@@ -1803,6 +1874,7 @@ class EffectScope {
1803
1874
  constructor(detached = false) {
1804
1875
  this.detached = detached;
1805
1876
  this._active = true;
1877
+ this._on = 0;
1806
1878
  this.effects = [];
1807
1879
  this.cleanups = [];
1808
1880
  this._isPaused = false;
@@ -1865,14 +1937,20 @@ class EffectScope {
1865
1937
  * @internal
1866
1938
  */
1867
1939
  on() {
1868
- activeEffectScope = this;
1940
+ if (++this._on === 1) {
1941
+ this.prevScope = activeEffectScope;
1942
+ activeEffectScope = this;
1943
+ }
1869
1944
  }
1870
1945
  /**
1871
1946
  * This should only be called on non-detached scopes
1872
1947
  * @internal
1873
1948
  */
1874
1949
  off() {
1875
- activeEffectScope = this.parent;
1950
+ if (this._on > 0 && --this._on === 0) {
1951
+ activeEffectScope = this.prevScope;
1952
+ this.prevScope = void 0;
1953
+ }
1876
1954
  }
1877
1955
  stop(fromParent) {
1878
1956
  if (this._active) {
@@ -2102,12 +2180,11 @@ function refreshComputed(computed2) {
2102
2180
  return;
2103
2181
  }
2104
2182
  computed2.globalVersion = globalVersion;
2105
- const dep = computed2.dep;
2106
- computed2.flags |= 2;
2107
- if (dep.version > 0 && !computed2.isSSR && computed2.deps && !isDirty(computed2)) {
2108
- computed2.flags &= -3;
2183
+ if (!computed2.isSSR && computed2.flags & 128 && (!computed2.deps && !computed2._dirty || !isDirty(computed2))) {
2109
2184
  return;
2110
2185
  }
2186
+ computed2.flags |= 2;
2187
+ const dep = computed2.dep;
2111
2188
  const prevSub = activeSub;
2112
2189
  const prevShouldTrack = shouldTrack;
2113
2190
  activeSub = computed2;
@@ -2116,6 +2193,7 @@ function refreshComputed(computed2) {
2116
2193
  prepareDeps(computed2);
2117
2194
  const value = computed2.fn(computed2._value);
2118
2195
  if (dep.version === 0 || hasChanged(value, computed2._value)) {
2196
+ computed2.flags |= 128;
2119
2197
  computed2._value = value;
2120
2198
  dep.version++;
2121
2199
  }
@@ -2955,14 +3033,14 @@ function createReactiveObject(target, isReadonly2, baseHandlers, collectionHandl
2955
3033
  if (target["__v_raw"] && !(isReadonly2 && target["__v_isReactive"])) {
2956
3034
  return target;
2957
3035
  }
2958
- const existingProxy = proxyMap.get(target);
2959
- if (existingProxy) {
2960
- return existingProxy;
2961
- }
2962
3036
  const targetType = getTargetType(target);
2963
3037
  if (targetType === 0) {
2964
3038
  return target;
2965
3039
  }
3040
+ const existingProxy = proxyMap.get(target);
3041
+ if (existingProxy) {
3042
+ return existingProxy;
3043
+ }
2966
3044
  const proxy = new Proxy(
2967
3045
  target,
2968
3046
  targetType === 2 ? collectionHandlers : baseHandlers
@@ -3366,7 +3444,7 @@ function traverse(value, depth = Infinity, seen) {
3366
3444
  /* Injected with object hook! */
3367
3445
 
3368
3446
  /**
3369
- * @vue/runtime-core v3.5.13
3447
+ * @vue/runtime-core v3.5.14
3370
3448
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
3371
3449
  * @license MIT
3372
3450
  **/
@@ -4381,6 +4459,9 @@ function getInnerChild$1(vnode) {
4381
4459
  }
4382
4460
  return vnode;
4383
4461
  }
4462
+ if (vnode.component) {
4463
+ return vnode.component.subTree;
4464
+ }
4384
4465
  const { shapeFlag, children } = vnode;
4385
4466
  if (children) {
4386
4467
  if (shapeFlag & 16) {
@@ -4664,14 +4745,16 @@ function renderList(source, renderItem, cache, index) {
4664
4745
  if (sourceIsArray || isString$1(source)) {
4665
4746
  const sourceIsReactiveArray = sourceIsArray && isReactive(source);
4666
4747
  let needsWrap = false;
4748
+ let isReadonlySource = false;
4667
4749
  if (sourceIsReactiveArray) {
4668
4750
  needsWrap = !isShallow(source);
4751
+ isReadonlySource = isReadonly(source);
4669
4752
  source = shallowReadArray(source);
4670
4753
  }
4671
4754
  ret = new Array(source.length);
4672
4755
  for (let i = 0, l = source.length; i < l; i++) {
4673
4756
  ret[i] = renderItem(
4674
- needsWrap ? toReactive(source[i]) : source[i],
4757
+ needsWrap ? isReadonlySource ? toReadonly(toReactive(source[i])) : toReactive(source[i]) : source[i],
4675
4758
  i,
4676
4759
  void 0,
4677
4760
  cached
@@ -5718,7 +5801,7 @@ const normalizeVNodeSlots = (instance, children) => {
5718
5801
  };
5719
5802
  const assignSlots = (slots, children, optimized) => {
5720
5803
  for (const key in children) {
5721
- if (optimized || key !== "_") {
5804
+ if (optimized || !isInternalKey(key)) {
5722
5805
  slots[key] = children[key];
5723
5806
  }
5724
5807
  }
@@ -6780,7 +6863,13 @@ function baseCreateRenderer(options, createHydrationFns) {
6780
6863
  queuePostRenderEffect(() => transition.enter(el), parentSuspense);
6781
6864
  } else {
6782
6865
  const { leave, delayLeave, afterLeave } = transition;
6783
- const remove22 = () => hostInsert(el, container, anchor);
6866
+ const remove22 = () => {
6867
+ if (vnode.ctx.isUnmounted) {
6868
+ hostRemove(el);
6869
+ } else {
6870
+ hostInsert(el, container, anchor);
6871
+ }
6872
+ };
6784
6873
  const performLeave = () => {
6785
6874
  leave(el, () => {
6786
6875
  remove22();
@@ -6813,7 +6902,9 @@ function baseCreateRenderer(options, createHydrationFns) {
6813
6902
  optimized = false;
6814
6903
  }
6815
6904
  if (ref3 != null) {
6905
+ pauseTracking();
6816
6906
  setRef(ref3, null, parentSuspense, vnode, true);
6907
+ resetTracking();
6817
6908
  }
6818
6909
  if (cacheIndex != null) {
6819
6910
  parentComponent.renderCache[cacheIndex] = void 0;
@@ -6914,12 +7005,27 @@ function baseCreateRenderer(options, createHydrationFns) {
6914
7005
  hostRemove(end);
6915
7006
  };
6916
7007
  const unmountComponent = (instance, parentSuspense, doRemove) => {
6917
- const { bum, scope, job, subTree, um, m, a } = instance;
7008
+ const {
7009
+ bum,
7010
+ scope,
7011
+ job,
7012
+ subTree,
7013
+ um,
7014
+ m,
7015
+ a,
7016
+ parent,
7017
+ slots: { __: slotCacheKeys }
7018
+ } = instance;
6918
7019
  invalidateMount(m);
6919
7020
  invalidateMount(a);
6920
7021
  if (bum) {
6921
7022
  invokeArrayFns(bum);
6922
7023
  }
7024
+ if (parent && isArray$2(slotCacheKeys)) {
7025
+ slotCacheKeys.forEach((v) => {
7026
+ parent.renderCache[v] = void 0;
7027
+ });
7028
+ }
6923
7029
  scope.stop();
6924
7030
  if (job) {
6925
7031
  job.flags |= 8;
@@ -7031,6 +7137,9 @@ function traverseStaticChildren(n1, n2, shallow = false) {
7031
7137
  if (c2.type === Text) {
7032
7138
  c2.el = c1.el;
7033
7139
  }
7140
+ if (c2.type === Comment && !c2.el) {
7141
+ c2.el = c1.el;
7142
+ }
7034
7143
  }
7035
7144
  }
7036
7145
  }
@@ -8017,7 +8126,7 @@ function setupComponent(instance, isSSR = false, optimized = false) {
8017
8126
  const { props, children } = instance.vnode;
8018
8127
  const isStateful = isStatefulComponent(instance);
8019
8128
  initProps(instance, props, isStateful, isSSR);
8020
- initSlots(instance, children, optimized);
8129
+ initSlots(instance, children, optimized || isSSR);
8021
8130
  const setupResult = isStateful ? setupStatefulComponent(instance, isSSR) : void 0;
8022
8131
  isSSR && setInSSRSetupState(false);
8023
8132
  return setupResult;
@@ -8183,12 +8292,12 @@ function h(type, propsOrChildren, children) {
8183
8292
  return createVNode(type, propsOrChildren, children);
8184
8293
  }
8185
8294
  }
8186
- const version = "3.5.13";
8295
+ const version = "3.5.14";
8187
8296
 
8188
8297
  /* Injected with object hook! */
8189
8298
 
8190
8299
  /**
8191
- * @vue/runtime-dom v3.5.13
8300
+ * @vue/runtime-dom v3.5.14
8192
8301
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
8193
8302
  * @license MIT
8194
8303
  **/
@@ -8871,7 +8980,7 @@ function shouldSetAsProp(el, key, value, isSVG) {
8871
8980
  }
8872
8981
  return false;
8873
8982
  }
8874
- if (key === "spellcheck" || key === "draggable" || key === "translate") {
8983
+ if (key === "spellcheck" || key === "draggable" || key === "translate" || key === "autocorrect") {
8875
8984
  return false;
8876
8985
  }
8877
8986
  if (key === "form") {
@@ -9314,7 +9423,130 @@ var FilterMatchMode = {
9314
9423
 
9315
9424
  /* Injected with object hook! */
9316
9425
 
9317
- var style=({dt:n})=>`\n*,\n::before,\n::after {\n box-sizing: border-box;\n}\n\n/* Non vue overlay animations */\n.p-connected-overlay {\n opacity: 0;\n transform: scaleY(0.8);\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1),\n opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n}\n\n.p-connected-overlay-visible {\n opacity: 1;\n transform: scaleY(1);\n}\n\n.p-connected-overlay-hidden {\n opacity: 0;\n transform: scaleY(1);\n transition: opacity 0.1s linear;\n}\n\n/* Vue based overlay animations */\n.p-connected-overlay-enter-from {\n opacity: 0;\n transform: scaleY(0.8);\n}\n\n.p-connected-overlay-leave-to {\n opacity: 0;\n}\n\n.p-connected-overlay-enter-active {\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1),\n opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n}\n\n.p-connected-overlay-leave-active {\n transition: opacity 0.1s linear;\n}\n\n/* Toggleable Content */\n.p-toggleable-content-enter-from,\n.p-toggleable-content-leave-to {\n max-height: 0;\n}\n\n.p-toggleable-content-enter-to,\n.p-toggleable-content-leave-from {\n max-height: 1000px;\n}\n\n.p-toggleable-content-leave-active {\n overflow: hidden;\n transition: max-height 0.45s cubic-bezier(0, 1, 0, 1);\n}\n\n.p-toggleable-content-enter-active {\n overflow: hidden;\n transition: max-height 1s ease-in-out;\n}\n\n.p-disabled,\n.p-disabled * {\n cursor: default;\n pointer-events: none;\n user-select: none;\n}\n\n.p-disabled,\n.p-component:disabled {\n opacity: ${n("disabled.opacity")};\n}\n\n.pi {\n font-size: ${n("icon.size")};\n}\n\n.p-icon {\n width: ${n("icon.size")};\n height: ${n("icon.size")};\n}\n\n.p-overlay-mask {\n background: ${n("mask.background")};\n color: ${n("mask.color")};\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\n\n.p-overlay-mask-enter {\n animation: p-overlay-mask-enter-animation ${n("mask.transition.duration")} forwards;\n}\n\n.p-overlay-mask-leave {\n animation: p-overlay-mask-leave-animation ${n("mask.transition.duration")} forwards;\n}\n\n@keyframes p-overlay-mask-enter-animation {\n from {\n background: transparent;\n }\n to {\n background: ${n("mask.background")};\n }\n}\n@keyframes p-overlay-mask-leave-animation {\n from {\n background: ${n("mask.background")};\n }\n to {\n background: transparent;\n }\n}\n`;/* Injected with object hook! */
9426
+ var style=css$1`
9427
+ *,
9428
+ ::before,
9429
+ ::after {
9430
+ box-sizing: border-box;
9431
+ }
9432
+
9433
+ /* Non vue overlay animations */
9434
+ .p-connected-overlay {
9435
+ opacity: 0;
9436
+ transform: scaleY(0.8);
9437
+ transition:
9438
+ transform 0.12s cubic-bezier(0, 0, 0.2, 1),
9439
+ opacity 0.12s cubic-bezier(0, 0, 0.2, 1);
9440
+ }
9441
+
9442
+ .p-connected-overlay-visible {
9443
+ opacity: 1;
9444
+ transform: scaleY(1);
9445
+ }
9446
+
9447
+ .p-connected-overlay-hidden {
9448
+ opacity: 0;
9449
+ transform: scaleY(1);
9450
+ transition: opacity 0.1s linear;
9451
+ }
9452
+
9453
+ /* Vue based overlay animations */
9454
+ .p-connected-overlay-enter-from {
9455
+ opacity: 0;
9456
+ transform: scaleY(0.8);
9457
+ }
9458
+
9459
+ .p-connected-overlay-leave-to {
9460
+ opacity: 0;
9461
+ }
9462
+
9463
+ .p-connected-overlay-enter-active {
9464
+ transition:
9465
+ transform 0.12s cubic-bezier(0, 0, 0.2, 1),
9466
+ opacity 0.12s cubic-bezier(0, 0, 0.2, 1);
9467
+ }
9468
+
9469
+ .p-connected-overlay-leave-active {
9470
+ transition: opacity 0.1s linear;
9471
+ }
9472
+
9473
+ /* Toggleable Content */
9474
+ .p-toggleable-content-enter-from,
9475
+ .p-toggleable-content-leave-to {
9476
+ max-height: 0;
9477
+ }
9478
+
9479
+ .p-toggleable-content-enter-to,
9480
+ .p-toggleable-content-leave-from {
9481
+ max-height: 1000px;
9482
+ }
9483
+
9484
+ .p-toggleable-content-leave-active {
9485
+ overflow: hidden;
9486
+ transition: max-height 0.45s cubic-bezier(0, 1, 0, 1);
9487
+ }
9488
+
9489
+ .p-toggleable-content-enter-active {
9490
+ overflow: hidden;
9491
+ transition: max-height 1s ease-in-out;
9492
+ }
9493
+
9494
+ .p-disabled,
9495
+ .p-disabled * {
9496
+ cursor: default;
9497
+ pointer-events: none;
9498
+ user-select: none;
9499
+ }
9500
+
9501
+ .p-disabled,
9502
+ .p-component:disabled {
9503
+ opacity: dt('disabled.opacity');
9504
+ }
9505
+
9506
+ .pi {
9507
+ font-size: dt('icon.size');
9508
+ }
9509
+
9510
+ .p-icon {
9511
+ width: dt('icon.size');
9512
+ height: dt('icon.size');
9513
+ }
9514
+
9515
+ .p-overlay-mask {
9516
+ background: dt('mask.background');
9517
+ color: dt('mask.color');
9518
+ position: fixed;
9519
+ top: 0;
9520
+ left: 0;
9521
+ width: 100%;
9522
+ height: 100%;
9523
+ }
9524
+
9525
+ .p-overlay-mask-enter {
9526
+ animation: p-overlay-mask-enter-animation dt('mask.transition.duration') forwards;
9527
+ }
9528
+
9529
+ .p-overlay-mask-leave {
9530
+ animation: p-overlay-mask-leave-animation dt('mask.transition.duration') forwards;
9531
+ }
9532
+
9533
+ @keyframes p-overlay-mask-enter-animation {
9534
+ from {
9535
+ background: transparent;
9536
+ }
9537
+ to {
9538
+ background: dt('mask.background');
9539
+ }
9540
+ }
9541
+ @keyframes p-overlay-mask-leave-animation {
9542
+ from {
9543
+ background: dt('mask.background');
9544
+ }
9545
+ to {
9546
+ background: transparent;
9547
+ }
9548
+ }
9549
+ `;/* Injected with object hook! */
9318
9550
 
9319
9551
  function _typeof$2(o) { "@babel/helpers - typeof"; return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$2(o); }
9320
9552
  function ownKeys$2(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -9824,8 +10056,8 @@ var PrimeVue = {
9824
10056
  /* Injected with object hook! */
9825
10057
 
9826
10058
  /*!
9827
- * vue-router v4.5.0
9828
- * (c) 2024 Eduardo San Martin Morote
10059
+ * vue-router v4.5.1
10060
+ * (c) 2025 Eduardo San Martin Morote
9829
10061
  * @license MIT
9830
10062
  */
9831
10063
  const isBrowser = typeof document !== "undefined";
@@ -11036,7 +11268,8 @@ const RouterLinkImpl = /* @__PURE__ */ defineComponent({
11036
11268
  ariaCurrentValue: {
11037
11269
  type: String,
11038
11270
  default: "page"
11039
- }
11271
+ },
11272
+ viewTransition: Boolean
11040
11273
  },
11041
11274
  useLink,
11042
11275
  setup(props, { slots }) {
@@ -11773,31 +12006,31 @@ const routes = [
11773
12006
  {
11774
12007
  path: "/",
11775
12008
  name: "/",
11776
- component: () => __vitePreload(() => import('./index-CsPJs7Eh.js'),true ?__vite__mapDeps([0,1,2]):void 0,import.meta.url)
12009
+ component: () => __vitePreload(() => import('./index-Ch5EOJMr.js'),true ?__vite__mapDeps([0,1,2]):void 0,import.meta.url)
11777
12010
  /* no children */
11778
12011
  },
11779
12012
  {
11780
12013
  path: "/about",
11781
12014
  name: "/about",
11782
- component: () => __vitePreload(() => import('./about-2IeCGvZh.js'),true ?[]:void 0,import.meta.url)
12015
+ component: () => __vitePreload(() => import('./about-DiLpHjPS.js'),true ?[]:void 0,import.meta.url)
11783
12016
  /* no children */
11784
12017
  },
11785
12018
  {
11786
12019
  path: "/categories",
11787
12020
  name: "/categories",
11788
- component: () => __vitePreload(() => import('./categories-DSPVH7DO.js'),true ?[]:void 0,import.meta.url)
12021
+ component: () => __vitePreload(() => import('./categories-MXISoQaf.js'),true ?[]:void 0,import.meta.url)
11789
12022
  /* no children */
11790
12023
  },
11791
12024
  {
11792
12025
  path: "/migration",
11793
12026
  name: "/migration",
11794
- component: () => __vitePreload(() => import('./migration-BGdmmslF.js'),true ?__vite__mapDeps([3,1]):void 0,import.meta.url)
12027
+ component: () => __vitePreload(() => import('./migration-D4i7vW_8.js'),true ?__vite__mapDeps([3,1]):void 0,import.meta.url)
11795
12028
  /* no children */
11796
12029
  },
11797
12030
  {
11798
12031
  path: "/tags",
11799
12032
  name: "/tags",
11800
- component: () => __vitePreload(() => import('./tags-BaE6PzFa.js'),true ?[]:void 0,import.meta.url)
12033
+ component: () => __vitePreload(() => import('./tags--Vns4Is9.js'),true ?[]:void 0,import.meta.url)
11801
12034
  /* no children */
11802
12035
  }
11803
12036
  ];
@@ -11824,7 +12057,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
11824
12057
  /* Injected with object hook! */
11825
12058
 
11826
12059
  /*!
11827
- * shared v11.1.3
12060
+ * shared v11.1.4
11828
12061
  * (c) 2025 kazuya kawaguchi
11829
12062
  * Released under the MIT License.
11830
12063
  */
@@ -11902,7 +12135,7 @@ function deepCopy(src, des) {
11902
12135
  /* Injected with object hook! */
11903
12136
 
11904
12137
  /*!
11905
- * message-compiler v11.1.3
12138
+ * message-compiler v11.1.4
11906
12139
  * (c) 2025 kazuya kawaguchi
11907
12140
  * Released under the MIT License.
11908
12141
  */
@@ -13325,7 +13558,7 @@ function baseCompile$1(source, options = {}) {
13325
13558
  /* Injected with object hook! */
13326
13559
 
13327
13560
  /*!
13328
- * core-base v11.1.3
13561
+ * core-base v11.1.4
13329
13562
  * (c) 2025 kazuya kawaguchi
13330
13563
  * Released under the MIT License.
13331
13564
  */
@@ -14092,7 +14325,7 @@ function resolveValue(obj, path) {
14092
14325
  }
14093
14326
  return last;
14094
14327
  }
14095
- const VERSION$1 = "11.1.3";
14328
+ const VERSION$1 = "11.1.4";
14096
14329
  const NOT_REOSLVED = -1;
14097
14330
  const DEFAULT_LOCALE = "en-US";
14098
14331
  const MISSING_RESOLVE_VALUE = "";
@@ -14783,11 +15016,11 @@ function getMessageContextOptions(context, locale, message, options) {
14783
15016
  /* Injected with object hook! */
14784
15017
 
14785
15018
  /*!
14786
- * vue-i18n v11.1.3
15019
+ * vue-i18n v11.1.4
14787
15020
  * (c) 2025 kazuya kawaguchi
14788
15021
  * Released under the MIT License.
14789
15022
  */
14790
- const VERSION = "11.1.3";
15023
+ const VERSION = "11.1.4";
14791
15024
  function initFeatureFlags() {
14792
15025
  if (typeof __INTLIFY_PROD_DEVTOOLS__ !== "boolean") {
14793
15026
  getGlobalThis().__INTLIFY_PROD_DEVTOOLS__ = false;
@@ -15094,10 +15327,10 @@ function createComposer(options = {}) {
15094
15327
  return t(...[arg1, arg2, assign({ resolvedMessage: true }, arg3 || {})]);
15095
15328
  }
15096
15329
  function d(...args) {
15097
- return wrapWithDeps((context) => Reflect.apply(datetime, null, [context, ...args]), () => parseDateTimeArgs(...args), "datetime format", (root) => Reflect.apply(root.d, root, [...args]), () => MISSING_RESOLVE_VALUE, (val) => isString(val));
15330
+ return wrapWithDeps((context) => Reflect.apply(datetime, null, [context, ...args]), () => parseDateTimeArgs(...args), "datetime format", (root) => Reflect.apply(root.d, root, [...args]), () => MISSING_RESOLVE_VALUE, (val) => isString(val) || isArray(val));
15098
15331
  }
15099
15332
  function n(...args) {
15100
- return wrapWithDeps((context) => Reflect.apply(number, null, [context, ...args]), () => parseNumberArgs(...args), "number format", (root) => Reflect.apply(root.n, root, [...args]), () => MISSING_RESOLVE_VALUE, (val) => isString(val));
15333
+ return wrapWithDeps((context) => Reflect.apply(number, null, [context, ...args]), () => parseNumberArgs(...args), "number format", (root) => Reflect.apply(root.n, root, [...args]), () => MISSING_RESOLVE_VALUE, (val) => isString(val) || isArray(val));
15101
15334
  }
15102
15335
  function normalize(values) {
15103
15336
  return values.map((val) => isString(val) || isNumber(val) || isBoolean(val) ? createTextNode(String(val)) : val);
@@ -15397,7 +15630,7 @@ const TranslationImpl = /* @__PURE__ */ defineComponent({
15397
15630
  __useComponent: true
15398
15631
  });
15399
15632
  return () => {
15400
- const keys = Object.keys(slots).filter((key) => key !== "_");
15633
+ const keys = Object.keys(slots).filter((key) => key[0] !== "_");
15401
15634
  const options = create();
15402
15635
  if (props.locale) {
15403
15636
  options.locale = props.locale;
@@ -16294,18 +16527,33 @@ function useStorage(key, defaults2, storage, options = {}) {
16294
16527
  { flush, deep, eventFilter }
16295
16528
  );
16296
16529
  watch(keyComputed, () => update(), { flush });
16530
+ let firstMounted = false;
16531
+ const onStorageEvent = (ev) => {
16532
+ if (initOnMounted && !firstMounted) {
16533
+ return;
16534
+ }
16535
+ update(ev);
16536
+ };
16537
+ const onStorageCustomEvent = (ev) => {
16538
+ if (initOnMounted && !firstMounted) {
16539
+ return;
16540
+ }
16541
+ updateFromCustomEvent(ev);
16542
+ };
16297
16543
  if (window2 && listenToStorageChanges) {
16544
+ if (storage instanceof Storage)
16545
+ useEventListener(window2, "storage", onStorageEvent, { passive: true });
16546
+ else
16547
+ useEventListener(window2, customStorageEventName, onStorageCustomEvent);
16548
+ }
16549
+ if (initOnMounted) {
16298
16550
  tryOnMounted(() => {
16299
- if (storage instanceof Storage)
16300
- useEventListener(window2, "storage", update, { passive: true });
16301
- else
16302
- useEventListener(window2, customStorageEventName, updateFromCustomEvent);
16303
- if (initOnMounted)
16304
- update();
16551
+ firstMounted = true;
16552
+ update();
16305
16553
  });
16306
- }
16307
- if (!initOnMounted)
16554
+ } else {
16308
16555
  update();
16556
+ }
16309
16557
  function dispatchWriteEvent(oldValue, newValue) {
16310
16558
  if (window2) {
16311
16559
  const payload = {
@@ -16691,7 +16939,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
16691
16939
  default: withCtx(() => _cache[1] || (_cache[1] = [
16692
16940
  createBaseVNode("div", { i: "carbon-sun dark:carbon-moon" }, null, -1)
16693
16941
  ])),
16694
- _: 1
16942
+ _: 1,
16943
+ __: [1]
16695
16944
  }, 8, ["title"]);
16696
16945
  };
16697
16946
  }
@@ -16730,7 +16979,7 @@ const i18n = createI18n({
16730
16979
  messages: {}
16731
16980
  });
16732
16981
  const localesMap = Object.fromEntries(
16733
- Object.entries(/* #__PURE__ */ Object.assign({"../locales/en.yml": () => __vitePreload(() => import('./en-Crh6PWFl.js'),true ?[]:void 0,import.meta.url),"../locales/zh-CN.yml": () => __vitePreload(() => import('./zh-CN-DRUGIcOM.js'),true ?[]:void 0,import.meta.url)})).map(([path, loadLocale]) => [path.match(/([\w-]*)\.yml$/)?.[1], loadLocale])
16982
+ Object.entries(/* #__PURE__ */ Object.assign({"../locales/en.yml": () => __vitePreload(() => import('./en-BB5iiffm.js'),true ?[]:void 0,import.meta.url),"../locales/zh-CN.yml": () => __vitePreload(() => import('./zh-CN-C2F6UN5K.js'),true ?[]:void 0,import.meta.url)})).map(([path, loadLocale]) => [path.match(/([\w-]*)\.yml$/)?.[1], loadLocale])
16734
16983
  );
16735
16984
  const availableLocales = Object.keys(localesMap);
16736
16985
  const loadedLanguages = [];
@@ -16882,7 +17131,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
16882
17131
  default: withCtx(() => _cache[0] || (_cache[0] = [
16883
17132
  createBaseVNode("div", { "i-ri-book-line": "" }, null, -1)
16884
17133
  ])),
16885
- _: 1
17134
+ _: 1,
17135
+ __: [0]
16886
17136
  })
16887
17137
  ]);
16888
17138
  };
@@ -16975,7 +17225,7 @@ function getWindowProperty(property) {
16975
17225
 
16976
17226
  /* Injected with object hook! */
16977
17227
 
16978
- const devtoolsRouter = ref();
17228
+ const devtoolsRouter = shallowRef();
16979
17229
  const activePath = ref("");
16980
17230
  const frontmatter = ref();
16981
17231
  const pageData = ref();
@@ -16989,15 +17239,19 @@ function initDevtoolsClient() {
16989
17239
  activePath.value = to.path;
16990
17240
  next();
16991
17241
  });
16992
- onMounted(() => {
16993
- frontmatter.value = getWindowProperty("$frontmatter");
16994
- pageData.value = getWindowProperty("$pageData");
16995
- });
16996
17242
  devtoolsRouter.value.afterEach?.(async () => {
16997
17243
  await nextTick();
16998
17244
  frontmatter.value = getWindowProperty("$frontmatter");
16999
17245
  pageData.value = getWindowProperty("$pageData");
17000
17246
  });
17247
+ frontmatter.value = getWindowProperty("$frontmatter");
17248
+ pageData.value = getWindowProperty("$pageData");
17249
+ activePath.value = devtoolsRouter.value?.currentRoute.value.path || "";
17250
+ clientPageData.value = {
17251
+ frontmatter: frontmatter.value || {},
17252
+ filePath: pageData.value?.filePath || "",
17253
+ routePath: devtoolsRouter.value?.currentRoute.value.path || ""
17254
+ };
17001
17255
  }
17002
17256
 
17003
17257
  /* Injected with object hook! */
@@ -17125,4 +17379,4 @@ app.mount("#app");
17125
17379
 
17126
17380
  /* Injected with object hook! */
17127
17381
 
17128
- export { toHandlers as $, contains as A, BaseStyle as B, getScrollableParents as C, isClient$1 as D, EventBus as E, Fragment as F, setAttribute as G, localeComparator as H, getFocusableElements as I, find as J, findSingle as K, getIndex as L, getAttribute as M, relativePosition as N, getOuterWidth as O, absolutePosition as P, isTouchDevice as Q, addStyle as R, normalizeStyle as S, Teleport as T, resolveDynamicComponent as U, Transition as V, vShow as W, withKeys as X, clearSelection as Y, getSelection as Z, _export_sfc as _, createBaseVNode as a, useI18n as a0, dayjs as a1, clientPageData as a2, activePath as a3, toRaw as a4, pageData as a5, onMounted as a6, rpc as a7, getDefaultExportFromCjs as a8, useScroll as a9, computed as aA, onBeforeUnmount as aB, provide as aC, inject as aD, getCurrentInstance as aE, h as aF, nextTick as aG, postList as aa, isStaticMode as ab, vModelCheckbox as ac, vModelText as ad, getKeyValue as ae, isFunction$2 as af, toCapitalCase as ag, service_default as ah, config_default as ai, isString$2 as aj, toFlatCase as ak, resolve$1 as al, isObject$3 as am, isEmpty as an, PrimeVueService as ao, isArray$3 as ap, removeClass as aq, getHeight as ar, getWidth as as, getOuterHeight as at, getOffset as au, addClass as av, createElement as aw, useId as ax, isElement as ay, useSlots as az, renderSlot as b, createElementBlock as c, createCommentVNode as d, equals as e, resolveFieldData as f, getAppWindow as g, resolveComponent as h, isNotEmpty as i, renderList as j, createBlock as k, createSlots as l, mergeProps as m, normalizeClass as n, openBlock as o, withCtx as p, defineComponent as q, resolveDirective as r, ref as s, toDisplayString$1 as t, useModel as u, watch as v, withDirectives as w, createVNode as x, unref as y, createTextVNode as z };
17382
+ export { getSelection as $, createTextVNode as A, BaseStyle as B, contains as C, getScrollableParents as D, EventBus as E, Fragment as F, isClient$1 as G, setAttribute as H, localeComparator as I, getFocusableElements as J, find as K, findSingle as L, getIndex as M, getAttribute as N, relativePosition as O, getOuterWidth as P, absolutePosition as Q, isTouchDevice as R, addStyle as S, Teleport as T, normalizeStyle as U, resolveDynamicComponent as V, Transition as W, vShow as X, withKeys as Y, clearSelection as Z, _export_sfc as _, createElementBlock as a, toHandlers as a0, useI18n as a1, dayjs as a2, clientPageData as a3, toRaw as a4, pageData as a5, activePath as a6, onMounted as a7, rpc as a8, getDefaultExportFromCjs as a9, useId as aA, isElement as aB, useSlots as aC, onBeforeUnmount as aD, provide as aE, inject as aF, getCurrentInstance as aG, h as aH, nextTick as aI, computed as aa, devtoolsRouter as ab, useScroll as ac, postList as ad, isStaticMode as ae, vModelCheckbox as af, vModelText as ag, getKeyValue as ah, isFunction$2 as ai, toCapitalCase as aj, service_default as ak, config_default as al, isString$2 as am, toFlatCase as an, resolve$1 as ao, isObject$3 as ap, isEmpty as aq, PrimeVueService as ar, isArray$3 as as, removeClass as at, getHeight as au, getWidth as av, getOuterHeight as aw, getOffset as ax, addClass as ay, createElement as az, createBaseVNode as b, css$1 as c, renderSlot as d, createCommentVNode as e, equals as f, getAppWindow as g, resolveFieldData as h, isNotEmpty as i, resolveComponent as j, renderList as k, createBlock as l, mergeProps as m, normalizeClass as n, openBlock as o, createSlots as p, withCtx as q, resolveDirective as r, defineComponent as s, toDisplayString$1 as t, useModel as u, ref as v, withDirectives as w, watch as x, createVNode as y, unref as z };