@tonyclaw/llm-inspector 1.9.8 → 1.10.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.
Files changed (93) hide show
  1. package/.output/nitro.json +3 -3
  2. package/.output/public/assets/{index-NIg9RFlA.js → index-BFuUQkWu.js} +3 -3
  3. package/.output/public/assets/index-F2ojFPJp.css +1 -0
  4. package/.output/public/assets/index-nKnhyW4Y.js +122 -0
  5. package/.output/server/_libs/@radix-ui/react-accessible-icon+[...].mjs +1 -1
  6. package/.output/server/_libs/@radix-ui/react-navigation-menu+[...].mjs +2 -1
  7. package/.output/server/_libs/@radix-ui/react-one-time-password-field+[...].mjs +2 -1
  8. package/.output/server/_libs/@radix-ui/react-password-toggle-field+[...].mjs +2 -1
  9. package/.output/server/_libs/@radix-ui/react-use-effect-event+[...].mjs +1 -1
  10. package/.output/server/_libs/@radix-ui/react-use-is-hydrated+[...].mjs +1 -1
  11. package/.output/server/_libs/ajv-formats.mjs +3 -3
  12. package/.output/server/_libs/ajv.mjs +819 -6183
  13. package/.output/server/_libs/extend.mjs +1 -1
  14. package/.output/server/_libs/fast-uri.mjs +3 -3
  15. package/.output/server/_libs/floating-ui__core.mjs +18 -17
  16. package/.output/server/_libs/floating-ui__dom.mjs +24 -20
  17. package/.output/server/_libs/floating-ui__react-dom.mjs +55 -28
  18. package/.output/server/_libs/floating-ui__utils.mjs +36 -36
  19. package/.output/server/_libs/inherits.mjs +1 -1
  20. package/.output/server/_libs/isbot.mjs +3 -2
  21. package/.output/server/_libs/json-schema-traverse.mjs +1 -90
  22. package/.output/server/_libs/jszip.mjs +103 -101
  23. package/.output/server/_libs/lie.mjs +1 -1
  24. package/.output/server/_libs/mdast-util-from-markdown.mjs +1 -1
  25. package/.output/server/_libs/pako.mjs +28 -28
  26. package/.output/server/_libs/property-information.mjs +13 -1
  27. package/.output/server/_libs/radix-ui__react-accordion.mjs +1 -1
  28. package/.output/server/_libs/radix-ui__react-alert-dialog.mjs +1 -1
  29. package/.output/server/_libs/radix-ui__react-aspect-ratio.mjs +1 -1
  30. package/.output/server/_libs/radix-ui__react-avatar.mjs +1 -1
  31. package/.output/server/_libs/radix-ui__react-checkbox.mjs +1 -1
  32. package/.output/server/_libs/radix-ui__react-context-menu.mjs +1 -1
  33. package/.output/server/_libs/radix-ui__react-dropdown-menu.mjs +1 -1
  34. package/.output/server/_libs/radix-ui__react-form.mjs +1 -1
  35. package/.output/server/_libs/radix-ui__react-hover-card.mjs +1 -1
  36. package/.output/server/_libs/radix-ui__react-label.mjs +1 -1
  37. package/.output/server/_libs/radix-ui__react-menu.mjs +1 -1
  38. package/.output/server/_libs/radix-ui__react-menubar.mjs +1 -1
  39. package/.output/server/_libs/radix-ui__react-popover.mjs +1 -1
  40. package/.output/server/_libs/radix-ui__react-progress.mjs +1 -1
  41. package/.output/server/_libs/radix-ui__react-radio-group.mjs +1 -1
  42. package/.output/server/_libs/radix-ui__react-slider.mjs +1 -1
  43. package/.output/server/_libs/radix-ui__react-switch.mjs +1 -1
  44. package/.output/server/_libs/radix-ui__react-toast.mjs +2 -1
  45. package/.output/server/_libs/radix-ui__react-toggle-group.mjs +1 -1
  46. package/.output/server/_libs/radix-ui__react-toggle.mjs +1 -1
  47. package/.output/server/_libs/radix-ui__react-toolbar.mjs +1 -1
  48. package/.output/server/_libs/react-dom.mjs +14 -14
  49. package/.output/server/_libs/react-remove-scroll.mjs +1 -1
  50. package/.output/server/_libs/react.mjs +5 -5
  51. package/.output/server/_libs/readable-stream.mjs +36 -36
  52. package/.output/server/_libs/semver.mjs +138 -125
  53. package/.output/server/_libs/setimmediate.mjs +152 -1
  54. package/.output/server/_libs/style-to-js.mjs +3 -3
  55. package/.output/server/_libs/style-to-object.mjs +1 -1
  56. package/.output/server/_libs/swr.mjs +1 -0
  57. package/.output/server/_libs/tailwind-merge.mjs +286 -41
  58. package/.output/server/_libs/tanstack__react-router.mjs +1 -1
  59. package/.output/server/_libs/tanstack__react-store.mjs +1 -1
  60. package/.output/server/_libs/tanstack__react-virtual.mjs +82 -7
  61. package/.output/server/_libs/tanstack__virtual-core.mjs +58 -17
  62. package/.output/server/_libs/tslib.mjs +1 -576
  63. package/.output/server/_libs/ungap__structured-clone.mjs +14 -2
  64. package/.output/server/_libs/use-sidecar.mjs +1 -1
  65. package/.output/server/_libs/use-sync-external-store.mjs +3 -3
  66. package/.output/server/_ssr/{index-BnKtV0Rq.mjs → index-XyU4WVWt.mjs} +270 -83
  67. package/.output/server/_ssr/index.mjs +4 -4
  68. package/.output/server/_ssr/{router-CQ7QyRWm.mjs → router-BR4XO8XJ.mjs} +231 -33
  69. package/.output/server/_tanstack-start-manifest_v-DFoSjBkb.mjs +4 -0
  70. package/.output/server/index.mjs +121 -137
  71. package/.output/server/node_modules/tslib/modules/index.js +70 -0
  72. package/.output/server/node_modules/tslib/modules/package.json +3 -0
  73. package/.output/server/node_modules/tslib/package.json +47 -0
  74. package/.output/server/node_modules/tslib/tslib.js +484 -0
  75. package/.output/server/package.json +9 -0
  76. package/package.json +3 -3
  77. package/src/components/providers/SettingsDialog.tsx +60 -0
  78. package/src/components/proxy-viewer/ConversationGroup.tsx +7 -2
  79. package/src/components/proxy-viewer/ConversationHeader.tsx +53 -0
  80. package/src/components/proxy-viewer/LogEntry.tsx +67 -7
  81. package/src/components/proxy-viewer/LogEntryHeader.tsx +21 -18
  82. package/src/components/proxy-viewer/ReplayDialog.tsx +3 -3
  83. package/src/lib/runtimeConfig.ts +15 -0
  84. package/src/lib/useStripConfig.ts +86 -0
  85. package/src/proxy/claudeCodeStrip.ts +102 -0
  86. package/src/proxy/config.ts +176 -0
  87. package/src/proxy/constants.ts +11 -0
  88. package/src/proxy/handler.ts +23 -1
  89. package/src/routes/api/config.ts +45 -0
  90. package/.output/public/assets/index-Cc1oV0hF.css +0 -1
  91. package/.output/public/assets/index-DuukpBQJ.js +0 -122
  92. package/.output/server/_tanstack-start-manifest_v-CKgCX0Gs.mjs +0 -4
  93. /package/.output/server/_libs/{unctx.mjs → ocache.mjs} +0 -0
@@ -90,7 +90,7 @@ function requireExtend() {
90
90
  };
91
91
  return extend$1;
92
92
  }
93
- var extendExports = /* @__PURE__ */ requireExtend();
93
+ var extendExports = requireExtend();
94
94
  const extend = /* @__PURE__ */ getDefaultExportFromCjs(extendExports);
95
95
  export {
96
96
  extend as e
@@ -317,7 +317,7 @@ var hasRequiredSchemes;
317
317
  function requireSchemes() {
318
318
  if (hasRequiredSchemes) return schemes;
319
319
  hasRequiredSchemes = 1;
320
- const { isUUID } = /* @__PURE__ */ requireUtils();
320
+ const { isUUID } = requireUtils();
321
321
  const URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
322
322
  const supportedSchemeNames = (
323
323
  /** @type {const} */
@@ -526,8 +526,8 @@ var hasRequiredFastUri;
526
526
  function requireFastUri() {
527
527
  if (hasRequiredFastUri) return fastUri.exports;
528
528
  hasRequiredFastUri = 1;
529
- const { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, escapePreservingEscapes, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = /* @__PURE__ */ requireUtils();
530
- const { SCHEMES, getSchemeHandler } = /* @__PURE__ */ requireSchemes();
529
+ const { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, escapePreservingEscapes, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = requireUtils();
530
+ const { SCHEMES, getSchemeHandler } = requireSchemes();
531
531
  function normalize(uri, options) {
532
532
  if (typeof uri === "string") {
533
533
  uri = /** @type {T} */
@@ -1,4 +1,4 @@
1
- import { g as getSideAxis, a as getAlignmentAxis, b as getSide, c as getAlignment, e as evaluate, d as getPaddingObject, r as rectToClientRect, f as clamp, h as getOppositePlacement, i as getExpandedPlacements, j as getOppositeAxisPlacements, k as getAlignmentSides, m as min, l as max, n as getAxisLength, o as getOppositeAxis, s as sides } from "./floating-ui__utils.mjs";
1
+ import { g as getSideAxis, a as getAlignmentAxis, b as getSide, c as getAlignment, e as evaluate, d as getPaddingObject, r as rectToClientRect, f as getAxisLength, h as clamp, i as getOppositePlacement, j as getExpandedPlacements, k as getOppositeAxisPlacements, l as getAlignmentSides, m as min, n as max, o as getOppositeAxis, s as sides } from "./floating-ui__utils.mjs";
2
2
  function computeCoordsFromPlacement(_ref, placement, rtl) {
3
3
  let {
4
4
  reference,
@@ -110,6 +110,7 @@ async function detectOverflow(state, options) {
110
110
  right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
111
111
  };
112
112
  }
113
+ const MAX_RESET_COUNT = 50;
113
114
  const computePosition = async (reference, floating, config) => {
114
115
  const {
115
116
  placement = "bottom",
@@ -117,7 +118,10 @@ const computePosition = async (reference, floating, config) => {
117
118
  middleware = [],
118
119
  platform
119
120
  } = config;
120
- const validMiddleware = middleware.filter(Boolean);
121
+ const platformWithDetectOverflow = platform.detectOverflow ? platform : {
122
+ ...platform,
123
+ detectOverflow
124
+ };
121
125
  const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));
122
126
  let rects = await platform.getElementRects({
123
127
  reference,
@@ -129,14 +133,17 @@ const computePosition = async (reference, floating, config) => {
129
133
  y
130
134
  } = computeCoordsFromPlacement(rects, placement, rtl);
131
135
  let statefulPlacement = placement;
132
- let middlewareData = {};
133
136
  let resetCount = 0;
134
- for (let i = 0; i < validMiddleware.length; i++) {
135
- var _platform$detectOverf;
137
+ const middlewareData = {};
138
+ for (let i = 0; i < middleware.length; i++) {
139
+ const currentMiddleware = middleware[i];
140
+ if (!currentMiddleware) {
141
+ continue;
142
+ }
136
143
  const {
137
144
  name,
138
145
  fn
139
- } = validMiddleware[i];
146
+ } = currentMiddleware;
140
147
  const {
141
148
  x: nextX,
142
149
  y: nextY,
@@ -150,10 +157,7 @@ const computePosition = async (reference, floating, config) => {
150
157
  strategy,
151
158
  middlewareData,
152
159
  rects,
153
- platform: {
154
- ...platform,
155
- detectOverflow: (_platform$detectOverf = platform.detectOverflow) != null ? _platform$detectOverf : detectOverflow
156
- },
160
+ platform: platformWithDetectOverflow,
157
161
  elements: {
158
162
  reference,
159
163
  floating
@@ -161,14 +165,11 @@ const computePosition = async (reference, floating, config) => {
161
165
  });
162
166
  x = nextX != null ? nextX : x;
163
167
  y = nextY != null ? nextY : y;
164
- middlewareData = {
165
- ...middlewareData,
166
- [name]: {
167
- ...middlewareData[name],
168
- ...data
169
- }
168
+ middlewareData[name] = {
169
+ ...middlewareData[name],
170
+ ...data
170
171
  };
171
- if (reset && resetCount <= 50) {
172
+ if (reset && resetCount < MAX_RESET_COUNT) {
172
173
  resetCount++;
173
174
  if (typeof reset === "object") {
174
175
  if (reset.placement) {
@@ -1,5 +1,5 @@
1
1
  import { c as computePosition$1, o as offset$1, s as shift$1, f as flip$1, a as size$1, h as hide$1, b as arrow$1, l as limitShift$1 } from "./floating-ui__core.mjs";
2
- import { p as isElement, q as getDocumentElement, t as getOverflowAncestors, u as getComputedStyle$1, v as isHTMLElement, w as createCoords, x as round, y as getWindow, z as isTopLayer, A as getParentNode, B as isLastTraversableNode, C as isTableElement, D as isContainingBlock, E as getContainingBlock, l as max, m as min, F as getNodeName, G as isOverflowElement, H as getNodeScroll, I as getFrameElement, r as rectToClientRect, J as floor, K as isWebKit } from "./floating-ui__utils.mjs";
2
+ import { p as isElement, q as getDocumentElement, t as getOverflowAncestors, u as getComputedStyle$1, v as isHTMLElement, w as createCoords, x as round, y as getWindow, z as isTopLayer, A as getParentNode, B as isLastTraversableNode, C as isTableElement, D as isContainingBlock, E as getContainingBlock, n as max, m as min, F as getNodeName, G as isOverflowElement, H as getNodeScroll, I as getFrameElement, r as rectToClientRect, J as floor, K as isWebKit } from "./floating-ui__utils.mjs";
3
3
  function getCssDimensions(element) {
4
4
  const css = getComputedStyle$1(element);
5
5
  let width = parseFloat(css.width) || 0;
@@ -157,7 +157,7 @@ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
157
157
  if (getNodeName(offsetParent) !== "body" || isOverflowElement(documentElement)) {
158
158
  scroll = getNodeScroll(offsetParent);
159
159
  }
160
- if (isHTMLElement(offsetParent)) {
160
+ if (isOffsetParentAnElement) {
161
161
  const offsetRect = getBoundingClientRect(offsetParent);
162
162
  scale = getScale(offsetParent);
163
163
  offsets.x = offsetRect.x + offsetParent.clientLeft;
@@ -231,7 +231,6 @@ function getViewportRect(element, strategy) {
231
231
  y
232
232
  };
233
233
  }
234
- const absoluteOrFixed = /* @__PURE__ */ new Set(["absolute", "fixed"]);
235
234
  function getInnerBoundingClientRect(element, strategy) {
236
235
  const clientRect = getBoundingClientRect(element, true, strategy === "fixed");
237
236
  const top = clientRect.top + element.clientTop;
@@ -289,7 +288,7 @@ function getClippingElementAncestors(element, cache) {
289
288
  if (!currentNodeIsContaining && computedStyle.position === "fixed") {
290
289
  currentContainingBlockComputedStyle = null;
291
290
  }
292
- const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === "static" && !!currentContainingBlockComputedStyle && absoluteOrFixed.has(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
291
+ const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === "static" && !!currentContainingBlockComputedStyle && (currentContainingBlockComputedStyle.position === "absolute" || currentContainingBlockComputedStyle.position === "fixed") || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
293
292
  if (shouldDropCurrentNode) {
294
293
  result = result.filter((ancestor) => ancestor !== currentNode);
295
294
  } else {
@@ -309,20 +308,23 @@ function getClippingRect(_ref) {
309
308
  } = _ref;
310
309
  const elementClippingAncestors = boundary === "clippingAncestors" ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);
311
310
  const clippingAncestors = [...elementClippingAncestors, rootBoundary];
312
- const firstClippingAncestor = clippingAncestors[0];
313
- const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {
314
- const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);
315
- accRect.top = max(rect.top, accRect.top);
316
- accRect.right = min(rect.right, accRect.right);
317
- accRect.bottom = min(rect.bottom, accRect.bottom);
318
- accRect.left = max(rect.left, accRect.left);
319
- return accRect;
320
- }, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));
311
+ const firstRect = getClientRectFromClippingAncestor(element, clippingAncestors[0], strategy);
312
+ let top = firstRect.top;
313
+ let right = firstRect.right;
314
+ let bottom = firstRect.bottom;
315
+ let left = firstRect.left;
316
+ for (let i = 1; i < clippingAncestors.length; i++) {
317
+ const rect = getClientRectFromClippingAncestor(element, clippingAncestors[i], strategy);
318
+ top = max(rect.top, top);
319
+ right = min(rect.right, right);
320
+ bottom = min(rect.bottom, bottom);
321
+ left = max(rect.left, left);
322
+ }
321
323
  return {
322
- width: clippingRect.right - clippingRect.left,
323
- height: clippingRect.bottom - clippingRect.top,
324
- x: clippingRect.left,
325
- y: clippingRect.top
324
+ width: right - left,
325
+ height: bottom - top,
326
+ x: left,
327
+ y: top
326
328
  };
327
329
  }
328
330
  function getDimensions(element) {
@@ -531,7 +533,7 @@ function autoUpdate(reference, floating, update, options) {
531
533
  animationFrame = false
532
534
  } = options;
533
535
  const referenceEl = unwrapElement(reference);
534
- const ancestors = ancestorScroll || ancestorResize ? [...referenceEl ? getOverflowAncestors(referenceEl) : [], ...getOverflowAncestors(floating)] : [];
536
+ const ancestors = ancestorScroll || ancestorResize ? [...referenceEl ? getOverflowAncestors(referenceEl) : [], ...floating ? getOverflowAncestors(floating) : []] : [];
535
537
  ancestors.forEach((ancestor) => {
536
538
  ancestorScroll && ancestor.addEventListener("scroll", update, {
537
539
  passive: true
@@ -544,7 +546,7 @@ function autoUpdate(reference, floating, update, options) {
544
546
  if (elementResize) {
545
547
  resizeObserver = new ResizeObserver((_ref) => {
546
548
  let [firstEntry] = _ref;
547
- if (firstEntry && firstEntry.target === referenceEl && resizeObserver) {
549
+ if (firstEntry && firstEntry.target === referenceEl && resizeObserver && floating) {
548
550
  resizeObserver.unobserve(floating);
549
551
  cancelAnimationFrame(reobserveFrame);
550
552
  reobserveFrame = requestAnimationFrame(() => {
@@ -557,7 +559,9 @@ function autoUpdate(reference, floating, update, options) {
557
559
  if (referenceEl && !animationFrame) {
558
560
  resizeObserver.observe(referenceEl);
559
561
  }
560
- resizeObserver.observe(floating);
562
+ if (floating) {
563
+ resizeObserver.observe(floating);
564
+ }
561
565
  }
562
566
  let frameId;
563
567
  let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
@@ -252,34 +252,61 @@ const arrow$1 = (options) => {
252
252
  }
253
253
  };
254
254
  };
255
- const offset = (options, deps) => ({
256
- ...offset$1(options),
257
- options: [options, deps]
258
- });
259
- const shift = (options, deps) => ({
260
- ...shift$1(options),
261
- options: [options, deps]
262
- });
263
- const limitShift = (options, deps) => ({
264
- ...limitShift$1(options),
265
- options: [options, deps]
266
- });
267
- const flip = (options, deps) => ({
268
- ...flip$1(options),
269
- options: [options, deps]
270
- });
271
- const size = (options, deps) => ({
272
- ...size$1(options),
273
- options: [options, deps]
274
- });
275
- const hide = (options, deps) => ({
276
- ...hide$1(options),
277
- options: [options, deps]
278
- });
279
- const arrow = (options, deps) => ({
280
- ...arrow$1(options),
281
- options: [options, deps]
282
- });
255
+ const offset = (options, deps) => {
256
+ const result = offset$1(options);
257
+ return {
258
+ name: result.name,
259
+ fn: result.fn,
260
+ options: [options, deps]
261
+ };
262
+ };
263
+ const shift = (options, deps) => {
264
+ const result = shift$1(options);
265
+ return {
266
+ name: result.name,
267
+ fn: result.fn,
268
+ options: [options, deps]
269
+ };
270
+ };
271
+ const limitShift = (options, deps) => {
272
+ const result = limitShift$1(options);
273
+ return {
274
+ fn: result.fn,
275
+ options: [options, deps]
276
+ };
277
+ };
278
+ const flip = (options, deps) => {
279
+ const result = flip$1(options);
280
+ return {
281
+ name: result.name,
282
+ fn: result.fn,
283
+ options: [options, deps]
284
+ };
285
+ };
286
+ const size = (options, deps) => {
287
+ const result = size$1(options);
288
+ return {
289
+ name: result.name,
290
+ fn: result.fn,
291
+ options: [options, deps]
292
+ };
293
+ };
294
+ const hide = (options, deps) => {
295
+ const result = hide$1(options);
296
+ return {
297
+ name: result.name,
298
+ fn: result.fn,
299
+ options: [options, deps]
300
+ };
301
+ };
302
+ const arrow = (options, deps) => {
303
+ const result = arrow$1(options);
304
+ return {
305
+ name: result.name,
306
+ fn: result.fn,
307
+ options: [options, deps]
308
+ };
309
+ };
283
310
  export {
284
311
  size as a,
285
312
  arrow as b,
@@ -13,10 +13,6 @@ const oppositeSideMap = {
13
13
  bottom: "top",
14
14
  top: "bottom"
15
15
  };
16
- const oppositeAlignmentMap = {
17
- start: "end",
18
- end: "start"
19
- };
20
16
  function clamp(start, value, end) {
21
17
  return max(start, min(value, end));
22
18
  }
@@ -35,9 +31,9 @@ function getOppositeAxis(axis) {
35
31
  function getAxisLength(axis) {
36
32
  return axis === "y" ? "height" : "width";
37
33
  }
38
- const yAxisSides = /* @__PURE__ */ new Set(["top", "bottom"]);
39
34
  function getSideAxis(placement) {
40
- return yAxisSides.has(getSide(placement)) ? "y" : "x";
35
+ const firstChar = placement[0];
36
+ return firstChar === "t" || firstChar === "b" ? "y" : "x";
41
37
  }
42
38
  function getAlignmentAxis(placement) {
43
39
  return getOppositeAxis(getSideAxis(placement));
@@ -60,7 +56,7 @@ function getExpandedPlacements(placement) {
60
56
  return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
61
57
  }
62
58
  function getOppositeAlignmentPlacement(placement) {
63
- return placement.replace(/start|end/g, (alignment) => oppositeAlignmentMap[alignment]);
59
+ return placement.includes("start") ? placement.replace("start", "end") : placement.replace("end", "start");
64
60
  }
65
61
  const lrPlacement = ["left", "right"];
66
62
  const rlPlacement = ["right", "left"];
@@ -91,7 +87,8 @@ function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
91
87
  return list;
92
88
  }
93
89
  function getOppositePlacement(placement) {
94
- return placement.replace(/left|right|bottom|top/g, (side) => oppositeSideMap[side]);
90
+ const side = getSide(placement);
91
+ return oppositeSideMap[side] + placement.slice(side.length);
95
92
  }
96
93
  function expandPaddingObject(padding) {
97
94
  return {
@@ -169,7 +166,6 @@ function isShadowRoot(value) {
169
166
  }
170
167
  return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
171
168
  }
172
- const invalidOverflowDisplayValues = /* @__PURE__ */ new Set(["inline", "contents"]);
173
169
  function isOverflowElement(element) {
174
170
  const {
175
171
  overflow,
@@ -177,29 +173,31 @@ function isOverflowElement(element) {
177
173
  overflowY,
178
174
  display
179
175
  } = getComputedStyle(element);
180
- return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !invalidOverflowDisplayValues.has(display);
176
+ return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && display !== "inline" && display !== "contents";
181
177
  }
182
- const tableElements = /* @__PURE__ */ new Set(["table", "td", "th"]);
183
178
  function isTableElement(element) {
184
- return tableElements.has(getNodeName(element));
179
+ return /^(table|td|th)$/.test(getNodeName(element));
185
180
  }
186
- const topLayerSelectors = [":popover-open", ":modal"];
187
181
  function isTopLayer(element) {
188
- return topLayerSelectors.some((selector) => {
189
- try {
190
- return element.matches(selector);
191
- } catch (_e) {
192
- return false;
182
+ try {
183
+ if (element.matches(":popover-open")) {
184
+ return true;
193
185
  }
194
- });
186
+ } catch (_e) {
187
+ }
188
+ try {
189
+ return element.matches(":modal");
190
+ } catch (_e) {
191
+ return false;
192
+ }
195
193
  }
196
- const transformProperties = ["transform", "translate", "scale", "rotate", "perspective"];
197
- const willChangeValues = ["transform", "translate", "scale", "rotate", "perspective", "filter"];
198
- const containValues = ["paint", "layout", "strict", "content"];
194
+ const willChangeRe = /transform|translate|scale|rotate|perspective|filter/;
195
+ const containRe = /paint|layout|strict|content/;
196
+ const isNotNone = (value) => !!value && value !== "none";
197
+ let isWebKitValue;
199
198
  function isContainingBlock(elementOrCss) {
200
- const webkit = isWebKit();
201
199
  const css = isElement(elementOrCss) ? getComputedStyle(elementOrCss) : elementOrCss;
202
- return transformProperties.some((value) => css[value] ? css[value] !== "none" : false) || (css.containerType ? css.containerType !== "normal" : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== "none" : false) || !webkit && (css.filter ? css.filter !== "none" : false) || willChangeValues.some((value) => (css.willChange || "").includes(value)) || containValues.some((value) => (css.contain || "").includes(value));
200
+ return isNotNone(css.transform) || isNotNone(css.translate) || isNotNone(css.scale) || isNotNone(css.rotate) || isNotNone(css.perspective) || !isWebKit() && (isNotNone(css.backdropFilter) || isNotNone(css.filter)) || willChangeRe.test(css.willChange || "") || containRe.test(css.contain || "");
203
201
  }
204
202
  function getContainingBlock(element) {
205
203
  let currentNode = getParentNode(element);
@@ -214,12 +212,13 @@ function getContainingBlock(element) {
214
212
  return null;
215
213
  }
216
214
  function isWebKit() {
217
- if (typeof CSS === "undefined" || !CSS.supports) return false;
218
- return CSS.supports("-webkit-backdrop-filter", "none");
215
+ if (isWebKitValue == null) {
216
+ isWebKitValue = typeof CSS !== "undefined" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none");
217
+ }
218
+ return isWebKitValue;
219
219
  }
220
- const lastTraversableNodeNames = /* @__PURE__ */ new Set(["html", "body", "#document"]);
221
220
  function isLastTraversableNode(node) {
222
- return lastTraversableNodeNames.has(getNodeName(node));
221
+ return /^(html|body|#document)$/.test(getNodeName(node));
223
222
  }
224
223
  function getComputedStyle(element) {
225
224
  return getWindow(element).getComputedStyle(element);
@@ -273,8 +272,9 @@ function getOverflowAncestors(node, list, traverseIframes) {
273
272
  if (isBody) {
274
273
  const frameElement = getFrameElement(win);
275
274
  return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);
275
+ } else {
276
+ return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
276
277
  }
277
- return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
278
278
  }
279
279
  function getFrameElement(win) {
280
280
  return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
@@ -296,15 +296,15 @@ export {
296
296
  getAlignment as c,
297
297
  getPaddingObject as d,
298
298
  evaluate as e,
299
- clamp as f,
299
+ getAxisLength as f,
300
300
  getSideAxis as g,
301
- getOppositePlacement as h,
302
- getExpandedPlacements as i,
303
- getOppositeAxisPlacements as j,
304
- getAlignmentSides as k,
305
- max as l,
301
+ clamp as h,
302
+ getOppositePlacement as i,
303
+ getExpandedPlacements as j,
304
+ getOppositeAxisPlacements as k,
305
+ getAlignmentSides as l,
306
306
  min as m,
307
- getAxisLength as n,
307
+ max as n,
308
308
  getOppositeAxis as o,
309
309
  isElement as p,
310
310
  getDocumentElement as q,
@@ -41,7 +41,7 @@ function requireInherits() {
41
41
  if (typeof util.inherits !== "function") throw "";
42
42
  inherits.exports = util.inherits;
43
43
  } catch (e) {
44
- inherits.exports = /* @__PURE__ */ requireInherits_browser();
44
+ inherits.exports = requireInherits_browser();
45
45
  }
46
46
  return inherits.exports;
47
47
  }
@@ -1,4 +1,4 @@
1
- var fullPattern = " daum[ /]| deusu/|(?:^|[^g])news(?!sapphire)|(?<! (?:channel/|google/))google(?!(app|/google| pixel))|(?<! cu)bots?(?:\\b|_)|(?<!(?:lib))http|(?<![hg]m)score|(?<!cam)scan|24x7|@[a-z][\\w-]+\\.|\\(\\)|\\.com\\b|\\b\\w+\\.ai|\\bmanus-user/|\\bort/|\\bperl\\b|\\bsecurityheaders\\b|\\btime/|\\||^[\\w \\.\\-\\(?:\\):%]+(?:/v?\\d+(?:\\.\\d+)?(?:\\.\\d{1,10})*?)?(?:,|$)|^[^ ]{50,}$|^\\d+\\b|^\\W|^\\w*search\\b|^\\w+/[\\w\\(\\)]*$|^\\w+/\\d\\.\\d\\s\\([\\w@]+\\)$|^active|^ad muncher|^amaya|^apache/|^avsdevicesdk/|^azure|^biglotron|^bot|^bw/|^clamav[ /]|^client/|^cobweb/|^custom|^ddg[_-]android|^discourse|^dispatch/\\d|^downcast/|^duckduckgo|^email|^facebook|^getright/|^gozilla/|^hobbit|^hotzonu|^hwcdn/|^igetter/|^jeode/|^jetty/|^jigsaw|^microsoft bits|^movabletype|^mozilla/\\d\\.\\d\\s[\\w\\.-]+$|^mozilla/\\d\\.\\d\\s\\(compatible;?(?:\\s[\\w\\d-.]+\\/\\d+\\.\\d+)?\\)$|^navermailapp|^netsurf|^offline|^openai/|^owler|^php|^postman|^python|^rank|^read|^reed|^rest|^rss|^snapchat|^space bison|^svn|^swcd |^taringa|^thumbor/|^track|^w3c|^webbandit/|^webcopier|^wget|^whatsapp|^wordpress|^xenu link sleuth|^yahoo|^yandex|^zdm/\\d|^zoom marketplace/|advisor|agent\\b|analyzer|archive|ask jeeves/teoma|audit|bit\\.ly/|bluecoat drtr|browsex|burpcollaborator|capture|catch|check\\b|checker|chrome-lighthouse|chromeframe|classifier|cloudflare|convertify|crawl|cypress/|dareboost|datanyze|dejaclick|detect|dmbrowser|download|exaleadcloudview|feed|fetcher|firephp|functionize|grab|headless|httrack|hubspot marketing grader|ibisbrowser|infrawatch|insight|inspect|iplabel|java(?!;)|library|linkcheck|mail\\.ru/|manager|measure|monitor\\b|neustar wpm|node\\b|nutch|offbyone|onetrust|optimize|pageburst|pagespeed|parser|phantomjs|pingdom|powermarks|preview|proxy|ptst[ /]\\d|retriever|rexx;|rigor|rss\\b|scrape|server|sogou|sparkler/|speedcurve|spider|splash|statuscake|supercleaner|synapse|synthetic|tools|torrent|transcoder|url|validator|virtuoso|wappalyzer|webglance|webkit2png|whatcms/|xtate/";
1
+ var fullPattern = " daum[ /]| deusu/|(?:^|[^g])news(?!sapphire)|(?<! (?:channel/|google/))google(?!(app|/google| pixel))|(?<! cu)bots?(?:\\b|_)|(?<!(?:lib))http|(?<!cam)scan|24x7|@[a-z][\\w-]+\\.|\\(\\)|\\.com\\b|\\b\\w+\\.ai|\\bcursor/|\\bmanus-user/|\\bort/|\\bperl\\b|\\bplaywright\\b|\\bsecurityheaders\\b|\\bselenium\\b|\\btime/|\\||^[\\w \\.\\-\\(?:\\):%]+(?:/v?\\d+(?:\\.\\d+)?(?:\\.\\d{1,10})*?)?(?:,|$)|^[\\w\\-]+/[\\w]+$|^[^ ]{50,}$|^\\d+\\b|^\\W|^\\w*search\\b|^\\w+/[\\w\\(\\)]*$|^\\w+/\\d\\.\\d\\s\\([\\w@]+\\)$|^active|^ad muncher|^amaya|^apache/|^avsdevicesdk/|^azure|^biglotron|^bot|^bw/|^clamav[ /]|^claude-code/|^client/|^cobweb/|^custom|^ddg[_-]android|^discourse|^dispatch/\\d|^downcast/|^duckduckgo|^email|^facebook|^getright/|^gozilla/|^hobbit|^hotzonu|^hwcdn/|^igetter/|^jeode/|^jetty/|^jigsaw|^microsoft bits|^movabletype|^mozilla/\\d\\.\\d\\s[\\w\\.-]+$|^mozilla/\\d\\.\\d\\s\\((?:compatible;)?(?:\\s?[\\w\\d-.]+\\/\\d+\\.\\d+)?\\)$|^navermailapp|^netsurf|^offline|^openai/|^owler|^php|^postman|^python|^rank|^read|^reed|^rest|^rss|^snapchat|^space bison|^svn|^swcd |^taringa|^thumbor/|^track|^w3c|^webbandit/|^webcopier|^wget|^whatsapp|^wordpress|^xenu link sleuth|^yahoo|^yandex|^zdm/\\d|^zoom marketplace/|advisor|agent\\b|analyzer|archive|ask jeeves/teoma|audit|bit\\.ly/|bluecoat drtr|browsex|burpcollaborator|capture|catch|check\\b|checker|chrome-lighthouse|chromeframe|classifier|cloudflare|convertify|crawl|cypress/|dareboost|datanyze|dejaclick|detect|dmbrowser|download|exaleadcloudview|feed|fetcher|firephp|functionize|grab|headless|httrack|hubspot marketing grader|ibisbrowser|infrawatch|insight|inspect|iplabel|java(?!;)|library|linkcheck|mail\\.ru/|manager|measure|monitor\\b|neustar wpm|node\\b|nutch|offbyone|onetrust|optimize|pageburst|pagespeed|parser|phantomjs|pingdom|powermarks|preview|proxy|ptst[ /]\\d|retriever|rexx;|rigor|rss\\b|scrape|server|sogou|sparkler/|speedcurve|spider|splash|statuscake|supercleaner|synapse|synthetic|tools|torrent|transcoder|url|validator|virtuoso|wappalyzer|webglance|webkit2png|whatcms/|xtate/";
2
2
  var naivePattern = /bot|crawl|http|lighthouse|scan|search|spider/i;
3
3
  var pattern;
4
4
  function getPattern() {
@@ -12,8 +12,9 @@ function getPattern() {
12
12
  }
13
13
  return pattern;
14
14
  }
15
+ var isNonEmptyString = (value) => typeof value === "string" && value !== "";
15
16
  function isbot(userAgent) {
16
- return Boolean(userAgent) && getPattern().test(userAgent);
17
+ return isNonEmptyString(userAgent) && getPattern().test(userAgent);
17
18
  }
18
19
  export {
19
20
  isbot as i
@@ -1,91 +1,3 @@
1
- var jsonSchemaTraverse$1 = { exports: {} };
2
- var hasRequiredJsonSchemaTraverse$1;
3
- function requireJsonSchemaTraverse$1() {
4
- if (hasRequiredJsonSchemaTraverse$1) return jsonSchemaTraverse$1.exports;
5
- hasRequiredJsonSchemaTraverse$1 = 1;
6
- var traverse = jsonSchemaTraverse$1.exports = function(schema, opts, cb) {
7
- if (typeof opts == "function") {
8
- cb = opts;
9
- opts = {};
10
- }
11
- cb = opts.cb || cb;
12
- var pre = typeof cb == "function" ? cb : cb.pre || function() {
13
- };
14
- var post = cb.post || function() {
15
- };
16
- _traverse(opts, pre, post, schema, "", schema);
17
- };
18
- traverse.keywords = {
19
- additionalItems: true,
20
- items: true,
21
- contains: true,
22
- additionalProperties: true,
23
- propertyNames: true,
24
- not: true,
25
- if: true,
26
- then: true,
27
- else: true
28
- };
29
- traverse.arrayKeywords = {
30
- items: true,
31
- allOf: true,
32
- anyOf: true,
33
- oneOf: true
34
- };
35
- traverse.propsKeywords = {
36
- $defs: true,
37
- definitions: true,
38
- properties: true,
39
- patternProperties: true,
40
- dependencies: true
41
- };
42
- traverse.skipKeywords = {
43
- default: true,
44
- enum: true,
45
- const: true,
46
- required: true,
47
- maximum: true,
48
- minimum: true,
49
- exclusiveMaximum: true,
50
- exclusiveMinimum: true,
51
- multipleOf: true,
52
- maxLength: true,
53
- minLength: true,
54
- pattern: true,
55
- format: true,
56
- maxItems: true,
57
- minItems: true,
58
- uniqueItems: true,
59
- maxProperties: true,
60
- minProperties: true
61
- };
62
- function _traverse(opts, pre, post, schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex) {
63
- if (schema && typeof schema == "object" && !Array.isArray(schema)) {
64
- pre(schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex);
65
- for (var key in schema) {
66
- var sch = schema[key];
67
- if (Array.isArray(sch)) {
68
- if (key in traverse.arrayKeywords) {
69
- for (var i = 0; i < sch.length; i++)
70
- _traverse(opts, pre, post, sch[i], jsonPtr + "/" + key + "/" + i, rootSchema, jsonPtr, key, schema, i);
71
- }
72
- } else if (key in traverse.propsKeywords) {
73
- if (sch && typeof sch == "object") {
74
- for (var prop in sch)
75
- _traverse(opts, pre, post, sch[prop], jsonPtr + "/" + key + "/" + escapeJsonPtr(prop), rootSchema, jsonPtr, key, schema, prop);
76
- }
77
- } else if (key in traverse.keywords || opts.allKeys && !(key in traverse.skipKeywords)) {
78
- _traverse(opts, pre, post, sch, jsonPtr + "/" + key, rootSchema, jsonPtr, key, schema);
79
- }
80
- }
81
- post(schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex);
82
- }
83
- }
84
- function escapeJsonPtr(str) {
85
- return str.replace(/~/g, "~0").replace(/\//g, "~1");
86
- }
87
- return jsonSchemaTraverse$1.exports;
88
- }
89
1
  var jsonSchemaTraverse = { exports: {} };
90
2
  var hasRequiredJsonSchemaTraverse;
91
3
  function requireJsonSchemaTraverse() {
@@ -175,6 +87,5 @@ function requireJsonSchemaTraverse() {
175
87
  return jsonSchemaTraverse.exports;
176
88
  }
177
89
  export {
178
- requireJsonSchemaTraverse as a,
179
- requireJsonSchemaTraverse$1 as r
90
+ requireJsonSchemaTraverse as r
180
91
  };