@ktjs/shared 0.23.10 → 0.23.12

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.
package/dist/index.mjs CHANGED
@@ -1,4 +1,3 @@
1
- // Cached native methods for performance optimization
2
1
  const $isArray = Array.isArray;
3
2
  const $ArrayFrom = Array.from;
4
3
  const $is = Object.is;
@@ -10,221 +9,152 @@ const $defines = Object.defineProperties;
10
9
  const $define = Object.defineProperty;
11
10
  const $entries = Object.entries;
12
11
  const $random = Math.random;
13
- const $isThenable = (o) => typeof o?.then === 'function';
12
+ const $isThenable = (o) => typeof o?.then === "function";
14
13
 
15
- if (typeof Symbol === 'undefined') {
16
- window.Symbol = function Symbol(description) {
17
- return `@@SYMBOL_${description || ''}_${$random().toString(36).slice(2)}`;
18
- };
14
+ if (typeof Symbol === "undefined") {
15
+ window.Symbol = function Symbol2(description) {
16
+ return `@@SYMBOL_${description || ""}_${$random().toString(36).slice(2)}`;
17
+ };
19
18
  }
20
19
 
21
- // String manipulation utilities
22
- /**
23
- * Default empty function
24
- */
25
- const $emptyFn = (() => true);
26
- const $emptyArray = [];
27
- const $emptyObject = Object.create(null);
28
- const $isSame = (a, b) => {
29
- if ($isArray(a)) {
30
- return true; // always trigger an array
31
- }
32
- return $is(a, b);
33
- };
34
- /**
35
- * Safe and quick forEach implementation that works with array-like objects and handles sparse arrays.
36
- */
37
- const $forEach = (array, callback) => {
38
- const len = array.length;
39
- for (let i = 0; i < len; i++) {
40
- callback(array[i], i, array);
41
- }
42
- };
43
- /**
44
- * Async version of $forEach that allows for asynchronous callbacks. It processes items sequentially, awaiting each callback before moving to the next.
45
- */
46
- const $forEachAsync = async (array, callback) => {
47
- const len = array.length;
48
- for (let i = 0; i < len; i++) {
49
- await callback(array[i], i, array);
50
- }
51
- };
52
-
53
- const $emptyChildrenRef = { value: $emptyArray };
54
- // each instance shares the same empty array, but it will be replaced when used
55
- Comment.prototype.kisFragmentAnchor = false;
56
- Comment.prototype.kFragmentList = $emptyArray;
57
- Comment.prototype.kredraw = $emptyFn;
58
- Comment.prototype.kchildrenRef = $emptyChildrenRef;
59
-
60
- // Shared constants
61
- // Empty for now - can be extended with framework-wide constants
62
- /**
63
- * Mark the attribute as SVG to handle special cases during rendering.
64
- */
65
- const SVG_ATTR_FLAG = '__kt_svg__';
66
- /**
67
- * Mark the attribute as MathML to handle special cases during rendering.
68
- */
69
- const MATHML_ATTR_FLAG = '__kt_mathml__';
70
- /**
71
- * Can be if, else, else-if.
72
- */
73
- const DIRV_TYPE = Symbol('kt-directive-type');
74
-
75
- // DOM manipulation utilities
76
- // # dom natives
77
20
  const $isNode = (x) => x?.nodeType > 0;
78
- /**
79
- * Safe replace `oldNode` With `newNode`
80
- */
81
21
  const $replaceNode = (oldNode, newNode) => {
82
- if ($isNode(oldNode) && $isNode(newNode)) {
83
- if (newNode.contains(oldNode)) {
84
- newNode.remove();
85
- }
86
- oldNode.replaceWith(newNode);
22
+ if ($isNode(oldNode) && $isNode(newNode)) {
23
+ if (newNode.contains(oldNode)) {
24
+ newNode.remove();
87
25
  }
26
+ oldNode.replaceWith(newNode);
27
+ }
88
28
  };
89
- /**
90
- * & Remove `bind` because it is shockingly slower than wrapper
91
- * & `window.document` is safe because it is not configurable and its setter is undefined
92
- */
93
29
  const $appendChild = HTMLElement.prototype.appendChild;
94
30
  const originAppend = HTMLElement.prototype.append;
95
- const $append = // for ie 9/10/11
96
- typeof originAppend === 'function'
97
- ? originAppend
98
- : function (...nodes) {
99
- if (nodes.length < 50) {
100
- for (let i = 0; i < nodes.length; i++) {
101
- const node = nodes[i];
102
- if (typeof node === 'string') {
103
- $appendChild.call(this, document.createTextNode(node));
104
- }
105
- else {
106
- $appendChild.call(this, node);
107
- }
108
- }
31
+ const $append = (
32
+ // for ie 9/10/11
33
+ typeof originAppend === "function" ? originAppend : function(...nodes) {
34
+ if (nodes.length < 50) {
35
+ for (let i = 0; i < nodes.length; i++) {
36
+ const node = nodes[i];
37
+ if (typeof node === "string") {
38
+ $appendChild.call(this, document.createTextNode(node));
39
+ } else {
40
+ $appendChild.call(this, node);
109
41
  }
110
- else {
111
- const fragment = document.createDocumentFragment();
112
- for (let i = 0; i < nodes.length; i++) {
113
- const node = nodes[i];
114
- if (typeof node === 'string') {
115
- $appendChild.call(fragment, document.createTextNode(node));
116
- }
117
- else {
118
- $appendChild.call(fragment, node);
119
- }
120
- }
121
- $appendChild.call(this, fragment);
42
+ }
43
+ } else {
44
+ const fragment = document.createDocumentFragment();
45
+ for (let i = 0; i < nodes.length; i++) {
46
+ const node = nodes[i];
47
+ if (typeof node === "string") {
48
+ $appendChild.call(fragment, document.createTextNode(node));
49
+ } else {
50
+ $appendChild.call(fragment, node);
122
51
  }
123
- };
124
- const { get: $buttonDisabledGetter, set: $buttonDisabledSetter } = Object.getOwnPropertyDescriptor(HTMLButtonElement.prototype, 'disabled');
125
- const $parseStyle = (style) => {
126
- if (!style) {
127
- return '';
52
+ }
53
+ $appendChild.call(this, fragment);
128
54
  }
129
- if (typeof style === 'string') {
130
- return style;
131
- }
132
- if (style && typeof style === 'object') {
133
- if (style.isKT) {
134
- return $parseStyle(style.value);
135
- }
136
- return $entries(style)
137
- .map((entry) => {
138
- const cssKey = entry[0].replace(/[A-Z]/g, (m) => `-${m.toLowerCase()}`);
139
- return `${cssKey}:${entry[1]}`;
140
- })
141
- .join(';');
55
+ }
56
+ );
57
+ const { get: $buttonDisabledGetter, set: $buttonDisabledSetter } = Object.getOwnPropertyDescriptor(
58
+ HTMLButtonElement.prototype,
59
+ "disabled"
60
+ );
61
+ const $parseStyle = (style) => {
62
+ if (!style) {
63
+ return "";
64
+ }
65
+ if (typeof style === "string") {
66
+ return style;
67
+ }
68
+ if (style && typeof style === "object") {
69
+ if (style.isKT) {
70
+ return $parseStyle(style.value);
142
71
  }
143
- return '';
72
+ return $entries(style).map((entry) => {
73
+ const cssKey = entry[0].replace(/[A-Z]/g, (m) => `-${m.toLowerCase()}`);
74
+ return `${cssKey}:${entry[1]}`;
75
+ }).join(";");
76
+ }
77
+ return "";
144
78
  };
145
- /**
146
- * Used for `k-model`
147
- */
148
79
  const $applyModel = (element, valueRef, propName, eventName) => {
149
- element[propName] = valueRef.value; // initialize
150
- valueRef.addOnChange((newValue) => (element[propName] = newValue));
151
- element.addEventListener(eventName, () => (valueRef.value = element[propName]));
80
+ element[propName] = valueRef.value;
81
+ valueRef.addOnChange((newValue) => element[propName] = newValue);
82
+ element.addEventListener(eventName, () => valueRef.value = element[propName]);
83
+ };
84
+
85
+ const $emptyFn = (() => true);
86
+ const $emptyArray = [];
87
+ const $emptyObject = /* @__PURE__ */ Object.create(null);
88
+ const $isSame = (a, b) => {
89
+ if ($isArray(a)) {
90
+ return true;
91
+ }
92
+ return $is(a, b);
93
+ };
94
+ const $forEach = (array, callback) => {
95
+ const len = array.length;
96
+ for (let i = 0; i < len; i++) {
97
+ callback(array[i], i, array);
98
+ }
99
+ };
100
+ const $forEachAsync = async (array, callback) => {
101
+ const len = array.length;
102
+ for (let i = 0; i < len; i++) {
103
+ await callback(array[i], i, array);
104
+ }
152
105
  };
153
106
 
154
- /**
155
- * Normalize path by joining parts and ensuring leading slash
156
- */
157
107
  const normalizePath = (...paths) => {
158
- const p = paths
159
- .map((p) => p.split('/'))
160
- .flat()
161
- .filter(Boolean);
162
- return '/' + p.join('/');
108
+ const p = paths.map((p2) => p2.split("/")).flat().filter(Boolean);
109
+ return "/" + p.join("/");
163
110
  };
164
- /**
165
- * Parse query string into object
166
- */
167
111
  const parseQuery = (queryString) => {
168
- const query = {};
169
- if (!queryString || queryString === '?') {
170
- return query;
171
- }
172
- const params = queryString.replace(/^\?/, '').split('&');
173
- for (const param of params) {
174
- const [key, value] = param.split('=');
175
- if (key) {
176
- query[decodeURIComponent(key)] = value ? decodeURIComponent(value) : '';
177
- }
178
- }
112
+ const query = {};
113
+ if (!queryString || queryString === "?") {
179
114
  return query;
115
+ }
116
+ const params = queryString.replace(/^\?/, "").split("&");
117
+ for (const param of params) {
118
+ const [key, value] = param.split("=");
119
+ if (key) {
120
+ query[decodeURIComponent(key)] = value ? decodeURIComponent(value) : "";
121
+ }
122
+ }
123
+ return query;
180
124
  };
181
- /**
182
- * Build query string from object
183
- */
184
125
  const buildQuery = (query) => {
185
- const keys = Object.keys(query);
186
- if (keys.length === 0)
187
- return '';
188
- const params = keys.map((key) => `${encodeURIComponent(key)}=${encodeURIComponent(query[key])}`).join('&');
189
- return `?${params}`;
126
+ const keys = Object.keys(query);
127
+ if (keys.length === 0) return "";
128
+ const params = keys.map((key) => `${encodeURIComponent(key)}=${encodeURIComponent(query[key])}`).join("&");
129
+ return `?${params}`;
190
130
  };
191
- /**
192
- * Substitute params into path pattern
193
- * @example '/user/:id' + {id: '123'} => '/user/123'
194
- */
195
131
  const emplaceParams = (path, params) => {
196
- let result = path;
197
- for (const key in params) {
198
- result = result.replace(`:${key}`, params[key]);
199
- }
200
- return result;
132
+ let result = path;
133
+ for (const key in params) {
134
+ result = result.replace(`:${key}`, params[key]);
135
+ }
136
+ return result;
201
137
  };
202
- /**
203
- * Extract dynamic params from path using pattern
204
- * @example pattern: '/user/:id', path: '/user/123' => {id: '123'}
205
- */
206
138
  const extractParams = (pattern, path) => {
207
- const params = {};
208
- const patternParts = pattern.split('/');
209
- const pathParts = path.split('/');
210
- if (patternParts.length !== pathParts.length) {
211
- return null;
212
- }
213
- for (let i = 0; i < patternParts.length; i++) {
214
- const patternPart = patternParts[i];
215
- const pathPart = pathParts[i];
216
- if (patternPart.startsWith(':')) {
217
- const paramName = patternPart.slice(1);
218
- params[paramName] = pathPart;
219
- }
220
- else if (patternPart !== pathPart) {
221
- return null;
222
- }
139
+ const params = {};
140
+ const patternParts = pattern.split("/");
141
+ const pathParts = path.split("/");
142
+ if (patternParts.length !== pathParts.length) {
143
+ return null;
144
+ }
145
+ for (let i = 0; i < patternParts.length; i++) {
146
+ const patternPart = patternParts[i];
147
+ const pathPart = pathParts[i];
148
+ if (patternPart.startsWith(":")) {
149
+ const paramName = patternPart.slice(1);
150
+ params[paramName] = pathPart;
151
+ } else if (patternPart !== pathPart) {
152
+ return null;
223
153
  }
224
- return params;
154
+ }
155
+ return params;
225
156
  };
226
157
 
227
- // incase that symbol is not supported
228
- Object.defineProperty(window, '__ktjs__', { value: '0.23.10' });
158
+ Object.defineProperty(window, "__ktjs__", { value: "0.23.12" });
229
159
 
230
- export { $ArrayFrom, $append, $appendChild, $applyModel, $assign, $buttonDisabledGetter, $buttonDisabledSetter, $define, $defines, $emptyArray, $emptyFn, $emptyObject, $entries, $forEach, $forEachAsync, $hasOwn, $is, $isArray, $isNode, $isSame, $isThenable, $keys, $parseStyle, $random, $replaceNode, $toString, DIRV_TYPE, MATHML_ATTR_FLAG, SVG_ATTR_FLAG, buildQuery, emplaceParams, extractParams, normalizePath, parseQuery };
160
+ export { $ArrayFrom, $append, $appendChild, $applyModel, $assign, $buttonDisabledGetter, $buttonDisabledSetter, $define, $defines, $emptyArray, $emptyFn, $emptyObject, $entries, $forEach, $forEachAsync, $hasOwn, $is, $isArray, $isNode, $isSame, $isThenable, $keys, $parseStyle, $random, $replaceNode, $toString, buildQuery, emplaceParams, extractParams, normalizePath, parseQuery };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ktjs/shared",
3
- "version": "0.23.10",
3
+ "version": "0.23.12",
4
4
  "description": "Shared utilities and cached native methods for kt.js framework",
5
5
  "type": "module",
6
6
  "module": "./dist/index.mjs",
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 kasukabe tsumugi
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 all
13
- 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 THE
21
- SOFTWARE.
@@ -1,270 +0,0 @@
1
- var __ktjs_shared__ = (function (exports) {
2
- 'use strict';
3
-
4
- // Cached native methods for performance optimization
5
- const $isArray = Array.isArray;
6
- const $ArrayFrom = Array.from;
7
- const $is = Object.is;
8
- const $assign = Object.assign;
9
- const $hasOwn = Object.prototype.hasOwnProperty;
10
- const $toString = Object.prototype.toString;
11
- const $keys = Object.keys;
12
- const $defines = Object.defineProperties;
13
- const $define = Object.defineProperty;
14
- const $entries = Object.entries;
15
- const $random = Math.random;
16
- const $isThenable = (o) => typeof o?.then === 'function';
17
-
18
- if (typeof Symbol === 'undefined') {
19
- window.Symbol = function Symbol(description) {
20
- return `@@SYMBOL_${description || ''}_${$random().toString(36).slice(2)}`;
21
- };
22
- }
23
-
24
- // String manipulation utilities
25
- /**
26
- * Default empty function
27
- */
28
- const $emptyFn = (() => true);
29
- const $emptyArray = [];
30
- const $emptyObject = Object.create(null);
31
- const $isSame = (a, b) => {
32
- if ($isArray(a)) {
33
- return true; // always trigger an array
34
- }
35
- return $is(a, b);
36
- };
37
- /**
38
- * Safe and quick forEach implementation that works with array-like objects and handles sparse arrays.
39
- */
40
- const $forEach = (array, callback) => {
41
- const len = array.length;
42
- for (let i = 0; i < len; i++) {
43
- callback(array[i], i, array);
44
- }
45
- };
46
- /**
47
- * Async version of $forEach that allows for asynchronous callbacks. It processes items sequentially, awaiting each callback before moving to the next.
48
- */
49
- const $forEachAsync = async (array, callback) => {
50
- const len = array.length;
51
- for (let i = 0; i < len; i++) {
52
- await callback(array[i], i, array);
53
- }
54
- };
55
-
56
- const $emptyChildrenRef = { value: $emptyArray };
57
- // each instance shares the same empty array, but it will be replaced when used
58
- Comment.prototype.kisFragmentAnchor = false;
59
- Comment.prototype.kFragmentList = $emptyArray;
60
- Comment.prototype.kredraw = $emptyFn;
61
- Comment.prototype.kchildrenRef = $emptyChildrenRef;
62
-
63
- // Shared constants
64
- // Empty for now - can be extended with framework-wide constants
65
- /**
66
- * Mark the attribute as SVG to handle special cases during rendering.
67
- */
68
- const SVG_ATTR_FLAG = '__kt_svg__';
69
- /**
70
- * Mark the attribute as MathML to handle special cases during rendering.
71
- */
72
- const MATHML_ATTR_FLAG = '__kt_mathml__';
73
- /**
74
- * Can be if, else, else-if.
75
- */
76
- const DIRV_TYPE = Symbol('kt-directive-type');
77
-
78
- // DOM manipulation utilities
79
- // # dom natives
80
- const $isNode = (x) => x?.nodeType > 0;
81
- /**
82
- * Safe replace `oldNode` With `newNode`
83
- */
84
- const $replaceNode = (oldNode, newNode) => {
85
- if ($isNode(oldNode) && $isNode(newNode)) {
86
- if (newNode.contains(oldNode)) {
87
- newNode.remove();
88
- }
89
- oldNode.replaceWith(newNode);
90
- }
91
- };
92
- /**
93
- * & Remove `bind` because it is shockingly slower than wrapper
94
- * & `window.document` is safe because it is not configurable and its setter is undefined
95
- */
96
- const $appendChild = HTMLElement.prototype.appendChild;
97
- const originAppend = HTMLElement.prototype.append;
98
- const $append = // for ie 9/10/11
99
- typeof originAppend === 'function'
100
- ? originAppend
101
- : function (...nodes) {
102
- if (nodes.length < 50) {
103
- for (let i = 0; i < nodes.length; i++) {
104
- const node = nodes[i];
105
- if (typeof node === 'string') {
106
- $appendChild.call(this, document.createTextNode(node));
107
- }
108
- else {
109
- $appendChild.call(this, node);
110
- }
111
- }
112
- }
113
- else {
114
- const fragment = document.createDocumentFragment();
115
- for (let i = 0; i < nodes.length; i++) {
116
- const node = nodes[i];
117
- if (typeof node === 'string') {
118
- $appendChild.call(fragment, document.createTextNode(node));
119
- }
120
- else {
121
- $appendChild.call(fragment, node);
122
- }
123
- }
124
- $appendChild.call(this, fragment);
125
- }
126
- };
127
- const { get: $buttonDisabledGetter, set: $buttonDisabledSetter } = Object.getOwnPropertyDescriptor(HTMLButtonElement.prototype, 'disabled');
128
- const $parseStyle = (style) => {
129
- if (!style) {
130
- return '';
131
- }
132
- if (typeof style === 'string') {
133
- return style;
134
- }
135
- if (style && typeof style === 'object') {
136
- if (style.isKT) {
137
- return $parseStyle(style.value);
138
- }
139
- return $entries(style)
140
- .map((entry) => {
141
- const cssKey = entry[0].replace(/[A-Z]/g, (m) => `-${m.toLowerCase()}`);
142
- return `${cssKey}:${entry[1]}`;
143
- })
144
- .join(';');
145
- }
146
- return '';
147
- };
148
- /**
149
- * Used for `k-model`
150
- */
151
- const $applyModel = (element, valueRef, propName, eventName) => {
152
- element[propName] = valueRef.value; // initialize
153
- valueRef.addOnChange((newValue) => (element[propName] = newValue));
154
- element.addEventListener(eventName, () => (valueRef.value = element[propName]));
155
- };
156
-
157
- /**
158
- * Normalize path by joining parts and ensuring leading slash
159
- */
160
- const normalizePath = (...paths) => {
161
- const p = paths
162
- .map((p) => p.split('/'))
163
- .flat()
164
- .filter(Boolean);
165
- return '/' + p.join('/');
166
- };
167
- /**
168
- * Parse query string into object
169
- */
170
- const parseQuery = (queryString) => {
171
- const query = {};
172
- if (!queryString || queryString === '?') {
173
- return query;
174
- }
175
- const params = queryString.replace(/^\?/, '').split('&');
176
- for (const param of params) {
177
- const [key, value] = param.split('=');
178
- if (key) {
179
- query[decodeURIComponent(key)] = value ? decodeURIComponent(value) : '';
180
- }
181
- }
182
- return query;
183
- };
184
- /**
185
- * Build query string from object
186
- */
187
- const buildQuery = (query) => {
188
- const keys = Object.keys(query);
189
- if (keys.length === 0)
190
- return '';
191
- const params = keys.map((key) => `${encodeURIComponent(key)}=${encodeURIComponent(query[key])}`).join('&');
192
- return `?${params}`;
193
- };
194
- /**
195
- * Substitute params into path pattern
196
- * @example '/user/:id' + {id: '123'} => '/user/123'
197
- */
198
- const emplaceParams = (path, params) => {
199
- let result = path;
200
- for (const key in params) {
201
- result = result.replace(`:${key}`, params[key]);
202
- }
203
- return result;
204
- };
205
- /**
206
- * Extract dynamic params from path using pattern
207
- * @example pattern: '/user/:id', path: '/user/123' => {id: '123'}
208
- */
209
- const extractParams = (pattern, path) => {
210
- const params = {};
211
- const patternParts = pattern.split('/');
212
- const pathParts = path.split('/');
213
- if (patternParts.length !== pathParts.length) {
214
- return null;
215
- }
216
- for (let i = 0; i < patternParts.length; i++) {
217
- const patternPart = patternParts[i];
218
- const pathPart = pathParts[i];
219
- if (patternPart.startsWith(':')) {
220
- const paramName = patternPart.slice(1);
221
- params[paramName] = pathPart;
222
- }
223
- else if (patternPart !== pathPart) {
224
- return null;
225
- }
226
- }
227
- return params;
228
- };
229
-
230
- // incase that symbol is not supported
231
- Object.defineProperty(window, '__ktjs__', { value: '0.23.10' });
232
-
233
- exports.$ArrayFrom = $ArrayFrom;
234
- exports.$append = $append;
235
- exports.$appendChild = $appendChild;
236
- exports.$applyModel = $applyModel;
237
- exports.$assign = $assign;
238
- exports.$buttonDisabledGetter = $buttonDisabledGetter;
239
- exports.$buttonDisabledSetter = $buttonDisabledSetter;
240
- exports.$define = $define;
241
- exports.$defines = $defines;
242
- exports.$emptyArray = $emptyArray;
243
- exports.$emptyFn = $emptyFn;
244
- exports.$emptyObject = $emptyObject;
245
- exports.$entries = $entries;
246
- exports.$forEach = $forEach;
247
- exports.$forEachAsync = $forEachAsync;
248
- exports.$hasOwn = $hasOwn;
249
- exports.$is = $is;
250
- exports.$isArray = $isArray;
251
- exports.$isNode = $isNode;
252
- exports.$isSame = $isSame;
253
- exports.$isThenable = $isThenable;
254
- exports.$keys = $keys;
255
- exports.$parseStyle = $parseStyle;
256
- exports.$random = $random;
257
- exports.$replaceNode = $replaceNode;
258
- exports.$toString = $toString;
259
- exports.DIRV_TYPE = DIRV_TYPE;
260
- exports.MATHML_ATTR_FLAG = MATHML_ATTR_FLAG;
261
- exports.SVG_ATTR_FLAG = SVG_ATTR_FLAG;
262
- exports.buildQuery = buildQuery;
263
- exports.emplaceParams = emplaceParams;
264
- exports.extractParams = extractParams;
265
- exports.normalizePath = normalizePath;
266
- exports.parseQuery = parseQuery;
267
-
268
- return exports;
269
-
270
- })({});