@opentiny/webmcp-cli 0.0.9 → 0.1.0-beta.1

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.
@@ -3104,9 +3104,9 @@
3104
3104
  }
3105
3105
  });
3106
3106
 
3107
- // ../../node_modules/.pnpm/fast-uri@3.1.8/node_modules/fast-uri/lib/utils.js
3107
+ // ../../node_modules/.pnpm/fast-uri@3.1.9/node_modules/fast-uri/lib/utils.js
3108
3108
  var require_utils = __commonJS({
3109
- "../../node_modules/.pnpm/fast-uri@3.1.8/node_modules/fast-uri/lib/utils.js"(exports, module) {
3109
+ "../../node_modules/.pnpm/fast-uri@3.1.9/node_modules/fast-uri/lib/utils.js"(exports, module) {
3110
3110
  "use strict";
3111
3111
  var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
3112
3112
  var isIPv4 = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);
@@ -3338,6 +3338,37 @@
3338
3338
  }
3339
3339
  return output.join("");
3340
3340
  }
3341
+ function removeDotSegmentsRelative(path) {
3342
+ if (path === "" || path[0] === "/") {
3343
+ return removeDotSegments(path);
3344
+ }
3345
+ const segments = path.split("/");
3346
+ const last = segments.length - 1;
3347
+ const output = [];
3348
+ let trailingDirectory = false;
3349
+ for (let i = 0; i <= last; i++) {
3350
+ const segment = segments[i];
3351
+ if (segment === "." || segment === "..") {
3352
+ if (segment === "..") {
3353
+ if (output.length !== 0 && output[output.length - 1] !== "..") {
3354
+ output.pop();
3355
+ } else {
3356
+ output.push("..");
3357
+ }
3358
+ }
3359
+ trailingDirectory = i === last;
3360
+ } else {
3361
+ output.push(segment);
3362
+ }
3363
+ }
3364
+ if (trailingDirectory && output[output.length - 1] !== "..") {
3365
+ output.push("");
3366
+ }
3367
+ if (output.length === 0 || output[0] === "" || output[0].includes(":")) {
3368
+ output.unshift(".");
3369
+ }
3370
+ return output.join("/");
3371
+ }
3341
3372
  var HOST_DELIMS = { "@": "%40", "/": "%2F", "?": "%3F", "#": "%23", ":": "%3A" };
3342
3373
  var HOST_DELIM_RE = /[@/?#:]/g;
3343
3374
  var HOST_DELIM_NO_COLON_RE = /[@/?#]/g;
@@ -3598,6 +3629,7 @@
3598
3629
  encodeFragment,
3599
3630
  escapePreservingEscapes,
3600
3631
  removeDotSegments,
3632
+ removeDotSegmentsRelative,
3601
3633
  isIPv4,
3602
3634
  isUUID,
3603
3635
  normalizeIPv6,
@@ -3606,9 +3638,9 @@
3606
3638
  }
3607
3639
  });
3608
3640
 
3609
- // ../../node_modules/.pnpm/fast-uri@3.1.8/node_modules/fast-uri/lib/schemes.js
3641
+ // ../../node_modules/.pnpm/fast-uri@3.1.9/node_modules/fast-uri/lib/schemes.js
3610
3642
  var require_schemes = __commonJS({
3611
- "../../node_modules/.pnpm/fast-uri@3.1.8/node_modules/fast-uri/lib/schemes.js"(exports, module) {
3643
+ "../../node_modules/.pnpm/fast-uri@3.1.9/node_modules/fast-uri/lib/schemes.js"(exports, module) {
3612
3644
  "use strict";
3613
3645
  var { isUUID } = require_utils();
3614
3646
  var URN_REG = /^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu;
@@ -3817,20 +3849,22 @@
3817
3849
  }
3818
3850
  });
3819
3851
 
3820
- // ../../node_modules/.pnpm/fast-uri@3.1.8/node_modules/fast-uri/index.js
3852
+ // ../../node_modules/.pnpm/fast-uri@3.1.9/node_modules/fast-uri/index.js
3821
3853
  var require_fast_uri = __commonJS({
3822
- "../../node_modules/.pnpm/fast-uri@3.1.8/node_modules/fast-uri/index.js"(exports, module) {
3854
+ "../../node_modules/.pnpm/fast-uri@3.1.9/node_modules/fast-uri/index.js"(exports, module) {
3823
3855
  "use strict";
3824
- var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, serializePathEncoding, normalizeQueryFragmentEncoding, encodeQuery, encodeFragment, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils();
3856
+ var { normalizeIPv6, removeDotSegments, removeDotSegmentsRelative, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, serializePathEncoding, normalizeQueryFragmentEncoding, encodeQuery, encodeFragment, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils();
3825
3857
  var { SCHEMES, getSchemeHandler } = require_schemes();
3826
3858
  var VALID_SCHEME = /^[A-Za-z][A-Za-z0-9+.-]*$/u;
3827
3859
  var MALFORMED_SCHEME_ERROR = "URI scheme is malformed.";
3828
- function decodeValidScheme(scheme) {
3829
- const decodedScheme = unescape(String(scheme));
3830
- if (!VALID_SCHEME.test(decodedScheme)) {
3860
+ var MALFORMED_HOST_ERROR = "URI host is malformed.";
3861
+ var FORBIDDEN_DOMAIN_HOST_CHARACTER = /[\0-\x20"#/:<>?@[\\\]^`{|}\x7F]/u;
3862
+ function validateScheme(scheme) {
3863
+ const stringScheme = String(scheme);
3864
+ if (!VALID_SCHEME.test(stringScheme)) {
3831
3865
  throw new TypeError(MALFORMED_SCHEME_ERROR);
3832
3866
  }
3833
- return decodedScheme;
3867
+ return stringScheme;
3834
3868
  }
3835
3869
  function normalize(uri, options) {
3836
3870
  if (typeof uri === "string") {
@@ -3867,6 +3901,9 @@
3867
3901
  const resolvedSchemeHandler = getSchemeHandler(options && options.scheme || resolved.scheme);
3868
3902
  const resolvedHost = resolved.host;
3869
3903
  const resolvedHostIsIP = resolvedHost !== void 0 && resolvedHost !== "" && (isIPv4(resolvedHost) || normalizeIPv6(resolvedHost).isIPV6);
3904
+ if (hasForbiddenDomainHost(resolved, options || {}, resolvedSchemeHandler, resolvedHostIsIP)) {
3905
+ throw new Error(MALFORMED_HOST_ERROR);
3906
+ }
3870
3907
  canonicalizeHost(resolved, options || {}, resolvedSchemeHandler, resolvedHostIsIP);
3871
3908
  const encodedASCIIHost = resolvedHost && resolvedHost.indexOf("%") !== -1 && !new RegExp("\\P{ASCII}", "u").test(resolvedHost);
3872
3909
  if (resolved.error && !encodedASCIIHost) {
@@ -3908,14 +3945,15 @@
3908
3945
  if (relative.path[0] === "/") {
3909
3946
  target.path = removeDotSegments(relative.path);
3910
3947
  } else {
3911
- if ((base.userinfo !== void 0 || base.host !== void 0 || base.port !== void 0) && !base.path) {
3948
+ const baseHasAuthority = base.userinfo !== void 0 || base.host !== void 0 || base.port !== void 0;
3949
+ if (baseHasAuthority && !base.path) {
3912
3950
  target.path = "/" + relative.path;
3913
3951
  } else if (!base.path) {
3914
3952
  target.path = relative.path;
3915
3953
  } else {
3916
3954
  target.path = base.path.slice(0, base.path.lastIndexOf("/") + 1) + relative.path;
3917
3955
  }
3918
- target.path = removeDotSegments(target.path);
3956
+ target.path = base.scheme === void 0 && !baseHasAuthority && target.path[0] !== "/" ? removeDotSegmentsRelative(target.path) : removeDotSegments(target.path);
3919
3957
  }
3920
3958
  target.query = relative.query;
3921
3959
  }
@@ -3953,12 +3991,13 @@
3953
3991
  const options = Object.assign({}, opts);
3954
3992
  const uriTokens = [];
3955
3993
  if (component.scheme) {
3956
- component.scheme = decodeValidScheme(component.scheme);
3994
+ component.scheme = validateScheme(component.scheme);
3957
3995
  }
3958
3996
  const schemeHandler = getSchemeHandler(options.scheme || component.scheme);
3959
3997
  if (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(component, options);
3960
3998
  const hasAuthority = component.userinfo !== void 0 || component.host !== void 0 || component.port !== void 0;
3961
- const pathNoScheme = !options.skipEscape && component.scheme === void 0 && !hasAuthority;
3999
+ const schemelessReference = (component.scheme === void 0 || options.reference === "suffix") && !hasAuthority;
4000
+ const pathNoScheme = !options.skipEscape && schemelessReference;
3962
4001
  if (component.path !== void 0) {
3963
4002
  if (!options.skipEscape) {
3964
4003
  component.path = serializePathEncoding(component.path, pathNoScheme);
@@ -3967,7 +4006,7 @@
3967
4006
  }
3968
4007
  }
3969
4008
  if (options.reference !== "suffix" && component.scheme) {
3970
- component.scheme = decodeValidScheme(component.scheme);
4009
+ component.scheme = validateScheme(component.scheme);
3971
4010
  uriTokens.push(component.scheme, ":");
3972
4011
  }
3973
4012
  const authority = recomposeAuthority(component);
@@ -3983,9 +4022,9 @@
3983
4022
  if (component.path !== void 0) {
3984
4023
  let s = component.path;
3985
4024
  if (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) {
3986
- s = removeDotSegments(s);
4025
+ s = schemelessReference && s[0] !== "/" ? removeDotSegmentsRelative(s) : removeDotSegments(s);
3987
4026
  }
3988
- if (pathNoScheme) {
4027
+ if (schemelessReference) {
3989
4028
  s = serializePathEncoding(s, true);
3990
4029
  }
3991
4030
  if (authority === void 0 && s[0] === "/" && s[1] === "/") {
@@ -4032,16 +4071,34 @@
4032
4071
  return hasMalformedPercentEncoding(matches2[3]) || host !== void 0 && !isIPLiteral(host) && hasMalformedPercentEncoding(host) || hasMalformedPercentEncoding(matches2[6]) || hasMalformedPercentEncoding(matches2[7]) || hasMalformedPercentEncoding(matches2[8]);
4033
4072
  }
4034
4073
  function canonicalizeHost(parsed, options, schemeHandler, isIP) {
4074
+ if (hasForbiddenDomainHost(parsed, options, schemeHandler, isIP)) {
4075
+ parsed.error = parsed.error || MALFORMED_HOST_ERROR;
4076
+ return true;
4077
+ }
4035
4078
  if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport) && parsed.host && !isIPLiteral(parsed.host) && (options.domainHost || schemeHandler && schemeHandler.domainHost) && isIP === false && nonSimpleDomain(parsed.host)) {
4079
+ let url2;
4036
4080
  try {
4037
- parsed.host = new URL("http://" + parsed.host).hostname;
4081
+ url2 = new URL("http://" + parsed.host);
4038
4082
  } catch (e) {
4039
4083
  parsed.error = parsed.error || "Host's domain name can not be converted to ASCII: " + e;
4040
4084
  return true;
4041
4085
  }
4086
+ if (!isHostOnlyURL(url2)) {
4087
+ parsed.error = parsed.error || MALFORMED_HOST_ERROR;
4088
+ return true;
4089
+ }
4090
+ parsed.host = url2.hostname;
4042
4091
  }
4043
4092
  return false;
4044
4093
  }
4094
+ function hasForbiddenDomainHost(parsed, options, schemeHandler, isIP) {
4095
+ return Boolean(
4096
+ parsed.host && isIP === false && !isIPLiteral(parsed.host) && (options.domainHost || schemeHandler && schemeHandler.domainHost) && FORBIDDEN_DOMAIN_HOST_CHARACTER.test(parsed.host)
4097
+ );
4098
+ }
4099
+ function isHostOnlyURL(url2) {
4100
+ return url2.username === "" && url2.password === "" && url2.port === "" && url2.pathname === "/" && url2.search === "" && url2.hash === "" && url2.hostname !== "";
4101
+ }
4045
4102
  function parseWithStatus(uri, opts) {
4046
4103
  const options = Object.assign({}, opts);
4047
4104
  const parsed = {
@@ -4096,9 +4153,8 @@
4096
4153
  parsed.query = matches2[7];
4097
4154
  parsed.fragment = matches2[8];
4098
4155
  if (parsed.scheme !== void 0) {
4099
- const decodedScheme = unescape(parsed.scheme);
4100
- if (VALID_SCHEME.test(decodedScheme)) {
4101
- parsed.scheme = decodedScheme.toLowerCase();
4156
+ if (VALID_SCHEME.test(parsed.scheme)) {
4157
+ parsed.scheme = parsed.scheme.toLowerCase();
4102
4158
  } else {
4103
4159
  parsed.error = parsed.error || MALFORMED_SCHEME_ERROR;
4104
4160
  malformedScheme = true;
@@ -4126,7 +4182,7 @@
4126
4182
  malformedIPLiteral = hasIPLiteralBracket && (!bracketedIPLiteral || ipv6result.error === true);
4127
4183
  parsed.host = isIP ? ipv6result.host : ipv6result.host.toLowerCase();
4128
4184
  if (malformedIPLiteral) {
4129
- parsed.error = parsed.error || "URI host is malformed.";
4185
+ parsed.error = parsed.error || MALFORMED_HOST_ERROR;
4130
4186
  malformedAuthorityOrPort = true;
4131
4187
  }
4132
4188
  } else {
@@ -4154,7 +4210,7 @@
4154
4210
  if (!isIP) {
4155
4211
  host = normalizePercentEncoding(host.toLowerCase());
4156
4212
  }
4157
- parsed.host = reescapeHostDelimiters(host, isIP);
4213
+ parsed.host = isIP || options.scheme !== "null" ? reescapeHostDelimiters(host, isIP) : host;
4158
4214
  }
4159
4215
  if (!schemeHandler || schemeHandler && !schemeHandler.skipNormalize) {
4160
4216
  if (parsed.path) {
@@ -18193,7 +18249,7 @@ gl_Position = vec4(aPosition, 0.0, 1.0);
18193
18249
  // ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/classic/external.js
18194
18250
  config(en_default2());
18195
18251
 
18196
- // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.25.3_@cfworker+json-schema@4.1.1_hono@4.13.8_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
18252
+ // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.25.3_@cfworker+json-schema@4.1.6_hono@4.13.17_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
18197
18253
  var RELATED_TASK_META_KEY = "io.modelcontextprotocol/related-task";
18198
18254
  var JSONRPC_VERSION = "2.0";
18199
18255
  var AssertObjectSchema = custom2((v) => v !== null && (typeof v === "object" || typeof v === "function"));
@@ -20946,14 +21002,14 @@ gl_Position = vec4(aPosition, 0.0, 1.0);
20946
21002
  return combined;
20947
21003
  };
20948
21004
 
20949
- // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.25.3_@cfworker+json-schema@4.1.1_hono@4.13.8_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js
21005
+ // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.25.3_@cfworker+json-schema@4.1.6_hono@4.13.17_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js
20950
21006
  var import_ajv_formats = __toESM(require_dist(), 1);
20951
21007
 
20952
21008
  // ../../node_modules/.pnpm/pkce-challenge@5.0.1/node_modules/pkce-challenge/dist/index.browser.js
20953
21009
  var crypto2;
20954
21010
  crypto2 = globalThis.crypto;
20955
21011
 
20956
- // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.25.3_@cfworker+json-schema@4.1.1_hono@4.13.8_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js
21012
+ // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.25.3_@cfworker+json-schema@4.1.6_hono@4.13.17_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js
20957
21013
  var SafeUrlSchema = url().superRefine((val, ctx) => {
20958
21014
  if (!URL.canParse(val)) {
20959
21015
  ctx.addIssue({
@@ -21097,7 +21153,7 @@ gl_Position = vec4(aPosition, 0.0, 1.0);
21097
21153
  token_type_hint: string2().optional()
21098
21154
  }).strip();
21099
21155
 
21100
- // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.25.3_@cfworker+json-schema@4.1.1_hono@4.13.8_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/errors.js
21156
+ // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.25.3_@cfworker+json-schema@4.1.6_hono@4.13.17_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/errors.js
21101
21157
  var OAuthError = class extends Error {
21102
21158
  constructor(message, errorUri) {
21103
21159
  super(message);
@@ -21192,7 +21248,7 @@ gl_Position = vec4(aPosition, 0.0, 1.0);
21192
21248
  [InvalidTargetError.errorCode]: InvalidTargetError
21193
21249
  };
21194
21250
 
21195
- // ../../node_modules/.pnpm/@opentiny+next@0.3.2_@cfworker+json-schema@4.1.1_hono@4.13.8_zod@3.25.76/node_modules/@opentiny/next/index.js
21251
+ // ../../node_modules/.pnpm/@opentiny+next@0.3.2_@cfworker+json-schema@4.1.6_hono@4.13.17_zod@3.25.76/node_modules/@opentiny/next/index.js
21196
21252
  var _0x4f2826 = _0xad7a;
21197
21253
  (function(_0x5153c5, _0x3abbea) {
21198
21254
  const _0x5f186f = _0xad7a, _0x3f8155 = _0xad7a, _0x5ad68c = _0x5153c5();
@@ -21516,7 +21572,7 @@ gl_Position = vec4(aPosition, 0.0, 1.0);
21516
21572
  }, _0x275e(_0x25fced, _0x3ae797);
21517
21573
  }
21518
21574
 
21519
- // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.25.3_@cfworker+json-schema@4.1.1_hono@4.13.8_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js
21575
+ // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.25.3_@cfworker+json-schema@4.1.6_hono@4.13.17_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js
21520
21576
  var COMPLETABLE_SYMBOL = Symbol.for("mcp.completable");
21521
21577
  var McpZodTypeKind;
21522
21578
  (function(McpZodTypeKind2) {
@@ -25135,22 +25191,21 @@ ${pi.pixels_above > 4 && viewportExpansion !== -1 ? `... ${pi.pixels_above} pixe
25135
25191
  };
25136
25192
  }
25137
25193
 
25138
- // ../../node_modules/.pnpm/tabbable@6.5.0/node_modules/tabbable/dist/index.esm.js
25194
+ // ../../node_modules/.pnpm/tabbable@6.5.1/node_modules/tabbable/dist/index.esm.js
25139
25195
  var candidateSelectors = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert] *)", "textarea:not([inert]):not([inert] *)", "a[href]:not([inert]):not([inert] *)", "area[href]:not([inert]):not([inert] *)", "button:not([inert]):not([inert] *)", "[tabindex]:not(slot):not([inert]):not([inert] *)", "audio[controls]:not([inert]):not([inert] *)", "video[controls]:not([inert]):not([inert] *)", '[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)', "details>summary:first-of-type:not([inert]):not([inert] *)", "details:not([inert]):not([inert] *)"];
25140
25196
  var candidateSelector = /* @__PURE__ */ candidateSelectors.join(",");
25141
25197
  var NoElement = typeof Element === "undefined";
25142
25198
  var matches = NoElement ? function() {
25143
25199
  } : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
25144
25200
  var getRootNode = !NoElement && Element.prototype.getRootNode ? function(element) {
25145
- var _element$getRootNode;
25146
- return element === null || element === void 0 ? void 0 : (_element$getRootNode = element.getRootNode) === null || _element$getRootNode === void 0 ? void 0 : _element$getRootNode.call(element);
25201
+ return element == null || element.getRootNode == null ? void 0 : element.getRootNode();
25147
25202
  } : function(element) {
25148
- return element === null || element === void 0 ? void 0 : element.ownerDocument;
25203
+ return element == null ? void 0 : element.ownerDocument;
25149
25204
  };
25150
25205
  var isContentEditable = function isContentEditable2(node) {
25151
- var _node$getAttribute2;
25152
- var attValue = node === null || node === void 0 ? void 0 : (_node$getAttribute2 = node.getAttribute) === null || _node$getAttribute2 === void 0 ? void 0 : _node$getAttribute2.call(node, "contenteditable");
25153
- return attValue === "" || attValue === "true";
25206
+ var _node$getAttribute;
25207
+ var attValue = node == null || node.getAttribute == null || (_node$getAttribute = node.getAttribute("contenteditable")) == null ? void 0 : _node$getAttribute.toLowerCase();
25208
+ return attValue === "" || attValue === "true" || attValue === "plaintext-only";
25154
25209
  };
25155
25210
  var hasTabIndex = function hasTabIndex2(node) {
25156
25211
  return !isNaN(parseInt(node.getAttribute("tabindex"), 10));
@@ -25216,16 +25271,16 @@ ${pi.pixels_above > 4 && viewportExpansion !== -1 ? `... ${pi.pixels_above} pixe
25216
25271
  var isNodeAttached = function isNodeAttached2(node) {
25217
25272
  var _nodeRoot;
25218
25273
  var nodeRoot = node && getRootNode(node);
25219
- var nodeRootHost = (_nodeRoot = nodeRoot) === null || _nodeRoot === void 0 ? void 0 : _nodeRoot.host;
25274
+ var nodeRootHost = (_nodeRoot = nodeRoot) == null ? void 0 : _nodeRoot.host;
25220
25275
  var attached = false;
25221
25276
  if (nodeRoot && nodeRoot !== node) {
25222
- var _nodeRootHost, _nodeRootHost$ownerDo, _node$ownerDocument;
25223
- attached = !!((_nodeRootHost = nodeRootHost) !== null && _nodeRootHost !== void 0 && (_nodeRootHost$ownerDo = _nodeRootHost.ownerDocument) !== null && _nodeRootHost$ownerDo !== void 0 && _nodeRootHost$ownerDo.contains(nodeRootHost) || node !== null && node !== void 0 && (_node$ownerDocument = node.ownerDocument) !== null && _node$ownerDocument !== void 0 && _node$ownerDocument.contains(node));
25277
+ var _nodeRootHost, _node$ownerDocument;
25278
+ attached = !!((_nodeRootHost = nodeRootHost) != null && (_nodeRootHost = _nodeRootHost.ownerDocument) != null && _nodeRootHost.contains(nodeRootHost) || node != null && (_node$ownerDocument = node.ownerDocument) != null && _node$ownerDocument.contains(node));
25224
25279
  while (!attached && nodeRootHost) {
25225
- var _nodeRoot2, _nodeRootHost2, _nodeRootHost2$ownerD;
25280
+ var _nodeRoot2, _nodeRootHost2;
25226
25281
  nodeRoot = getRootNode(nodeRootHost);
25227
- nodeRootHost = (_nodeRoot2 = nodeRoot) === null || _nodeRoot2 === void 0 ? void 0 : _nodeRoot2.host;
25228
- attached = !!((_nodeRootHost2 = nodeRootHost) !== null && _nodeRootHost2 !== void 0 && (_nodeRootHost2$ownerD = _nodeRootHost2.ownerDocument) !== null && _nodeRootHost2$ownerD !== void 0 && _nodeRootHost2$ownerD.contains(nodeRootHost));
25282
+ nodeRootHost = (_nodeRoot2 = nodeRoot) == null ? void 0 : _nodeRoot2.host;
25283
+ attached = !!((_nodeRootHost2 = nodeRootHost) != null && (_nodeRootHost2 = _nodeRootHost2.ownerDocument) != null && _nodeRootHost2.contains(nodeRootHost));
25229
25284
  }
25230
25285
  }
25231
25286
  return attached;
@@ -27899,10 +27954,15 @@ ${pi.pixels_above > 4 && viewportExpansion !== -1 ? `... ${pi.pixels_above} pixe
27899
27954
  try {
27900
27955
  const motion = new Motion({
27901
27956
  mode: isPageDark2() ? "dark" : "light",
27902
- styles: { position: "absolute", inset: "0" },
27903
- glowWidth: 80,
27957
+ styles: {
27958
+ position: "fixed",
27959
+ inset: "0"
27960
+ },
27961
+ colors: ["rgb(65, 205, 252)", "rgb(137, 237, 24)", "rgb(254, 76, 70)", "rgb(240, 36, 233)"],
27904
27962
  borderWidth: 8,
27905
- colors: ["rgb(121, 216, 247)", "rgb(171, 219, 110)", "rgb(252, 188, 114)", "rgb(235, 117, 231)"]
27963
+ // 边框厚度(默认:8)
27964
+ glowWidth: 60
27965
+ // 发光效果宽度(默认:200)
27906
27966
  });
27907
27967
  this.motion = motion;
27908
27968
  this.wrapper.appendChild(motion.element);
@@ -28069,7 +28129,7 @@ ${pi.pixels_above > 4 && viewportExpansion !== -1 ? `... ${pi.pixels_above} pixe
28069
28129
  el.style.pointerEvents = "none";
28070
28130
  el.style.zIndex = "10000";
28071
28131
  el.style.border = `${borderWidth}px solid transparent`;
28072
- el.style.borderImageSource = "linear-gradient(to bottom right, #79D8F7, #ABDB6E, #FCBC72, #FA8682, #EB75E7)";
28132
+ el.style.borderImageSource = "linear-gradient(to bottom right, #79D8F7, #A8DB6E, #FCBC72, #FA8682, #EB75E7)";
28073
28133
  el.style.borderImageSlice = "1";
28074
28134
  el.style.borderImageWidth = `${borderWidth}px`;
28075
28135
  this.wrapper.appendChild(el);
@@ -29042,7 +29102,7 @@ ai-motion/build/Motion.js:
29042
29102
 
29043
29103
  tabbable/dist/index.esm.js:
29044
29104
  (*!
29045
- * tabbable 6.5.0
29105
+ * tabbable 6.5.1
29046
29106
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
29047
29107
  *)
29048
29108
  */