cck-ui 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/dist/index.full.js +39 -1448
  2. package/dist/index.full.min.js +3 -15
  3. package/dist/index.full.min.js.map +1 -1
  4. package/dist/index.full.min.mjs +3 -15
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +7 -1414
  7. package/es/packages/components/button/src/button-custom.mjs +2 -2
  8. package/es/packages/components/button/src/button-custom.mjs.map +1 -1
  9. package/es/packages/components/button/src/button.vue_vue_type_script_setup_true_lang.mjs +15 -15
  10. package/es/packages/components/button/src/button.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  11. package/es/packages/components/button/src/use-button.mjs +3 -3
  12. package/es/packages/components/button/src/use-button.mjs.map +1 -1
  13. package/es/packages/components/form/src/hooks/use-form-common-props.mjs +4 -4
  14. package/es/packages/components/form/src/hooks/use-form-common-props.mjs.map +1 -1
  15. package/es/packages/components/icon/src/icon.vue_vue_type_script_setup_true_lang.mjs +6 -6
  16. package/es/packages/components/icon/src/icon.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  17. package/es/packages/hooks/use-namespace/index.mjs +4 -4
  18. package/es/packages/hooks/use-namespace/index.mjs.map +1 -1
  19. package/es/packages/hooks/use-prop/index.mjs +3 -3
  20. package/es/packages/hooks/use-prop/index.mjs.map +1 -1
  21. package/es/packages/hooks/use-theme/index.mjs +3 -3
  22. package/es/packages/hooks/use-theme/index.mjs.map +1 -1
  23. package/lib/_virtual/_rolldown/runtime.js +0 -33
  24. package/lib/packages/components/button/src/button-custom.js +4 -4
  25. package/lib/packages/components/button/src/button-custom.js.map +1 -1
  26. package/lib/packages/components/button/src/button.vue_vue_type_script_setup_true_lang.js +19 -19
  27. package/lib/packages/components/button/src/button.vue_vue_type_script_setup_true_lang.js.map +1 -1
  28. package/lib/packages/components/button/src/use-button.js +3 -3
  29. package/lib/packages/components/button/src/use-button.js.map +1 -1
  30. package/lib/packages/components/form/src/hooks/use-form-common-props.js +6 -6
  31. package/lib/packages/components/form/src/hooks/use-form-common-props.js.map +1 -1
  32. package/lib/packages/components/icon/src/icon.vue_vue_type_script_setup_true_lang.js +8 -8
  33. package/lib/packages/components/icon/src/icon.vue_vue_type_script_setup_true_lang.js.map +1 -1
  34. package/lib/packages/hooks/use-namespace/index.js +4 -4
  35. package/lib/packages/hooks/use-namespace/index.js.map +1 -1
  36. package/lib/packages/hooks/use-prop/index.js +3 -3
  37. package/lib/packages/hooks/use-prop/index.js.map +1 -1
  38. package/lib/packages/hooks/use-theme/index.js +3 -3
  39. package/lib/packages/hooks/use-theme/index.js.map +1 -1
  40. package/package.json +14 -6
  41. package/es/_virtual/_rolldown/runtime.mjs +0 -27
  42. package/es/node_modules/.pnpm/vue@3.5.35_typescript@6.0.3/node_modules/vue/dist/vue.runtime.esm-bundler.mjs +0 -22
  43. package/es/node_modules/.pnpm/vue@3.5.35_typescript@6.0.3/node_modules/vue/dist/vue.runtime.esm-bundler.mjs.map +0 -1
  44. package/lib/node_modules/.pnpm/vue@3.5.35_typescript@6.0.3/node_modules/vue/dist/vue.cjs.js +0 -66
  45. package/lib/node_modules/.pnpm/vue@3.5.35_typescript@6.0.3/node_modules/vue/dist/vue.cjs.js.map +0 -1
  46. package/lib/node_modules/.pnpm/vue@3.5.35_typescript@6.0.3/node_modules/vue/dist/vue.cjs.prod.js +0 -56
  47. package/lib/node_modules/.pnpm/vue@3.5.35_typescript@6.0.3/node_modules/vue/dist/vue.cjs.prod.js.map +0 -1
  48. package/lib/node_modules/.pnpm/vue@3.5.35_typescript@6.0.3/node_modules/vue/index.js +0 -18
  49. package/lib/node_modules/.pnpm/vue@3.5.35_typescript@6.0.3/node_modules/vue/index.js.map +0 -1
  50. package/lib/node_modules/.pnpm/vue@3.5.35_typescript@6.0.3/node_modules/vue/index2.js +0 -14
  51. package/lib/node_modules/.pnpm/vue@3.5.35_typescript@6.0.3/node_modules/vue/index2.js.map +0 -1
@@ -1,4 +1,6 @@
1
- /*! CCK UI v0.0.1 */
1
+ /*! CCK UI v0.0.2 */
2
+
3
+ import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, getCurrentInstance, inject, mergeProps, normalizeClass, openBlock, readonly, ref, renderSlot, resolveDynamicComponent, unref, useSlots, withCtx } from "vue";
2
4
 
3
5
  //#region ../../packages/cck-ui/make-installer.ts
4
6
  const INSTALLED_KEY = Symbol("INSTALLED_KEY");
@@ -999,29 +1001,10 @@ function makeMap(str) {
999
1001
  for (const key of str.split(",")) map[key] = 1;
1000
1002
  return (val) => val in map;
1001
1003
  }
1002
- const EMPTY_OBJ = {};
1003
- const EMPTY_ARR = [];
1004
- const NO = () => false;
1005
- const isOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && (key.charCodeAt(2) > 122 || key.charCodeAt(2) < 97);
1006
- const isModelListener = (key) => key.startsWith("onUpdate:");
1007
- const extend = Object.assign;
1008
- const hasOwnProperty$1 = Object.prototype.hasOwnProperty;
1009
- const hasOwn = (val, key) => hasOwnProperty$1.call(val, key);
1004
+ const hasOwnProperty = Object.prototype.hasOwnProperty;
1005
+ const hasOwn = (val, key) => hasOwnProperty.call(val, key);
1010
1006
  const isArray = Array.isArray;
1011
- const isMap = (val) => toTypeString(val) === "[object Map]";
1012
- const isFunction = (val) => typeof val === "function";
1013
1007
  const isString = (val) => typeof val === "string";
1014
- const isSymbol = (val) => typeof val === "symbol";
1015
- const isObject = (val) => val !== null && typeof val === "object";
1016
- const isPromise = (val) => {
1017
- return (isObject(val) || isFunction(val)) && isFunction(val.then) && isFunction(val.catch);
1018
- };
1019
- const objectToString = Object.prototype.toString;
1020
- const toTypeString = (value) => objectToString.call(value);
1021
- const toRawType = (value) => {
1022
- return toTypeString(value).slice(8, -1);
1023
- };
1024
- const isIntegerKey = (key) => isString(key) && key !== "NaN" && key[0] !== "-" && "" + parseInt(key, 10) === key;
1025
1008
  const cacheStringFunction = (fn) => {
1026
1009
  const cache = /* @__PURE__ */ Object.create(null);
1027
1010
  return ((str) => {
@@ -1040,47 +1023,6 @@ const capitalize = cacheStringFunction((str) => {
1040
1023
  const toHandlerKey = cacheStringFunction((str) => {
1041
1024
  return str ? `on${capitalize(str)}` : ``;
1042
1025
  });
1043
- const hasChanged = (value, oldValue) => !Object.is(value, oldValue);
1044
- let _globalThis;
1045
- const getGlobalThis = () => {
1046
- return _globalThis || (_globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {});
1047
- };
1048
- function normalizeStyle(value) {
1049
- if (isArray(value)) {
1050
- const res = {};
1051
- for (let i = 0; i < value.length; i++) {
1052
- const item = value[i];
1053
- const normalized = isString(item) ? parseStringStyle(item) : normalizeStyle(item);
1054
- if (normalized) for (const key in normalized) res[key] = normalized[key];
1055
- }
1056
- return res;
1057
- } else if (isString(value) || isObject(value)) return value;
1058
- }
1059
- const listDelimiterRE = /;(?![^(]*\))/g;
1060
- const propertyDelimiterRE = /:([^]+)/;
1061
- const styleCommentRE = /\/\*[^]*?\*\//g;
1062
- function parseStringStyle(cssText) {
1063
- const ret = {};
1064
- cssText.replace(styleCommentRE, "").split(listDelimiterRE).forEach((item) => {
1065
- if (item) {
1066
- const tmp = item.split(propertyDelimiterRE);
1067
- tmp.length > 1 && (ret[tmp[0].trim()] = tmp[1].trim());
1068
- }
1069
- });
1070
- return ret;
1071
- }
1072
- function normalizeClass(value) {
1073
- let res = "";
1074
- if (isString(value)) res = value;
1075
- else if (isArray(value)) for (let i = 0; i < value.length; i++) {
1076
- const normalized = normalizeClass(value[i]);
1077
- if (normalized) res += normalized + " ";
1078
- }
1079
- else if (isObject(value)) {
1080
- for (const name in value) if (value[name]) res += name + " ";
1081
- }
1082
- return res.trim();
1083
- }
1084
1026
  const specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`;
1085
1027
  const isBooleanAttr = /* @__PURE__ */ makeMap(specialBooleanAttrs + `,async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected`);
1086
1028
 
@@ -1144,1355 +1086,6 @@ const withInstall = (main, extra) => {
1144
1086
  return main;
1145
1087
  };
1146
1088
 
1147
- //#endregion
1148
- //#region ../../node_modules/.pnpm/@vue+reactivity@3.5.35/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js
1149
- /**
1150
- * @vue/reactivity v3.5.35
1151
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
1152
- * @license MIT
1153
- **/
1154
- let activeSub;
1155
- let batchDepth = 0;
1156
- let batchedSub;
1157
- let batchedComputed;
1158
- function batch(sub, isComputed = false) {
1159
- sub.flags |= 8;
1160
- if (isComputed) {
1161
- sub.next = batchedComputed;
1162
- batchedComputed = sub;
1163
- return;
1164
- }
1165
- sub.next = batchedSub;
1166
- batchedSub = sub;
1167
- }
1168
- function startBatch() {
1169
- batchDepth++;
1170
- }
1171
- function endBatch() {
1172
- if (--batchDepth > 0) return;
1173
- if (batchedComputed) {
1174
- let e = batchedComputed;
1175
- batchedComputed = void 0;
1176
- while (e) {
1177
- const next = e.next;
1178
- e.next = void 0;
1179
- e.flags &= -9;
1180
- e = next;
1181
- }
1182
- }
1183
- let error;
1184
- while (batchedSub) {
1185
- let e = batchedSub;
1186
- batchedSub = void 0;
1187
- while (e) {
1188
- const next = e.next;
1189
- e.next = void 0;
1190
- e.flags &= -9;
1191
- if (e.flags & 1) try {
1192
- e.trigger();
1193
- } catch (err) {
1194
- if (!error) error = err;
1195
- }
1196
- e = next;
1197
- }
1198
- }
1199
- if (error) throw error;
1200
- }
1201
- function prepareDeps(sub) {
1202
- for (let link = sub.deps; link; link = link.nextDep) {
1203
- link.version = -1;
1204
- link.prevActiveLink = link.dep.activeLink;
1205
- link.dep.activeLink = link;
1206
- }
1207
- }
1208
- function cleanupDeps(sub) {
1209
- let head;
1210
- let tail = sub.depsTail;
1211
- let link = tail;
1212
- while (link) {
1213
- const prev = link.prevDep;
1214
- if (link.version === -1) {
1215
- if (link === tail) tail = prev;
1216
- removeSub(link);
1217
- removeDep(link);
1218
- } else head = link;
1219
- link.dep.activeLink = link.prevActiveLink;
1220
- link.prevActiveLink = void 0;
1221
- link = prev;
1222
- }
1223
- sub.deps = head;
1224
- sub.depsTail = tail;
1225
- }
1226
- function isDirty(sub) {
1227
- for (let link = sub.deps; link; link = link.nextDep) if (link.dep.version !== link.version || link.dep.computed && (refreshComputed(link.dep.computed) || link.dep.version !== link.version)) return true;
1228
- if (sub._dirty) return true;
1229
- return false;
1230
- }
1231
- function refreshComputed(computed) {
1232
- if (computed.flags & 4 && !(computed.flags & 16)) return;
1233
- computed.flags &= -17;
1234
- if (computed.globalVersion === globalVersion) return;
1235
- computed.globalVersion = globalVersion;
1236
- if (!computed.isSSR && computed.flags & 128 && (!computed.deps && !computed._dirty || !isDirty(computed))) return;
1237
- computed.flags |= 2;
1238
- const dep = computed.dep;
1239
- const prevSub = activeSub;
1240
- const prevShouldTrack = shouldTrack;
1241
- activeSub = computed;
1242
- shouldTrack = true;
1243
- try {
1244
- prepareDeps(computed);
1245
- const value = computed.fn(computed._value);
1246
- if (dep.version === 0 || hasChanged(value, computed._value)) {
1247
- computed.flags |= 128;
1248
- computed._value = value;
1249
- dep.version++;
1250
- }
1251
- } catch (err) {
1252
- dep.version++;
1253
- throw err;
1254
- } finally {
1255
- activeSub = prevSub;
1256
- shouldTrack = prevShouldTrack;
1257
- cleanupDeps(computed);
1258
- computed.flags &= -3;
1259
- }
1260
- }
1261
- function removeSub(link, soft = false) {
1262
- const { dep, prevSub, nextSub } = link;
1263
- if (prevSub) {
1264
- prevSub.nextSub = nextSub;
1265
- link.prevSub = void 0;
1266
- }
1267
- if (nextSub) {
1268
- nextSub.prevSub = prevSub;
1269
- link.nextSub = void 0;
1270
- }
1271
- if (dep.subs === link) {
1272
- dep.subs = prevSub;
1273
- if (!prevSub && dep.computed) {
1274
- dep.computed.flags &= -5;
1275
- for (let l = dep.computed.deps; l; l = l.nextDep) removeSub(l, true);
1276
- }
1277
- }
1278
- if (!soft && !--dep.sc && dep.map) dep.map.delete(dep.key);
1279
- }
1280
- function removeDep(link) {
1281
- const { prevDep, nextDep } = link;
1282
- if (prevDep) {
1283
- prevDep.nextDep = nextDep;
1284
- link.prevDep = void 0;
1285
- }
1286
- if (nextDep) {
1287
- nextDep.prevDep = prevDep;
1288
- link.nextDep = void 0;
1289
- }
1290
- }
1291
- let shouldTrack = true;
1292
- const trackStack = [];
1293
- function pauseTracking() {
1294
- trackStack.push(shouldTrack);
1295
- shouldTrack = false;
1296
- }
1297
- function resetTracking() {
1298
- const last = trackStack.pop();
1299
- shouldTrack = last === void 0 ? true : last;
1300
- }
1301
- let globalVersion = 0;
1302
- var Link = class {
1303
- constructor(sub, dep) {
1304
- this.sub = sub;
1305
- this.dep = dep;
1306
- this.version = dep.version;
1307
- this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0;
1308
- }
1309
- };
1310
- var Dep = class {
1311
- constructor(computed) {
1312
- this.computed = computed;
1313
- this.version = 0;
1314
- this.activeLink = void 0;
1315
- this.subs = void 0;
1316
- this.map = void 0;
1317
- this.key = void 0;
1318
- this.sc = 0;
1319
- this.__v_skip = true;
1320
- }
1321
- track(debugInfo) {
1322
- if (!activeSub || !shouldTrack || activeSub === this.computed) return;
1323
- let link = this.activeLink;
1324
- if (link === void 0 || link.sub !== activeSub) {
1325
- link = this.activeLink = new Link(activeSub, this);
1326
- if (!activeSub.deps) activeSub.deps = activeSub.depsTail = link;
1327
- else {
1328
- link.prevDep = activeSub.depsTail;
1329
- activeSub.depsTail.nextDep = link;
1330
- activeSub.depsTail = link;
1331
- }
1332
- addSub(link);
1333
- } else if (link.version === -1) {
1334
- link.version = this.version;
1335
- if (link.nextDep) {
1336
- const next = link.nextDep;
1337
- next.prevDep = link.prevDep;
1338
- if (link.prevDep) link.prevDep.nextDep = next;
1339
- link.prevDep = activeSub.depsTail;
1340
- link.nextDep = void 0;
1341
- activeSub.depsTail.nextDep = link;
1342
- activeSub.depsTail = link;
1343
- if (activeSub.deps === link) activeSub.deps = next;
1344
- }
1345
- }
1346
- return link;
1347
- }
1348
- trigger(debugInfo) {
1349
- this.version++;
1350
- globalVersion++;
1351
- this.notify(debugInfo);
1352
- }
1353
- notify(debugInfo) {
1354
- startBatch();
1355
- try {
1356
- for (let link = this.subs; link; link = link.prevSub) if (link.sub.notify()) link.sub.dep.notify();
1357
- } finally {
1358
- endBatch();
1359
- }
1360
- }
1361
- };
1362
- function addSub(link) {
1363
- link.dep.sc++;
1364
- if (link.sub.flags & 4) {
1365
- const computed = link.dep.computed;
1366
- if (computed && !link.dep.subs) {
1367
- computed.flags |= 20;
1368
- for (let l = computed.deps; l; l = l.nextDep) addSub(l);
1369
- }
1370
- const currentTail = link.dep.subs;
1371
- if (currentTail !== link) {
1372
- link.prevSub = currentTail;
1373
- if (currentTail) currentTail.nextSub = link;
1374
- }
1375
- link.dep.subs = link;
1376
- }
1377
- }
1378
- const targetMap = /* @__PURE__ */ new WeakMap();
1379
- const ITERATE_KEY = /* @__PURE__ */ Symbol("");
1380
- const MAP_KEY_ITERATE_KEY = /* @__PURE__ */ Symbol("");
1381
- const ARRAY_ITERATE_KEY = /* @__PURE__ */ Symbol("");
1382
- function track(target, type, key) {
1383
- if (shouldTrack && activeSub) {
1384
- let depsMap = targetMap.get(target);
1385
- if (!depsMap) targetMap.set(target, depsMap = /* @__PURE__ */ new Map());
1386
- let dep = depsMap.get(key);
1387
- if (!dep) {
1388
- depsMap.set(key, dep = new Dep());
1389
- dep.map = depsMap;
1390
- dep.key = key;
1391
- }
1392
- dep.track();
1393
- }
1394
- }
1395
- function trigger(target, type, key, newValue, oldValue, oldTarget) {
1396
- const depsMap = targetMap.get(target);
1397
- if (!depsMap) {
1398
- globalVersion++;
1399
- return;
1400
- }
1401
- const run = (dep) => {
1402
- if (dep) dep.trigger();
1403
- };
1404
- startBatch();
1405
- if (type === "clear") depsMap.forEach(run);
1406
- else {
1407
- const targetIsArray = isArray(target);
1408
- const isArrayIndex = targetIsArray && isIntegerKey(key);
1409
- if (targetIsArray && key === "length") {
1410
- const newLength = Number(newValue);
1411
- depsMap.forEach((dep, key2) => {
1412
- if (key2 === "length" || key2 === ARRAY_ITERATE_KEY || !isSymbol(key2) && key2 >= newLength) run(dep);
1413
- });
1414
- } else {
1415
- if (key !== void 0 || depsMap.has(void 0)) run(depsMap.get(key));
1416
- if (isArrayIndex) run(depsMap.get(ARRAY_ITERATE_KEY));
1417
- switch (type) {
1418
- case "add":
1419
- if (!targetIsArray) {
1420
- run(depsMap.get(ITERATE_KEY));
1421
- if (isMap(target)) run(depsMap.get(MAP_KEY_ITERATE_KEY));
1422
- } else if (isArrayIndex) run(depsMap.get("length"));
1423
- break;
1424
- case "delete":
1425
- if (!targetIsArray) {
1426
- run(depsMap.get(ITERATE_KEY));
1427
- if (isMap(target)) run(depsMap.get(MAP_KEY_ITERATE_KEY));
1428
- }
1429
- break;
1430
- case "set":
1431
- if (isMap(target)) run(depsMap.get(ITERATE_KEY));
1432
- break;
1433
- }
1434
- }
1435
- }
1436
- endBatch();
1437
- }
1438
- function reactiveReadArray(array) {
1439
- const raw = /* @__PURE__ */ toRaw(array);
1440
- if (raw === array) return raw;
1441
- track(raw, "iterate", ARRAY_ITERATE_KEY);
1442
- return /* @__PURE__ */ isShallow(array) ? raw : raw.map(toReactive);
1443
- }
1444
- function shallowReadArray(arr) {
1445
- track(arr = /* @__PURE__ */ toRaw(arr), "iterate", ARRAY_ITERATE_KEY);
1446
- return arr;
1447
- }
1448
- function toWrapped(target, item) {
1449
- if (/* @__PURE__ */ isReadonly(target)) return /* @__PURE__ */ isReactive(target) ? toReadonly(toReactive(item)) : toReadonly(item);
1450
- return toReactive(item);
1451
- }
1452
- const arrayInstrumentations = {
1453
- __proto__: null,
1454
- [Symbol.iterator]() {
1455
- return iterator(this, Symbol.iterator, (item) => toWrapped(this, item));
1456
- },
1457
- concat(...args) {
1458
- return reactiveReadArray(this).concat(...args.map((x) => isArray(x) ? reactiveReadArray(x) : x));
1459
- },
1460
- entries() {
1461
- return iterator(this, "entries", (value) => {
1462
- value[1] = toWrapped(this, value[1]);
1463
- return value;
1464
- });
1465
- },
1466
- every(fn, thisArg) {
1467
- return apply(this, "every", fn, thisArg, void 0, arguments);
1468
- },
1469
- filter(fn, thisArg) {
1470
- return apply(this, "filter", fn, thisArg, (v) => v.map((item) => toWrapped(this, item)), arguments);
1471
- },
1472
- find(fn, thisArg) {
1473
- return apply(this, "find", fn, thisArg, (item) => toWrapped(this, item), arguments);
1474
- },
1475
- findIndex(fn, thisArg) {
1476
- return apply(this, "findIndex", fn, thisArg, void 0, arguments);
1477
- },
1478
- findLast(fn, thisArg) {
1479
- return apply(this, "findLast", fn, thisArg, (item) => toWrapped(this, item), arguments);
1480
- },
1481
- findLastIndex(fn, thisArg) {
1482
- return apply(this, "findLastIndex", fn, thisArg, void 0, arguments);
1483
- },
1484
- forEach(fn, thisArg) {
1485
- return apply(this, "forEach", fn, thisArg, void 0, arguments);
1486
- },
1487
- includes(...args) {
1488
- return searchProxy(this, "includes", args);
1489
- },
1490
- indexOf(...args) {
1491
- return searchProxy(this, "indexOf", args);
1492
- },
1493
- join(separator) {
1494
- return reactiveReadArray(this).join(separator);
1495
- },
1496
- lastIndexOf(...args) {
1497
- return searchProxy(this, "lastIndexOf", args);
1498
- },
1499
- map(fn, thisArg) {
1500
- return apply(this, "map", fn, thisArg, void 0, arguments);
1501
- },
1502
- pop() {
1503
- return noTracking(this, "pop");
1504
- },
1505
- push(...args) {
1506
- return noTracking(this, "push", args);
1507
- },
1508
- reduce(fn, ...args) {
1509
- return reduce(this, "reduce", fn, args);
1510
- },
1511
- reduceRight(fn, ...args) {
1512
- return reduce(this, "reduceRight", fn, args);
1513
- },
1514
- shift() {
1515
- return noTracking(this, "shift");
1516
- },
1517
- some(fn, thisArg) {
1518
- return apply(this, "some", fn, thisArg, void 0, arguments);
1519
- },
1520
- splice(...args) {
1521
- return noTracking(this, "splice", args);
1522
- },
1523
- toReversed() {
1524
- return reactiveReadArray(this).toReversed();
1525
- },
1526
- toSorted(comparer) {
1527
- return reactiveReadArray(this).toSorted(comparer);
1528
- },
1529
- toSpliced(...args) {
1530
- return reactiveReadArray(this).toSpliced(...args);
1531
- },
1532
- unshift(...args) {
1533
- return noTracking(this, "unshift", args);
1534
- },
1535
- values() {
1536
- return iterator(this, "values", (item) => toWrapped(this, item));
1537
- }
1538
- };
1539
- function iterator(self, method, wrapValue) {
1540
- const arr = shallowReadArray(self);
1541
- const iter = arr[method]();
1542
- if (arr !== self && !/* @__PURE__ */ isShallow(self)) {
1543
- iter._next = iter.next;
1544
- iter.next = () => {
1545
- const result = iter._next();
1546
- if (!result.done) result.value = wrapValue(result.value);
1547
- return result;
1548
- };
1549
- }
1550
- return iter;
1551
- }
1552
- const arrayProto = Array.prototype;
1553
- function apply(self, method, fn, thisArg, wrappedRetFn, args) {
1554
- const arr = shallowReadArray(self);
1555
- const needsWrap = arr !== self && !/* @__PURE__ */ isShallow(self);
1556
- const methodFn = arr[method];
1557
- if (methodFn !== arrayProto[method]) {
1558
- const result2 = methodFn.apply(self, args);
1559
- return needsWrap ? toReactive(result2) : result2;
1560
- }
1561
- let wrappedFn = fn;
1562
- if (arr !== self) {
1563
- if (needsWrap) wrappedFn = function(item, index) {
1564
- return fn.call(this, toWrapped(self, item), index, self);
1565
- };
1566
- else if (fn.length > 2) wrappedFn = function(item, index) {
1567
- return fn.call(this, item, index, self);
1568
- };
1569
- }
1570
- const result = methodFn.call(arr, wrappedFn, thisArg);
1571
- return needsWrap && wrappedRetFn ? wrappedRetFn(result) : result;
1572
- }
1573
- function reduce(self, method, fn, args) {
1574
- const arr = shallowReadArray(self);
1575
- const needsWrap = arr !== self && !/* @__PURE__ */ isShallow(self);
1576
- let wrappedFn = fn;
1577
- let wrapInitialAccumulator = false;
1578
- if (arr !== self) {
1579
- if (needsWrap) {
1580
- wrapInitialAccumulator = args.length === 0;
1581
- wrappedFn = function(acc, item, index) {
1582
- if (wrapInitialAccumulator) {
1583
- wrapInitialAccumulator = false;
1584
- acc = toWrapped(self, acc);
1585
- }
1586
- return fn.call(this, acc, toWrapped(self, item), index, self);
1587
- };
1588
- } else if (fn.length > 3) wrappedFn = function(acc, item, index) {
1589
- return fn.call(this, acc, item, index, self);
1590
- };
1591
- }
1592
- const result = arr[method](wrappedFn, ...args);
1593
- return wrapInitialAccumulator ? toWrapped(self, result) : result;
1594
- }
1595
- function searchProxy(self, method, args) {
1596
- const arr = /* @__PURE__ */ toRaw(self);
1597
- track(arr, "iterate", ARRAY_ITERATE_KEY);
1598
- const res = arr[method](...args);
1599
- if ((res === -1 || res === false) && /* @__PURE__ */ isProxy(args[0])) {
1600
- args[0] = /* @__PURE__ */ toRaw(args[0]);
1601
- return arr[method](...args);
1602
- }
1603
- return res;
1604
- }
1605
- function noTracking(self, method, args = []) {
1606
- pauseTracking();
1607
- startBatch();
1608
- const res = (/* @__PURE__ */ toRaw(self))[method].apply(self, args);
1609
- endBatch();
1610
- resetTracking();
1611
- return res;
1612
- }
1613
- const isNonTrackableKeys = /* @__PURE__ */ makeMap(`__proto__,__v_isRef,__isVue`);
1614
- const builtInSymbols = new Set(/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((key) => key !== "arguments" && key !== "caller").map((key) => Symbol[key]).filter(isSymbol));
1615
- function hasOwnProperty(key) {
1616
- if (!isSymbol(key)) key = String(key);
1617
- const obj = /* @__PURE__ */ toRaw(this);
1618
- track(obj, "has", key);
1619
- return obj.hasOwnProperty(key);
1620
- }
1621
- var BaseReactiveHandler = class {
1622
- constructor(_isReadonly = false, _isShallow = false) {
1623
- this._isReadonly = _isReadonly;
1624
- this._isShallow = _isShallow;
1625
- }
1626
- get(target, key, receiver) {
1627
- if (key === "__v_skip") return target["__v_skip"];
1628
- const isReadonly2 = this._isReadonly, isShallow2 = this._isShallow;
1629
- if (key === "__v_isReactive") return !isReadonly2;
1630
- else if (key === "__v_isReadonly") return isReadonly2;
1631
- else if (key === "__v_isShallow") return isShallow2;
1632
- else if (key === "__v_raw") {
1633
- if (receiver === (isReadonly2 ? isShallow2 ? shallowReadonlyMap : readonlyMap : isShallow2 ? shallowReactiveMap : reactiveMap).get(target) || Object.getPrototypeOf(target) === Object.getPrototypeOf(receiver)) return target;
1634
- return;
1635
- }
1636
- const targetIsArray = isArray(target);
1637
- if (!isReadonly2) {
1638
- let fn;
1639
- if (targetIsArray && (fn = arrayInstrumentations[key])) return fn;
1640
- if (key === "hasOwnProperty") return hasOwnProperty;
1641
- }
1642
- const res = Reflect.get(target, key, /* @__PURE__ */ isRef(target) ? target : receiver);
1643
- if (isSymbol(key) ? builtInSymbols.has(key) : isNonTrackableKeys(key)) return res;
1644
- if (!isReadonly2) track(target, "get", key);
1645
- if (isShallow2) return res;
1646
- if (/* @__PURE__ */ isRef(res)) {
1647
- const value = targetIsArray && isIntegerKey(key) ? res : res.value;
1648
- return isReadonly2 && isObject(value) ? /* @__PURE__ */ readonly(value) : value;
1649
- }
1650
- if (isObject(res)) return isReadonly2 ? /* @__PURE__ */ readonly(res) : /* @__PURE__ */ reactive(res);
1651
- return res;
1652
- }
1653
- };
1654
- var MutableReactiveHandler = class extends BaseReactiveHandler {
1655
- constructor(isShallow2 = false) {
1656
- super(false, isShallow2);
1657
- }
1658
- set(target, key, value, receiver) {
1659
- let oldValue = target[key];
1660
- const isArrayWithIntegerKey = isArray(target) && isIntegerKey(key);
1661
- if (!this._isShallow) {
1662
- const isOldValueReadonly = /* @__PURE__ */ isReadonly(oldValue);
1663
- if (!/* @__PURE__ */ isShallow(value) && !/* @__PURE__ */ isReadonly(value)) {
1664
- oldValue = /* @__PURE__ */ toRaw(oldValue);
1665
- value = /* @__PURE__ */ toRaw(value);
1666
- }
1667
- if (!isArrayWithIntegerKey && /* @__PURE__ */ isRef(oldValue) && !/* @__PURE__ */ isRef(value)) if (isOldValueReadonly) return true;
1668
- else {
1669
- oldValue.value = value;
1670
- return true;
1671
- }
1672
- }
1673
- const hadKey = isArrayWithIntegerKey ? Number(key) < target.length : hasOwn(target, key);
1674
- const result = Reflect.set(target, key, value, /* @__PURE__ */ isRef(target) ? target : receiver);
1675
- if (target === /* @__PURE__ */ toRaw(receiver)) {
1676
- if (!hadKey) trigger(target, "add", key, value);
1677
- else if (hasChanged(value, oldValue)) trigger(target, "set", key, value, oldValue);
1678
- }
1679
- return result;
1680
- }
1681
- deleteProperty(target, key) {
1682
- const hadKey = hasOwn(target, key);
1683
- const oldValue = target[key];
1684
- const result = Reflect.deleteProperty(target, key);
1685
- if (result && hadKey) trigger(target, "delete", key, void 0, oldValue);
1686
- return result;
1687
- }
1688
- has(target, key) {
1689
- const result = Reflect.has(target, key);
1690
- if (!isSymbol(key) || !builtInSymbols.has(key)) track(target, "has", key);
1691
- return result;
1692
- }
1693
- ownKeys(target) {
1694
- track(target, "iterate", isArray(target) ? "length" : ITERATE_KEY);
1695
- return Reflect.ownKeys(target);
1696
- }
1697
- };
1698
- var ReadonlyReactiveHandler = class extends BaseReactiveHandler {
1699
- constructor(isShallow2 = false) {
1700
- super(true, isShallow2);
1701
- }
1702
- set(target, key) {
1703
- return true;
1704
- }
1705
- deleteProperty(target, key) {
1706
- return true;
1707
- }
1708
- };
1709
- const mutableHandlers = /* @__PURE__ */ new MutableReactiveHandler();
1710
- const readonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler();
1711
- const toShallow = (value) => value;
1712
- const getProto = (v) => Reflect.getPrototypeOf(v);
1713
- function createIterableMethod(method, isReadonly2, isShallow2) {
1714
- return function(...args) {
1715
- const target = this["__v_raw"];
1716
- const rawTarget = /* @__PURE__ */ toRaw(target);
1717
- const targetIsMap = isMap(rawTarget);
1718
- const isPair = method === "entries" || method === Symbol.iterator && targetIsMap;
1719
- const isKeyOnly = method === "keys" && targetIsMap;
1720
- const innerIterator = target[method](...args);
1721
- const wrap = isShallow2 ? toShallow : isReadonly2 ? toReadonly : toReactive;
1722
- !isReadonly2 && track(rawTarget, "iterate", isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY);
1723
- return extend(Object.create(innerIterator), { next() {
1724
- const { value, done } = innerIterator.next();
1725
- return done ? {
1726
- value,
1727
- done
1728
- } : {
1729
- value: isPair ? [wrap(value[0]), wrap(value[1])] : wrap(value),
1730
- done
1731
- };
1732
- } });
1733
- };
1734
- }
1735
- function createReadonlyMethod(type) {
1736
- return function(...args) {
1737
- return type === "delete" ? false : type === "clear" ? void 0 : this;
1738
- };
1739
- }
1740
- function createInstrumentations(readonly, shallow) {
1741
- const instrumentations = {
1742
- get(key) {
1743
- const target = this["__v_raw"];
1744
- const rawTarget = /* @__PURE__ */ toRaw(target);
1745
- const rawKey = /* @__PURE__ */ toRaw(key);
1746
- if (!readonly) {
1747
- if (hasChanged(key, rawKey)) track(rawTarget, "get", key);
1748
- track(rawTarget, "get", rawKey);
1749
- }
1750
- const { has } = getProto(rawTarget);
1751
- const wrap = shallow ? toShallow : readonly ? toReadonly : toReactive;
1752
- if (has.call(rawTarget, key)) return wrap(target.get(key));
1753
- else if (has.call(rawTarget, rawKey)) return wrap(target.get(rawKey));
1754
- else if (target !== rawTarget) target.get(key);
1755
- },
1756
- get size() {
1757
- const target = this["__v_raw"];
1758
- !readonly && track(/* @__PURE__ */ toRaw(target), "iterate", ITERATE_KEY);
1759
- return target.size;
1760
- },
1761
- has(key) {
1762
- const target = this["__v_raw"];
1763
- const rawTarget = /* @__PURE__ */ toRaw(target);
1764
- const rawKey = /* @__PURE__ */ toRaw(key);
1765
- if (!readonly) {
1766
- if (hasChanged(key, rawKey)) track(rawTarget, "has", key);
1767
- track(rawTarget, "has", rawKey);
1768
- }
1769
- return key === rawKey ? target.has(key) : target.has(key) || target.has(rawKey);
1770
- },
1771
- forEach(callback, thisArg) {
1772
- const observed = this;
1773
- const target = observed["__v_raw"];
1774
- const rawTarget = /* @__PURE__ */ toRaw(target);
1775
- const wrap = shallow ? toShallow : readonly ? toReadonly : toReactive;
1776
- !readonly && track(rawTarget, "iterate", ITERATE_KEY);
1777
- return target.forEach((value, key) => {
1778
- return callback.call(thisArg, wrap(value), wrap(key), observed);
1779
- });
1780
- }
1781
- };
1782
- extend(instrumentations, readonly ? {
1783
- add: createReadonlyMethod("add"),
1784
- set: createReadonlyMethod("set"),
1785
- delete: createReadonlyMethod("delete"),
1786
- clear: createReadonlyMethod("clear")
1787
- } : {
1788
- add(value) {
1789
- const target = /* @__PURE__ */ toRaw(this);
1790
- const proto = getProto(target);
1791
- const rawValue = /* @__PURE__ */ toRaw(value);
1792
- const valueToAdd = !shallow && !/* @__PURE__ */ isShallow(value) && !/* @__PURE__ */ isReadonly(value) ? rawValue : value;
1793
- if (!(proto.has.call(target, valueToAdd) || hasChanged(value, valueToAdd) && proto.has.call(target, value) || hasChanged(rawValue, valueToAdd) && proto.has.call(target, rawValue))) {
1794
- target.add(valueToAdd);
1795
- trigger(target, "add", valueToAdd, valueToAdd);
1796
- }
1797
- return this;
1798
- },
1799
- set(key, value) {
1800
- if (!shallow && !/* @__PURE__ */ isShallow(value) && !/* @__PURE__ */ isReadonly(value)) value = /* @__PURE__ */ toRaw(value);
1801
- const target = /* @__PURE__ */ toRaw(this);
1802
- const { has, get } = getProto(target);
1803
- let hadKey = has.call(target, key);
1804
- if (!hadKey) {
1805
- key = /* @__PURE__ */ toRaw(key);
1806
- hadKey = has.call(target, key);
1807
- }
1808
- const oldValue = get.call(target, key);
1809
- target.set(key, value);
1810
- if (!hadKey) trigger(target, "add", key, value);
1811
- else if (hasChanged(value, oldValue)) trigger(target, "set", key, value, oldValue);
1812
- return this;
1813
- },
1814
- delete(key) {
1815
- const target = /* @__PURE__ */ toRaw(this);
1816
- const { has, get } = getProto(target);
1817
- let hadKey = has.call(target, key);
1818
- if (!hadKey) {
1819
- key = /* @__PURE__ */ toRaw(key);
1820
- hadKey = has.call(target, key);
1821
- }
1822
- const oldValue = get ? get.call(target, key) : void 0;
1823
- const result = target.delete(key);
1824
- if (hadKey) trigger(target, "delete", key, void 0, oldValue);
1825
- return result;
1826
- },
1827
- clear() {
1828
- const target = /* @__PURE__ */ toRaw(this);
1829
- const hadItems = target.size !== 0;
1830
- const oldTarget = void 0;
1831
- const result = target.clear();
1832
- if (hadItems) trigger(target, "clear", void 0, void 0, oldTarget);
1833
- return result;
1834
- }
1835
- });
1836
- [
1837
- "keys",
1838
- "values",
1839
- "entries",
1840
- Symbol.iterator
1841
- ].forEach((method) => {
1842
- instrumentations[method] = createIterableMethod(method, readonly, shallow);
1843
- });
1844
- return instrumentations;
1845
- }
1846
- function createInstrumentationGetter(isReadonly2, shallow) {
1847
- const instrumentations = createInstrumentations(isReadonly2, shallow);
1848
- return (target, key, receiver) => {
1849
- if (key === "__v_isReactive") return !isReadonly2;
1850
- else if (key === "__v_isReadonly") return isReadonly2;
1851
- else if (key === "__v_raw") return target;
1852
- return Reflect.get(hasOwn(instrumentations, key) && key in target ? instrumentations : target, key, receiver);
1853
- };
1854
- }
1855
- const mutableCollectionHandlers = { get: /* @__PURE__ */ createInstrumentationGetter(false, false) };
1856
- const readonlyCollectionHandlers = { get: /* @__PURE__ */ createInstrumentationGetter(true, false) };
1857
- const reactiveMap = /* @__PURE__ */ new WeakMap();
1858
- const shallowReactiveMap = /* @__PURE__ */ new WeakMap();
1859
- const readonlyMap = /* @__PURE__ */ new WeakMap();
1860
- const shallowReadonlyMap = /* @__PURE__ */ new WeakMap();
1861
- function targetTypeMap(rawType) {
1862
- switch (rawType) {
1863
- case "Object":
1864
- case "Array": return 1;
1865
- case "Map":
1866
- case "Set":
1867
- case "WeakMap":
1868
- case "WeakSet": return 2;
1869
- default: return 0;
1870
- }
1871
- }
1872
- // @__NO_SIDE_EFFECTS__
1873
- function reactive(target) {
1874
- if (/* @__PURE__ */ isReadonly(target)) return target;
1875
- return createReactiveObject(target, false, mutableHandlers, mutableCollectionHandlers, reactiveMap);
1876
- }
1877
- // @__NO_SIDE_EFFECTS__
1878
- function readonly(target) {
1879
- return createReactiveObject(target, true, readonlyHandlers, readonlyCollectionHandlers, readonlyMap);
1880
- }
1881
- function createReactiveObject(target, isReadonly2, baseHandlers, collectionHandlers, proxyMap) {
1882
- if (!isObject(target)) return target;
1883
- if (target["__v_raw"] && !(isReadonly2 && target["__v_isReactive"])) return target;
1884
- if (target["__v_skip"] || !Object.isExtensible(target)) return target;
1885
- const existingProxy = proxyMap.get(target);
1886
- if (existingProxy) return existingProxy;
1887
- const targetType = targetTypeMap(toRawType(target));
1888
- if (targetType === 0) return target;
1889
- const proxy = new Proxy(target, targetType === 2 ? collectionHandlers : baseHandlers);
1890
- proxyMap.set(target, proxy);
1891
- return proxy;
1892
- }
1893
- // @__NO_SIDE_EFFECTS__
1894
- function isReactive(value) {
1895
- if (/* @__PURE__ */ isReadonly(value)) return /* @__PURE__ */ isReactive(value["__v_raw"]);
1896
- return !!(value && value["__v_isReactive"]);
1897
- }
1898
- // @__NO_SIDE_EFFECTS__
1899
- function isReadonly(value) {
1900
- return !!(value && value["__v_isReadonly"]);
1901
- }
1902
- // @__NO_SIDE_EFFECTS__
1903
- function isShallow(value) {
1904
- return !!(value && value["__v_isShallow"]);
1905
- }
1906
- // @__NO_SIDE_EFFECTS__
1907
- function isProxy(value) {
1908
- return value ? !!value["__v_raw"] : false;
1909
- }
1910
- // @__NO_SIDE_EFFECTS__
1911
- function toRaw(observed) {
1912
- const raw = observed && observed["__v_raw"];
1913
- return raw ? /* @__PURE__ */ toRaw(raw) : observed;
1914
- }
1915
- const toReactive = (value) => isObject(value) ? /* @__PURE__ */ reactive(value) : value;
1916
- const toReadonly = (value) => isObject(value) ? /* @__PURE__ */ readonly(value) : value;
1917
- // @__NO_SIDE_EFFECTS__
1918
- function isRef(r) {
1919
- return r ? r["__v_isRef"] === true : false;
1920
- }
1921
- // @__NO_SIDE_EFFECTS__
1922
- function ref(value) {
1923
- return createRef(value, false);
1924
- }
1925
- function createRef(rawValue, shallow) {
1926
- if (/* @__PURE__ */ isRef(rawValue)) return rawValue;
1927
- return new RefImpl(rawValue, shallow);
1928
- }
1929
- var RefImpl = class {
1930
- constructor(value, isShallow2) {
1931
- this.dep = new Dep();
1932
- this["__v_isRef"] = true;
1933
- this["__v_isShallow"] = false;
1934
- this._rawValue = isShallow2 ? value : /* @__PURE__ */ toRaw(value);
1935
- this._value = isShallow2 ? value : toReactive(value);
1936
- this["__v_isShallow"] = isShallow2;
1937
- }
1938
- get value() {
1939
- this.dep.track();
1940
- return this._value;
1941
- }
1942
- set value(newValue) {
1943
- const oldValue = this._rawValue;
1944
- const useDirectValue = this["__v_isShallow"] || /* @__PURE__ */ isShallow(newValue) || /* @__PURE__ */ isReadonly(newValue);
1945
- newValue = useDirectValue ? newValue : /* @__PURE__ */ toRaw(newValue);
1946
- if (hasChanged(newValue, oldValue)) {
1947
- this._rawValue = newValue;
1948
- this._value = useDirectValue ? newValue : toReactive(newValue);
1949
- this.dep.trigger();
1950
- }
1951
- }
1952
- };
1953
- function unref(ref2) {
1954
- return /* @__PURE__ */ isRef(ref2) ? ref2.value : ref2;
1955
- }
1956
- var ComputedRefImpl = class {
1957
- constructor(fn, setter, isSSR) {
1958
- this.fn = fn;
1959
- this.setter = setter;
1960
- this._value = void 0;
1961
- this.dep = new Dep(this);
1962
- this.__v_isRef = true;
1963
- this.deps = void 0;
1964
- this.depsTail = void 0;
1965
- this.flags = 16;
1966
- this.globalVersion = globalVersion - 1;
1967
- this.next = void 0;
1968
- this.effect = this;
1969
- this["__v_isReadonly"] = !setter;
1970
- this.isSSR = isSSR;
1971
- }
1972
- notify() {
1973
- this.flags |= 16;
1974
- if (!(this.flags & 8) && activeSub !== this) {
1975
- batch(this, true);
1976
- return true;
1977
- }
1978
- }
1979
- get value() {
1980
- const link = this.dep.track();
1981
- refreshComputed(this);
1982
- if (link) link.version = this.dep.version;
1983
- return this._value;
1984
- }
1985
- set value(newValue) {
1986
- if (this.setter) this.setter(newValue);
1987
- }
1988
- };
1989
- // @__NO_SIDE_EFFECTS__
1990
- function computed$1(getterOrOptions, debugOptions, isSSR = false) {
1991
- let getter;
1992
- let setter;
1993
- if (isFunction(getterOrOptions)) getter = getterOrOptions;
1994
- else {
1995
- getter = getterOrOptions.get;
1996
- setter = getterOrOptions.set;
1997
- }
1998
- return new ComputedRefImpl(getter, setter, isSSR);
1999
- }
2000
-
2001
- //#endregion
2002
- //#region ../../node_modules/.pnpm/@vue+runtime-core@3.5.35/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js
2003
- /**
2004
- * @vue/runtime-core v3.5.35
2005
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
2006
- * @license MIT
2007
- **/
2008
- function callWithErrorHandling(fn, instance, type, args) {
2009
- try {
2010
- return args ? fn(...args) : fn();
2011
- } catch (err) {
2012
- handleError(err, instance, type);
2013
- }
2014
- }
2015
- function callWithAsyncErrorHandling(fn, instance, type, args) {
2016
- if (isFunction(fn)) {
2017
- const res = callWithErrorHandling(fn, instance, type, args);
2018
- if (res && isPromise(res)) res.catch((err) => {
2019
- handleError(err, instance, type);
2020
- });
2021
- return res;
2022
- }
2023
- if (isArray(fn)) {
2024
- const values = [];
2025
- for (let i = 0; i < fn.length; i++) values.push(callWithAsyncErrorHandling(fn[i], instance, type, args));
2026
- return values;
2027
- }
2028
- }
2029
- function handleError(err, instance, type, throwInDev = true) {
2030
- const contextVNode = instance ? instance.vnode : null;
2031
- const { errorHandler, throwUnhandledErrorInProduction } = instance && instance.appContext.config || EMPTY_OBJ;
2032
- if (instance) {
2033
- let cur = instance.parent;
2034
- const exposedInstance = instance.proxy;
2035
- const errorInfo = `https://vuejs.org/error-reference/#runtime-${type}`;
2036
- while (cur) {
2037
- const errorCapturedHooks = cur.ec;
2038
- if (errorCapturedHooks) {
2039
- for (let i = 0; i < errorCapturedHooks.length; i++) if (errorCapturedHooks[i](err, exposedInstance, errorInfo) === false) return;
2040
- }
2041
- cur = cur.parent;
2042
- }
2043
- if (errorHandler) {
2044
- pauseTracking();
2045
- callWithErrorHandling(errorHandler, null, 10, [
2046
- err,
2047
- exposedInstance,
2048
- errorInfo
2049
- ]);
2050
- resetTracking();
2051
- return;
2052
- }
2053
- }
2054
- logError(err, type, contextVNode, throwInDev, throwUnhandledErrorInProduction);
2055
- }
2056
- function logError(err, type, contextVNode, throwInDev = true, throwInProd = false) {
2057
- if (throwInProd) throw err;
2058
- else console.error(err);
2059
- }
2060
- let devtools$1;
2061
- let buffer = [];
2062
- let devtoolsNotInstalled = false;
2063
- function emit$1(event, ...args) {
2064
- if (devtools$1) devtools$1.emit(event, ...args);
2065
- else if (!devtoolsNotInstalled) buffer.push({
2066
- event,
2067
- args
2068
- });
2069
- }
2070
- const devtoolsComponentUpdated = /* @__PURE__ */ createDevtoolsComponentHook("component:updated");
2071
- // @__NO_SIDE_EFFECTS__
2072
- function createDevtoolsComponentHook(hook) {
2073
- return (component) => {
2074
- emit$1(hook, component.appContext.app, component.uid, component.parent ? component.parent.uid : void 0, component);
2075
- };
2076
- }
2077
- let currentRenderingInstance = null;
2078
- let currentScopeId = null;
2079
- function setCurrentRenderingInstance(instance) {
2080
- const prev = currentRenderingInstance;
2081
- currentRenderingInstance = instance;
2082
- currentScopeId = instance && instance.type.__scopeId || null;
2083
- return prev;
2084
- }
2085
- function withCtx(fn, ctx = currentRenderingInstance, isNonScopedSlot) {
2086
- if (!ctx) return fn;
2087
- if (fn._n) return fn;
2088
- const renderFnWithContext = (...args) => {
2089
- if (renderFnWithContext._d) setBlockTracking(-1);
2090
- const prevInstance = setCurrentRenderingInstance(ctx);
2091
- let res;
2092
- try {
2093
- res = fn(...args);
2094
- } finally {
2095
- setCurrentRenderingInstance(prevInstance);
2096
- if (renderFnWithContext._d) setBlockTracking(1);
2097
- }
2098
- if (__VUE_PROD_DEVTOOLS__) devtoolsComponentUpdated(ctx);
2099
- return res;
2100
- };
2101
- renderFnWithContext._n = true;
2102
- renderFnWithContext._c = true;
2103
- renderFnWithContext._d = true;
2104
- return renderFnWithContext;
2105
- }
2106
- function inject(key, defaultValue, treatDefaultAsFactory = false) {
2107
- const instance = getCurrentInstance();
2108
- if (instance || currentApp) {
2109
- let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides : void 0;
2110
- if (provides && key in provides) return provides[key];
2111
- else if (arguments.length > 1) return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance && instance.proxy) : defaultValue;
2112
- }
2113
- }
2114
- const isTeleport = (type) => type.__isTeleport;
2115
- function setTransitionHooks(vnode, hooks) {
2116
- if (vnode.shapeFlag & 6 && vnode.component) {
2117
- vnode.transition = hooks;
2118
- setTransitionHooks(vnode.component.subTree, hooks);
2119
- } else if (vnode.shapeFlag & 128) {
2120
- vnode.ssContent.transition = hooks.clone(vnode.ssContent);
2121
- vnode.ssFallback.transition = hooks.clone(vnode.ssFallback);
2122
- } else vnode.transition = hooks;
2123
- }
2124
- // @__NO_SIDE_EFFECTS__
2125
- function defineComponent(options, extraOptions) {
2126
- return isFunction(options) ? /* @__PURE__ */ (() => extend({ name: options.name }, extraOptions, { setup: options }))() : options;
2127
- }
2128
- const requestIdleCallback = getGlobalThis().requestIdleCallback || ((cb) => setTimeout(cb, 1));
2129
- const cancelIdleCallback = getGlobalThis().cancelIdleCallback || ((id) => clearTimeout(id));
2130
- const isAsyncWrapper = (i) => !!i.type.__asyncLoader;
2131
- function injectHook(type, hook, target = currentInstance, prepend = false) {
2132
- if (target) {
2133
- const hooks = target[type] || (target[type] = []);
2134
- const wrappedHook = hook.__weh || (hook.__weh = (...args) => {
2135
- pauseTracking();
2136
- const reset = setCurrentInstance(target);
2137
- const res = callWithAsyncErrorHandling(hook, target, type, args);
2138
- reset();
2139
- resetTracking();
2140
- return res;
2141
- });
2142
- if (prepend) hooks.unshift(wrappedHook);
2143
- else hooks.push(wrappedHook);
2144
- return wrappedHook;
2145
- }
2146
- }
2147
- const createHook = (lifecycle) => (hook, target = currentInstance) => {
2148
- if (!isInSSRComponentSetup || lifecycle === "sp") injectHook(lifecycle, (...args) => hook(...args), target);
2149
- };
2150
- const onBeforeMount = createHook("bm");
2151
- const onMounted = createHook("m");
2152
- const onBeforeUpdate = createHook("bu");
2153
- const onUpdated = createHook("u");
2154
- const onBeforeUnmount = createHook("bum");
2155
- const onUnmounted = createHook("um");
2156
- const onServerPrefetch = createHook("sp");
2157
- const onRenderTriggered = createHook("rtg");
2158
- const onRenderTracked = createHook("rtc");
2159
- const COMPONENTS = "components";
2160
- const NULL_DYNAMIC_COMPONENT = /* @__PURE__ */ Symbol.for("v-ndc");
2161
- function resolveDynamicComponent(component) {
2162
- if (isString(component)) return resolveAsset(COMPONENTS, component, false) || component;
2163
- else return component || NULL_DYNAMIC_COMPONENT;
2164
- }
2165
- function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false) {
2166
- const instance = currentRenderingInstance || currentInstance;
2167
- if (instance) {
2168
- const Component = instance.type;
2169
- if (type === COMPONENTS) {
2170
- const selfName = getComponentName(Component, false);
2171
- if (selfName && (selfName === name || selfName === camelize(name) || selfName === capitalize(camelize(name)))) return Component;
2172
- }
2173
- const res = resolve(instance[type] || Component[type], name) || resolve(instance.appContext[type], name);
2174
- if (!res && maybeSelfReference) return Component;
2175
- return res;
2176
- }
2177
- }
2178
- function resolve(registry, name) {
2179
- return registry && (registry[name] || registry[camelize(name)] || registry[capitalize(camelize(name))]);
2180
- }
2181
- function renderSlot(slots, name, props = {}, fallback, noSlotted) {
2182
- if (currentRenderingInstance.ce || currentRenderingInstance.parent && isAsyncWrapper(currentRenderingInstance.parent) && currentRenderingInstance.parent.ce) {
2183
- const hasProps = Object.keys(props).length > 0;
2184
- if (name !== "default") props.name = name;
2185
- return openBlock(), createBlock(Fragment, null, [createVNode("slot", props, fallback && fallback())], hasProps ? -2 : 64);
2186
- }
2187
- let slot = slots[name];
2188
- if (slot && slot._c) slot._d = false;
2189
- openBlock();
2190
- const validSlotContent = slot && ensureValidVNode(slot(props));
2191
- const slotKey = props.key || validSlotContent && validSlotContent.key;
2192
- const rendered = createBlock(Fragment, { key: (slotKey && !isSymbol(slotKey) ? slotKey : `_${name}`) + (!validSlotContent && fallback ? "_fb" : "") }, validSlotContent || (fallback ? fallback() : []), validSlotContent && slots._ === 1 ? 64 : -2);
2193
- if (!noSlotted && rendered.scopeId) rendered.slotScopeIds = [rendered.scopeId + "-s"];
2194
- if (slot && slot._c) slot._d = true;
2195
- return rendered;
2196
- }
2197
- function ensureValidVNode(vnodes) {
2198
- return vnodes.some((child) => {
2199
- if (!isVNode(child)) return true;
2200
- if (child.type === Comment) return false;
2201
- if (child.type === Fragment && !ensureValidVNode(child.children)) return false;
2202
- return true;
2203
- }) ? vnodes : null;
2204
- }
2205
- function useSlots() {
2206
- return getContext("useSlots").slots;
2207
- }
2208
- function getContext(calledFunctionName) {
2209
- const i = getCurrentInstance();
2210
- return i.setupContext || (i.setupContext = createSetupContext(i));
2211
- }
2212
- function createAppContext() {
2213
- return {
2214
- app: null,
2215
- config: {
2216
- isNativeTag: NO,
2217
- performance: false,
2218
- globalProperties: {},
2219
- optionMergeStrategies: {},
2220
- errorHandler: void 0,
2221
- warnHandler: void 0,
2222
- compilerOptions: {}
2223
- },
2224
- mixins: [],
2225
- components: {},
2226
- directives: {},
2227
- provides: /* @__PURE__ */ Object.create(null),
2228
- optionsCache: /* @__PURE__ */ new WeakMap(),
2229
- propsCache: /* @__PURE__ */ new WeakMap(),
2230
- emitsCache: /* @__PURE__ */ new WeakMap()
2231
- };
2232
- }
2233
- let currentApp = null;
2234
- const internalObjectProto = {};
2235
- const isInternalObject = (obj) => Object.getPrototypeOf(obj) === internalObjectProto;
2236
- const isSuspense = (type) => type.__isSuspense;
2237
- const Fragment = /* @__PURE__ */ Symbol.for("v-fgt");
2238
- const Text = /* @__PURE__ */ Symbol.for("v-txt");
2239
- const Comment = /* @__PURE__ */ Symbol.for("v-cmt");
2240
- const blockStack = [];
2241
- let currentBlock = null;
2242
- function openBlock(disableTracking = false) {
2243
- blockStack.push(currentBlock = disableTracking ? null : []);
2244
- }
2245
- function closeBlock() {
2246
- blockStack.pop();
2247
- currentBlock = blockStack[blockStack.length - 1] || null;
2248
- }
2249
- let isBlockTreeEnabled = 1;
2250
- function setBlockTracking(value, inVOnce = false) {
2251
- isBlockTreeEnabled += value;
2252
- if (value < 0 && currentBlock && inVOnce) currentBlock.hasOnce = true;
2253
- }
2254
- function setupBlock(vnode) {
2255
- vnode.dynamicChildren = isBlockTreeEnabled > 0 ? currentBlock || EMPTY_ARR : null;
2256
- closeBlock();
2257
- if (isBlockTreeEnabled > 0 && currentBlock) currentBlock.push(vnode);
2258
- return vnode;
2259
- }
2260
- function createElementBlock(type, props, children, patchFlag, dynamicProps, shapeFlag) {
2261
- return setupBlock(createBaseVNode(type, props, children, patchFlag, dynamicProps, shapeFlag, true));
2262
- }
2263
- function createBlock(type, props, children, patchFlag, dynamicProps) {
2264
- return setupBlock(createVNode(type, props, children, patchFlag, dynamicProps, true));
2265
- }
2266
- function isVNode(value) {
2267
- return value ? value.__v_isVNode === true : false;
2268
- }
2269
- const normalizeKey = ({ key }) => key != null ? key : null;
2270
- const normalizeRef = ({ ref, ref_key, ref_for }) => {
2271
- if (typeof ref === "number") ref = "" + ref;
2272
- return ref != null ? isString(ref) || isRef(ref) || isFunction(ref) ? {
2273
- i: currentRenderingInstance,
2274
- r: ref,
2275
- k: ref_key,
2276
- f: !!ref_for
2277
- } : ref : null;
2278
- };
2279
- function createBaseVNode(type, props = null, children = null, patchFlag = 0, dynamicProps = null, shapeFlag = type === Fragment ? 0 : 1, isBlockNode = false, needFullChildrenNormalization = false) {
2280
- const vnode = {
2281
- __v_isVNode: true,
2282
- __v_skip: true,
2283
- type,
2284
- props,
2285
- key: props && normalizeKey(props),
2286
- ref: props && normalizeRef(props),
2287
- scopeId: currentScopeId,
2288
- slotScopeIds: null,
2289
- children,
2290
- component: null,
2291
- suspense: null,
2292
- ssContent: null,
2293
- ssFallback: null,
2294
- dirs: null,
2295
- transition: null,
2296
- el: null,
2297
- anchor: null,
2298
- target: null,
2299
- targetStart: null,
2300
- targetAnchor: null,
2301
- staticCount: 0,
2302
- shapeFlag,
2303
- patchFlag,
2304
- dynamicProps,
2305
- dynamicChildren: null,
2306
- appContext: null,
2307
- ctx: currentRenderingInstance
2308
- };
2309
- if (needFullChildrenNormalization) {
2310
- normalizeChildren(vnode, children);
2311
- if (shapeFlag & 128) type.normalize(vnode);
2312
- } else if (children) vnode.shapeFlag |= isString(children) ? 8 : 16;
2313
- if (isBlockTreeEnabled > 0 && !isBlockNode && currentBlock && (vnode.patchFlag > 0 || shapeFlag & 6) && vnode.patchFlag !== 32) currentBlock.push(vnode);
2314
- return vnode;
2315
- }
2316
- const createVNode = _createVNode;
2317
- function _createVNode(type, props = null, children = null, patchFlag = 0, dynamicProps = null, isBlockNode = false) {
2318
- if (!type || type === NULL_DYNAMIC_COMPONENT) type = Comment;
2319
- if (isVNode(type)) {
2320
- const cloned = cloneVNode(type, props, true);
2321
- if (children) normalizeChildren(cloned, children);
2322
- if (isBlockTreeEnabled > 0 && !isBlockNode && currentBlock) if (cloned.shapeFlag & 6) currentBlock[currentBlock.indexOf(type)] = cloned;
2323
- else currentBlock.push(cloned);
2324
- cloned.patchFlag = -2;
2325
- return cloned;
2326
- }
2327
- if (isClassComponent(type)) type = type.__vccOpts;
2328
- if (props) {
2329
- props = guardReactiveProps(props);
2330
- let { class: klass, style } = props;
2331
- if (klass && !isString(klass)) props.class = normalizeClass(klass);
2332
- if (isObject(style)) {
2333
- if (isProxy(style) && !isArray(style)) style = extend({}, style);
2334
- props.style = normalizeStyle(style);
2335
- }
2336
- }
2337
- const shapeFlag = isString(type) ? 1 : isSuspense(type) ? 128 : isTeleport(type) ? 64 : isObject(type) ? 4 : isFunction(type) ? 2 : 0;
2338
- return createBaseVNode(type, props, children, patchFlag, dynamicProps, shapeFlag, isBlockNode, true);
2339
- }
2340
- function guardReactiveProps(props) {
2341
- if (!props) return null;
2342
- return isProxy(props) || isInternalObject(props) ? extend({}, props) : props;
2343
- }
2344
- function cloneVNode(vnode, extraProps, mergeRef = false, cloneTransition = false) {
2345
- const { props, ref, patchFlag, children, transition } = vnode;
2346
- const mergedProps = extraProps ? mergeProps(props || {}, extraProps) : props;
2347
- const cloned = {
2348
- __v_isVNode: true,
2349
- __v_skip: true,
2350
- type: vnode.type,
2351
- props: mergedProps,
2352
- key: mergedProps && normalizeKey(mergedProps),
2353
- ref: extraProps && extraProps.ref ? mergeRef && ref ? isArray(ref) ? ref.concat(normalizeRef(extraProps)) : [ref, normalizeRef(extraProps)] : normalizeRef(extraProps) : ref,
2354
- scopeId: vnode.scopeId,
2355
- slotScopeIds: vnode.slotScopeIds,
2356
- children,
2357
- target: vnode.target,
2358
- targetStart: vnode.targetStart,
2359
- targetAnchor: vnode.targetAnchor,
2360
- staticCount: vnode.staticCount,
2361
- shapeFlag: vnode.shapeFlag,
2362
- patchFlag: extraProps && vnode.type !== Fragment ? patchFlag === -1 ? 16 : patchFlag | 16 : patchFlag,
2363
- dynamicProps: vnode.dynamicProps,
2364
- dynamicChildren: vnode.dynamicChildren,
2365
- appContext: vnode.appContext,
2366
- dirs: vnode.dirs,
2367
- transition,
2368
- component: vnode.component,
2369
- suspense: vnode.suspense,
2370
- ssContent: vnode.ssContent && cloneVNode(vnode.ssContent),
2371
- ssFallback: vnode.ssFallback && cloneVNode(vnode.ssFallback),
2372
- placeholder: vnode.placeholder,
2373
- el: vnode.el,
2374
- anchor: vnode.anchor,
2375
- ctx: vnode.ctx,
2376
- ce: vnode.ce
2377
- };
2378
- if (transition && cloneTransition) setTransitionHooks(cloned, transition.clone(cloned));
2379
- return cloned;
2380
- }
2381
- function createTextVNode(text = " ", flag = 0) {
2382
- return createVNode(Text, null, text, flag);
2383
- }
2384
- function createCommentVNode(text = "", asBlock = false) {
2385
- return asBlock ? (openBlock(), createBlock(Comment, null, text)) : createVNode(Comment, null, text);
2386
- }
2387
- function normalizeChildren(vnode, children) {
2388
- let type = 0;
2389
- const { shapeFlag } = vnode;
2390
- if (children == null) children = null;
2391
- else if (isArray(children)) type = 16;
2392
- else if (typeof children === "object") if (shapeFlag & 65) {
2393
- const slot = children.default;
2394
- if (slot) {
2395
- slot._c && (slot._d = false);
2396
- normalizeChildren(vnode, slot());
2397
- slot._c && (slot._d = true);
2398
- }
2399
- return;
2400
- } else {
2401
- type = 32;
2402
- const slotFlag = children._;
2403
- if (!slotFlag && !isInternalObject(children)) children._ctx = currentRenderingInstance;
2404
- else if (slotFlag === 3 && currentRenderingInstance) if (currentRenderingInstance.slots._ === 1) children._ = 1;
2405
- else {
2406
- children._ = 2;
2407
- vnode.patchFlag |= 1024;
2408
- }
2409
- }
2410
- else if (isFunction(children)) {
2411
- children = {
2412
- default: children,
2413
- _ctx: currentRenderingInstance
2414
- };
2415
- type = 32;
2416
- } else {
2417
- children = String(children);
2418
- if (shapeFlag & 64) {
2419
- type = 16;
2420
- children = [createTextVNode(children)];
2421
- } else type = 8;
2422
- }
2423
- vnode.children = children;
2424
- vnode.shapeFlag |= type;
2425
- }
2426
- function mergeProps(...args) {
2427
- const ret = {};
2428
- for (let i = 0; i < args.length; i++) {
2429
- const toMerge = args[i];
2430
- for (const key in toMerge) if (key === "class") {
2431
- if (ret.class !== toMerge.class) ret.class = normalizeClass([ret.class, toMerge.class]);
2432
- } else if (key === "style") ret.style = normalizeStyle([ret.style, toMerge.style]);
2433
- else if (isOn(key)) {
2434
- const existing = ret[key];
2435
- const incoming = toMerge[key];
2436
- if (incoming && existing !== incoming && !(isArray(existing) && existing.includes(incoming))) ret[key] = existing ? [].concat(existing, incoming) : incoming;
2437
- else if (incoming == null && existing == null && !isModelListener(key)) ret[key] = incoming;
2438
- } else if (key !== "") ret[key] = toMerge[key];
2439
- }
2440
- return ret;
2441
- }
2442
- const emptyAppContext = createAppContext();
2443
- let currentInstance = null;
2444
- const getCurrentInstance = () => currentInstance || currentRenderingInstance;
2445
- let internalSetCurrentInstance;
2446
- let setInSSRSetupState;
2447
- {
2448
- const g = getGlobalThis();
2449
- const registerGlobalSetter = (key, setter) => {
2450
- let setters;
2451
- if (!(setters = g[key])) setters = g[key] = [];
2452
- setters.push(setter);
2453
- return (v) => {
2454
- if (setters.length > 1) setters.forEach((set) => set(v));
2455
- else setters[0](v);
2456
- };
2457
- };
2458
- internalSetCurrentInstance = registerGlobalSetter(`__VUE_INSTANCE_SETTERS__`, (v) => currentInstance = v);
2459
- setInSSRSetupState = registerGlobalSetter(`__VUE_SSR_SETTERS__`, (v) => isInSSRComponentSetup = v);
2460
- }
2461
- const setCurrentInstance = (instance) => {
2462
- const prev = currentInstance;
2463
- internalSetCurrentInstance(instance);
2464
- instance.scope.on();
2465
- return () => {
2466
- instance.scope.off();
2467
- internalSetCurrentInstance(prev);
2468
- };
2469
- };
2470
- let isInSSRComponentSetup = false;
2471
- const attrsProxyHandlers = { get(target, key) {
2472
- track(target, "get", "");
2473
- return target[key];
2474
- } };
2475
- function createSetupContext(instance) {
2476
- const expose = (exposed) => {
2477
- instance.exposed = exposed || {};
2478
- };
2479
- return {
2480
- attrs: new Proxy(instance.attrs, attrsProxyHandlers),
2481
- slots: instance.slots,
2482
- emit: instance.emit,
2483
- expose
2484
- };
2485
- }
2486
- function getComponentName(Component, includeInferred = true) {
2487
- return isFunction(Component) ? Component.displayName || Component.name : Component.name || includeInferred && Component.__name;
2488
- }
2489
- function isClassComponent(value) {
2490
- return isFunction(value) && "__vccOpts" in value;
2491
- }
2492
- const computed = (getterOrOptions, debugOptions) => {
2493
- return computed$1(getterOrOptions, debugOptions, isInSSRComponentSetup);
2494
- };
2495
-
2496
1089
  //#endregion
2497
1090
  //#region ../../packages/hooks/use-namespace/index.ts
2498
1091
  const defaultNamespace = "c";
@@ -2857,9 +1450,9 @@ var button_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
2857
1450
  style: unref(buttonStyle),
2858
1451
  onClick: unref(handleClick)
2859
1452
  }), {
2860
- default: withCtx(() => [createBaseVNode("span", { class: normalizeClass(innerClass.value) }, [
1453
+ default: withCtx(() => [createElementVNode("span", { class: normalizeClass(innerClass.value) }, [
2861
1454
  _ctx.$slots["left-section"] ? (openBlock(), createElementBlock("span", _hoisted_1, [renderSlot(_ctx.$slots, "left-section")])) : __props.leftSection ? (openBlock(), createElementBlock("span", _hoisted_2, [(openBlock(), createBlock(resolveDynamicComponent(__props.leftSection)))])) : createCommentVNode("v-if", true),
2862
- createBaseVNode("span", { class: normalizeClass(labelClass.value) }, [renderSlot(_ctx.$slots, "default")], 2),
1455
+ createElementVNode("span", { class: normalizeClass(labelClass.value) }, [renderSlot(_ctx.$slots, "default")], 2),
2863
1456
  _ctx.$slots["right-section"] ? (openBlock(), createElementBlock("span", _hoisted_3, [renderSlot(_ctx.$slots, "right-section")])) : __props.rightSection ? (openBlock(), createElementBlock("span", _hoisted_4, [(openBlock(), createBlock(resolveDynamicComponent(__props.rightSection)))])) : createCommentVNode("v-if", true)
2864
1457
  ], 2)]),
2865
1458
  _: 3