@nuxt/scripts 0.3.2 → 0.3.4

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 (62) hide show
  1. package/dist/client/200.html +5 -5
  2. package/dist/client/404.html +5 -5
  3. package/dist/client/_nuxt/{5Hk8ESNW.js → B4lN06_-.js} +1 -1
  4. package/dist/client/_nuxt/{TwOttoDL.js → Bcyt2NVQ.js} +1 -1
  5. package/dist/client/_nuxt/{DeEC_XNp.js → DaX43REz.js} +1 -1
  6. package/dist/client/_nuxt/builds/latest.json +1 -1
  7. package/dist/client/_nuxt/builds/meta/d2381002-a578-4bfe-a659-00ae20f09aa2.json +1 -0
  8. package/dist/client/_nuxt/oEMCrPza.js +31 -0
  9. package/dist/client/index.html +5 -5
  10. package/dist/module.d.mts +2 -2
  11. package/dist/module.d.ts +2 -2
  12. package/dist/module.json +1 -1
  13. package/dist/module.mjs +60 -32
  14. package/dist/registry.d.mts +2 -2
  15. package/dist/registry.d.ts +2 -2
  16. package/dist/registry.mjs +16 -16
  17. package/dist/runtime/components/ScriptGoogleMaps.vue +264 -0
  18. package/dist/runtime/components/ScriptLemonSqueezyButton.vue +42 -0
  19. package/dist/runtime/components/ScriptLoadingIndicator.vue +15 -0
  20. package/dist/runtime/components/ScriptStripePricingTable.vue +47 -0
  21. package/dist/runtime/components/ScriptVimeoPlayer.vue +243 -0
  22. package/dist/runtime/components/ScriptYouTubePlayer.vue +160 -0
  23. package/dist/runtime/composables/useElementScriptTrigger.d.ts +3 -3
  24. package/dist/runtime/composables/useElementScriptTrigger.mjs +41 -5
  25. package/dist/runtime/composables/useScript.mjs +6 -4
  26. package/dist/runtime/registry/cloudflare-web-analytics.mjs +2 -2
  27. package/dist/runtime/registry/fathom-analytics.d.ts +2 -2
  28. package/dist/runtime/registry/fathom-analytics.mjs +2 -2
  29. package/dist/runtime/registry/google-analytics.d.ts +4 -2
  30. package/dist/runtime/registry/google-analytics.mjs +13 -8
  31. package/dist/runtime/registry/google-maps.mjs +2 -2
  32. package/dist/runtime/registry/google-tag-manager.mjs +2 -2
  33. package/dist/runtime/registry/hotjar.mjs +4 -4
  34. package/dist/runtime/registry/intercom.mjs +3 -8
  35. package/dist/runtime/registry/lemon-squeezy.d.ts +1 -2
  36. package/dist/runtime/registry/lemon-squeezy.mjs +3 -6
  37. package/dist/runtime/registry/matomo-analytics.mjs +11 -10
  38. package/dist/runtime/registry/{facebook-pixel.d.ts → meta-pixel.d.ts} +7 -7
  39. package/dist/runtime/registry/{facebook-pixel.mjs → meta-pixel.mjs} +9 -7
  40. package/dist/runtime/registry/npm.mjs +2 -2
  41. package/dist/runtime/registry/plausible-analytics.mjs +2 -2
  42. package/dist/runtime/registry/segment.d.ts +22 -9
  43. package/dist/runtime/registry/segment.mjs +43 -21
  44. package/dist/runtime/registry/stripe.mjs +4 -4
  45. package/dist/runtime/registry/vimeo-player.d.ts +6 -6
  46. package/dist/runtime/registry/vimeo-player.mjs +30 -34
  47. package/dist/runtime/registry/x-pixel.mjs +17 -13
  48. package/dist/runtime/registry/youtube-player.d.ts +14 -0
  49. package/dist/runtime/registry/{youtube-iframe.mjs → youtube-player.mjs} +22 -20
  50. package/dist/runtime/types.d.ts +33 -16
  51. package/dist/runtime/types.mjs +2 -0
  52. package/dist/runtime/utils.d.ts +3 -2
  53. package/dist/runtime/utils.mjs +15 -13
  54. package/package.json +6 -6
  55. package/dist/client/_nuxt/BxcSmj5a.js +0 -31
  56. package/dist/client/_nuxt/builds/meta/d293267d-837e-425a-bc4b-81773905567b.json +0 -1
  57. package/dist/runtime/components/GoogleMaps.vue +0 -130
  58. package/dist/runtime/components/LemonSqueezyButton.vue +0 -28
  59. package/dist/runtime/components/StripePricingTableEmbed.vue +0 -33
  60. package/dist/runtime/components/VimeoEmbed.vue +0 -161
  61. package/dist/runtime/components/YouTubeEmbed.vue +0 -79
  62. package/dist/runtime/registry/youtube-iframe.d.ts +0 -15
@@ -1,7 +1,7 @@
1
1
  <!DOCTYPE html><html><head><meta charset="utf-8">
2
2
  <meta name="viewport" content="width=device-width, initial-scale=1">
3
3
  <link rel="stylesheet" href="/__nuxt-scripts/_nuxt/entry.D91GVkD7.css">
4
- <link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BxcSmj5a.js">
4
+ <link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/oEMCrPza.js">
5
5
  <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DXFkqnOI.js">
6
6
  <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/D6NljDpC.js">
7
7
  <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/CowR2XfX.js">
@@ -239,10 +239,10 @@
239
239
  <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/V_y36BGi.js">
240
240
  <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BGq4KZyx.js">
241
241
  <link rel="prefetch" as="style" href="/__nuxt-scripts/_nuxt/error-404.BRldFSII.css">
242
- <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/5Hk8ESNW.js">
243
- <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/TwOttoDL.js">
242
+ <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/B4lN06_-.js">
243
+ <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Bcyt2NVQ.js">
244
244
  <link rel="prefetch" as="style" href="/__nuxt-scripts/_nuxt/error-500.D8yw_IbC.css">
245
- <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DeEC_XNp.js">
246
- <script type="module" src="/__nuxt-scripts/_nuxt/BxcSmj5a.js" crossorigin></script><script>"use strict";(()=>{const a=window,e=document.documentElement,c=window.localStorage,d=["dark","light"],n=c&&c.getItem&&c.getItem("nuxt-color-mode")||"system";let l=n==="system"?f():n;const i=e.getAttribute("data-color-mode-forced");i&&(l=i),r(l),a["__NUXT_COLOR_MODE__"]={preference:n,value:l,getColorScheme:f,addColorScheme:r,removeColorScheme:u};function r(o){const t=""+o+"",s="";e.classList?e.classList.add(t):e.className+=" "+t,s&&e.setAttribute("data-"+s,o)}function u(o){const t=""+o+"",s="";e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(t,"g"),""),s&&e.removeAttribute("data-"+s)}function m(o){return a.matchMedia("(prefers-color-scheme"+o+")")}function f(){if(a.matchMedia&&m("").media!=="not all"){for(const o of d)if(m(":"+o).matches)return o}return"light"}})();
245
+ <link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DaX43REz.js">
246
+ <script type="module" src="/__nuxt-scripts/_nuxt/oEMCrPza.js" crossorigin></script><script>"use strict";(()=>{const a=window,e=document.documentElement,c=window.localStorage,d=["dark","light"],n=c&&c.getItem&&c.getItem("nuxt-color-mode")||"system";let l=n==="system"?f():n;const i=e.getAttribute("data-color-mode-forced");i&&(l=i),r(l),a["__NUXT_COLOR_MODE__"]={preference:n,value:l,getColorScheme:f,addColorScheme:r,removeColorScheme:u};function r(o){const t=""+o+"",s="";e.classList?e.classList.add(t):e.className+=" "+t,s&&e.setAttribute("data-"+s,o)}function u(o){const t=""+o+"",s="";e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(t,"g"),""),s&&e.removeAttribute("data-"+s)}function m(o){return a.matchMedia("(prefers-color-scheme"+o+")")}function f(){if(a.matchMedia&&m("").media!=="not all"){for(const o of d)if(m(":"+o).matches)return o}return"light"}})();
247
247
  </script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"_errors":1,"serverRendered":2,"data":3,"state":4,"once":5},{},false,{},{},["Set"]]</script>
248
248
  <script>window.__NUXT__={};window.__NUXT__.config={public:{"nuxt-scripts":{defaultScriptOptions:{trigger:"onNuxtReady"}}},app:{baseURL:"/__nuxt-scripts",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
package/dist/module.d.mts CHANGED
@@ -1,11 +1,11 @@
1
1
  import * as nuxt_schema from 'nuxt/schema';
2
- import { ScriptRegistry, NuxtUseScriptOptions, NuxtUseScriptInput, RegistryScripts } from '#nuxt-scripts';
2
+ import { NuxtConfigScriptRegistry, NuxtUseScriptOptions, NuxtUseScriptInput, RegistryScripts } from '#nuxt-scripts';
3
3
 
4
4
  interface ModuleOptions {
5
5
  /**
6
6
  * The registry of supported third-party scripts. Loads the scripts in globally using the default script options.
7
7
  */
8
- registry?: ScriptRegistry;
8
+ registry?: NuxtConfigScriptRegistry;
9
9
  /**
10
10
  * Default options for scripts.
11
11
  */
package/dist/module.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import * as nuxt_schema from 'nuxt/schema';
2
- import { ScriptRegistry, NuxtUseScriptOptions, NuxtUseScriptInput, RegistryScripts } from '#nuxt-scripts';
2
+ import { NuxtConfigScriptRegistry, NuxtUseScriptOptions, NuxtUseScriptInput, RegistryScripts } from '#nuxt-scripts';
3
3
 
4
4
  interface ModuleOptions {
5
5
  /**
6
6
  * The registry of supported third-party scripts. Loads the scripts in globally using the default script options.
7
7
  */
8
- registry?: ScriptRegistry;
8
+ registry?: NuxtConfigScriptRegistry;
9
9
  /**
10
10
  * Default options for scripts.
11
11
  */
package/dist/module.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "nuxt": ">=3",
6
6
  "bridge": false
7
7
  },
8
- "version": "0.3.2",
8
+ "version": "0.3.4",
9
9
  "builder": {
10
10
  "@nuxt/module-builder": "0.6.0",
11
11
  "unbuild": "2.0.0"
package/dist/module.mjs CHANGED
@@ -62,10 +62,10 @@ function setupDevToolsUI(options, resolve, nuxt = useNuxt()) {
62
62
  });
63
63
  }
64
64
 
65
- function NuxtScriptAssetBundlerTransformer(options) {
65
+ function NuxtScriptBundleTransformer(options) {
66
66
  return createUnplugin(() => {
67
67
  return {
68
- name: "nuxt:scripts:asset-bundler-transformer",
68
+ name: "nuxt:scripts:bundler-transformer",
69
69
  transformInclude(id) {
70
70
  const { pathname, search } = parseURL(decodeURIComponent(pathToFileURL(id).href));
71
71
  const { type } = parseQuery(search);
@@ -96,7 +96,7 @@ function NuxtScriptAssetBundlerTransformer(options) {
96
96
  scriptSrcNode = node.arguments[0];
97
97
  } else if (node.arguments[0].type === "ObjectExpression") {
98
98
  const srcProperty = node.arguments[0].properties.find(
99
- (p) => p.key?.name === "src" || p.key?.value === "src"
99
+ (p) => (p.key?.name === "src" || p.key?.value === "src") && p?.value.type === "Literal"
100
100
  );
101
101
  scriptSrcNode = srcProperty?.value;
102
102
  }
@@ -105,21 +105,20 @@ function NuxtScriptAssetBundlerTransformer(options) {
105
105
  if (!registryNode) {
106
106
  return;
107
107
  }
108
- options.moduleDetected?.(registryNode.module);
109
108
  if (!registryNode.scriptBundling && !registryNode.src)
110
109
  return;
111
- const optionsNode = node.arguments[0];
112
- if (optionsNode?.type === "ObjectExpression") {
110
+ if (node.arguments[0]?.type === "ObjectExpression") {
111
+ const optionsNode = node.arguments[0];
113
112
  const fnArg0 = {};
114
113
  for (const prop of optionsNode.properties) {
115
- if (prop.value.type === "Literal")
114
+ if (prop.type === "Property" && prop.value.type === "Literal")
116
115
  fnArg0[prop.key.name] = prop.value.value;
117
116
  }
118
117
  const srcProperty = node.arguments[0].properties.find(
119
- (p) => p.key?.name === "src" || p.key?.value === "src"
118
+ (p) => (p.key?.name === "src" || p.key?.value === "src") && p?.value.type === "Literal" && p.type === "Property"
120
119
  );
121
120
  if (srcProperty?.value?.value) {
122
- scriptSrcNode = srcProperty.value;
121
+ scriptSrcNode = srcProperty?.value;
123
122
  } else {
124
123
  src = registryNode.scriptBundling && registryNode.scriptBundling(fnArg0);
125
124
  if (src === false)
@@ -128,31 +127,44 @@ function NuxtScriptAssetBundlerTransformer(options) {
128
127
  }
129
128
  }
130
129
  if (scriptSrcNode || src) {
131
- src = src || scriptSrcNode.value;
130
+ src = src || (typeof scriptSrcNode?.value === "string" ? scriptSrcNode?.value : false);
132
131
  if (src) {
133
132
  let canBundle = options.defaultBundle;
134
133
  if (node.arguments[1]?.type === "ObjectExpression") {
135
- const bundleProperty = node.arguments[1]?.properties.find(
136
- (p) => p.key?.name === "bundle" || p.key?.value === "bundle"
134
+ const scriptOptionsArg = node.arguments[1];
135
+ const bundleProperty = scriptOptionsArg.properties.find(
136
+ (p) => (p.key?.name === "bundle" || p.key?.value === "bundle") && p.type === "Property"
137
137
  );
138
- if (bundleProperty) {
139
- if (String(bundleProperty?.value?.value) !== "true") {
138
+ if (bundleProperty && bundleProperty.value.type === "Literal") {
139
+ const value = bundleProperty.value;
140
+ if (String(value.value) !== "true") {
140
141
  canBundle = false;
141
142
  return;
142
143
  }
143
- if (node.arguments[1]?.properties.length === 1)
144
- s.remove(node.arguments[1].start, node.arguments[1].end);
145
- else
146
- s.remove(bundleProperty.start, bundleProperty.end);
144
+ if (scriptOptionsArg.properties.length === 1) {
145
+ s.remove(scriptOptionsArg.start, scriptOptionsArg.end);
146
+ } else {
147
+ const nextProperty = scriptOptionsArg.properties.find(
148
+ (p) => p.start > bundleProperty.end && p.type === "Property"
149
+ );
150
+ s.remove(bundleProperty.start, nextProperty ? nextProperty.start : bundleProperty.end);
151
+ }
147
152
  canBundle = true;
148
153
  }
149
154
  }
150
155
  if (canBundle) {
151
156
  const newSrc = options.resolveScript(src);
157
+ if (src === newSrc) {
158
+ if (src.startsWith("/"))
159
+ console.warn(`[Nuxt Scripts: Bundle Transformer] Relative scripts are already bundled. Skipping bundling for \`${src}\`.`);
160
+ else
161
+ console.warn(`[Nuxt Scripts: Bundle Transformer] Failed to bundle ${src}.`);
162
+ }
152
163
  if (scriptSrcNode) {
153
164
  s.overwrite(scriptSrcNode.start, scriptSrcNode.end, `'${newSrc}'`);
154
165
  } else {
155
- const scriptInputProperty = node.arguments[0].properties.find(
166
+ const optionsNode = node.arguments[0];
167
+ const scriptInputProperty = optionsNode.properties.find(
156
168
  (p) => p.key?.name === "scriptInput" || p.key?.value === "scriptInput"
157
169
  );
158
170
  if (scriptInputProperty) {
@@ -287,8 +299,9 @@ function setupPublicAssetStrategy(options = {}) {
287
299
  function extendTypes(module, template) {
288
300
  const nuxt = useNuxt();
289
301
  const { resolve } = createResolver(import.meta.url);
302
+ const fileName = `${module.replace("/", "-")}.d.ts`;
290
303
  addTemplate({
291
- filename: `modules/${module.replace("/", "-")}.d.ts`,
304
+ filename: `modules/${fileName}`,
292
305
  getContents: async () => {
293
306
  const typesPath = relative(resolve(nuxt.options.rootDir, nuxt.options.buildDir, "module"), resolve("runtime/types"));
294
307
  const s = await template({ typesPath });
@@ -299,7 +312,7 @@ export {}
299
312
  }
300
313
  });
301
314
  nuxt.hooks.hook("prepare:types", ({ references }) => {
302
- references.push({ path: resolve(nuxt.options.buildDir, `module/${module}.d.ts`) });
315
+ references.push({ path: resolve(nuxt.options.buildDir, `modules/${fileName}`) });
303
316
  });
304
317
  }
305
318
  const isStackblitz = provider === "stackblitz";
@@ -372,10 +385,14 @@ const module = defineNuxtModule({
372
385
  }
373
386
  nuxt.options.alias["#nuxt-scripts-validator"] = resolve(`./runtime/validation/${nuxt.options.dev || nuxt.options._prepare ? "valibot" : "mock"}`);
374
387
  nuxt.options.alias["#nuxt-scripts"] = resolve("./runtime/types");
388
+ nuxt.options.alias["#nuxt-scripts-utils"] = resolve("./runtime/utils");
375
389
  nuxt.options.runtimeConfig["nuxt-scripts"] = { version };
376
390
  nuxt.options.runtimeConfig.public["nuxt-scripts"] = { defaultScriptOptions: config.defaultScriptOptions };
377
391
  addImportsDir([
378
- resolve("./runtime/composables")
392
+ resolve("./runtime/composables"),
393
+ // auto-imports aren't working without this for some reason
394
+ // TODO find solution as we're double-registering
395
+ resolve("./runtime/registry")
379
396
  ]);
380
397
  addComponentsDir({
381
398
  path: resolve("./runtime/components")
@@ -392,23 +409,31 @@ const module = defineNuxtModule({
392
409
  }));
393
410
  const newScripts = registryScripts.filter((i) => !scripts.some((r) => r.import.name === i.import.name));
394
411
  extendTypes(name, async ({ typesPath }) => {
395
- return `
412
+ let types = `
396
413
  declare module '#app' {
397
414
  interface NuxtApp {
398
- ${nuxt.options.dev ? `_scripts: (import('#nuxt-scripts').NuxtAppScript)[]` : ""}
415
+ _scripts: Record<string, (import('#nuxt-scripts').NuxtAppScript)>
416
+ }
417
+ interface RuntimeNuxtHooks {
418
+ 'scripts:updated': (ctx: { scripts: Record<string, (import('#nuxt-scripts').NuxtAppScript)> }) => void | Promise<void>
399
419
  }
400
420
  }
421
+ `;
422
+ if (newScripts.length) {
423
+ types = `${types}
401
424
  declare module '#nuxt-scripts' {
402
425
  type NuxtUseScriptOptions = Omit<import('${typesPath}').NuxtUseScriptOptions, 'use' | 'beforeInit'>
403
426
  interface ScriptRegistry {
404
427
  ${newScripts.map((i) => {
405
- const key = i.import.name.replace("useScript", "");
406
- const keyLcFirst = key.substring(0, 1).toLowerCase() + key.substring(1);
407
- return ` ${keyLcFirst}?: import('${i.import.from}').${key}Input | [import('${i.import.from}').${key}Input, NuxtUseScriptOptions]`;
408
- }).join("\n")}
428
+ const key = i.import.name.replace("useScript", "");
429
+ const keyLcFirst = key.substring(0, 1).toLowerCase() + key.substring(1);
430
+ return ` ${keyLcFirst}?: import('${i.import.from}').${key}Input | [import('${i.import.from}').${key}Input, NuxtUseScriptOptions]`;
431
+ }).join("\n")}
409
432
  }
410
- }
411
- `;
433
+ }`;
434
+ return types;
435
+ }
436
+ return types;
412
437
  });
413
438
  if (config.globals?.length || Object.keys(config.registry || {}).length) {
414
439
  addPluginTemplate({
@@ -420,7 +445,10 @@ ${newScripts.map((i) => {
420
445
  const importDefinition = registryScripts.find((i) => i.import.name === `useScript${k.substring(0, 1).toUpperCase() + k.substring(1)}`);
421
446
  if (importDefinition) {
422
447
  imports.unshift(importDefinition.import.name);
423
- inits.push(`${importDefinition.import.name}(${JSON.stringify(c === true ? {} : c)});`);
448
+ const args = (typeof c !== "object" ? {} : c) || {};
449
+ if (c === "mock")
450
+ args.scriptOptions = { trigger: "manual", skipValidation: true };
451
+ inits.push(`${importDefinition.import.name}(${JSON.stringify(args)});`);
424
452
  }
425
453
  }
426
454
  return `import { ${imports.join(", ")} } from '#imports'
@@ -437,7 +465,7 @@ ${(config.globals || []).map((g) => !Array.isArray(g) ? ` useScript("${g.toSt
437
465
  const scriptMap = /* @__PURE__ */ new Map();
438
466
  const { normalizeScriptData } = setupPublicAssetStrategy(config.assets);
439
467
  const moduleInstallPromises = /* @__PURE__ */ new Map();
440
- addBuildPlugin(NuxtScriptAssetBundlerTransformer({
468
+ addBuildPlugin(NuxtScriptBundleTransformer({
441
469
  scripts,
442
470
  defaultBundle: config.defaultScriptOptions?.bundle,
443
471
  moduleDetected(module) {
@@ -7,7 +7,7 @@ declare function GoogleAnalyticsScriptResolver(options?: GoogleAnalyticsInput):
7
7
  declare function PlausibleAnalyticsScriptResolver(options: PlausibleAnalyticsInput): string;
8
8
  declare function CloudflareWebAnalyticsScriptResolver(): string;
9
9
  declare function SegmentScriptResolver(options: SegmentInput): string;
10
- declare function FacebookPixelScriptResolver(): string;
10
+ declare function MetaPixelScriptResolver(): string;
11
11
  declare const registry: (resolve?: (s: string) => string) => RegistryScripts;
12
12
 
13
- export { CloudflareWebAnalyticsScriptResolver, FacebookPixelScriptResolver, GoogleAnalyticsScriptResolver, PlausibleAnalyticsScriptResolver, SegmentScriptResolver, registry };
13
+ export { CloudflareWebAnalyticsScriptResolver, GoogleAnalyticsScriptResolver, MetaPixelScriptResolver, PlausibleAnalyticsScriptResolver, SegmentScriptResolver, registry };
@@ -7,7 +7,7 @@ declare function GoogleAnalyticsScriptResolver(options?: GoogleAnalyticsInput):
7
7
  declare function PlausibleAnalyticsScriptResolver(options: PlausibleAnalyticsInput): string;
8
8
  declare function CloudflareWebAnalyticsScriptResolver(): string;
9
9
  declare function SegmentScriptResolver(options: SegmentInput): string;
10
- declare function FacebookPixelScriptResolver(): string;
10
+ declare function MetaPixelScriptResolver(): string;
11
11
  declare const registry: (resolve?: (s: string) => string) => RegistryScripts;
12
12
 
13
- export { CloudflareWebAnalyticsScriptResolver, FacebookPixelScriptResolver, GoogleAnalyticsScriptResolver, PlausibleAnalyticsScriptResolver, SegmentScriptResolver, registry };
13
+ export { CloudflareWebAnalyticsScriptResolver, GoogleAnalyticsScriptResolver, MetaPixelScriptResolver, PlausibleAnalyticsScriptResolver, SegmentScriptResolver, registry };
package/dist/registry.mjs CHANGED
@@ -15,7 +15,7 @@ function CloudflareWebAnalyticsScriptResolver() {
15
15
  function SegmentScriptResolver(options) {
16
16
  return joinURL("https://cdn.segment.com/analytics.js/v1", options?.writeKey || "", "analytics.min.js");
17
17
  }
18
- function FacebookPixelScriptResolver() {
18
+ function MetaPixelScriptResolver() {
19
19
  return "https://connect.facebook.net/en_US/fbevents.js";
20
20
  }
21
21
  const registry = (resolve) => {
@@ -25,7 +25,7 @@ const registry = (resolve) => {
25
25
  {
26
26
  label: "Google Analytics",
27
27
  category: "analytics",
28
- logo: `<svg class="w-10 h-10" xmlns="http://www.w3.org/2000/svg" width="28.85" height="32" viewBox="0 0 256 284"><path fill="#F9AB00" d="M256.003 247.933a35.224 35.224 0 0 1-39.376 35.161c-18.044-2.67-31.266-18.371-30.826-36.606V36.845C185.365 18.591 198.62 2.881 216.687.24a35.221 35.221 0 0 1 39.316 35.16z"/><path fill="#E37400" d="M35.101 213.193c19.386 0 35.101 15.716 35.101 35.101c0 19.386-15.715 35.101-35.101 35.101S0 267.68 0 248.295c0-19.386 15.715-35.102 35.101-35.102m92.358-106.387c-19.477 1.068-34.59 17.406-34.137 36.908v94.285c0 25.588 11.259 41.122 27.755 44.433a35.161 35.161 0 0 0 42.146-34.56V142.089a35.222 35.222 0 0 0-35.764-35.282"/></svg>`,
28
+ logo: `<svg xmlns="http://www.w3.org/2000/svg" width="28.85" height="32" viewBox="0 0 256 284"><path fill="#F9AB00" d="M256.003 247.933a35.224 35.224 0 0 1-39.376 35.161c-18.044-2.67-31.266-18.371-30.826-36.606V36.845C185.365 18.591 198.62 2.881 216.687.24a35.221 35.221 0 0 1 39.316 35.16z"/><path fill="#E37400" d="M35.101 213.193c19.386 0 35.101 15.716 35.101 35.101c0 19.386-15.715 35.101-35.101 35.101S0 267.68 0 248.295c0-19.386 15.715-35.102 35.101-35.102m92.358-106.387c-19.477 1.068-34.59 17.406-34.137 36.908v94.285c0 25.588 11.259 41.122 27.755 44.433a35.161 35.161 0 0 0 42.146-34.56V142.089a35.222 35.222 0 0 0-35.764-35.282"/></svg>`,
29
29
  scriptBundling: GoogleAnalyticsScriptResolver,
30
30
  import: {
31
31
  name: "useScriptGoogleAnalytics",
@@ -36,7 +36,7 @@ const registry = (resolve) => {
36
36
  label: "Plausible Analytics",
37
37
  category: "analytics",
38
38
  scriptBundling: PlausibleAnalyticsScriptResolver,
39
- logo: `<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 245.771 60"><defs><linearGradient id="a" x1="14.841" y1="22.544" x2="27.473" y2="44.649" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#909cf7"/><stop offset="1" stop-color="#4b38d8"/></linearGradient><linearGradient id="b" x1="7.984" y1="-1.358" x2="21.001" y2="21.422" xlink:href="#a"/></defs><path d="M61.426 46.517V15.968h12.961c1.833 0 3.477.43 4.932 1.288a9.576 9.576 0 0 1 3.47 3.513c.857 1.483 1.287 3.157 1.287 5.019 0 1.89-.43 3.593-1.288 5.105a9.812 9.812 0 0 1-3.47 3.6c-1.454.889-3.098 1.332-4.93 1.332h-6.416v10.692h-6.546Zm6.459-16.584h5.76c.699 0 1.324-.181 1.877-.545.552-.364.996-.851 1.33-1.462.335-.611.503-1.31.503-2.095s-.168-1.469-.502-2.05a3.962 3.962 0 0 0-1.33-1.398 3.443 3.443 0 0 0-1.877-.523h-5.761v8.073ZM88.22 46.517V14.223h6.198v32.294H88.22Zm19.813.436c-1.92 0-3.651-.524-5.193-1.57-1.543-1.048-2.765-2.473-3.666-4.278-.902-1.803-1.353-3.869-1.353-6.197 0-2.327.459-4.392 1.375-6.197.917-1.803 2.16-3.214 3.731-4.233 1.571-1.018 3.36-1.527 5.368-1.527 1.135 0 2.174.167 3.12.502a8.26 8.26 0 0 1 2.488 1.374 8.82 8.82 0 0 1 1.811 2.008 7.607 7.607 0 0 1 1.047 2.444l-1.309-.219v-5.63h6.154v23.087h-6.241v-5.543l1.396-.13a7.441 7.441 0 0 1-1.134 2.313 8.787 8.787 0 0 1-1.942 1.942 9.776 9.776 0 0 1-2.597 1.352 9.234 9.234 0 0 1-3.055.502Zm1.702-5.368c1.164 0 2.182-.276 3.055-.829.873-.552 1.55-1.33 2.03-2.334.48-1.004.72-2.175.72-3.514 0-1.309-.24-2.458-.72-3.447-.48-.99-1.157-1.768-2.03-2.335-.873-.568-1.891-.851-3.055-.851-1.135 0-2.131.283-2.99.851-.858.567-1.534 1.346-2.029 2.335-.495.99-.741 2.138-.741 3.447 0 1.339.246 2.51.741 3.514.495 1.003 1.171 1.782 2.03 2.334.858.553 1.854.83 2.989.83Zm24.7 5.368c-1.687 0-3.135-.37-4.342-1.113-1.207-.741-2.138-1.803-2.793-3.185-.654-1.382-.981-3.048-.981-4.997V23.43h6.196v13.223c0 1.047.175 1.957.524 2.728.35.77.843 1.36 1.484 1.767.64.408 1.425.611 2.356.611.67 0 1.288-.109 1.855-.327a4.308 4.308 0 0 0 2.466-2.379 4.563 4.563 0 0 0 .349-1.789V23.431h6.197v23.086h-5.891l-.219-4.757 1.135-.524a7.765 7.765 0 0 1-1.746 2.924 8.713 8.713 0 0 1-2.924 2.051 9.08 9.08 0 0 1-3.666.742Zm26.446 0c-2.153 0-4.066-.356-5.738-1.069-1.674-.713-3.019-1.695-4.037-2.946l3.884-3.316c.873.96 1.861 1.651 2.968 2.072a9.236 9.236 0 0 0 3.316.633c.437 0 .836-.05 1.2-.152s.677-.247.939-.437c.261-.189.458-.421.589-.698.13-.276.196-.574.196-.895 0-.64-.253-1.147-.785-1.483-.287-.182-.742-.372-1.353-.59s-1.397-.458-2.357-.72c-1.484-.378-2.743-.821-3.775-1.331-1.033-.508-1.855-1.083-2.465-1.724a6.829 6.829 0 0 1-1.2-1.985c-.277-.713-.415-1.506-.415-2.379 0-1.047.232-2 .698-2.858.465-.858 1.113-1.593 1.942-2.204s1.782-1.084 2.859-1.418a11.406 11.406 0 0 1 3.404-.502c1.192 0 2.356.146 3.49.436 1.135.291 2.19.706 3.165 1.244a11.344 11.344 0 0 1 2.553 1.898l-3.317 3.666a11.158 11.158 0 0 0-1.767-1.353 9.59 9.59 0 0 0-2.03-.96c-.698-.232-1.324-.349-1.876-.349-.495 0-.939.044-1.331.13-.393.088-.72.227-.982.416a1.86 1.86 0 0 0-.59.676 1.922 1.922 0 0 0-.196.873c0 .32.08.626.24.916.16.292.385.539.677.742.32.175.792.378 1.418.611.625.233 1.476.495 2.553.785 1.396.38 2.582.801 3.557 1.266.974.466 1.752 1.004 2.335 1.615.494.524.857 1.12 1.09 1.79.233.669.35 1.41.35 2.225 0 1.426-.4 2.691-1.2 3.797-.801 1.106-1.899 1.979-3.295 2.618s-2.968.96-4.714.96Zm16.322-28.235c-1.194 0-2.124-.298-2.793-.895-.67-.596-1.004-1.433-1.004-2.51 0-.988.342-1.795 1.025-2.421.684-.626 1.608-.939 2.772-.939 1.192 0 2.123.299 2.792.895.67.597 1.004 1.418 1.004 2.465 0 .99-.342 1.805-1.025 2.444-.684.64-1.608.96-2.771.96Zm-3.055 27.799V23.43h6.197v23.086h-6.197Zm25.268.436c-1.02 0-2.008-.146-2.968-.436a10.23 10.23 0 0 1-2.619-1.2 8.175 8.175 0 0 1-1.963-1.746c-.524-.655-.859-1.331-1.004-2.03l1.396-.523-.305 5.411h-5.848V14.223h6.24v14.62l-1.221-.48c.174-.7.508-1.376 1.004-2.03a7.72 7.72 0 0 1 1.876-1.746 9.853 9.853 0 0 1 2.488-1.2 9.06 9.06 0 0 1 2.793-.436c2.007 0 3.803.516 5.39 1.549 1.585 1.033 2.829 2.451 3.73 4.255.902 1.804 1.354 3.87 1.354 6.197 0 2.328-.445 4.393-1.331 6.197-.888 1.804-2.117 3.223-3.688 4.255-1.571 1.033-3.346 1.55-5.324 1.55Zm-1.484-5.28c1.163 0 2.174-.284 3.033-.851.858-.568 1.534-1.353 2.03-2.357.494-1.004.74-2.174.74-3.513 0-1.31-.239-2.473-.72-3.491-.479-1.018-1.155-1.804-2.028-2.357-.873-.552-1.892-.83-3.055-.83-1.164 0-2.182.278-3.055.83-.873.553-1.55 1.339-2.03 2.357-.48 1.018-.72 2.182-.72 3.49 0 1.34.24 2.51.72 3.514s1.157 1.79 2.03 2.357c.873.567 1.89.85 3.055.85Zm15.666 4.844V14.223h6.198v32.294h-6.198Zm22.126.436c-2.503 0-4.692-.509-6.568-1.527-1.877-1.018-3.332-2.415-4.364-4.19-1.033-1.774-1.55-3.81-1.55-6.11 0-1.803.291-3.447.873-4.93.582-1.485 1.397-2.772 2.444-3.863a10.883 10.883 0 0 1 3.732-2.531c1.44-.596 3.003-.895 4.69-.895 1.572 0 3.026.291 4.365.873a10.457 10.457 0 0 1 3.47 2.422c.974 1.033 1.723 2.255 2.247 3.666.524 1.411.756 2.931.698 4.56l-.043 1.92H227.17l-1.003-3.796h14.444l-.698.785v-.96a4.07 4.07 0 0 0-.763-2.116 4.87 4.87 0 0 0-1.724-1.484c-.699-.364-1.484-.546-2.357-.546-1.28 0-2.364.248-3.251.742-.888.495-1.564 1.222-2.03 2.182-.465.96-.698 2.124-.698 3.492 0 1.396.298 2.604.895 3.622.596 1.019 1.44 1.81 2.531 2.378 1.091.568 2.379.851 3.862.851 1.018 0 1.95-.16 2.793-.48.844-.32 1.746-.873 2.706-1.658l2.968 4.146a12.603 12.603 0 0 1-2.793 1.898c-1.02.51-2.067.895-3.142 1.157a13.462 13.462 0 0 1-3.186.392Z" style="fill:#1f2961;stroke-width:0"/><path d="M45.246 22.603C44.155 33.059 35.013 40.83 24.5 40.83h-4.047v9.57a9.6 9.6 0 0 1-9.6 9.6H3.36A3.36 3.36 0 0 1 0 56.64V36.938l5.038-7.07a3.362 3.362 0 0 1 4.037-1.149l2.866 1.2a3.353 3.353 0 0 0 4.025-1.145l6.717-9.417a3.34 3.34 0 0 1 4.014-1.14l5.52 2.32a3.347 3.347 0 0 0 4.022-1.142l6.46-9.063c2.025 3.56 3.014 7.789 2.547 12.27Z" style="stroke-width:0;fill:url(#a)"/><path d="M3.292 28.873c.823-1.155 2.021-2.044 3.414-2.312a5.41 5.41 0 0 1 3.147.316l2.865 1.2a1.357 1.357 0 0 0 1.62-.464l6.594-9.245c.823-1.154 2.02-2.041 3.412-2.309a5.368 5.368 0 0 1 3.128.314l5.52 2.32a1.35 1.35 0 0 0 1.619-.46l6.919-9.707C37.827 3.364 31.78 0 24.945 0H3.36A3.36 3.36 0 0 0 0 3.36v30.132l3.292-4.62Z" style="fill:url(#b);stroke-width:0"/></svg>`,
39
+ logo: `<svg height="32" id="Layer_2" viewBox="0 0 46 60" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><linearGradient id="New_Gradient_Swatch_1" x1="14.841" y1="22.544" x2="27.473" y2="44.649" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#909cf7"/><stop offset="1" stop-color="#4b38d8"/></linearGradient><linearGradient id="New_Gradient_Swatch_1-2" x1="7.984" y1="-1.358" x2="21.001" y2="21.422" xlink:href="#New_Gradient_Swatch_1"/><style>.cls-3{stroke-width:0;fill:#1f2961}</style></defs><g id="Plausible_-_Branding"><g id="Gradient_Logo_-_Purple_Gradient_on_White"><g id="Symbol_-_Purple_Gradient"><path d="M45.246 22.603C44.155 33.059 35.013 40.83 24.5 40.83h-4.047v9.57a9.6 9.6 0 0 1-9.6 9.6H3.36A3.36 3.36 0 0 1 0 56.64V36.938l5.038-7.07a3.362 3.362 0 0 1 4.037-1.149l2.866 1.2a3.353 3.353 0 0 0 4.025-1.145l6.717-9.417a3.34 3.34 0 0 1 4.014-1.14l5.52 2.32a3.347 3.347 0 0 0 4.022-1.142l6.46-9.063c2.025 3.56 3.014 7.789 2.547 12.27Z" style="stroke-width:0;fill:url(#New_Gradient_Swatch_1)"/><path d="M3.292 28.873c.823-1.155 2.021-2.044 3.414-2.312a5.41 5.41 0 0 1 3.147.316l2.865 1.2a1.357 1.357 0 0 0 1.62-.464l6.594-9.245c.823-1.154 2.02-2.041 3.412-2.309a5.368 5.368 0 0 1 3.128.314l5.52 2.32a1.35 1.35 0 0 0 1.619-.46l6.919-9.707C37.827 3.364 31.78 0 24.945 0H3.36A3.36 3.36 0 0 0 0 3.36v30.132l3.292-4.62Z" style="fill:url(#New_Gradient_Swatch_1-2);stroke-width:0"/></g></g></g></svg>`,
40
40
  import: {
41
41
  name: "useScriptPlausibleAnalytics",
42
42
  from: resolve("./runtime/registry/plausible-analytics")
@@ -57,10 +57,7 @@ const registry = (resolve) => {
57
57
  scriptBundling: false,
58
58
  // breaks script
59
59
  category: "analytics",
60
- logo: {
61
- light: `<svg class="block dark:hidden w-[100px]" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 523.801 234.398"><path d="M28.654 33.217V29.26a3.987 3.987 0 00-3.982-3.988h-7.633v-3.666c-.013-4.285.956-6.852 1.828-7.786l.041-.051a4.462 4.462 0 012.155-1.176 52.035 52.035 0 018.52-.661h1.466a3.987 3.987 0 003.987-3.989V4.371A3.98 3.98 0 0031.811.456 42.91 42.91 0 0030.19.175C29.437.059 25.485 0 24.71 0h3.178-3.232C18.233 0 12.764 1.5 9.102 5.429l-.006.006C5.517 9.378 4.23 14.952 4.212 21.728V96.4a3.987 3.987 0 003.989 3.987h4.85a3.985 3.985 0 003.988-3.987V37.2h7.633a3.985 3.985 0 003.987-3.987M350.483 43.425a25.751 25.751 0 011.469 9.065v43.9a3.987 3.987 0 003.989 3.989h4.725a3.987 3.987 0 003.987-3.989V51.34a35.569 35.569 0 00-2.561-14.153 21.241 21.241 0 00-8.239-9.774 24.218 24.218 0 00-13.067-3.419h-.079a25.5 25.5 0 00-13.832 3.939 26.272 26.272 0 00-7.009 6.616 20.87 20.87 0 00-6.769-7.122 23.642 23.642 0 00-12.893-3.433h-.088a25.254 25.254 0 00-13.7 3.939 24.666 24.666 0 00-3.449 2.7v-1.378a3.987 3.987 0 00-3.985-3.989h-4.723a3.985 3.985 0 00-3.993 3.989v67.14a3.987 3.987 0 003.989 3.989h4.723a3.985 3.985 0 003.988-3.989V55.679a22.417 22.417 0 011.149-6.879 22.265 22.265 0 013.357-6.5 16.707 16.707 0 015.058-4.549 12.376 12.376 0 016.363-1.568c3.243.008 5.378.723 6.868 1.827a11.546 11.546 0 013.882 5.416 25.735 25.735 0 011.469 9.064v43.9a3.987 3.987 0 003.989 3.989h4.723a3.985 3.985 0 003.987-3.989V55.679a22.294 22.294 0 011.147-6.878 22.247 22.247 0 013.358-6.5 16.683 16.683 0 015.05-4.546 12.39 12.39 0 016.364-1.568c3.245.008 5.38.723 6.865 1.827a11.516 11.516 0 013.885 5.415M211.314 96.838a32.875 32.875 0 0017.776 4.694h.077a33.139 33.139 0 0017.48-4.536 29.573 29.573 0 0011.587-13.514c2.634-5.85 3.859-12.759 3.861-20.654a50.228 50.228 0 00-3.781-20.3 30.468 30.468 0 00-11.387-13.749 32.249 32.249 0 00-17.753-4.784h-.081a33.1 33.1 0 00-17.55 4.606 29.514 29.514 0 00-11.58 13.52c-2.594 5.827-3.788 12.783-3.791 20.833a50.622 50.622 0 003.708 20.149 29.551 29.551 0 0011.434 13.735zm3.076-54.253a15.989 15.989 0 016.085-4.774 21.569 21.569 0 018.657-1.629 20.364 20.364 0 018.437 1.656 16.447 16.447 0 016.1 4.916c3.488 4.464 5.471 11.01 5.475 20.071v.013c0 9.34-1.977 15.97-5.342 20.249a15.754 15.754 0 01-6.028 4.758 21.475 21.475 0 01-8.636 1.627c-6.669-.077-11.023-2.143-14.611-6.588-3.527-4.474-5.52-10.964-5.525-19.93v-.019c0-9.418 2-16.08 5.393-20.35M141.098 96.396V55.681a20.21 20.21 0 011.241-6.774 21.428 21.428 0 013.666-6.461 17.776 17.776 0 015.7-4.595 16.041 16.041 0 017.492-1.664c3.818 0 6.519.775 8.354 1.972a11.47 11.47 0 014.427 5.405 23.032 23.032 0 011.608 8.93v43.902a3.985 3.985 0 003.989 3.987h4.85a3.982 3.982 0 003.987-3.987V51.341a32.1 32.1 0 00-2.964-14.338 22.439 22.439 0 00-8.981-9.664 27.569 27.569 0 00-13.981-3.348h-.061a28.352 28.352 0 00-14.7 3.944 27.758 27.758 0 00-4.627 3.456V4.5a3.987 3.987 0 00-3.987-3.989h-4.722A3.985 3.985 0 00128.4 4.5v91.9a3.985 3.985 0 003.989 3.987h4.722a3.985 3.985 0 003.987-3.987M116.041 100.893h.01q1.149 0 2.242-.072a9.274 9.274 0 002.8-.589 3.989 3.989 0 002.52-3.712v-3.57a3.987 3.987 0 00-3.987-3.989h-1.873a18.9 18.9 0 01-5.418-.667 4.47 4.47 0 01-2.163-1.163l-.046-.054c-.873-.937-1.843-3.5-1.828-7.787V37.204h8.266a3.987 3.987 0 003.986-3.984v-3.96a3.987 3.987 0 00-3.987-3.989h-8.266V13.689A3.987 3.987 0 00104.31 9.7h-4.85a3.985 3.985 0 00-3.989 3.989v65.476c.013 6.7 1.319 12.253 4.861 16.208 3.671 4 9.2 5.515 15.7 5.514" fill="hsla(140, 6%, 15%, 1)" /><path d="M523.065 112.594a3.985 3.985 0 00-3.251-1.68h-4.849a3.987 3.987 0 00-3.767 2.676l-30.251 86.79a3.988 3.988 0 003.767 5.3h4.85a3.985 3.985 0 003.765-2.674l30.249-86.791a3.994 3.994 0 00-.514-3.622" fill="hsla(250, 100%, 75%, 1)" /><path d="M420.54 180.661zM338.96 114.997h-4.723a3.987 3.987 0 00-3.985 3.989v7.567a3.987 3.987 0 003.989 3.987h4.723a3.985 3.985 0 003.987-3.987v-7.567a3.985 3.985 0 00-3.987-3.989M338.96 142.52h-4.723a3.985 3.985 0 00-3.985 3.989v55.181a3.987 3.987 0 003.989 3.987h4.723a3.985 3.985 0 003.988-3.987v-55.181a3.985 3.985 0 00-3.987-3.989M321.476 194.258h-1.873a18.924 18.924 0 01-5.42-.665 4.484 4.484 0 01-2.162-1.163l-.045-.056c-.874-.937-1.843-3.505-1.83-7.792v-42.08h8.266a3.985 3.985 0 003.987-3.987v-3.958a3.985 3.985 0 00-3.987-3.989h-8.266v-11.582a3.987 3.987 0 00-3.987-3.989h-4.85a3.987 3.987 0 00-3.989 3.989v65.477c.013 6.7 1.319 12.253 4.861 16.206l.006.006c3.673 4 9.2 5.519 15.713 5.515h.063c.743 0 1.468-.026 2.173-.072a9.274 9.274 0 002.8-.592 3.988 3.988 0 002.527-3.708v-3.574a3.985 3.985 0 00-3.987-3.989M289.25 130.568h-4.979a3.981 3.981 0 00-3.706 2.513l-20.289 50.982-20.813-51.014a3.981 3.981 0 00-3.693-2.481h-5.231a3.987 3.987 0 00-3.687 5.512l26.564 64.224-2.581 6.406c-1.675 4.183-3.127 7.432-4.3 9.651a17.929 17.929 0 01-2.937 4.346 3.986 3.986 0 01-2.048 1.134 25 25 0 01-4.727.369h-2.2a3.987 3.987 0 00-3.989 3.989v3.83a3.992 3.992 0 003.215 3.912c.539.105 1.142.2 1.838.3a18.24 18.24 0 002.384.163 31.961 31.961 0 007.813-.825 14.291 14.291 0 006.621-3.789 28.48 28.48 0 004.8-6.9c1.447-2.77 3.02-6.248 4.754-10.493l30.891-76.344a3.987 3.987 0 00-3.7-5.485M217.775 105.807h-4.722a3.987 3.987 0 00-3.989 3.989v91.9a3.985 3.985 0 003.989 3.987h4.722a3.987 3.987 0 003.987-3.987v-91.9a3.987 3.987 0 00-3.987-3.989M102.779 141.48c3.816 0 6.516.775 8.35 1.97a11.471 11.471 0 014.437 5.403 23.006 23.006 0 011.607 8.931v43.9a3.987 3.987 0 003.989 3.987h4.85a3.985 3.985 0 003.989-3.987v-45.046a32.144 32.144 0 00-2.964-14.338 22.447 22.447 0 00-8.982-9.665 27.565 27.565 0 00-13.971-3.342h-.078a28.693 28.693 0 00-14.665 3.86 26.927 26.927 0 00-4.657 3.435v-2.035a3.987 3.987 0 00-3.987-3.989h-4.722a3.985 3.985 0 00-3.989 3.989v67.14a3.985 3.985 0 003.989 3.987h4.722a3.985 3.985 0 003.987-3.987v-40.714a20.252 20.252 0 011.241-6.776 21.4 21.4 0 013.666-6.463 17.776 17.776 0 015.7-4.595 16.065 16.065 0 017.492-1.664M12.864 204.392a33.879 33.879 0 0013.588 2.5 30.98 30.98 0 0010.476-1.959 33.289 33.289 0 0010.3-6.075c.6-.511 1.163-1.056 1.712-1.616a18.809 18.809 0 002.326 6.6 3.959 3.959 0 003.4 1.9h.008l2.326-.025a3.988 3.988 0 003.942-3.987V159a37.382 37.382 0 00-2.9-15.276 23.016 23.016 0 00-9.461-10.687c-4.317-2.545-9.549-3.681-15.492-3.681a35.269 35.269 0 00-15.457 3.14A24.812 24.812 0 007.1 141.909l-.018.029a3.46 3.46 0 00-.515 1.816 3.638 3.638 0 002.446 3.423l3.914 1.393a5.583 5.583 0 006.2-1.753 15.946 15.946 0 011.173-1.301c2.561-2.486 6.361-3.95 12.274-3.973a21.349 21.349 0 017.486 1.166 10.23 10.23 0 014.416 3.1c2.216 2.719 3.61 6.921 3.74 12.944-5.7.089-10.753.327-15.12.735a71.036 71.036 0 00-16.135 3.358h-.018l-.046.014h-.008c-5.147 1.6-9.4 4.092-12.387 7.668A20.779 20.779 0 000 184.189v.129a22.056 22.056 0 003.39 12.215 21.118 21.118 0 009.474 7.859m32.473-20.784a23.505 23.505 0 01-7.875 8.205 19.342 19.342 0 01-10.63 3.019c-5.021-.01-8.387-1.161-10.661-3.039a8.868 8.868 0 01-2.494-3.229 11.531 11.531 0 01-.852-4.552 10.344 10.344 0 011.331-5.239c.675-1.208 2.167-2.62 4.895-3.926 2.594-1.256 6.792-2.415 12.379-3.223a138.8 138.8 0 0116.816-1.181v2.467a20.863 20.863 0 01-2.908 10.7M185.724 133.037c-4.317-2.545-9.549-3.681-15.492-3.681a35.269 35.269 0 00-15.457 3.14 24.812 24.812 0 00-10.53 9.413l-.018.029a3.431 3.431 0 00-.515 1.816 3.638 3.638 0 002.444 3.423l3.914 1.393a5.58 5.58 0 006.2-1.753 15.966 15.966 0 011.182-1.294c2.561-2.486 6.361-3.95 12.274-3.973a21.349 21.349 0 017.486 1.166 10.23 10.23 0 014.416 3.1c2.216 2.719 3.61 6.921 3.74 12.944-5.7.089-10.753.327-15.12.735a71.036 71.036 0 00-16.135 3.358l-.018.006-.046.013h-.008c-5.147 1.6-9.4 4.092-12.387 7.668a20.779 20.779 0 00-4.5 13.646v.129a22.03 22.03 0 003.39 12.215 21.114 21.114 0 009.472 7.859 33.892 33.892 0 0013.59 2.5 30.98 30.98 0 0010.476-1.959 33.289 33.289 0 0010.3-6.075c.6-.511 1.163-1.056 1.712-1.616a18.809 18.809 0 002.326 6.6 3.959 3.959 0 003.4 1.9h.008l2.334-.027a3.987 3.987 0 003.942-3.987v-42.73a37.383 37.383 0 00-2.9-15.276 23.016 23.016 0 00-9.467-10.686m-3.254 50.576a23.505 23.505 0 01-7.875 8.205 19.342 19.342 0 01-10.63 3.019c-5.021-.01-8.387-1.161-10.661-3.039a8.868 8.868 0 01-2.494-3.229 11.5 11.5 0 01-.852-4.552 10.344 10.344 0 011.331-5.239c.675-1.208 2.167-2.62 4.895-3.926 2.594-1.256 6.792-2.415 12.379-3.223a138.8 138.8 0 0116.816-1.181v2.467a20.863 20.863 0 01-2.908 10.7M30.769 91.237a21.121 21.121 0 009.472 7.857 33.892 33.892 0 0013.59 2.5 30.941 30.941 0 0010.476-1.959 33.285 33.285 0 0010.3-6.074c.6-.511 1.163-1.058 1.712-1.616a18.821 18.821 0 002.326 6.6 3.958 3.958 0 003.4 1.9h.008l2.334-.027a3.987 3.987 0 003.931-3.986V53.703a37.4 37.4 0 00-2.9-15.278 23.005 23.005 0 00-9.467-10.685c-4.317-2.545-9.549-3.682-15.492-3.682a35.27 35.27 0 00-15.447 3.141 24.8 24.8 0 00-10.53 9.413l-.018.027a3.449 3.449 0 00-.517 1.817 3.639 3.639 0 002.445 3.423l3.914 1.393a5.519 5.519 0 001.855.321 5.616 5.616 0 004.344-2.072 15.985 15.985 0 011.182-1.3c2.561-2.486 6.361-3.95 12.274-3.973a21.382 21.382 0 017.486 1.168 10.2 10.2 0 014.416 3.1c2.216 2.717 3.61 6.919 3.74 12.942-5.7.089-10.753.329-15.12.735a71.037 71.037 0 00-16.135 3.36h-.018l-.046.014h-.008c-5.147 1.6-9.4 4.091-12.387 7.668a20.779 20.779 0 00-4.5 13.646v.129a22.038 22.038 0 003.39 12.215m41.939-12.914a23.524 23.524 0 01-7.875 8.207 19.354 19.354 0 01-10.63 3.017c-5.021-.008-8.387-1.16-10.661-3.038a8.859 8.859 0 01-2.494-3.231 11.488 11.488 0 01-.852-4.55 10.346 10.346 0 011.329-5.237c.675-1.206 2.167-2.62 4.895-3.926 2.594-1.256 6.792-2.415 12.379-3.221a138.43 138.43 0 0116.816-1.182v2.468a20.857 20.857 0 01-2.908 10.7M397.781 190.866c-3.216 2.572-7.034 3.878-12.106 3.9-6.677-.073-11.042-2.132-14.622-6.535-3.512-4.415-5.512-10.924-5.515-19.981v-.022c0-9.429 1.966-16.114 5.29-20.38a15.612 15.612 0 015.949-4.75 20.986 20.986 0 018.515-1.621 18.214 18.214 0 0112.13 4.062 17.127 17.127 0 014.225 5.3 3.229 3.229 0 003.915 1.616l5.992-2.088a3.214 3.214 0 001.795-4.467 29.734 29.734 0 00-2.467-4.2 28.315 28.315 0 00-10.9-9.263 33.375 33.375 0 00-14.665-3.141h-.081a32.19 32.19 0 00-17.315 4.625 29.766 29.766 0 00-11.422 13.5c-2.6 5.827-3.789 12.784-3.791 20.833a50.163 50.163 0 003.711 20.1 29.983 29.983 0 0011.407 13.71 32.338 32.338 0 0017.666 4.77h.126a32.675 32.675 0 0019.989-6.281 28.651 28.651 0 009.456-13.242 3.183 3.183 0 00-1.958-4.1l-5.865-2.045a3.162 3.162 0 00-4 1.8 18.2 18.2 0 01-5.464 7.905M477.642 171.453a18.27 18.27 0 00-6.117-5.48 19.176 19.176 0 00-2.071-1.021 43.51 43.51 0 00-9.7-2.677q-4.334-.692-8.717-1.222c-.361-.045-.718-.1-1.08-.139a47.73 47.73 0 01-8.186-1.645 9.605 9.605 0 01-4.611-2.779c-.793-.9-1.412-2.364-1.426-5.075a10.228 10.228 0 01.774-4.064 8.947 8.947 0 012.331-3.086c1.98-1.734 5.26-2.907 10.394-2.91 4.841.024 8.311 1.24 11.1 3.547a14.579 14.579 0 014.265 6.8 3.18 3.18 0 004.059 1.974l6.01-2.095a3.189 3.189 0 001.993-4 27.29 27.29 0 00-3.192-6.567 25.077 25.077 0 00-10.308-8.918 32.554 32.554 0 00-13.789-2.794h-.034a30.876 30.876 0 00-14.18 2.99 21.1 21.1 0 00-12 19.33v.075c0 4.427.911 8.387 3.17 11.549a17.923 17.923 0 006.034 5.322 19.329 19.329 0 002.186 1.039 45.5 45.5 0 009.644 2.593c2.133.341 4.268.645 6.4.929 1.109.148 2.216.3 3.325.432a39.317 39.317 0 017.94 1.733 10.551 10.551 0 014.676 2.952c.766.865 1.41 2.392 1.422 5.2a11.592 11.592 0 01-.9 4.644 10.47 10.47 0 01-2.719 3.588c-2.315 2.033-6.109 3.354-11.924 3.357-5.632-.019-9.751-1.412-13-4.024a16.468 16.468 0 01-4.9-6.768 3.158 3.158 0 00-3.974-1.744l-5.844 2.037a3.182 3.182 0 00-1.935 4.162 27.346 27.346 0 008.417 11.54c5.643 4.466 12.834 6.6 21.034 6.6h.112a36.427 36.427 0 0014.136-2.6 24.011 24.011 0 0010.37-8.039 21.652 21.652 0 003.962-12.946v-.07c0-4.513-.9-8.526-3.148-11.738" fill="hsla(140, 6%, 15%, 1)" /></svg>`,
62
- dark: `<svg class="hidden dark:block w-[100px]" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 523.801 234.398"><path d="M28.654 33.217V29.26a3.987 3.987 0 00-3.982-3.988h-7.633v-3.666c-.013-4.285.956-6.852 1.828-7.786l.041-.051a4.462 4.462 0 012.155-1.176 52.035 52.035 0 018.52-.661h1.466a3.987 3.987 0 003.987-3.989V4.371A3.98 3.98 0 0031.811.456 42.91 42.91 0 0030.19.175C29.437.059 25.485 0 24.71 0h3.178-3.232C18.233 0 12.764 1.5 9.102 5.429l-.006.006C5.517 9.378 4.23 14.952 4.212 21.728V96.4a3.987 3.987 0 003.989 3.987h4.85a3.985 3.985 0 003.988-3.987V37.2h7.633a3.985 3.985 0 003.987-3.987M350.483 43.425a25.751 25.751 0 011.469 9.065v43.9a3.987 3.987 0 003.989 3.989h4.725a3.987 3.987 0 003.987-3.989V51.34a35.569 35.569 0 00-2.561-14.153 21.241 21.241 0 00-8.239-9.774 24.218 24.218 0 00-13.067-3.419h-.079a25.5 25.5 0 00-13.832 3.939 26.272 26.272 0 00-7.009 6.616 20.87 20.87 0 00-6.769-7.122 23.642 23.642 0 00-12.893-3.433h-.088a25.254 25.254 0 00-13.7 3.939 24.666 24.666 0 00-3.449 2.7v-1.378a3.987 3.987 0 00-3.985-3.989h-4.723a3.985 3.985 0 00-3.993 3.989v67.14a3.987 3.987 0 003.989 3.989h4.723a3.985 3.985 0 003.988-3.989V55.679a22.417 22.417 0 011.149-6.879 22.265 22.265 0 013.357-6.5 16.707 16.707 0 015.058-4.549 12.376 12.376 0 016.363-1.568c3.243.008 5.378.723 6.868 1.827a11.546 11.546 0 013.882 5.416 25.735 25.735 0 011.469 9.064v43.9a3.987 3.987 0 003.989 3.989h4.723a3.985 3.985 0 003.987-3.989V55.679a22.294 22.294 0 011.147-6.878 22.247 22.247 0 013.358-6.5 16.683 16.683 0 015.05-4.546 12.39 12.39 0 016.364-1.568c3.245.008 5.38.723 6.865 1.827a11.516 11.516 0 013.885 5.415M211.314 96.838a32.875 32.875 0 0017.776 4.694h.077a33.139 33.139 0 0017.48-4.536 29.573 29.573 0 0011.587-13.514c2.634-5.85 3.859-12.759 3.861-20.654a50.228 50.228 0 00-3.781-20.3 30.468 30.468 0 00-11.387-13.749 32.249 32.249 0 00-17.753-4.784h-.081a33.1 33.1 0 00-17.55 4.606 29.514 29.514 0 00-11.58 13.52c-2.594 5.827-3.788 12.783-3.791 20.833a50.622 50.622 0 003.708 20.149 29.551 29.551 0 0011.434 13.735zm3.076-54.253a15.989 15.989 0 016.085-4.774 21.569 21.569 0 018.657-1.629 20.364 20.364 0 018.437 1.656 16.447 16.447 0 016.1 4.916c3.488 4.464 5.471 11.01 5.475 20.071v.013c0 9.34-1.977 15.97-5.342 20.249a15.754 15.754 0 01-6.028 4.758 21.475 21.475 0 01-8.636 1.627c-6.669-.077-11.023-2.143-14.611-6.588-3.527-4.474-5.52-10.964-5.525-19.93v-.019c0-9.418 2-16.08 5.393-20.35M141.098 96.396V55.681a20.21 20.21 0 011.241-6.774 21.428 21.428 0 013.666-6.461 17.776 17.776 0 015.7-4.595 16.041 16.041 0 017.492-1.664c3.818 0 6.519.775 8.354 1.972a11.47 11.47 0 014.427 5.405 23.032 23.032 0 011.608 8.93v43.902a3.985 3.985 0 003.989 3.987h4.85a3.982 3.982 0 003.987-3.987V51.341a32.1 32.1 0 00-2.964-14.338 22.439 22.439 0 00-8.981-9.664 27.569 27.569 0 00-13.981-3.348h-.061a28.352 28.352 0 00-14.7 3.944 27.758 27.758 0 00-4.627 3.456V4.5a3.987 3.987 0 00-3.987-3.989h-4.722A3.985 3.985 0 00128.4 4.5v91.9a3.985 3.985 0 003.989 3.987h4.722a3.985 3.985 0 003.987-3.987M116.041 100.893h.01q1.149 0 2.242-.072a9.274 9.274 0 002.8-.589 3.989 3.989 0 002.52-3.712v-3.57a3.987 3.987 0 00-3.987-3.989h-1.873a18.9 18.9 0 01-5.418-.667 4.47 4.47 0 01-2.163-1.163l-.046-.054c-.873-.937-1.843-3.5-1.828-7.787V37.204h8.266a3.987 3.987 0 003.986-3.984v-3.96a3.987 3.987 0 00-3.987-3.989h-8.266V13.689A3.987 3.987 0 00104.31 9.7h-4.85a3.985 3.985 0 00-3.989 3.989v65.476c.013 6.7 1.319 12.253 4.861 16.208 3.671 4 9.2 5.515 15.7 5.514" fill="hsla(0, 0%, 100%, 1)" /><path d="M523.065 112.594a3.985 3.985 0 00-3.251-1.68h-4.849a3.987 3.987 0 00-3.767 2.676l-30.251 86.79a3.988 3.988 0 003.767 5.3h4.85a3.985 3.985 0 003.765-2.674l30.249-86.791a3.994 3.994 0 00-.514-3.622" fill="hsla(240, 75%, 76%, 1)" /><path d="M420.54 180.661zM338.96 114.997h-4.723a3.987 3.987 0 00-3.985 3.989v7.567a3.987 3.987 0 003.989 3.987h4.723a3.985 3.985 0 003.987-3.987v-7.567a3.985 3.985 0 00-3.987-3.989M338.96 142.52h-4.723a3.985 3.985 0 00-3.985 3.989v55.181a3.987 3.987 0 003.989 3.987h4.723a3.985 3.985 0 003.988-3.987v-55.181a3.985 3.985 0 00-3.987-3.989M321.476 194.258h-1.873a18.924 18.924 0 01-5.42-.665 4.484 4.484 0 01-2.162-1.163l-.045-.056c-.874-.937-1.843-3.505-1.83-7.792v-42.08h8.266a3.985 3.985 0 003.987-3.987v-3.958a3.985 3.985 0 00-3.987-3.989h-8.266v-11.582a3.987 3.987 0 00-3.987-3.989h-4.85a3.987 3.987 0 00-3.989 3.989v65.477c.013 6.7 1.319 12.253 4.861 16.206l.006.006c3.673 4 9.2 5.519 15.713 5.515h.063c.743 0 1.468-.026 2.173-.072a9.274 9.274 0 002.8-.592 3.988 3.988 0 002.527-3.708v-3.574a3.985 3.985 0 00-3.987-3.989M289.25 130.568h-4.979a3.981 3.981 0 00-3.706 2.513l-20.289 50.982-20.813-51.014a3.981 3.981 0 00-3.693-2.481h-5.231a3.987 3.987 0 00-3.687 5.512l26.564 64.224-2.581 6.406c-1.675 4.183-3.127 7.432-4.3 9.651a17.929 17.929 0 01-2.937 4.346 3.986 3.986 0 01-2.048 1.134 25 25 0 01-4.727.369h-2.2a3.987 3.987 0 00-3.989 3.989v3.83a3.992 3.992 0 003.215 3.912c.539.105 1.142.2 1.838.3a18.24 18.24 0 002.384.163 31.961 31.961 0 007.813-.825 14.291 14.291 0 006.621-3.789 28.48 28.48 0 004.8-6.9c1.447-2.77 3.02-6.248 4.754-10.493l30.891-76.344a3.987 3.987 0 00-3.7-5.485M217.775 105.807h-4.722a3.987 3.987 0 00-3.989 3.989v91.9a3.985 3.985 0 003.989 3.987h4.722a3.987 3.987 0 003.987-3.987v-91.9a3.987 3.987 0 00-3.987-3.989M102.779 141.48c3.816 0 6.516.775 8.35 1.97a11.471 11.471 0 014.437 5.403 23.006 23.006 0 011.607 8.931v43.9a3.987 3.987 0 003.989 3.987h4.85a3.985 3.985 0 003.989-3.987v-45.046a32.144 32.144 0 00-2.964-14.338 22.447 22.447 0 00-8.982-9.665 27.565 27.565 0 00-13.971-3.342h-.078a28.693 28.693 0 00-14.665 3.86 26.927 26.927 0 00-4.657 3.435v-2.035a3.987 3.987 0 00-3.987-3.989h-4.722a3.985 3.985 0 00-3.989 3.989v67.14a3.985 3.985 0 003.989 3.987h4.722a3.985 3.985 0 003.987-3.987v-40.714a20.252 20.252 0 011.241-6.776 21.4 21.4 0 013.666-6.463 17.776 17.776 0 015.7-4.595 16.065 16.065 0 017.492-1.664M12.864 204.392a33.879 33.879 0 0013.588 2.5 30.98 30.98 0 0010.476-1.959 33.289 33.289 0 0010.3-6.075c.6-.511 1.163-1.056 1.712-1.616a18.809 18.809 0 002.326 6.6 3.959 3.959 0 003.4 1.9h.008l2.326-.025a3.988 3.988 0 003.942-3.987V159a37.382 37.382 0 00-2.9-15.276 23.016 23.016 0 00-9.461-10.687c-4.317-2.545-9.549-3.681-15.492-3.681a35.269 35.269 0 00-15.457 3.14A24.812 24.812 0 007.1 141.909l-.018.029a3.46 3.46 0 00-.515 1.816 3.638 3.638 0 002.446 3.423l3.914 1.393a5.583 5.583 0 006.2-1.753 15.946 15.946 0 011.173-1.301c2.561-2.486 6.361-3.95 12.274-3.973a21.349 21.349 0 017.486 1.166 10.23 10.23 0 014.416 3.1c2.216 2.719 3.61 6.921 3.74 12.944-5.7.089-10.753.327-15.12.735a71.036 71.036 0 00-16.135 3.358h-.018l-.046.014h-.008c-5.147 1.6-9.4 4.092-12.387 7.668A20.779 20.779 0 000 184.189v.129a22.056 22.056 0 003.39 12.215 21.118 21.118 0 009.474 7.859m32.473-20.784a23.505 23.505 0 01-7.875 8.205 19.342 19.342 0 01-10.63 3.019c-5.021-.01-8.387-1.161-10.661-3.039a8.868 8.868 0 01-2.494-3.229 11.531 11.531 0 01-.852-4.552 10.344 10.344 0 011.331-5.239c.675-1.208 2.167-2.62 4.895-3.926 2.594-1.256 6.792-2.415 12.379-3.223a138.8 138.8 0 0116.816-1.181v2.467a20.863 20.863 0 01-2.908 10.7M185.724 133.037c-4.317-2.545-9.549-3.681-15.492-3.681a35.269 35.269 0 00-15.457 3.14 24.812 24.812 0 00-10.53 9.413l-.018.029a3.431 3.431 0 00-.515 1.816 3.638 3.638 0 002.444 3.423l3.914 1.393a5.58 5.58 0 006.2-1.753 15.966 15.966 0 011.182-1.294c2.561-2.486 6.361-3.95 12.274-3.973a21.349 21.349 0 017.486 1.166 10.23 10.23 0 014.416 3.1c2.216 2.719 3.61 6.921 3.74 12.944-5.7.089-10.753.327-15.12.735a71.036 71.036 0 00-16.135 3.358l-.018.006-.046.013h-.008c-5.147 1.6-9.4 4.092-12.387 7.668a20.779 20.779 0 00-4.5 13.646v.129a22.03 22.03 0 003.39 12.215 21.114 21.114 0 009.472 7.859 33.892 33.892 0 0013.59 2.5 30.98 30.98 0 0010.476-1.959 33.289 33.289 0 0010.3-6.075c.6-.511 1.163-1.056 1.712-1.616a18.809 18.809 0 002.326 6.6 3.959 3.959 0 003.4 1.9h.008l2.334-.027a3.987 3.987 0 003.942-3.987v-42.73a37.383 37.383 0 00-2.9-15.276 23.016 23.016 0 00-9.467-10.686m-3.254 50.576a23.505 23.505 0 01-7.875 8.205 19.342 19.342 0 01-10.63 3.019c-5.021-.01-8.387-1.161-10.661-3.039a8.868 8.868 0 01-2.494-3.229 11.5 11.5 0 01-.852-4.552 10.344 10.344 0 011.331-5.239c.675-1.208 2.167-2.62 4.895-3.926 2.594-1.256 6.792-2.415 12.379-3.223a138.8 138.8 0 0116.816-1.181v2.467a20.863 20.863 0 01-2.908 10.7M30.769 91.237a21.121 21.121 0 009.472 7.857 33.892 33.892 0 0013.59 2.5 30.941 30.941 0 0010.476-1.959 33.285 33.285 0 0010.3-6.074c.6-.511 1.163-1.058 1.712-1.616a18.821 18.821 0 002.326 6.6 3.958 3.958 0 003.4 1.9h.008l2.334-.027a3.987 3.987 0 003.931-3.986V53.703a37.4 37.4 0 00-2.9-15.278 23.005 23.005 0 00-9.467-10.685c-4.317-2.545-9.549-3.682-15.492-3.682a35.27 35.27 0 00-15.447 3.141 24.8 24.8 0 00-10.53 9.413l-.018.027a3.449 3.449 0 00-.517 1.817 3.639 3.639 0 002.445 3.423l3.914 1.393a5.519 5.519 0 001.855.321 5.616 5.616 0 004.344-2.072 15.985 15.985 0 011.182-1.3c2.561-2.486 6.361-3.95 12.274-3.973a21.382 21.382 0 017.486 1.168 10.2 10.2 0 014.416 3.1c2.216 2.717 3.61 6.919 3.74 12.942-5.7.089-10.753.329-15.12.735a71.037 71.037 0 00-16.135 3.36h-.018l-.046.014h-.008c-5.147 1.6-9.4 4.091-12.387 7.668a20.779 20.779 0 00-4.5 13.646v.129a22.038 22.038 0 003.39 12.215m41.939-12.914a23.524 23.524 0 01-7.875 8.207 19.354 19.354 0 01-10.63 3.017c-5.021-.008-8.387-1.16-10.661-3.038a8.859 8.859 0 01-2.494-3.231 11.488 11.488 0 01-.852-4.55 10.346 10.346 0 011.329-5.237c.675-1.206 2.167-2.62 4.895-3.926 2.594-1.256 6.792-2.415 12.379-3.221a138.43 138.43 0 0116.816-1.182v2.468a20.857 20.857 0 01-2.908 10.7M397.781 190.866c-3.216 2.572-7.034 3.878-12.106 3.9-6.677-.073-11.042-2.132-14.622-6.535-3.512-4.415-5.512-10.924-5.515-19.981v-.022c0-9.429 1.966-16.114 5.29-20.38a15.612 15.612 0 015.949-4.75 20.986 20.986 0 018.515-1.621 18.214 18.214 0 0112.13 4.062 17.127 17.127 0 014.225 5.3 3.229 3.229 0 003.915 1.616l5.992-2.088a3.214 3.214 0 001.795-4.467 29.734 29.734 0 00-2.467-4.2 28.315 28.315 0 00-10.9-9.263 33.375 33.375 0 00-14.665-3.141h-.081a32.19 32.19 0 00-17.315 4.625 29.766 29.766 0 00-11.422 13.5c-2.6 5.827-3.789 12.784-3.791 20.833a50.163 50.163 0 003.711 20.1 29.983 29.983 0 0011.407 13.71 32.338 32.338 0 0017.666 4.77h.126a32.675 32.675 0 0019.989-6.281 28.651 28.651 0 009.456-13.242 3.183 3.183 0 00-1.958-4.1l-5.865-2.045a3.162 3.162 0 00-4 1.8 18.2 18.2 0 01-5.464 7.905M477.642 171.453a18.27 18.27 0 00-6.117-5.48 19.176 19.176 0 00-2.071-1.021 43.51 43.51 0 00-9.7-2.677q-4.334-.692-8.717-1.222c-.361-.045-.718-.1-1.08-.139a47.73 47.73 0 01-8.186-1.645 9.605 9.605 0 01-4.611-2.779c-.793-.9-1.412-2.364-1.426-5.075a10.228 10.228 0 01.774-4.064 8.947 8.947 0 012.331-3.086c1.98-1.734 5.26-2.907 10.394-2.91 4.841.024 8.311 1.24 11.1 3.547a14.579 14.579 0 014.265 6.8 3.18 3.18 0 004.059 1.974l6.01-2.095a3.189 3.189 0 001.993-4 27.29 27.29 0 00-3.192-6.567 25.077 25.077 0 00-10.308-8.918 32.554 32.554 0 00-13.789-2.794h-.034a30.876 30.876 0 00-14.18 2.99 21.1 21.1 0 00-12 19.33v.075c0 4.427.911 8.387 3.17 11.549a17.923 17.923 0 006.034 5.322 19.329 19.329 0 002.186 1.039 45.5 45.5 0 009.644 2.593c2.133.341 4.268.645 6.4.929 1.109.148 2.216.3 3.325.432a39.317 39.317 0 017.94 1.733 10.551 10.551 0 014.676 2.952c.766.865 1.41 2.392 1.422 5.2a11.592 11.592 0 01-.9 4.644 10.47 10.47 0 01-2.719 3.588c-2.315 2.033-6.109 3.354-11.924 3.357-5.632-.019-9.751-1.412-13-4.024a16.468 16.468 0 01-4.9-6.768 3.158 3.158 0 00-3.974-1.744l-5.844 2.037a3.182 3.182 0 00-1.935 4.162 27.346 27.346 0 008.417 11.54c5.643 4.466 12.834 6.6 21.034 6.6h.112a36.427 36.427 0 0014.136-2.6 24.011 24.011 0 0010.37-8.039 21.652 21.652 0 003.962-12.946v-.07c0-4.513-.9-8.526-3.148-11.738" fill="hsla(0, 0%, 100%, 1)" /></svg>`
63
- },
60
+ logo: `<svg width="32" height="32" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg"><circle cx="512" cy="512" r="512" style="fill:#9187ff"/><path d="M558.62 256c-36.31.16-78.78 10-129.45 28.4-170.71 62.15-206.9 139.74-144.79 310.45s139.73 206.89 310.45 144.76S801.74 599.88 739.6 429.16c-43.69-120-95-173.55-181-173.17zm59.1 140.16h26.73a5.33 5.33 0 0 1 5.16 6.72l-59.26 220.48a5.34 5.34 0 0 1-5.15 4h-26.75a5.33 5.33 0 0 1-5.16-6.72l3.6-13.4 2.63-9.75 53-197.38a5.33 5.33 0 0 1 5.14-3.94zM421.79 413.4h10.75a5.33 5.33 0 0 1 5.33 5.33v18a5.33 5.33 0 0 1-5.33 5.33h-9.13a36.76 36.76 0 0 0-5.51.24 4.7 4.7 0 0 0-2.56 1 4.19 4.19 0 0 0-1 1.66 18.91 18.91 0 0 0-.92 6.72v13.67h19.16a5.33 5.33 0 0 1 5.33 5.33v18a5.34 5.34 0 0 1-5.33 5.33h-19.21v108.71a5.34 5.34 0 0 1-5.34 5.34H387a5.33 5.33 0 0 1-5.33-5.34V448.48a36.74 36.74 0 0 1 3.6-16.64 29.76 29.76 0 0 1 9.73-11.16c7.9-5.48 17.62-7.27 26.82-7.31zm82.14 50c16.37 0 30.27 4.65 40.17 13.27s15.47 21.21 15.42 35.59v35.91l-16.11 59.92h-10.24a5.33 5.33 0 0 1-5.33-5.34v-4a39.13 39.13 0 0 1-4.76 3.56c-7.14 4.55-16.85 7.51-29.65 7.51a62.65 62.65 0 0 1-28.52-6.18 40.49 40.49 0 0 1-18.84-19.35 46.81 46.81 0 0 1-4-19.54 40.72 40.72 0 0 1 5.23-21.12 36.78 36.78 0 0 1 13.78-13.18c11.09-6.25 24.75-8.45 38.14-10.24 7.3-1 13.14-1.61 17.64-2.2a42 42 0 0 0 9.2-1.88 3.16 3.16 0 0 0 1.39-.86l.24-.48a6.77 6.77 0 0 0 .16-1.84v-.73a17.24 17.24 0 0 0-5.85-13.6c-3.8-3.31-9.77-5.55-18.07-5.57s-14.64 2.26-19 5.59a17.51 17.51 0 0 0-7.21 12.54 5.33 5.33 0 0 1-5.31 4.86h-22.25a5.33 5.33 0 0 1-5.33-5.57 45.64 45.64 0 0 1 17.6-34c10.47-8.34 24.85-13.12 41.49-13.12zm23.92 80.71c-1.92.48-4 1-6.31 1.45-6.47 1.28-14.29 2.41-21.87 3.48a61 61 0 0 0-14.76 3.65c-4.18 1.75-7.1 4-8.68 6.57a12.12 12.12 0 0 0-1.71 6.54v.2a12.93 12.93 0 0 0 1.32 5.87 11.81 11.81 0 0 0 3.76 4.22c3.41 2.45 9.13 4.14 16.85 4.14 11.95 0 19.52-3.5 24.32-8.32s7-11.56 7.08-19.11v-8.65zm0 0" style="fill:#fff"/></svg>`,
64
61
  import: {
65
62
  name: "useScriptFathomAnalytics",
66
63
  from: resolve("./runtime/registry/fathom-analytics")
@@ -98,20 +95,23 @@ const registry = (resolve) => {
98
95
  }
99
96
  },
100
97
  {
101
- label: "Facebook Pixel",
102
- scriptBundling: FacebookPixelScriptResolver,
98
+ label: "Meta Pixel",
99
+ scriptBundling: MetaPixelScriptResolver,
103
100
  category: "tracking",
104
101
  logo: `<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 256 256"><path fill="#1877F2" d="M256 128C256 57.308 198.692 0 128 0C57.308 0 0 57.308 0 128c0 63.888 46.808 116.843 108 126.445V165H75.5v-37H108V99.8c0-32.08 19.11-49.8 48.348-49.8C170.352 50 185 52.5 185 52.5V84h-16.14C152.959 84 148 93.867 148 103.99V128h35.5l-5.675 37H148v89.445c61.192-9.602 108-62.556 108-126.445"/><path fill="#FFF" d="m177.825 165l5.675-37H148v-24.01C148 93.866 152.959 84 168.86 84H185V52.5S170.352 50 156.347 50C127.11 50 108 67.72 108 99.8V128H75.5v37H108v89.445A128.959 128.959 0 0 0 128 256a128.9 128.9 0 0 0 20-1.555V165z"/></svg>`,
105
102
  import: {
106
- name: "useScriptFacebookPixel",
107
- from: resolve("./runtime/registry/facebook-pixel")
103
+ name: "useScriptMetaPixel",
104
+ from: resolve("./runtime/registry/meta-pixel")
108
105
  }
109
106
  },
110
107
  {
111
108
  label: "X Pixel",
112
109
  src: "https://static.ads-twitter.com/uwt.js",
113
110
  category: "tracking",
114
- logo: `<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 128 128"><path d="M75.916 54.2L122.542 0h-11.05L71.008 47.06L38.672 0H1.376l48.898 71.164L1.376 128h11.05L55.18 78.303L89.328 128h37.296L75.913 54.2ZM60.782 71.79l-4.955-7.086l-39.42-56.386h16.972L65.19 53.824l4.954 7.086l41.353 59.15h-16.97L60.782 71.793Z"/></svg>`,
111
+ logo: {
112
+ dark: `<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 128 128" fill="white" stroke="white"><path d="M75.916 54.2L122.542 0h-11.05L71.008 47.06L38.672 0H1.376l48.898 71.164L1.376 128h11.05L55.18 78.303L89.328 128h37.296L75.913 54.2ZM60.782 71.79l-4.955-7.086l-39.42-56.386h16.972L65.19 53.824l4.954 7.086l41.353 59.15h-16.97L60.782 71.793Z"/></svg>`,
113
+ light: `<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 128 128" fill="black" stroke="black"><path d="M75.916 54.2L122.542 0h-11.05L71.008 47.06L38.672 0H1.376l48.898 71.164L1.376 128h11.05L55.18 78.303L89.328 128h37.296L75.913 54.2ZM60.782 71.79l-4.955-7.086l-39.42-56.386h16.972L65.19 53.824l4.954 7.086l41.353 59.15h-16.97L60.782 71.793Z"/></svg>`
114
+ },
115
115
  import: {
116
116
  name: "useScriptXPixel",
117
117
  from: resolve("./runtime/registry/x-pixel")
@@ -123,7 +123,7 @@ const registry = (resolve) => {
123
123
  scriptBundling(options) {
124
124
  return joinURL(`https://widget.intercom.io/widget`, options?.app_id || "");
125
125
  },
126
- logo: `<svg xmlns="http://www.w3.org/2000/svg" width="31.15" height="32" viewBox="0 0 256 263"><path d="M221.66 144.561c0 2.342-.897 4.588-2.493 6.244c-1.597 1.656-3.763 2.586-6.021 2.586s-4.424-.93-6.021-2.586c-1.597-1.656-2.494-3.902-2.494-6.244V65.677c0-2.342.897-4.588 2.494-6.243c1.597-1.656 3.763-2.587 6.02-2.587c2.259 0 4.425.93 6.022 2.587c1.596 1.655 2.493 3.901 2.493 6.243zm-2.955 54.657c-1.126 1.168-32.792 28.533-90.846 28.533s-89.508-27.22-90.845-28.387a8.635 8.635 0 0 1-2.043-2.654a8.99 8.99 0 0 1-.533-6.637a8.776 8.776 0 0 1 1.59-2.969c1.47-1.763 3.552-2.852 5.793-3.03a8.317 8.317 0 0 1 6.17 2.082c.493.365 28.78 24.154 79.798 24.154c51.017 0 79.516-23.935 79.798-24.154a8.453 8.453 0 0 1 6.202-2.059c2.247.177 4.339 1.256 5.83 3.007a8.891 8.891 0 0 1 1.995 6.274c-.158 2.282-1.178 4.407-2.839 5.913zM33.988 65.678c.127-2.35 1.146-4.551 2.834-6.124c1.688-1.572 3.907-2.388 6.173-2.269a8.38 8.38 0 0 1 5.564 2.6a8.986 8.986 0 0 1 2.458 5.792v78.738c0 2.342-.897 4.588-2.494 6.244c-1.596 1.656-3.762 2.586-6.02 2.586c-2.259 0-4.424-.93-6.021-2.586c-1.597-1.656-2.494-3.902-2.494-6.244zM76.7 48.163c.128-2.35 1.146-4.551 2.834-6.124c1.688-1.572 3.908-2.388 6.174-2.268a8.38 8.38 0 0 1 5.564 2.599a8.986 8.986 0 0 1 2.458 5.793V164.92c0 2.341-.898 4.587-2.494 6.243c-1.597 1.656-3.763 2.586-6.02 2.586c-2.26 0-4.425-.93-6.022-2.586c-1.597-1.656-2.494-3.902-2.494-6.243zm42.925-4.379c0-2.342.897-4.587 2.494-6.243c1.597-1.656 3.763-2.587 6.02-2.587c2.259 0 4.425.93 6.021 2.587c1.597 1.656 2.494 3.901 2.494 6.243v126.973c0 2.342-.897 4.588-2.494 6.244c-1.596 1.656-3.762 2.586-6.02 2.586c-2.258 0-4.424-.93-6.021-2.586c-1.597-1.656-2.494-3.902-2.494-6.244zm42.221 4.379c0-2.342.897-4.588 2.494-6.244c1.597-1.656 3.763-2.586 6.02-2.586c2.259 0 4.425.93 6.021 2.586c1.597 1.656 2.494 3.902 2.494 6.244V164.92c0 2.341-.897 4.587-2.494 6.243c-1.596 1.656-3.762 2.586-6.02 2.586c-2.258 0-4.424-.93-6.021-2.586c-1.597-1.656-2.494-3.902-2.494-6.243zM223.982 0H32.018a30.82 30.82 0 0 0-12.205 2.434A31.735 31.735 0 0 0 9.44 9.533A33.07 33.07 0 0 0 2.482 20.21A34.04 34.04 0 0 0 0 32.839v197.028a34.04 34.04 0 0 0 2.482 12.628a33.07 33.07 0 0 0 6.958 10.678a31.735 31.735 0 0 0 10.373 7.098a30.838 30.838 0 0 0 12.205 2.434h191.964a30.84 30.84 0 0 0 12.188-2.427a31.735 31.735 0 0 0 10.365-7.08a33.074 33.074 0 0 0 6.963-10.652A34.043 34.043 0 0 0 256 229.94V32.84a34.044 34.044 0 0 0-2.475-12.612a33.08 33.08 0 0 0-6.94-10.67a31.75 31.75 0 0 0-10.35-7.102A30.828 30.828 0 0 0 224.053.001"/></svg>`,
126
+ logo: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8.968 8.972" width="64" height="64"><path d="M7.853 0h-6.73C.496 0-.002.498-.002 1.117v6.73a1.12 1.12 0 0 0 1.126 1.126h6.73c.618 0 1.117-.498 1.117-1.117v-6.73A1.119 1.119 0 0 0 7.853 0zM5.68 1.645c0-.17.13-.3.3-.3s.3.13.3.3v3.998c0 .17-.13.3-.3.3s-.3-.13-.3-.3zm-1.495-.15c0-.17.13-.3.3-.3s.3.13.3.3v4.336c0 .17-.13.3-.3.3s-.3-.13-.3-.3zm-1.495.15c0-.17.13-.3.3-.3s.3.13.3.3v3.998c0 .17-.13.3-.3.3s-.3-.13-.3-.3zm-1.495.598c0-.17.13-.3.3-.3s.3.13.3.3v2.692c0 .17-.13.3-.3.3s-.3-.13-.3-.3zm6.48 4.566c-.05.04-1.156.967-3.2.967s-3.14-.927-3.2-.967a.29.29 0 0 1-.03-.419.29.29 0 0 1 .419-.03c.02 0 1.007.817 2.8.817 1.814 0 2.79-.817 2.79-.827.13-.1.32-.1.42.03a.3.3 0 0 1-.02.429zm.1-1.874c0 .17-.13.3-.3.3s-.3-.13-.3-.3V2.243c0-.17.13-.3.3-.3s.3.13.3.3z" fill="#1f8ded"/></svg>`,
127
127
  category: "marketing",
128
128
  import: {
129
129
  name: "useScriptIntercom",
@@ -181,8 +181,8 @@ const registry = (resolve) => {
181
181
  category: "content",
182
182
  logo: `<svg xmlns="http://www.w3.org/2000/svg" width="45.52" height="32" viewBox="0 0 256 180"><path fill="red" d="M250.346 28.075A32.18 32.18 0 0 0 227.69 5.418C207.824 0 127.87 0 127.87 0S47.912.164 28.046 5.582A32.18 32.18 0 0 0 5.39 28.24c-6.009 35.298-8.34 89.084.165 122.97a32.18 32.18 0 0 0 22.656 22.657c19.866 5.418 99.822 5.418 99.822 5.418s79.955 0 99.82-5.418a32.18 32.18 0 0 0 22.657-22.657c6.338-35.348 8.291-89.1-.164-123.134"/><path fill="#FFF" d="m102.421 128.06l66.328-38.418l-66.328-38.418z"/></svg>`,
183
183
  import: {
184
- name: "useScriptYouTubeIframe",
185
- from: resolve("./runtime/registry/youtube-iframe")
184
+ name: "useScriptYouTubePlayer",
185
+ from: resolve("./runtime/registry/youtube-player")
186
186
  }
187
187
  },
188
188
  {
@@ -211,4 +211,4 @@ const registry = (resolve) => {
211
211
  ];
212
212
  };
213
213
 
214
- export { CloudflareWebAnalyticsScriptResolver, FacebookPixelScriptResolver, GoogleAnalyticsScriptResolver, PlausibleAnalyticsScriptResolver, SegmentScriptResolver, registry };
214
+ export { CloudflareWebAnalyticsScriptResolver, GoogleAnalyticsScriptResolver, MetaPixelScriptResolver, PlausibleAnalyticsScriptResolver, SegmentScriptResolver, registry };