pdfn 0.4.1 → 0.4.3

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/cli.js CHANGED
@@ -1,4 +1,1454 @@
1
1
  #!/usr/bin/env node
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __commonJS = (cb, mod) => function __require() {
9
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+
28
+ // ../../../../node_modules/react/cjs/react.production.js
29
+ var require_react_production = __commonJS({
30
+ "../../../../node_modules/react/cjs/react.production.js"(exports) {
31
+ "use strict";
32
+ var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element");
33
+ var REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal");
34
+ var REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment");
35
+ var REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode");
36
+ var REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler");
37
+ var REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer");
38
+ var REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context");
39
+ var REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref");
40
+ var REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense");
41
+ var REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo");
42
+ var REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy");
43
+ var REACT_ACTIVITY_TYPE = /* @__PURE__ */ Symbol.for("react.activity");
44
+ var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
45
+ function getIteratorFn(maybeIterable) {
46
+ if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
47
+ maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
48
+ return "function" === typeof maybeIterable ? maybeIterable : null;
49
+ }
50
+ var ReactNoopUpdateQueue = {
51
+ isMounted: function() {
52
+ return false;
53
+ },
54
+ enqueueForceUpdate: function() {
55
+ },
56
+ enqueueReplaceState: function() {
57
+ },
58
+ enqueueSetState: function() {
59
+ }
60
+ };
61
+ var assign = Object.assign;
62
+ var emptyObject = {};
63
+ function Component(props, context, updater) {
64
+ this.props = props;
65
+ this.context = context;
66
+ this.refs = emptyObject;
67
+ this.updater = updater || ReactNoopUpdateQueue;
68
+ }
69
+ Component.prototype.isReactComponent = {};
70
+ Component.prototype.setState = function(partialState, callback) {
71
+ if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
72
+ throw Error(
73
+ "takes an object of state variables to update or a function which returns an object of state variables."
74
+ );
75
+ this.updater.enqueueSetState(this, partialState, callback, "setState");
76
+ };
77
+ Component.prototype.forceUpdate = function(callback) {
78
+ this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
79
+ };
80
+ function ComponentDummy() {
81
+ }
82
+ ComponentDummy.prototype = Component.prototype;
83
+ function PureComponent(props, context, updater) {
84
+ this.props = props;
85
+ this.context = context;
86
+ this.refs = emptyObject;
87
+ this.updater = updater || ReactNoopUpdateQueue;
88
+ }
89
+ var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
90
+ pureComponentPrototype.constructor = PureComponent;
91
+ assign(pureComponentPrototype, Component.prototype);
92
+ pureComponentPrototype.isPureReactComponent = true;
93
+ var isArrayImpl = Array.isArray;
94
+ function noop() {
95
+ }
96
+ var ReactSharedInternals = { H: null, A: null, T: null, S: null };
97
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
98
+ function ReactElement(type, key, props) {
99
+ var refProp = props.ref;
100
+ return {
101
+ $$typeof: REACT_ELEMENT_TYPE,
102
+ type,
103
+ key,
104
+ ref: void 0 !== refProp ? refProp : null,
105
+ props
106
+ };
107
+ }
108
+ function cloneAndReplaceKey(oldElement, newKey) {
109
+ return ReactElement(oldElement.type, newKey, oldElement.props);
110
+ }
111
+ function isValidElement(object) {
112
+ return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
113
+ }
114
+ function escape(key) {
115
+ var escaperLookup = { "=": "=0", ":": "=2" };
116
+ return "$" + key.replace(/[=:]/g, function(match) {
117
+ return escaperLookup[match];
118
+ });
119
+ }
120
+ var userProvidedKeyEscapeRegex = /\/+/g;
121
+ function getElementKey(element, index) {
122
+ return "object" === typeof element && null !== element && null != element.key ? escape("" + element.key) : index.toString(36);
123
+ }
124
+ function resolveThenable(thenable) {
125
+ switch (thenable.status) {
126
+ case "fulfilled":
127
+ return thenable.value;
128
+ case "rejected":
129
+ throw thenable.reason;
130
+ default:
131
+ switch ("string" === typeof thenable.status ? thenable.then(noop, noop) : (thenable.status = "pending", thenable.then(
132
+ function(fulfilledValue) {
133
+ "pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
134
+ },
135
+ function(error) {
136
+ "pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
137
+ }
138
+ )), thenable.status) {
139
+ case "fulfilled":
140
+ return thenable.value;
141
+ case "rejected":
142
+ throw thenable.reason;
143
+ }
144
+ }
145
+ throw thenable;
146
+ }
147
+ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
148
+ var type = typeof children;
149
+ if ("undefined" === type || "boolean" === type) children = null;
150
+ var invokeCallback = false;
151
+ if (null === children) invokeCallback = true;
152
+ else
153
+ switch (type) {
154
+ case "bigint":
155
+ case "string":
156
+ case "number":
157
+ invokeCallback = true;
158
+ break;
159
+ case "object":
160
+ switch (children.$$typeof) {
161
+ case REACT_ELEMENT_TYPE:
162
+ case REACT_PORTAL_TYPE:
163
+ invokeCallback = true;
164
+ break;
165
+ case REACT_LAZY_TYPE:
166
+ return invokeCallback = children._init, mapIntoArray(
167
+ invokeCallback(children._payload),
168
+ array,
169
+ escapedPrefix,
170
+ nameSoFar,
171
+ callback
172
+ );
173
+ }
174
+ }
175
+ if (invokeCallback)
176
+ return callback = callback(children), invokeCallback = "" === nameSoFar ? "." + getElementKey(children, 0) : nameSoFar, isArrayImpl(callback) ? (escapedPrefix = "", null != invokeCallback && (escapedPrefix = invokeCallback.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c2) {
177
+ return c2;
178
+ })) : null != callback && (isValidElement(callback) && (callback = cloneAndReplaceKey(
179
+ callback,
180
+ escapedPrefix + (null == callback.key || children && children.key === callback.key ? "" : ("" + callback.key).replace(
181
+ userProvidedKeyEscapeRegex,
182
+ "$&/"
183
+ ) + "/") + invokeCallback
184
+ )), array.push(callback)), 1;
185
+ invokeCallback = 0;
186
+ var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
187
+ if (isArrayImpl(children))
188
+ for (var i = 0; i < children.length; i++)
189
+ nameSoFar = children[i], type = nextNamePrefix + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
190
+ nameSoFar,
191
+ array,
192
+ escapedPrefix,
193
+ type,
194
+ callback
195
+ );
196
+ else if (i = getIteratorFn(children), "function" === typeof i)
197
+ for (children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
198
+ nameSoFar = nameSoFar.value, type = nextNamePrefix + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
199
+ nameSoFar,
200
+ array,
201
+ escapedPrefix,
202
+ type,
203
+ callback
204
+ );
205
+ else if ("object" === type) {
206
+ if ("function" === typeof children.then)
207
+ return mapIntoArray(
208
+ resolveThenable(children),
209
+ array,
210
+ escapedPrefix,
211
+ nameSoFar,
212
+ callback
213
+ );
214
+ array = String(children);
215
+ throw Error(
216
+ "Objects are not valid as a React child (found: " + ("[object Object]" === array ? "object with keys {" + Object.keys(children).join(", ") + "}" : array) + "). If you meant to render a collection of children, use an array instead."
217
+ );
218
+ }
219
+ return invokeCallback;
220
+ }
221
+ function mapChildren(children, func, context) {
222
+ if (null == children) return children;
223
+ var result = [], count = 0;
224
+ mapIntoArray(children, result, "", "", function(child) {
225
+ return func.call(context, child, count++);
226
+ });
227
+ return result;
228
+ }
229
+ function lazyInitializer(payload) {
230
+ if (-1 === payload._status) {
231
+ var ctor = payload._result;
232
+ ctor = ctor();
233
+ ctor.then(
234
+ function(moduleObject) {
235
+ if (0 === payload._status || -1 === payload._status)
236
+ payload._status = 1, payload._result = moduleObject;
237
+ },
238
+ function(error) {
239
+ if (0 === payload._status || -1 === payload._status)
240
+ payload._status = 2, payload._result = error;
241
+ }
242
+ );
243
+ -1 === payload._status && (payload._status = 0, payload._result = ctor);
244
+ }
245
+ if (1 === payload._status) return payload._result.default;
246
+ throw payload._result;
247
+ }
248
+ var reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
249
+ if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
250
+ var event = new window.ErrorEvent("error", {
251
+ bubbles: true,
252
+ cancelable: true,
253
+ message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
254
+ error
255
+ });
256
+ if (!window.dispatchEvent(event)) return;
257
+ } else if ("object" === typeof process && "function" === typeof process.emit) {
258
+ process.emit("uncaughtException", error);
259
+ return;
260
+ }
261
+ console.error(error);
262
+ };
263
+ var Children = {
264
+ map: mapChildren,
265
+ forEach: function(children, forEachFunc, forEachContext) {
266
+ mapChildren(
267
+ children,
268
+ function() {
269
+ forEachFunc.apply(this, arguments);
270
+ },
271
+ forEachContext
272
+ );
273
+ },
274
+ count: function(children) {
275
+ var n = 0;
276
+ mapChildren(children, function() {
277
+ n++;
278
+ });
279
+ return n;
280
+ },
281
+ toArray: function(children) {
282
+ return mapChildren(children, function(child) {
283
+ return child;
284
+ }) || [];
285
+ },
286
+ only: function(children) {
287
+ if (!isValidElement(children))
288
+ throw Error(
289
+ "React.Children.only expected to receive a single React element child."
290
+ );
291
+ return children;
292
+ }
293
+ };
294
+ exports.Activity = REACT_ACTIVITY_TYPE;
295
+ exports.Children = Children;
296
+ exports.Component = Component;
297
+ exports.Fragment = REACT_FRAGMENT_TYPE;
298
+ exports.Profiler = REACT_PROFILER_TYPE;
299
+ exports.PureComponent = PureComponent;
300
+ exports.StrictMode = REACT_STRICT_MODE_TYPE;
301
+ exports.Suspense = REACT_SUSPENSE_TYPE;
302
+ exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
303
+ exports.__COMPILER_RUNTIME = {
304
+ __proto__: null,
305
+ c: function(size) {
306
+ return ReactSharedInternals.H.useMemoCache(size);
307
+ }
308
+ };
309
+ exports.cache = function(fn) {
310
+ return function() {
311
+ return fn.apply(null, arguments);
312
+ };
313
+ };
314
+ exports.cacheSignal = function() {
315
+ return null;
316
+ };
317
+ exports.cloneElement = function(element, config2, children) {
318
+ if (null === element || void 0 === element)
319
+ throw Error(
320
+ "The argument must be a React element, but you passed " + element + "."
321
+ );
322
+ var props = assign({}, element.props), key = element.key;
323
+ if (null != config2)
324
+ for (propName in void 0 !== config2.key && (key = "" + config2.key), config2)
325
+ !hasOwnProperty.call(config2, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config2.ref || (props[propName] = config2[propName]);
326
+ var propName = arguments.length - 2;
327
+ if (1 === propName) props.children = children;
328
+ else if (1 < propName) {
329
+ for (var childArray = Array(propName), i = 0; i < propName; i++)
330
+ childArray[i] = arguments[i + 2];
331
+ props.children = childArray;
332
+ }
333
+ return ReactElement(element.type, key, props);
334
+ };
335
+ exports.createContext = function(defaultValue) {
336
+ defaultValue = {
337
+ $$typeof: REACT_CONTEXT_TYPE,
338
+ _currentValue: defaultValue,
339
+ _currentValue2: defaultValue,
340
+ _threadCount: 0,
341
+ Provider: null,
342
+ Consumer: null
343
+ };
344
+ defaultValue.Provider = defaultValue;
345
+ defaultValue.Consumer = {
346
+ $$typeof: REACT_CONSUMER_TYPE,
347
+ _context: defaultValue
348
+ };
349
+ return defaultValue;
350
+ };
351
+ exports.createElement = function(type, config2, children) {
352
+ var propName, props = {}, key = null;
353
+ if (null != config2)
354
+ for (propName in void 0 !== config2.key && (key = "" + config2.key), config2)
355
+ hasOwnProperty.call(config2, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (props[propName] = config2[propName]);
356
+ var childrenLength = arguments.length - 2;
357
+ if (1 === childrenLength) props.children = children;
358
+ else if (1 < childrenLength) {
359
+ for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)
360
+ childArray[i] = arguments[i + 2];
361
+ props.children = childArray;
362
+ }
363
+ if (type && type.defaultProps)
364
+ for (propName in childrenLength = type.defaultProps, childrenLength)
365
+ void 0 === props[propName] && (props[propName] = childrenLength[propName]);
366
+ return ReactElement(type, key, props);
367
+ };
368
+ exports.createRef = function() {
369
+ return { current: null };
370
+ };
371
+ exports.forwardRef = function(render) {
372
+ return { $$typeof: REACT_FORWARD_REF_TYPE, render };
373
+ };
374
+ exports.isValidElement = isValidElement;
375
+ exports.lazy = function(ctor) {
376
+ return {
377
+ $$typeof: REACT_LAZY_TYPE,
378
+ _payload: { _status: -1, _result: ctor },
379
+ _init: lazyInitializer
380
+ };
381
+ };
382
+ exports.memo = function(type, compare) {
383
+ return {
384
+ $$typeof: REACT_MEMO_TYPE,
385
+ type,
386
+ compare: void 0 === compare ? null : compare
387
+ };
388
+ };
389
+ exports.startTransition = function(scope) {
390
+ var prevTransition = ReactSharedInternals.T, currentTransition = {};
391
+ ReactSharedInternals.T = currentTransition;
392
+ try {
393
+ var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
394
+ null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
395
+ "object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
396
+ } catch (error) {
397
+ reportGlobalError(error);
398
+ } finally {
399
+ null !== prevTransition && null !== currentTransition.types && (prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
400
+ }
401
+ };
402
+ exports.unstable_useCacheRefresh = function() {
403
+ return ReactSharedInternals.H.useCacheRefresh();
404
+ };
405
+ exports.use = function(usable) {
406
+ return ReactSharedInternals.H.use(usable);
407
+ };
408
+ exports.useActionState = function(action, initialState, permalink) {
409
+ return ReactSharedInternals.H.useActionState(action, initialState, permalink);
410
+ };
411
+ exports.useCallback = function(callback, deps) {
412
+ return ReactSharedInternals.H.useCallback(callback, deps);
413
+ };
414
+ exports.useContext = function(Context) {
415
+ return ReactSharedInternals.H.useContext(Context);
416
+ };
417
+ exports.useDebugValue = function() {
418
+ };
419
+ exports.useDeferredValue = function(value, initialValue) {
420
+ return ReactSharedInternals.H.useDeferredValue(value, initialValue);
421
+ };
422
+ exports.useEffect = function(create, deps) {
423
+ return ReactSharedInternals.H.useEffect(create, deps);
424
+ };
425
+ exports.useEffectEvent = function(callback) {
426
+ return ReactSharedInternals.H.useEffectEvent(callback);
427
+ };
428
+ exports.useId = function() {
429
+ return ReactSharedInternals.H.useId();
430
+ };
431
+ exports.useImperativeHandle = function(ref, create, deps) {
432
+ return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);
433
+ };
434
+ exports.useInsertionEffect = function(create, deps) {
435
+ return ReactSharedInternals.H.useInsertionEffect(create, deps);
436
+ };
437
+ exports.useLayoutEffect = function(create, deps) {
438
+ return ReactSharedInternals.H.useLayoutEffect(create, deps);
439
+ };
440
+ exports.useMemo = function(create, deps) {
441
+ return ReactSharedInternals.H.useMemo(create, deps);
442
+ };
443
+ exports.useOptimistic = function(passthrough, reducer) {
444
+ return ReactSharedInternals.H.useOptimistic(passthrough, reducer);
445
+ };
446
+ exports.useReducer = function(reducer, initialArg, init) {
447
+ return ReactSharedInternals.H.useReducer(reducer, initialArg, init);
448
+ };
449
+ exports.useRef = function(initialValue) {
450
+ return ReactSharedInternals.H.useRef(initialValue);
451
+ };
452
+ exports.useState = function(initialState) {
453
+ return ReactSharedInternals.H.useState(initialState);
454
+ };
455
+ exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
456
+ return ReactSharedInternals.H.useSyncExternalStore(
457
+ subscribe,
458
+ getSnapshot,
459
+ getServerSnapshot
460
+ );
461
+ };
462
+ exports.useTransition = function() {
463
+ return ReactSharedInternals.H.useTransition();
464
+ };
465
+ exports.version = "19.2.3";
466
+ }
467
+ });
468
+
469
+ // ../../../../node_modules/react/cjs/react.development.js
470
+ var require_react_development = __commonJS({
471
+ "../../../../node_modules/react/cjs/react.development.js"(exports, module) {
472
+ "use strict";
473
+ "production" !== process.env.NODE_ENV && (function() {
474
+ function defineDeprecationWarning(methodName, info) {
475
+ Object.defineProperty(Component.prototype, methodName, {
476
+ get: function() {
477
+ console.warn(
478
+ "%s(...) is deprecated in plain JavaScript React classes. %s",
479
+ info[0],
480
+ info[1]
481
+ );
482
+ }
483
+ });
484
+ }
485
+ function getIteratorFn(maybeIterable) {
486
+ if (null === maybeIterable || "object" !== typeof maybeIterable)
487
+ return null;
488
+ maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
489
+ return "function" === typeof maybeIterable ? maybeIterable : null;
490
+ }
491
+ function warnNoop(publicInstance, callerName) {
492
+ publicInstance = (publicInstance = publicInstance.constructor) && (publicInstance.displayName || publicInstance.name) || "ReactClass";
493
+ var warningKey = publicInstance + "." + callerName;
494
+ didWarnStateUpdateForUnmountedComponent[warningKey] || (console.error(
495
+ "Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",
496
+ callerName,
497
+ publicInstance
498
+ ), didWarnStateUpdateForUnmountedComponent[warningKey] = true);
499
+ }
500
+ function Component(props, context, updater) {
501
+ this.props = props;
502
+ this.context = context;
503
+ this.refs = emptyObject;
504
+ this.updater = updater || ReactNoopUpdateQueue;
505
+ }
506
+ function ComponentDummy() {
507
+ }
508
+ function PureComponent(props, context, updater) {
509
+ this.props = props;
510
+ this.context = context;
511
+ this.refs = emptyObject;
512
+ this.updater = updater || ReactNoopUpdateQueue;
513
+ }
514
+ function noop() {
515
+ }
516
+ function testStringCoercion(value) {
517
+ return "" + value;
518
+ }
519
+ function checkKeyStringCoercion(value) {
520
+ try {
521
+ testStringCoercion(value);
522
+ var JSCompiler_inline_result = false;
523
+ } catch (e) {
524
+ JSCompiler_inline_result = true;
525
+ }
526
+ if (JSCompiler_inline_result) {
527
+ JSCompiler_inline_result = console;
528
+ var JSCompiler_temp_const = JSCompiler_inline_result.error;
529
+ var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
530
+ JSCompiler_temp_const.call(
531
+ JSCompiler_inline_result,
532
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
533
+ JSCompiler_inline_result$jscomp$0
534
+ );
535
+ return testStringCoercion(value);
536
+ }
537
+ }
538
+ function getComponentNameFromType(type) {
539
+ if (null == type) return null;
540
+ if ("function" === typeof type)
541
+ return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
542
+ if ("string" === typeof type) return type;
543
+ switch (type) {
544
+ case REACT_FRAGMENT_TYPE:
545
+ return "Fragment";
546
+ case REACT_PROFILER_TYPE:
547
+ return "Profiler";
548
+ case REACT_STRICT_MODE_TYPE:
549
+ return "StrictMode";
550
+ case REACT_SUSPENSE_TYPE:
551
+ return "Suspense";
552
+ case REACT_SUSPENSE_LIST_TYPE:
553
+ return "SuspenseList";
554
+ case REACT_ACTIVITY_TYPE:
555
+ return "Activity";
556
+ }
557
+ if ("object" === typeof type)
558
+ switch ("number" === typeof type.tag && console.error(
559
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
560
+ ), type.$$typeof) {
561
+ case REACT_PORTAL_TYPE:
562
+ return "Portal";
563
+ case REACT_CONTEXT_TYPE:
564
+ return type.displayName || "Context";
565
+ case REACT_CONSUMER_TYPE:
566
+ return (type._context.displayName || "Context") + ".Consumer";
567
+ case REACT_FORWARD_REF_TYPE:
568
+ var innerType = type.render;
569
+ type = type.displayName;
570
+ type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
571
+ return type;
572
+ case REACT_MEMO_TYPE:
573
+ return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
574
+ case REACT_LAZY_TYPE:
575
+ innerType = type._payload;
576
+ type = type._init;
577
+ try {
578
+ return getComponentNameFromType(type(innerType));
579
+ } catch (x) {
580
+ }
581
+ }
582
+ return null;
583
+ }
584
+ function getTaskName(type) {
585
+ if (type === REACT_FRAGMENT_TYPE) return "<>";
586
+ if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
587
+ return "<...>";
588
+ try {
589
+ var name = getComponentNameFromType(type);
590
+ return name ? "<" + name + ">" : "<...>";
591
+ } catch (x) {
592
+ return "<...>";
593
+ }
594
+ }
595
+ function getOwner() {
596
+ var dispatcher = ReactSharedInternals.A;
597
+ return null === dispatcher ? null : dispatcher.getOwner();
598
+ }
599
+ function UnknownOwner() {
600
+ return Error("react-stack-top-frame");
601
+ }
602
+ function hasValidKey(config2) {
603
+ if (hasOwnProperty.call(config2, "key")) {
604
+ var getter = Object.getOwnPropertyDescriptor(config2, "key").get;
605
+ if (getter && getter.isReactWarning) return false;
606
+ }
607
+ return void 0 !== config2.key;
608
+ }
609
+ function defineKeyPropWarningGetter(props, displayName) {
610
+ function warnAboutAccessingKey() {
611
+ specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
612
+ "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
613
+ displayName
614
+ ));
615
+ }
616
+ warnAboutAccessingKey.isReactWarning = true;
617
+ Object.defineProperty(props, "key", {
618
+ get: warnAboutAccessingKey,
619
+ configurable: true
620
+ });
621
+ }
622
+ function elementRefGetterWithDeprecationWarning() {
623
+ var componentName = getComponentNameFromType(this.type);
624
+ didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
625
+ "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
626
+ ));
627
+ componentName = this.props.ref;
628
+ return void 0 !== componentName ? componentName : null;
629
+ }
630
+ function ReactElement(type, key, props, owner, debugStack, debugTask) {
631
+ var refProp = props.ref;
632
+ type = {
633
+ $$typeof: REACT_ELEMENT_TYPE,
634
+ type,
635
+ key,
636
+ props,
637
+ _owner: owner
638
+ };
639
+ null !== (void 0 !== refProp ? refProp : null) ? Object.defineProperty(type, "ref", {
640
+ enumerable: false,
641
+ get: elementRefGetterWithDeprecationWarning
642
+ }) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
643
+ type._store = {};
644
+ Object.defineProperty(type._store, "validated", {
645
+ configurable: false,
646
+ enumerable: false,
647
+ writable: true,
648
+ value: 0
649
+ });
650
+ Object.defineProperty(type, "_debugInfo", {
651
+ configurable: false,
652
+ enumerable: false,
653
+ writable: true,
654
+ value: null
655
+ });
656
+ Object.defineProperty(type, "_debugStack", {
657
+ configurable: false,
658
+ enumerable: false,
659
+ writable: true,
660
+ value: debugStack
661
+ });
662
+ Object.defineProperty(type, "_debugTask", {
663
+ configurable: false,
664
+ enumerable: false,
665
+ writable: true,
666
+ value: debugTask
667
+ });
668
+ Object.freeze && (Object.freeze(type.props), Object.freeze(type));
669
+ return type;
670
+ }
671
+ function cloneAndReplaceKey(oldElement, newKey) {
672
+ newKey = ReactElement(
673
+ oldElement.type,
674
+ newKey,
675
+ oldElement.props,
676
+ oldElement._owner,
677
+ oldElement._debugStack,
678
+ oldElement._debugTask
679
+ );
680
+ oldElement._store && (newKey._store.validated = oldElement._store.validated);
681
+ return newKey;
682
+ }
683
+ function validateChildKeys(node) {
684
+ isValidElement(node) ? node._store && (node._store.validated = 1) : "object" === typeof node && null !== node && node.$$typeof === REACT_LAZY_TYPE && ("fulfilled" === node._payload.status ? isValidElement(node._payload.value) && node._payload.value._store && (node._payload.value._store.validated = 1) : node._store && (node._store.validated = 1));
685
+ }
686
+ function isValidElement(object) {
687
+ return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
688
+ }
689
+ function escape(key) {
690
+ var escaperLookup = { "=": "=0", ":": "=2" };
691
+ return "$" + key.replace(/[=:]/g, function(match) {
692
+ return escaperLookup[match];
693
+ });
694
+ }
695
+ function getElementKey(element, index) {
696
+ return "object" === typeof element && null !== element && null != element.key ? (checkKeyStringCoercion(element.key), escape("" + element.key)) : index.toString(36);
697
+ }
698
+ function resolveThenable(thenable) {
699
+ switch (thenable.status) {
700
+ case "fulfilled":
701
+ return thenable.value;
702
+ case "rejected":
703
+ throw thenable.reason;
704
+ default:
705
+ switch ("string" === typeof thenable.status ? thenable.then(noop, noop) : (thenable.status = "pending", thenable.then(
706
+ function(fulfilledValue) {
707
+ "pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
708
+ },
709
+ function(error) {
710
+ "pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
711
+ }
712
+ )), thenable.status) {
713
+ case "fulfilled":
714
+ return thenable.value;
715
+ case "rejected":
716
+ throw thenable.reason;
717
+ }
718
+ }
719
+ throw thenable;
720
+ }
721
+ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
722
+ var type = typeof children;
723
+ if ("undefined" === type || "boolean" === type) children = null;
724
+ var invokeCallback = false;
725
+ if (null === children) invokeCallback = true;
726
+ else
727
+ switch (type) {
728
+ case "bigint":
729
+ case "string":
730
+ case "number":
731
+ invokeCallback = true;
732
+ break;
733
+ case "object":
734
+ switch (children.$$typeof) {
735
+ case REACT_ELEMENT_TYPE:
736
+ case REACT_PORTAL_TYPE:
737
+ invokeCallback = true;
738
+ break;
739
+ case REACT_LAZY_TYPE:
740
+ return invokeCallback = children._init, mapIntoArray(
741
+ invokeCallback(children._payload),
742
+ array,
743
+ escapedPrefix,
744
+ nameSoFar,
745
+ callback
746
+ );
747
+ }
748
+ }
749
+ if (invokeCallback) {
750
+ invokeCallback = children;
751
+ callback = callback(invokeCallback);
752
+ var childKey = "" === nameSoFar ? "." + getElementKey(invokeCallback, 0) : nameSoFar;
753
+ isArrayImpl(callback) ? (escapedPrefix = "", null != childKey && (escapedPrefix = childKey.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c2) {
754
+ return c2;
755
+ })) : null != callback && (isValidElement(callback) && (null != callback.key && (invokeCallback && invokeCallback.key === callback.key || checkKeyStringCoercion(callback.key)), escapedPrefix = cloneAndReplaceKey(
756
+ callback,
757
+ escapedPrefix + (null == callback.key || invokeCallback && invokeCallback.key === callback.key ? "" : ("" + callback.key).replace(
758
+ userProvidedKeyEscapeRegex,
759
+ "$&/"
760
+ ) + "/") + childKey
761
+ ), "" !== nameSoFar && null != invokeCallback && isValidElement(invokeCallback) && null == invokeCallback.key && invokeCallback._store && !invokeCallback._store.validated && (escapedPrefix._store.validated = 2), callback = escapedPrefix), array.push(callback));
762
+ return 1;
763
+ }
764
+ invokeCallback = 0;
765
+ childKey = "" === nameSoFar ? "." : nameSoFar + ":";
766
+ if (isArrayImpl(children))
767
+ for (var i = 0; i < children.length; i++)
768
+ nameSoFar = children[i], type = childKey + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
769
+ nameSoFar,
770
+ array,
771
+ escapedPrefix,
772
+ type,
773
+ callback
774
+ );
775
+ else if (i = getIteratorFn(children), "function" === typeof i)
776
+ for (i === children.entries && (didWarnAboutMaps || console.warn(
777
+ "Using Maps as children is not supported. Use an array of keyed ReactElements instead."
778
+ ), didWarnAboutMaps = true), children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
779
+ nameSoFar = nameSoFar.value, type = childKey + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
780
+ nameSoFar,
781
+ array,
782
+ escapedPrefix,
783
+ type,
784
+ callback
785
+ );
786
+ else if ("object" === type) {
787
+ if ("function" === typeof children.then)
788
+ return mapIntoArray(
789
+ resolveThenable(children),
790
+ array,
791
+ escapedPrefix,
792
+ nameSoFar,
793
+ callback
794
+ );
795
+ array = String(children);
796
+ throw Error(
797
+ "Objects are not valid as a React child (found: " + ("[object Object]" === array ? "object with keys {" + Object.keys(children).join(", ") + "}" : array) + "). If you meant to render a collection of children, use an array instead."
798
+ );
799
+ }
800
+ return invokeCallback;
801
+ }
802
+ function mapChildren(children, func, context) {
803
+ if (null == children) return children;
804
+ var result = [], count = 0;
805
+ mapIntoArray(children, result, "", "", function(child) {
806
+ return func.call(context, child, count++);
807
+ });
808
+ return result;
809
+ }
810
+ function lazyInitializer(payload) {
811
+ if (-1 === payload._status) {
812
+ var ioInfo = payload._ioInfo;
813
+ null != ioInfo && (ioInfo.start = ioInfo.end = performance.now());
814
+ ioInfo = payload._result;
815
+ var thenable = ioInfo();
816
+ thenable.then(
817
+ function(moduleObject) {
818
+ if (0 === payload._status || -1 === payload._status) {
819
+ payload._status = 1;
820
+ payload._result = moduleObject;
821
+ var _ioInfo = payload._ioInfo;
822
+ null != _ioInfo && (_ioInfo.end = performance.now());
823
+ void 0 === thenable.status && (thenable.status = "fulfilled", thenable.value = moduleObject);
824
+ }
825
+ },
826
+ function(error) {
827
+ if (0 === payload._status || -1 === payload._status) {
828
+ payload._status = 2;
829
+ payload._result = error;
830
+ var _ioInfo2 = payload._ioInfo;
831
+ null != _ioInfo2 && (_ioInfo2.end = performance.now());
832
+ void 0 === thenable.status && (thenable.status = "rejected", thenable.reason = error);
833
+ }
834
+ }
835
+ );
836
+ ioInfo = payload._ioInfo;
837
+ if (null != ioInfo) {
838
+ ioInfo.value = thenable;
839
+ var displayName = thenable.displayName;
840
+ "string" === typeof displayName && (ioInfo.name = displayName);
841
+ }
842
+ -1 === payload._status && (payload._status = 0, payload._result = thenable);
843
+ }
844
+ if (1 === payload._status)
845
+ return ioInfo = payload._result, void 0 === ioInfo && console.error(
846
+ "lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",
847
+ ioInfo
848
+ ), "default" in ioInfo || console.error(
849
+ "lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",
850
+ ioInfo
851
+ ), ioInfo.default;
852
+ throw payload._result;
853
+ }
854
+ function resolveDispatcher() {
855
+ var dispatcher = ReactSharedInternals.H;
856
+ null === dispatcher && console.error(
857
+ "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."
858
+ );
859
+ return dispatcher;
860
+ }
861
+ function releaseAsyncTransition() {
862
+ ReactSharedInternals.asyncTransitions--;
863
+ }
864
+ function enqueueTask(task) {
865
+ if (null === enqueueTaskImpl)
866
+ try {
867
+ var requireString = ("require" + Math.random()).slice(0, 7);
868
+ enqueueTaskImpl = (module && module[requireString]).call(
869
+ module,
870
+ "timers"
871
+ ).setImmediate;
872
+ } catch (_err) {
873
+ enqueueTaskImpl = function(callback) {
874
+ false === didWarnAboutMessageChannel && (didWarnAboutMessageChannel = true, "undefined" === typeof MessageChannel && console.error(
875
+ "This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."
876
+ ));
877
+ var channel = new MessageChannel();
878
+ channel.port1.onmessage = callback;
879
+ channel.port2.postMessage(void 0);
880
+ };
881
+ }
882
+ return enqueueTaskImpl(task);
883
+ }
884
+ function aggregateErrors(errors) {
885
+ return 1 < errors.length && "function" === typeof AggregateError ? new AggregateError(errors) : errors[0];
886
+ }
887
+ function popActScope(prevActQueue, prevActScopeDepth) {
888
+ prevActScopeDepth !== actScopeDepth - 1 && console.error(
889
+ "You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
890
+ );
891
+ actScopeDepth = prevActScopeDepth;
892
+ }
893
+ function recursivelyFlushAsyncActWork(returnValue, resolve3, reject) {
894
+ var queue = ReactSharedInternals.actQueue;
895
+ if (null !== queue)
896
+ if (0 !== queue.length)
897
+ try {
898
+ flushActQueue(queue);
899
+ enqueueTask(function() {
900
+ return recursivelyFlushAsyncActWork(returnValue, resolve3, reject);
901
+ });
902
+ return;
903
+ } catch (error) {
904
+ ReactSharedInternals.thrownErrors.push(error);
905
+ }
906
+ else ReactSharedInternals.actQueue = null;
907
+ 0 < ReactSharedInternals.thrownErrors.length ? (queue = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, reject(queue)) : resolve3(returnValue);
908
+ }
909
+ function flushActQueue(queue) {
910
+ if (!isFlushing) {
911
+ isFlushing = true;
912
+ var i = 0;
913
+ try {
914
+ for (; i < queue.length; i++) {
915
+ var callback = queue[i];
916
+ do {
917
+ ReactSharedInternals.didUsePromise = false;
918
+ var continuation = callback(false);
919
+ if (null !== continuation) {
920
+ if (ReactSharedInternals.didUsePromise) {
921
+ queue[i] = callback;
922
+ queue.splice(0, i);
923
+ return;
924
+ }
925
+ callback = continuation;
926
+ } else break;
927
+ } while (1);
928
+ }
929
+ queue.length = 0;
930
+ } catch (error) {
931
+ queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error);
932
+ } finally {
933
+ isFlushing = false;
934
+ }
935
+ }
936
+ }
937
+ "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
938
+ var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo"), REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = /* @__PURE__ */ Symbol.for("react.activity"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, didWarnStateUpdateForUnmountedComponent = {}, ReactNoopUpdateQueue = {
939
+ isMounted: function() {
940
+ return false;
941
+ },
942
+ enqueueForceUpdate: function(publicInstance) {
943
+ warnNoop(publicInstance, "forceUpdate");
944
+ },
945
+ enqueueReplaceState: function(publicInstance) {
946
+ warnNoop(publicInstance, "replaceState");
947
+ },
948
+ enqueueSetState: function(publicInstance) {
949
+ warnNoop(publicInstance, "setState");
950
+ }
951
+ }, assign = Object.assign, emptyObject = {};
952
+ Object.freeze(emptyObject);
953
+ Component.prototype.isReactComponent = {};
954
+ Component.prototype.setState = function(partialState, callback) {
955
+ if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
956
+ throw Error(
957
+ "takes an object of state variables to update or a function which returns an object of state variables."
958
+ );
959
+ this.updater.enqueueSetState(this, partialState, callback, "setState");
960
+ };
961
+ Component.prototype.forceUpdate = function(callback) {
962
+ this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
963
+ };
964
+ var deprecatedAPIs = {
965
+ isMounted: [
966
+ "isMounted",
967
+ "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
968
+ ],
969
+ replaceState: [
970
+ "replaceState",
971
+ "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
972
+ ]
973
+ };
974
+ for (fnName in deprecatedAPIs)
975
+ deprecatedAPIs.hasOwnProperty(fnName) && defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
976
+ ComponentDummy.prototype = Component.prototype;
977
+ deprecatedAPIs = PureComponent.prototype = new ComponentDummy();
978
+ deprecatedAPIs.constructor = PureComponent;
979
+ assign(deprecatedAPIs, Component.prototype);
980
+ deprecatedAPIs.isPureReactComponent = true;
981
+ var isArrayImpl = Array.isArray, REACT_CLIENT_REFERENCE = /* @__PURE__ */ Symbol.for("react.client.reference"), ReactSharedInternals = {
982
+ H: null,
983
+ A: null,
984
+ T: null,
985
+ S: null,
986
+ actQueue: null,
987
+ asyncTransitions: 0,
988
+ isBatchingLegacy: false,
989
+ didScheduleLegacyUpdate: false,
990
+ didUsePromise: false,
991
+ thrownErrors: [],
992
+ getCurrentStack: null,
993
+ recentlyCreatedOwnerStacks: 0
994
+ }, hasOwnProperty = Object.prototype.hasOwnProperty, createTask = console.createTask ? console.createTask : function() {
995
+ return null;
996
+ };
997
+ deprecatedAPIs = {
998
+ react_stack_bottom_frame: function(callStackForError) {
999
+ return callStackForError();
1000
+ }
1001
+ };
1002
+ var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;
1003
+ var didWarnAboutElementRef = {};
1004
+ var unknownOwnerDebugStack = deprecatedAPIs.react_stack_bottom_frame.bind(
1005
+ deprecatedAPIs,
1006
+ UnknownOwner
1007
+ )();
1008
+ var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
1009
+ var didWarnAboutMaps = false, userProvidedKeyEscapeRegex = /\/+/g, reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
1010
+ if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
1011
+ var event = new window.ErrorEvent("error", {
1012
+ bubbles: true,
1013
+ cancelable: true,
1014
+ message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
1015
+ error
1016
+ });
1017
+ if (!window.dispatchEvent(event)) return;
1018
+ } else if ("object" === typeof process && "function" === typeof process.emit) {
1019
+ process.emit("uncaughtException", error);
1020
+ return;
1021
+ }
1022
+ console.error(error);
1023
+ }, didWarnAboutMessageChannel = false, enqueueTaskImpl = null, actScopeDepth = 0, didWarnNoAwaitAct = false, isFlushing = false, queueSeveralMicrotasks = "function" === typeof queueMicrotask ? function(callback) {
1024
+ queueMicrotask(function() {
1025
+ return queueMicrotask(callback);
1026
+ });
1027
+ } : enqueueTask;
1028
+ deprecatedAPIs = Object.freeze({
1029
+ __proto__: null,
1030
+ c: function(size) {
1031
+ return resolveDispatcher().useMemoCache(size);
1032
+ }
1033
+ });
1034
+ var fnName = {
1035
+ map: mapChildren,
1036
+ forEach: function(children, forEachFunc, forEachContext) {
1037
+ mapChildren(
1038
+ children,
1039
+ function() {
1040
+ forEachFunc.apply(this, arguments);
1041
+ },
1042
+ forEachContext
1043
+ );
1044
+ },
1045
+ count: function(children) {
1046
+ var n = 0;
1047
+ mapChildren(children, function() {
1048
+ n++;
1049
+ });
1050
+ return n;
1051
+ },
1052
+ toArray: function(children) {
1053
+ return mapChildren(children, function(child) {
1054
+ return child;
1055
+ }) || [];
1056
+ },
1057
+ only: function(children) {
1058
+ if (!isValidElement(children))
1059
+ throw Error(
1060
+ "React.Children.only expected to receive a single React element child."
1061
+ );
1062
+ return children;
1063
+ }
1064
+ };
1065
+ exports.Activity = REACT_ACTIVITY_TYPE;
1066
+ exports.Children = fnName;
1067
+ exports.Component = Component;
1068
+ exports.Fragment = REACT_FRAGMENT_TYPE;
1069
+ exports.Profiler = REACT_PROFILER_TYPE;
1070
+ exports.PureComponent = PureComponent;
1071
+ exports.StrictMode = REACT_STRICT_MODE_TYPE;
1072
+ exports.Suspense = REACT_SUSPENSE_TYPE;
1073
+ exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
1074
+ exports.__COMPILER_RUNTIME = deprecatedAPIs;
1075
+ exports.act = function(callback) {
1076
+ var prevActQueue = ReactSharedInternals.actQueue, prevActScopeDepth = actScopeDepth;
1077
+ actScopeDepth++;
1078
+ var queue = ReactSharedInternals.actQueue = null !== prevActQueue ? prevActQueue : [], didAwaitActCall = false;
1079
+ try {
1080
+ var result = callback();
1081
+ } catch (error) {
1082
+ ReactSharedInternals.thrownErrors.push(error);
1083
+ }
1084
+ if (0 < ReactSharedInternals.thrownErrors.length)
1085
+ throw popActScope(prevActQueue, prevActScopeDepth), callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
1086
+ if (null !== result && "object" === typeof result && "function" === typeof result.then) {
1087
+ var thenable = result;
1088
+ queueSeveralMicrotasks(function() {
1089
+ didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
1090
+ "You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"
1091
+ ));
1092
+ });
1093
+ return {
1094
+ then: function(resolve3, reject) {
1095
+ didAwaitActCall = true;
1096
+ thenable.then(
1097
+ function(returnValue) {
1098
+ popActScope(prevActQueue, prevActScopeDepth);
1099
+ if (0 === prevActScopeDepth) {
1100
+ try {
1101
+ flushActQueue(queue), enqueueTask(function() {
1102
+ return recursivelyFlushAsyncActWork(
1103
+ returnValue,
1104
+ resolve3,
1105
+ reject
1106
+ );
1107
+ });
1108
+ } catch (error$0) {
1109
+ ReactSharedInternals.thrownErrors.push(error$0);
1110
+ }
1111
+ if (0 < ReactSharedInternals.thrownErrors.length) {
1112
+ var _thrownError = aggregateErrors(
1113
+ ReactSharedInternals.thrownErrors
1114
+ );
1115
+ ReactSharedInternals.thrownErrors.length = 0;
1116
+ reject(_thrownError);
1117
+ }
1118
+ } else resolve3(returnValue);
1119
+ },
1120
+ function(error) {
1121
+ popActScope(prevActQueue, prevActScopeDepth);
1122
+ 0 < ReactSharedInternals.thrownErrors.length ? (error = aggregateErrors(
1123
+ ReactSharedInternals.thrownErrors
1124
+ ), ReactSharedInternals.thrownErrors.length = 0, reject(error)) : reject(error);
1125
+ }
1126
+ );
1127
+ }
1128
+ };
1129
+ }
1130
+ var returnValue$jscomp$0 = result;
1131
+ popActScope(prevActQueue, prevActScopeDepth);
1132
+ 0 === prevActScopeDepth && (flushActQueue(queue), 0 !== queue.length && queueSeveralMicrotasks(function() {
1133
+ didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
1134
+ "A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"
1135
+ ));
1136
+ }), ReactSharedInternals.actQueue = null);
1137
+ if (0 < ReactSharedInternals.thrownErrors.length)
1138
+ throw callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
1139
+ return {
1140
+ then: function(resolve3, reject) {
1141
+ didAwaitActCall = true;
1142
+ 0 === prevActScopeDepth ? (ReactSharedInternals.actQueue = queue, enqueueTask(function() {
1143
+ return recursivelyFlushAsyncActWork(
1144
+ returnValue$jscomp$0,
1145
+ resolve3,
1146
+ reject
1147
+ );
1148
+ })) : resolve3(returnValue$jscomp$0);
1149
+ }
1150
+ };
1151
+ };
1152
+ exports.cache = function(fn) {
1153
+ return function() {
1154
+ return fn.apply(null, arguments);
1155
+ };
1156
+ };
1157
+ exports.cacheSignal = function() {
1158
+ return null;
1159
+ };
1160
+ exports.captureOwnerStack = function() {
1161
+ var getCurrentStack = ReactSharedInternals.getCurrentStack;
1162
+ return null === getCurrentStack ? null : getCurrentStack();
1163
+ };
1164
+ exports.cloneElement = function(element, config2, children) {
1165
+ if (null === element || void 0 === element)
1166
+ throw Error(
1167
+ "The argument must be a React element, but you passed " + element + "."
1168
+ );
1169
+ var props = assign({}, element.props), key = element.key, owner = element._owner;
1170
+ if (null != config2) {
1171
+ var JSCompiler_inline_result;
1172
+ a: {
1173
+ if (hasOwnProperty.call(config2, "ref") && (JSCompiler_inline_result = Object.getOwnPropertyDescriptor(
1174
+ config2,
1175
+ "ref"
1176
+ ).get) && JSCompiler_inline_result.isReactWarning) {
1177
+ JSCompiler_inline_result = false;
1178
+ break a;
1179
+ }
1180
+ JSCompiler_inline_result = void 0 !== config2.ref;
1181
+ }
1182
+ JSCompiler_inline_result && (owner = getOwner());
1183
+ hasValidKey(config2) && (checkKeyStringCoercion(config2.key), key = "" + config2.key);
1184
+ for (propName in config2)
1185
+ !hasOwnProperty.call(config2, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config2.ref || (props[propName] = config2[propName]);
1186
+ }
1187
+ var propName = arguments.length - 2;
1188
+ if (1 === propName) props.children = children;
1189
+ else if (1 < propName) {
1190
+ JSCompiler_inline_result = Array(propName);
1191
+ for (var i = 0; i < propName; i++)
1192
+ JSCompiler_inline_result[i] = arguments[i + 2];
1193
+ props.children = JSCompiler_inline_result;
1194
+ }
1195
+ props = ReactElement(
1196
+ element.type,
1197
+ key,
1198
+ props,
1199
+ owner,
1200
+ element._debugStack,
1201
+ element._debugTask
1202
+ );
1203
+ for (key = 2; key < arguments.length; key++)
1204
+ validateChildKeys(arguments[key]);
1205
+ return props;
1206
+ };
1207
+ exports.createContext = function(defaultValue) {
1208
+ defaultValue = {
1209
+ $$typeof: REACT_CONTEXT_TYPE,
1210
+ _currentValue: defaultValue,
1211
+ _currentValue2: defaultValue,
1212
+ _threadCount: 0,
1213
+ Provider: null,
1214
+ Consumer: null
1215
+ };
1216
+ defaultValue.Provider = defaultValue;
1217
+ defaultValue.Consumer = {
1218
+ $$typeof: REACT_CONSUMER_TYPE,
1219
+ _context: defaultValue
1220
+ };
1221
+ defaultValue._currentRenderer = null;
1222
+ defaultValue._currentRenderer2 = null;
1223
+ return defaultValue;
1224
+ };
1225
+ exports.createElement = function(type, config2, children) {
1226
+ for (var i = 2; i < arguments.length; i++)
1227
+ validateChildKeys(arguments[i]);
1228
+ i = {};
1229
+ var key = null;
1230
+ if (null != config2)
1231
+ for (propName in didWarnAboutOldJSXRuntime || !("__self" in config2) || "key" in config2 || (didWarnAboutOldJSXRuntime = true, console.warn(
1232
+ "Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform"
1233
+ )), hasValidKey(config2) && (checkKeyStringCoercion(config2.key), key = "" + config2.key), config2)
1234
+ hasOwnProperty.call(config2, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (i[propName] = config2[propName]);
1235
+ var childrenLength = arguments.length - 2;
1236
+ if (1 === childrenLength) i.children = children;
1237
+ else if (1 < childrenLength) {
1238
+ for (var childArray = Array(childrenLength), _i = 0; _i < childrenLength; _i++)
1239
+ childArray[_i] = arguments[_i + 2];
1240
+ Object.freeze && Object.freeze(childArray);
1241
+ i.children = childArray;
1242
+ }
1243
+ if (type && type.defaultProps)
1244
+ for (propName in childrenLength = type.defaultProps, childrenLength)
1245
+ void 0 === i[propName] && (i[propName] = childrenLength[propName]);
1246
+ key && defineKeyPropWarningGetter(
1247
+ i,
1248
+ "function" === typeof type ? type.displayName || type.name || "Unknown" : type
1249
+ );
1250
+ var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
1251
+ return ReactElement(
1252
+ type,
1253
+ key,
1254
+ i,
1255
+ getOwner(),
1256
+ propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
1257
+ propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
1258
+ );
1259
+ };
1260
+ exports.createRef = function() {
1261
+ var refObject = { current: null };
1262
+ Object.seal(refObject);
1263
+ return refObject;
1264
+ };
1265
+ exports.forwardRef = function(render) {
1266
+ null != render && render.$$typeof === REACT_MEMO_TYPE ? console.error(
1267
+ "forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
1268
+ ) : "function" !== typeof render ? console.error(
1269
+ "forwardRef requires a render function but was given %s.",
1270
+ null === render ? "null" : typeof render
1271
+ ) : 0 !== render.length && 2 !== render.length && console.error(
1272
+ "forwardRef render functions accept exactly two parameters: props and ref. %s",
1273
+ 1 === render.length ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."
1274
+ );
1275
+ null != render && null != render.defaultProps && console.error(
1276
+ "forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
1277
+ );
1278
+ var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render }, ownName;
1279
+ Object.defineProperty(elementType, "displayName", {
1280
+ enumerable: false,
1281
+ configurable: true,
1282
+ get: function() {
1283
+ return ownName;
1284
+ },
1285
+ set: function(name) {
1286
+ ownName = name;
1287
+ render.name || render.displayName || (Object.defineProperty(render, "name", { value: name }), render.displayName = name);
1288
+ }
1289
+ });
1290
+ return elementType;
1291
+ };
1292
+ exports.isValidElement = isValidElement;
1293
+ exports.lazy = function(ctor) {
1294
+ ctor = { _status: -1, _result: ctor };
1295
+ var lazyType = {
1296
+ $$typeof: REACT_LAZY_TYPE,
1297
+ _payload: ctor,
1298
+ _init: lazyInitializer
1299
+ }, ioInfo = {
1300
+ name: "lazy",
1301
+ start: -1,
1302
+ end: -1,
1303
+ value: null,
1304
+ owner: null,
1305
+ debugStack: Error("react-stack-top-frame"),
1306
+ debugTask: console.createTask ? console.createTask("lazy()") : null
1307
+ };
1308
+ ctor._ioInfo = ioInfo;
1309
+ lazyType._debugInfo = [{ awaited: ioInfo }];
1310
+ return lazyType;
1311
+ };
1312
+ exports.memo = function(type, compare) {
1313
+ null == type && console.error(
1314
+ "memo: The first argument must be a component. Instead received: %s",
1315
+ null === type ? "null" : typeof type
1316
+ );
1317
+ compare = {
1318
+ $$typeof: REACT_MEMO_TYPE,
1319
+ type,
1320
+ compare: void 0 === compare ? null : compare
1321
+ };
1322
+ var ownName;
1323
+ Object.defineProperty(compare, "displayName", {
1324
+ enumerable: false,
1325
+ configurable: true,
1326
+ get: function() {
1327
+ return ownName;
1328
+ },
1329
+ set: function(name) {
1330
+ ownName = name;
1331
+ type.name || type.displayName || (Object.defineProperty(type, "name", { value: name }), type.displayName = name);
1332
+ }
1333
+ });
1334
+ return compare;
1335
+ };
1336
+ exports.startTransition = function(scope) {
1337
+ var prevTransition = ReactSharedInternals.T, currentTransition = {};
1338
+ currentTransition._updatedFibers = /* @__PURE__ */ new Set();
1339
+ ReactSharedInternals.T = currentTransition;
1340
+ try {
1341
+ var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
1342
+ null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
1343
+ "object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && (ReactSharedInternals.asyncTransitions++, returnValue.then(releaseAsyncTransition, releaseAsyncTransition), returnValue.then(noop, reportGlobalError));
1344
+ } catch (error) {
1345
+ reportGlobalError(error);
1346
+ } finally {
1347
+ null === prevTransition && currentTransition._updatedFibers && (scope = currentTransition._updatedFibers.size, currentTransition._updatedFibers.clear(), 10 < scope && console.warn(
1348
+ "Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."
1349
+ )), null !== prevTransition && null !== currentTransition.types && (null !== prevTransition.types && prevTransition.types !== currentTransition.types && console.error(
1350
+ "We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."
1351
+ ), prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
1352
+ }
1353
+ };
1354
+ exports.unstable_useCacheRefresh = function() {
1355
+ return resolveDispatcher().useCacheRefresh();
1356
+ };
1357
+ exports.use = function(usable) {
1358
+ return resolveDispatcher().use(usable);
1359
+ };
1360
+ exports.useActionState = function(action, initialState, permalink) {
1361
+ return resolveDispatcher().useActionState(
1362
+ action,
1363
+ initialState,
1364
+ permalink
1365
+ );
1366
+ };
1367
+ exports.useCallback = function(callback, deps) {
1368
+ return resolveDispatcher().useCallback(callback, deps);
1369
+ };
1370
+ exports.useContext = function(Context) {
1371
+ var dispatcher = resolveDispatcher();
1372
+ Context.$$typeof === REACT_CONSUMER_TYPE && console.error(
1373
+ "Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
1374
+ );
1375
+ return dispatcher.useContext(Context);
1376
+ };
1377
+ exports.useDebugValue = function(value, formatterFn) {
1378
+ return resolveDispatcher().useDebugValue(value, formatterFn);
1379
+ };
1380
+ exports.useDeferredValue = function(value, initialValue) {
1381
+ return resolveDispatcher().useDeferredValue(value, initialValue);
1382
+ };
1383
+ exports.useEffect = function(create, deps) {
1384
+ null == create && console.warn(
1385
+ "React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1386
+ );
1387
+ return resolveDispatcher().useEffect(create, deps);
1388
+ };
1389
+ exports.useEffectEvent = function(callback) {
1390
+ return resolveDispatcher().useEffectEvent(callback);
1391
+ };
1392
+ exports.useId = function() {
1393
+ return resolveDispatcher().useId();
1394
+ };
1395
+ exports.useImperativeHandle = function(ref, create, deps) {
1396
+ return resolveDispatcher().useImperativeHandle(ref, create, deps);
1397
+ };
1398
+ exports.useInsertionEffect = function(create, deps) {
1399
+ null == create && console.warn(
1400
+ "React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1401
+ );
1402
+ return resolveDispatcher().useInsertionEffect(create, deps);
1403
+ };
1404
+ exports.useLayoutEffect = function(create, deps) {
1405
+ null == create && console.warn(
1406
+ "React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1407
+ );
1408
+ return resolveDispatcher().useLayoutEffect(create, deps);
1409
+ };
1410
+ exports.useMemo = function(create, deps) {
1411
+ return resolveDispatcher().useMemo(create, deps);
1412
+ };
1413
+ exports.useOptimistic = function(passthrough, reducer) {
1414
+ return resolveDispatcher().useOptimistic(passthrough, reducer);
1415
+ };
1416
+ exports.useReducer = function(reducer, initialArg, init) {
1417
+ return resolveDispatcher().useReducer(reducer, initialArg, init);
1418
+ };
1419
+ exports.useRef = function(initialValue) {
1420
+ return resolveDispatcher().useRef(initialValue);
1421
+ };
1422
+ exports.useState = function(initialState) {
1423
+ return resolveDispatcher().useState(initialState);
1424
+ };
1425
+ exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
1426
+ return resolveDispatcher().useSyncExternalStore(
1427
+ subscribe,
1428
+ getSnapshot,
1429
+ getServerSnapshot
1430
+ );
1431
+ };
1432
+ exports.useTransition = function() {
1433
+ return resolveDispatcher().useTransition();
1434
+ };
1435
+ exports.version = "19.2.3";
1436
+ "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1437
+ })();
1438
+ }
1439
+ });
1440
+
1441
+ // ../../../../node_modules/react/index.js
1442
+ var require_react = __commonJS({
1443
+ "../../../../node_modules/react/index.js"(exports, module) {
1444
+ "use strict";
1445
+ if (process.env.NODE_ENV === "production") {
1446
+ module.exports = require_react_production();
1447
+ } else {
1448
+ module.exports = require_react_development();
1449
+ }
1450
+ }
1451
+ });
2
1452
 
3
1453
  // src/cli.ts
4
1454
  import { Command as Command4 } from "commander";
@@ -415,7 +1865,7 @@ function createBaseServer(options = {}) {
415
1865
  }
416
1866
 
417
1867
  // src/commands/dev.ts
418
- import { pdfnTailwind } from "@pdfn/vite";
1868
+ import { pdfn } from "@pdfn/vite";
419
1869
  import chalk from "chalk";
420
1870
 
421
1871
  // src/utils/env.ts
@@ -439,6 +1889,7 @@ function loadEnv(mode) {
439
1889
  }
440
1890
 
441
1891
  // src/commands/dev.ts
1892
+ var import_react = __toESM(require_react(), 1);
442
1893
  var TEMPLATES_DIR = "./pdfn-templates";
443
1894
  async function scanTemplates(templatesDir) {
444
1895
  if (!existsSync2(templatesDir)) {
@@ -1317,26 +2768,19 @@ function createPreviewHTML(templates, activeTemplate) {
1317
2768
  let pageSize = 'A4';
1318
2769
  let orientation = 'portrait';
1319
2770
 
1320
- // Check for size attribute
1321
- const sizeMatch = html.match(/size="([^"]+)"/i) || html.match(/data-page-size="([^"]+)"/i);
2771
+ // Check for data-pdfn-size attribute (e.g., "A4", "Letter Landscape", "Tabloid")
2772
+ const sizeMatch = html.match(/data-pdfn-size="([^"]+)"/i);
1322
2773
  if (sizeMatch) {
1323
- const s = sizeMatch[1];
1324
- if (PAGE_SIZES[s]) pageSize = s;
1325
- }
1326
-
1327
- // Check for orientation attribute
1328
- const orientMatch = html.match(/orientation="([^"]+)"/i);
1329
- if (orientMatch && orientMatch[1] === 'landscape') {
1330
- orientation = 'landscape';
1331
- }
1332
-
1333
- // Special handling: Tabloid is typically landscape (posters)
1334
- if (html.includes('Tabloid') || html.includes('tabloid')) {
1335
- pageSize = 'Tabloid';
1336
- // Default Tabloid to landscape unless explicitly portrait
1337
- if (!html.includes('orientation="portrait"')) {
2774
+ const sizeStr = sizeMatch[1];
2775
+ // Check if it includes "Landscape"
2776
+ if (sizeStr.includes('Landscape')) {
1338
2777
  orientation = 'landscape';
1339
2778
  }
2779
+ // Extract base size name (remove " Landscape" suffix if present)
2780
+ const baseName = sizeStr.replace(' Landscape', '').replace(' Portrait', '');
2781
+ if (PAGE_SIZES[baseName]) {
2782
+ pageSize = baseName;
2783
+ }
1340
2784
  }
1341
2785
 
1342
2786
  return { pageSize, orientation };
@@ -1546,15 +2990,11 @@ async function startDevServer(options) {
1546
2990
  },
1547
2991
  ssr: {
1548
2992
  // Don't externalize these - we need to transform them
1549
- noExternal: ["@pdfn/react", "@pdfn/tailwind", "server-only"]
2993
+ noExternal: ["@pdfn/react", "@pdfn/tailwind", "@pdfn/client", "server-only"]
1550
2994
  },
1551
2995
  plugins: [
1552
- // Pre-compile Tailwind CSS for edge compatibility
1553
- pdfnTailwind({
1554
- templates: [
1555
- join(TEMPLATES_DIR, "**/*.tsx")
1556
- ]
1557
- }),
2996
+ // Unified pdfn plugin: Tailwind pre-compilation + client/template markers
2997
+ ...pdfn(),
1558
2998
  {
1559
2999
  name: "mock-server-only",
1560
3000
  enforce: "pre",
@@ -1671,7 +3111,9 @@ async function startDevServer(options) {
1671
3111
  const mod = await vite.ssrLoadModule(template.path);
1672
3112
  const Component = mod.default;
1673
3113
  const { render } = await vite.ssrLoadModule("@pdfn/react");
1674
- return render(Component({}), { debug: debugOptions || void 0 });
3114
+ return render(import_react.default.createElement(Component, {}), {
3115
+ debug: debugOptions || void 0
3116
+ });
1675
3117
  }
1676
3118
  function parseDebugOptions(query) {
1677
3119
  const options2 = {
@@ -2172,6 +3614,11 @@ var TEMPLATES = {
2172
3614
  name: "Poster",
2173
3615
  description: "Event poster (landscape)",
2174
3616
  pageSize: "Tabloid"
3617
+ },
3618
+ report: {
3619
+ name: "Sales Report",
3620
+ description: "Report with Recharts (npm install recharts)",
3621
+ pageSize: "A4"
2175
3622
  }
2176
3623
  };
2177
3624
  function getTemplatesDir(style) {
@@ -2271,4 +3718,28 @@ program.addCommand(devCommand);
2271
3718
  program.addCommand(serveCommand);
2272
3719
  program.addCommand(addCommand);
2273
3720
  program.parse();
3721
+ /*! Bundled license information:
3722
+
3723
+ react/cjs/react.production.js:
3724
+ (**
3725
+ * @license React
3726
+ * react.production.js
3727
+ *
3728
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3729
+ *
3730
+ * This source code is licensed under the MIT license found in the
3731
+ * LICENSE file in the root directory of this source tree.
3732
+ *)
3733
+
3734
+ react/cjs/react.development.js:
3735
+ (**
3736
+ * @license React
3737
+ * react.development.js
3738
+ *
3739
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3740
+ *
3741
+ * This source code is licensed under the MIT license found in the
3742
+ * LICENSE file in the root directory of this source tree.
3743
+ *)
3744
+ */
2274
3745
  //# sourceMappingURL=cli.js.map