@cfp-studio/plugin-vue3 16.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/LICENSE +21 -0
  2. package/dist/index.d.mts +5 -0
  3. package/dist/index.d.ts +5 -0
  4. package/dist/index.mjs +656 -0
  5. package/package.json +51 -0
  6. package/preview/index.ts +141 -0
  7. package/preview/modules/@vue/compiler-core/LICENSE +21 -0
  8. package/preview/modules/@vue/compiler-core/README.md +1 -0
  9. package/preview/modules/@vue/compiler-core/dist/compiler-core.cjs.js +6813 -0
  10. package/preview/modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6690 -0
  11. package/preview/modules/@vue/compiler-core/dist/compiler-core.d.ts +1091 -0
  12. package/preview/modules/@vue/compiler-core/dist/compiler-core.esm-bundler.js +5790 -0
  13. package/preview/modules/@vue/compiler-core/index.js +7 -0
  14. package/preview/modules/@vue/compiler-core/node_modules/.bin/parser +17 -0
  15. package/preview/modules/@vue/compiler-core/package.json +58 -0
  16. package/preview/modules/@vue/compiler-sfc/LICENSE +21 -0
  17. package/preview/modules/@vue/compiler-sfc/README.md +80 -0
  18. package/preview/modules/@vue/compiler-sfc/dist/compiler-sfc.cjs.js +24970 -0
  19. package/preview/modules/@vue/compiler-sfc/dist/compiler-sfc.d.ts +484 -0
  20. package/preview/modules/@vue/compiler-sfc/dist/compiler-sfc.esm-browser.js +53043 -0
  21. package/preview/modules/@vue/compiler-sfc/node_modules/.bin/parser +17 -0
  22. package/preview/modules/@vue/compiler-sfc/package.json +67 -0
  23. package/preview/modules/@vue/reactivity/LICENSE +21 -0
  24. package/preview/modules/@vue/reactivity/README.md +19 -0
  25. package/preview/modules/@vue/reactivity/dist/reactivity.cjs.js +1939 -0
  26. package/preview/modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1789 -0
  27. package/preview/modules/@vue/reactivity/dist/reactivity.d.ts +754 -0
  28. package/preview/modules/@vue/reactivity/dist/reactivity.esm-browser.js +1938 -0
  29. package/preview/modules/@vue/reactivity/dist/reactivity.esm-browser.prod.js +5 -0
  30. package/preview/modules/@vue/reactivity/dist/reactivity.esm-bundler.js +1896 -0
  31. package/preview/modules/@vue/reactivity/dist/reactivity.global.js +1994 -0
  32. package/preview/modules/@vue/reactivity/dist/reactivity.global.prod.js +5 -0
  33. package/preview/modules/@vue/reactivity/index.js +7 -0
  34. package/preview/modules/@vue/reactivity/package.json +55 -0
  35. package/preview/modules/@vue/runtime-core/LICENSE +21 -0
  36. package/preview/modules/@vue/runtime-core/README.md +28 -0
  37. package/preview/modules/@vue/runtime-core/dist/runtime-core.cjs.js +8493 -0
  38. package/preview/modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +6654 -0
  39. package/preview/modules/@vue/runtime-core/dist/runtime-core.d.ts +1832 -0
  40. package/preview/modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js +8419 -0
  41. package/preview/modules/@vue/runtime-core/index.js +7 -0
  42. package/preview/modules/@vue/runtime-core/package.json +52 -0
  43. package/preview/modules/@vue/runtime-dom/LICENSE +21 -0
  44. package/preview/modules/@vue/runtime-dom/README.md +13 -0
  45. package/preview/modules/@vue/runtime-dom/dist/runtime-dom.cjs.js +1820 -0
  46. package/preview/modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1669 -0
  47. package/preview/modules/@vue/runtime-dom/dist/runtime-dom.d.ts +1395 -0
  48. package/preview/modules/@vue/runtime-dom/dist/runtime-dom.esm-browser.js +12332 -0
  49. package/preview/modules/@vue/runtime-dom/dist/runtime-dom.esm-browser.prod.js +5 -0
  50. package/preview/modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js +1860 -0
  51. package/preview/modules/@vue/runtime-dom/dist/runtime-dom.global.js +12383 -0
  52. package/preview/modules/@vue/runtime-dom/dist/runtime-dom.global.prod.js +5 -0
  53. package/preview/modules/@vue/runtime-dom/index.js +7 -0
  54. package/preview/modules/@vue/runtime-dom/package.json +60 -0
  55. package/preview/modules/@vue/shared/LICENSE +21 -0
  56. package/preview/modules/@vue/shared/README.md +3 -0
  57. package/preview/modules/@vue/shared/dist/shared.cjs.js +594 -0
  58. package/preview/modules/@vue/shared/dist/shared.cjs.prod.js +594 -0
  59. package/preview/modules/@vue/shared/dist/shared.d.ts +328 -0
  60. package/preview/modules/@vue/shared/dist/shared.esm-bundler.js +519 -0
  61. package/preview/modules/@vue/shared/index.js +7 -0
  62. package/preview/modules/@vue/shared/package.json +47 -0
  63. package/preview/modules/vue/LICENSE +21 -0
  64. package/preview/modules/vue/README.md +62 -0
  65. package/preview/modules/vue/compiler-sfc/index.browser.js +1 -0
  66. package/preview/modules/vue/compiler-sfc/index.browser.mjs +1 -0
  67. package/preview/modules/vue/compiler-sfc/index.d.mts +1 -0
  68. package/preview/modules/vue/compiler-sfc/index.d.ts +1 -0
  69. package/preview/modules/vue/compiler-sfc/index.js +3 -0
  70. package/preview/modules/vue/compiler-sfc/index.mjs +3 -0
  71. package/preview/modules/vue/compiler-sfc/package.json +4 -0
  72. package/preview/modules/vue/compiler-sfc/register-ts.js +3 -0
  73. package/preview/modules/vue/dist/vue.cjs.js +80 -0
  74. package/preview/modules/vue/dist/vue.cjs.prod.js +66 -0
  75. package/preview/modules/vue/dist/vue.d.mts +7 -0
  76. package/preview/modules/vue/dist/vue.d.ts +7 -0
  77. package/preview/modules/vue/dist/vue.esm-browser.js +18216 -0
  78. package/preview/modules/vue/dist/vue.esm-browser.prod.js +9 -0
  79. package/preview/modules/vue/dist/vue.esm-bundler.js +71 -0
  80. package/preview/modules/vue/dist/vue.global.js +18096 -0
  81. package/preview/modules/vue/dist/vue.global.prod.js +9 -0
  82. package/preview/modules/vue/dist/vue.runtime.esm-browser.js +12355 -0
  83. package/preview/modules/vue/dist/vue.runtime.esm-browser.prod.js +5 -0
  84. package/preview/modules/vue/dist/vue.runtime.esm-bundler.js +26 -0
  85. package/preview/modules/vue/dist/vue.runtime.global.js +12407 -0
  86. package/preview/modules/vue/dist/vue.runtime.global.prod.js +5 -0
  87. package/preview/modules/vue/index.js +7 -0
  88. package/preview/modules/vue/index.mjs +1 -0
  89. package/preview/modules/vue/jsx-runtime/index.d.ts +25 -0
  90. package/preview/modules/vue/jsx-runtime/index.js +15 -0
  91. package/preview/modules/vue/jsx-runtime/index.mjs +12 -0
  92. package/preview/modules/vue/jsx-runtime/package.json +5 -0
  93. package/preview/modules/vue/jsx.d.ts +22 -0
  94. package/preview/modules/vue/node_modules/.bin/tsc +17 -0
  95. package/preview/modules/vue/node_modules/.bin/tsserver +17 -0
  96. package/preview/modules/vue/package.json +112 -0
  97. package/preview/modules/vue/server-renderer/index.d.mts +1 -0
  98. package/preview/modules/vue/server-renderer/index.d.ts +1 -0
  99. package/preview/modules/vue/server-renderer/index.js +1 -0
  100. package/preview/modules/vue/server-renderer/index.mjs +1 -0
  101. package/preview/modules/vue/server-renderer/package.json +4 -0
  102. package/preview/tsconfig.json +8 -0
@@ -0,0 +1,519 @@
1
+ /**
2
+ * @vue/shared v3.5.13
3
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
+ * @license MIT
5
+ **/
6
+ /*! #__NO_SIDE_EFFECTS__ */
7
+ // @__NO_SIDE_EFFECTS__
8
+ function makeMap(str) {
9
+ const map = /* @__PURE__ */ Object.create(null);
10
+ for (const key of str.split(",")) map[key] = 1;
11
+ return (val) => val in map;
12
+ }
13
+
14
+ const EMPTY_OBJ = !!(process.env.NODE_ENV !== "production") ? Object.freeze({}) : {};
15
+ const EMPTY_ARR = !!(process.env.NODE_ENV !== "production") ? Object.freeze([]) : [];
16
+ const NOOP = () => {
17
+ };
18
+ const NO = () => false;
19
+ const isOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // uppercase letter
20
+ (key.charCodeAt(2) > 122 || key.charCodeAt(2) < 97);
21
+ const isModelListener = (key) => key.startsWith("onUpdate:");
22
+ const extend = Object.assign;
23
+ const remove = (arr, el) => {
24
+ const i = arr.indexOf(el);
25
+ if (i > -1) {
26
+ arr.splice(i, 1);
27
+ }
28
+ };
29
+ const hasOwnProperty = Object.prototype.hasOwnProperty;
30
+ const hasOwn = (val, key) => hasOwnProperty.call(val, key);
31
+ const isArray = Array.isArray;
32
+ const isMap = (val) => toTypeString(val) === "[object Map]";
33
+ const isSet = (val) => toTypeString(val) === "[object Set]";
34
+ const isDate = (val) => toTypeString(val) === "[object Date]";
35
+ const isRegExp = (val) => toTypeString(val) === "[object RegExp]";
36
+ const isFunction = (val) => typeof val === "function";
37
+ const isString = (val) => typeof val === "string";
38
+ const isSymbol = (val) => typeof val === "symbol";
39
+ const isObject = (val) => val !== null && typeof val === "object";
40
+ const isPromise = (val) => {
41
+ return (isObject(val) || isFunction(val)) && isFunction(val.then) && isFunction(val.catch);
42
+ };
43
+ const objectToString = Object.prototype.toString;
44
+ const toTypeString = (value) => objectToString.call(value);
45
+ const toRawType = (value) => {
46
+ return toTypeString(value).slice(8, -1);
47
+ };
48
+ const isPlainObject = (val) => toTypeString(val) === "[object Object]";
49
+ const isIntegerKey = (key) => isString(key) && key !== "NaN" && key[0] !== "-" && "" + parseInt(key, 10) === key;
50
+ const isReservedProp = /* @__PURE__ */ makeMap(
51
+ // the leading comma is intentional so empty string "" is also included
52
+ ",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"
53
+ );
54
+ const isBuiltInDirective = /* @__PURE__ */ makeMap(
55
+ "bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"
56
+ );
57
+ const cacheStringFunction = (fn) => {
58
+ const cache = /* @__PURE__ */ Object.create(null);
59
+ return (str) => {
60
+ const hit = cache[str];
61
+ return hit || (cache[str] = fn(str));
62
+ };
63
+ };
64
+ const camelizeRE = /-(\w)/g;
65
+ const camelize = cacheStringFunction(
66
+ (str) => {
67
+ return str.replace(camelizeRE, (_, c) => c ? c.toUpperCase() : "");
68
+ }
69
+ );
70
+ const hyphenateRE = /\B([A-Z])/g;
71
+ const hyphenate = cacheStringFunction(
72
+ (str) => str.replace(hyphenateRE, "-$1").toLowerCase()
73
+ );
74
+ const capitalize = cacheStringFunction((str) => {
75
+ return str.charAt(0).toUpperCase() + str.slice(1);
76
+ });
77
+ const toHandlerKey = cacheStringFunction(
78
+ (str) => {
79
+ const s = str ? `on${capitalize(str)}` : ``;
80
+ return s;
81
+ }
82
+ );
83
+ const hasChanged = (value, oldValue) => !Object.is(value, oldValue);
84
+ const invokeArrayFns = (fns, ...arg) => {
85
+ for (let i = 0; i < fns.length; i++) {
86
+ fns[i](...arg);
87
+ }
88
+ };
89
+ const def = (obj, key, value, writable = false) => {
90
+ Object.defineProperty(obj, key, {
91
+ configurable: true,
92
+ enumerable: false,
93
+ writable,
94
+ value
95
+ });
96
+ };
97
+ const looseToNumber = (val) => {
98
+ const n = parseFloat(val);
99
+ return isNaN(n) ? val : n;
100
+ };
101
+ const toNumber = (val) => {
102
+ const n = isString(val) ? Number(val) : NaN;
103
+ return isNaN(n) ? val : n;
104
+ };
105
+ let _globalThis;
106
+ const getGlobalThis = () => {
107
+ return _globalThis || (_globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {});
108
+ };
109
+ const identRE = /^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;
110
+ function genPropsAccessExp(name) {
111
+ return identRE.test(name) ? `__props.${name}` : `__props[${JSON.stringify(name)}]`;
112
+ }
113
+ function genCacheKey(source, options) {
114
+ return source + JSON.stringify(
115
+ options,
116
+ (_, val) => typeof val === "function" ? val.toString() : val
117
+ );
118
+ }
119
+
120
+ const PatchFlags = {
121
+ "TEXT": 1,
122
+ "1": "TEXT",
123
+ "CLASS": 2,
124
+ "2": "CLASS",
125
+ "STYLE": 4,
126
+ "4": "STYLE",
127
+ "PROPS": 8,
128
+ "8": "PROPS",
129
+ "FULL_PROPS": 16,
130
+ "16": "FULL_PROPS",
131
+ "NEED_HYDRATION": 32,
132
+ "32": "NEED_HYDRATION",
133
+ "STABLE_FRAGMENT": 64,
134
+ "64": "STABLE_FRAGMENT",
135
+ "KEYED_FRAGMENT": 128,
136
+ "128": "KEYED_FRAGMENT",
137
+ "UNKEYED_FRAGMENT": 256,
138
+ "256": "UNKEYED_FRAGMENT",
139
+ "NEED_PATCH": 512,
140
+ "512": "NEED_PATCH",
141
+ "DYNAMIC_SLOTS": 1024,
142
+ "1024": "DYNAMIC_SLOTS",
143
+ "DEV_ROOT_FRAGMENT": 2048,
144
+ "2048": "DEV_ROOT_FRAGMENT",
145
+ "CACHED": -1,
146
+ "-1": "CACHED",
147
+ "BAIL": -2,
148
+ "-2": "BAIL"
149
+ };
150
+ const PatchFlagNames = {
151
+ [1]: `TEXT`,
152
+ [2]: `CLASS`,
153
+ [4]: `STYLE`,
154
+ [8]: `PROPS`,
155
+ [16]: `FULL_PROPS`,
156
+ [32]: `NEED_HYDRATION`,
157
+ [64]: `STABLE_FRAGMENT`,
158
+ [128]: `KEYED_FRAGMENT`,
159
+ [256]: `UNKEYED_FRAGMENT`,
160
+ [512]: `NEED_PATCH`,
161
+ [1024]: `DYNAMIC_SLOTS`,
162
+ [2048]: `DEV_ROOT_FRAGMENT`,
163
+ [-1]: `HOISTED`,
164
+ [-2]: `BAIL`
165
+ };
166
+
167
+ const ShapeFlags = {
168
+ "ELEMENT": 1,
169
+ "1": "ELEMENT",
170
+ "FUNCTIONAL_COMPONENT": 2,
171
+ "2": "FUNCTIONAL_COMPONENT",
172
+ "STATEFUL_COMPONENT": 4,
173
+ "4": "STATEFUL_COMPONENT",
174
+ "TEXT_CHILDREN": 8,
175
+ "8": "TEXT_CHILDREN",
176
+ "ARRAY_CHILDREN": 16,
177
+ "16": "ARRAY_CHILDREN",
178
+ "SLOTS_CHILDREN": 32,
179
+ "32": "SLOTS_CHILDREN",
180
+ "TELEPORT": 64,
181
+ "64": "TELEPORT",
182
+ "SUSPENSE": 128,
183
+ "128": "SUSPENSE",
184
+ "COMPONENT_SHOULD_KEEP_ALIVE": 256,
185
+ "256": "COMPONENT_SHOULD_KEEP_ALIVE",
186
+ "COMPONENT_KEPT_ALIVE": 512,
187
+ "512": "COMPONENT_KEPT_ALIVE",
188
+ "COMPONENT": 6,
189
+ "6": "COMPONENT"
190
+ };
191
+
192
+ const SlotFlags = {
193
+ "STABLE": 1,
194
+ "1": "STABLE",
195
+ "DYNAMIC": 2,
196
+ "2": "DYNAMIC",
197
+ "FORWARDED": 3,
198
+ "3": "FORWARDED"
199
+ };
200
+ const slotFlagsText = {
201
+ [1]: "STABLE",
202
+ [2]: "DYNAMIC",
203
+ [3]: "FORWARDED"
204
+ };
205
+
206
+ const GLOBALS_ALLOWED = "Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol";
207
+ const isGloballyAllowed = /* @__PURE__ */ makeMap(GLOBALS_ALLOWED);
208
+ const isGloballyWhitelisted = isGloballyAllowed;
209
+
210
+ const range = 2;
211
+ function generateCodeFrame(source, start = 0, end = source.length) {
212
+ start = Math.max(0, Math.min(start, source.length));
213
+ end = Math.max(0, Math.min(end, source.length));
214
+ if (start > end) return "";
215
+ let lines = source.split(/(\r?\n)/);
216
+ const newlineSequences = lines.filter((_, idx) => idx % 2 === 1);
217
+ lines = lines.filter((_, idx) => idx % 2 === 0);
218
+ let count = 0;
219
+ const res = [];
220
+ for (let i = 0; i < lines.length; i++) {
221
+ count += lines[i].length + (newlineSequences[i] && newlineSequences[i].length || 0);
222
+ if (count >= start) {
223
+ for (let j = i - range; j <= i + range || end > count; j++) {
224
+ if (j < 0 || j >= lines.length) continue;
225
+ const line = j + 1;
226
+ res.push(
227
+ `${line}${" ".repeat(Math.max(3 - String(line).length, 0))}| ${lines[j]}`
228
+ );
229
+ const lineLength = lines[j].length;
230
+ const newLineSeqLength = newlineSequences[j] && newlineSequences[j].length || 0;
231
+ if (j === i) {
232
+ const pad = start - (count - (lineLength + newLineSeqLength));
233
+ const length = Math.max(
234
+ 1,
235
+ end > count ? lineLength - pad : end - start
236
+ );
237
+ res.push(` | ` + " ".repeat(pad) + "^".repeat(length));
238
+ } else if (j > i) {
239
+ if (end > count) {
240
+ const length = Math.max(Math.min(end - count, lineLength), 1);
241
+ res.push(` | ` + "^".repeat(length));
242
+ }
243
+ count += lineLength + newLineSeqLength;
244
+ }
245
+ }
246
+ break;
247
+ }
248
+ }
249
+ return res.join("\n");
250
+ }
251
+
252
+ function normalizeStyle(value) {
253
+ if (isArray(value)) {
254
+ const res = {};
255
+ for (let i = 0; i < value.length; i++) {
256
+ const item = value[i];
257
+ const normalized = isString(item) ? parseStringStyle(item) : normalizeStyle(item);
258
+ if (normalized) {
259
+ for (const key in normalized) {
260
+ res[key] = normalized[key];
261
+ }
262
+ }
263
+ }
264
+ return res;
265
+ } else if (isString(value) || isObject(value)) {
266
+ return value;
267
+ }
268
+ }
269
+ const listDelimiterRE = /;(?![^(]*\))/g;
270
+ const propertyDelimiterRE = /:([^]+)/;
271
+ const styleCommentRE = /\/\*[^]*?\*\//g;
272
+ function parseStringStyle(cssText) {
273
+ const ret = {};
274
+ cssText.replace(styleCommentRE, "").split(listDelimiterRE).forEach((item) => {
275
+ if (item) {
276
+ const tmp = item.split(propertyDelimiterRE);
277
+ tmp.length > 1 && (ret[tmp[0].trim()] = tmp[1].trim());
278
+ }
279
+ });
280
+ return ret;
281
+ }
282
+ function stringifyStyle(styles) {
283
+ if (!styles) return "";
284
+ if (isString(styles)) return styles;
285
+ let ret = "";
286
+ for (const key in styles) {
287
+ const value = styles[key];
288
+ if (isString(value) || typeof value === "number") {
289
+ const normalizedKey = key.startsWith(`--`) ? key : hyphenate(key);
290
+ ret += `${normalizedKey}:${value};`;
291
+ }
292
+ }
293
+ return ret;
294
+ }
295
+ function normalizeClass(value) {
296
+ let res = "";
297
+ if (isString(value)) {
298
+ res = value;
299
+ } else if (isArray(value)) {
300
+ for (let i = 0; i < value.length; i++) {
301
+ const normalized = normalizeClass(value[i]);
302
+ if (normalized) {
303
+ res += normalized + " ";
304
+ }
305
+ }
306
+ } else if (isObject(value)) {
307
+ for (const name in value) {
308
+ if (value[name]) {
309
+ res += name + " ";
310
+ }
311
+ }
312
+ }
313
+ return res.trim();
314
+ }
315
+ function normalizeProps(props) {
316
+ if (!props) return null;
317
+ let { class: klass, style } = props;
318
+ if (klass && !isString(klass)) {
319
+ props.class = normalizeClass(klass);
320
+ }
321
+ if (style) {
322
+ props.style = normalizeStyle(style);
323
+ }
324
+ return props;
325
+ }
326
+
327
+ const HTML_TAGS = "html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot";
328
+ const SVG_TAGS = "svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view";
329
+ const MATH_TAGS = "annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics";
330
+ const VOID_TAGS = "area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr";
331
+ const isHTMLTag = /* @__PURE__ */ makeMap(HTML_TAGS);
332
+ const isSVGTag = /* @__PURE__ */ makeMap(SVG_TAGS);
333
+ const isMathMLTag = /* @__PURE__ */ makeMap(MATH_TAGS);
334
+ const isVoidTag = /* @__PURE__ */ makeMap(VOID_TAGS);
335
+
336
+ const specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`;
337
+ const isSpecialBooleanAttr = /* @__PURE__ */ makeMap(specialBooleanAttrs);
338
+ const isBooleanAttr = /* @__PURE__ */ makeMap(
339
+ specialBooleanAttrs + `,async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected`
340
+ );
341
+ function includeBooleanAttr(value) {
342
+ return !!value || value === "";
343
+ }
344
+ const unsafeAttrCharRE = /[>/="'\u0009\u000a\u000c\u0020]/;
345
+ const attrValidationCache = {};
346
+ function isSSRSafeAttrName(name) {
347
+ if (attrValidationCache.hasOwnProperty(name)) {
348
+ return attrValidationCache[name];
349
+ }
350
+ const isUnsafe = unsafeAttrCharRE.test(name);
351
+ if (isUnsafe) {
352
+ console.error(`unsafe attribute name: ${name}`);
353
+ }
354
+ return attrValidationCache[name] = !isUnsafe;
355
+ }
356
+ const propsToAttrMap = {
357
+ acceptCharset: "accept-charset",
358
+ className: "class",
359
+ htmlFor: "for",
360
+ httpEquiv: "http-equiv"
361
+ };
362
+ const isKnownHtmlAttr = /* @__PURE__ */ makeMap(
363
+ `accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap`
364
+ );
365
+ const isKnownSvgAttr = /* @__PURE__ */ makeMap(
366
+ `xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan`
367
+ );
368
+ const isKnownMathMLAttr = /* @__PURE__ */ makeMap(
369
+ `accent,accentunder,actiontype,align,alignmentscope,altimg,altimg-height,altimg-valign,altimg-width,alttext,bevelled,close,columnsalign,columnlines,columnspan,denomalign,depth,dir,display,displaystyle,encoding,equalcolumns,equalrows,fence,fontstyle,fontweight,form,frame,framespacing,groupalign,height,href,id,indentalign,indentalignfirst,indentalignlast,indentshift,indentshiftfirst,indentshiftlast,indextype,justify,largetop,largeop,lquote,lspace,mathbackground,mathcolor,mathsize,mathvariant,maxsize,minlabelspacing,mode,other,overflow,position,rowalign,rowlines,rowspan,rquote,rspace,scriptlevel,scriptminsize,scriptsizemultiplier,selection,separator,separators,shift,side,src,stackalign,stretchy,subscriptshift,superscriptshift,symmetric,voffset,width,widths,xlink:href,xlink:show,xlink:type,xmlns`
370
+ );
371
+ function isRenderableAttrValue(value) {
372
+ if (value == null) {
373
+ return false;
374
+ }
375
+ const type = typeof value;
376
+ return type === "string" || type === "number" || type === "boolean";
377
+ }
378
+
379
+ const escapeRE = /["'&<>]/;
380
+ function escapeHtml(string) {
381
+ const str = "" + string;
382
+ const match = escapeRE.exec(str);
383
+ if (!match) {
384
+ return str;
385
+ }
386
+ let html = "";
387
+ let escaped;
388
+ let index;
389
+ let lastIndex = 0;
390
+ for (index = match.index; index < str.length; index++) {
391
+ switch (str.charCodeAt(index)) {
392
+ case 34:
393
+ escaped = "&quot;";
394
+ break;
395
+ case 38:
396
+ escaped = "&amp;";
397
+ break;
398
+ case 39:
399
+ escaped = "&#39;";
400
+ break;
401
+ case 60:
402
+ escaped = "&lt;";
403
+ break;
404
+ case 62:
405
+ escaped = "&gt;";
406
+ break;
407
+ default:
408
+ continue;
409
+ }
410
+ if (lastIndex !== index) {
411
+ html += str.slice(lastIndex, index);
412
+ }
413
+ lastIndex = index + 1;
414
+ html += escaped;
415
+ }
416
+ return lastIndex !== index ? html + str.slice(lastIndex, index) : html;
417
+ }
418
+ const commentStripRE = /^-?>|<!--|-->|--!>|<!-$/g;
419
+ function escapeHtmlComment(src) {
420
+ return src.replace(commentStripRE, "");
421
+ }
422
+ const cssVarNameEscapeSymbolsRE = /[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;
423
+ function getEscapedCssVarName(key, doubleEscape) {
424
+ return key.replace(
425
+ cssVarNameEscapeSymbolsRE,
426
+ (s) => doubleEscape ? s === '"' ? '\\\\\\"' : `\\\\${s}` : `\\${s}`
427
+ );
428
+ }
429
+
430
+ function looseCompareArrays(a, b) {
431
+ if (a.length !== b.length) return false;
432
+ let equal = true;
433
+ for (let i = 0; equal && i < a.length; i++) {
434
+ equal = looseEqual(a[i], b[i]);
435
+ }
436
+ return equal;
437
+ }
438
+ function looseEqual(a, b) {
439
+ if (a === b) return true;
440
+ let aValidType = isDate(a);
441
+ let bValidType = isDate(b);
442
+ if (aValidType || bValidType) {
443
+ return aValidType && bValidType ? a.getTime() === b.getTime() : false;
444
+ }
445
+ aValidType = isSymbol(a);
446
+ bValidType = isSymbol(b);
447
+ if (aValidType || bValidType) {
448
+ return a === b;
449
+ }
450
+ aValidType = isArray(a);
451
+ bValidType = isArray(b);
452
+ if (aValidType || bValidType) {
453
+ return aValidType && bValidType ? looseCompareArrays(a, b) : false;
454
+ }
455
+ aValidType = isObject(a);
456
+ bValidType = isObject(b);
457
+ if (aValidType || bValidType) {
458
+ if (!aValidType || !bValidType) {
459
+ return false;
460
+ }
461
+ const aKeysCount = Object.keys(a).length;
462
+ const bKeysCount = Object.keys(b).length;
463
+ if (aKeysCount !== bKeysCount) {
464
+ return false;
465
+ }
466
+ for (const key in a) {
467
+ const aHasKey = a.hasOwnProperty(key);
468
+ const bHasKey = b.hasOwnProperty(key);
469
+ if (aHasKey && !bHasKey || !aHasKey && bHasKey || !looseEqual(a[key], b[key])) {
470
+ return false;
471
+ }
472
+ }
473
+ }
474
+ return String(a) === String(b);
475
+ }
476
+ function looseIndexOf(arr, val) {
477
+ return arr.findIndex((item) => looseEqual(item, val));
478
+ }
479
+
480
+ const isRef = (val) => {
481
+ return !!(val && val["__v_isRef"] === true);
482
+ };
483
+ const toDisplayString = (val) => {
484
+ return isString(val) ? val : val == null ? "" : isArray(val) || isObject(val) && (val.toString === objectToString || !isFunction(val.toString)) ? isRef(val) ? toDisplayString(val.value) : JSON.stringify(val, replacer, 2) : String(val);
485
+ };
486
+ const replacer = (_key, val) => {
487
+ if (isRef(val)) {
488
+ return replacer(_key, val.value);
489
+ } else if (isMap(val)) {
490
+ return {
491
+ [`Map(${val.size})`]: [...val.entries()].reduce(
492
+ (entries, [key, val2], i) => {
493
+ entries[stringifySymbol(key, i) + " =>"] = val2;
494
+ return entries;
495
+ },
496
+ {}
497
+ )
498
+ };
499
+ } else if (isSet(val)) {
500
+ return {
501
+ [`Set(${val.size})`]: [...val.values()].map((v) => stringifySymbol(v))
502
+ };
503
+ } else if (isSymbol(val)) {
504
+ return stringifySymbol(val);
505
+ } else if (isObject(val) && !isArray(val) && !isPlainObject(val)) {
506
+ return String(val);
507
+ }
508
+ return val;
509
+ };
510
+ const stringifySymbol = (v, i = "") => {
511
+ var _a;
512
+ return (
513
+ // Symbol.description in es2019+ so we need to cast here to pass
514
+ // the lib: es2016 check
515
+ isSymbol(v) ? `Symbol(${(_a = v.description) != null ? _a : i})` : v
516
+ );
517
+ };
518
+
519
+ export { EMPTY_ARR, EMPTY_OBJ, NO, NOOP, PatchFlagNames, PatchFlags, ShapeFlags, SlotFlags, camelize, capitalize, cssVarNameEscapeSymbolsRE, def, escapeHtml, escapeHtmlComment, extend, genCacheKey, genPropsAccessExp, generateCodeFrame, getEscapedCssVarName, getGlobalThis, hasChanged, hasOwn, hyphenate, includeBooleanAttr, invokeArrayFns, isArray, isBooleanAttr, isBuiltInDirective, isDate, isFunction, isGloballyAllowed, isGloballyWhitelisted, isHTMLTag, isIntegerKey, isKnownHtmlAttr, isKnownMathMLAttr, isKnownSvgAttr, isMap, isMathMLTag, isModelListener, isObject, isOn, isPlainObject, isPromise, isRegExp, isRenderableAttrValue, isReservedProp, isSSRSafeAttrName, isSVGTag, isSet, isSpecialBooleanAttr, isString, isSymbol, isVoidTag, looseEqual, looseIndexOf, looseToNumber, makeMap, normalizeClass, normalizeProps, normalizeStyle, objectToString, parseStringStyle, propsToAttrMap, remove, slotFlagsText, stringifyStyle, toDisplayString, toHandlerKey, toNumber, toRawType, toTypeString };
@@ -0,0 +1,7 @@
1
+ 'use strict'
2
+
3
+ if (process.env.NODE_ENV === 'production') {
4
+ module.exports = require('./dist/shared.cjs.prod.js')
5
+ } else {
6
+ module.exports = require('./dist/shared.cjs.js')
7
+ }
@@ -0,0 +1,47 @@
1
+ {
2
+ "name": "@vue/shared",
3
+ "version": "3.5.13",
4
+ "description": "internal utils shared across @vue packages",
5
+ "main": "index.js",
6
+ "module": "dist/shared.esm-bundler.js",
7
+ "types": "dist/shared.d.ts",
8
+ "files": [
9
+ "index.js",
10
+ "dist"
11
+ ],
12
+ "exports": {
13
+ ".": {
14
+ "types": "./dist/shared.d.ts",
15
+ "node": {
16
+ "production": "./dist/shared.cjs.prod.js",
17
+ "development": "./dist/shared.cjs.js",
18
+ "default": "./index.js"
19
+ },
20
+ "module": "./dist/shared.esm-bundler.js",
21
+ "import": "./dist/shared.esm-bundler.js",
22
+ "require": "./index.js"
23
+ },
24
+ "./*": "./*"
25
+ },
26
+ "sideEffects": false,
27
+ "buildOptions": {
28
+ "formats": [
29
+ "esm-bundler",
30
+ "cjs"
31
+ ]
32
+ },
33
+ "repository": {
34
+ "type": "git",
35
+ "url": "git+https://github.com/vuejs/core.git",
36
+ "directory": "packages/shared"
37
+ },
38
+ "keywords": [
39
+ "vue"
40
+ ],
41
+ "author": "Evan You",
42
+ "license": "MIT",
43
+ "bugs": {
44
+ "url": "https://github.com/vuejs/core/issues"
45
+ },
46
+ "homepage": "https://github.com/vuejs/core/tree/main/packages/shared#readme"
47
+ }
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018-present, Yuxi (Evan) You
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,62 @@
1
+ # vue
2
+
3
+ ## Which dist file to use?
4
+
5
+ ### From CDN or without a Bundler
6
+
7
+ - **`vue(.runtime).global(.prod).js`**:
8
+
9
+ - For direct use via `<script src="...">` in the browser. Exposes the `Vue` global.
10
+ - Note that global builds are not [UMD](https://github.com/umdjs/umd) builds. They are built as [IIFEs](https://developer.mozilla.org/en-US/docs/Glossary/IIFE) and is only meant for direct use via `<script src="...">`.
11
+ - In-browser template compilation:
12
+ - **`vue.global.js`** is the "full" build that includes both the compiler and the runtime so it supports compiling templates on the fly.
13
+ - **`vue.runtime.global.js`** contains only the runtime and requires templates to be pre-compiled during a build step.
14
+ - Inlines all Vue core internal packages - i.e. it's a single file with no dependencies on other files. This means you **must** import everything from this file and this file only to ensure you are getting the same instance of code.
15
+ - Contains hard-coded prod/dev branches, and the prod build is pre-minified. Use the `*.prod.js` files for production.
16
+
17
+ - **`vue(.runtime).esm-browser(.prod).js`**:
18
+ - For usage via native ES modules imports (in browser via `<script type="module">`).
19
+ - Shares the same runtime compilation, dependency inlining and hard-coded prod/dev behavior with the global build.
20
+
21
+ ### With a Bundler
22
+
23
+ - **`vue(.runtime).esm-bundler.js`**:
24
+
25
+ - For use with bundlers like `webpack`, `rollup` and `parcel`.
26
+ - Leaves prod/dev branches with `process.env.NODE_ENV` guards (must be replaced by bundler)
27
+ - Does not ship minified builds (to be done together with the rest of the code after bundling)
28
+ - Imports dependencies (e.g. `@vue/runtime-core`, `@vue/compiler-core`)
29
+ - Imported dependencies are also `esm-bundler` builds and will in turn import their dependencies (e.g. `@vue/runtime-core` imports `@vue/reactivity`)
30
+ - This means you **can** install/import these deps individually without ending up with different instances of these dependencies, but you must make sure they all resolve to the same version.
31
+ - In-browser template compilation:
32
+ - **`vue.runtime.esm-bundler.js` (default)** is runtime only, and requires all templates to be pre-compiled. This is the default entry for bundlers (via `module` field in `package.json`) because when using a bundler templates are typically pre-compiled (e.g. in `*.vue` files).
33
+ - **`vue.esm-bundler.js`**: includes the runtime compiler. Use this if you are using a bundler but still want runtime template compilation (e.g. in-DOM templates or templates via inline JavaScript strings). You will need to configure your bundler to alias `vue` to this file.
34
+
35
+ #### Bundler Build Feature Flags
36
+
37
+ [Detailed Reference on vuejs.org](https://vuejs.org/api/compile-time-flags.html)
38
+
39
+ `esm-bundler` builds of Vue expose global feature flags that can be overwritten at compile time:
40
+
41
+ - `__VUE_OPTIONS_API__`
42
+
43
+ - Default: `true`
44
+ - Enable / disable Options API support
45
+
46
+ - `__VUE_PROD_DEVTOOLS__`
47
+
48
+ - Default: `false`
49
+ - Enable / disable devtools support in production
50
+
51
+ - `__VUE_PROD_HYDRATION_MISMATCH_DETAILS__`
52
+ - Default: `false`
53
+ - Enable / disable detailed warnings for hydration mismatches in production
54
+
55
+ The build will work without configuring these flags, however it is **strongly recommended** to properly configure them in order to get proper tree-shaking in the final bundle.
56
+
57
+ ### For Server-Side Rendering
58
+
59
+ - **`vue.cjs(.prod).js`**:
60
+ - For use in Node.js server-side rendering via `require()`.
61
+ - If you bundle your app with webpack with `target: 'node'` and properly externalize `vue`, this is the build that will be loaded.
62
+ - The dev/prod files are pre-built, but the appropriate file is automatically required based on `process.env.NODE_ENV`.
@@ -0,0 +1 @@
1
+ module.exports = require('@vue/compiler-sfc')
@@ -0,0 +1 @@
1
+ export * from '@vue/compiler-sfc'
@@ -0,0 +1 @@
1
+ export * from '@vue/compiler-sfc'
@@ -0,0 +1 @@
1
+ export * from '@vue/compiler-sfc'
@@ -0,0 +1,3 @@
1
+ module.exports = require('@vue/compiler-sfc')
2
+
3
+ require('./register-ts.js')