@cabbage0320/agent-plugin 1.0.0

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.
@@ -0,0 +1,570 @@
1
+ function getDefaultExportFromCjs (x) {
2
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
3
+ }
4
+
5
+ var react = {exports: {}};
6
+
7
+ var react_production = {};
8
+
9
+ /**
10
+ * @license React
11
+ * react.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */
18
+
19
+ var hasRequiredReact_production;
20
+
21
+ function requireReact_production () {
22
+ if (hasRequiredReact_production) return react_production;
23
+ hasRequiredReact_production = 1;
24
+ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
25
+ REACT_PORTAL_TYPE = Symbol.for("react.portal"),
26
+ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
27
+ REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
28
+ REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
29
+ REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
30
+ REACT_CONTEXT_TYPE = Symbol.for("react.context"),
31
+ REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
32
+ REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
33
+ REACT_MEMO_TYPE = Symbol.for("react.memo"),
34
+ REACT_LAZY_TYPE = Symbol.for("react.lazy"),
35
+ REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
36
+ MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
37
+ function getIteratorFn(maybeIterable) {
38
+ if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
39
+ maybeIterable =
40
+ (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||
41
+ maybeIterable["@@iterator"];
42
+ return "function" === typeof maybeIterable ? maybeIterable : null;
43
+ }
44
+ var ReactNoopUpdateQueue = {
45
+ isMounted: function () {
46
+ return false;
47
+ },
48
+ enqueueForceUpdate: function () {},
49
+ enqueueReplaceState: function () {},
50
+ enqueueSetState: function () {}
51
+ },
52
+ assign = Object.assign,
53
+ emptyObject = {};
54
+ function Component(props, context, updater) {
55
+ this.props = props;
56
+ this.context = context;
57
+ this.refs = emptyObject;
58
+ this.updater = updater || ReactNoopUpdateQueue;
59
+ }
60
+ Component.prototype.isReactComponent = {};
61
+ Component.prototype.setState = function (partialState, callback) {
62
+ if (
63
+ "object" !== typeof partialState &&
64
+ "function" !== typeof partialState &&
65
+ null != partialState
66
+ )
67
+ throw Error(
68
+ "takes an object of state variables to update or a function which returns an object of state variables."
69
+ );
70
+ this.updater.enqueueSetState(this, partialState, callback, "setState");
71
+ };
72
+ Component.prototype.forceUpdate = function (callback) {
73
+ this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
74
+ };
75
+ function ComponentDummy() {}
76
+ ComponentDummy.prototype = Component.prototype;
77
+ function PureComponent(props, context, updater) {
78
+ this.props = props;
79
+ this.context = context;
80
+ this.refs = emptyObject;
81
+ this.updater = updater || ReactNoopUpdateQueue;
82
+ }
83
+ var pureComponentPrototype = (PureComponent.prototype = new ComponentDummy());
84
+ pureComponentPrototype.constructor = PureComponent;
85
+ assign(pureComponentPrototype, Component.prototype);
86
+ pureComponentPrototype.isPureReactComponent = true;
87
+ var isArrayImpl = Array.isArray;
88
+ function noop() {}
89
+ var ReactSharedInternals = { H: null, A: null, T: null, S: null },
90
+ hasOwnProperty = Object.prototype.hasOwnProperty;
91
+ function ReactElement(type, key, props) {
92
+ var refProp = props.ref;
93
+ return {
94
+ $$typeof: REACT_ELEMENT_TYPE,
95
+ type: type,
96
+ key: key,
97
+ ref: void 0 !== refProp ? refProp : null,
98
+ props: props
99
+ };
100
+ }
101
+ function cloneAndReplaceKey(oldElement, newKey) {
102
+ return ReactElement(oldElement.type, newKey, oldElement.props);
103
+ }
104
+ function isValidElement(object) {
105
+ return (
106
+ "object" === typeof object &&
107
+ null !== object &&
108
+ object.$$typeof === REACT_ELEMENT_TYPE
109
+ );
110
+ }
111
+ function escape(key) {
112
+ var escaperLookup = { "=": "=0", ":": "=2" };
113
+ return (
114
+ "$" +
115
+ key.replace(/[=:]/g, function (match) {
116
+ return escaperLookup[match];
117
+ })
118
+ );
119
+ }
120
+ var userProvidedKeyEscapeRegex = /\/+/g;
121
+ function getElementKey(element, index) {
122
+ return "object" === typeof element && null !== element && null != element.key
123
+ ? escape("" + element.key)
124
+ : index.toString(36);
125
+ }
126
+ function resolveThenable(thenable) {
127
+ switch (thenable.status) {
128
+ case "fulfilled":
129
+ return thenable.value;
130
+ case "rejected":
131
+ throw thenable.reason;
132
+ default:
133
+ switch (
134
+ ("string" === typeof thenable.status
135
+ ? thenable.then(noop, noop)
136
+ : ((thenable.status = "pending"),
137
+ thenable.then(
138
+ function (fulfilledValue) {
139
+ "pending" === thenable.status &&
140
+ ((thenable.status = "fulfilled"),
141
+ (thenable.value = fulfilledValue));
142
+ },
143
+ function (error) {
144
+ "pending" === thenable.status &&
145
+ ((thenable.status = "rejected"), (thenable.reason = error));
146
+ }
147
+ )),
148
+ thenable.status)
149
+ ) {
150
+ case "fulfilled":
151
+ return thenable.value;
152
+ case "rejected":
153
+ throw thenable.reason;
154
+ }
155
+ }
156
+ throw thenable;
157
+ }
158
+ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
159
+ var type = typeof children;
160
+ if ("undefined" === type || "boolean" === type) children = null;
161
+ var invokeCallback = false;
162
+ if (null === children) invokeCallback = true;
163
+ else
164
+ switch (type) {
165
+ case "bigint":
166
+ case "string":
167
+ case "number":
168
+ invokeCallback = true;
169
+ break;
170
+ case "object":
171
+ switch (children.$$typeof) {
172
+ case REACT_ELEMENT_TYPE:
173
+ case REACT_PORTAL_TYPE:
174
+ invokeCallback = true;
175
+ break;
176
+ case REACT_LAZY_TYPE:
177
+ return (
178
+ (invokeCallback = children._init),
179
+ mapIntoArray(
180
+ invokeCallback(children._payload),
181
+ array,
182
+ escapedPrefix,
183
+ nameSoFar,
184
+ callback
185
+ )
186
+ );
187
+ }
188
+ }
189
+ if (invokeCallback)
190
+ return (
191
+ (callback = callback(children)),
192
+ (invokeCallback =
193
+ "" === nameSoFar ? "." + getElementKey(children, 0) : nameSoFar),
194
+ isArrayImpl(callback)
195
+ ? ((escapedPrefix = ""),
196
+ null != invokeCallback &&
197
+ (escapedPrefix =
198
+ invokeCallback.replace(userProvidedKeyEscapeRegex, "$&/") + "/"),
199
+ mapIntoArray(callback, array, escapedPrefix, "", function (c) {
200
+ return c;
201
+ }))
202
+ : null != callback &&
203
+ (isValidElement(callback) &&
204
+ (callback = cloneAndReplaceKey(
205
+ callback,
206
+ escapedPrefix +
207
+ (null == callback.key ||
208
+ (children && children.key === callback.key)
209
+ ? ""
210
+ : ("" + callback.key).replace(
211
+ userProvidedKeyEscapeRegex,
212
+ "$&/"
213
+ ) + "/") +
214
+ invokeCallback
215
+ )),
216
+ array.push(callback)),
217
+ 1
218
+ );
219
+ invokeCallback = 0;
220
+ var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
221
+ if (isArrayImpl(children))
222
+ for (var i = 0; i < children.length; i++)
223
+ (nameSoFar = children[i]),
224
+ (type = nextNamePrefix + getElementKey(nameSoFar, i)),
225
+ (invokeCallback += mapIntoArray(
226
+ nameSoFar,
227
+ array,
228
+ escapedPrefix,
229
+ type,
230
+ callback
231
+ ));
232
+ else if (((i = getIteratorFn(children)), "function" === typeof i))
233
+ for (
234
+ children = i.call(children), i = 0;
235
+ !(nameSoFar = children.next()).done;
236
+
237
+ )
238
+ (nameSoFar = nameSoFar.value),
239
+ (type = nextNamePrefix + getElementKey(nameSoFar, i++)),
240
+ (invokeCallback += mapIntoArray(
241
+ nameSoFar,
242
+ array,
243
+ escapedPrefix,
244
+ type,
245
+ callback
246
+ ));
247
+ else if ("object" === type) {
248
+ if ("function" === typeof children.then)
249
+ return mapIntoArray(
250
+ resolveThenable(children),
251
+ array,
252
+ escapedPrefix,
253
+ nameSoFar,
254
+ callback
255
+ );
256
+ array = String(children);
257
+ throw Error(
258
+ "Objects are not valid as a React child (found: " +
259
+ ("[object Object]" === array
260
+ ? "object with keys {" + Object.keys(children).join(", ") + "}"
261
+ : array) +
262
+ "). If you meant to render a collection of children, use an array instead."
263
+ );
264
+ }
265
+ return invokeCallback;
266
+ }
267
+ function mapChildren(children, func, context) {
268
+ if (null == children) return children;
269
+ var result = [],
270
+ count = 0;
271
+ mapIntoArray(children, result, "", "", function (child) {
272
+ return func.call(context, child, count++);
273
+ });
274
+ return result;
275
+ }
276
+ function lazyInitializer(payload) {
277
+ if (-1 === payload._status) {
278
+ var ctor = payload._result;
279
+ ctor = ctor();
280
+ ctor.then(
281
+ function (moduleObject) {
282
+ if (0 === payload._status || -1 === payload._status)
283
+ (payload._status = 1), (payload._result = moduleObject);
284
+ },
285
+ function (error) {
286
+ if (0 === payload._status || -1 === payload._status)
287
+ (payload._status = 2), (payload._result = error);
288
+ }
289
+ );
290
+ -1 === payload._status && ((payload._status = 0), (payload._result = ctor));
291
+ }
292
+ if (1 === payload._status) return payload._result.default;
293
+ throw payload._result;
294
+ }
295
+ var reportGlobalError =
296
+ "function" === typeof reportError
297
+ ? reportError
298
+ : function (error) {
299
+ if (
300
+ "object" === typeof window &&
301
+ "function" === typeof window.ErrorEvent
302
+ ) {
303
+ var event = new window.ErrorEvent("error", {
304
+ bubbles: true,
305
+ cancelable: true,
306
+ message:
307
+ "object" === typeof error &&
308
+ null !== error &&
309
+ "string" === typeof error.message
310
+ ? String(error.message)
311
+ : String(error),
312
+ error: error
313
+ });
314
+ if (!window.dispatchEvent(event)) return;
315
+ } else if (
316
+ "object" === typeof process &&
317
+ "function" === typeof process.emit
318
+ ) {
319
+ process.emit("uncaughtException", error);
320
+ return;
321
+ }
322
+ console.error(error);
323
+ },
324
+ Children = {
325
+ map: mapChildren,
326
+ forEach: function (children, forEachFunc, forEachContext) {
327
+ mapChildren(
328
+ children,
329
+ function () {
330
+ forEachFunc.apply(this, arguments);
331
+ },
332
+ forEachContext
333
+ );
334
+ },
335
+ count: function (children) {
336
+ var n = 0;
337
+ mapChildren(children, function () {
338
+ n++;
339
+ });
340
+ return n;
341
+ },
342
+ toArray: function (children) {
343
+ return (
344
+ mapChildren(children, function (child) {
345
+ return child;
346
+ }) || []
347
+ );
348
+ },
349
+ only: function (children) {
350
+ if (!isValidElement(children))
351
+ throw Error(
352
+ "React.Children.only expected to receive a single React element child."
353
+ );
354
+ return children;
355
+ }
356
+ };
357
+ react_production.Activity = REACT_ACTIVITY_TYPE;
358
+ react_production.Children = Children;
359
+ react_production.Component = Component;
360
+ react_production.Fragment = REACT_FRAGMENT_TYPE;
361
+ react_production.Profiler = REACT_PROFILER_TYPE;
362
+ react_production.PureComponent = PureComponent;
363
+ react_production.StrictMode = REACT_STRICT_MODE_TYPE;
364
+ react_production.Suspense = REACT_SUSPENSE_TYPE;
365
+ react_production.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
366
+ ReactSharedInternals;
367
+ react_production.__COMPILER_RUNTIME = {
368
+ __proto__: null,
369
+ c: function (size) {
370
+ return ReactSharedInternals.H.useMemoCache(size);
371
+ }
372
+ };
373
+ react_production.cache = function (fn) {
374
+ return function () {
375
+ return fn.apply(null, arguments);
376
+ };
377
+ };
378
+ react_production.cacheSignal = function () {
379
+ return null;
380
+ };
381
+ react_production.cloneElement = function (element, config, children) {
382
+ if (null === element || void 0 === element)
383
+ throw Error(
384
+ "The argument must be a React element, but you passed " + element + "."
385
+ );
386
+ var props = assign({}, element.props),
387
+ key = element.key;
388
+ if (null != config)
389
+ for (propName in (void 0 !== config.key && (key = "" + config.key), config))
390
+ !hasOwnProperty.call(config, propName) ||
391
+ "key" === propName ||
392
+ "__self" === propName ||
393
+ "__source" === propName ||
394
+ ("ref" === propName && void 0 === config.ref) ||
395
+ (props[propName] = config[propName]);
396
+ var propName = arguments.length - 2;
397
+ if (1 === propName) props.children = children;
398
+ else if (1 < propName) {
399
+ for (var childArray = Array(propName), i = 0; i < propName; i++)
400
+ childArray[i] = arguments[i + 2];
401
+ props.children = childArray;
402
+ }
403
+ return ReactElement(element.type, key, props);
404
+ };
405
+ react_production.createContext = function (defaultValue) {
406
+ defaultValue = {
407
+ $$typeof: REACT_CONTEXT_TYPE,
408
+ _currentValue: defaultValue,
409
+ _currentValue2: defaultValue,
410
+ _threadCount: 0,
411
+ Provider: null,
412
+ Consumer: null
413
+ };
414
+ defaultValue.Provider = defaultValue;
415
+ defaultValue.Consumer = {
416
+ $$typeof: REACT_CONSUMER_TYPE,
417
+ _context: defaultValue
418
+ };
419
+ return defaultValue;
420
+ };
421
+ react_production.createElement = function (type, config, children) {
422
+ var propName,
423
+ props = {},
424
+ key = null;
425
+ if (null != config)
426
+ for (propName in (void 0 !== config.key && (key = "" + config.key), config))
427
+ hasOwnProperty.call(config, propName) &&
428
+ "key" !== propName &&
429
+ "__self" !== propName &&
430
+ "__source" !== propName &&
431
+ (props[propName] = config[propName]);
432
+ var childrenLength = arguments.length - 2;
433
+ if (1 === childrenLength) props.children = children;
434
+ else if (1 < childrenLength) {
435
+ for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)
436
+ childArray[i] = arguments[i + 2];
437
+ props.children = childArray;
438
+ }
439
+ if (type && type.defaultProps)
440
+ for (propName in ((childrenLength = type.defaultProps), childrenLength))
441
+ void 0 === props[propName] &&
442
+ (props[propName] = childrenLength[propName]);
443
+ return ReactElement(type, key, props);
444
+ };
445
+ react_production.createRef = function () {
446
+ return { current: null };
447
+ };
448
+ react_production.forwardRef = function (render) {
449
+ return { $$typeof: REACT_FORWARD_REF_TYPE, render: render };
450
+ };
451
+ react_production.isValidElement = isValidElement;
452
+ react_production.lazy = function (ctor) {
453
+ return {
454
+ $$typeof: REACT_LAZY_TYPE,
455
+ _payload: { _status: -1, _result: ctor },
456
+ _init: lazyInitializer
457
+ };
458
+ };
459
+ react_production.memo = function (type, compare) {
460
+ return {
461
+ $$typeof: REACT_MEMO_TYPE,
462
+ type: type,
463
+ compare: void 0 === compare ? null : compare
464
+ };
465
+ };
466
+ react_production.startTransition = function (scope) {
467
+ var prevTransition = ReactSharedInternals.T,
468
+ currentTransition = {};
469
+ ReactSharedInternals.T = currentTransition;
470
+ try {
471
+ var returnValue = scope(),
472
+ onStartTransitionFinish = ReactSharedInternals.S;
473
+ null !== onStartTransitionFinish &&
474
+ onStartTransitionFinish(currentTransition, returnValue);
475
+ "object" === typeof returnValue &&
476
+ null !== returnValue &&
477
+ "function" === typeof returnValue.then &&
478
+ returnValue.then(noop, reportGlobalError);
479
+ } catch (error) {
480
+ reportGlobalError(error);
481
+ } finally {
482
+ null !== prevTransition &&
483
+ null !== currentTransition.types &&
484
+ (prevTransition.types = currentTransition.types),
485
+ (ReactSharedInternals.T = prevTransition);
486
+ }
487
+ };
488
+ react_production.unstable_useCacheRefresh = function () {
489
+ return ReactSharedInternals.H.useCacheRefresh();
490
+ };
491
+ react_production.use = function (usable) {
492
+ return ReactSharedInternals.H.use(usable);
493
+ };
494
+ react_production.useActionState = function (action, initialState, permalink) {
495
+ return ReactSharedInternals.H.useActionState(action, initialState, permalink);
496
+ };
497
+ react_production.useCallback = function (callback, deps) {
498
+ return ReactSharedInternals.H.useCallback(callback, deps);
499
+ };
500
+ react_production.useContext = function (Context) {
501
+ return ReactSharedInternals.H.useContext(Context);
502
+ };
503
+ react_production.useDebugValue = function () {};
504
+ react_production.useDeferredValue = function (value, initialValue) {
505
+ return ReactSharedInternals.H.useDeferredValue(value, initialValue);
506
+ };
507
+ react_production.useEffect = function (create, deps) {
508
+ return ReactSharedInternals.H.useEffect(create, deps);
509
+ };
510
+ react_production.useEffectEvent = function (callback) {
511
+ return ReactSharedInternals.H.useEffectEvent(callback);
512
+ };
513
+ react_production.useId = function () {
514
+ return ReactSharedInternals.H.useId();
515
+ };
516
+ react_production.useImperativeHandle = function (ref, create, deps) {
517
+ return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);
518
+ };
519
+ react_production.useInsertionEffect = function (create, deps) {
520
+ return ReactSharedInternals.H.useInsertionEffect(create, deps);
521
+ };
522
+ react_production.useLayoutEffect = function (create, deps) {
523
+ return ReactSharedInternals.H.useLayoutEffect(create, deps);
524
+ };
525
+ react_production.useMemo = function (create, deps) {
526
+ return ReactSharedInternals.H.useMemo(create, deps);
527
+ };
528
+ react_production.useOptimistic = function (passthrough, reducer) {
529
+ return ReactSharedInternals.H.useOptimistic(passthrough, reducer);
530
+ };
531
+ react_production.useReducer = function (reducer, initialArg, init) {
532
+ return ReactSharedInternals.H.useReducer(reducer, initialArg, init);
533
+ };
534
+ react_production.useRef = function (initialValue) {
535
+ return ReactSharedInternals.H.useRef(initialValue);
536
+ };
537
+ react_production.useState = function (initialState) {
538
+ return ReactSharedInternals.H.useState(initialState);
539
+ };
540
+ react_production.useSyncExternalStore = function (
541
+ subscribe,
542
+ getSnapshot,
543
+ getServerSnapshot
544
+ ) {
545
+ return ReactSharedInternals.H.useSyncExternalStore(
546
+ subscribe,
547
+ getSnapshot,
548
+ getServerSnapshot
549
+ );
550
+ };
551
+ react_production.useTransition = function () {
552
+ return ReactSharedInternals.H.useTransition();
553
+ };
554
+ react_production.version = "19.2.7";
555
+ return react_production;
556
+ }
557
+
558
+ var hasRequiredReact;
559
+
560
+ function requireReact () {
561
+ if (hasRequiredReact) return react.exports;
562
+ hasRequiredReact = 1;
563
+
564
+ {
565
+ react.exports = requireReact_production();
566
+ }
567
+ return react.exports;
568
+ }
569
+
570
+ export { getDefaultExportFromCjs as g, requireReact as r };