shared.cjs.prod.js 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557
  1. 'use strict';
  2. Object.defineProperty(exports, '__esModule', { value: true });
  3. /**
  4. * Make a map and return a function for checking if a key
  5. * is in that map.
  6. * IMPORTANT: all calls of this function must be prefixed with
  7. * \/\*#\_\_PURE\_\_\*\/
  8. * So that rollup can tree-shake them if necessary.
  9. */
  10. function makeMap(str, expectsLowerCase) {
  11. const map = Object.create(null);
  12. const list = str.split(',');
  13. for (let i = 0; i < list.length; i++) {
  14. map[list[i]] = true;
  15. }
  16. return expectsLowerCase ? val => !!map[val.toLowerCase()] : val => !!map[val];
  17. }
  18. /**
  19. * dev only flag -> name mapping
  20. */
  21. const PatchFlagNames = {
  22. [1 /* TEXT */]: `TEXT`,
  23. [2 /* CLASS */]: `CLASS`,
  24. [4 /* STYLE */]: `STYLE`,
  25. [8 /* PROPS */]: `PROPS`,
  26. [16 /* FULL_PROPS */]: `FULL_PROPS`,
  27. [32 /* HYDRATE_EVENTS */]: `HYDRATE_EVENTS`,
  28. [64 /* STABLE_FRAGMENT */]: `STABLE_FRAGMENT`,
  29. [128 /* KEYED_FRAGMENT */]: `KEYED_FRAGMENT`,
  30. [256 /* UNKEYED_FRAGMENT */]: `UNKEYED_FRAGMENT`,
  31. [512 /* NEED_PATCH */]: `NEED_PATCH`,
  32. [1024 /* DYNAMIC_SLOTS */]: `DYNAMIC_SLOTS`,
  33. [2048 /* DEV_ROOT_FRAGMENT */]: `DEV_ROOT_FRAGMENT`,
  34. [-1 /* HOISTED */]: `HOISTED`,
  35. [-2 /* BAIL */]: `BAIL`
  36. };
  37. /**
  38. * Dev only
  39. */
  40. const slotFlagsText = {
  41. [1 /* STABLE */]: 'STABLE',
  42. [2 /* DYNAMIC */]: 'DYNAMIC',
  43. [3 /* FORWARDED */]: 'FORWARDED'
  44. };
  45. const GLOBALS_WHITE_LISTED = 'Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,' +
  46. 'decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,' +
  47. 'Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt';
  48. const isGloballyWhitelisted = /*#__PURE__*/ makeMap(GLOBALS_WHITE_LISTED);
  49. const range = 2;
  50. function generateCodeFrame(source, start = 0, end = source.length) {
  51. const lines = source.split(/\r?\n/);
  52. let count = 0;
  53. const res = [];
  54. for (let i = 0; i < lines.length; i++) {
  55. count += lines[i].length + 1;
  56. if (count >= start) {
  57. for (let j = i - range; j <= i + range || end > count; j++) {
  58. if (j < 0 || j >= lines.length)
  59. continue;
  60. const line = j + 1;
  61. res.push(`${line}${' '.repeat(Math.max(3 - String(line).length, 0))}| ${lines[j]}`);
  62. const lineLength = lines[j].length;
  63. if (j === i) {
  64. // push underline
  65. const pad = start - (count - lineLength) + 1;
  66. const length = Math.max(1, end > count ? lineLength - pad : end - start);
  67. res.push(` | ` + ' '.repeat(pad) + '^'.repeat(length));
  68. }
  69. else if (j > i) {
  70. if (end > count) {
  71. const length = Math.max(Math.min(end - count, lineLength), 1);
  72. res.push(` | ` + '^'.repeat(length));
  73. }
  74. count += lineLength + 1;
  75. }
  76. }
  77. break;
  78. }
  79. }
  80. return res.join('\n');
  81. }
  82. /**
  83. * On the client we only need to offer special cases for boolean attributes that
  84. * have different names from their corresponding dom properties:
  85. * - itemscope -> N/A
  86. * - allowfullscreen -> allowFullscreen
  87. * - formnovalidate -> formNoValidate
  88. * - ismap -> isMap
  89. * - nomodule -> noModule
  90. * - novalidate -> noValidate
  91. * - readonly -> readOnly
  92. */
  93. const specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`;
  94. const isSpecialBooleanAttr = /*#__PURE__*/ makeMap(specialBooleanAttrs);
  95. /**
  96. * The full list is needed during SSR to produce the correct initial markup.
  97. */
  98. const isBooleanAttr = /*#__PURE__*/ makeMap(specialBooleanAttrs +
  99. `,async,autofocus,autoplay,controls,default,defer,disabled,hidden,` +
  100. `loop,open,required,reversed,scoped,seamless,` +
  101. `checked,muted,multiple,selected`);
  102. const unsafeAttrCharRE = /[>/="'\u0009\u000a\u000c\u0020]/;
  103. const attrValidationCache = {};
  104. function isSSRSafeAttrName(name) {
  105. if (attrValidationCache.hasOwnProperty(name)) {
  106. return attrValidationCache[name];
  107. }
  108. const isUnsafe = unsafeAttrCharRE.test(name);
  109. if (isUnsafe) {
  110. console.error(`unsafe attribute name: ${name}`);
  111. }
  112. return (attrValidationCache[name] = !isUnsafe);
  113. }
  114. const propsToAttrMap = {
  115. acceptCharset: 'accept-charset',
  116. className: 'class',
  117. htmlFor: 'for',
  118. httpEquiv: 'http-equiv'
  119. };
  120. /**
  121. * CSS properties that accept plain numbers
  122. */
  123. const isNoUnitNumericStyleProp = /*#__PURE__*/ makeMap(`animation-iteration-count,border-image-outset,border-image-slice,` +
  124. `border-image-width,box-flex,box-flex-group,box-ordinal-group,column-count,` +
  125. `columns,flex,flex-grow,flex-positive,flex-shrink,flex-negative,flex-order,` +
  126. `grid-row,grid-row-end,grid-row-span,grid-row-start,grid-column,` +
  127. `grid-column-end,grid-column-span,grid-column-start,font-weight,line-clamp,` +
  128. `line-height,opacity,order,orphans,tab-size,widows,z-index,zoom,` +
  129. // SVG
  130. `fill-opacity,flood-opacity,stop-opacity,stroke-dasharray,stroke-dashoffset,` +
  131. `stroke-miterlimit,stroke-opacity,stroke-width`);
  132. /**
  133. * Known attributes, this is used for stringification of runtime static nodes
  134. * so that we don't stringify bindings that cannot be set from HTML.
  135. * Don't also forget to allow `data-*` and `aria-*`!
  136. * Generated from https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes
  137. */
  138. const isKnownAttr = /*#__PURE__*/ makeMap(`accept,accept-charset,accesskey,action,align,allow,alt,async,` +
  139. `autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,` +
  140. `border,buffered,capture,challenge,charset,checked,cite,class,code,` +
  141. `codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,` +
  142. `coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,` +
  143. `disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,` +
  144. `formaction,formenctype,formmethod,formnovalidate,formtarget,headers,` +
  145. `height,hidden,high,href,hreflang,http-equiv,icon,id,importance,integrity,` +
  146. `ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,` +
  147. `manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,` +
  148. `open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,` +
  149. `referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,` +
  150. `selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,` +
  151. `start,step,style,summary,tabindex,target,title,translate,type,usemap,` +
  152. `value,width,wrap`);
  153. function normalizeStyle(value) {
  154. if (isArray(value)) {
  155. const res = {};
  156. for (let i = 0; i < value.length; i++) {
  157. const item = value[i];
  158. const normalized = normalizeStyle(isString(item) ? parseStringStyle(item) : item);
  159. if (normalized) {
  160. for (const key in normalized) {
  161. res[key] = normalized[key];
  162. }
  163. }
  164. }
  165. return res;
  166. }
  167. else if (isObject(value)) {
  168. return value;
  169. }
  170. }
  171. const listDelimiterRE = /;(?![^(]*\))/g;
  172. const propertyDelimiterRE = /:(.+)/;
  173. function parseStringStyle(cssText) {
  174. const ret = {};
  175. cssText.split(listDelimiterRE).forEach(item => {
  176. if (item) {
  177. const tmp = item.split(propertyDelimiterRE);
  178. tmp.length > 1 && (ret[tmp[0].trim()] = tmp[1].trim());
  179. }
  180. });
  181. return ret;
  182. }
  183. function stringifyStyle(styles) {
  184. let ret = '';
  185. if (!styles) {
  186. return ret;
  187. }
  188. for (const key in styles) {
  189. const value = styles[key];
  190. const normalizedKey = key.startsWith(`--`) ? key : hyphenate(key);
  191. if (isString(value) ||
  192. (typeof value === 'number' && isNoUnitNumericStyleProp(normalizedKey))) {
  193. // only render valid values
  194. ret += `${normalizedKey}:${value};`;
  195. }
  196. }
  197. return ret;
  198. }
  199. function normalizeClass(value) {
  200. let res = '';
  201. if (isString(value)) {
  202. res = value;
  203. }
  204. else if (isArray(value)) {
  205. for (let i = 0; i < value.length; i++) {
  206. const normalized = normalizeClass(value[i]);
  207. if (normalized) {
  208. res += normalized + ' ';
  209. }
  210. }
  211. }
  212. else if (isObject(value)) {
  213. for (const name in value) {
  214. if (value[name]) {
  215. res += name + ' ';
  216. }
  217. }
  218. }
  219. return res.trim();
  220. }
  221. // These tag configs are shared between compiler-dom and runtime-dom, so they
  222. // https://developer.mozilla.org/en-US/docs/Web/HTML/Element
  223. const HTML_TAGS = 'html,body,base,head,link,meta,style,title,address,article,aside,footer,' +
  224. 'header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,' +
  225. 'figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,' +
  226. 'data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,' +
  227. 'time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,' +
  228. 'canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,' +
  229. 'th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,' +
  230. 'option,output,progress,select,textarea,details,dialog,menu,' +
  231. 'summary,template,blockquote,iframe,tfoot';
  232. // https://developer.mozilla.org/en-US/docs/Web/SVG/Element
  233. const SVG_TAGS = 'svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,' +
  234. 'defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,' +
  235. 'feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,' +
  236. 'feDistanceLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,' +
  237. 'feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,' +
  238. 'fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,' +
  239. 'foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,' +
  240. 'mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,' +
  241. 'polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,' +
  242. 'text,textPath,title,tspan,unknown,use,view';
  243. const VOID_TAGS = 'area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr';
  244. const isHTMLTag = /*#__PURE__*/ makeMap(HTML_TAGS);
  245. const isSVGTag = /*#__PURE__*/ makeMap(SVG_TAGS);
  246. const isVoidTag = /*#__PURE__*/ makeMap(VOID_TAGS);
  247. const escapeRE = /["'&<>]/;
  248. function escapeHtml(string) {
  249. const str = '' + string;
  250. const match = escapeRE.exec(str);
  251. if (!match) {
  252. return str;
  253. }
  254. let html = '';
  255. let escaped;
  256. let index;
  257. let lastIndex = 0;
  258. for (index = match.index; index < str.length; index++) {
  259. switch (str.charCodeAt(index)) {
  260. case 34: // "
  261. escaped = '&quot;';
  262. break;
  263. case 38: // &
  264. escaped = '&amp;';
  265. break;
  266. case 39: // '
  267. escaped = '&#39;';
  268. break;
  269. case 60: // <
  270. escaped = '&lt;';
  271. break;
  272. case 62: // >
  273. escaped = '&gt;';
  274. break;
  275. default:
  276. continue;
  277. }
  278. if (lastIndex !== index) {
  279. html += str.substring(lastIndex, index);
  280. }
  281. lastIndex = index + 1;
  282. html += escaped;
  283. }
  284. return lastIndex !== index ? html + str.substring(lastIndex, index) : html;
  285. }
  286. // https://www.w3.org/TR/html52/syntax.html#comments
  287. const commentStripRE = /^-?>|<!--|-->|--!>|<!-$/g;
  288. function escapeHtmlComment(src) {
  289. return src.replace(commentStripRE, '');
  290. }
  291. function looseCompareArrays(a, b) {
  292. if (a.length !== b.length)
  293. return false;
  294. let equal = true;
  295. for (let i = 0; equal && i < a.length; i++) {
  296. equal = looseEqual(a[i], b[i]);
  297. }
  298. return equal;
  299. }
  300. function looseEqual(a, b) {
  301. if (a === b)
  302. return true;
  303. let aValidType = isDate(a);
  304. let bValidType = isDate(b);
  305. if (aValidType || bValidType) {
  306. return aValidType && bValidType ? a.getTime() === b.getTime() : false;
  307. }
  308. aValidType = isArray(a);
  309. bValidType = isArray(b);
  310. if (aValidType || bValidType) {
  311. return aValidType && bValidType ? looseCompareArrays(a, b) : false;
  312. }
  313. aValidType = isObject(a);
  314. bValidType = isObject(b);
  315. if (aValidType || bValidType) {
  316. /* istanbul ignore if: this if will probably never be called */
  317. if (!aValidType || !bValidType) {
  318. return false;
  319. }
  320. const aKeysCount = Object.keys(a).length;
  321. const bKeysCount = Object.keys(b).length;
  322. if (aKeysCount !== bKeysCount) {
  323. return false;
  324. }
  325. for (const key in a) {
  326. const aHasKey = a.hasOwnProperty(key);
  327. const bHasKey = b.hasOwnProperty(key);
  328. if ((aHasKey && !bHasKey) ||
  329. (!aHasKey && bHasKey) ||
  330. !looseEqual(a[key], b[key])) {
  331. return false;
  332. }
  333. }
  334. }
  335. return String(a) === String(b);
  336. }
  337. function looseIndexOf(arr, val) {
  338. return arr.findIndex(item => looseEqual(item, val));
  339. }
  340. /**
  341. * For converting {{ interpolation }} values to displayed strings.
  342. * @private
  343. */
  344. const toDisplayString = (val) => {
  345. return val == null
  346. ? ''
  347. : isObject(val)
  348. ? JSON.stringify(val, replacer, 2)
  349. : String(val);
  350. };
  351. const replacer = (_key, val) => {
  352. if (isMap(val)) {
  353. return {
  354. [`Map(${val.size})`]: [...val.entries()].reduce((entries, [key, val]) => {
  355. entries[`${key} =>`] = val;
  356. return entries;
  357. }, {})
  358. };
  359. }
  360. else if (isSet(val)) {
  361. return {
  362. [`Set(${val.size})`]: [...val.values()]
  363. };
  364. }
  365. else if (isObject(val) && !isArray(val) && !isPlainObject(val)) {
  366. return String(val);
  367. }
  368. return val;
  369. };
  370. /**
  371. * List of @babel/parser plugins that are used for template expression
  372. * transforms and SFC script transforms. By default we enable proposals slated
  373. * for ES2020. This will need to be updated as the spec moves forward.
  374. * Full list at https://babeljs.io/docs/en/next/babel-parser#plugins
  375. */
  376. const babelParserDefaultPlugins = [
  377. 'bigInt',
  378. 'optionalChaining',
  379. 'nullishCoalescingOperator'
  380. ];
  381. const EMPTY_OBJ = {};
  382. const EMPTY_ARR = [];
  383. const NOOP = () => { };
  384. /**
  385. * Always return false.
  386. */
  387. const NO = () => false;
  388. const onRE = /^on[^a-z]/;
  389. const isOn = (key) => onRE.test(key);
  390. const isModelListener = (key) => key.startsWith('onUpdate:');
  391. const extend = Object.assign;
  392. const remove = (arr, el) => {
  393. const i = arr.indexOf(el);
  394. if (i > -1) {
  395. arr.splice(i, 1);
  396. }
  397. };
  398. const hasOwnProperty = Object.prototype.hasOwnProperty;
  399. const hasOwn = (val, key) => hasOwnProperty.call(val, key);
  400. const isArray = Array.isArray;
  401. const isMap = (val) => toTypeString(val) === '[object Map]';
  402. const isSet = (val) => toTypeString(val) === '[object Set]';
  403. const isDate = (val) => val instanceof Date;
  404. const isFunction = (val) => typeof val === 'function';
  405. const isString = (val) => typeof val === 'string';
  406. const isSymbol = (val) => typeof val === 'symbol';
  407. const isObject = (val) => val !== null && typeof val === 'object';
  408. const isPromise = (val) => {
  409. return isObject(val) && isFunction(val.then) && isFunction(val.catch);
  410. };
  411. const objectToString = Object.prototype.toString;
  412. const toTypeString = (value) => objectToString.call(value);
  413. const toRawType = (value) => {
  414. // extract "RawType" from strings like "[object RawType]"
  415. return toTypeString(value).slice(8, -1);
  416. };
  417. const isPlainObject = (val) => toTypeString(val) === '[object Object]';
  418. const isIntegerKey = (key) => isString(key) &&
  419. key !== 'NaN' &&
  420. key[0] !== '-' &&
  421. '' + parseInt(key, 10) === key;
  422. const isReservedProp = /*#__PURE__*/ makeMap(
  423. // the leading comma is intentional so empty string "" is also included
  424. ',key,ref,' +
  425. 'onVnodeBeforeMount,onVnodeMounted,' +
  426. 'onVnodeBeforeUpdate,onVnodeUpdated,' +
  427. 'onVnodeBeforeUnmount,onVnodeUnmounted');
  428. const cacheStringFunction = (fn) => {
  429. const cache = Object.create(null);
  430. return ((str) => {
  431. const hit = cache[str];
  432. return hit || (cache[str] = fn(str));
  433. });
  434. };
  435. const camelizeRE = /-(\w)/g;
  436. /**
  437. * @private
  438. */
  439. const camelize = cacheStringFunction((str) => {
  440. return str.replace(camelizeRE, (_, c) => (c ? c.toUpperCase() : ''));
  441. });
  442. const hyphenateRE = /\B([A-Z])/g;
  443. /**
  444. * @private
  445. */
  446. const hyphenate = cacheStringFunction((str) => str.replace(hyphenateRE, '-$1').toLowerCase());
  447. /**
  448. * @private
  449. */
  450. const capitalize = cacheStringFunction((str) => str.charAt(0).toUpperCase() + str.slice(1));
  451. /**
  452. * @private
  453. */
  454. const toHandlerKey = cacheStringFunction((str) => (str ? `on${capitalize(str)}` : ``));
  455. // compare whether a value has changed, accounting for NaN.
  456. const hasChanged = (value, oldValue) => value !== oldValue && (value === value || oldValue === oldValue);
  457. const invokeArrayFns = (fns, arg) => {
  458. for (let i = 0; i < fns.length; i++) {
  459. fns[i](arg);
  460. }
  461. };
  462. const def = (obj, key, value) => {
  463. Object.defineProperty(obj, key, {
  464. configurable: true,
  465. enumerable: false,
  466. value
  467. });
  468. };
  469. const toNumber = (val) => {
  470. const n = parseFloat(val);
  471. return isNaN(n) ? val : n;
  472. };
  473. let _globalThis;
  474. const getGlobalThis = () => {
  475. return (_globalThis ||
  476. (_globalThis =
  477. typeof globalThis !== 'undefined'
  478. ? globalThis
  479. : typeof self !== 'undefined'
  480. ? self
  481. : typeof window !== 'undefined'
  482. ? window
  483. : typeof global !== 'undefined'
  484. ? global
  485. : {}));
  486. };
  487. exports.EMPTY_ARR = EMPTY_ARR;
  488. exports.EMPTY_OBJ = EMPTY_OBJ;
  489. exports.NO = NO;
  490. exports.NOOP = NOOP;
  491. exports.PatchFlagNames = PatchFlagNames;
  492. exports.babelParserDefaultPlugins = babelParserDefaultPlugins;
  493. exports.camelize = camelize;
  494. exports.capitalize = capitalize;
  495. exports.def = def;
  496. exports.escapeHtml = escapeHtml;
  497. exports.escapeHtmlComment = escapeHtmlComment;
  498. exports.extend = extend;
  499. exports.generateCodeFrame = generateCodeFrame;
  500. exports.getGlobalThis = getGlobalThis;
  501. exports.hasChanged = hasChanged;
  502. exports.hasOwn = hasOwn;
  503. exports.hyphenate = hyphenate;
  504. exports.invokeArrayFns = invokeArrayFns;
  505. exports.isArray = isArray;
  506. exports.isBooleanAttr = isBooleanAttr;
  507. exports.isDate = isDate;
  508. exports.isFunction = isFunction;
  509. exports.isGloballyWhitelisted = isGloballyWhitelisted;
  510. exports.isHTMLTag = isHTMLTag;
  511. exports.isIntegerKey = isIntegerKey;
  512. exports.isKnownAttr = isKnownAttr;
  513. exports.isMap = isMap;
  514. exports.isModelListener = isModelListener;
  515. exports.isNoUnitNumericStyleProp = isNoUnitNumericStyleProp;
  516. exports.isObject = isObject;
  517. exports.isOn = isOn;
  518. exports.isPlainObject = isPlainObject;
  519. exports.isPromise = isPromise;
  520. exports.isReservedProp = isReservedProp;
  521. exports.isSSRSafeAttrName = isSSRSafeAttrName;
  522. exports.isSVGTag = isSVGTag;
  523. exports.isSet = isSet;
  524. exports.isSpecialBooleanAttr = isSpecialBooleanAttr;
  525. exports.isString = isString;
  526. exports.isSymbol = isSymbol;
  527. exports.isVoidTag = isVoidTag;
  528. exports.looseEqual = looseEqual;
  529. exports.looseIndexOf = looseIndexOf;
  530. exports.makeMap = makeMap;
  531. exports.normalizeClass = normalizeClass;
  532. exports.normalizeStyle = normalizeStyle;
  533. exports.objectToString = objectToString;
  534. exports.parseStringStyle = parseStringStyle;
  535. exports.propsToAttrMap = propsToAttrMap;
  536. exports.remove = remove;
  537. exports.slotFlagsText = slotFlagsText;
  538. exports.stringifyStyle = stringifyStyle;
  539. exports.toDisplayString = toDisplayString;
  540. exports.toHandlerKey = toHandlerKey;
  541. exports.toNumber = toNumber;
  542. exports.toRawType = toRawType;
  543. exports.toTypeString = toTypeString;