@stacksjs/stx 0.2.53 → 0.2.54

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 (60) hide show
  1. package/dist/app-shell.js +1 -1
  2. package/dist/auth.js +2 -2
  3. package/dist/build-mode-detector.js +1 -1
  4. package/dist/build-views.js +1 -1
  5. package/dist/build.js +1 -1
  6. package/dist/cli.js +2 -2
  7. package/dist/component-processing.js +1 -1
  8. package/dist/component-renderer.js +1 -1
  9. package/dist/components.js +1 -1
  10. package/dist/conditionals.js +1 -1
  11. package/dist/dev-server/index.js +1 -1
  12. package/dist/dev-server/serve-app.js +1 -1
  13. package/dist/dev-server/serve-file.js +1 -1
  14. package/dist/dev-server/serve-markdown.js +1 -1
  15. package/dist/dev-server/serve-multi.js +1 -1
  16. package/dist/dev-server.js +1 -1
  17. package/dist/docs.js +1 -1
  18. package/dist/dynamic-components.js +1 -1
  19. package/dist/expressions.js +1 -1
  20. package/dist/forms.js +1 -1
  21. package/dist/i18n.js +1 -1
  22. package/dist/includes.js +1 -1
  23. package/dist/index.js +1 -1
  24. package/dist/interactive.js +1 -1
  25. package/dist/lazy-loader.js +1 -1
  26. package/dist/loops.js +1 -1
  27. package/dist/misc-directives.js +1 -1
  28. package/dist/plugin.js +1 -1
  29. package/dist/process.js +1 -1
  30. package/dist/production-builder.js +1 -1
  31. package/dist/production-server.js +1 -1
  32. package/dist/pwa/index.js +1 -1
  33. package/dist/pwa/offline.js +1 -1
  34. package/dist/pwa.js +1 -1
  35. package/dist/reactive.js +1 -1
  36. package/dist/render.js +1 -1
  37. package/dist/routes.js +1 -1
  38. package/dist/safe-evaluator.js +1 -1
  39. package/dist/seo.js +1 -1
  40. package/dist/serve.js +1 -1
  41. package/dist/site-builder/build.js +1 -1
  42. package/dist/site-builder/index.js +1 -1
  43. package/dist/slots.js +1 -1
  44. package/dist/ssg.js +1 -1
  45. package/dist/ssr.js +1 -1
  46. package/dist/story/cli.js +1 -1
  47. package/dist/story/commands/dev.js +1 -1
  48. package/dist/story/commands/index.js +1 -1
  49. package/dist/story/index.js +1 -1
  50. package/dist/story/renderer.js +1 -1
  51. package/dist/story/server.js +1 -1
  52. package/dist/story/visual-testing.js +1 -1
  53. package/dist/streaming.js +1 -1
  54. package/dist/template-compiler.js +1 -1
  55. package/dist/template-hydrator.js +1 -1
  56. package/dist/testing.js +1 -1
  57. package/dist/utils.js +1 -1
  58. package/dist/variable-extractor.js +1 -1
  59. package/dist/web-components.js +1 -1
  60. package/package.json +7 -7
@@ -612,7 +612,7 @@ ${q}`},hasEndTag:!1,description:"Coordinates multiple animations together as a g
612
612
  `}),$}import f3 from"process";function m0($="STX_PUBLIC_"){let Z={},Y={};for(let[X,J]of Object.entries(f3.env)){if(!X.startsWith($)||J===void 0)continue;Z[`import.meta.env.${X}`]=JSON.stringify(J),Y[X]=J}return Z["import.meta.env"]=JSON.stringify(Y),Z}function rB($="STX_PUBLIC_"){let Z={};for(let[Y,X]of Object.entries(f3.env))if(Y.startsWith($)&&X!==void 0)Z[Y]=X;return Z}var f1=()=>{};var S9={};i(S9,{hasUserImports:()=>rJ,bundleClientScript:()=>tJ});import L0 from"path";import n0 from"fs";function rJ($){let Z=/^\s*import\s+(?!type\s)/gm;if(!$.match(Z))return!1;let X=/^\s*import\s+(?!type\s).*?\s+from\s+['"]([^'"]+)['"]/gm,J;while((J=X.exec($))!==null){let G=J[1];if(!g3.some((q)=>q.test(G)))return console.log("[stx:bundler] detected user import:",G),!0}let Q=/^\s*import\s+['"]([^'"]+)['"]/gm;while((J=Q.exec($))!==null){let G=J[1];if(!g3.some((q)=>q.test(G)))return console.log("[stx:bundler] detected side-effect import:",G),!0}return!1}function aJ($,Z,Y){let X=(J,Q)=>{let G=J===Y?Z:L0.dirname(J),K=L0.resolve(G,Q),q=[K,`${K}.ts`,`${K}.tsx`,`${K}.js`,`${K}.mjs`,`${K}.jsx`,L0.join(K,"index.ts"),L0.join(K,"index.tsx"),L0.join(K,"index.js"),L0.join(K,"index.mjs")];for(let z of q)try{if(n0.existsSync(z)&&n0.statSync(z,{throwIfNoEntry:!1})?.isFile())return z}catch{}return K};return{name:"stx-client-bundle",setup(J){J.onResolve({filter:/^(stx|@stacksjs\/stx|@stacksjs\/browser)$/},(Q)=>({path:Q.path,external:!0})),J.onResolve({filter:/^(@stores|@composables|stx\/stores)$/},(Q)=>({path:Q.path,external:!0})),J.onResolve({filter:/^\.\.?\//},(Q)=>{return{path:X(Q.importer,Q.path)}}),J.onResolve({filter:/^@\//},(Q)=>{let G=L0.resolve($,Q.path.slice(2)),K=[G,`${G}.ts`,`${G}.js`,L0.join(G,"index.ts"),L0.join(G,"index.js")];for(let q of K)if(n0.existsSync(q)&&n0.statSync(q,{throwIfNoEntry:!1})?.isFile())return console.log("[stx:bundler] resolved @/ import:",Q.path,"\u2192",q),{path:q};return console.warn("[stx:bundler] could not resolve @/ import:",Q.path),{path:G}})}}}async function tJ($,Z,Y={}){let X=Y.projectRoot||process.cwd(),J=Y.minify??!1,Q=Y.cacheDir||L0.join(X,".stx","bundle-cache"),G=new Bun.CryptoHasher("md5");G.update($+Z);let K=G.digest("hex").slice(0,12),q=L0.join(Q,`${K}.js`),z=Bun.file(q);if(await z.exists())return console.log("[stx:bundler] cache hit:",K),await z.text();let _=L0.join(X,".stx","bundle-tmp"),W=L0.join(_,`${K}.ts`),U=L0.join(_,"out",K);n0.mkdirSync(_,{recursive:!0}),n0.mkdirSync(U,{recursive:!0});let B=L0.dirname(Z),j=[],O=/^(export\s+)?(?:const|let|var)\s+(?:\{([^}]+)\}|(\w+))/gm,L=/^(export\s+)?(?:async\s+)?function\s+(\w+)/gm,F;while((F=O.exec($))!==null){if(F[1])continue;if(F[2])F[2].split(",").forEach((V)=>{let R=V.split(":")[0].trim();if(R)j.push(R)});else if(F[3])j.push(F[3])}while((F=L.exec($))!==null){if(F[1])continue;j.push(F[2])}let H=j.length>0?`
613
613
  export { ${j.join(", ")} }`:"";await Bun.write(W,$+H),console.log("[stx:bundler] bundling:",K,"from:",L0.basename(Z));try{let V=await Bun.build({entrypoints:[W],outdir:U,target:"browser",format:"esm",minify:J,plugins:[aJ(X,B,W)],define:{"process.env.NODE_ENV":J?'"production"':'"development"',...m0()},root:X});if(!V.success){let w=V.logs.filter((A)=>A.level==="error").map((A)=>A.message).join(", ");return console.warn("[stx:bundler] build failed:",w),$}let R="";for(let w of V.outputs){R=await w.text();break}return R=R.replace(/^\s*export\s*\{[^}]*\}\s*;?\s*$/gm,"").replace(/^\s*export\s+default\s+.*$/gm,"").trim(),console.log("[stx:bundler] bundled:",K,"output:",R.length,"bytes"),n0.mkdirSync(Q,{recursive:!0}),await Bun.write(q,R),R}catch(V){let R=V instanceof Error?V.message:String(V),w=V?.errors,A=Array.isArray(w)&&w.length>0?`
614
614
  ${w.map((N)=>`- ${N?.message??N}`).join(`
615
- `)}`:"";return console.warn(`[stx:bundler] error: ${R}${A}`),$}finally{try{n0.rmSync(W,{force:!0}),n0.rmSync(U,{recursive:!0,force:!0})}catch{}}}var g3;var b9=b(()=>{f1();g3=[/^stx$/,/^@stacksjs\/stx$/,/^@stacksjs\/browser$/,/^@stores$/,/^stx\/stores$/,/^@composables$/]});function Zj($){g1={...g1,...$}}function Yj(){g1={...d3}}function Xj(){return{...g1}}function ZQ($){let Z="",Y=null,X=!1;for(let J=0;J<$.length;J++){let Q=$[J];if(X){X=!1;continue}if(Q==="\\"&&Y){X=!0;continue}if(Y){if(Y==="`"&&Q==="$"&&J+1<$.length&&$[J+1]==="{"){let G=1;J+=2;while(J<$.length&&G>0){if($[J]==="{")G++;else if($[J]==="}")G--;if(G>0)Z+=$[J],J++}continue}if(Q===Y)Y=null;continue}if(Q==='"'||Q==="'"||Q==="`"){Y=Q;continue}Z+=Q}return Z}function YQ($,Z){let Y=/[$A-Z_a-z][$\w]*/g,X;while((X=Y.exec($))!==null){let J=X[0],Q=$[X.index-1];if(eJ.has(J))throw Error(`Potentially unsafe expression (identifier ${J}): ${Z}`);if(Q==="."&&m3.has(J))throw Error(`Potentially unsafe expression (property ${J}): ${Z}`)}}function XQ($){let Z=/\[\s*(['"])(.*?)\1\s*\]/g,Y;while((Y=Z.exec($))!==null){let X=Y[2];if(!m3.has(X))continue;let J=$.slice(0,Y.index).match(/\S(?=\s*$)/)?.[0],Q=$.slice(Y.index+Y[0].length).match(/^\s*(\S)/)?.[1];if(!((J==="{"||J===",")&&Q===":"))throw Error(`Potentially unsafe expression (bracket key ${Y[2]}): ${$}`)}}function W5($){let Z=$.trim(),Y=ZQ(Z);YQ(Y,Z),XQ(Z);for(let X of C9)if(X.test(Y))throw Error(`Potentially unsafe expression (matched /${X.source}/): ${Z}`);if(!g1.allowBracketNotation&&$Q.test(Z))throw Error(`Bracket notation with strings not allowed: ${Z}. Enable with configureSafeEvaluator({ allowBracketNotation: true })`);return Z}function u3($){let Z={};Z.Math=Math,Z.JSON=JSON,Z.Date=Date,Z.String=String,Z.Number=Number,Z.Boolean=Boolean,Z.Array=Array,Z.parseInt=Number.parseInt,Z.parseFloat=Number.parseFloat,Z.isNaN=Number.isNaN,Z.isFinite=Number.isFinite,Z.encodeURIComponent=encodeURIComponent,Z.decodeURIComponent=decodeURIComponent;for(let[Y,X]of Object.entries($)){if(Y.startsWith("__")||C9.some((J)=>J.test(Y)))continue;if(X&&typeof X==="object"&&!Array.isArray(X))Z[Y]=y9(X);else Z[Y]=X}return Z}function y9($,Z=0){if(Z>=g1.maxSanitizeDepth)return"[Object too deep]";if($===null||typeof $!=="object")return $;if(Array.isArray($))return $.map((X)=>y9(X,Z+1));if($ instanceof Date||$ instanceof RegExp||$ instanceof Map||$ instanceof Set||$ instanceof Error)return $;let Y={};for(let[X,J]of Object.entries($)){if(X.startsWith("__")||X==="constructor"||X==="prototype")continue;if(J&&typeof J==="object")Y[X]=y9(J,Z+1);else Y[X]=J}return Y}function o($,Z){try{let Y=u3(Z),X=Object.keys(Y),J=Object.values(Y);return e($,X)(...J)}catch{return}}function t($){try{return W5($),!0}catch{return!1}}function Jj($){try{return W5($),null}catch(Z){return Z instanceof Error?Z.message:String(Z)}}function Qj($,Z){try{let Y=o($,Z);return Boolean(Y)}catch{return!1}}function Gj($,Z){try{let Y=o($,Z);if(Array.isArray(Y))return Y;if(Y&&typeof Y==="object"&&"length"in Y){let X=Y.length;if(typeof X==="number"&&Number.isFinite(X)&&X>=0&&Number.isInteger(X))return Array.from(Y)}return[]}catch{return[]}}function _0($,Z){try{let Y=o($,Z);if(Y&&typeof Y==="object"&&!Array.isArray(Y))return Y;return{}}catch{return{}}}function e($,Z){let Y=W5($),X=/^[A-Za-z_$][\w$]*$/,J=[],Q=[];for(let K=0;K<Z.length;K++){let q=Z[K];if(!X.test(q))continue;if(JQ.has(q))continue;J.push(K),Q.push(q)}let G=Function(...Q,`
615
+ `)}`:"";return console.warn(`[stx:bundler] error: ${R}${A}`),$}finally{try{n0.rmSync(W,{force:!0}),n0.rmSync(U,{recursive:!0,force:!0})}catch{}}}var g3;var b9=b(()=>{f1();g3=[/^stx$/,/^@stacksjs\/stx$/,/^@stacksjs\/browser$/,/^@stores$/,/^stx\/stores$/,/^@composables$/]});function Zj($){g1={...g1,...$}}function Yj(){g1={...d3}}function Xj(){return{...g1}}function ZQ($){let Z="",Y=null,X=!1;for(let J=0;J<$.length;J++){let Q=$[J];if(X){X=!1;continue}if(Q==="\\"&&Y){X=!0;continue}if(Y){if(Y==="`"&&Q==="$"&&J+1<$.length&&$[J+1]==="{"){let G=1;J+=2;while(J<$.length&&G>0){if($[J]==="{")G++;else if($[J]==="}")G--;if(G>0)Z+=$[J],J++}continue}if(Q===Y)Y=null;continue}if(Q==='"'||Q==="'"||Q==="`"){Y=Q;continue}Z+=Q}return Z}function YQ($,Z){let Y=/[$A-Z_a-z][$\w]*/g,X;while((X=Y.exec($))!==null){let J=X[0],Q=$[X.index-1];if(eJ.has(J))throw Error(`Potentially unsafe expression (matched /\\b${J}\\b/; identifier ${J}): ${Z}`);if(Q==="."&&m3.has(J))throw Error(`Potentially unsafe expression (matched /.${J}/; property ${J}): ${Z}`)}}function XQ($){let Z=/\[\s*(['"])(.*?)\1\s*\]/g,Y;while((Y=Z.exec($))!==null){let X=Y[2];if(!m3.has(X))continue;let J=$.slice(0,Y.index).match(/\S(?=\s*$)/)?.[0],Q=$.slice(Y.index+Y[0].length).match(/^\s*(\S)/)?.[1];if(!((J==="{"||J===",")&&Q===":"))throw Error(`Potentially unsafe expression (bracket key ${Y[2]}): ${$}`)}}function W5($){let Z=$.trim(),Y=ZQ(Z);YQ(Y,Z),XQ(Z);for(let X of C9)if(X.test(Y))throw Error(`Potentially unsafe expression (matched /${X.source}/): ${Z}`);if(!g1.allowBracketNotation&&$Q.test(Z))throw Error(`Bracket notation with strings not allowed: ${Z}. Enable with configureSafeEvaluator({ allowBracketNotation: true })`);return Z}function u3($){let Z={};Z.Math=Math,Z.JSON=JSON,Z.Date=Date,Z.String=String,Z.Number=Number,Z.Boolean=Boolean,Z.Array=Array,Z.parseInt=Number.parseInt,Z.parseFloat=Number.parseFloat,Z.isNaN=Number.isNaN,Z.isFinite=Number.isFinite,Z.encodeURIComponent=encodeURIComponent,Z.decodeURIComponent=decodeURIComponent;for(let[Y,X]of Object.entries($)){if(Y.startsWith("__")||C9.some((J)=>J.test(Y)))continue;if(X&&typeof X==="object"&&!Array.isArray(X))Z[Y]=y9(X);else Z[Y]=X}return Z}function y9($,Z=0){if(Z>=g1.maxSanitizeDepth)return"[Object too deep]";if($===null||typeof $!=="object")return $;if(Array.isArray($))return $.map((X)=>y9(X,Z+1));if($ instanceof Date||$ instanceof RegExp||$ instanceof Map||$ instanceof Set||$ instanceof Error)return $;let Y={};for(let[X,J]of Object.entries($)){if(X.startsWith("__")||X==="constructor"||X==="prototype")continue;if(J&&typeof J==="object")Y[X]=y9(J,Z+1);else Y[X]=J}return Y}function o($,Z){try{let Y=u3(Z),X=Object.keys(Y),J=Object.values(Y);return e($,X)(...J)}catch{return}}function t($){try{return W5($),!0}catch{return!1}}function Jj($){try{return W5($),null}catch(Z){return Z instanceof Error?Z.message:String(Z)}}function Qj($,Z){try{let Y=o($,Z);return Boolean(Y)}catch{return!1}}function Gj($,Z){try{let Y=o($,Z);if(Array.isArray(Y))return Y;if(Y&&typeof Y==="object"&&"length"in Y){let X=Y.length;if(typeof X==="number"&&Number.isFinite(X)&&X>=0&&Number.isInteger(X))return Array.from(Y)}return[]}catch{return[]}}function _0($,Z){try{let Y=o($,Z);if(Y&&typeof Y==="object"&&!Array.isArray(Y))return Y;return{}}catch{return{}}}function e($,Z){let Y=W5($),X=/^[A-Za-z_$][\w$]*$/,J=[],Q=[];for(let K=0;K<Z.length;K++){let q=Z[K];if(!X.test(q))continue;if(JQ.has(q))continue;J.push(K),Q.push(q)}let G=Function(...Q,`
616
616
  'use strict';
617
617
  try {
618
618
  return ${Y};
@@ -699,7 +699,7 @@ ${K}${H}
699
699
  'use strict';
700
700
  ${X}${Y}
701
701
  ${K}
702
- })()</script>`}var $Q,ZQ,YQ,GQ,BQ;var L$=M(()=>{Y0();$Q=["state","derived","effect","batch","untrack","peek","isSignal","isDerived","onMount","onDestroy","useRef","navigate","goBack","goForward","useRoute","setRouteParams","useSearchParams","useQuery","useMutation","useEventListener","useMeta","useDebounce","useDebouncedValue","useThrottle","useInterval","useTimeout","useToggle","useCounter","useClickOutside","useFocus","useAsync","useColorMode","useDark","ref","reactive","computed","watch","watchEffect","watchMultiple","onBeforeMount","onMounted","onBeforeUpdate","onUpdated","onBeforeUnmount","onUnmounted","defineProps","withDefaults","defineEmits","defineExpose","provide","inject","nextTick","getCurrentInstance","onErrorCaptured","useSlots","useAttrs","createStore","defineStore","useStore","action","createSelector","h","Fragment"],ZQ=["browserQuery","BrowserQueryBuilder","BrowserQueryError","browserAuth","configureBrowser","getBrowserConfig","createBrowserDb","createBrowserModel","isBrowser"],YQ=new Set(["Promise","Object","Array","Map","Set","Date","Error","JSON","Math","Number","String","RegExp","Symbol","WeakMap","WeakSet","Proxy","Reflect","Intl","URL","URLSearchParams","FormData","Headers","Request","Response","AbortController","EventTarget","Element","Document","Node","Window","Console","Storage","Navigator","Blob","File","FileReader","HTMLElement","SVGElement","Event","CustomEvent","DOMParser","XMLSerializer","WebSocket","Worker","SharedWorker","IntersectionObserver","MutationObserver","ResizeObserver","PerformanceObserver","Notification","Bun","Buffer","Process","Modal","Intl"]);GQ={left:0,middle:1,right:2};BQ=new Set(["if","else","true","false","null","undefined","typeof","instanceof","in","of","new","this","return","void","delete","throw","switch","case","break","continue","for","while","do","try","catch","finally","const","let","var","function","class","import","export","default","async","await","yield","with","debugger","console","window","document","Math","JSON","Date","Array","Object","String","Number","Boolean","Symbol","Map","Set","Promise","Error","parseInt","parseFloat","isNaN","isFinite","encodeURIComponent","decodeURIComponent","setTimeout","setInterval","clearTimeout","clearInterval","fetch","alert","confirm","prompt","event"])});function HQ($){let Z="",Y=null,X=!1;for(let Q=0;Q<$.length;Q++){let J=$[Q];if(X){X=!1;continue}if(J==="\\"&&Y){X=!0;continue}if(Y){if(Y==="`"&&J==="$"&&Q+1<$.length&&$[Q+1]==="{"){let G=1;Q+=2;while(Q<$.length&&G>0){if($[Q]==="{")G++;else if($[Q]==="}")G--;if(G>0)Z+=$[Q],Q++}continue}if(J===Y)Y=null;continue}if(J==='"'||J==="'"||J==="`"){Y=J;continue}Z+=J}return Z}function OQ($,Z){let Y=/[$A-Z_a-z][$\w]*/g,X;while((X=Y.exec($))!==null){let Q=X[0],J=$[X.index-1];if(qQ.has(Q))throw Error(`Potentially unsafe expression (identifier ${Q}): ${Z}`);if(J==="."&&T8.has(Q))throw Error(`Potentially unsafe expression (property ${Q}): ${Z}`)}}function LQ($){let Z=/\[\s*(['"])(.*?)\1\s*\]/g,Y;while((Y=Z.exec($))!==null){let X=Y[2];if(!T8.has(X))continue;let Q=$.slice(0,Y.index).match(/\S(?=\s*$)/)?.[0],J=$.slice(Y.index+Y[0].length).match(/^\s*(\S)/)?.[1];if(!((Q==="{"||Q===",")&&J===":"))throw Error(`Potentially unsafe expression (bracket key ${Y[2]}): ${$}`)}}function w5($){let Z=$.trim(),Y=HQ(Z);OQ(Y,Z),LQ(Z);for(let X of M8)if(X.test(Y))throw Error(`Potentially unsafe expression (matched /${X.source}/): ${Z}`);if(!R8.allowBracketNotation&&jQ.test(Z))throw Error(`Bracket notation with strings not allowed: ${Z}. Enable with configureSafeEvaluator({ allowBracketNotation: true })`);return Z}function FQ($){let Z={};Z.Math=Math,Z.JSON=JSON,Z.Date=Date,Z.String=String,Z.Number=Number,Z.Boolean=Boolean,Z.Array=Array,Z.parseInt=Number.parseInt,Z.parseFloat=Number.parseFloat,Z.isNaN=Number.isNaN,Z.isFinite=Number.isFinite,Z.encodeURIComponent=encodeURIComponent,Z.decodeURIComponent=decodeURIComponent;for(let[Y,X]of Object.entries($)){if(Y.startsWith("__")||M8.some((Q)=>Q.test(Y)))continue;if(X&&typeof X==="object"&&!Array.isArray(X))Z[Y]=i7(X);else Z[Y]=X}return Z}function i7($,Z=0){if(Z>=R8.maxSanitizeDepth)return"[Object too deep]";if($===null||typeof $!=="object")return $;if(Array.isArray($))return $.map((X)=>i7(X,Z+1));if($ instanceof Date||$ instanceof RegExp||$ instanceof Map||$ instanceof Set||$ instanceof Error)return $;let Y={};for(let[X,Q]of Object.entries($)){if(X.startsWith("__")||X==="constructor"||X==="prototype")continue;if(Q&&typeof Q==="object")Y[X]=i7(Q,Z+1);else Y[X]=Q}return Y}function s($,Z){try{let Y=FQ(Z),X=Object.keys(Y),Q=Object.values(Y);return Z0($,X)(...Q)}catch{return}}function $0($){try{return w5($),!0}catch{return!1}}function B0($,Z){try{let Y=s($,Z);if(Y&&typeof Y==="object"&&!Array.isArray(Y))return Y;return{}}catch{return{}}}function Z0($,Z){let Y=w5($),X=/^[A-Za-z_$][\w$]*$/,Q=[],J=[];for(let K=0;K<Z.length;K++){let W=Z[K];if(!X.test(W))continue;if(VQ.has(W))continue;Q.push(K),J.push(W)}let G=Function(...J,`
702
+ })()</script>`}var $Q,ZQ,YQ,GQ,BQ;var L$=M(()=>{Y0();$Q=["state","derived","effect","batch","untrack","peek","isSignal","isDerived","onMount","onDestroy","useRef","navigate","goBack","goForward","useRoute","setRouteParams","useSearchParams","useQuery","useMutation","useEventListener","useMeta","useDebounce","useDebouncedValue","useThrottle","useInterval","useTimeout","useToggle","useCounter","useClickOutside","useFocus","useAsync","useColorMode","useDark","ref","reactive","computed","watch","watchEffect","watchMultiple","onBeforeMount","onMounted","onBeforeUpdate","onUpdated","onBeforeUnmount","onUnmounted","defineProps","withDefaults","defineEmits","defineExpose","provide","inject","nextTick","getCurrentInstance","onErrorCaptured","useSlots","useAttrs","createStore","defineStore","useStore","action","createSelector","h","Fragment"],ZQ=["browserQuery","BrowserQueryBuilder","BrowserQueryError","browserAuth","configureBrowser","getBrowserConfig","createBrowserDb","createBrowserModel","isBrowser"],YQ=new Set(["Promise","Object","Array","Map","Set","Date","Error","JSON","Math","Number","String","RegExp","Symbol","WeakMap","WeakSet","Proxy","Reflect","Intl","URL","URLSearchParams","FormData","Headers","Request","Response","AbortController","EventTarget","Element","Document","Node","Window","Console","Storage","Navigator","Blob","File","FileReader","HTMLElement","SVGElement","Event","CustomEvent","DOMParser","XMLSerializer","WebSocket","Worker","SharedWorker","IntersectionObserver","MutationObserver","ResizeObserver","PerformanceObserver","Notification","Bun","Buffer","Process","Modal","Intl"]);GQ={left:0,middle:1,right:2};BQ=new Set(["if","else","true","false","null","undefined","typeof","instanceof","in","of","new","this","return","void","delete","throw","switch","case","break","continue","for","while","do","try","catch","finally","const","let","var","function","class","import","export","default","async","await","yield","with","debugger","console","window","document","Math","JSON","Date","Array","Object","String","Number","Boolean","Symbol","Map","Set","Promise","Error","parseInt","parseFloat","isNaN","isFinite","encodeURIComponent","decodeURIComponent","setTimeout","setInterval","clearTimeout","clearInterval","fetch","alert","confirm","prompt","event"])});function HQ($){let Z="",Y=null,X=!1;for(let Q=0;Q<$.length;Q++){let J=$[Q];if(X){X=!1;continue}if(J==="\\"&&Y){X=!0;continue}if(Y){if(Y==="`"&&J==="$"&&Q+1<$.length&&$[Q+1]==="{"){let G=1;Q+=2;while(Q<$.length&&G>0){if($[Q]==="{")G++;else if($[Q]==="}")G--;if(G>0)Z+=$[Q],Q++}continue}if(J===Y)Y=null;continue}if(J==='"'||J==="'"||J==="`"){Y=J;continue}Z+=J}return Z}function OQ($,Z){let Y=/[$A-Z_a-z][$\w]*/g,X;while((X=Y.exec($))!==null){let Q=X[0],J=$[X.index-1];if(qQ.has(Q))throw Error(`Potentially unsafe expression (matched /\\b${Q}\\b/; identifier ${Q}): ${Z}`);if(J==="."&&T8.has(Q))throw Error(`Potentially unsafe expression (matched /.${Q}/; property ${Q}): ${Z}`)}}function LQ($){let Z=/\[\s*(['"])(.*?)\1\s*\]/g,Y;while((Y=Z.exec($))!==null){let X=Y[2];if(!T8.has(X))continue;let Q=$.slice(0,Y.index).match(/\S(?=\s*$)/)?.[0],J=$.slice(Y.index+Y[0].length).match(/^\s*(\S)/)?.[1];if(!((Q==="{"||Q===",")&&J===":"))throw Error(`Potentially unsafe expression (bracket key ${Y[2]}): ${$}`)}}function w5($){let Z=$.trim(),Y=HQ(Z);OQ(Y,Z),LQ(Z);for(let X of M8)if(X.test(Y))throw Error(`Potentially unsafe expression (matched /${X.source}/): ${Z}`);if(!R8.allowBracketNotation&&jQ.test(Z))throw Error(`Bracket notation with strings not allowed: ${Z}. Enable with configureSafeEvaluator({ allowBracketNotation: true })`);return Z}function FQ($){let Z={};Z.Math=Math,Z.JSON=JSON,Z.Date=Date,Z.String=String,Z.Number=Number,Z.Boolean=Boolean,Z.Array=Array,Z.parseInt=Number.parseInt,Z.parseFloat=Number.parseFloat,Z.isNaN=Number.isNaN,Z.isFinite=Number.isFinite,Z.encodeURIComponent=encodeURIComponent,Z.decodeURIComponent=decodeURIComponent;for(let[Y,X]of Object.entries($)){if(Y.startsWith("__")||M8.some((Q)=>Q.test(Y)))continue;if(X&&typeof X==="object"&&!Array.isArray(X))Z[Y]=i7(X);else Z[Y]=X}return Z}function i7($,Z=0){if(Z>=R8.maxSanitizeDepth)return"[Object too deep]";if($===null||typeof $!=="object")return $;if(Array.isArray($))return $.map((X)=>i7(X,Z+1));if($ instanceof Date||$ instanceof RegExp||$ instanceof Map||$ instanceof Set||$ instanceof Error)return $;let Y={};for(let[X,Q]of Object.entries($)){if(X.startsWith("__")||X==="constructor"||X==="prototype")continue;if(Q&&typeof Q==="object")Y[X]=i7(Q,Z+1);else Y[X]=Q}return Y}function s($,Z){try{let Y=FQ(Z),X=Object.keys(Y),Q=Object.values(Y);return Z0($,X)(...Q)}catch{return}}function $0($){try{return w5($),!0}catch{return!1}}function B0($,Z){try{let Y=s($,Z);if(Y&&typeof Y==="object"&&!Array.isArray(Y))return Y;return{}}catch{return{}}}function Z0($,Z){let Y=w5($),X=/^[A-Za-z_$][\w$]*$/,Q=[],J=[];for(let K=0;K<Z.length;K++){let W=Z[K];if(!X.test(W))continue;if(VQ.has(W))continue;Q.push(K),J.push(W)}let G=Function(...J,`
703
703
  'use strict';
704
704
  try {
705
705
  return ${Y};
@@ -869,7 +869,7 @@ ${K}${H}
869
869
  'use strict';
870
870
  ${X}${Y}
871
871
  ${K}
872
- })()</script>`}var FO,VO,NO,MO,DO;var C7=D(()=>{j0();FO=["state","derived","effect","batch","untrack","peek","isSignal","isDerived","onMount","onDestroy","useRef","navigate","goBack","goForward","useRoute","setRouteParams","useSearchParams","useQuery","useMutation","useEventListener","useMeta","useDebounce","useDebouncedValue","useThrottle","useInterval","useTimeout","useToggle","useCounter","useClickOutside","useFocus","useAsync","useColorMode","useDark","ref","reactive","computed","watch","watchEffect","watchMultiple","onBeforeMount","onMounted","onBeforeUpdate","onUpdated","onBeforeUnmount","onUnmounted","defineProps","withDefaults","defineEmits","defineExpose","provide","inject","nextTick","getCurrentInstance","onErrorCaptured","useSlots","useAttrs","createStore","defineStore","useStore","action","createSelector","h","Fragment"],VO=["browserQuery","BrowserQueryBuilder","BrowserQueryError","browserAuth","configureBrowser","getBrowserConfig","createBrowserDb","createBrowserModel","isBrowser"],NO=new Set(["Promise","Object","Array","Map","Set","Date","Error","JSON","Math","Number","String","RegExp","Symbol","WeakMap","WeakSet","Proxy","Reflect","Intl","URL","URLSearchParams","FormData","Headers","Request","Response","AbortController","EventTarget","Element","Document","Node","Window","Console","Storage","Navigator","Blob","File","FileReader","HTMLElement","SVGElement","Event","CustomEvent","DOMParser","XMLSerializer","WebSocket","Worker","SharedWorker","IntersectionObserver","MutationObserver","ResizeObserver","PerformanceObserver","Notification","Bun","Buffer","Process","Modal","Intl"]);MO={left:0,middle:1,right:2};DO=new Set(["if","else","true","false","null","undefined","typeof","instanceof","in","of","new","this","return","void","delete","throw","switch","case","break","continue","for","while","do","try","catch","finally","const","let","var","function","class","import","export","default","async","await","yield","with","debugger","console","window","document","Math","JSON","Date","Array","Object","String","Number","Boolean","Symbol","Map","Set","Promise","Error","parseInt","parseFloat","isNaN","isFinite","encodeURIComponent","decodeURIComponent","setTimeout","setInterval","clearTimeout","clearInterval","fetch","alert","confirm","prompt","event"])});function yO($){let Z="",Y=null,X=!1;for(let J=0;J<$.length;J++){let Q=$[J];if(X){X=!1;continue}if(Q==="\\"&&Y){X=!0;continue}if(Y){if(Y==="`"&&Q==="$"&&J+1<$.length&&$[J+1]==="{"){let G=1;J+=2;while(J<$.length&&G>0){if($[J]==="{")G++;else if($[J]==="}")G--;if(G>0)Z+=$[J],J++}continue}if(Q===Y)Y=null;continue}if(Q==='"'||Q==="'"||Q==="`"){Y=Q;continue}Z+=Q}return Z}function PO($,Z){let Y=/[$A-Z_a-z][$\w]*/g,X;while((X=Y.exec($))!==null){let J=X[0],Q=$[X.index-1];if(bO.has(J))throw Error(`Potentially unsafe expression (identifier ${J}): ${Z}`);if(Q==="."&&WG.has(J))throw Error(`Potentially unsafe expression (property ${J}): ${Z}`)}}function xO($){let Z=/\[\s*(['"])(.*?)\1\s*\]/g,Y;while((Y=Z.exec($))!==null){let X=Y[2];if(!WG.has(X))continue;let J=$.slice(0,Y.index).match(/\S(?=\s*$)/)?.[0],Q=$.slice(Y.index+Y[0].length).match(/^\s*(\S)/)?.[1];if(!((J==="{"||J===",")&&Q===":"))throw Error(`Potentially unsafe expression (bracket key ${Y[2]}): ${$}`)}}function P6($){let Z=$.trim(),Y=yO(Z);PO(Y,Z),xO(Z);for(let X of KG)if(X.test(Y))throw Error(`Potentially unsafe expression (matched /${X.source}/): ${Z}`);if(!GG.allowBracketNotation&&CO.test(Z))throw Error(`Bracket notation with strings not allowed: ${Z}. Enable with configureSafeEvaluator({ allowBracketNotation: true })`);return Z}function vO($){let Z={};Z.Math=Math,Z.JSON=JSON,Z.Date=Date,Z.String=String,Z.Number=Number,Z.Boolean=Boolean,Z.Array=Array,Z.parseInt=Number.parseInt,Z.parseFloat=Number.parseFloat,Z.isNaN=Number.isNaN,Z.isFinite=Number.isFinite,Z.encodeURIComponent=encodeURIComponent,Z.decodeURIComponent=decodeURIComponent;for(let[Y,X]of Object.entries($)){if(Y.startsWith("__")||KG.some((J)=>J.test(Y)))continue;if(X&&typeof X==="object"&&!Array.isArray(X))Z[Y]=fZ(X);else Z[Y]=X}return Z}function fZ($,Z=0){if(Z>=GG.maxSanitizeDepth)return"[Object too deep]";if($===null||typeof $!=="object")return $;if(Array.isArray($))return $.map((X)=>fZ(X,Z+1));if($ instanceof Date||$ instanceof RegExp||$ instanceof Map||$ instanceof Set||$ instanceof Error)return $;let Y={};for(let[X,J]of Object.entries($)){if(X.startsWith("__")||X==="constructor"||X==="prototype")continue;if(J&&typeof J==="object")Y[X]=fZ(J,Z+1);else Y[X]=J}return Y}function Q0($,Z){try{let Y=vO(Z),X=Object.keys(Y),J=Object.values(Y);return U0($,X)(...J)}catch{return}}function B0($){try{return P6($),!0}catch{return!1}}function k0($,Z){try{let Y=Q0($,Z);if(Y&&typeof Y==="object"&&!Array.isArray(Y))return Y;return{}}catch{return{}}}function U0($,Z){let Y=P6($),X=/^[A-Za-z_$][\w$]*$/,J=[],Q=[];for(let K=0;K<Z.length;K++){let W=Z[K];if(!X.test(W))continue;if(fO.has(W))continue;J.push(K),Q.push(W)}let G=Function(...Q,`
872
+ })()</script>`}var FO,VO,NO,MO,DO;var C7=D(()=>{j0();FO=["state","derived","effect","batch","untrack","peek","isSignal","isDerived","onMount","onDestroy","useRef","navigate","goBack","goForward","useRoute","setRouteParams","useSearchParams","useQuery","useMutation","useEventListener","useMeta","useDebounce","useDebouncedValue","useThrottle","useInterval","useTimeout","useToggle","useCounter","useClickOutside","useFocus","useAsync","useColorMode","useDark","ref","reactive","computed","watch","watchEffect","watchMultiple","onBeforeMount","onMounted","onBeforeUpdate","onUpdated","onBeforeUnmount","onUnmounted","defineProps","withDefaults","defineEmits","defineExpose","provide","inject","nextTick","getCurrentInstance","onErrorCaptured","useSlots","useAttrs","createStore","defineStore","useStore","action","createSelector","h","Fragment"],VO=["browserQuery","BrowserQueryBuilder","BrowserQueryError","browserAuth","configureBrowser","getBrowserConfig","createBrowserDb","createBrowserModel","isBrowser"],NO=new Set(["Promise","Object","Array","Map","Set","Date","Error","JSON","Math","Number","String","RegExp","Symbol","WeakMap","WeakSet","Proxy","Reflect","Intl","URL","URLSearchParams","FormData","Headers","Request","Response","AbortController","EventTarget","Element","Document","Node","Window","Console","Storage","Navigator","Blob","File","FileReader","HTMLElement","SVGElement","Event","CustomEvent","DOMParser","XMLSerializer","WebSocket","Worker","SharedWorker","IntersectionObserver","MutationObserver","ResizeObserver","PerformanceObserver","Notification","Bun","Buffer","Process","Modal","Intl"]);MO={left:0,middle:1,right:2};DO=new Set(["if","else","true","false","null","undefined","typeof","instanceof","in","of","new","this","return","void","delete","throw","switch","case","break","continue","for","while","do","try","catch","finally","const","let","var","function","class","import","export","default","async","await","yield","with","debugger","console","window","document","Math","JSON","Date","Array","Object","String","Number","Boolean","Symbol","Map","Set","Promise","Error","parseInt","parseFloat","isNaN","isFinite","encodeURIComponent","decodeURIComponent","setTimeout","setInterval","clearTimeout","clearInterval","fetch","alert","confirm","prompt","event"])});function yO($){let Z="",Y=null,X=!1;for(let J=0;J<$.length;J++){let Q=$[J];if(X){X=!1;continue}if(Q==="\\"&&Y){X=!0;continue}if(Y){if(Y==="`"&&Q==="$"&&J+1<$.length&&$[J+1]==="{"){let G=1;J+=2;while(J<$.length&&G>0){if($[J]==="{")G++;else if($[J]==="}")G--;if(G>0)Z+=$[J],J++}continue}if(Q===Y)Y=null;continue}if(Q==='"'||Q==="'"||Q==="`"){Y=Q;continue}Z+=Q}return Z}function PO($,Z){let Y=/[$A-Z_a-z][$\w]*/g,X;while((X=Y.exec($))!==null){let J=X[0],Q=$[X.index-1];if(bO.has(J))throw Error(`Potentially unsafe expression (matched /\\b${J}\\b/; identifier ${J}): ${Z}`);if(Q==="."&&WG.has(J))throw Error(`Potentially unsafe expression (matched /.${J}/; property ${J}): ${Z}`)}}function xO($){let Z=/\[\s*(['"])(.*?)\1\s*\]/g,Y;while((Y=Z.exec($))!==null){let X=Y[2];if(!WG.has(X))continue;let J=$.slice(0,Y.index).match(/\S(?=\s*$)/)?.[0],Q=$.slice(Y.index+Y[0].length).match(/^\s*(\S)/)?.[1];if(!((J==="{"||J===",")&&Q===":"))throw Error(`Potentially unsafe expression (bracket key ${Y[2]}): ${$}`)}}function P6($){let Z=$.trim(),Y=yO(Z);PO(Y,Z),xO(Z);for(let X of KG)if(X.test(Y))throw Error(`Potentially unsafe expression (matched /${X.source}/): ${Z}`);if(!GG.allowBracketNotation&&CO.test(Z))throw Error(`Bracket notation with strings not allowed: ${Z}. Enable with configureSafeEvaluator({ allowBracketNotation: true })`);return Z}function vO($){let Z={};Z.Math=Math,Z.JSON=JSON,Z.Date=Date,Z.String=String,Z.Number=Number,Z.Boolean=Boolean,Z.Array=Array,Z.parseInt=Number.parseInt,Z.parseFloat=Number.parseFloat,Z.isNaN=Number.isNaN,Z.isFinite=Number.isFinite,Z.encodeURIComponent=encodeURIComponent,Z.decodeURIComponent=decodeURIComponent;for(let[Y,X]of Object.entries($)){if(Y.startsWith("__")||KG.some((J)=>J.test(Y)))continue;if(X&&typeof X==="object"&&!Array.isArray(X))Z[Y]=fZ(X);else Z[Y]=X}return Z}function fZ($,Z=0){if(Z>=GG.maxSanitizeDepth)return"[Object too deep]";if($===null||typeof $!=="object")return $;if(Array.isArray($))return $.map((X)=>fZ(X,Z+1));if($ instanceof Date||$ instanceof RegExp||$ instanceof Map||$ instanceof Set||$ instanceof Error)return $;let Y={};for(let[X,J]of Object.entries($)){if(X.startsWith("__")||X==="constructor"||X==="prototype")continue;if(J&&typeof J==="object")Y[X]=fZ(J,Z+1);else Y[X]=J}return Y}function Q0($,Z){try{let Y=vO(Z),X=Object.keys(Y),J=Object.values(Y);return U0($,X)(...J)}catch{return}}function B0($){try{return P6($),!0}catch{return!1}}function k0($,Z){try{let Y=Q0($,Z);if(Y&&typeof Y==="object"&&!Array.isArray(Y))return Y;return{}}catch{return{}}}function U0($,Z){let Y=P6($),X=/^[A-Za-z_$][\w$]*$/,J=[],Q=[];for(let K=0;K<Z.length;K++){let W=Z[K];if(!X.test(W))continue;if(fO.has(W))continue;J.push(K),Q.push(W)}let G=Function(...Q,`
873
873
  'use strict';
874
874
  try {
875
875
  return ${Y};
package/dist/docs.js CHANGED
@@ -612,7 +612,7 @@ ${q}`},hasEndTag:!1,description:"Coordinates multiple animations together as a g
612
612
  `}),$}import b3 from"process";function m0($="STX_PUBLIC_"){let Z={},Y={};for(let[X,J]of Object.entries(b3.env)){if(!X.startsWith($)||J===void 0)continue;Z[`import.meta.env.${X}`]=JSON.stringify(J),Y[X]=J}return Z["import.meta.env"]=JSON.stringify(Y),Z}function vB($="STX_PUBLIC_"){let Z={};for(let[Y,X]of Object.entries(b3.env))if(Y.startsWith($)&&X!==void 0)Z[Y]=X;return Z}var g1=()=>{};var k9={};c(k9,{hasUserImports:()=>CJ,bundleClientScript:()=>xJ});import F0 from"path";import n0 from"fs";function CJ($){let Z=/^\s*import\s+(?!type\s)/gm;if(!$.match(Z))return!1;let X=/^\s*import\s+(?!type\s).*?\s+from\s+['"]([^'"]+)['"]/gm,J;while((J=X.exec($))!==null){let G=J[1];if(!y3.some((q)=>q.test(G)))return console.log("[stx:bundler] detected user import:",G),!0}let Q=/^\s*import\s+['"]([^'"]+)['"]/gm;while((J=Q.exec($))!==null){let G=J[1];if(!y3.some((q)=>q.test(G)))return console.log("[stx:bundler] detected side-effect import:",G),!0}return!1}function vJ($,Z,Y){let X=(J,Q)=>{let G=J===Y?Z:F0.dirname(J),K=F0.resolve(G,Q),q=[K,`${K}.ts`,`${K}.tsx`,`${K}.js`,`${K}.mjs`,`${K}.jsx`,F0.join(K,"index.ts"),F0.join(K,"index.tsx"),F0.join(K,"index.js"),F0.join(K,"index.mjs")];for(let z of q)try{if(n0.existsSync(z)&&n0.statSync(z,{throwIfNoEntry:!1})?.isFile())return z}catch{}return K};return{name:"stx-client-bundle",setup(J){J.onResolve({filter:/^(stx|@stacksjs\/stx|@stacksjs\/browser)$/},(Q)=>({path:Q.path,external:!0})),J.onResolve({filter:/^(@stores|@composables|stx\/stores)$/},(Q)=>({path:Q.path,external:!0})),J.onResolve({filter:/^\.\.?\//},(Q)=>{return{path:X(Q.importer,Q.path)}}),J.onResolve({filter:/^@\//},(Q)=>{let G=F0.resolve($,Q.path.slice(2)),K=[G,`${G}.ts`,`${G}.js`,F0.join(G,"index.ts"),F0.join(G,"index.js")];for(let q of K)if(n0.existsSync(q)&&n0.statSync(q,{throwIfNoEntry:!1})?.isFile())return console.log("[stx:bundler] resolved @/ import:",Q.path,"\u2192",q),{path:q};return console.warn("[stx:bundler] could not resolve @/ import:",Q.path),{path:G}})}}}async function xJ($,Z,Y={}){let X=Y.projectRoot||process.cwd(),J=Y.minify??!1,Q=Y.cacheDir||F0.join(X,".stx","bundle-cache"),G=new Bun.CryptoHasher("md5");G.update($+Z);let K=G.digest("hex").slice(0,12),q=F0.join(Q,`${K}.js`),z=Bun.file(q);if(await z.exists())return console.log("[stx:bundler] cache hit:",K),await z.text();let _=F0.join(X,".stx","bundle-tmp"),U=F0.join(_,`${K}.ts`),W=F0.join(_,"out",K);n0.mkdirSync(_,{recursive:!0}),n0.mkdirSync(W,{recursive:!0});let B=F0.dirname(Z),j=[],O=/^(export\s+)?(?:const|let|var)\s+(?:\{([^}]+)\}|(\w+))/gm,L=/^(export\s+)?(?:async\s+)?function\s+(\w+)/gm,F;while((F=O.exec($))!==null){if(F[1])continue;if(F[2])F[2].split(",").forEach((V)=>{let R=V.split(":")[0].trim();if(R)j.push(R)});else if(F[3])j.push(F[3])}while((F=L.exec($))!==null){if(F[1])continue;j.push(F[2])}let H=j.length>0?`
613
613
  export { ${j.join(", ")} }`:"";await Bun.write(U,$+H),console.log("[stx:bundler] bundling:",K,"from:",F0.basename(Z));try{let V=await Bun.build({entrypoints:[U],outdir:W,target:"browser",format:"esm",minify:J,plugins:[vJ(X,B,U)],define:{"process.env.NODE_ENV":J?'"production"':'"development"',...m0()},root:X});if(!V.success){let w=V.logs.filter((A)=>A.level==="error").map((A)=>A.message).join(", ");return console.warn("[stx:bundler] build failed:",w),$}let R="";for(let w of V.outputs){R=await w.text();break}return R=R.replace(/^\s*export\s*\{[^}]*\}\s*;?\s*$/gm,"").replace(/^\s*export\s+default\s+.*$/gm,"").trim(),console.log("[stx:bundler] bundled:",K,"output:",R.length,"bytes"),n0.mkdirSync(Q,{recursive:!0}),await Bun.write(q,R),R}catch(V){let R=V instanceof Error?V.message:String(V),w=V?.errors,A=Array.isArray(w)&&w.length>0?`
614
614
  ${w.map((N)=>`- ${N?.message??N}`).join(`
615
- `)}`:"";return console.warn(`[stx:bundler] error: ${R}${A}`),$}finally{try{n0.rmSync(U,{force:!0}),n0.rmSync(W,{recursive:!0,force:!0})}catch{}}}var y3;var S9=b(()=>{g1();y3=[/^stx$/,/^@stacksjs\/stx$/,/^@stacksjs\/browser$/,/^@stores$/,/^stx\/stores$/,/^@composables$/]});function dB($){h1={...h1,...$}}function mB(){h1={...C3}}function uB(){return{...h1}}function hJ($){let Z="",Y=null,X=!1;for(let J=0;J<$.length;J++){let Q=$[J];if(X){X=!1;continue}if(Q==="\\"&&Y){X=!0;continue}if(Y){if(Y==="`"&&Q==="$"&&J+1<$.length&&$[J+1]==="{"){let G=1;J+=2;while(J<$.length&&G>0){if($[J]==="{")G++;else if($[J]==="}")G--;if(G>0)Z+=$[J],J++}continue}if(Q===Y)Y=null;continue}if(Q==='"'||Q==="'"||Q==="`"){Y=Q;continue}Z+=Q}return Z}function dJ($,Z){let Y=/[$A-Z_a-z][$\w]*/g,X;while((X=Y.exec($))!==null){let J=X[0],Q=$[X.index-1];if(fJ.has(J))throw Error(`Potentially unsafe expression (identifier ${J}): ${Z}`);if(Q==="."&&v3.has(J))throw Error(`Potentially unsafe expression (property ${J}): ${Z}`)}}function mJ($){let Z=/\[\s*(['"])(.*?)\1\s*\]/g,Y;while((Y=Z.exec($))!==null){let X=Y[2];if(!v3.has(X))continue;let J=$.slice(0,Y.index).match(/\S(?=\s*$)/)?.[0],Q=$.slice(Y.index+Y[0].length).match(/^\s*(\S)/)?.[1];if(!((J==="{"||J===",")&&Q===":"))throw Error(`Potentially unsafe expression (bracket key ${Y[2]}): ${$}`)}}function _5($){let Z=$.trim(),Y=hJ(Z);dJ(Y,Z),mJ(Z);for(let X of y9)if(X.test(Y))throw Error(`Potentially unsafe expression (matched /${X.source}/): ${Z}`);if(!h1.allowBracketNotation&&gJ.test(Z))throw Error(`Bracket notation with strings not allowed: ${Z}. Enable with configureSafeEvaluator({ allowBracketNotation: true })`);return Z}function x3($){let Z={};Z.Math=Math,Z.JSON=JSON,Z.Date=Date,Z.String=String,Z.Number=Number,Z.Boolean=Boolean,Z.Array=Array,Z.parseInt=Number.parseInt,Z.parseFloat=Number.parseFloat,Z.isNaN=Number.isNaN,Z.isFinite=Number.isFinite,Z.encodeURIComponent=encodeURIComponent,Z.decodeURIComponent=decodeURIComponent;for(let[Y,X]of Object.entries($)){if(Y.startsWith("__")||y9.some((J)=>J.test(Y)))continue;if(X&&typeof X==="object"&&!Array.isArray(X))Z[Y]=b9(X);else Z[Y]=X}return Z}function b9($,Z=0){if(Z>=h1.maxSanitizeDepth)return"[Object too deep]";if($===null||typeof $!=="object")return $;if(Array.isArray($))return $.map((X)=>b9(X,Z+1));if($ instanceof Date||$ instanceof RegExp||$ instanceof Map||$ instanceof Set||$ instanceof Error)return $;let Y={};for(let[X,J]of Object.entries($)){if(X.startsWith("__")||X==="constructor"||X==="prototype")continue;if(J&&typeof J==="object")Y[X]=b9(J,Z+1);else Y[X]=J}return Y}function n($,Z){try{let Y=x3(Z),X=Object.keys(Y),J=Object.values(Y);return t($,X)(...J)}catch{return}}function a($){try{return _5($),!0}catch{return!1}}function lB($){try{return _5($),null}catch(Z){return Z instanceof Error?Z.message:String(Z)}}function pB($,Z){try{let Y=n($,Z);return Boolean(Y)}catch{return!1}}function cB($,Z){try{let Y=n($,Z);if(Array.isArray(Y))return Y;if(Y&&typeof Y==="object"&&"length"in Y){let X=Y.length;if(typeof X==="number"&&Number.isFinite(X)&&X>=0&&Number.isInteger(X))return Array.from(Y)}return[]}catch{return[]}}function _0($,Z){try{let Y=n($,Z);if(Y&&typeof Y==="object"&&!Array.isArray(Y))return Y;return{}}catch{return{}}}function t($,Z){let Y=_5($),X=/^[A-Za-z_$][\w$]*$/,J=[],Q=[];for(let K=0;K<Z.length;K++){let q=Z[K];if(!X.test(q))continue;if(uJ.has(q))continue;J.push(K),Q.push(q)}let G=Function(...Q,`
615
+ `)}`:"";return console.warn(`[stx:bundler] error: ${R}${A}`),$}finally{try{n0.rmSync(U,{force:!0}),n0.rmSync(W,{recursive:!0,force:!0})}catch{}}}var y3;var S9=b(()=>{g1();y3=[/^stx$/,/^@stacksjs\/stx$/,/^@stacksjs\/browser$/,/^@stores$/,/^stx\/stores$/,/^@composables$/]});function dB($){h1={...h1,...$}}function mB(){h1={...C3}}function uB(){return{...h1}}function hJ($){let Z="",Y=null,X=!1;for(let J=0;J<$.length;J++){let Q=$[J];if(X){X=!1;continue}if(Q==="\\"&&Y){X=!0;continue}if(Y){if(Y==="`"&&Q==="$"&&J+1<$.length&&$[J+1]==="{"){let G=1;J+=2;while(J<$.length&&G>0){if($[J]==="{")G++;else if($[J]==="}")G--;if(G>0)Z+=$[J],J++}continue}if(Q===Y)Y=null;continue}if(Q==='"'||Q==="'"||Q==="`"){Y=Q;continue}Z+=Q}return Z}function dJ($,Z){let Y=/[$A-Z_a-z][$\w]*/g,X;while((X=Y.exec($))!==null){let J=X[0],Q=$[X.index-1];if(fJ.has(J))throw Error(`Potentially unsafe expression (matched /\\b${J}\\b/; identifier ${J}): ${Z}`);if(Q==="."&&v3.has(J))throw Error(`Potentially unsafe expression (matched /.${J}/; property ${J}): ${Z}`)}}function mJ($){let Z=/\[\s*(['"])(.*?)\1\s*\]/g,Y;while((Y=Z.exec($))!==null){let X=Y[2];if(!v3.has(X))continue;let J=$.slice(0,Y.index).match(/\S(?=\s*$)/)?.[0],Q=$.slice(Y.index+Y[0].length).match(/^\s*(\S)/)?.[1];if(!((J==="{"||J===",")&&Q===":"))throw Error(`Potentially unsafe expression (bracket key ${Y[2]}): ${$}`)}}function _5($){let Z=$.trim(),Y=hJ(Z);dJ(Y,Z),mJ(Z);for(let X of y9)if(X.test(Y))throw Error(`Potentially unsafe expression (matched /${X.source}/): ${Z}`);if(!h1.allowBracketNotation&&gJ.test(Z))throw Error(`Bracket notation with strings not allowed: ${Z}. Enable with configureSafeEvaluator({ allowBracketNotation: true })`);return Z}function x3($){let Z={};Z.Math=Math,Z.JSON=JSON,Z.Date=Date,Z.String=String,Z.Number=Number,Z.Boolean=Boolean,Z.Array=Array,Z.parseInt=Number.parseInt,Z.parseFloat=Number.parseFloat,Z.isNaN=Number.isNaN,Z.isFinite=Number.isFinite,Z.encodeURIComponent=encodeURIComponent,Z.decodeURIComponent=decodeURIComponent;for(let[Y,X]of Object.entries($)){if(Y.startsWith("__")||y9.some((J)=>J.test(Y)))continue;if(X&&typeof X==="object"&&!Array.isArray(X))Z[Y]=b9(X);else Z[Y]=X}return Z}function b9($,Z=0){if(Z>=h1.maxSanitizeDepth)return"[Object too deep]";if($===null||typeof $!=="object")return $;if(Array.isArray($))return $.map((X)=>b9(X,Z+1));if($ instanceof Date||$ instanceof RegExp||$ instanceof Map||$ instanceof Set||$ instanceof Error)return $;let Y={};for(let[X,J]of Object.entries($)){if(X.startsWith("__")||X==="constructor"||X==="prototype")continue;if(J&&typeof J==="object")Y[X]=b9(J,Z+1);else Y[X]=J}return Y}function n($,Z){try{let Y=x3(Z),X=Object.keys(Y),J=Object.values(Y);return t($,X)(...J)}catch{return}}function a($){try{return _5($),!0}catch{return!1}}function lB($){try{return _5($),null}catch(Z){return Z instanceof Error?Z.message:String(Z)}}function pB($,Z){try{let Y=n($,Z);return Boolean(Y)}catch{return!1}}function cB($,Z){try{let Y=n($,Z);if(Array.isArray(Y))return Y;if(Y&&typeof Y==="object"&&"length"in Y){let X=Y.length;if(typeof X==="number"&&Number.isFinite(X)&&X>=0&&Number.isInteger(X))return Array.from(Y)}return[]}catch{return[]}}function _0($,Z){try{let Y=n($,Z);if(Y&&typeof Y==="object"&&!Array.isArray(Y))return Y;return{}}catch{return{}}}function t($,Z){let Y=_5($),X=/^[A-Za-z_$][\w$]*$/,J=[],Q=[];for(let K=0;K<Z.length;K++){let q=Z[K];if(!X.test(q))continue;if(uJ.has(q))continue;J.push(K),Q.push(q)}let G=Function(...Q,`
616
616
  'use strict';
617
617
  try {
618
618
  return ${Y};
@@ -61,7 +61,7 @@ ${K}${O}
61
61
  'use strict';
62
62
  ${X}${Y}
63
63
  ${K}
64
- })()</script>`}var YY,XY,JY,qY,UY;var S$=b(()=>{H0();YY=["state","derived","effect","batch","untrack","peek","isSignal","isDerived","onMount","onDestroy","useRef","navigate","goBack","goForward","useRoute","setRouteParams","useSearchParams","useQuery","useMutation","useEventListener","useMeta","useDebounce","useDebouncedValue","useThrottle","useInterval","useTimeout","useToggle","useCounter","useClickOutside","useFocus","useAsync","useColorMode","useDark","ref","reactive","computed","watch","watchEffect","watchMultiple","onBeforeMount","onMounted","onBeforeUpdate","onUpdated","onBeforeUnmount","onUnmounted","defineProps","withDefaults","defineEmits","defineExpose","provide","inject","nextTick","getCurrentInstance","onErrorCaptured","useSlots","useAttrs","createStore","defineStore","useStore","action","createSelector","h","Fragment"],XY=["browserQuery","BrowserQueryBuilder","BrowserQueryError","browserAuth","configureBrowser","getBrowserConfig","createBrowserDb","createBrowserModel","isBrowser"],JY=new Set(["Promise","Object","Array","Map","Set","Date","Error","JSON","Math","Number","String","RegExp","Symbol","WeakMap","WeakSet","Proxy","Reflect","Intl","URL","URLSearchParams","FormData","Headers","Request","Response","AbortController","EventTarget","Element","Document","Node","Window","Console","Storage","Navigator","Blob","File","FileReader","HTMLElement","SVGElement","Event","CustomEvent","DOMParser","XMLSerializer","WebSocket","Worker","SharedWorker","IntersectionObserver","MutationObserver","ResizeObserver","PerformanceObserver","Notification","Bun","Buffer","Process","Modal","Intl"]);qY={left:0,middle:1,right:2};UY=new Set(["if","else","true","false","null","undefined","typeof","instanceof","in","of","new","this","return","void","delete","throw","switch","case","break","continue","for","while","do","try","catch","finally","const","let","var","function","class","import","export","default","async","await","yield","with","debugger","console","window","document","Math","JSON","Date","Array","Object","String","Number","Boolean","Symbol","Map","Set","Promise","Error","parseInt","parseFloat","isNaN","isFinite","encodeURIComponent","decodeURIComponent","setTimeout","setInterval","clearTimeout","clearInterval","fetch","alert","confirm","prompt","event"])});function LY($){let Z="",Y=null,X=!1;for(let Q=0;Q<$.length;Q++){let J=$[Q];if(X){X=!1;continue}if(J==="\\"&&Y){X=!0;continue}if(Y){if(Y==="`"&&J==="$"&&Q+1<$.length&&$[Q+1]==="{"){let G=1;Q+=2;while(Q<$.length&&G>0){if($[Q]==="{")G++;else if($[Q]==="}")G--;if(G>0)Z+=$[Q],Q++}continue}if(J===Y)Y=null;continue}if(J==='"'||J==="'"||J==="`"){Y=J;continue}Z+=J}return Z}function FY($,Z){let Y=/[$A-Z_a-z][$\w]*/g,X;while((X=Y.exec($))!==null){let Q=X[0],J=$[X.index-1];if(OY.has(Q))throw Error(`Potentially unsafe expression (identifier ${Q}): ${Z}`);if(J==="."&&J7.has(Q))throw Error(`Potentially unsafe expression (property ${Q}): ${Z}`)}}function VY($){let Z=/\[\s*(['"])(.*?)\1\s*\]/g,Y;while((Y=Z.exec($))!==null){let X=Y[2];if(!J7.has(X))continue;let Q=$.slice(0,Y.index).match(/\S(?=\s*$)/)?.[0],J=$.slice(Y.index+Y[0].length).match(/^\s*(\S)/)?.[1];if(!((Q==="{"||Q===",")&&J===":"))throw Error(`Potentially unsafe expression (bracket key ${Y[2]}): ${$}`)}}function B5($){let Z=$.trim(),Y=LY(Z);FY(Y,Z),VY(Z);for(let X of X7)if(X.test(Y))throw Error(`Potentially unsafe expression (matched /${X.source}/): ${Z}`);if(!Y7.allowBracketNotation&&HY.test(Z))throw Error(`Bracket notation with strings not allowed: ${Z}. Enable with configureSafeEvaluator({ allowBracketNotation: true })`);return Z}function wY($){let Z={};Z.Math=Math,Z.JSON=JSON,Z.Date=Date,Z.String=String,Z.Number=Number,Z.Boolean=Boolean,Z.Array=Array,Z.parseInt=Number.parseInt,Z.parseFloat=Number.parseFloat,Z.isNaN=Number.isNaN,Z.isFinite=Number.isFinite,Z.encodeURIComponent=encodeURIComponent,Z.decodeURIComponent=decodeURIComponent;for(let[Y,X]of Object.entries($)){if(Y.startsWith("__")||X7.some((Q)=>Q.test(Y)))continue;if(X&&typeof X==="object"&&!Array.isArray(X))Z[Y]=b$(X);else Z[Y]=X}return Z}function b$($,Z=0){if(Z>=Y7.maxSanitizeDepth)return"[Object too deep]";if($===null||typeof $!=="object")return $;if(Array.isArray($))return $.map((X)=>b$(X,Z+1));if($ instanceof Date||$ instanceof RegExp||$ instanceof Map||$ instanceof Set||$ instanceof Error)return $;let Y={};for(let[X,Q]of Object.entries($)){if(X.startsWith("__")||X==="constructor"||X==="prototype")continue;if(Q&&typeof Q==="object")Y[X]=b$(Q,Z+1);else Y[X]=Q}return Y}function i($,Z){try{let Y=wY(Z),X=Object.keys(Y),Q=Object.values(Y);return $0($,X)(...Q)}catch{return}}function e($){try{return B5($),!0}catch{return!1}}function W0($,Z){try{let Y=i($,Z);if(Y&&typeof Y==="object"&&!Array.isArray(Y))return Y;return{}}catch{return{}}}function $0($,Z){let Y=B5($),X=/^[A-Za-z_$][\w$]*$/,Q=[],J=[];for(let K=0;K<Z.length;K++){let q=Z[K];if(!X.test(q))continue;if(RY.has(q))continue;Q.push(K),J.push(q)}let G=Function(...J,`
64
+ })()</script>`}var YY,XY,JY,qY,UY;var S$=b(()=>{H0();YY=["state","derived","effect","batch","untrack","peek","isSignal","isDerived","onMount","onDestroy","useRef","navigate","goBack","goForward","useRoute","setRouteParams","useSearchParams","useQuery","useMutation","useEventListener","useMeta","useDebounce","useDebouncedValue","useThrottle","useInterval","useTimeout","useToggle","useCounter","useClickOutside","useFocus","useAsync","useColorMode","useDark","ref","reactive","computed","watch","watchEffect","watchMultiple","onBeforeMount","onMounted","onBeforeUpdate","onUpdated","onBeforeUnmount","onUnmounted","defineProps","withDefaults","defineEmits","defineExpose","provide","inject","nextTick","getCurrentInstance","onErrorCaptured","useSlots","useAttrs","createStore","defineStore","useStore","action","createSelector","h","Fragment"],XY=["browserQuery","BrowserQueryBuilder","BrowserQueryError","browserAuth","configureBrowser","getBrowserConfig","createBrowserDb","createBrowserModel","isBrowser"],JY=new Set(["Promise","Object","Array","Map","Set","Date","Error","JSON","Math","Number","String","RegExp","Symbol","WeakMap","WeakSet","Proxy","Reflect","Intl","URL","URLSearchParams","FormData","Headers","Request","Response","AbortController","EventTarget","Element","Document","Node","Window","Console","Storage","Navigator","Blob","File","FileReader","HTMLElement","SVGElement","Event","CustomEvent","DOMParser","XMLSerializer","WebSocket","Worker","SharedWorker","IntersectionObserver","MutationObserver","ResizeObserver","PerformanceObserver","Notification","Bun","Buffer","Process","Modal","Intl"]);qY={left:0,middle:1,right:2};UY=new Set(["if","else","true","false","null","undefined","typeof","instanceof","in","of","new","this","return","void","delete","throw","switch","case","break","continue","for","while","do","try","catch","finally","const","let","var","function","class","import","export","default","async","await","yield","with","debugger","console","window","document","Math","JSON","Date","Array","Object","String","Number","Boolean","Symbol","Map","Set","Promise","Error","parseInt","parseFloat","isNaN","isFinite","encodeURIComponent","decodeURIComponent","setTimeout","setInterval","clearTimeout","clearInterval","fetch","alert","confirm","prompt","event"])});function LY($){let Z="",Y=null,X=!1;for(let Q=0;Q<$.length;Q++){let J=$[Q];if(X){X=!1;continue}if(J==="\\"&&Y){X=!0;continue}if(Y){if(Y==="`"&&J==="$"&&Q+1<$.length&&$[Q+1]==="{"){let G=1;Q+=2;while(Q<$.length&&G>0){if($[Q]==="{")G++;else if($[Q]==="}")G--;if(G>0)Z+=$[Q],Q++}continue}if(J===Y)Y=null;continue}if(J==='"'||J==="'"||J==="`"){Y=J;continue}Z+=J}return Z}function FY($,Z){let Y=/[$A-Z_a-z][$\w]*/g,X;while((X=Y.exec($))!==null){let Q=X[0],J=$[X.index-1];if(OY.has(Q))throw Error(`Potentially unsafe expression (matched /\\b${Q}\\b/; identifier ${Q}): ${Z}`);if(J==="."&&J7.has(Q))throw Error(`Potentially unsafe expression (matched /.${Q}/; property ${Q}): ${Z}`)}}function VY($){let Z=/\[\s*(['"])(.*?)\1\s*\]/g,Y;while((Y=Z.exec($))!==null){let X=Y[2];if(!J7.has(X))continue;let Q=$.slice(0,Y.index).match(/\S(?=\s*$)/)?.[0],J=$.slice(Y.index+Y[0].length).match(/^\s*(\S)/)?.[1];if(!((Q==="{"||Q===",")&&J===":"))throw Error(`Potentially unsafe expression (bracket key ${Y[2]}): ${$}`)}}function B5($){let Z=$.trim(),Y=LY(Z);FY(Y,Z),VY(Z);for(let X of X7)if(X.test(Y))throw Error(`Potentially unsafe expression (matched /${X.source}/): ${Z}`);if(!Y7.allowBracketNotation&&HY.test(Z))throw Error(`Bracket notation with strings not allowed: ${Z}. Enable with configureSafeEvaluator({ allowBracketNotation: true })`);return Z}function wY($){let Z={};Z.Math=Math,Z.JSON=JSON,Z.Date=Date,Z.String=String,Z.Number=Number,Z.Boolean=Boolean,Z.Array=Array,Z.parseInt=Number.parseInt,Z.parseFloat=Number.parseFloat,Z.isNaN=Number.isNaN,Z.isFinite=Number.isFinite,Z.encodeURIComponent=encodeURIComponent,Z.decodeURIComponent=decodeURIComponent;for(let[Y,X]of Object.entries($)){if(Y.startsWith("__")||X7.some((Q)=>Q.test(Y)))continue;if(X&&typeof X==="object"&&!Array.isArray(X))Z[Y]=b$(X);else Z[Y]=X}return Z}function b$($,Z=0){if(Z>=Y7.maxSanitizeDepth)return"[Object too deep]";if($===null||typeof $!=="object")return $;if(Array.isArray($))return $.map((X)=>b$(X,Z+1));if($ instanceof Date||$ instanceof RegExp||$ instanceof Map||$ instanceof Set||$ instanceof Error)return $;let Y={};for(let[X,Q]of Object.entries($)){if(X.startsWith("__")||X==="constructor"||X==="prototype")continue;if(Q&&typeof Q==="object")Y[X]=b$(Q,Z+1);else Y[X]=Q}return Y}function i($,Z){try{let Y=wY(Z),X=Object.keys(Y),Q=Object.values(Y);return $0($,X)(...Q)}catch{return}}function e($){try{return B5($),!0}catch{return!1}}function W0($,Z){try{let Y=i($,Z);if(Y&&typeof Y==="object"&&!Array.isArray(Y))return Y;return{}}catch{return{}}}function $0($,Z){let Y=B5($),X=/^[A-Za-z_$][\w$]*$/,Q=[],J=[];for(let K=0;K<Z.length;K++){let q=Z[K];if(!X.test(q))continue;if(RY.has(q))continue;Q.push(K),J.push(q)}let G=Function(...J,`
65
65
  'use strict';
66
66
  try {
67
67
  return ${Y};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- var l9=Object.defineProperty;var p9=($)=>$;function c9($,Z){this[$]=p9.bind(null,Z)}var t0=($,Z)=>{for(var Y in Z)l9($,Y,{get:Z[Y],enumerable:!0,configurable:!0,set:c9.bind(Z,Y)})};var O=($,Z)=>()=>($&&(Z=$($=0)),Z);var y=import.meta.require;function s9($){let Z="",Y=null,J=!1;for(let X=0;X<$.length;X++){let G=$[X];if(J){J=!1;continue}if(G==="\\"&&Y){J=!0;continue}if(Y){if(Y==="`"&&G==="$"&&X+1<$.length&&$[X+1]==="{"){let Q=1;X+=2;while(X<$.length&&Q>0){if($[X]==="{")Q++;else if($[X]==="}")Q--;if(Q>0)Z+=$[X],X++}continue}if(G===Y)Y=null;continue}if(G==='"'||G==="'"||G==="`"){Y=G;continue}Z+=G}return Z}function r9($,Z){let Y=/[$A-Z_a-z][$\w]*/g,J;while((J=Y.exec($))!==null){let X=J[0],G=$[J.index-1];if(n9.has(X))throw Error(`Potentially unsafe expression (identifier ${X}): ${Z}`);if(G==="."&&j5.has(X))throw Error(`Potentially unsafe expression (property ${X}): ${Z}`)}}function a9($){let Z=/\[\s*(['"])(.*?)\1\s*\]/g,Y;while((Y=Z.exec($))!==null){let J=Y[2];if(!j5.has(J))continue;let X=$.slice(0,Y.index).match(/\S(?=\s*$)/)?.[0],G=$.slice(Y.index+Y[0].length).match(/^\s*(\S)/)?.[1];if(!((X==="{"||X===",")&&G===":"))throw Error(`Potentially unsafe expression (bracket key ${Y[2]}): ${$}`)}}function $1($){let Z=$.trim(),Y=s9(Z);r9(Y,Z),a9(Z);for(let J of H5)if(J.test(Y))throw Error(`Potentially unsafe expression (matched /${J.source}/): ${Z}`);if(!B5.allowBracketNotation&&o9.test(Z))throw Error(`Bracket notation with strings not allowed: ${Z}. Enable with configureSafeEvaluator({ allowBracketNotation: true })`);return Z}function t9($){let Z={};Z.Math=Math,Z.JSON=JSON,Z.Date=Date,Z.String=String,Z.Number=Number,Z.Boolean=Boolean,Z.Array=Array,Z.parseInt=Number.parseInt,Z.parseFloat=Number.parseFloat,Z.isNaN=Number.isNaN,Z.isFinite=Number.isFinite,Z.encodeURIComponent=encodeURIComponent,Z.decodeURIComponent=decodeURIComponent;for(let[Y,J]of Object.entries($)){if(Y.startsWith("__")||H5.some((X)=>X.test(Y)))continue;if(J&&typeof J==="object"&&!Array.isArray(J))Z[Y]=e0(J);else Z[Y]=J}return Z}function e0($,Z=0){if(Z>=B5.maxSanitizeDepth)return"[Object too deep]";if($===null||typeof $!=="object")return $;if(Array.isArray($))return $.map((J)=>e0(J,Z+1));if($ instanceof Date||$ instanceof RegExp||$ instanceof Map||$ instanceof Set||$ instanceof Error)return $;let Y={};for(let[J,X]of Object.entries($)){if(J.startsWith("__")||J==="constructor"||J==="prototype")continue;if(X&&typeof X==="object")Y[J]=e0(X,Z+1);else Y[J]=X}return Y}function i($,Z){try{let Y=t9(Z),J=Object.keys(Y),X=Object.values(Y);return s($,J)(...X)}catch{return}}function o($){try{return $1($),!0}catch{return!1}}function s($,Z){let Y=$1($),J=/^[A-Za-z_$][\w$]*$/,X=[],G=[];for(let K=0;K<Z.length;K++){let q=Z[K];if(!J.test(q))continue;if(e9.has(q))continue;X.push(K),G.push(q)}let Q=Function(...G,`
2
+ var l9=Object.defineProperty;var p9=($)=>$;function c9($,Z){this[$]=p9.bind(null,Z)}var t0=($,Z)=>{for(var Y in Z)l9($,Y,{get:Z[Y],enumerable:!0,configurable:!0,set:c9.bind(Z,Y)})};var O=($,Z)=>()=>($&&(Z=$($=0)),Z);var y=import.meta.require;function s9($){let Z="",Y=null,J=!1;for(let X=0;X<$.length;X++){let G=$[X];if(J){J=!1;continue}if(G==="\\"&&Y){J=!0;continue}if(Y){if(Y==="`"&&G==="$"&&X+1<$.length&&$[X+1]==="{"){let Q=1;X+=2;while(X<$.length&&Q>0){if($[X]==="{")Q++;else if($[X]==="}")Q--;if(Q>0)Z+=$[X],X++}continue}if(G===Y)Y=null;continue}if(G==='"'||G==="'"||G==="`"){Y=G;continue}Z+=G}return Z}function r9($,Z){let Y=/[$A-Z_a-z][$\w]*/g,J;while((J=Y.exec($))!==null){let X=J[0],G=$[J.index-1];if(n9.has(X))throw Error(`Potentially unsafe expression (matched /\\b${X}\\b/; identifier ${X}): ${Z}`);if(G==="."&&j5.has(X))throw Error(`Potentially unsafe expression (matched /.${X}/; property ${X}): ${Z}`)}}function a9($){let Z=/\[\s*(['"])(.*?)\1\s*\]/g,Y;while((Y=Z.exec($))!==null){let J=Y[2];if(!j5.has(J))continue;let X=$.slice(0,Y.index).match(/\S(?=\s*$)/)?.[0],G=$.slice(Y.index+Y[0].length).match(/^\s*(\S)/)?.[1];if(!((X==="{"||X===",")&&G===":"))throw Error(`Potentially unsafe expression (bracket key ${Y[2]}): ${$}`)}}function $1($){let Z=$.trim(),Y=s9(Z);r9(Y,Z),a9(Z);for(let J of H5)if(J.test(Y))throw Error(`Potentially unsafe expression (matched /${J.source}/): ${Z}`);if(!B5.allowBracketNotation&&o9.test(Z))throw Error(`Bracket notation with strings not allowed: ${Z}. Enable with configureSafeEvaluator({ allowBracketNotation: true })`);return Z}function t9($){let Z={};Z.Math=Math,Z.JSON=JSON,Z.Date=Date,Z.String=String,Z.Number=Number,Z.Boolean=Boolean,Z.Array=Array,Z.parseInt=Number.parseInt,Z.parseFloat=Number.parseFloat,Z.isNaN=Number.isNaN,Z.isFinite=Number.isFinite,Z.encodeURIComponent=encodeURIComponent,Z.decodeURIComponent=decodeURIComponent;for(let[Y,J]of Object.entries($)){if(Y.startsWith("__")||H5.some((X)=>X.test(Y)))continue;if(J&&typeof J==="object"&&!Array.isArray(J))Z[Y]=e0(J);else Z[Y]=J}return Z}function e0($,Z=0){if(Z>=B5.maxSanitizeDepth)return"[Object too deep]";if($===null||typeof $!=="object")return $;if(Array.isArray($))return $.map((J)=>e0(J,Z+1));if($ instanceof Date||$ instanceof RegExp||$ instanceof Map||$ instanceof Set||$ instanceof Error)return $;let Y={};for(let[J,X]of Object.entries($)){if(J.startsWith("__")||J==="constructor"||J==="prototype")continue;if(X&&typeof X==="object")Y[J]=e0(X,Z+1);else Y[J]=X}return Y}function i($,Z){try{let Y=t9(Z),J=Object.keys(Y),X=Object.values(Y);return s($,J)(...X)}catch{return}}function o($){try{return $1($),!0}catch{return!1}}function s($,Z){let Y=$1($),J=/^[A-Za-z_$][\w$]*$/,X=[],G=[];for(let K=0;K<Z.length;K++){let q=Z[K];if(!J.test(q))continue;if(e9.has(q))continue;X.push(K),G.push(q)}let Q=Function(...G,`
3
3
  'use strict';
4
4
  try {
5
5
  return ${Y};
package/dist/forms.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- var{defineProperty:V,getOwnPropertyNames:o,getOwnPropertyDescriptor:u}=Object,r=Object.prototype.hasOwnProperty;function l(q){return this[q]}var Qq=(q)=>{var Z=(b??=new WeakMap).get(q),$;if(Z)return Z;if(Z=V({},"__esModule",{value:!0}),q&&typeof q==="object"||typeof q==="function"){for(var J of o(q))if(!r.call(Z,J))V(Z,J,{get:l.bind(q,J),enumerable:!($=u(q,J))||$.enumerable})}return b.set(q,Z),Z},b;var s=(q)=>q;function a(q,Z){this[q]=s.bind(null,Z)}var Wq=(q,Z)=>{for(var $ in Z)V(q,$,{get:Z[$],enumerable:!0,configurable:!0,set:a.bind(Z,$)})};var h=(q,Z)=>()=>(q&&(Z=q(q=0)),Z);var Kq=import.meta.require;function _q(q){F={...F,...q}}function Oq(){F={...m}}function kq(){return{...F}}function qq(q){let Z="",$=null,J=!1;for(let X=0;X<q.length;X++){let Y=q[X];if(J){J=!1;continue}if(Y==="\\"&&$){J=!0;continue}if($){if($==="`"&&Y==="$"&&X+1<q.length&&q[X+1]==="{"){let H=1;X+=2;while(X<q.length&&H>0){if(q[X]==="{")H++;else if(q[X]==="}")H--;if(H>0)Z+=q[X],X++}continue}if(Y===$)$=null;continue}if(Y==='"'||Y==="'"||Y==="`"){$=Y;continue}Z+=Y}return Z}function Zq(q,Z){let $=/[$A-Z_a-z][$\w]*/g,J;while((J=$.exec(q))!==null){let X=J[0],Y=q[J.index-1];if(t.has(X))throw Error(`Potentially unsafe expression (identifier ${X}): ${Z}`);if(Y==="."&&x.has(X))throw Error(`Potentially unsafe expression (property ${X}): ${Z}`)}}function $q(q){let Z=/\[\s*(['"])(.*?)\1\s*\]/g,$;while(($=Z.exec(q))!==null){let J=$[2];if(!x.has(J))continue;let X=q.slice(0,$.index).match(/\S(?=\s*$)/)?.[0],Y=q.slice($.index+$[0].length).match(/^\s*(\S)/)?.[1];if(!((X==="{"||X===",")&&Y===":"))throw Error(`Potentially unsafe expression (bracket key ${$[2]}): ${q}`)}}function g(q){let Z=q.trim(),$=qq(Z);Zq($,Z),$q(Z);for(let J of S)if(J.test($))throw Error(`Potentially unsafe expression (matched /${J.source}/): ${Z}`);if(!F.allowBracketNotation&&e.test(Z))throw Error(`Bracket notation with strings not allowed: ${Z}. Enable with configureSafeEvaluator({ allowBracketNotation: true })`);return Z}function d(q){let Z={};Z.Math=Math,Z.JSON=JSON,Z.Date=Date,Z.String=String,Z.Number=Number,Z.Boolean=Boolean,Z.Array=Array,Z.parseInt=Number.parseInt,Z.parseFloat=Number.parseFloat,Z.isNaN=Number.isNaN,Z.isFinite=Number.isFinite,Z.encodeURIComponent=encodeURIComponent,Z.decodeURIComponent=decodeURIComponent;for(let[$,J]of Object.entries(q)){if($.startsWith("__")||S.some((X)=>X.test($)))continue;if(J&&typeof J==="object"&&!Array.isArray(J))Z[$]=y(J);else Z[$]=J}return Z}function y(q,Z=0){if(Z>=F.maxSanitizeDepth)return"[Object too deep]";if(q===null||typeof q!=="object")return q;if(Array.isArray(q))return q.map((J)=>y(J,Z+1));if(q instanceof Date||q instanceof RegExp||q instanceof Map||q instanceof Set||q instanceof Error)return q;let $={};for(let[J,X]of Object.entries(q)){if(J.startsWith("__")||J==="constructor"||J==="prototype")continue;if(X&&typeof X==="object")$[J]=y(X,Z+1);else $[J]=X}return $}function _(q,Z){try{let $=d(Z),J=Object.keys($),X=Object.values($);return Xq(q,J)(...X)}catch{return}}function v(q){try{return g(q),!0}catch{return!1}}function jq(q){try{return g(q),null}catch(Z){return Z instanceof Error?Z.message:String(Z)}}function Dq(q,Z){try{let $=_(q,Z);return Boolean($)}catch{return!1}}function Rq(q,Z){try{let $=_(q,Z);if(Array.isArray($))return $;if($&&typeof $==="object"&&"length"in $){let J=$.length;if(typeof J==="number"&&Number.isFinite(J)&&J>=0&&Number.isInteger(J))return Array.from($)}return[]}catch{return[]}}function Tq(q,Z){try{let $=_(q,Z);if($&&typeof $==="object"&&!Array.isArray($))return $;return{}}catch{return{}}}function Xq(q,Z){let $=g(q),J=/^[A-Za-z_$][\w$]*$/,X=[],Y=[];for(let w=0;w<Z.length;w++){let P=Z[w];if(!J.test(P))continue;if(Jq.has(P))continue;X.push(w),Y.push(P)}let H=Function(...Y,`
2
+ var{defineProperty:V,getOwnPropertyNames:o,getOwnPropertyDescriptor:u}=Object,r=Object.prototype.hasOwnProperty;function l(q){return this[q]}var Qq=(q)=>{var Z=(b??=new WeakMap).get(q),$;if(Z)return Z;if(Z=V({},"__esModule",{value:!0}),q&&typeof q==="object"||typeof q==="function"){for(var J of o(q))if(!r.call(Z,J))V(Z,J,{get:l.bind(q,J),enumerable:!($=u(q,J))||$.enumerable})}return b.set(q,Z),Z},b;var s=(q)=>q;function a(q,Z){this[q]=s.bind(null,Z)}var Wq=(q,Z)=>{for(var $ in Z)V(q,$,{get:Z[$],enumerable:!0,configurable:!0,set:a.bind(Z,$)})};var h=(q,Z)=>()=>(q&&(Z=q(q=0)),Z);var Kq=import.meta.require;function _q(q){F={...F,...q}}function Oq(){F={...m}}function kq(){return{...F}}function qq(q){let Z="",$=null,J=!1;for(let X=0;X<q.length;X++){let Y=q[X];if(J){J=!1;continue}if(Y==="\\"&&$){J=!0;continue}if($){if($==="`"&&Y==="$"&&X+1<q.length&&q[X+1]==="{"){let H=1;X+=2;while(X<q.length&&H>0){if(q[X]==="{")H++;else if(q[X]==="}")H--;if(H>0)Z+=q[X],X++}continue}if(Y===$)$=null;continue}if(Y==='"'||Y==="'"||Y==="`"){$=Y;continue}Z+=Y}return Z}function Zq(q,Z){let $=/[$A-Z_a-z][$\w]*/g,J;while((J=$.exec(q))!==null){let X=J[0],Y=q[J.index-1];if(t.has(X))throw Error(`Potentially unsafe expression (matched /\\b${X}\\b/; identifier ${X}): ${Z}`);if(Y==="."&&x.has(X))throw Error(`Potentially unsafe expression (matched /.${X}/; property ${X}): ${Z}`)}}function $q(q){let Z=/\[\s*(['"])(.*?)\1\s*\]/g,$;while(($=Z.exec(q))!==null){let J=$[2];if(!x.has(J))continue;let X=q.slice(0,$.index).match(/\S(?=\s*$)/)?.[0],Y=q.slice($.index+$[0].length).match(/^\s*(\S)/)?.[1];if(!((X==="{"||X===",")&&Y===":"))throw Error(`Potentially unsafe expression (bracket key ${$[2]}): ${q}`)}}function g(q){let Z=q.trim(),$=qq(Z);Zq($,Z),$q(Z);for(let J of S)if(J.test($))throw Error(`Potentially unsafe expression (matched /${J.source}/): ${Z}`);if(!F.allowBracketNotation&&e.test(Z))throw Error(`Bracket notation with strings not allowed: ${Z}. Enable with configureSafeEvaluator({ allowBracketNotation: true })`);return Z}function d(q){let Z={};Z.Math=Math,Z.JSON=JSON,Z.Date=Date,Z.String=String,Z.Number=Number,Z.Boolean=Boolean,Z.Array=Array,Z.parseInt=Number.parseInt,Z.parseFloat=Number.parseFloat,Z.isNaN=Number.isNaN,Z.isFinite=Number.isFinite,Z.encodeURIComponent=encodeURIComponent,Z.decodeURIComponent=decodeURIComponent;for(let[$,J]of Object.entries(q)){if($.startsWith("__")||S.some((X)=>X.test($)))continue;if(J&&typeof J==="object"&&!Array.isArray(J))Z[$]=y(J);else Z[$]=J}return Z}function y(q,Z=0){if(Z>=F.maxSanitizeDepth)return"[Object too deep]";if(q===null||typeof q!=="object")return q;if(Array.isArray(q))return q.map((J)=>y(J,Z+1));if(q instanceof Date||q instanceof RegExp||q instanceof Map||q instanceof Set||q instanceof Error)return q;let $={};for(let[J,X]of Object.entries(q)){if(J.startsWith("__")||J==="constructor"||J==="prototype")continue;if(X&&typeof X==="object")$[J]=y(X,Z+1);else $[J]=X}return $}function _(q,Z){try{let $=d(Z),J=Object.keys($),X=Object.values($);return Xq(q,J)(...X)}catch{return}}function v(q){try{return g(q),!0}catch{return!1}}function jq(q){try{return g(q),null}catch(Z){return Z instanceof Error?Z.message:String(Z)}}function Dq(q,Z){try{let $=_(q,Z);return Boolean($)}catch{return!1}}function Rq(q,Z){try{let $=_(q,Z);if(Array.isArray($))return $;if($&&typeof $==="object"&&"length"in $){let J=$.length;if(typeof J==="number"&&Number.isFinite(J)&&J>=0&&Number.isInteger(J))return Array.from($)}return[]}catch{return[]}}function Tq(q,Z){try{let $=_(q,Z);if($&&typeof $==="object"&&!Array.isArray($))return $;return{}}catch{return{}}}function Xq(q,Z){let $=g(q),J=/^[A-Za-z_$][\w$]*$/,X=[],Y=[];for(let w=0;w<Z.length;w++){let P=Z[w];if(!J.test(P))continue;if(Jq.has(P))continue;X.push(w),Y.push(P)}let H=Function(...Y,`
3
3
  'use strict';
4
4
  try {
5
5
  return ${$};
package/dist/i18n.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- var{defineProperty:f,getOwnPropertyNames:Pq,getOwnPropertyDescriptor:Sq}=Object,Cq=Object.prototype.hasOwnProperty;function vq(q){return this[q]}var nJ=(q)=>{var Q=(qq??=new WeakMap).get(q),J;if(Q)return Q;if(Q=f({},"__esModule",{value:!0}),q&&typeof q==="object"||typeof q==="function"){for(var W of Pq(q))if(!Cq.call(Q,W))f(Q,W,{get:vq.bind(q,W),enumerable:!(J=Sq(q,W))||J.enumerable})}return qq.set(q,Q),Q},qq;var yq=(q)=>q;function hq(q,Q){this[q]=yq.bind(null,Q)}var gq=(q,Q)=>{for(var J in Q)f(q,J,{get:Q[J],enumerable:!0,configurable:!0,set:hq.bind(Q,J)})};var K=(q,Q)=>()=>(q&&(Q=q(q=0)),Q);var E=import.meta.require;function tJ(q){T={...T,...q}}function aJ(){T={...Qq}}function eJ(){return{...T}}function uq(q){let Q="",J=null,W=!1;for(let Z=0;Z<q.length;Z++){let $=q[Z];if(W){W=!1;continue}if($==="\\"&&J){W=!0;continue}if(J){if(J==="`"&&$==="$"&&Z+1<q.length&&q[Z+1]==="{"){let X=1;Z+=2;while(Z<q.length&&X>0){if(q[Z]==="{")X++;else if(q[Z]==="}")X--;if(X>0)Q+=q[Z],Z++}continue}if($===J)J=null;continue}if($==='"'||$==="'"||$==="`"){J=$;continue}Q+=$}return Q}function mq(q,Q){let J=/[$A-Z_a-z][$\w]*/g,W;while((W=J.exec(q))!==null){let Z=W[0],$=q[W.index-1];if(xq.has(Z))throw Error(`Potentially unsafe expression (identifier ${Z}): ${Q}`);if($==="."&&Wq.has(Z))throw Error(`Potentially unsafe expression (property ${Z}): ${Q}`)}}function dq(q){let Q=/\[\s*(['"])(.*?)\1\s*\]/g,J;while((J=Q.exec(q))!==null){let W=J[2];if(!Wq.has(W))continue;let Z=q.slice(0,J.index).match(/\S(?=\s*$)/)?.[0],$=q.slice(J.index+J[0].length).match(/^\s*(\S)/)?.[1];if(!((Z==="{"||Z===",")&&$===":"))throw Error(`Potentially unsafe expression (bracket key ${J[2]}): ${q}`)}}function d(q){let Q=q.trim(),J=uq(Q);mq(J,Q),dq(Q);for(let W of m)if(W.test(J))throw Error(`Potentially unsafe expression (matched /${W.source}/): ${Q}`);if(!T.allowBracketNotation&&fq.test(Q))throw Error(`Bracket notation with strings not allowed: ${Q}. Enable with configureSafeEvaluator({ allowBracketNotation: true })`);return Q}function Zq(q){let Q={};Q.Math=Math,Q.JSON=JSON,Q.Date=Date,Q.String=String,Q.Number=Number,Q.Boolean=Boolean,Q.Array=Array,Q.parseInt=Number.parseInt,Q.parseFloat=Number.parseFloat,Q.isNaN=Number.isNaN,Q.isFinite=Number.isFinite,Q.encodeURIComponent=encodeURIComponent,Q.decodeURIComponent=decodeURIComponent;for(let[J,W]of Object.entries(q)){if(J.startsWith("__")||m.some((Z)=>Z.test(J)))continue;if(W&&typeof W==="object"&&!Array.isArray(W))Q[J]=u(W);else Q[J]=W}return Q}function u(q,Q=0){if(Q>=T.maxSanitizeDepth)return"[Object too deep]";if(q===null||typeof q!=="object")return q;if(Array.isArray(q))return q.map((W)=>u(W,Q+1));if(q instanceof Date||q instanceof RegExp||q instanceof Map||q instanceof Set||q instanceof Error)return q;let J={};for(let[W,Z]of Object.entries(q)){if(W.startsWith("__")||W==="constructor"||W==="prototype")continue;if(Z&&typeof Z==="object")J[W]=u(Z,Q+1);else J[W]=Z}return J}function c(q,Q){try{let J=Zq(Q),W=Object.keys(J),Z=Object.values(J);return pq(q,W)(...Z)}catch{return}}function qQ(q){try{return d(q),!0}catch{return!1}}function JQ(q){try{return d(q),null}catch(Q){return Q instanceof Error?Q.message:String(Q)}}function QQ(q,Q){try{let J=c(q,Q);return Boolean(J)}catch{return!1}}function WQ(q,Q){try{let J=c(q,Q);if(Array.isArray(J))return J;if(J&&typeof J==="object"&&"length"in J){let W=J.length;if(typeof W==="number"&&Number.isFinite(W)&&W>=0&&Number.isInteger(W))return Array.from(J)}return[]}catch{return[]}}function p(q,Q){try{let J=c(q,Q);if(J&&typeof J==="object"&&!Array.isArray(J))return J;return{}}catch{return{}}}function pq(q,Q){let J=d(q),W=/^[A-Za-z_$][\w$]*$/,Z=[],$=[];for(let Y=0;Y<Q.length;Y++){let G=Q[Y];if(!W.test(G))continue;if(cq.has(G))continue;Z.push(Y),$.push(G)}let X=Function(...$,`
2
+ var{defineProperty:f,getOwnPropertyNames:Pq,getOwnPropertyDescriptor:Sq}=Object,Cq=Object.prototype.hasOwnProperty;function vq(q){return this[q]}var nJ=(q)=>{var Q=(qq??=new WeakMap).get(q),J;if(Q)return Q;if(Q=f({},"__esModule",{value:!0}),q&&typeof q==="object"||typeof q==="function"){for(var W of Pq(q))if(!Cq.call(Q,W))f(Q,W,{get:vq.bind(q,W),enumerable:!(J=Sq(q,W))||J.enumerable})}return qq.set(q,Q),Q},qq;var yq=(q)=>q;function hq(q,Q){this[q]=yq.bind(null,Q)}var gq=(q,Q)=>{for(var J in Q)f(q,J,{get:Q[J],enumerable:!0,configurable:!0,set:hq.bind(Q,J)})};var K=(q,Q)=>()=>(q&&(Q=q(q=0)),Q);var E=import.meta.require;function tJ(q){T={...T,...q}}function aJ(){T={...Qq}}function eJ(){return{...T}}function uq(q){let Q="",J=null,W=!1;for(let Z=0;Z<q.length;Z++){let $=q[Z];if(W){W=!1;continue}if($==="\\"&&J){W=!0;continue}if(J){if(J==="`"&&$==="$"&&Z+1<q.length&&q[Z+1]==="{"){let X=1;Z+=2;while(Z<q.length&&X>0){if(q[Z]==="{")X++;else if(q[Z]==="}")X--;if(X>0)Q+=q[Z],Z++}continue}if($===J)J=null;continue}if($==='"'||$==="'"||$==="`"){J=$;continue}Q+=$}return Q}function mq(q,Q){let J=/[$A-Z_a-z][$\w]*/g,W;while((W=J.exec(q))!==null){let Z=W[0],$=q[W.index-1];if(xq.has(Z))throw Error(`Potentially unsafe expression (matched /\\b${Z}\\b/; identifier ${Z}): ${Q}`);if($==="."&&Wq.has(Z))throw Error(`Potentially unsafe expression (matched /.${Z}/; property ${Z}): ${Q}`)}}function dq(q){let Q=/\[\s*(['"])(.*?)\1\s*\]/g,J;while((J=Q.exec(q))!==null){let W=J[2];if(!Wq.has(W))continue;let Z=q.slice(0,J.index).match(/\S(?=\s*$)/)?.[0],$=q.slice(J.index+J[0].length).match(/^\s*(\S)/)?.[1];if(!((Z==="{"||Z===",")&&$===":"))throw Error(`Potentially unsafe expression (bracket key ${J[2]}): ${q}`)}}function d(q){let Q=q.trim(),J=uq(Q);mq(J,Q),dq(Q);for(let W of m)if(W.test(J))throw Error(`Potentially unsafe expression (matched /${W.source}/): ${Q}`);if(!T.allowBracketNotation&&fq.test(Q))throw Error(`Bracket notation with strings not allowed: ${Q}. Enable with configureSafeEvaluator({ allowBracketNotation: true })`);return Q}function Zq(q){let Q={};Q.Math=Math,Q.JSON=JSON,Q.Date=Date,Q.String=String,Q.Number=Number,Q.Boolean=Boolean,Q.Array=Array,Q.parseInt=Number.parseInt,Q.parseFloat=Number.parseFloat,Q.isNaN=Number.isNaN,Q.isFinite=Number.isFinite,Q.encodeURIComponent=encodeURIComponent,Q.decodeURIComponent=decodeURIComponent;for(let[J,W]of Object.entries(q)){if(J.startsWith("__")||m.some((Z)=>Z.test(J)))continue;if(W&&typeof W==="object"&&!Array.isArray(W))Q[J]=u(W);else Q[J]=W}return Q}function u(q,Q=0){if(Q>=T.maxSanitizeDepth)return"[Object too deep]";if(q===null||typeof q!=="object")return q;if(Array.isArray(q))return q.map((W)=>u(W,Q+1));if(q instanceof Date||q instanceof RegExp||q instanceof Map||q instanceof Set||q instanceof Error)return q;let J={};for(let[W,Z]of Object.entries(q)){if(W.startsWith("__")||W==="constructor"||W==="prototype")continue;if(Z&&typeof Z==="object")J[W]=u(Z,Q+1);else J[W]=Z}return J}function c(q,Q){try{let J=Zq(Q),W=Object.keys(J),Z=Object.values(J);return pq(q,W)(...Z)}catch{return}}function qQ(q){try{return d(q),!0}catch{return!1}}function JQ(q){try{return d(q),null}catch(Q){return Q instanceof Error?Q.message:String(Q)}}function QQ(q,Q){try{let J=c(q,Q);return Boolean(J)}catch{return!1}}function WQ(q,Q){try{let J=c(q,Q);if(Array.isArray(J))return J;if(J&&typeof J==="object"&&"length"in J){let W=J.length;if(typeof W==="number"&&Number.isFinite(W)&&W>=0&&Number.isInteger(W))return Array.from(J)}return[]}catch{return[]}}function p(q,Q){try{let J=c(q,Q);if(J&&typeof J==="object"&&!Array.isArray(J))return J;return{}}catch{return{}}}function pq(q,Q){let J=d(q),W=/^[A-Za-z_$][\w$]*$/,Z=[],$=[];for(let Y=0;Y<Q.length;Y++){let G=Q[Y];if(!W.test(G))continue;if(cq.has(G))continue;Z.push(Y),$.push(G)}let X=Function(...$,`
3
3
  'use strict';
4
4
  try {
5
5
  return ${J};
package/dist/includes.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- var o4=Object.defineProperty;var s4=($)=>$;function r4($,Z){this[$]=s4.bind(null,Z)}var y0=($,Z)=>{for(var Y in Z)o4($,Y,{get:Z[Y],enumerable:!0,configurable:!0,set:r4.bind(Z,Y)})};var M=($,Z)=>()=>($&&(Z=$($=0)),Z);var s=import.meta.require;function $3($){let Z="",Y=null,J=!1;for(let X=0;X<$.length;X++){let G=$[X];if(J){J=!1;continue}if(G==="\\"&&Y){J=!0;continue}if(Y){if(Y==="`"&&G==="$"&&X+1<$.length&&$[X+1]==="{"){let Q=1;X+=2;while(X<$.length&&Q>0){if($[X]==="{")Q++;else if($[X]==="}")Q--;if(Q>0)Z+=$[X],X++}continue}if(G===Y)Y=null;continue}if(G==='"'||G==="'"||G==="`"){Y=G;continue}Z+=G}return Z}function Z3($,Z){let Y=/[$A-Z_a-z][$\w]*/g,J;while((J=Y.exec($))!==null){let X=J[0],G=$[J.index-1];if(t4.has(X))throw Error(`Potentially unsafe expression (identifier ${X}): ${Z}`);if(G==="."&&t5.has(X))throw Error(`Potentially unsafe expression (property ${X}): ${Z}`)}}function Y3($){let Z=/\[\s*(['"])(.*?)\1\s*\]/g,Y;while((Y=Z.exec($))!==null){let J=Y[2];if(!t5.has(J))continue;let X=$.slice(0,Y.index).match(/\S(?=\s*$)/)?.[0],G=$.slice(Y.index+Y[0].length).match(/^\s*(\S)/)?.[1];if(!((X==="{"||X===",")&&G===":"))throw Error(`Potentially unsafe expression (bracket key ${Y[2]}): ${$}`)}}function h0($){let Z=$.trim(),Y=$3(Z);Z3(Y,Z),Y3(Z);for(let J of a5)if(J.test(Y))throw Error(`Potentially unsafe expression (matched /${J.source}/): ${Z}`);if(!r5.allowBracketNotation&&e4.test(Z))throw Error(`Bracket notation with strings not allowed: ${Z}. Enable with configureSafeEvaluator({ allowBracketNotation: true })`);return Z}function X3($){let Z={};Z.Math=Math,Z.JSON=JSON,Z.Date=Date,Z.String=String,Z.Number=Number,Z.Boolean=Boolean,Z.Array=Array,Z.parseInt=Number.parseInt,Z.parseFloat=Number.parseFloat,Z.isNaN=Number.isNaN,Z.isFinite=Number.isFinite,Z.encodeURIComponent=encodeURIComponent,Z.decodeURIComponent=decodeURIComponent;for(let[Y,J]of Object.entries($)){if(Y.startsWith("__")||a5.some((X)=>X.test(Y)))continue;if(J&&typeof J==="object"&&!Array.isArray(J))Z[Y]=M1(J);else Z[Y]=J}return Z}function M1($,Z=0){if(Z>=r5.maxSanitizeDepth)return"[Object too deep]";if($===null||typeof $!=="object")return $;if(Array.isArray($))return $.map((J)=>M1(J,Z+1));if($ instanceof Date||$ instanceof RegExp||$ instanceof Map||$ instanceof Set||$ instanceof Error)return $;let Y={};for(let[J,X]of Object.entries($)){if(J.startsWith("__")||J==="constructor"||J==="prototype")continue;if(X&&typeof X==="object")Y[J]=M1(X,Z+1);else Y[J]=X}return Y}function m($,Z){try{let Y=X3(Z),J=Object.keys(Y),X=Object.values(Y);return i($,J)(...X)}catch{return}}function n($){try{return h0($),!0}catch{return!1}}function W0($,Z){try{let Y=m($,Z);if(Y&&typeof Y==="object"&&!Array.isArray(Y))return Y;return{}}catch{return{}}}function i($,Z){let Y=h0($),J=/^[A-Za-z_$][\w$]*$/,X=[],G=[];for(let K=0;K<Z.length;K++){let q=Z[K];if(!J.test(q))continue;if(J3.has(q))continue;X.push(K),G.push(q)}let Q=Function(...G,`
2
+ var o4=Object.defineProperty;var s4=($)=>$;function r4($,Z){this[$]=s4.bind(null,Z)}var y0=($,Z)=>{for(var Y in Z)o4($,Y,{get:Z[Y],enumerable:!0,configurable:!0,set:r4.bind(Z,Y)})};var M=($,Z)=>()=>($&&(Z=$($=0)),Z);var s=import.meta.require;function $3($){let Z="",Y=null,J=!1;for(let X=0;X<$.length;X++){let G=$[X];if(J){J=!1;continue}if(G==="\\"&&Y){J=!0;continue}if(Y){if(Y==="`"&&G==="$"&&X+1<$.length&&$[X+1]==="{"){let Q=1;X+=2;while(X<$.length&&Q>0){if($[X]==="{")Q++;else if($[X]==="}")Q--;if(Q>0)Z+=$[X],X++}continue}if(G===Y)Y=null;continue}if(G==='"'||G==="'"||G==="`"){Y=G;continue}Z+=G}return Z}function Z3($,Z){let Y=/[$A-Z_a-z][$\w]*/g,J;while((J=Y.exec($))!==null){let X=J[0],G=$[J.index-1];if(t4.has(X))throw Error(`Potentially unsafe expression (matched /\\b${X}\\b/; identifier ${X}): ${Z}`);if(G==="."&&t5.has(X))throw Error(`Potentially unsafe expression (matched /.${X}/; property ${X}): ${Z}`)}}function Y3($){let Z=/\[\s*(['"])(.*?)\1\s*\]/g,Y;while((Y=Z.exec($))!==null){let J=Y[2];if(!t5.has(J))continue;let X=$.slice(0,Y.index).match(/\S(?=\s*$)/)?.[0],G=$.slice(Y.index+Y[0].length).match(/^\s*(\S)/)?.[1];if(!((X==="{"||X===",")&&G===":"))throw Error(`Potentially unsafe expression (bracket key ${Y[2]}): ${$}`)}}function h0($){let Z=$.trim(),Y=$3(Z);Z3(Y,Z),Y3(Z);for(let J of a5)if(J.test(Y))throw Error(`Potentially unsafe expression (matched /${J.source}/): ${Z}`);if(!r5.allowBracketNotation&&e4.test(Z))throw Error(`Bracket notation with strings not allowed: ${Z}. Enable with configureSafeEvaluator({ allowBracketNotation: true })`);return Z}function X3($){let Z={};Z.Math=Math,Z.JSON=JSON,Z.Date=Date,Z.String=String,Z.Number=Number,Z.Boolean=Boolean,Z.Array=Array,Z.parseInt=Number.parseInt,Z.parseFloat=Number.parseFloat,Z.isNaN=Number.isNaN,Z.isFinite=Number.isFinite,Z.encodeURIComponent=encodeURIComponent,Z.decodeURIComponent=decodeURIComponent;for(let[Y,J]of Object.entries($)){if(Y.startsWith("__")||a5.some((X)=>X.test(Y)))continue;if(J&&typeof J==="object"&&!Array.isArray(J))Z[Y]=M1(J);else Z[Y]=J}return Z}function M1($,Z=0){if(Z>=r5.maxSanitizeDepth)return"[Object too deep]";if($===null||typeof $!=="object")return $;if(Array.isArray($))return $.map((J)=>M1(J,Z+1));if($ instanceof Date||$ instanceof RegExp||$ instanceof Map||$ instanceof Set||$ instanceof Error)return $;let Y={};for(let[J,X]of Object.entries($)){if(J.startsWith("__")||J==="constructor"||J==="prototype")continue;if(X&&typeof X==="object")Y[J]=M1(X,Z+1);else Y[J]=X}return Y}function m($,Z){try{let Y=X3(Z),J=Object.keys(Y),X=Object.values(Y);return i($,J)(...X)}catch{return}}function n($){try{return h0($),!0}catch{return!1}}function W0($,Z){try{let Y=m($,Z);if(Y&&typeof Y==="object"&&!Array.isArray(Y))return Y;return{}}catch{return{}}}function i($,Z){let Y=h0($),J=/^[A-Za-z_$][\w$]*$/,X=[],G=[];for(let K=0;K<Z.length;K++){let q=Z[K];if(!J.test(q))continue;if(J3.has(q))continue;X.push(K),G.push(q)}let Q=Function(...G,`
3
3
  'use strict';
4
4
  try {
5
5
  return ${Y};
package/dist/index.js CHANGED
@@ -272,7 +272,7 @@ ${K}${H}
272
272
  'use strict';
273
273
  ${X}${Y}
274
274
  ${K}
275
- })()</script>`}var xO,vO,fO,uO,lO;var g7=D(()=>{j0();xO=["state","derived","effect","batch","untrack","peek","isSignal","isDerived","onMount","onDestroy","useRef","navigate","goBack","goForward","useRoute","setRouteParams","useSearchParams","useQuery","useMutation","useEventListener","useMeta","useDebounce","useDebouncedValue","useThrottle","useInterval","useTimeout","useToggle","useCounter","useClickOutside","useFocus","useAsync","useColorMode","useDark","ref","reactive","computed","watch","watchEffect","watchMultiple","onBeforeMount","onMounted","onBeforeUpdate","onUpdated","onBeforeUnmount","onUnmounted","defineProps","withDefaults","defineEmits","defineExpose","provide","inject","nextTick","getCurrentInstance","onErrorCaptured","useSlots","useAttrs","createStore","defineStore","useStore","action","createSelector","h","Fragment"],vO=["browserQuery","BrowserQueryBuilder","BrowserQueryError","browserAuth","configureBrowser","getBrowserConfig","createBrowserDb","createBrowserModel","isBrowser"],fO=new Set(["Promise","Object","Array","Map","Set","Date","Error","JSON","Math","Number","String","RegExp","Symbol","WeakMap","WeakSet","Proxy","Reflect","Intl","URL","URLSearchParams","FormData","Headers","Request","Response","AbortController","EventTarget","Element","Document","Node","Window","Console","Storage","Navigator","Blob","File","FileReader","HTMLElement","SVGElement","Event","CustomEvent","DOMParser","XMLSerializer","WebSocket","Worker","SharedWorker","IntersectionObserver","MutationObserver","ResizeObserver","PerformanceObserver","Notification","Bun","Buffer","Process","Modal","Intl"]);uO={left:0,middle:1,right:2};lO=new Set(["if","else","true","false","null","undefined","typeof","instanceof","in","of","new","this","return","void","delete","throw","switch","case","break","continue","for","while","do","try","catch","finally","const","let","var","function","class","import","export","default","async","await","yield","with","debugger","console","window","document","Math","JSON","Date","Array","Object","String","Number","Boolean","Symbol","Map","Set","Promise","Error","parseInt","parseFloat","isNaN","isFinite","encodeURIComponent","decodeURIComponent","setTimeout","setInterval","clearTimeout","clearInterval","fetch","alert","confirm","prompt","event"])});function oO($){let Z="",Y=null,X=!1;for(let J=0;J<$.length;J++){let Q=$[J];if(X){X=!1;continue}if(Q==="\\"&&Y){X=!0;continue}if(Y){if(Y==="`"&&Q==="$"&&J+1<$.length&&$[J+1]==="{"){let G=1;J+=2;while(J<$.length&&G>0){if($[J]==="{")G++;else if($[J]==="}")G--;if(G>0)Z+=$[J],J++}continue}if(Q===Y)Y=null;continue}if(Q==='"'||Q==="'"||Q==="`"){Y=Q;continue}Z+=Q}return Z}function aO($,Z){let Y=/[$A-Z_a-z][$\w]*/g,X;while((X=Y.exec($))!==null){let J=X[0],Q=$[X.index-1];if(sO.has(J))throw Error(`Potentially unsafe expression (identifier ${J}): ${Z}`);if(Q==="."&&OG.has(J))throw Error(`Potentially unsafe expression (property ${J}): ${Z}`)}}function tO($){let Z=/\[\s*(['"])(.*?)\1\s*\]/g,Y;while((Y=Z.exec($))!==null){let X=Y[2];if(!OG.has(X))continue;let J=$.slice(0,Y.index).match(/\S(?=\s*$)/)?.[0],Q=$.slice(Y.index+Y[0].length).match(/^\s*(\S)/)?.[1];if(!((J==="{"||J===",")&&Q===":"))throw Error(`Potentially unsafe expression (bracket key ${Y[2]}): ${$}`)}}function x6($){let Z=$.trim(),Y=oO(Z);aO(Y,Z),tO(Z);for(let X of HG)if(X.test(Y))throw Error(`Potentially unsafe expression (matched /${X.source}/): ${Z}`);if(!jG.allowBracketNotation&&rO.test(Z))throw Error(`Bracket notation with strings not allowed: ${Z}. Enable with configureSafeEvaluator({ allowBracketNotation: true })`);return Z}function eO($){let Z={};Z.Math=Math,Z.JSON=JSON,Z.Date=Date,Z.String=String,Z.Number=Number,Z.Boolean=Boolean,Z.Array=Array,Z.parseInt=Number.parseInt,Z.parseFloat=Number.parseFloat,Z.isNaN=Number.isNaN,Z.isFinite=Number.isFinite,Z.encodeURIComponent=encodeURIComponent,Z.decodeURIComponent=decodeURIComponent;for(let[Y,X]of Object.entries($)){if(Y.startsWith("__")||HG.some((J)=>J.test(Y)))continue;if(X&&typeof X==="object"&&!Array.isArray(X))Z[Y]=oZ(X);else Z[Y]=X}return Z}function oZ($,Z=0){if(Z>=jG.maxSanitizeDepth)return"[Object too deep]";if($===null||typeof $!=="object")return $;if(Array.isArray($))return $.map((X)=>oZ(X,Z+1));if($ instanceof Date||$ instanceof RegExp||$ instanceof Map||$ instanceof Set||$ instanceof Error)return $;let Y={};for(let[X,J]of Object.entries($)){if(X.startsWith("__")||X==="constructor"||X==="prototype")continue;if(J&&typeof J==="object")Y[X]=oZ(J,Z+1);else Y[X]=J}return Y}function Q0($,Z){try{let Y=eO(Z),X=Object.keys(Y),J=Object.values(Y);return U0($,X)(...J)}catch{return}}function B0($){try{return x6($),!0}catch{return!1}}function k0($,Z){try{let Y=Q0($,Z);if(Y&&typeof Y==="object"&&!Array.isArray(Y))return Y;return{}}catch{return{}}}function U0($,Z){let Y=x6($),X=/^[A-Za-z_$][\w$]*$/,J=[],Q=[];for(let K=0;K<Z.length;K++){let W=Z[K];if(!X.test(W))continue;if($L.has(W))continue;J.push(K),Q.push(W)}let G=Function(...Q,`
275
+ })()</script>`}var xO,vO,fO,uO,lO;var g7=D(()=>{j0();xO=["state","derived","effect","batch","untrack","peek","isSignal","isDerived","onMount","onDestroy","useRef","navigate","goBack","goForward","useRoute","setRouteParams","useSearchParams","useQuery","useMutation","useEventListener","useMeta","useDebounce","useDebouncedValue","useThrottle","useInterval","useTimeout","useToggle","useCounter","useClickOutside","useFocus","useAsync","useColorMode","useDark","ref","reactive","computed","watch","watchEffect","watchMultiple","onBeforeMount","onMounted","onBeforeUpdate","onUpdated","onBeforeUnmount","onUnmounted","defineProps","withDefaults","defineEmits","defineExpose","provide","inject","nextTick","getCurrentInstance","onErrorCaptured","useSlots","useAttrs","createStore","defineStore","useStore","action","createSelector","h","Fragment"],vO=["browserQuery","BrowserQueryBuilder","BrowserQueryError","browserAuth","configureBrowser","getBrowserConfig","createBrowserDb","createBrowserModel","isBrowser"],fO=new Set(["Promise","Object","Array","Map","Set","Date","Error","JSON","Math","Number","String","RegExp","Symbol","WeakMap","WeakSet","Proxy","Reflect","Intl","URL","URLSearchParams","FormData","Headers","Request","Response","AbortController","EventTarget","Element","Document","Node","Window","Console","Storage","Navigator","Blob","File","FileReader","HTMLElement","SVGElement","Event","CustomEvent","DOMParser","XMLSerializer","WebSocket","Worker","SharedWorker","IntersectionObserver","MutationObserver","ResizeObserver","PerformanceObserver","Notification","Bun","Buffer","Process","Modal","Intl"]);uO={left:0,middle:1,right:2};lO=new Set(["if","else","true","false","null","undefined","typeof","instanceof","in","of","new","this","return","void","delete","throw","switch","case","break","continue","for","while","do","try","catch","finally","const","let","var","function","class","import","export","default","async","await","yield","with","debugger","console","window","document","Math","JSON","Date","Array","Object","String","Number","Boolean","Symbol","Map","Set","Promise","Error","parseInt","parseFloat","isNaN","isFinite","encodeURIComponent","decodeURIComponent","setTimeout","setInterval","clearTimeout","clearInterval","fetch","alert","confirm","prompt","event"])});function oO($){let Z="",Y=null,X=!1;for(let J=0;J<$.length;J++){let Q=$[J];if(X){X=!1;continue}if(Q==="\\"&&Y){X=!0;continue}if(Y){if(Y==="`"&&Q==="$"&&J+1<$.length&&$[J+1]==="{"){let G=1;J+=2;while(J<$.length&&G>0){if($[J]==="{")G++;else if($[J]==="}")G--;if(G>0)Z+=$[J],J++}continue}if(Q===Y)Y=null;continue}if(Q==='"'||Q==="'"||Q==="`"){Y=Q;continue}Z+=Q}return Z}function aO($,Z){let Y=/[$A-Z_a-z][$\w]*/g,X;while((X=Y.exec($))!==null){let J=X[0],Q=$[X.index-1];if(sO.has(J))throw Error(`Potentially unsafe expression (matched /\\b${J}\\b/; identifier ${J}): ${Z}`);if(Q==="."&&OG.has(J))throw Error(`Potentially unsafe expression (matched /.${J}/; property ${J}): ${Z}`)}}function tO($){let Z=/\[\s*(['"])(.*?)\1\s*\]/g,Y;while((Y=Z.exec($))!==null){let X=Y[2];if(!OG.has(X))continue;let J=$.slice(0,Y.index).match(/\S(?=\s*$)/)?.[0],Q=$.slice(Y.index+Y[0].length).match(/^\s*(\S)/)?.[1];if(!((J==="{"||J===",")&&Q===":"))throw Error(`Potentially unsafe expression (bracket key ${Y[2]}): ${$}`)}}function x6($){let Z=$.trim(),Y=oO(Z);aO(Y,Z),tO(Z);for(let X of HG)if(X.test(Y))throw Error(`Potentially unsafe expression (matched /${X.source}/): ${Z}`);if(!jG.allowBracketNotation&&rO.test(Z))throw Error(`Bracket notation with strings not allowed: ${Z}. Enable with configureSafeEvaluator({ allowBracketNotation: true })`);return Z}function eO($){let Z={};Z.Math=Math,Z.JSON=JSON,Z.Date=Date,Z.String=String,Z.Number=Number,Z.Boolean=Boolean,Z.Array=Array,Z.parseInt=Number.parseInt,Z.parseFloat=Number.parseFloat,Z.isNaN=Number.isNaN,Z.isFinite=Number.isFinite,Z.encodeURIComponent=encodeURIComponent,Z.decodeURIComponent=decodeURIComponent;for(let[Y,X]of Object.entries($)){if(Y.startsWith("__")||HG.some((J)=>J.test(Y)))continue;if(X&&typeof X==="object"&&!Array.isArray(X))Z[Y]=oZ(X);else Z[Y]=X}return Z}function oZ($,Z=0){if(Z>=jG.maxSanitizeDepth)return"[Object too deep]";if($===null||typeof $!=="object")return $;if(Array.isArray($))return $.map((X)=>oZ(X,Z+1));if($ instanceof Date||$ instanceof RegExp||$ instanceof Map||$ instanceof Set||$ instanceof Error)return $;let Y={};for(let[X,J]of Object.entries($)){if(X.startsWith("__")||X==="constructor"||X==="prototype")continue;if(J&&typeof J==="object")Y[X]=oZ(J,Z+1);else Y[X]=J}return Y}function Q0($,Z){try{let Y=eO(Z),X=Object.keys(Y),J=Object.values(Y);return U0($,X)(...J)}catch{return}}function B0($){try{return x6($),!0}catch{return!1}}function k0($,Z){try{let Y=Q0($,Z);if(Y&&typeof Y==="object"&&!Array.isArray(Y))return Y;return{}}catch{return{}}}function U0($,Z){let Y=x6($),X=/^[A-Za-z_$][\w$]*$/,J=[],Q=[];for(let K=0;K<Z.length;K++){let W=Z[K];if(!X.test(W))continue;if($L.has(W))continue;J.push(K),Q.push(W)}let G=Function(...Q,`
276
276
  'use strict';
277
277
  try {
278
278
  return ${Y};
@@ -612,7 +612,7 @@ ${q}`},hasEndTag:!1,description:"Coordinates multiple animations together as a g
612
612
  `}),$}import P3 from"process";function p0($="STX_PUBLIC_"){let Z={},Y={};for(let[X,J]of Object.entries(P3.env)){if(!X.startsWith($)||J===void 0)continue;Z[`import.meta.env.${X}`]=JSON.stringify(J),Y[X]=J}return Z["import.meta.env"]=JSON.stringify(Y),Z}function EB($="STX_PUBLIC_"){let Z={};for(let[Y,X]of Object.entries(P3.env))if(Y.startsWith($)&&X!==void 0)Z[Y]=X;return Z}var d1=()=>{};var b9={};i(b9,{hasUserImports:()=>xJ,bundleClientScript:()=>gJ});import F0 from"path";import r0 from"fs";function xJ($){let Z=/^\s*import\s+(?!type\s)/gm;if(!$.match(Z))return!1;let X=/^\s*import\s+(?!type\s).*?\s+from\s+['"]([^'"]+)['"]/gm,J;while((J=X.exec($))!==null){let G=J[1];if(!v3.some((q)=>q.test(G)))return console.log("[stx:bundler] detected user import:",G),!0}let Q=/^\s*import\s+['"]([^'"]+)['"]/gm;while((J=Q.exec($))!==null){let G=J[1];if(!v3.some((q)=>q.test(G)))return console.log("[stx:bundler] detected side-effect import:",G),!0}return!1}function fJ($,Z,Y){let X=(J,Q)=>{let G=J===Y?Z:F0.dirname(J),K=F0.resolve(G,Q),q=[K,`${K}.ts`,`${K}.tsx`,`${K}.js`,`${K}.mjs`,`${K}.jsx`,F0.join(K,"index.ts"),F0.join(K,"index.tsx"),F0.join(K,"index.js"),F0.join(K,"index.mjs")];for(let z of q)try{if(r0.existsSync(z)&&r0.statSync(z,{throwIfNoEntry:!1})?.isFile())return z}catch{}return K};return{name:"stx-client-bundle",setup(J){J.onResolve({filter:/^(stx|@stacksjs\/stx|@stacksjs\/browser)$/},(Q)=>({path:Q.path,external:!0})),J.onResolve({filter:/^(@stores|@composables|stx\/stores)$/},(Q)=>({path:Q.path,external:!0})),J.onResolve({filter:/^\.\.?\//},(Q)=>{return{path:X(Q.importer,Q.path)}}),J.onResolve({filter:/^@\//},(Q)=>{let G=F0.resolve($,Q.path.slice(2)),K=[G,`${G}.ts`,`${G}.js`,F0.join(G,"index.ts"),F0.join(G,"index.js")];for(let q of K)if(r0.existsSync(q)&&r0.statSync(q,{throwIfNoEntry:!1})?.isFile())return console.log("[stx:bundler] resolved @/ import:",Q.path,"\u2192",q),{path:q};return console.warn("[stx:bundler] could not resolve @/ import:",Q.path),{path:G}})}}}async function gJ($,Z,Y={}){let X=Y.projectRoot||process.cwd(),J=Y.minify??!1,Q=Y.cacheDir||F0.join(X,".stx","bundle-cache"),G=new Bun.CryptoHasher("md5");G.update($+Z);let K=G.digest("hex").slice(0,12),q=F0.join(Q,`${K}.js`),z=Bun.file(q);if(await z.exists())return console.log("[stx:bundler] cache hit:",K),await z.text();let _=F0.join(X,".stx","bundle-tmp"),W=F0.join(_,`${K}.ts`),U=F0.join(_,"out",K);r0.mkdirSync(_,{recursive:!0}),r0.mkdirSync(U,{recursive:!0});let B=F0.dirname(Z),j=[],O=/^(export\s+)?(?:const|let|var)\s+(?:\{([^}]+)\}|(\w+))/gm,L=/^(export\s+)?(?:async\s+)?function\s+(\w+)/gm,F;while((F=O.exec($))!==null){if(F[1])continue;if(F[2])F[2].split(",").forEach((V)=>{let R=V.split(":")[0].trim();if(R)j.push(R)});else if(F[3])j.push(F[3])}while((F=L.exec($))!==null){if(F[1])continue;j.push(F[2])}let H=j.length>0?`
613
613
  export { ${j.join(", ")} }`:"";await Bun.write(W,$+H),console.log("[stx:bundler] bundling:",K,"from:",F0.basename(Z));try{let V=await Bun.build({entrypoints:[W],outdir:U,target:"browser",format:"esm",minify:J,plugins:[fJ(X,B,W)],define:{"process.env.NODE_ENV":J?'"production"':'"development"',...p0()},root:X});if(!V.success){let w=V.logs.filter((A)=>A.level==="error").map((A)=>A.message).join(", ");return console.warn("[stx:bundler] build failed:",w),$}let R="";for(let w of V.outputs){R=await w.text();break}return R=R.replace(/^\s*export\s*\{[^}]*\}\s*;?\s*$/gm,"").replace(/^\s*export\s+default\s+.*$/gm,"").trim(),console.log("[stx:bundler] bundled:",K,"output:",R.length,"bytes"),r0.mkdirSync(Q,{recursive:!0}),await Bun.write(q,R),R}catch(V){let R=V instanceof Error?V.message:String(V),w=V?.errors,A=Array.isArray(w)&&w.length>0?`
614
614
  ${w.map((N)=>`- ${N?.message??N}`).join(`
615
- `)}`:"";return console.warn(`[stx:bundler] error: ${R}${A}`),$}finally{try{r0.rmSync(W,{force:!0}),r0.rmSync(U,{recursive:!0,force:!0})}catch{}}}var v3;var y9=y(()=>{d1();v3=[/^stx$/,/^@stacksjs\/stx$/,/^@stacksjs\/browser$/,/^@stores$/,/^stx\/stores$/,/^@composables$/]});function CB($){m1={...m1,...$}}function PB(){m1={...f3}}function vB(){return{...m1}}function mJ($){let Z="",Y=null,X=!1;for(let J=0;J<$.length;J++){let Q=$[J];if(X){X=!1;continue}if(Q==="\\"&&Y){X=!0;continue}if(Y){if(Y==="`"&&Q==="$"&&J+1<$.length&&$[J+1]==="{"){let G=1;J+=2;while(J<$.length&&G>0){if($[J]==="{")G++;else if($[J]==="}")G--;if(G>0)Z+=$[J],J++}continue}if(Q===Y)Y=null;continue}if(Q==='"'||Q==="'"||Q==="`"){Y=Q;continue}Z+=Q}return Z}function uJ($,Z){let Y=/[$A-Z_a-z][$\w]*/g,X;while((X=Y.exec($))!==null){let J=X[0],Q=$[X.index-1];if(hJ.has(J))throw Error(`Potentially unsafe expression (identifier ${J}): ${Z}`);if(Q==="."&&g3.has(J))throw Error(`Potentially unsafe expression (property ${J}): ${Z}`)}}function pJ($){let Z=/\[\s*(['"])(.*?)\1\s*\]/g,Y;while((Y=Z.exec($))!==null){let X=Y[2];if(!g3.has(X))continue;let J=$.slice(0,Y.index).match(/\S(?=\s*$)/)?.[0],Q=$.slice(Y.index+Y[0].length).match(/^\s*(\S)/)?.[1];if(!((J==="{"||J===",")&&Q===":"))throw Error(`Potentially unsafe expression (bracket key ${Y[2]}): ${$}`)}}function B5($){let Z=$.trim(),Y=mJ(Z);uJ(Y,Z),pJ(Z);for(let X of P9)if(X.test(Y))throw Error(`Potentially unsafe expression (matched /${X.source}/): ${Z}`);if(!m1.allowBracketNotation&&dJ.test(Z))throw Error(`Bracket notation with strings not allowed: ${Z}. Enable with configureSafeEvaluator({ allowBracketNotation: true })`);return Z}function h3($){let Z={};Z.Math=Math,Z.JSON=JSON,Z.Date=Date,Z.String=String,Z.Number=Number,Z.Boolean=Boolean,Z.Array=Array,Z.parseInt=Number.parseInt,Z.parseFloat=Number.parseFloat,Z.isNaN=Number.isNaN,Z.isFinite=Number.isFinite,Z.encodeURIComponent=encodeURIComponent,Z.decodeURIComponent=decodeURIComponent;for(let[Y,X]of Object.entries($)){if(Y.startsWith("__")||P9.some((J)=>J.test(Y)))continue;if(X&&typeof X==="object"&&!Array.isArray(X))Z[Y]=C9(X);else Z[Y]=X}return Z}function C9($,Z=0){if(Z>=m1.maxSanitizeDepth)return"[Object too deep]";if($===null||typeof $!=="object")return $;if(Array.isArray($))return $.map((X)=>C9(X,Z+1));if($ instanceof Date||$ instanceof RegExp||$ instanceof Map||$ instanceof Set||$ instanceof Error)return $;let Y={};for(let[X,J]of Object.entries($)){if(X.startsWith("__")||X==="constructor"||X==="prototype")continue;if(J&&typeof J==="object")Y[X]=C9(J,Z+1);else Y[X]=J}return Y}function o($,Z){try{let Y=h3(Z),X=Object.keys(Y),J=Object.values(Y);return e($,X)(...J)}catch{return}}function t($){try{return B5($),!0}catch{return!1}}function xB($){try{return B5($),null}catch(Z){return Z instanceof Error?Z.message:String(Z)}}function fB($,Z){try{let Y=o($,Z);return Boolean(Y)}catch{return!1}}function gB($,Z){try{let Y=o($,Z);if(Array.isArray(Y))return Y;if(Y&&typeof Y==="object"&&"length"in Y){let X=Y.length;if(typeof X==="number"&&Number.isFinite(X)&&X>=0&&Number.isInteger(X))return Array.from(Y)}return[]}catch{return[]}}function W0($,Z){try{let Y=o($,Z);if(Y&&typeof Y==="object"&&!Array.isArray(Y))return Y;return{}}catch{return{}}}function e($,Z){let Y=B5($),X=/^[A-Za-z_$][\w$]*$/,J=[],Q=[];for(let K=0;K<Z.length;K++){let q=Z[K];if(!X.test(q))continue;if(lJ.has(q))continue;J.push(K),Q.push(q)}let G=Function(...Q,`
615
+ `)}`:"";return console.warn(`[stx:bundler] error: ${R}${A}`),$}finally{try{r0.rmSync(W,{force:!0}),r0.rmSync(U,{recursive:!0,force:!0})}catch{}}}var v3;var y9=y(()=>{d1();v3=[/^stx$/,/^@stacksjs\/stx$/,/^@stacksjs\/browser$/,/^@stores$/,/^stx\/stores$/,/^@composables$/]});function CB($){m1={...m1,...$}}function PB(){m1={...f3}}function vB(){return{...m1}}function mJ($){let Z="",Y=null,X=!1;for(let J=0;J<$.length;J++){let Q=$[J];if(X){X=!1;continue}if(Q==="\\"&&Y){X=!0;continue}if(Y){if(Y==="`"&&Q==="$"&&J+1<$.length&&$[J+1]==="{"){let G=1;J+=2;while(J<$.length&&G>0){if($[J]==="{")G++;else if($[J]==="}")G--;if(G>0)Z+=$[J],J++}continue}if(Q===Y)Y=null;continue}if(Q==='"'||Q==="'"||Q==="`"){Y=Q;continue}Z+=Q}return Z}function uJ($,Z){let Y=/[$A-Z_a-z][$\w]*/g,X;while((X=Y.exec($))!==null){let J=X[0],Q=$[X.index-1];if(hJ.has(J))throw Error(`Potentially unsafe expression (matched /\\b${J}\\b/; identifier ${J}): ${Z}`);if(Q==="."&&g3.has(J))throw Error(`Potentially unsafe expression (matched /.${J}/; property ${J}): ${Z}`)}}function pJ($){let Z=/\[\s*(['"])(.*?)\1\s*\]/g,Y;while((Y=Z.exec($))!==null){let X=Y[2];if(!g3.has(X))continue;let J=$.slice(0,Y.index).match(/\S(?=\s*$)/)?.[0],Q=$.slice(Y.index+Y[0].length).match(/^\s*(\S)/)?.[1];if(!((J==="{"||J===",")&&Q===":"))throw Error(`Potentially unsafe expression (bracket key ${Y[2]}): ${$}`)}}function B5($){let Z=$.trim(),Y=mJ(Z);uJ(Y,Z),pJ(Z);for(let X of P9)if(X.test(Y))throw Error(`Potentially unsafe expression (matched /${X.source}/): ${Z}`);if(!m1.allowBracketNotation&&dJ.test(Z))throw Error(`Bracket notation with strings not allowed: ${Z}. Enable with configureSafeEvaluator({ allowBracketNotation: true })`);return Z}function h3($){let Z={};Z.Math=Math,Z.JSON=JSON,Z.Date=Date,Z.String=String,Z.Number=Number,Z.Boolean=Boolean,Z.Array=Array,Z.parseInt=Number.parseInt,Z.parseFloat=Number.parseFloat,Z.isNaN=Number.isNaN,Z.isFinite=Number.isFinite,Z.encodeURIComponent=encodeURIComponent,Z.decodeURIComponent=decodeURIComponent;for(let[Y,X]of Object.entries($)){if(Y.startsWith("__")||P9.some((J)=>J.test(Y)))continue;if(X&&typeof X==="object"&&!Array.isArray(X))Z[Y]=C9(X);else Z[Y]=X}return Z}function C9($,Z=0){if(Z>=m1.maxSanitizeDepth)return"[Object too deep]";if($===null||typeof $!=="object")return $;if(Array.isArray($))return $.map((X)=>C9(X,Z+1));if($ instanceof Date||$ instanceof RegExp||$ instanceof Map||$ instanceof Set||$ instanceof Error)return $;let Y={};for(let[X,J]of Object.entries($)){if(X.startsWith("__")||X==="constructor"||X==="prototype")continue;if(J&&typeof J==="object")Y[X]=C9(J,Z+1);else Y[X]=J}return Y}function o($,Z){try{let Y=h3(Z),X=Object.keys(Y),J=Object.values(Y);return e($,X)(...J)}catch{return}}function t($){try{return B5($),!0}catch{return!1}}function xB($){try{return B5($),null}catch(Z){return Z instanceof Error?Z.message:String(Z)}}function fB($,Z){try{let Y=o($,Z);return Boolean(Y)}catch{return!1}}function gB($,Z){try{let Y=o($,Z);if(Array.isArray(Y))return Y;if(Y&&typeof Y==="object"&&"length"in Y){let X=Y.length;if(typeof X==="number"&&Number.isFinite(X)&&X>=0&&Number.isInteger(X))return Array.from(Y)}return[]}catch{return[]}}function W0($,Z){try{let Y=o($,Z);if(Y&&typeof Y==="object"&&!Array.isArray(Y))return Y;return{}}catch{return{}}}function e($,Z){let Y=B5($),X=/^[A-Za-z_$][\w$]*$/,J=[],Q=[];for(let K=0;K<Z.length;K++){let q=Z[K];if(!X.test(q))continue;if(lJ.has(q))continue;J.push(K),Q.push(q)}let G=Function(...Q,`
616
616
  'use strict';
617
617
  try {
618
618
  return ${Y};
@@ -612,7 +612,7 @@ ${q}`},hasEndTag:!1,description:"Coordinates multiple animations together as a g
612
612
  `}),$}import y3 from"process";function m0($="STX_PUBLIC_"){let Z={},Y={};for(let[X,J]of Object.entries(y3.env)){if(!X.startsWith($)||J===void 0)continue;Z[`import.meta.env.${X}`]=JSON.stringify(J),Y[X]=J}return Z["import.meta.env"]=JSON.stringify(Y),Z}function TB($="STX_PUBLIC_"){let Z={};for(let[Y,X]of Object.entries(y3.env))if(Y.startsWith($)&&X!==void 0)Z[Y]=X;return Z}var f1=()=>{};var E4={};c(E4,{hasUserImports:()=>vJ,bundleClientScript:()=>fJ});import L0 from"path";import n0 from"fs";function vJ($){let Z=/^\s*import\s+(?!type\s)/gm;if(!$.match(Z))return!1;let X=/^\s*import\s+(?!type\s).*?\s+from\s+['"]([^'"]+)['"]/gm,J;while((J=X.exec($))!==null){let G=J[1];if(!C3.some((q)=>q.test(G)))return console.log("[stx:bundler] detected user import:",G),!0}let Q=/^\s*import\s+['"]([^'"]+)['"]/gm;while((J=Q.exec($))!==null){let G=J[1];if(!C3.some((q)=>q.test(G)))return console.log("[stx:bundler] detected side-effect import:",G),!0}return!1}function xJ($,Z,Y){let X=(J,Q)=>{let G=J===Y?Z:L0.dirname(J),K=L0.resolve(G,Q),q=[K,`${K}.ts`,`${K}.tsx`,`${K}.js`,`${K}.mjs`,`${K}.jsx`,L0.join(K,"index.ts"),L0.join(K,"index.tsx"),L0.join(K,"index.js"),L0.join(K,"index.mjs")];for(let z of q)try{if(n0.existsSync(z)&&n0.statSync(z,{throwIfNoEntry:!1})?.isFile())return z}catch{}return K};return{name:"stx-client-bundle",setup(J){J.onResolve({filter:/^(stx|@stacksjs\/stx|@stacksjs\/browser)$/},(Q)=>({path:Q.path,external:!0})),J.onResolve({filter:/^(@stores|@composables|stx\/stores)$/},(Q)=>({path:Q.path,external:!0})),J.onResolve({filter:/^\.\.?\//},(Q)=>{return{path:X(Q.importer,Q.path)}}),J.onResolve({filter:/^@\//},(Q)=>{let G=L0.resolve($,Q.path.slice(2)),K=[G,`${G}.ts`,`${G}.js`,L0.join(G,"index.ts"),L0.join(G,"index.js")];for(let q of K)if(n0.existsSync(q)&&n0.statSync(q,{throwIfNoEntry:!1})?.isFile())return console.log("[stx:bundler] resolved @/ import:",Q.path,"\u2192",q),{path:q};return console.warn("[stx:bundler] could not resolve @/ import:",Q.path),{path:G}})}}}async function fJ($,Z,Y={}){let X=Y.projectRoot||process.cwd(),J=Y.minify??!1,Q=Y.cacheDir||L0.join(X,".stx","bundle-cache"),G=new Bun.CryptoHasher("md5");G.update($+Z);let K=G.digest("hex").slice(0,12),q=L0.join(Q,`${K}.js`),z=Bun.file(q);if(await z.exists())return console.log("[stx:bundler] cache hit:",K),await z.text();let _=L0.join(X,".stx","bundle-tmp"),W=L0.join(_,`${K}.ts`),U=L0.join(_,"out",K);n0.mkdirSync(_,{recursive:!0}),n0.mkdirSync(U,{recursive:!0});let B=L0.dirname(Z),j=[],O=/^(export\s+)?(?:const|let|var)\s+(?:\{([^}]+)\}|(\w+))/gm,L=/^(export\s+)?(?:async\s+)?function\s+(\w+)/gm,F;while((F=O.exec($))!==null){if(F[1])continue;if(F[2])F[2].split(",").forEach((V)=>{let R=V.split(":")[0].trim();if(R)j.push(R)});else if(F[3])j.push(F[3])}while((F=L.exec($))!==null){if(F[1])continue;j.push(F[2])}let H=j.length>0?`
613
613
  export { ${j.join(", ")} }`:"";await Bun.write(W,$+H),console.log("[stx:bundler] bundling:",K,"from:",L0.basename(Z));try{let V=await Bun.build({entrypoints:[W],outdir:U,target:"browser",format:"esm",minify:J,plugins:[xJ(X,B,W)],define:{"process.env.NODE_ENV":J?'"production"':'"development"',...m0()},root:X});if(!V.success){let w=V.logs.filter((A)=>A.level==="error").map((A)=>A.message).join(", ");return console.warn("[stx:bundler] build failed:",w),$}let R="";for(let w of V.outputs){R=await w.text();break}return R=R.replace(/^\s*export\s*\{[^}]*\}\s*;?\s*$/gm,"").replace(/^\s*export\s+default\s+.*$/gm,"").trim(),console.log("[stx:bundler] bundled:",K,"output:",R.length,"bytes"),n0.mkdirSync(Q,{recursive:!0}),await Bun.write(q,R),R}catch(V){let R=V instanceof Error?V.message:String(V),w=V?.errors,A=Array.isArray(w)&&w.length>0?`
614
614
  ${w.map((N)=>`- ${N?.message??N}`).join(`
615
- `)}`:"";return console.warn(`[stx:bundler] error: ${R}${A}`),$}finally{try{n0.rmSync(W,{force:!0}),n0.rmSync(U,{recursive:!0,force:!0})}catch{}}}var C3;var k4=b(()=>{f1();C3=[/^stx$/,/^@stacksjs\/stx$/,/^@stacksjs\/browser$/,/^@stores$/,/^stx\/stores$/,/^@composables$/]});function kB($){g1={...g1,...$}}function SB(){g1={...v3}}function bB(){return{...g1}}function dJ($){let Z="",Y=null,X=!1;for(let J=0;J<$.length;J++){let Q=$[J];if(X){X=!1;continue}if(Q==="\\"&&Y){X=!0;continue}if(Y){if(Y==="`"&&Q==="$"&&J+1<$.length&&$[J+1]==="{"){let G=1;J+=2;while(J<$.length&&G>0){if($[J]==="{")G++;else if($[J]==="}")G--;if(G>0)Z+=$[J],J++}continue}if(Q===Y)Y=null;continue}if(Q==='"'||Q==="'"||Q==="`"){Y=Q;continue}Z+=Q}return Z}function mJ($,Z){let Y=/[$A-Z_a-z][$\w]*/g,X;while((X=Y.exec($))!==null){let J=X[0],Q=$[X.index-1];if(gJ.has(J))throw Error(`Potentially unsafe expression (identifier ${J}): ${Z}`);if(Q==="."&&x3.has(J))throw Error(`Potentially unsafe expression (property ${J}): ${Z}`)}}function uJ($){let Z=/\[\s*(['"])(.*?)\1\s*\]/g,Y;while((Y=Z.exec($))!==null){let X=Y[2];if(!x3.has(X))continue;let J=$.slice(0,Y.index).match(/\S(?=\s*$)/)?.[0],Q=$.slice(Y.index+Y[0].length).match(/^\s*(\S)/)?.[1];if(!((J==="{"||J===",")&&Q===":"))throw Error(`Potentially unsafe expression (bracket key ${Y[2]}): ${$}`)}}function z5($){let Z=$.trim(),Y=dJ(Z);mJ(Y,Z),uJ(Z);for(let X of b4)if(X.test(Y))throw Error(`Potentially unsafe expression (matched /${X.source}/): ${Z}`);if(!g1.allowBracketNotation&&hJ.test(Z))throw Error(`Bracket notation with strings not allowed: ${Z}. Enable with configureSafeEvaluator({ allowBracketNotation: true })`);return Z}function f3($){let Z={};Z.Math=Math,Z.JSON=JSON,Z.Date=Date,Z.String=String,Z.Number=Number,Z.Boolean=Boolean,Z.Array=Array,Z.parseInt=Number.parseInt,Z.parseFloat=Number.parseFloat,Z.isNaN=Number.isNaN,Z.isFinite=Number.isFinite,Z.encodeURIComponent=encodeURIComponent,Z.decodeURIComponent=decodeURIComponent;for(let[Y,X]of Object.entries($)){if(Y.startsWith("__")||b4.some((J)=>J.test(Y)))continue;if(X&&typeof X==="object"&&!Array.isArray(X))Z[Y]=S4(X);else Z[Y]=X}return Z}function S4($,Z=0){if(Z>=g1.maxSanitizeDepth)return"[Object too deep]";if($===null||typeof $!=="object")return $;if(Array.isArray($))return $.map((X)=>S4(X,Z+1));if($ instanceof Date||$ instanceof RegExp||$ instanceof Map||$ instanceof Set||$ instanceof Error)return $;let Y={};for(let[X,J]of Object.entries($)){if(X.startsWith("__")||X==="constructor"||X==="prototype")continue;if(J&&typeof J==="object")Y[X]=S4(J,Z+1);else Y[X]=J}return Y}function n($,Z){try{let Y=f3(Z),X=Object.keys(Y),J=Object.values(Y);return t($,X)(...J)}catch{return}}function a($){try{return z5($),!0}catch{return!1}}function yB($){try{return z5($),null}catch(Z){return Z instanceof Error?Z.message:String(Z)}}function CB($,Z){try{let Y=n($,Z);return Boolean(Y)}catch{return!1}}function PB($,Z){try{let Y=n($,Z);if(Array.isArray(Y))return Y;if(Y&&typeof Y==="object"&&"length"in Y){let X=Y.length;if(typeof X==="number"&&Number.isFinite(X)&&X>=0&&Number.isInteger(X))return Array.from(Y)}return[]}catch{return[]}}function _0($,Z){try{let Y=n($,Z);if(Y&&typeof Y==="object"&&!Array.isArray(Y))return Y;return{}}catch{return{}}}function t($,Z){let Y=z5($),X=/^[A-Za-z_$][\w$]*$/,J=[],Q=[];for(let K=0;K<Z.length;K++){let q=Z[K];if(!X.test(q))continue;if(pJ.has(q))continue;J.push(K),Q.push(q)}let G=Function(...Q,`
615
+ `)}`:"";return console.warn(`[stx:bundler] error: ${R}${A}`),$}finally{try{n0.rmSync(W,{force:!0}),n0.rmSync(U,{recursive:!0,force:!0})}catch{}}}var C3;var k4=b(()=>{f1();C3=[/^stx$/,/^@stacksjs\/stx$/,/^@stacksjs\/browser$/,/^@stores$/,/^stx\/stores$/,/^@composables$/]});function kB($){g1={...g1,...$}}function SB(){g1={...v3}}function bB(){return{...g1}}function dJ($){let Z="",Y=null,X=!1;for(let J=0;J<$.length;J++){let Q=$[J];if(X){X=!1;continue}if(Q==="\\"&&Y){X=!0;continue}if(Y){if(Y==="`"&&Q==="$"&&J+1<$.length&&$[J+1]==="{"){let G=1;J+=2;while(J<$.length&&G>0){if($[J]==="{")G++;else if($[J]==="}")G--;if(G>0)Z+=$[J],J++}continue}if(Q===Y)Y=null;continue}if(Q==='"'||Q==="'"||Q==="`"){Y=Q;continue}Z+=Q}return Z}function mJ($,Z){let Y=/[$A-Z_a-z][$\w]*/g,X;while((X=Y.exec($))!==null){let J=X[0],Q=$[X.index-1];if(gJ.has(J))throw Error(`Potentially unsafe expression (matched /\\b${J}\\b/; identifier ${J}): ${Z}`);if(Q==="."&&x3.has(J))throw Error(`Potentially unsafe expression (matched /.${J}/; property ${J}): ${Z}`)}}function uJ($){let Z=/\[\s*(['"])(.*?)\1\s*\]/g,Y;while((Y=Z.exec($))!==null){let X=Y[2];if(!x3.has(X))continue;let J=$.slice(0,Y.index).match(/\S(?=\s*$)/)?.[0],Q=$.slice(Y.index+Y[0].length).match(/^\s*(\S)/)?.[1];if(!((J==="{"||J===",")&&Q===":"))throw Error(`Potentially unsafe expression (bracket key ${Y[2]}): ${$}`)}}function z5($){let Z=$.trim(),Y=dJ(Z);mJ(Y,Z),uJ(Z);for(let X of b4)if(X.test(Y))throw Error(`Potentially unsafe expression (matched /${X.source}/): ${Z}`);if(!g1.allowBracketNotation&&hJ.test(Z))throw Error(`Bracket notation with strings not allowed: ${Z}. Enable with configureSafeEvaluator({ allowBracketNotation: true })`);return Z}function f3($){let Z={};Z.Math=Math,Z.JSON=JSON,Z.Date=Date,Z.String=String,Z.Number=Number,Z.Boolean=Boolean,Z.Array=Array,Z.parseInt=Number.parseInt,Z.parseFloat=Number.parseFloat,Z.isNaN=Number.isNaN,Z.isFinite=Number.isFinite,Z.encodeURIComponent=encodeURIComponent,Z.decodeURIComponent=decodeURIComponent;for(let[Y,X]of Object.entries($)){if(Y.startsWith("__")||b4.some((J)=>J.test(Y)))continue;if(X&&typeof X==="object"&&!Array.isArray(X))Z[Y]=S4(X);else Z[Y]=X}return Z}function S4($,Z=0){if(Z>=g1.maxSanitizeDepth)return"[Object too deep]";if($===null||typeof $!=="object")return $;if(Array.isArray($))return $.map((X)=>S4(X,Z+1));if($ instanceof Date||$ instanceof RegExp||$ instanceof Map||$ instanceof Set||$ instanceof Error)return $;let Y={};for(let[X,J]of Object.entries($)){if(X.startsWith("__")||X==="constructor"||X==="prototype")continue;if(J&&typeof J==="object")Y[X]=S4(J,Z+1);else Y[X]=J}return Y}function n($,Z){try{let Y=f3(Z),X=Object.keys(Y),J=Object.values(Y);return t($,X)(...J)}catch{return}}function a($){try{return z5($),!0}catch{return!1}}function yB($){try{return z5($),null}catch(Z){return Z instanceof Error?Z.message:String(Z)}}function CB($,Z){try{let Y=n($,Z);return Boolean(Y)}catch{return!1}}function PB($,Z){try{let Y=n($,Z);if(Array.isArray(Y))return Y;if(Y&&typeof Y==="object"&&"length"in Y){let X=Y.length;if(typeof X==="number"&&Number.isFinite(X)&&X>=0&&Number.isInteger(X))return Array.from(Y)}return[]}catch{return[]}}function _0($,Z){try{let Y=n($,Z);if(Y&&typeof Y==="object"&&!Array.isArray(Y))return Y;return{}}catch{return{}}}function t($,Z){let Y=z5($),X=/^[A-Za-z_$][\w$]*$/,J=[],Q=[];for(let K=0;K<Z.length;K++){let q=Z[K];if(!X.test(q))continue;if(pJ.has(q))continue;J.push(K),Q.push(q)}let G=Function(...Q,`
616
616
  'use strict';
617
617
  try {
618
618
  return ${Y};
package/dist/loops.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- var U4=Object.defineProperty;var W4=($)=>$;function z4($,Z){this[$]=W4.bind(null,Z)}var K1=($,Z)=>{for(var Y in Z)U4($,Y,{get:Z[Y],enumerable:!0,configurable:!0,set:z4.bind(Z,Y)})};var w=($,Z)=>()=>($&&(Z=$($=0)),Z);var p=import.meta.require;function O4($){let Z="",Y=null,J=!1;for(let X=0;X<$.length;X++){let G=$[X];if(J){J=!1;continue}if(G==="\\"&&Y){J=!0;continue}if(Y){if(Y==="`"&&G==="$"&&X+1<$.length&&$[X+1]==="{"){let Q=1;X+=2;while(X<$.length&&Q>0){if($[X]==="{")Q++;else if($[X]==="}")Q--;if(Q>0)Z+=$[X],X++}continue}if(G===Y)Y=null;continue}if(G==='"'||G==="'"||G==="`"){Y=G;continue}Z+=G}return Z}function F4($,Z){let Y=/[$A-Z_a-z][$\w]*/g,J;while((J=Y.exec($))!==null){let X=J[0],G=$[J.index-1];if(H4.has(X))throw Error(`Potentially unsafe expression (identifier ${X}): ${Z}`);if(G==="."&&I5.has(X))throw Error(`Potentially unsafe expression (property ${X}): ${Z}`)}}function L4($){let Z=/\[\s*(['"])(.*?)\1\s*\]/g,Y;while((Y=Z.exec($))!==null){let J=Y[2];if(!I5.has(J))continue;let X=$.slice(0,Y.index).match(/\S(?=\s*$)/)?.[0],G=$.slice(Y.index+Y[0].length).match(/^\s*(\S)/)?.[1];if(!((X==="{"||X===",")&&G===":"))throw Error(`Potentially unsafe expression (bracket key ${Y[2]}): ${$}`)}}function I0($){let Z=$.trim(),Y=O4(Z);F4(Y,Z),L4(Z);for(let J of T5)if(J.test(Y))throw Error(`Potentially unsafe expression (matched /${J.source}/): ${Z}`);if(!N5.allowBracketNotation&&j4.test(Z))throw Error(`Bracket notation with strings not allowed: ${Z}. Enable with configureSafeEvaluator({ allowBracketNotation: true })`);return Z}function V4($){let Z={};Z.Math=Math,Z.JSON=JSON,Z.Date=Date,Z.String=String,Z.Number=Number,Z.Boolean=Boolean,Z.Array=Array,Z.parseInt=Number.parseInt,Z.parseFloat=Number.parseFloat,Z.isNaN=Number.isNaN,Z.isFinite=Number.isFinite,Z.encodeURIComponent=encodeURIComponent,Z.decodeURIComponent=decodeURIComponent;for(let[Y,J]of Object.entries($)){if(Y.startsWith("__")||T5.some((X)=>X.test(Y)))continue;if(J&&typeof J==="object"&&!Array.isArray(J))Z[Y]=q1(J);else Z[Y]=J}return Z}function q1($,Z=0){if(Z>=N5.maxSanitizeDepth)return"[Object too deep]";if($===null||typeof $!=="object")return $;if(Array.isArray($))return $.map((J)=>q1(J,Z+1));if($ instanceof Date||$ instanceof RegExp||$ instanceof Map||$ instanceof Set||$ instanceof Error)return $;let Y={};for(let[J,X]of Object.entries($)){if(J.startsWith("__")||J==="constructor"||J==="prototype")continue;if(X&&typeof X==="object")Y[J]=q1(X,Z+1);else Y[J]=X}return Y}function g($,Z){try{let Y=V4(Z),J=Object.keys(Y),X=Object.values(Y);return h($,J)(...X)}catch{return}}function m($){try{return I0($),!0}catch{return!1}}function G0($,Z){try{let Y=g($,Z);if(Y&&typeof Y==="object"&&!Array.isArray(Y))return Y;return{}}catch{return{}}}function h($,Z){let Y=I0($),J=/^[A-Za-z_$][\w$]*$/,X=[],G=[];for(let K=0;K<Z.length;K++){let q=Z[K];if(!J.test(q))continue;if(w4.has(q))continue;X.push(K),G.push(q)}let Q=Function(...G,`
2
+ var U4=Object.defineProperty;var W4=($)=>$;function z4($,Z){this[$]=W4.bind(null,Z)}var K1=($,Z)=>{for(var Y in Z)U4($,Y,{get:Z[Y],enumerable:!0,configurable:!0,set:z4.bind(Z,Y)})};var w=($,Z)=>()=>($&&(Z=$($=0)),Z);var p=import.meta.require;function O4($){let Z="",Y=null,J=!1;for(let X=0;X<$.length;X++){let G=$[X];if(J){J=!1;continue}if(G==="\\"&&Y){J=!0;continue}if(Y){if(Y==="`"&&G==="$"&&X+1<$.length&&$[X+1]==="{"){let Q=1;X+=2;while(X<$.length&&Q>0){if($[X]==="{")Q++;else if($[X]==="}")Q--;if(Q>0)Z+=$[X],X++}continue}if(G===Y)Y=null;continue}if(G==='"'||G==="'"||G==="`"){Y=G;continue}Z+=G}return Z}function F4($,Z){let Y=/[$A-Z_a-z][$\w]*/g,J;while((J=Y.exec($))!==null){let X=J[0],G=$[J.index-1];if(H4.has(X))throw Error(`Potentially unsafe expression (matched /\\b${X}\\b/; identifier ${X}): ${Z}`);if(G==="."&&I5.has(X))throw Error(`Potentially unsafe expression (matched /.${X}/; property ${X}): ${Z}`)}}function L4($){let Z=/\[\s*(['"])(.*?)\1\s*\]/g,Y;while((Y=Z.exec($))!==null){let J=Y[2];if(!I5.has(J))continue;let X=$.slice(0,Y.index).match(/\S(?=\s*$)/)?.[0],G=$.slice(Y.index+Y[0].length).match(/^\s*(\S)/)?.[1];if(!((X==="{"||X===",")&&G===":"))throw Error(`Potentially unsafe expression (bracket key ${Y[2]}): ${$}`)}}function I0($){let Z=$.trim(),Y=O4(Z);F4(Y,Z),L4(Z);for(let J of T5)if(J.test(Y))throw Error(`Potentially unsafe expression (matched /${J.source}/): ${Z}`);if(!N5.allowBracketNotation&&j4.test(Z))throw Error(`Bracket notation with strings not allowed: ${Z}. Enable with configureSafeEvaluator({ allowBracketNotation: true })`);return Z}function V4($){let Z={};Z.Math=Math,Z.JSON=JSON,Z.Date=Date,Z.String=String,Z.Number=Number,Z.Boolean=Boolean,Z.Array=Array,Z.parseInt=Number.parseInt,Z.parseFloat=Number.parseFloat,Z.isNaN=Number.isNaN,Z.isFinite=Number.isFinite,Z.encodeURIComponent=encodeURIComponent,Z.decodeURIComponent=decodeURIComponent;for(let[Y,J]of Object.entries($)){if(Y.startsWith("__")||T5.some((X)=>X.test(Y)))continue;if(J&&typeof J==="object"&&!Array.isArray(J))Z[Y]=q1(J);else Z[Y]=J}return Z}function q1($,Z=0){if(Z>=N5.maxSanitizeDepth)return"[Object too deep]";if($===null||typeof $!=="object")return $;if(Array.isArray($))return $.map((J)=>q1(J,Z+1));if($ instanceof Date||$ instanceof RegExp||$ instanceof Map||$ instanceof Set||$ instanceof Error)return $;let Y={};for(let[J,X]of Object.entries($)){if(J.startsWith("__")||J==="constructor"||J==="prototype")continue;if(X&&typeof X==="object")Y[J]=q1(X,Z+1);else Y[J]=X}return Y}function g($,Z){try{let Y=V4(Z),J=Object.keys(Y),X=Object.values(Y);return h($,J)(...X)}catch{return}}function m($){try{return I0($),!0}catch{return!1}}function G0($,Z){try{let Y=g($,Z);if(Y&&typeof Y==="object"&&!Array.isArray(Y))return Y;return{}}catch{return{}}}function h($,Z){let Y=I0($),J=/^[A-Za-z_$][\w$]*$/,X=[],G=[];for(let K=0;K<Z.length;K++){let q=Z[K];if(!J.test(q))continue;if(w4.has(q))continue;X.push(K),G.push(q)}let Q=Function(...G,`
3
3
  'use strict';
4
4
  try {
5
5
  return ${Y};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- var{defineProperty:g,getOwnPropertyNames:Dq,getOwnPropertyDescriptor:Aq}=Object,jq=Object.prototype.hasOwnProperty;function Iq(q){return this[q]}var QJ=(q)=>{var J=(i??=new WeakMap).get(q),W;if(J)return J;if(J=g({},"__esModule",{value:!0}),q&&typeof q==="object"||typeof q==="function"){for(var Z of Dq(q))if(!jq.call(J,Z))g(J,Z,{get:Iq.bind(q,Z),enumerable:!(W=Aq(q,Z))||W.enumerable})}return i.set(q,J),J},i;var kq=(q)=>q;function zq(q,J){this[q]=kq.bind(null,J)}var UJ=(q,J)=>{for(var W in J)g(q,W,{get:J[W],enumerable:!0,configurable:!0,set:zq.bind(J,W)})};var w=(q,J)=>()=>(q&&(J=q(q=0)),J);var L=import.meta.require;function BJ(q){k={...k,...q}}function HJ(){k={...a}}function MJ(){return{...k}}function bq(q){let J="",W=null,Z=!1;for(let $=0;$<q.length;$++){let X=q[$];if(Z){Z=!1;continue}if(X==="\\"&&W){Z=!0;continue}if(W){if(W==="`"&&X==="$"&&$+1<q.length&&q[$+1]==="{"){let Y=1;$+=2;while($<q.length&&Y>0){if(q[$]==="{")Y++;else if(q[$]==="}")Y--;if(Y>0)J+=q[$],$++}continue}if(X===W)W=null;continue}if(X==='"'||X==="'"||X==="`"){W=X;continue}J+=X}return J}function Sq(q,J){let W=/[$A-Z_a-z][$\w]*/g,Z;while((Z=W.exec(q))!==null){let $=Z[0],X=q[Z.index-1];if(Lq.has($))throw Error(`Potentially unsafe expression (identifier ${$}): ${J}`);if(X==="."&&t.has($))throw Error(`Potentially unsafe expression (property ${$}): ${J}`)}}function Pq(q){let J=/\[\s*(['"])(.*?)\1\s*\]/g,W;while((W=J.exec(q))!==null){let Z=W[2];if(!t.has(Z))continue;let $=q.slice(0,W.index).match(/\S(?=\s*$)/)?.[0],X=q.slice(W.index+W[0].length).match(/^\s*(\S)/)?.[1];if(!(($==="{"||$===",")&&X===":"))throw Error(`Potentially unsafe expression (bracket key ${W[2]}): ${q}`)}}function u(q){let J=q.trim(),W=bq(J);Sq(W,J),Pq(J);for(let Z of f)if(Z.test(W))throw Error(`Potentially unsafe expression (matched /${Z.source}/): ${J}`);if(!k.allowBracketNotation&&Eq.test(J))throw Error(`Bracket notation with strings not allowed: ${J}. Enable with configureSafeEvaluator({ allowBracketNotation: true })`);return J}function e(q){let J={};J.Math=Math,J.JSON=JSON,J.Date=Date,J.String=String,J.Number=Number,J.Boolean=Boolean,J.Array=Array,J.parseInt=Number.parseInt,J.parseFloat=Number.parseFloat,J.isNaN=Number.isNaN,J.isFinite=Number.isFinite,J.encodeURIComponent=encodeURIComponent,J.decodeURIComponent=decodeURIComponent;for(let[W,Z]of Object.entries(q)){if(W.startsWith("__")||f.some(($)=>$.test(W)))continue;if(Z&&typeof Z==="object"&&!Array.isArray(Z))J[W]=h(Z);else J[W]=Z}return J}function h(q,J=0){if(J>=k.maxSanitizeDepth)return"[Object too deep]";if(q===null||typeof q!=="object")return q;if(Array.isArray(q))return q.map((Z)=>h(Z,J+1));if(q instanceof Date||q instanceof RegExp||q instanceof Map||q instanceof Set||q instanceof Error)return q;let W={};for(let[Z,$]of Object.entries(q)){if(Z.startsWith("__")||Z==="constructor"||Z==="prototype")continue;if($&&typeof $==="object")W[Z]=h($,J+1);else W[Z]=$}return W}function x(q,J){try{let W=e(J),Z=Object.keys(W),$=Object.values(W);return m(q,Z)(...$)}catch{return}}function qq(q){try{return u(q),!0}catch{return!1}}function OJ(q){try{return u(q),null}catch(J){return J instanceof Error?J.message:String(J)}}function _J(q,J){try{let W=x(q,J);return Boolean(W)}catch{return!1}}function KJ(q,J){try{let W=x(q,J);if(Array.isArray(W))return W;if(W&&typeof W==="object"&&"length"in W){let Z=W.length;if(typeof Z==="number"&&Number.isFinite(Z)&&Z>=0&&Number.isInteger(Z))return Array.from(W)}return[]}catch{return[]}}function RJ(q,J){try{let W=x(q,J);if(W&&typeof W==="object"&&!Array.isArray(W))return W;return{}}catch{return{}}}function m(q,J){let W=u(q),Z=/^[A-Za-z_$][\w$]*$/,$=[],X=[];for(let V=0;V<J.length;V++){let F=J[V];if(!Z.test(F))continue;if(Cq.has(F))continue;$.push(V),X.push(F)}let Y=Function(...X,`
2
+ var{defineProperty:g,getOwnPropertyNames:Dq,getOwnPropertyDescriptor:Aq}=Object,jq=Object.prototype.hasOwnProperty;function Iq(q){return this[q]}var QJ=(q)=>{var J=(i??=new WeakMap).get(q),W;if(J)return J;if(J=g({},"__esModule",{value:!0}),q&&typeof q==="object"||typeof q==="function"){for(var Z of Dq(q))if(!jq.call(J,Z))g(J,Z,{get:Iq.bind(q,Z),enumerable:!(W=Aq(q,Z))||W.enumerable})}return i.set(q,J),J},i;var kq=(q)=>q;function zq(q,J){this[q]=kq.bind(null,J)}var UJ=(q,J)=>{for(var W in J)g(q,W,{get:J[W],enumerable:!0,configurable:!0,set:zq.bind(J,W)})};var w=(q,J)=>()=>(q&&(J=q(q=0)),J);var L=import.meta.require;function BJ(q){k={...k,...q}}function HJ(){k={...a}}function MJ(){return{...k}}function bq(q){let J="",W=null,Z=!1;for(let $=0;$<q.length;$++){let X=q[$];if(Z){Z=!1;continue}if(X==="\\"&&W){Z=!0;continue}if(W){if(W==="`"&&X==="$"&&$+1<q.length&&q[$+1]==="{"){let Y=1;$+=2;while($<q.length&&Y>0){if(q[$]==="{")Y++;else if(q[$]==="}")Y--;if(Y>0)J+=q[$],$++}continue}if(X===W)W=null;continue}if(X==='"'||X==="'"||X==="`"){W=X;continue}J+=X}return J}function Sq(q,J){let W=/[$A-Z_a-z][$\w]*/g,Z;while((Z=W.exec(q))!==null){let $=Z[0],X=q[Z.index-1];if(Lq.has($))throw Error(`Potentially unsafe expression (matched /\\b${$}\\b/; identifier ${$}): ${J}`);if(X==="."&&t.has($))throw Error(`Potentially unsafe expression (matched /.${$}/; property ${$}): ${J}`)}}function Pq(q){let J=/\[\s*(['"])(.*?)\1\s*\]/g,W;while((W=J.exec(q))!==null){let Z=W[2];if(!t.has(Z))continue;let $=q.slice(0,W.index).match(/\S(?=\s*$)/)?.[0],X=q.slice(W.index+W[0].length).match(/^\s*(\S)/)?.[1];if(!(($==="{"||$===",")&&X===":"))throw Error(`Potentially unsafe expression (bracket key ${W[2]}): ${q}`)}}function u(q){let J=q.trim(),W=bq(J);Sq(W,J),Pq(J);for(let Z of f)if(Z.test(W))throw Error(`Potentially unsafe expression (matched /${Z.source}/): ${J}`);if(!k.allowBracketNotation&&Eq.test(J))throw Error(`Bracket notation with strings not allowed: ${J}. Enable with configureSafeEvaluator({ allowBracketNotation: true })`);return J}function e(q){let J={};J.Math=Math,J.JSON=JSON,J.Date=Date,J.String=String,J.Number=Number,J.Boolean=Boolean,J.Array=Array,J.parseInt=Number.parseInt,J.parseFloat=Number.parseFloat,J.isNaN=Number.isNaN,J.isFinite=Number.isFinite,J.encodeURIComponent=encodeURIComponent,J.decodeURIComponent=decodeURIComponent;for(let[W,Z]of Object.entries(q)){if(W.startsWith("__")||f.some(($)=>$.test(W)))continue;if(Z&&typeof Z==="object"&&!Array.isArray(Z))J[W]=h(Z);else J[W]=Z}return J}function h(q,J=0){if(J>=k.maxSanitizeDepth)return"[Object too deep]";if(q===null||typeof q!=="object")return q;if(Array.isArray(q))return q.map((Z)=>h(Z,J+1));if(q instanceof Date||q instanceof RegExp||q instanceof Map||q instanceof Set||q instanceof Error)return q;let W={};for(let[Z,$]of Object.entries(q)){if(Z.startsWith("__")||Z==="constructor"||Z==="prototype")continue;if($&&typeof $==="object")W[Z]=h($,J+1);else W[Z]=$}return W}function x(q,J){try{let W=e(J),Z=Object.keys(W),$=Object.values(W);return m(q,Z)(...$)}catch{return}}function qq(q){try{return u(q),!0}catch{return!1}}function OJ(q){try{return u(q),null}catch(J){return J instanceof Error?J.message:String(J)}}function _J(q,J){try{let W=x(q,J);return Boolean(W)}catch{return!1}}function KJ(q,J){try{let W=x(q,J);if(Array.isArray(W))return W;if(W&&typeof W==="object"&&"length"in W){let Z=W.length;if(typeof Z==="number"&&Number.isFinite(Z)&&Z>=0&&Number.isInteger(Z))return Array.from(W)}return[]}catch{return[]}}function RJ(q,J){try{let W=x(q,J);if(W&&typeof W==="object"&&!Array.isArray(W))return W;return{}}catch{return{}}}function m(q,J){let W=u(q),Z=/^[A-Za-z_$][\w$]*$/,$=[],X=[];for(let V=0;V<J.length;V++){let F=J[V];if(!Z.test(F))continue;if(Cq.has(F))continue;$.push(V),X.push(F)}let Y=Function(...X,`
3
3
  'use strict';
4
4
  try {
5
5
  return ${W};
package/dist/plugin.js CHANGED
@@ -70,7 +70,7 @@ ${K}${H}
70
70
  'use strict';
71
71
  ${X}${Y}
72
72
  ${K}
73
- })()</script>`}var LQ,FQ,VQ,RQ,IQ;var L$=M(()=>{Z0();LQ=["state","derived","effect","batch","untrack","peek","isSignal","isDerived","onMount","onDestroy","useRef","navigate","goBack","goForward","useRoute","setRouteParams","useSearchParams","useQuery","useMutation","useEventListener","useMeta","useDebounce","useDebouncedValue","useThrottle","useInterval","useTimeout","useToggle","useCounter","useClickOutside","useFocus","useAsync","useColorMode","useDark","ref","reactive","computed","watch","watchEffect","watchMultiple","onBeforeMount","onMounted","onBeforeUpdate","onUpdated","onBeforeUnmount","onUnmounted","defineProps","withDefaults","defineEmits","defineExpose","provide","inject","nextTick","getCurrentInstance","onErrorCaptured","useSlots","useAttrs","createStore","defineStore","useStore","action","createSelector","h","Fragment"],FQ=["browserQuery","BrowserQueryBuilder","BrowserQueryError","browserAuth","configureBrowser","getBrowserConfig","createBrowserDb","createBrowserModel","isBrowser"],VQ=new Set(["Promise","Object","Array","Map","Set","Date","Error","JSON","Math","Number","String","RegExp","Symbol","WeakMap","WeakSet","Proxy","Reflect","Intl","URL","URLSearchParams","FormData","Headers","Request","Response","AbortController","EventTarget","Element","Document","Node","Window","Console","Storage","Navigator","Blob","File","FileReader","HTMLElement","SVGElement","Event","CustomEvent","DOMParser","XMLSerializer","WebSocket","Worker","SharedWorker","IntersectionObserver","MutationObserver","ResizeObserver","PerformanceObserver","Notification","Bun","Buffer","Process","Modal","Intl"]);RQ={left:0,middle:1,right:2};IQ=new Set(["if","else","true","false","null","undefined","typeof","instanceof","in","of","new","this","return","void","delete","throw","switch","case","break","continue","for","while","do","try","catch","finally","const","let","var","function","class","import","export","default","async","await","yield","with","debugger","console","window","document","Math","JSON","Date","Array","Object","String","Number","Boolean","Symbol","Map","Set","Promise","Error","parseInt","parseFloat","isNaN","isFinite","encodeURIComponent","decodeURIComponent","setTimeout","setInterval","clearTimeout","clearInterval","fetch","alert","confirm","prompt","event"])});function CQ($){let Z="",Y=null,X=!1;for(let Q=0;Q<$.length;Q++){let J=$[Q];if(X){X=!1;continue}if(J==="\\"&&Y){X=!0;continue}if(Y){if(Y==="`"&&J==="$"&&Q+1<$.length&&$[Q+1]==="{"){let G=1;Q+=2;while(Q<$.length&&G>0){if($[Q]==="{")G++;else if($[Q]==="}")G--;if(G>0)Z+=$[Q],Q++}continue}if(J===Y)Y=null;continue}if(J==='"'||J==="'"||J==="`"){Y=J;continue}Z+=J}return Z}function yQ($,Z){let Y=/[$A-Z_a-z][$\w]*/g,X;while((X=Y.exec($))!==null){let Q=X[0],J=$[X.index-1];if(SQ.has(Q))throw Error(`Potentially unsafe expression (identifier ${Q}): ${Z}`);if(J==="."&&O8.has(Q))throw Error(`Potentially unsafe expression (property ${Q}): ${Z}`)}}function PQ($){let Z=/\[\s*(['"])(.*?)\1\s*\]/g,Y;while((Y=Z.exec($))!==null){let X=Y[2];if(!O8.has(X))continue;let Q=$.slice(0,Y.index).match(/\S(?=\s*$)/)?.[0],J=$.slice(Y.index+Y[0].length).match(/^\s*(\S)/)?.[1];if(!((Q==="{"||Q===",")&&J===":"))throw Error(`Potentially unsafe expression (bracket key ${Y[2]}): ${$}`)}}function L5($){let Z=$.trim(),Y=CQ(Z);yQ(Y,Z),PQ(Z);for(let X of H8)if(X.test(Y))throw Error(`Potentially unsafe expression (matched /${X.source}/): ${Z}`);if(!j8.allowBracketNotation&&bQ.test(Z))throw Error(`Bracket notation with strings not allowed: ${Z}. Enable with configureSafeEvaluator({ allowBracketNotation: true })`);return Z}function xQ($){let Z={};Z.Math=Math,Z.JSON=JSON,Z.Date=Date,Z.String=String,Z.Number=Number,Z.Boolean=Boolean,Z.Array=Array,Z.parseInt=Number.parseInt,Z.parseFloat=Number.parseFloat,Z.isNaN=Number.isNaN,Z.isFinite=Number.isFinite,Z.encodeURIComponent=encodeURIComponent,Z.decodeURIComponent=decodeURIComponent;for(let[Y,X]of Object.entries($)){if(Y.startsWith("__")||H8.some((Q)=>Q.test(Y)))continue;if(X&&typeof X==="object"&&!Array.isArray(X))Z[Y]=n7(X);else Z[Y]=X}return Z}function n7($,Z=0){if(Z>=j8.maxSanitizeDepth)return"[Object too deep]";if($===null||typeof $!=="object")return $;if(Array.isArray($))return $.map((X)=>n7(X,Z+1));if($ instanceof Date||$ instanceof RegExp||$ instanceof Map||$ instanceof Set||$ instanceof Error)return $;let Y={};for(let[X,Q]of Object.entries($)){if(X.startsWith("__")||X==="constructor"||X==="prototype")continue;if(Q&&typeof Q==="object")Y[X]=n7(Q,Z+1);else Y[X]=Q}return Y}function n($,Z){try{let Y=xQ(Z),X=Object.keys(Y),Q=Object.values(Y);return $0($,X)(...Q)}catch{return}}function e($){try{return L5($),!0}catch{return!1}}function B0($,Z){try{let Y=n($,Z);if(Y&&typeof Y==="object"&&!Array.isArray(Y))return Y;return{}}catch{return{}}}function $0($,Z){let Y=L5($),X=/^[A-Za-z_$][\w$]*$/,Q=[],J=[];for(let K=0;K<Z.length;K++){let W=Z[K];if(!X.test(W))continue;if(vQ.has(W))continue;Q.push(K),J.push(W)}let G=Function(...J,`
73
+ })()</script>`}var LQ,FQ,VQ,RQ,IQ;var L$=M(()=>{Z0();LQ=["state","derived","effect","batch","untrack","peek","isSignal","isDerived","onMount","onDestroy","useRef","navigate","goBack","goForward","useRoute","setRouteParams","useSearchParams","useQuery","useMutation","useEventListener","useMeta","useDebounce","useDebouncedValue","useThrottle","useInterval","useTimeout","useToggle","useCounter","useClickOutside","useFocus","useAsync","useColorMode","useDark","ref","reactive","computed","watch","watchEffect","watchMultiple","onBeforeMount","onMounted","onBeforeUpdate","onUpdated","onBeforeUnmount","onUnmounted","defineProps","withDefaults","defineEmits","defineExpose","provide","inject","nextTick","getCurrentInstance","onErrorCaptured","useSlots","useAttrs","createStore","defineStore","useStore","action","createSelector","h","Fragment"],FQ=["browserQuery","BrowserQueryBuilder","BrowserQueryError","browserAuth","configureBrowser","getBrowserConfig","createBrowserDb","createBrowserModel","isBrowser"],VQ=new Set(["Promise","Object","Array","Map","Set","Date","Error","JSON","Math","Number","String","RegExp","Symbol","WeakMap","WeakSet","Proxy","Reflect","Intl","URL","URLSearchParams","FormData","Headers","Request","Response","AbortController","EventTarget","Element","Document","Node","Window","Console","Storage","Navigator","Blob","File","FileReader","HTMLElement","SVGElement","Event","CustomEvent","DOMParser","XMLSerializer","WebSocket","Worker","SharedWorker","IntersectionObserver","MutationObserver","ResizeObserver","PerformanceObserver","Notification","Bun","Buffer","Process","Modal","Intl"]);RQ={left:0,middle:1,right:2};IQ=new Set(["if","else","true","false","null","undefined","typeof","instanceof","in","of","new","this","return","void","delete","throw","switch","case","break","continue","for","while","do","try","catch","finally","const","let","var","function","class","import","export","default","async","await","yield","with","debugger","console","window","document","Math","JSON","Date","Array","Object","String","Number","Boolean","Symbol","Map","Set","Promise","Error","parseInt","parseFloat","isNaN","isFinite","encodeURIComponent","decodeURIComponent","setTimeout","setInterval","clearTimeout","clearInterval","fetch","alert","confirm","prompt","event"])});function CQ($){let Z="",Y=null,X=!1;for(let Q=0;Q<$.length;Q++){let J=$[Q];if(X){X=!1;continue}if(J==="\\"&&Y){X=!0;continue}if(Y){if(Y==="`"&&J==="$"&&Q+1<$.length&&$[Q+1]==="{"){let G=1;Q+=2;while(Q<$.length&&G>0){if($[Q]==="{")G++;else if($[Q]==="}")G--;if(G>0)Z+=$[Q],Q++}continue}if(J===Y)Y=null;continue}if(J==='"'||J==="'"||J==="`"){Y=J;continue}Z+=J}return Z}function yQ($,Z){let Y=/[$A-Z_a-z][$\w]*/g,X;while((X=Y.exec($))!==null){let Q=X[0],J=$[X.index-1];if(SQ.has(Q))throw Error(`Potentially unsafe expression (matched /\\b${Q}\\b/; identifier ${Q}): ${Z}`);if(J==="."&&O8.has(Q))throw Error(`Potentially unsafe expression (matched /.${Q}/; property ${Q}): ${Z}`)}}function PQ($){let Z=/\[\s*(['"])(.*?)\1\s*\]/g,Y;while((Y=Z.exec($))!==null){let X=Y[2];if(!O8.has(X))continue;let Q=$.slice(0,Y.index).match(/\S(?=\s*$)/)?.[0],J=$.slice(Y.index+Y[0].length).match(/^\s*(\S)/)?.[1];if(!((Q==="{"||Q===",")&&J===":"))throw Error(`Potentially unsafe expression (bracket key ${Y[2]}): ${$}`)}}function L5($){let Z=$.trim(),Y=CQ(Z);yQ(Y,Z),PQ(Z);for(let X of H8)if(X.test(Y))throw Error(`Potentially unsafe expression (matched /${X.source}/): ${Z}`);if(!j8.allowBracketNotation&&bQ.test(Z))throw Error(`Bracket notation with strings not allowed: ${Z}. Enable with configureSafeEvaluator({ allowBracketNotation: true })`);return Z}function xQ($){let Z={};Z.Math=Math,Z.JSON=JSON,Z.Date=Date,Z.String=String,Z.Number=Number,Z.Boolean=Boolean,Z.Array=Array,Z.parseInt=Number.parseInt,Z.parseFloat=Number.parseFloat,Z.isNaN=Number.isNaN,Z.isFinite=Number.isFinite,Z.encodeURIComponent=encodeURIComponent,Z.decodeURIComponent=decodeURIComponent;for(let[Y,X]of Object.entries($)){if(Y.startsWith("__")||H8.some((Q)=>Q.test(Y)))continue;if(X&&typeof X==="object"&&!Array.isArray(X))Z[Y]=n7(X);else Z[Y]=X}return Z}function n7($,Z=0){if(Z>=j8.maxSanitizeDepth)return"[Object too deep]";if($===null||typeof $!=="object")return $;if(Array.isArray($))return $.map((X)=>n7(X,Z+1));if($ instanceof Date||$ instanceof RegExp||$ instanceof Map||$ instanceof Set||$ instanceof Error)return $;let Y={};for(let[X,Q]of Object.entries($)){if(X.startsWith("__")||X==="constructor"||X==="prototype")continue;if(Q&&typeof Q==="object")Y[X]=n7(Q,Z+1);else Y[X]=Q}return Y}function n($,Z){try{let Y=xQ(Z),X=Object.keys(Y),Q=Object.values(Y);return $0($,X)(...Q)}catch{return}}function e($){try{return L5($),!0}catch{return!1}}function B0($,Z){try{let Y=n($,Z);if(Y&&typeof Y==="object"&&!Array.isArray(Y))return Y;return{}}catch{return{}}}function $0($,Z){let Y=L5($),X=/^[A-Za-z_$][\w$]*$/,Q=[],J=[];for(let K=0;K<Z.length;K++){let W=Z[K];if(!X.test(W))continue;if(vQ.has(W))continue;Q.push(K),J.push(W)}let G=Function(...J,`
74
74
  'use strict';
75
75
  try {
76
76
  return ${Y};
package/dist/process.js CHANGED
@@ -699,7 +699,7 @@ ${K}${O}
699
699
  'use strict';
700
700
  ${X}${Y}
701
701
  ${K}
702
- })()</script>`}var _Y,UY,BY,LY,RY;var P$=b(()=>{H0();_Y=["state","derived","effect","batch","untrack","peek","isSignal","isDerived","onMount","onDestroy","useRef","navigate","goBack","goForward","useRoute","setRouteParams","useSearchParams","useQuery","useMutation","useEventListener","useMeta","useDebounce","useDebouncedValue","useThrottle","useInterval","useTimeout","useToggle","useCounter","useClickOutside","useFocus","useAsync","useColorMode","useDark","ref","reactive","computed","watch","watchEffect","watchMultiple","onBeforeMount","onMounted","onBeforeUpdate","onUpdated","onBeforeUnmount","onUnmounted","defineProps","withDefaults","defineEmits","defineExpose","provide","inject","nextTick","getCurrentInstance","onErrorCaptured","useSlots","useAttrs","createStore","defineStore","useStore","action","createSelector","h","Fragment"],UY=["browserQuery","BrowserQueryBuilder","BrowserQueryError","browserAuth","configureBrowser","getBrowserConfig","createBrowserDb","createBrowserModel","isBrowser"],BY=new Set(["Promise","Object","Array","Map","Set","Date","Error","JSON","Math","Number","String","RegExp","Symbol","WeakMap","WeakSet","Proxy","Reflect","Intl","URL","URLSearchParams","FormData","Headers","Request","Response","AbortController","EventTarget","Element","Document","Node","Window","Console","Storage","Navigator","Blob","File","FileReader","HTMLElement","SVGElement","Event","CustomEvent","DOMParser","XMLSerializer","WebSocket","Worker","SharedWorker","IntersectionObserver","MutationObserver","ResizeObserver","PerformanceObserver","Notification","Bun","Buffer","Process","Modal","Intl"]);LY={left:0,middle:1,right:2};RY=new Set(["if","else","true","false","null","undefined","typeof","instanceof","in","of","new","this","return","void","delete","throw","switch","case","break","continue","for","while","do","try","catch","finally","const","let","var","function","class","import","export","default","async","await","yield","with","debugger","console","window","document","Math","JSON","Date","Array","Object","String","Number","Boolean","Symbol","Map","Set","Promise","Error","parseInt","parseFloat","isNaN","isFinite","encodeURIComponent","decodeURIComponent","setTimeout","setInterval","clearTimeout","clearInterval","fetch","alert","confirm","prompt","event"])});function IY($){let Z="",Y=null,X=!1;for(let Q=0;Q<$.length;Q++){let J=$[Q];if(X){X=!1;continue}if(J==="\\"&&Y){X=!0;continue}if(Y){if(Y==="`"&&J==="$"&&Q+1<$.length&&$[Q+1]==="{"){let G=1;Q+=2;while(Q<$.length&&G>0){if($[Q]==="{")G++;else if($[Q]==="}")G--;if(G>0)Z+=$[Q],Q++}continue}if(J===Y)Y=null;continue}if(J==='"'||J==="'"||J==="`"){Y=J;continue}Z+=J}return Z}function DY($,Z){let Y=/[$A-Z_a-z][$\w]*/g,X;while((X=Y.exec($))!==null){let Q=X[0],J=$[X.index-1];if(TY.has(Q))throw Error(`Potentially unsafe expression (identifier ${Q}): ${Z}`);if(J==="."&&N7.has(Q))throw Error(`Potentially unsafe expression (property ${Q}): ${Z}`)}}function EY($){let Z=/\[\s*(['"])(.*?)\1\s*\]/g,Y;while((Y=Z.exec($))!==null){let X=Y[2];if(!N7.has(X))continue;let Q=$.slice(0,Y.index).match(/\S(?=\s*$)/)?.[0],J=$.slice(Y.index+Y[0].length).match(/^\s*(\S)/)?.[1];if(!((Q==="{"||Q===",")&&J===":"))throw Error(`Potentially unsafe expression (bracket key ${Y[2]}): ${$}`)}}function B5($){let Z=$.trim(),Y=IY(Z);DY(Y,Z),EY(Z);for(let X of A7)if(X.test(Y))throw Error(`Potentially unsafe expression (matched /${X.source}/): ${Z}`);if(!R7.allowBracketNotation&&MY.test(Z))throw Error(`Bracket notation with strings not allowed: ${Z}. Enable with configureSafeEvaluator({ allowBracketNotation: true })`);return Z}function kY($){let Z={};Z.Math=Math,Z.JSON=JSON,Z.Date=Date,Z.String=String,Z.Number=Number,Z.Boolean=Boolean,Z.Array=Array,Z.parseInt=Number.parseInt,Z.parseFloat=Number.parseFloat,Z.isNaN=Number.isNaN,Z.isFinite=Number.isFinite,Z.encodeURIComponent=encodeURIComponent,Z.decodeURIComponent=decodeURIComponent;for(let[Y,X]of Object.entries($)){if(Y.startsWith("__")||A7.some((Q)=>Q.test(Y)))continue;if(X&&typeof X==="object"&&!Array.isArray(X))Z[Y]=v$(X);else Z[Y]=X}return Z}function v$($,Z=0){if(Z>=R7.maxSanitizeDepth)return"[Object too deep]";if($===null||typeof $!=="object")return $;if(Array.isArray($))return $.map((X)=>v$(X,Z+1));if($ instanceof Date||$ instanceof RegExp||$ instanceof Map||$ instanceof Set||$ instanceof Error)return $;let Y={};for(let[X,Q]of Object.entries($)){if(X.startsWith("__")||X==="constructor"||X==="prototype")continue;if(Q&&typeof Q==="object")Y[X]=v$(Q,Z+1);else Y[X]=Q}return Y}function i($,Z){try{let Y=kY(Z),X=Object.keys(Y),Q=Object.values(Y);return $0($,X)(...Q)}catch{return}}function e($){try{return B5($),!0}catch{return!1}}function _0($,Z){try{let Y=i($,Z);if(Y&&typeof Y==="object"&&!Array.isArray(Y))return Y;return{}}catch{return{}}}function $0($,Z){let Y=B5($),X=/^[A-Za-z_$][\w$]*$/,Q=[],J=[];for(let K=0;K<Z.length;K++){let q=Z[K];if(!X.test(q))continue;if(SY.has(q))continue;Q.push(K),J.push(q)}let G=Function(...J,`
702
+ })()</script>`}var _Y,UY,BY,LY,RY;var P$=b(()=>{H0();_Y=["state","derived","effect","batch","untrack","peek","isSignal","isDerived","onMount","onDestroy","useRef","navigate","goBack","goForward","useRoute","setRouteParams","useSearchParams","useQuery","useMutation","useEventListener","useMeta","useDebounce","useDebouncedValue","useThrottle","useInterval","useTimeout","useToggle","useCounter","useClickOutside","useFocus","useAsync","useColorMode","useDark","ref","reactive","computed","watch","watchEffect","watchMultiple","onBeforeMount","onMounted","onBeforeUpdate","onUpdated","onBeforeUnmount","onUnmounted","defineProps","withDefaults","defineEmits","defineExpose","provide","inject","nextTick","getCurrentInstance","onErrorCaptured","useSlots","useAttrs","createStore","defineStore","useStore","action","createSelector","h","Fragment"],UY=["browserQuery","BrowserQueryBuilder","BrowserQueryError","browserAuth","configureBrowser","getBrowserConfig","createBrowserDb","createBrowserModel","isBrowser"],BY=new Set(["Promise","Object","Array","Map","Set","Date","Error","JSON","Math","Number","String","RegExp","Symbol","WeakMap","WeakSet","Proxy","Reflect","Intl","URL","URLSearchParams","FormData","Headers","Request","Response","AbortController","EventTarget","Element","Document","Node","Window","Console","Storage","Navigator","Blob","File","FileReader","HTMLElement","SVGElement","Event","CustomEvent","DOMParser","XMLSerializer","WebSocket","Worker","SharedWorker","IntersectionObserver","MutationObserver","ResizeObserver","PerformanceObserver","Notification","Bun","Buffer","Process","Modal","Intl"]);LY={left:0,middle:1,right:2};RY=new Set(["if","else","true","false","null","undefined","typeof","instanceof","in","of","new","this","return","void","delete","throw","switch","case","break","continue","for","while","do","try","catch","finally","const","let","var","function","class","import","export","default","async","await","yield","with","debugger","console","window","document","Math","JSON","Date","Array","Object","String","Number","Boolean","Symbol","Map","Set","Promise","Error","parseInt","parseFloat","isNaN","isFinite","encodeURIComponent","decodeURIComponent","setTimeout","setInterval","clearTimeout","clearInterval","fetch","alert","confirm","prompt","event"])});function IY($){let Z="",Y=null,X=!1;for(let Q=0;Q<$.length;Q++){let J=$[Q];if(X){X=!1;continue}if(J==="\\"&&Y){X=!0;continue}if(Y){if(Y==="`"&&J==="$"&&Q+1<$.length&&$[Q+1]==="{"){let G=1;Q+=2;while(Q<$.length&&G>0){if($[Q]==="{")G++;else if($[Q]==="}")G--;if(G>0)Z+=$[Q],Q++}continue}if(J===Y)Y=null;continue}if(J==='"'||J==="'"||J==="`"){Y=J;continue}Z+=J}return Z}function DY($,Z){let Y=/[$A-Z_a-z][$\w]*/g,X;while((X=Y.exec($))!==null){let Q=X[0],J=$[X.index-1];if(TY.has(Q))throw Error(`Potentially unsafe expression (matched /\\b${Q}\\b/; identifier ${Q}): ${Z}`);if(J==="."&&N7.has(Q))throw Error(`Potentially unsafe expression (matched /.${Q}/; property ${Q}): ${Z}`)}}function EY($){let Z=/\[\s*(['"])(.*?)\1\s*\]/g,Y;while((Y=Z.exec($))!==null){let X=Y[2];if(!N7.has(X))continue;let Q=$.slice(0,Y.index).match(/\S(?=\s*$)/)?.[0],J=$.slice(Y.index+Y[0].length).match(/^\s*(\S)/)?.[1];if(!((Q==="{"||Q===",")&&J===":"))throw Error(`Potentially unsafe expression (bracket key ${Y[2]}): ${$}`)}}function B5($){let Z=$.trim(),Y=IY(Z);DY(Y,Z),EY(Z);for(let X of A7)if(X.test(Y))throw Error(`Potentially unsafe expression (matched /${X.source}/): ${Z}`);if(!R7.allowBracketNotation&&MY.test(Z))throw Error(`Bracket notation with strings not allowed: ${Z}. Enable with configureSafeEvaluator({ allowBracketNotation: true })`);return Z}function kY($){let Z={};Z.Math=Math,Z.JSON=JSON,Z.Date=Date,Z.String=String,Z.Number=Number,Z.Boolean=Boolean,Z.Array=Array,Z.parseInt=Number.parseInt,Z.parseFloat=Number.parseFloat,Z.isNaN=Number.isNaN,Z.isFinite=Number.isFinite,Z.encodeURIComponent=encodeURIComponent,Z.decodeURIComponent=decodeURIComponent;for(let[Y,X]of Object.entries($)){if(Y.startsWith("__")||A7.some((Q)=>Q.test(Y)))continue;if(X&&typeof X==="object"&&!Array.isArray(X))Z[Y]=v$(X);else Z[Y]=X}return Z}function v$($,Z=0){if(Z>=R7.maxSanitizeDepth)return"[Object too deep]";if($===null||typeof $!=="object")return $;if(Array.isArray($))return $.map((X)=>v$(X,Z+1));if($ instanceof Date||$ instanceof RegExp||$ instanceof Map||$ instanceof Set||$ instanceof Error)return $;let Y={};for(let[X,Q]of Object.entries($)){if(X.startsWith("__")||X==="constructor"||X==="prototype")continue;if(Q&&typeof Q==="object")Y[X]=v$(Q,Z+1);else Y[X]=Q}return Y}function i($,Z){try{let Y=kY(Z),X=Object.keys(Y),Q=Object.values(Y);return $0($,X)(...Q)}catch{return}}function e($){try{return B5($),!0}catch{return!1}}function _0($,Z){try{let Y=i($,Z);if(Y&&typeof Y==="object"&&!Array.isArray(Y))return Y;return{}}catch{return{}}}function $0($,Z){let Y=B5($),X=/^[A-Za-z_$][\w$]*$/,Q=[],J=[];for(let K=0;K<Z.length;K++){let q=Z[K];if(!X.test(q))continue;if(SY.has(q))continue;Q.push(K),J.push(q)}let G=Function(...J,`
703
703
  'use strict';
704
704
  try {
705
705
  return ${Y};