prisma 6.4.0-dev.1 → 6.4.0-dev.3

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.
@@ -1,4 +1,4 @@
1
- "use strict";var lu=Object.create;var Fr=Object.defineProperty;var uu=Object.getOwnPropertyDescriptor;var cu=Object.getOwnPropertyNames;var pu=Object.getPrototypeOf,du=Object.prototype.hasOwnProperty;var Z=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ut=(e,t)=>{for(var r in t)Fr(e,r,{get:t[r],enumerable:!0})},vo=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of cu(t))!du.call(e,i)&&i!==r&&Fr(e,i,{get:()=>t[i],enumerable:!(n=uu(t,i))||n.enumerable});return e};var _=(e,t,r)=>(r=e!=null?lu(pu(e)):{},vo(t||!e||!e.__esModule?Fr(r,"default",{value:e,enumerable:!0}):r,e)),mu=e=>vo(Fr({},"__esModule",{value:!0}),e);var Wo=Z((vf,ni)=>{"use strict";var P=ni.exports;ni.exports.default=P;var D="\x1B[",Ht="\x1B]",mt="\x07",Jr=";",Jo=process.env.TERM_PROGRAM==="Apple_Terminal";P.cursorTo=(e,t)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");return typeof t!="number"?D+(e+1)+"G":D+(t+1)+";"+(e+1)+"H"};P.cursorMove=(e,t)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");let r="";return e<0?r+=D+-e+"D":e>0&&(r+=D+e+"C"),t<0?r+=D+-t+"A":t>0&&(r+=D+t+"B"),r};P.cursorUp=(e=1)=>D+e+"A";P.cursorDown=(e=1)=>D+e+"B";P.cursorForward=(e=1)=>D+e+"C";P.cursorBackward=(e=1)=>D+e+"D";P.cursorLeft=D+"G";P.cursorSavePosition=Jo?"\x1B7":D+"s";P.cursorRestorePosition=Jo?"\x1B8":D+"u";P.cursorGetPosition=D+"6n";P.cursorNextLine=D+"E";P.cursorPrevLine=D+"F";P.cursorHide=D+"?25l";P.cursorShow=D+"?25h";P.eraseLines=e=>{let t="";for(let r=0;r<e;r++)t+=P.eraseLine+(r<e-1?P.cursorUp():"");return e&&(t+=P.cursorLeft),t};P.eraseEndLine=D+"K";P.eraseStartLine=D+"1K";P.eraseLine=D+"2K";P.eraseDown=D+"J";P.eraseUp=D+"1J";P.eraseScreen=D+"2J";P.scrollUp=D+"S";P.scrollDown=D+"T";P.clearScreen="\x1Bc";P.clearTerminal=process.platform==="win32"?`${P.eraseScreen}${D}0f`:`${P.eraseScreen}${D}3J${D}H`;P.beep=mt;P.link=(e,t)=>[Ht,"8",Jr,Jr,t,mt,e,Ht,"8",Jr,Jr,mt].join("");P.image=(e,t={})=>{let r=`${Ht}1337;File=inline=1`;return t.width&&(r+=`;width=${t.width}`),t.height&&(r+=`;height=${t.height}`),t.preserveAspectRatio===!1&&(r+=";preserveAspectRatio=0"),r+":"+e.toString("base64")+mt};P.iTerm={setCwd:(e=process.cwd())=>`${Ht}50;CurrentDir=${e}${mt}`,annotation:(e,t={})=>{let r=`${Ht}1337;`,n=typeof t.x<"u",i=typeof t.y<"u";if((n||i)&&!(n&&i&&typeof t.length<"u"))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");return e=e.replace(/\|/g,""),r+=t.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",t.length>0?r+=(n?[e,t.length,t.x,t.y]:[t.length,e]).join("|"):r+=e,r+mt}}});var ii=Z((Tf,Ho)=>{"use strict";Ho.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}});var zo=Z((Rf,Yo)=>{"use strict";var Zu=require("os"),Ko=require("tty"),fe=ii(),{env:J}=process,Je;fe("no-color")||fe("no-colors")||fe("color=false")||fe("color=never")?Je=0:(fe("color")||fe("colors")||fe("color=true")||fe("color=always"))&&(Je=1);"FORCE_COLOR"in J&&(J.FORCE_COLOR==="true"?Je=1:J.FORCE_COLOR==="false"?Je=0:Je=J.FORCE_COLOR.length===0?1:Math.min(parseInt(J.FORCE_COLOR,10),3));function oi(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function si(e,t){if(Je===0)return 0;if(fe("color=16m")||fe("color=full")||fe("color=truecolor"))return 3;if(fe("color=256"))return 2;if(e&&!t&&Je===void 0)return 0;let r=Je||0;if(J.TERM==="dumb")return r;if(process.platform==="win32"){let n=Zu.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in J)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in J)||J.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in J)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(J.TEAMCITY_VERSION)?1:0;if(J.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in J){let n=parseInt((J.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(J.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(J.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(J.TERM)||"COLORTERM"in J?1:r}function Xu(e){let t=si(e,e&&e.isTTY);return oi(t)}Yo.exports={supportsColor:Xu,stdout:oi(si(!0,Ko.isatty(1))),stderr:oi(si(!0,Ko.isatty(2)))}});var es=Z((Cf,Xo)=>{"use strict";var ec=zo(),ft=ii();function Zo(e){if(/^\d{3,4}$/.test(e)){let r=/(\d{1,2})(\d{2})/.exec(e);return{major:0,minor:parseInt(r[1],10),patch:parseInt(r[2],10)}}let t=(e||"").split(".").map(r=>parseInt(r,10));return{major:t[0],minor:t[1],patch:t[2]}}function ai(e){let{env:t}=process;if("FORCE_HYPERLINK"in t)return!(t.FORCE_HYPERLINK.length>0&&parseInt(t.FORCE_HYPERLINK,10)===0);if(ft("no-hyperlink")||ft("no-hyperlinks")||ft("hyperlink=false")||ft("hyperlink=never"))return!1;if(ft("hyperlink=true")||ft("hyperlink=always")||"NETLIFY"in t)return!0;if(!ec.supportsColor(e)||e&&!e.isTTY||process.platform==="win32"||"CI"in t||"TEAMCITY_VERSION"in t)return!1;if("TERM_PROGRAM"in t){let r=Zo(t.TERM_PROGRAM_VERSION);switch(t.TERM_PROGRAM){case"iTerm.app":return r.major===3?r.minor>=1:r.major>3;case"WezTerm":return r.major>=20200620;case"vscode":return r.major>1||r.major===1&&r.minor>=72}}if("VTE_VERSION"in t){if(t.VTE_VERSION==="0.50.0")return!1;let r=Zo(t.VTE_VERSION);return r.major>0||r.minor>=50}return!1}Xo.exports={supportsHyperlink:ai,stdout:ai(process.stdout),stderr:ai(process.stderr)}});var rs=Z((Sf,Kt)=>{"use strict";var tc=Wo(),li=es(),ts=(e,t,{target:r="stdout",...n}={})=>li[r]?tc.link(e,t):n.fallback===!1?e:typeof n.fallback=="function"?n.fallback(e,t):`${e} (\u200B${t}\u200B)`;Kt.exports=(e,t,r={})=>ts(e,t,r);Kt.exports.stderr=(e,t,r={})=>ts(e,t,{target:"stderr",...r});Kt.exports.isSupported=li.stdout;Kt.exports.stderr.isSupported=li.stderr});var ci=Z((Mf,rc)=>{rc.exports={name:"@prisma/engines-version",version:"6.3.0-17.acc0b9dd43eb689cbd20c9470515d719db10d0b0",main:"index.js",types:"index.d.ts",license:"Apache-2.0",author:"Tim Suchanek <suchanek@prisma.io>",prisma:{enginesVersion:"acc0b9dd43eb689cbd20c9470515d719db10d0b0"},repository:{type:"git",url:"https://github.com/prisma/engines-wrapper.git",directory:"packages/engines-version"},devDependencies:{"@types/node":"18.19.68",typescript:"4.9.5"},files:["index.js","index.d.ts"],scripts:{build:"tsc -d"}}});var pi=Z(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});Wr.enginesVersion=void 0;Wr.enginesVersion=ci().prisma.enginesVersion});var ss=Z((rg,oc)=>{oc.exports={name:"dotenv",version:"16.4.7",description:"Loads environment variables from .env file",main:"lib/main.js",types:"lib/main.d.ts",exports:{".":{types:"./lib/main.d.ts",require:"./lib/main.js",default:"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},scripts:{"dts-check":"tsc --project tests/types/tsconfig.json",lint:"standard",pretest:"npm run lint && npm run dts-check",test:"tap run --allow-empty-coverage --disable-coverage --timeout=60000","test:coverage":"tap run --show-full-coverage --timeout=60000 --coverage-report=lcov",prerelease:"npm test",release:"standard-version"},repository:{type:"git",url:"git://github.com/motdotla/dotenv.git"},funding:"https://dotenvx.com",keywords:["dotenv","env",".env","environment","variables","config","settings"],readmeFilename:"README.md",license:"BSD-2-Clause",devDependencies:{"@types/node":"^18.11.3",decache:"^4.6.2",sinon:"^14.0.1",standard:"^17.0.0","standard-version":"^9.5.0",tap:"^19.2.0",typescript:"^4.8.4"},engines:{node:">=12"},browser:{fs:!1}}});var cs=Z((ng,Le)=>{"use strict";var gi=require("fs"),hi=require("path"),sc=require("os"),ac=require("crypto"),lc=ss(),yi=lc.version,uc=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function cc(e){let t={},r=e.toString();r=r.replace(/\r\n?/mg,`
1
+ "use strict";var lu=Object.create;var Fr=Object.defineProperty;var uu=Object.getOwnPropertyDescriptor;var cu=Object.getOwnPropertyNames;var pu=Object.getPrototypeOf,du=Object.prototype.hasOwnProperty;var Z=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ut=(e,t)=>{for(var r in t)Fr(e,r,{get:t[r],enumerable:!0})},vo=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of cu(t))!du.call(e,i)&&i!==r&&Fr(e,i,{get:()=>t[i],enumerable:!(n=uu(t,i))||n.enumerable});return e};var _=(e,t,r)=>(r=e!=null?lu(pu(e)):{},vo(t||!e||!e.__esModule?Fr(r,"default",{value:e,enumerable:!0}):r,e)),mu=e=>vo(Fr({},"__esModule",{value:!0}),e);var Wo=Z((vf,ni)=>{"use strict";var P=ni.exports;ni.exports.default=P;var D="\x1B[",Ht="\x1B]",mt="\x07",Jr=";",Jo=process.env.TERM_PROGRAM==="Apple_Terminal";P.cursorTo=(e,t)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");return typeof t!="number"?D+(e+1)+"G":D+(t+1)+";"+(e+1)+"H"};P.cursorMove=(e,t)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");let r="";return e<0?r+=D+-e+"D":e>0&&(r+=D+e+"C"),t<0?r+=D+-t+"A":t>0&&(r+=D+t+"B"),r};P.cursorUp=(e=1)=>D+e+"A";P.cursorDown=(e=1)=>D+e+"B";P.cursorForward=(e=1)=>D+e+"C";P.cursorBackward=(e=1)=>D+e+"D";P.cursorLeft=D+"G";P.cursorSavePosition=Jo?"\x1B7":D+"s";P.cursorRestorePosition=Jo?"\x1B8":D+"u";P.cursorGetPosition=D+"6n";P.cursorNextLine=D+"E";P.cursorPrevLine=D+"F";P.cursorHide=D+"?25l";P.cursorShow=D+"?25h";P.eraseLines=e=>{let t="";for(let r=0;r<e;r++)t+=P.eraseLine+(r<e-1?P.cursorUp():"");return e&&(t+=P.cursorLeft),t};P.eraseEndLine=D+"K";P.eraseStartLine=D+"1K";P.eraseLine=D+"2K";P.eraseDown=D+"J";P.eraseUp=D+"1J";P.eraseScreen=D+"2J";P.scrollUp=D+"S";P.scrollDown=D+"T";P.clearScreen="\x1Bc";P.clearTerminal=process.platform==="win32"?`${P.eraseScreen}${D}0f`:`${P.eraseScreen}${D}3J${D}H`;P.beep=mt;P.link=(e,t)=>[Ht,"8",Jr,Jr,t,mt,e,Ht,"8",Jr,Jr,mt].join("");P.image=(e,t={})=>{let r=`${Ht}1337;File=inline=1`;return t.width&&(r+=`;width=${t.width}`),t.height&&(r+=`;height=${t.height}`),t.preserveAspectRatio===!1&&(r+=";preserveAspectRatio=0"),r+":"+e.toString("base64")+mt};P.iTerm={setCwd:(e=process.cwd())=>`${Ht}50;CurrentDir=${e}${mt}`,annotation:(e,t={})=>{let r=`${Ht}1337;`,n=typeof t.x<"u",i=typeof t.y<"u";if((n||i)&&!(n&&i&&typeof t.length<"u"))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");return e=e.replace(/\|/g,""),r+=t.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",t.length>0?r+=(n?[e,t.length,t.x,t.y]:[t.length,e]).join("|"):r+=e,r+mt}}});var ii=Z((Tf,Ho)=>{"use strict";Ho.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}});var zo=Z((Rf,Yo)=>{"use strict";var Zu=require("os"),Ko=require("tty"),fe=ii(),{env:J}=process,Je;fe("no-color")||fe("no-colors")||fe("color=false")||fe("color=never")?Je=0:(fe("color")||fe("colors")||fe("color=true")||fe("color=always"))&&(Je=1);"FORCE_COLOR"in J&&(J.FORCE_COLOR==="true"?Je=1:J.FORCE_COLOR==="false"?Je=0:Je=J.FORCE_COLOR.length===0?1:Math.min(parseInt(J.FORCE_COLOR,10),3));function oi(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function si(e,t){if(Je===0)return 0;if(fe("color=16m")||fe("color=full")||fe("color=truecolor"))return 3;if(fe("color=256"))return 2;if(e&&!t&&Je===void 0)return 0;let r=Je||0;if(J.TERM==="dumb")return r;if(process.platform==="win32"){let n=Zu.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in J)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in J)||J.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in J)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(J.TEAMCITY_VERSION)?1:0;if(J.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in J){let n=parseInt((J.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(J.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(J.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(J.TERM)||"COLORTERM"in J?1:r}function Xu(e){let t=si(e,e&&e.isTTY);return oi(t)}Yo.exports={supportsColor:Xu,stdout:oi(si(!0,Ko.isatty(1))),stderr:oi(si(!0,Ko.isatty(2)))}});var es=Z((Cf,Xo)=>{"use strict";var ec=zo(),ft=ii();function Zo(e){if(/^\d{3,4}$/.test(e)){let r=/(\d{1,2})(\d{2})/.exec(e);return{major:0,minor:parseInt(r[1],10),patch:parseInt(r[2],10)}}let t=(e||"").split(".").map(r=>parseInt(r,10));return{major:t[0],minor:t[1],patch:t[2]}}function ai(e){let{env:t}=process;if("FORCE_HYPERLINK"in t)return!(t.FORCE_HYPERLINK.length>0&&parseInt(t.FORCE_HYPERLINK,10)===0);if(ft("no-hyperlink")||ft("no-hyperlinks")||ft("hyperlink=false")||ft("hyperlink=never"))return!1;if(ft("hyperlink=true")||ft("hyperlink=always")||"NETLIFY"in t)return!0;if(!ec.supportsColor(e)||e&&!e.isTTY||process.platform==="win32"||"CI"in t||"TEAMCITY_VERSION"in t)return!1;if("TERM_PROGRAM"in t){let r=Zo(t.TERM_PROGRAM_VERSION);switch(t.TERM_PROGRAM){case"iTerm.app":return r.major===3?r.minor>=1:r.major>3;case"WezTerm":return r.major>=20200620;case"vscode":return r.major>1||r.major===1&&r.minor>=72}}if("VTE_VERSION"in t){if(t.VTE_VERSION==="0.50.0")return!1;let r=Zo(t.VTE_VERSION);return r.major>0||r.minor>=50}return!1}Xo.exports={supportsHyperlink:ai,stdout:ai(process.stdout),stderr:ai(process.stderr)}});var rs=Z((Sf,Kt)=>{"use strict";var tc=Wo(),li=es(),ts=(e,t,{target:r="stdout",...n}={})=>li[r]?tc.link(e,t):n.fallback===!1?e:typeof n.fallback=="function"?n.fallback(e,t):`${e} (\u200B${t}\u200B)`;Kt.exports=(e,t,r={})=>ts(e,t,r);Kt.exports.stderr=(e,t,r={})=>ts(e,t,{target:"stderr",...r});Kt.exports.isSupported=li.stdout;Kt.exports.stderr.isSupported=li.stderr});var ci=Z((Mf,rc)=>{rc.exports={name:"@prisma/engines-version",version:"6.4.0-2.4767cae5af70f60ad05e14222e663255fc63a65e",main:"index.js",types:"index.d.ts",license:"Apache-2.0",author:"Tim Suchanek <suchanek@prisma.io>",prisma:{enginesVersion:"4767cae5af70f60ad05e14222e663255fc63a65e"},repository:{type:"git",url:"https://github.com/prisma/engines-wrapper.git",directory:"packages/engines-version"},devDependencies:{"@types/node":"18.19.68",typescript:"4.9.5"},files:["index.js","index.d.ts"],scripts:{build:"tsc -d"}}});var pi=Z(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});Wr.enginesVersion=void 0;Wr.enginesVersion=ci().prisma.enginesVersion});var ss=Z((rg,oc)=>{oc.exports={name:"dotenv",version:"16.4.7",description:"Loads environment variables from .env file",main:"lib/main.js",types:"lib/main.d.ts",exports:{".":{types:"./lib/main.d.ts",require:"./lib/main.js",default:"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},scripts:{"dts-check":"tsc --project tests/types/tsconfig.json",lint:"standard",pretest:"npm run lint && npm run dts-check",test:"tap run --allow-empty-coverage --disable-coverage --timeout=60000","test:coverage":"tap run --show-full-coverage --timeout=60000 --coverage-report=lcov",prerelease:"npm test",release:"standard-version"},repository:{type:"git",url:"git://github.com/motdotla/dotenv.git"},funding:"https://dotenvx.com",keywords:["dotenv","env",".env","environment","variables","config","settings"],readmeFilename:"README.md",license:"BSD-2-Clause",devDependencies:{"@types/node":"^18.11.3",decache:"^4.6.2",sinon:"^14.0.1",standard:"^17.0.0","standard-version":"^9.5.0",tap:"^19.2.0",typescript:"^4.8.4"},engines:{node:">=12"},browser:{fs:!1}}});var cs=Z((ng,Le)=>{"use strict";var gi=require("fs"),hi=require("path"),sc=require("os"),ac=require("crypto"),lc=ss(),yi=lc.version,uc=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function cc(e){let t={},r=e.toString();r=r.replace(/\r\n?/mg,`
2
2
  `);let n;for(;(n=uc.exec(r))!=null;){let i=n[1],o=n[2]||"";o=o.trim();let s=o[0];o=o.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),s==='"'&&(o=o.replace(/\\n/g,`
3
3
  `),o=o.replace(/\\r/g,"\r")),t[i]=o}return t}function pc(e){let t=us(e),r=Q.configDotenv({path:t});if(!r.parsed){let s=new Error(`MISSING_DATA: Cannot parse ${t} for an unknown reason`);throw s.code="MISSING_DATA",s}let n=ls(e).split(","),i=n.length,o;for(let s=0;s<i;s++)try{let a=n[s].trim(),l=fc(r,a);o=Q.decrypt(l.ciphertext,l.key);break}catch(a){if(s+1>=i)throw a}return Q.parse(o)}function dc(e){console.log(`[dotenv@${yi}][INFO] ${e}`)}function mc(e){console.log(`[dotenv@${yi}][WARN] ${e}`)}function Hr(e){console.log(`[dotenv@${yi}][DEBUG] ${e}`)}function ls(e){return e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0?e.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}function fc(e,t){let r;try{r=new URL(t)}catch(a){if(a.code==="ERR_INVALID_URL"){let l=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");throw l.code="INVALID_DOTENV_KEY",l}throw a}let n=r.password;if(!n){let a=new Error("INVALID_DOTENV_KEY: Missing key part");throw a.code="INVALID_DOTENV_KEY",a}let i=r.searchParams.get("environment");if(!i){let a=new Error("INVALID_DOTENV_KEY: Missing environment part");throw a.code="INVALID_DOTENV_KEY",a}let o=`DOTENV_VAULT_${i.toUpperCase()}`,s=e.parsed[o];if(!s){let a=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${o} in your .env.vault file.`);throw a.code="NOT_FOUND_DOTENV_ENVIRONMENT",a}return{ciphertext:s,key:n}}function us(e){let t=null;if(e&&e.path&&e.path.length>0)if(Array.isArray(e.path))for(let r of e.path)gi.existsSync(r)&&(t=r.endsWith(".vault")?r:`${r}.vault`);else t=e.path.endsWith(".vault")?e.path:`${e.path}.vault`;else t=hi.resolve(process.cwd(),".env.vault");return gi.existsSync(t)?t:null}function as(e){return e[0]==="~"?hi.join(sc.homedir(),e.slice(1)):e}function gc(e){dc("Loading env from encrypted .env.vault");let t=Q._parseVault(e),r=process.env;return e&&e.processEnv!=null&&(r=e.processEnv),Q.populate(r,t,e),{parsed:t}}function hc(e){let t=hi.resolve(process.cwd(),".env"),r="utf8",n=!!(e&&e.debug);e&&e.encoding?r=e.encoding:n&&Hr("No encoding is specified. UTF-8 is used by default");let i=[t];if(e&&e.path)if(!Array.isArray(e.path))i=[as(e.path)];else{i=[];for(let l of e.path)i.push(as(l))}let o,s={};for(let l of i)try{let u=Q.parse(gi.readFileSync(l,{encoding:r}));Q.populate(s,u,e)}catch(u){n&&Hr(`Failed to load ${l} ${u.message}`),o=u}let a=process.env;return e&&e.processEnv!=null&&(a=e.processEnv),Q.populate(a,s,e),o?{parsed:s,error:o}:{parsed:s}}function yc(e){if(ls(e).length===0)return Q.configDotenv(e);let t=us(e);return t?Q._configVault(e):(mc(`You set DOTENV_KEY but you are missing a .env.vault file at ${t}. Did you forget to build it?`),Q.configDotenv(e))}function Ec(e,t){let r=Buffer.from(t.slice(-64),"hex"),n=Buffer.from(e,"base64"),i=n.subarray(0,12),o=n.subarray(-16);n=n.subarray(12,-16);try{let s=ac.createDecipheriv("aes-256-gcm",r,i);return s.setAuthTag(o),`${s.update(n)}${s.final()}`}catch(s){let a=s instanceof RangeError,l=s.message==="Invalid key length",u=s.message==="Unsupported state or unable to authenticate data";if(a||l){let c=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw c.code="INVALID_DOTENV_KEY",c}else if(u){let c=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw c.code="DECRYPTION_FAILED",c}else throw s}}function bc(e,t,r={}){let n=!!(r&&r.debug),i=!!(r&&r.override);if(typeof t!="object"){let o=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw o.code="OBJECT_REQUIRED",o}for(let o of Object.keys(t))Object.prototype.hasOwnProperty.call(e,o)?(i===!0&&(e[o]=t[o]),n&&Hr(i===!0?`"${o}" is already defined and WAS overwritten`:`"${o}" is already defined and was NOT overwritten`)):e[o]=t[o]}var Q={configDotenv:hc,_configVault:gc,_parseVault:pc,config:yc,decrypt:Ec,parse:cc,populate:bc};Le.exports.configDotenv=Q.configDotenv;Le.exports._configVault=Q._configVault;Le.exports._parseVault=Q._parseVault;Le.exports.config=Q.config;Le.exports.decrypt=Q.decrypt;Le.exports.parse=Q.parse;Le.exports.populate=Q.populate;Le.exports=Q});var hs=Z((cg,gs)=>{"use strict";gs.exports=e=>{let t=e.match(/^[ \t]*(?=\S)/gm);return t?t.reduce((r,n)=>Math.min(r,n.length),1/0):0}});var Es=Z((pg,ys)=>{"use strict";var vc=hs();ys.exports=e=>{let t=vc(e);if(t===0)return e;let r=new RegExp(`^[ \\t]{${t}}`,"gm");return e.replace(r,"")}});var Pi=Z((Eg,ws)=>{"use strict";ws.exports=(e,t=1,r)=>{if(r={indent:" ",includeEmptyLines:!1,...r},typeof e!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof t!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(typeof r.indent!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof r.indent}\``);if(t===0)return e;let n=r.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(n,r.indent.repeat(t))}});var Ts=Z((xg,vs)=>{"use strict";vs.exports=({onlyFirst:e=!1}={})=>{let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}});var Ci=Z((Pg,Rs)=>{"use strict";var kc=Ts();Rs.exports=e=>typeof e=="string"?e.replace(kc(),""):e});var Cs=Z((Rg,Zr)=>{"use strict";Zr.exports=(e={})=>{let t;if(e.repoUrl)t=e.repoUrl;else if(e.user&&e.repo)t=`https://github.com/${e.user}/${e.repo}`;else throw new Error("You need to specify either the `repoUrl` option or both the `user` and `repo` options");let r=new URL(`${t}/issues/new`),n=["body","title","labels","template","milestone","assignee","projects"];for(let i of n){let o=e[i];if(o!==void 0){if(i==="labels"||i==="projects"){if(!Array.isArray(o))throw new TypeError(`The \`${i}\` option should be an array`);o=o.join(",")}r.searchParams.set(i,o)}}return r.toString()};Zr.exports.default=Zr.exports});var Fi=Z((Lh,Hs)=>{"use strict";Hs.exports=function(){function e(t,r,n,i,o){return t<r||n<r?t>n?n+1:t+1:i===o?r:r+1}return function(t,r){if(t===r)return 0;if(t.length>r.length){var n=t;t=r,r=n}for(var i=t.length,o=r.length;i>0&&t.charCodeAt(i-1)===r.charCodeAt(o-1);)i--,o--;for(var s=0;s<i&&t.charCodeAt(s)===r.charCodeAt(s);)s++;if(i-=s,o-=s,i===0||o<3)return o;var a=0,l,u,c,p,d,f,g,h,O,v,C,R,k=[];for(l=0;l<i;l++)k.push(l+1),k.push(t.charCodeAt(s+l));for(var A=k.length-1;a<o-3;)for(O=r.charCodeAt(s+(u=a)),v=r.charCodeAt(s+(c=a+1)),C=r.charCodeAt(s+(p=a+2)),R=r.charCodeAt(s+(d=a+3)),f=a+=4,l=0;l<A;l+=2)g=k[l],h=k[l+1],u=e(g,u,c,O,h),c=e(u,c,p,v,h),p=e(c,p,d,C,h),f=e(p,d,f,R,h),k[l]=f,d=p,p=c,c=u,u=g;for(;a<o;)for(O=r.charCodeAt(s+(u=a)),f=++a,l=0;l<A;l+=2)g=k[l],k[l]=f=e(g,u,f,O,k[l+1]),u=g;return f}}()});var Hm={};Ut(Hm,{Debug:()=>Hn,Decimal:()=>Pe,Extensions:()=>Qn,MetricsClient:()=>kt,PrismaClientInitializationError:()=>T,PrismaClientKnownRequestError:()=>ee,PrismaClientRustPanicError:()=>ce,PrismaClientUnknownRequestError:()=>B,PrismaClientValidationError:()=>te,Public:()=>Gn,Sql:()=>ae,createParam:()=>ga,defineDmmfProperty:()=>xa,deserializeJsonResponse:()=>wt,deserializeRawResult:()=>jn,dmmfToRuntimeDataModel:()=>wa,empty:()=>Ra,getPrismaClient:()=>ou,getRuntime:()=>kn,join:()=>Ta,makeStrictEnum:()=>su,makeTypedQueryFactory:()=>Pa,objectEnumValues:()=>En,raw:()=>Hi,serializeJsonQuery:()=>Rn,skip:()=>Tn,sqltag:()=>Ki,warnEnvConflicts:()=>au,warnOnce:()=>tr});module.exports=mu(Hm);var Qn={};Ut(Qn,{defineExtension:()=>To,getExtensionContext:()=>Ro});function To(e){return typeof e=="function"?e:t=>t.$extends(e)}function Ro(e){return e}var Gn={};Ut(Gn,{validator:()=>Co});function Co(...e){return t=>t}var Mr={};Ut(Mr,{$:()=>ko,bgBlack:()=>vu,bgBlue:()=>Su,bgCyan:()=>Iu,bgGreen:()=>Ru,bgMagenta:()=>Au,bgRed:()=>Tu,bgWhite:()=>Ou,bgYellow:()=>Cu,black:()=>bu,blue:()=>rt,bold:()=>H,cyan:()=>De,dim:()=>ke,gray:()=>Qt,green:()=>Ve,grey:()=>Pu,hidden:()=>yu,inverse:()=>hu,italic:()=>gu,magenta:()=>wu,red:()=>de,reset:()=>fu,strikethrough:()=>Eu,underline:()=>X,white:()=>xu,yellow:()=>_e});var Jn,So,Ao,Io,Oo=!0;typeof process<"u"&&({FORCE_COLOR:Jn,NODE_DISABLE_COLORS:So,NO_COLOR:Ao,TERM:Io}=process.env||{},Oo=process.stdout&&process.stdout.isTTY);var ko={enabled:!So&&Ao==null&&Io!=="dumb"&&(Jn!=null&&Jn!=="0"||Oo)};function $(e,t){let r=new RegExp(`\\x1b\\[${t}m`,"g"),n=`\x1B[${e}m`,i=`\x1B[${t}m`;return function(o){return!ko.enabled||o==null?o:n+(~(""+o).indexOf(i)?o.replace(r,i+n):o)+i}}var fu=$(0,0),H=$(1,22),ke=$(2,22),gu=$(3,23),X=$(4,24),hu=$(7,27),yu=$(8,28),Eu=$(9,29),bu=$(30,39),de=$(31,39),Ve=$(32,39),_e=$(33,39),rt=$(34,39),wu=$(35,39),De=$(36,39),xu=$(37,39),Qt=$(90,39),Pu=$(90,39),vu=$(40,49),Tu=$(41,49),Ru=$(42,49),Cu=$(43,49),Su=$(44,49),Au=$(45,49),Iu=$(46,49),Ou=$(47,49);var ku=100,_o=["green","yellow","blue","magenta","cyan","red"],Gt=[],Do=Date.now(),_u=0,Wn=typeof process<"u"?process.env:{};globalThis.DEBUG??=Wn.DEBUG??"";globalThis.DEBUG_COLORS??=Wn.DEBUG_COLORS?Wn.DEBUG_COLORS==="true":!0;var Jt={enable(e){typeof e=="string"&&(globalThis.DEBUG=e)},disable(){let e=globalThis.DEBUG;return globalThis.DEBUG="",e},enabled(e){let t=globalThis.DEBUG.split(",").map(i=>i.replace(/[.+?^${}()|[\]\\]/g,"\\$&")),r=t.some(i=>i===""||i[0]==="-"?!1:e.match(RegExp(i.split("*").join(".*")+"$"))),n=t.some(i=>i===""||i[0]!=="-"?!1:e.match(RegExp(i.slice(1).split("*").join(".*")+"$")));return r&&!n},log:(...e)=>{let[t,r,...n]=e;(console.warn??console.log)(`${t} ${r}`,...n)},formatters:{}};function Du(e){let t={color:_o[_u++%_o.length],enabled:Jt.enabled(e),namespace:e,log:Jt.log,extend:()=>{}},r=(...n)=>{let{enabled:i,namespace:o,color:s,log:a}=t;if(n.length!==0&&Gt.push([o,...n]),Gt.length>ku&&Gt.shift(),Jt.enabled(o)||i){let l=n.map(c=>typeof c=="string"?c:Nu(c)),u=`+${Date.now()-Do}ms`;Do=Date.now(),globalThis.DEBUG_COLORS?a(Mr[s](H(o)),...l,Mr[s](u)):a(o,...l,u)}};return new Proxy(r,{get:(n,i)=>t[i],set:(n,i,o)=>t[i]=o})}var Hn=new Proxy(Du,{get:(e,t)=>Jt[t],set:(e,t,r)=>Jt[t]=r});function Nu(e,t=2){let r=new Set;return JSON.stringify(e,(n,i)=>{if(typeof i=="object"&&i!==null){if(r.has(i))return"[Circular *]";r.add(i)}else if(typeof i=="bigint")return i.toString();return i},t)}function No(e=7500){let t=Gt.map(([r,...n])=>`${r} ${n.map(i=>typeof i=="string"?i:JSON.stringify(i)).join(" ")}`).join(`
4
4
  `);return t.length<e?t:t.slice(-e)}function Lo(){Gt.length=0}var F=Hn;var Fo=_(require("fs"));function Kn(){let e=process.env.PRISMA_QUERY_ENGINE_LIBRARY;if(!(e&&Fo.default.existsSync(e))&&process.arch==="ia32")throw new Error('The default query engine type (Node-API, "library") is currently not supported for 32bit Node. Please set `engineType = "binary"` in the "generator" block of your "schema.prisma" file (or use the environment variables "PRISMA_CLIENT_ENGINE_TYPE=binary" and/or "PRISMA_CLI_QUERY_ENGINE_TYPE=binary".)')}var Yn=["darwin","darwin-arm64","debian-openssl-1.0.x","debian-openssl-1.1.x","debian-openssl-3.0.x","rhel-openssl-1.0.x","rhel-openssl-1.1.x","rhel-openssl-3.0.x","linux-arm64-openssl-1.1.x","linux-arm64-openssl-1.0.x","linux-arm64-openssl-3.0.x","linux-arm-openssl-1.1.x","linux-arm-openssl-1.0.x","linux-arm-openssl-3.0.x","linux-musl","linux-musl-openssl-3.0.x","linux-musl-arm64-openssl-1.1.x","linux-musl-arm64-openssl-3.0.x","linux-nixos","linux-static-x64","linux-static-arm64","windows","freebsd11","freebsd12","freebsd13","freebsd14","freebsd15","openbsd","netbsd","arm"];var $r="libquery_engine";function qr(e,t){let r=t==="url";return e.includes("windows")?r?"query_engine.dll.node":`query_engine-${e}.dll.node`:e.includes("darwin")?r?`${$r}.dylib.node`:`${$r}-${e}.dylib.node`:r?`${$r}.so.node`:`${$r}-${e}.so.node`}var Vo=_(require("child_process")),ti=_(require("fs/promises")),Qr=_(require("os"));var Ne=Symbol.for("@ts-pattern/matcher"),Lu=Symbol.for("@ts-pattern/isVariadic"),jr="@ts-pattern/anonymous-select-key",zn=e=>!!(e&&typeof e=="object"),Vr=e=>e&&!!e[Ne],we=(e,t,r)=>{if(Vr(e)){let n=e[Ne](),{matched:i,selections:o}=n.match(t);return i&&o&&Object.keys(o).forEach(s=>r(s,o[s])),i}if(zn(e)){if(!zn(t))return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;let n=[],i=[],o=[];for(let s of e.keys()){let a=e[s];Vr(a)&&a[Lu]?o.push(a):o.length?i.push(a):n.push(a)}if(o.length){if(o.length>1)throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(t.length<n.length+i.length)return!1;let s=t.slice(0,n.length),a=i.length===0?[]:t.slice(-i.length),l=t.slice(n.length,i.length===0?1/0:-i.length);return n.every((u,c)=>we(u,s[c],r))&&i.every((u,c)=>we(u,a[c],r))&&(o.length===0||we(o[0],l,r))}return e.length===t.length&&e.every((s,a)=>we(s,t[a],r))}return Reflect.ownKeys(e).every(n=>{let i=e[n];return(n in t||Vr(o=i)&&o[Ne]().matcherType==="optional")&&we(i,t[n],r);var o})}return Object.is(t,e)},Ge=e=>{var t,r,n;return zn(e)?Vr(e)?(t=(r=(n=e[Ne]()).getSelectionKeys)==null?void 0:r.call(n))!=null?t:[]:Array.isArray(e)?Wt(e,Ge):Wt(Object.values(e),Ge):[]},Wt=(e,t)=>e.reduce((r,n)=>r.concat(t(n)),[]);function me(e){return Object.assign(e,{optional:()=>Fu(e),and:t=>j(e,t),or:t=>Mu(e,t),select:t=>t===void 0?Mo(e):Mo(t,e)})}function Fu(e){return me({[Ne]:()=>({match:t=>{let r={},n=(i,o)=>{r[i]=o};return t===void 0?(Ge(e).forEach(i=>n(i,void 0)),{matched:!0,selections:r}):{matched:we(e,t,n),selections:r}},getSelectionKeys:()=>Ge(e),matcherType:"optional"})})}function j(...e){return me({[Ne]:()=>({match:t=>{let r={},n=(i,o)=>{r[i]=o};return{matched:e.every(i=>we(i,t,n)),selections:r}},getSelectionKeys:()=>Wt(e,Ge),matcherType:"and"})})}function Mu(...e){return me({[Ne]:()=>({match:t=>{let r={},n=(i,o)=>{r[i]=o};return Wt(e,Ge).forEach(i=>n(i,void 0)),{matched:e.some(i=>we(i,t,n)),selections:r}},getSelectionKeys:()=>Wt(e,Ge),matcherType:"or"})})}function I(e){return{[Ne]:()=>({match:t=>({matched:!!e(t)})})}}function Mo(...e){let t=typeof e[0]=="string"?e[0]:void 0,r=e.length===2?e[1]:typeof e[0]=="string"?void 0:e[0];return me({[Ne]:()=>({match:n=>{let i={[t??jr]:n};return{matched:r===void 0||we(r,n,(o,s)=>{i[o]=s}),selections:i}},getSelectionKeys:()=>[t??jr].concat(r===void 0?[]:Ge(r))})})}function Ee(e){return typeof e=="number"}function je(e){return typeof e=="string"}function Be(e){return typeof e=="bigint"}var lf=me(I(function(e){return!0}));var Ue=e=>Object.assign(me(e),{startsWith:t=>{return Ue(j(e,(r=t,I(n=>je(n)&&n.startsWith(r)))));var r},endsWith:t=>{return Ue(j(e,(r=t,I(n=>je(n)&&n.endsWith(r)))));var r},minLength:t=>Ue(j(e,(r=>I(n=>je(n)&&n.length>=r))(t))),length:t=>Ue(j(e,(r=>I(n=>je(n)&&n.length===r))(t))),maxLength:t=>Ue(j(e,(r=>I(n=>je(n)&&n.length<=r))(t))),includes:t=>{return Ue(j(e,(r=t,I(n=>je(n)&&n.includes(r)))));var r},regex:t=>{return Ue(j(e,(r=t,I(n=>je(n)&&!!n.match(r)))));var r}}),uf=Ue(I(je)),be=e=>Object.assign(me(e),{between:(t,r)=>be(j(e,((n,i)=>I(o=>Ee(o)&&n<=o&&i>=o))(t,r))),lt:t=>be(j(e,(r=>I(n=>Ee(n)&&n<r))(t))),gt:t=>be(j(e,(r=>I(n=>Ee(n)&&n>r))(t))),lte:t=>be(j(e,(r=>I(n=>Ee(n)&&n<=r))(t))),gte:t=>be(j(e,(r=>I(n=>Ee(n)&&n>=r))(t))),int:()=>be(j(e,I(t=>Ee(t)&&Number.isInteger(t)))),finite:()=>be(j(e,I(t=>Ee(t)&&Number.isFinite(t)))),positive:()=>be(j(e,I(t=>Ee(t)&&t>0))),negative:()=>be(j(e,I(t=>Ee(t)&&t<0)))}),cf=be(I(Ee)),Qe=e=>Object.assign(me(e),{between:(t,r)=>Qe(j(e,((n,i)=>I(o=>Be(o)&&n<=o&&i>=o))(t,r))),lt:t=>Qe(j(e,(r=>I(n=>Be(n)&&n<r))(t))),gt:t=>Qe(j(e,(r=>I(n=>Be(n)&&n>r))(t))),lte:t=>Qe(j(e,(r=>I(n=>Be(n)&&n<=r))(t))),gte:t=>Qe(j(e,(r=>I(n=>Be(n)&&n>=r))(t))),positive:()=>Qe(j(e,I(t=>Be(t)&&t>0))),negative:()=>Qe(j(e,I(t=>Be(t)&&t<0)))}),pf=Qe(I(Be)),df=me(I(function(e){return typeof e=="boolean"})),mf=me(I(function(e){return typeof e=="symbol"})),ff=me(I(function(e){return e==null})),gf=me(I(function(e){return e!=null}));var Zn=class extends Error{constructor(t){let r;try{r=JSON.stringify(t)}catch{r=t}super(`Pattern matching error: no pattern matches value ${r}`),this.input=void 0,this.input=t}},Xn={matched:!1,value:void 0};function dt(e){return new ei(e,Xn)}var ei=class e{constructor(t,r){this.input=void 0,this.state=void 0,this.input=t,this.state=r}with(...t){if(this.state.matched)return this;let r=t[t.length-1],n=[t[0]],i;t.length===3&&typeof t[1]=="function"?i=t[1]:t.length>2&&n.push(...t.slice(1,t.length-1));let o=!1,s={},a=(u,c)=>{o=!0,s[u]=c},l=!n.some(u=>we(u,this.input,a))||i&&!i(this.input)?Xn:{matched:!0,value:r(o?jr in s?s[jr]:s:this.input,this.input)};return new e(this.input,l)}when(t,r){if(this.state.matched)return this;let n=!!t(this.input);return new e(this.input,n?{matched:!0,value:r(this.input,this.input)}:Xn)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new Zn(this.input)}run(){return this.exhaustive()}returnType(){return this}};var jo=require("util");var $u={warn:_e("prisma:warn")},qu={warn:()=>!process.env.PRISMA_DISABLE_WARNINGS};function Br(e,...t){qu.warn()&&console.warn(`${$u.warn} ${e}`,...t)}var Vu=(0,jo.promisify)(Vo.default.exec),ne=F("prisma:get-platform"),ju=["1.0.x","1.1.x","3.0.x"];async function Bo(){let e=Qr.default.platform(),t=process.arch;if(e==="freebsd"){let s=await Gr("freebsd-version");if(s&&s.trim().length>0){let l=/^(\d+)\.?/.exec(s);if(l)return{platform:"freebsd",targetDistro:`freebsd${l[1]}`,arch:t}}}if(e!=="linux")return{platform:e,arch:t};let r=await Uu(),n=await zu(),i=Gu({arch:t,archFromUname:n,familyDistro:r.familyDistro}),{libssl:o}=await Ju(i);return{platform:"linux",libssl:o,arch:t,archFromUname:n,...r}}function Bu(e){let t=/^ID="?([^"\n]*)"?$/im,r=/^ID_LIKE="?([^"\n]*)"?$/im,n=t.exec(e),i=n&&n[1]&&n[1].toLowerCase()||"",o=r.exec(e),s=o&&o[1]&&o[1].toLowerCase()||"",a=dt({id:i,idLike:s}).with({id:"alpine"},({id:l})=>({targetDistro:"musl",familyDistro:l,originalDistro:l})).with({id:"raspbian"},({id:l})=>({targetDistro:"arm",familyDistro:"debian",originalDistro:l})).with({id:"nixos"},({id:l})=>({targetDistro:"nixos",originalDistro:l,familyDistro:"nixos"})).with({id:"debian"},{id:"ubuntu"},({id:l})=>({targetDistro:"debian",familyDistro:"debian",originalDistro:l})).with({id:"rhel"},{id:"centos"},{id:"fedora"},({id:l})=>({targetDistro:"rhel",familyDistro:"rhel",originalDistro:l})).when(({idLike:l})=>l.includes("debian")||l.includes("ubuntu"),({id:l})=>({targetDistro:"debian",familyDistro:"debian",originalDistro:l})).when(({idLike:l})=>i==="arch"||l.includes("arch"),({id:l})=>({targetDistro:"debian",familyDistro:"arch",originalDistro:l})).when(({idLike:l})=>l.includes("centos")||l.includes("fedora")||l.includes("rhel")||l.includes("suse"),({id:l})=>({targetDistro:"rhel",familyDistro:"rhel",originalDistro:l})).otherwise(({id:l})=>({targetDistro:void 0,familyDistro:void 0,originalDistro:l}));return ne(`Found distro info:
@@ -107,7 +107,7 @@ ${X(p)}
107
107
  If you want the Prisma team to look into it, please open the link above \u{1F64F}
108
108
  To increase the chance of success, please post your schema and a snippet of
109
109
  how you used Prisma Client in the issue.
110
- `}function Ft({inlineDatasources:e,overrideDatasources:t,env:r,clientVersion:n}){let i,o=Object.keys(e)[0],s=e[o]?.url,a=t[o]?.url;if(o===void 0?i=void 0:a?i=a:s?.value?i=s.value:s?.fromEnvVar&&(i=r[s.fromEnvVar]),s?.fromEnvVar!==void 0&&i===void 0)throw new T(`error: Environment variable not found: ${s.fromEnvVar}.`,n);if(i===void 0)throw new T("error: Missing URL environment variable, value, or override.",n);return i}var Ln=class extends Error{constructor(t,r){super(t),this.clientVersion=r.clientVersion,this.cause=r.cause}get[Symbol.toStringTag](){return this.name}};var le=class extends Ln{constructor(t,r){super(t,r),this.isRetryable=r.isRetryable??!0}};function S(e,t){return{...e,isRetryable:t}}var Mt=class extends le{constructor(r){super("This request must be retried",S(r,!0));this.name="ForcedRetryError";this.code="P5001"}};w(Mt,"ForcedRetryError");var st=class extends le{constructor(r,n){super(r,S(n,!1));this.name="InvalidDatasourceError";this.code="P6001"}};w(st,"InvalidDatasourceError");var at=class extends le{constructor(r,n){super(r,S(n,!1));this.name="NotImplementedYetError";this.code="P5004"}};w(at,"NotImplementedYetError");var V=class extends le{constructor(t,r){super(t,r),this.response=r.response;let n=this.response.headers.get("prisma-request-id");if(n){let i=`(The request id was: ${n})`;this.message=this.message+" "+i}}};var lt=class extends V{constructor(r){super("Schema needs to be uploaded",S(r,!0));this.name="SchemaMissingError";this.code="P5005"}};w(lt,"SchemaMissingError");var no="This request could not be understood by the server",wr=class extends V{constructor(r,n,i){super(n||no,S(r,!1));this.name="BadRequestError";this.code="P5000";i&&(this.code=i)}};w(wr,"BadRequestError");var xr=class extends V{constructor(r,n){super("Engine not started: healthcheck timeout",S(r,!0));this.name="HealthcheckTimeoutError";this.code="P5013";this.logs=n}};w(xr,"HealthcheckTimeoutError");var Pr=class extends V{constructor(r,n,i){super(n,S(r,!0));this.name="EngineStartupError";this.code="P5014";this.logs=i}};w(Pr,"EngineStartupError");var vr=class extends V{constructor(r){super("Engine version is not supported",S(r,!1));this.name="EngineVersionNotSupportedError";this.code="P5012"}};w(vr,"EngineVersionNotSupportedError");var io="Request timed out",Tr=class extends V{constructor(r,n=io){super(n,S(r,!1));this.name="GatewayTimeoutError";this.code="P5009"}};w(Tr,"GatewayTimeoutError");var dm="Interactive transaction error",Rr=class extends V{constructor(r,n=dm){super(n,S(r,!1));this.name="InteractiveTransactionError";this.code="P5015"}};w(Rr,"InteractiveTransactionError");var mm="Request parameters are invalid",Cr=class extends V{constructor(r,n=mm){super(n,S(r,!1));this.name="InvalidRequestError";this.code="P5011"}};w(Cr,"InvalidRequestError");var oo="Requested resource does not exist",Sr=class extends V{constructor(r,n=oo){super(n,S(r,!1));this.name="NotFoundError";this.code="P5003"}};w(Sr,"NotFoundError");var so="Unknown server error",$t=class extends V{constructor(r,n,i){super(n||so,S(r,!0));this.name="ServerError";this.code="P5006";this.logs=i}};w($t,"ServerError");var ao="Unauthorized, check your connection string",Ar=class extends V{constructor(r,n=ao){super(n,S(r,!1));this.name="UnauthorizedError";this.code="P5007"}};w(Ar,"UnauthorizedError");var lo="Usage exceeded, retry again later",Ir=class extends V{constructor(r,n=lo){super(n,S(r,!0));this.name="UsageExceededError";this.code="P5008"}};w(Ir,"UsageExceededError");async function fm(e){let t;try{t=await e.text()}catch{return{type:"EmptyError"}}try{let r=JSON.parse(t);if(typeof r=="string")switch(r){case"InternalDataProxyError":return{type:"DataProxyError",body:r};default:return{type:"UnknownTextError",body:r}}if(typeof r=="object"&&r!==null){if("is_panic"in r&&"message"in r&&"error_code"in r)return{type:"QueryEngineError",body:r};if("EngineNotStarted"in r||"InteractiveTransactionMisrouted"in r||"InvalidRequestError"in r){let n=Object.values(r)[0].reason;return typeof n=="string"&&!["SchemaMissing","EngineVersionNotSupported"].includes(n)?{type:"UnknownJsonError",body:r}:{type:"DataProxyError",body:r}}}return{type:"UnknownJsonError",body:r}}catch{return t===""?{type:"EmptyError"}:{type:"UnknownTextError",body:t}}}async function Or(e,t){if(e.ok)return;let r={clientVersion:t,response:e},n=await fm(e);if(n.type==="QueryEngineError")throw new ee(n.body.message,{code:n.body.error_code,clientVersion:t});if(n.type==="DataProxyError"){if(n.body==="InternalDataProxyError")throw new $t(r,"Internal Data Proxy error");if("EngineNotStarted"in n.body){if(n.body.EngineNotStarted.reason==="SchemaMissing")return new lt(r);if(n.body.EngineNotStarted.reason==="EngineVersionNotSupported")throw new vr(r);if("EngineStartupError"in n.body.EngineNotStarted.reason){let{msg:i,logs:o}=n.body.EngineNotStarted.reason.EngineStartupError;throw new Pr(r,i,o)}if("KnownEngineStartupError"in n.body.EngineNotStarted.reason){let{msg:i,error_code:o}=n.body.EngineNotStarted.reason.KnownEngineStartupError;throw new T(i,t,o)}if("HealthcheckTimeout"in n.body.EngineNotStarted.reason){let{logs:i}=n.body.EngineNotStarted.reason.HealthcheckTimeout;throw new xr(r,i)}}if("InteractiveTransactionMisrouted"in n.body){let i={IDParseError:"Could not parse interactive transaction ID",NoQueryEngineFoundError:"Could not find Query Engine for the specified host and transaction ID",TransactionStartError:"Could not start interactive transaction"};throw new Rr(r,i[n.body.InteractiveTransactionMisrouted.reason])}if("InvalidRequestError"in n.body)throw new Cr(r,n.body.InvalidRequestError.reason)}if(e.status===401||e.status===403)throw new Ar(r,qt(ao,n));if(e.status===404)return new Sr(r,qt(oo,n));if(e.status===429)throw new Ir(r,qt(lo,n));if(e.status===504)throw new Tr(r,qt(io,n));if(e.status>=500)throw new $t(r,qt(so,n));if(e.status>=400)throw new wr(r,qt(no,n))}function qt(e,t){return t.type==="EmptyError"?e:`${e}: ${JSON.stringify(t)}`}function fl(e){let t=Math.pow(2,e)*50,r=Math.ceil(Math.random()*t)-Math.ceil(t/2),n=t+r;return new Promise(i=>setTimeout(()=>i(n),n))}var qe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function gl(e){let t=new TextEncoder().encode(e),r="",n=t.byteLength,i=n%3,o=n-i,s,a,l,u,c;for(let p=0;p<o;p=p+3)c=t[p]<<16|t[p+1]<<8|t[p+2],s=(c&16515072)>>18,a=(c&258048)>>12,l=(c&4032)>>6,u=c&63,r+=qe[s]+qe[a]+qe[l]+qe[u];return i==1?(c=t[o],s=(c&252)>>2,a=(c&3)<<4,r+=qe[s]+qe[a]+"=="):i==2&&(c=t[o]<<8|t[o+1],s=(c&64512)>>10,a=(c&1008)>>4,l=(c&15)<<2,r+=qe[s]+qe[a]+qe[l]+"="),r}function hl(e){if(!!e.generator?.previewFeatures.some(r=>r.toLowerCase().includes("metrics")))throw new T("The `metrics` preview feature is not yet available with Accelerate.\nPlease remove `metrics` from the `previewFeatures` in your schema.\n\nMore information about Accelerate: https://pris.ly/d/accelerate",e.clientVersion)}function gm(e){return e[0]*1e3+e[1]/1e6}function uo(e){return new Date(gm(e))}var yl={"@prisma/debug":"workspace:*","@prisma/engines-version":"6.3.0-17.acc0b9dd43eb689cbd20c9470515d719db10d0b0","@prisma/fetch-engine":"workspace:*","@prisma/get-platform":"workspace:*"};var kr=class extends le{constructor(r,n){super(`Cannot fetch data from service:
110
+ `}function Ft({inlineDatasources:e,overrideDatasources:t,env:r,clientVersion:n}){let i,o=Object.keys(e)[0],s=e[o]?.url,a=t[o]?.url;if(o===void 0?i=void 0:a?i=a:s?.value?i=s.value:s?.fromEnvVar&&(i=r[s.fromEnvVar]),s?.fromEnvVar!==void 0&&i===void 0)throw new T(`error: Environment variable not found: ${s.fromEnvVar}.`,n);if(i===void 0)throw new T("error: Missing URL environment variable, value, or override.",n);return i}var Ln=class extends Error{constructor(t,r){super(t),this.clientVersion=r.clientVersion,this.cause=r.cause}get[Symbol.toStringTag](){return this.name}};var le=class extends Ln{constructor(t,r){super(t,r),this.isRetryable=r.isRetryable??!0}};function S(e,t){return{...e,isRetryable:t}}var Mt=class extends le{constructor(r){super("This request must be retried",S(r,!0));this.name="ForcedRetryError";this.code="P5001"}};w(Mt,"ForcedRetryError");var st=class extends le{constructor(r,n){super(r,S(n,!1));this.name="InvalidDatasourceError";this.code="P6001"}};w(st,"InvalidDatasourceError");var at=class extends le{constructor(r,n){super(r,S(n,!1));this.name="NotImplementedYetError";this.code="P5004"}};w(at,"NotImplementedYetError");var V=class extends le{constructor(t,r){super(t,r),this.response=r.response;let n=this.response.headers.get("prisma-request-id");if(n){let i=`(The request id was: ${n})`;this.message=this.message+" "+i}}};var lt=class extends V{constructor(r){super("Schema needs to be uploaded",S(r,!0));this.name="SchemaMissingError";this.code="P5005"}};w(lt,"SchemaMissingError");var no="This request could not be understood by the server",wr=class extends V{constructor(r,n,i){super(n||no,S(r,!1));this.name="BadRequestError";this.code="P5000";i&&(this.code=i)}};w(wr,"BadRequestError");var xr=class extends V{constructor(r,n){super("Engine not started: healthcheck timeout",S(r,!0));this.name="HealthcheckTimeoutError";this.code="P5013";this.logs=n}};w(xr,"HealthcheckTimeoutError");var Pr=class extends V{constructor(r,n,i){super(n,S(r,!0));this.name="EngineStartupError";this.code="P5014";this.logs=i}};w(Pr,"EngineStartupError");var vr=class extends V{constructor(r){super("Engine version is not supported",S(r,!1));this.name="EngineVersionNotSupportedError";this.code="P5012"}};w(vr,"EngineVersionNotSupportedError");var io="Request timed out",Tr=class extends V{constructor(r,n=io){super(n,S(r,!1));this.name="GatewayTimeoutError";this.code="P5009"}};w(Tr,"GatewayTimeoutError");var dm="Interactive transaction error",Rr=class extends V{constructor(r,n=dm){super(n,S(r,!1));this.name="InteractiveTransactionError";this.code="P5015"}};w(Rr,"InteractiveTransactionError");var mm="Request parameters are invalid",Cr=class extends V{constructor(r,n=mm){super(n,S(r,!1));this.name="InvalidRequestError";this.code="P5011"}};w(Cr,"InvalidRequestError");var oo="Requested resource does not exist",Sr=class extends V{constructor(r,n=oo){super(n,S(r,!1));this.name="NotFoundError";this.code="P5003"}};w(Sr,"NotFoundError");var so="Unknown server error",$t=class extends V{constructor(r,n,i){super(n||so,S(r,!0));this.name="ServerError";this.code="P5006";this.logs=i}};w($t,"ServerError");var ao="Unauthorized, check your connection string",Ar=class extends V{constructor(r,n=ao){super(n,S(r,!1));this.name="UnauthorizedError";this.code="P5007"}};w(Ar,"UnauthorizedError");var lo="Usage exceeded, retry again later",Ir=class extends V{constructor(r,n=lo){super(n,S(r,!0));this.name="UsageExceededError";this.code="P5008"}};w(Ir,"UsageExceededError");async function fm(e){let t;try{t=await e.text()}catch{return{type:"EmptyError"}}try{let r=JSON.parse(t);if(typeof r=="string")switch(r){case"InternalDataProxyError":return{type:"DataProxyError",body:r};default:return{type:"UnknownTextError",body:r}}if(typeof r=="object"&&r!==null){if("is_panic"in r&&"message"in r&&"error_code"in r)return{type:"QueryEngineError",body:r};if("EngineNotStarted"in r||"InteractiveTransactionMisrouted"in r||"InvalidRequestError"in r){let n=Object.values(r)[0].reason;return typeof n=="string"&&!["SchemaMissing","EngineVersionNotSupported"].includes(n)?{type:"UnknownJsonError",body:r}:{type:"DataProxyError",body:r}}}return{type:"UnknownJsonError",body:r}}catch{return t===""?{type:"EmptyError"}:{type:"UnknownTextError",body:t}}}async function Or(e,t){if(e.ok)return;let r={clientVersion:t,response:e},n=await fm(e);if(n.type==="QueryEngineError")throw new ee(n.body.message,{code:n.body.error_code,clientVersion:t});if(n.type==="DataProxyError"){if(n.body==="InternalDataProxyError")throw new $t(r,"Internal Data Proxy error");if("EngineNotStarted"in n.body){if(n.body.EngineNotStarted.reason==="SchemaMissing")return new lt(r);if(n.body.EngineNotStarted.reason==="EngineVersionNotSupported")throw new vr(r);if("EngineStartupError"in n.body.EngineNotStarted.reason){let{msg:i,logs:o}=n.body.EngineNotStarted.reason.EngineStartupError;throw new Pr(r,i,o)}if("KnownEngineStartupError"in n.body.EngineNotStarted.reason){let{msg:i,error_code:o}=n.body.EngineNotStarted.reason.KnownEngineStartupError;throw new T(i,t,o)}if("HealthcheckTimeout"in n.body.EngineNotStarted.reason){let{logs:i}=n.body.EngineNotStarted.reason.HealthcheckTimeout;throw new xr(r,i)}}if("InteractiveTransactionMisrouted"in n.body){let i={IDParseError:"Could not parse interactive transaction ID",NoQueryEngineFoundError:"Could not find Query Engine for the specified host and transaction ID",TransactionStartError:"Could not start interactive transaction"};throw new Rr(r,i[n.body.InteractiveTransactionMisrouted.reason])}if("InvalidRequestError"in n.body)throw new Cr(r,n.body.InvalidRequestError.reason)}if(e.status===401||e.status===403)throw new Ar(r,qt(ao,n));if(e.status===404)return new Sr(r,qt(oo,n));if(e.status===429)throw new Ir(r,qt(lo,n));if(e.status===504)throw new Tr(r,qt(io,n));if(e.status>=500)throw new $t(r,qt(so,n));if(e.status>=400)throw new wr(r,qt(no,n))}function qt(e,t){return t.type==="EmptyError"?e:`${e}: ${JSON.stringify(t)}`}function fl(e){let t=Math.pow(2,e)*50,r=Math.ceil(Math.random()*t)-Math.ceil(t/2),n=t+r;return new Promise(i=>setTimeout(()=>i(n),n))}var qe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function gl(e){let t=new TextEncoder().encode(e),r="",n=t.byteLength,i=n%3,o=n-i,s,a,l,u,c;for(let p=0;p<o;p=p+3)c=t[p]<<16|t[p+1]<<8|t[p+2],s=(c&16515072)>>18,a=(c&258048)>>12,l=(c&4032)>>6,u=c&63,r+=qe[s]+qe[a]+qe[l]+qe[u];return i==1?(c=t[o],s=(c&252)>>2,a=(c&3)<<4,r+=qe[s]+qe[a]+"=="):i==2&&(c=t[o]<<8|t[o+1],s=(c&64512)>>10,a=(c&1008)>>4,l=(c&15)<<2,r+=qe[s]+qe[a]+qe[l]+"="),r}function hl(e){if(!!e.generator?.previewFeatures.some(r=>r.toLowerCase().includes("metrics")))throw new T("The `metrics` preview feature is not yet available with Accelerate.\nPlease remove `metrics` from the `previewFeatures` in your schema.\n\nMore information about Accelerate: https://pris.ly/d/accelerate",e.clientVersion)}function gm(e){return e[0]*1e3+e[1]/1e6}function uo(e){return new Date(gm(e))}var yl={"@prisma/debug":"workspace:*","@prisma/engines-version":"6.4.0-2.4767cae5af70f60ad05e14222e663255fc63a65e","@prisma/fetch-engine":"workspace:*","@prisma/get-platform":"workspace:*"};var kr=class extends le{constructor(r,n){super(`Cannot fetch data from service:
111
111
  ${r}`,S(n,!0));this.name="RequestError";this.code="P5010"}};w(kr,"RequestError");async function ut(e,t,r=n=>n){let{clientVersion:n,...i}=t,o=r(fetch);try{return await o(e,i)}catch(s){let a=s.message??"Unknown error";throw new kr(a,{clientVersion:n,cause:s})}}var ym=/^[1-9][0-9]*\.[0-9]+\.[0-9]+$/,El=F("prisma:client:dataproxyEngine");async function Em(e,t){let r=yl["@prisma/engines-version"],n=t.clientVersion??"unknown";if(process.env.PRISMA_CLIENT_DATA_PROXY_CLIENT_VERSION)return process.env.PRISMA_CLIENT_DATA_PROXY_CLIENT_VERSION;if(e.includes("accelerate")&&n!=="0.0.0"&&n!=="in-memory")return n;let[i,o]=n?.split("-")??[];if(o===void 0&&ym.test(i))return i;if(o!==void 0||n==="0.0.0"||n==="in-memory"){if(e.startsWith("localhost")||e.startsWith("127.0.0.1"))return"0.0.0";let[s]=r.split("-")??[],[a,l,u]=s.split("."),c=bm(`<=${a}.${l}.${u}`),p=await ut(c,{clientVersion:n});if(!p.ok)throw new Error(`Failed to fetch stable Prisma version, unpkg.com status ${p.status} ${p.statusText}, response body: ${await p.text()||"<empty body>"}`);let d=await p.text();El("length of body fetched from unpkg.com",d.length);let f;try{f=JSON.parse(d)}catch(g){throw console.error("JSON.parse error: body fetched from unpkg.com: ",d),g}return f.version}throw new at("Only `major.minor.patch` versions are supported by Accelerate.",{clientVersion:n})}async function bl(e,t){let r=await Em(e,t);return El("version",r),r}function bm(e){return encodeURI(`https://unpkg.com/prisma@${e}/package.json`)}var wl=3,Fn=F("prisma:client:dataproxyEngine"),co=class{constructor({apiKey:t,tracingHelper:r,logLevel:n,logQueries:i,engineHash:o}){this.apiKey=t,this.tracingHelper=r,this.logLevel=n,this.logQueries=i,this.engineHash=o}build({traceparent:t,interactiveTransaction:r}={}){let n={Authorization:`Bearer ${this.apiKey}`,"Prisma-Engine-Hash":this.engineHash};this.tracingHelper.isEnabled()&&(n.traceparent=t??this.tracingHelper.getTraceParent()),r&&(n["X-transaction-id"]=r.id);let i=this.buildCaptureSettings();return i.length>0&&(n["X-capture-telemetry"]=i.join(", ")),n}buildCaptureSettings(){let t=[];return this.tracingHelper.isEnabled()&&t.push("tracing"),this.logLevel&&t.push(this.logLevel),this.logQueries&&t.push("query"),t}},_r=class{constructor(t){this.name="DataProxyEngine";hl(t),this.config=t,this.env={...t.env,...typeof process<"u"?process.env:{}},this.inlineSchema=gl(t.inlineSchema),this.inlineDatasources=t.inlineDatasources,this.inlineSchemaHash=t.inlineSchemaHash,this.clientVersion=t.clientVersion,this.engineHash=t.engineVersion,this.logEmitter=t.logEmitter,this.tracingHelper=t.tracingHelper}apiKey(){return this.headerBuilder.apiKey}version(){return this.engineHash}async start(){this.startPromise!==void 0&&await this.startPromise,this.startPromise=(async()=>{let[t,r]=this.extractHostAndApiKey();this.host=t,this.headerBuilder=new co({apiKey:r,tracingHelper:this.tracingHelper,logLevel:this.config.logLevel,logQueries:this.config.logQueries,engineHash:this.engineHash}),this.remoteClientVersion=await bl(t,this.config),Fn("host",this.host)})(),await this.startPromise}async stop(){}propagateResponseExtensions(t){t?.logs?.length&&t.logs.forEach(r=>{switch(r.level){case"debug":case"trace":Fn(r);break;case"error":case"warn":case"info":{this.logEmitter.emit(r.level,{timestamp:uo(r.timestamp),message:r.attributes.message??"",target:r.target});break}case"query":{this.logEmitter.emit("query",{query:r.attributes.query??"",timestamp:uo(r.timestamp),duration:r.attributes.duration_ms??0,params:r.attributes.params??"",target:r.target});break}default:r.level}}),t?.traces?.length&&this.tracingHelper.dispatchEngineSpans(t.traces)}onBeforeExit(){throw new Error('"beforeExit" hook is not applicable to the remote query engine')}async url(t){return await this.start(),`https://${this.host}/${this.remoteClientVersion}/${this.inlineSchemaHash}/${t}`}async uploadSchema(){let t={name:"schemaUpload",internal:!0};return this.tracingHelper.runInChildSpan(t,async()=>{let r=await ut(await this.url("schema"),{method:"PUT",headers:this.headerBuilder.build(),body:this.inlineSchema,clientVersion:this.clientVersion});r.ok||Fn("schema response status",r.status);let n=await Or(r,this.clientVersion);if(n)throw this.logEmitter.emit("warn",{message:`Error while uploading schema: ${n.message}`,timestamp:new Date,target:""}),n;this.logEmitter.emit("info",{message:`Schema (re)uploaded (hash: ${this.inlineSchemaHash})`,timestamp:new Date,target:""})})}request(t,{traceparent:r,interactiveTransaction:n,customDataProxyFetch:i}){return this.requestInternal({body:t,traceparent:r,interactiveTransaction:n,customDataProxyFetch:i})}async requestBatch(t,{traceparent:r,transaction:n,customDataProxyFetch:i}){let o=n?.kind==="itx"?n.options:void 0,s=Dt(t,n);return(await this.requestInternal({body:s,customDataProxyFetch:i,interactiveTransaction:o,traceparent:r})).map(l=>(l.extensions&&this.propagateResponseExtensions(l.extensions),"errors"in l?this.convertProtocolErrorsToClientError(l.errors):l))}requestInternal({body:t,traceparent:r,customDataProxyFetch:n,interactiveTransaction:i}){return this.withRetry({actionGerund:"querying",callback:async({logHttpCall:o})=>{let s=i?`${i.payload.endpoint}/graphql`:await this.url("graphql");o(s);let a=await ut(s,{method:"POST",headers:this.headerBuilder.build({traceparent:r,interactiveTransaction:i}),body:JSON.stringify(t),clientVersion:this.clientVersion},n);a.ok||Fn("graphql response status",a.status),await this.handleError(await Or(a,this.clientVersion));let l=await a.json();if(l.extensions&&this.propagateResponseExtensions(l.extensions),"errors"in l)throw this.convertProtocolErrorsToClientError(l.errors);return"batchResult"in l?l.batchResult:l}})}async transaction(t,r,n){let i={start:"starting",commit:"committing",rollback:"rolling back"};return this.withRetry({actionGerund:`${i[t]} transaction`,callback:async({logHttpCall:o})=>{if(t==="start"){let s=JSON.stringify({max_wait:n.maxWait,timeout:n.timeout,isolation_level:n.isolationLevel}),a=await this.url("transaction/start");o(a);let l=await ut(a,{method:"POST",headers:this.headerBuilder.build({traceparent:r.traceparent}),body:s,clientVersion:this.clientVersion});await this.handleError(await Or(l,this.clientVersion));let u=await l.json(),{extensions:c}=u;c&&this.propagateResponseExtensions(c);let p=u.id,d=u["data-proxy"].endpoint;return{id:p,payload:{endpoint:d}}}else{let s=`${n.payload.endpoint}/${t}`;o(s);let a=await ut(s,{method:"POST",headers:this.headerBuilder.build({traceparent:r.traceparent}),clientVersion:this.clientVersion});await this.handleError(await Or(a,this.clientVersion));let l=await a.json(),{extensions:u}=l;u&&this.propagateResponseExtensions(u);return}}})}extractHostAndApiKey(){let t={clientVersion:this.clientVersion},r=Object.keys(this.inlineDatasources)[0],n=Ft({inlineDatasources:this.inlineDatasources,overrideDatasources:this.config.overrideDatasources,clientVersion:this.clientVersion,env:this.env}),i;try{i=new URL(n)}catch{throw new st(`Error validating datasource \`${r}\`: the URL must start with the protocol \`prisma://\``,t)}let{protocol:o,host:s,searchParams:a}=i;if(o!=="prisma:"&&o!==Yr)throw new st(`Error validating datasource \`${r}\`: the URL must start with the protocol \`prisma://\``,t);let l=a.get("api_key");if(l===null||l.length<1)throw new st(`Error validating datasource \`${r}\`: the URL must contain a valid API key`,t);return[s,l]}metrics(){throw new at("Metrics are not yet supported for Accelerate",{clientVersion:this.clientVersion})}async withRetry(t){for(let r=0;;r++){let n=i=>{this.logEmitter.emit("info",{message:`Calling ${i} (n=${r})`,timestamp:new Date,target:""})};try{return await t.callback({logHttpCall:n})}catch(i){if(!(i instanceof le)||!i.isRetryable)throw i;if(r>=wl)throw i instanceof Mt?i.cause:i;this.logEmitter.emit("warn",{message:`Attempt ${r+1}/${wl} failed for ${t.actionGerund}: ${i.message??"(unknown)"}`,timestamp:new Date,target:""});let o=await fl(r);this.logEmitter.emit("warn",{message:`Retrying after ${o}ms`,timestamp:new Date,target:""})}}}async handleError(t){if(t instanceof lt)throw await this.uploadSchema(),new Mt({clientVersion:this.clientVersion,cause:t});if(t)throw t}convertProtocolErrorsToClientError(t){return t.length===1?Nt(t[0],this.config.clientVersion,this.config.activeProvider):new B(JSON.stringify(t),{clientVersion:this.config.clientVersion})}applyPendingMigrations(){throw new Error("Method not implemented.")}};function xl(e){if(e?.kind==="itx")return e.options.id}var mo=_(require("os")),Pl=_(require("path"));var po=Symbol("PrismaLibraryEngineCache");function wm(){let e=globalThis;return e[po]===void 0&&(e[po]={}),e[po]}function xm(e){let t=wm();if(t[e]!==void 0)return t[e];let r=Pl.default.toNamespacedPath(e),n={exports:{}},i=0;return process.platform!=="win32"&&(i=mo.default.constants.dlopen.RTLD_LAZY|mo.default.constants.dlopen.RTLD_DEEPBIND),process.dlopen(n,r,i),t[e]=n.exports,n.exports}var vl={async loadLibrary(e){let t=await ri(),r=await al("library",e);try{return e.tracingHelper.runInChildSpan({name:"loadLibrary",internal:!0},()=>xm(r))}catch(n){let i=fi({e:n,platformInfo:t,id:r});throw new T(i,e.clientVersion)}}};var fo,Tl={async loadLibrary(e){let{clientVersion:t,adapter:r,engineWasm:n}=e;if(r===void 0)throw new T(`The \`adapter\` option for \`PrismaClient\` is required in this context (${kn().prettyName})`,t);if(n===void 0)throw new T("WASM engine was unexpectedly `undefined`",t);fo===void 0&&(fo=(async()=>{let o=n.getRuntime(),s=await n.getQueryEngineWasmModule();if(s==null)throw new T("The loaded wasm module was unexpectedly `undefined` or `null` once loaded",t);let a={"./query_engine_bg.js":o},l=new WebAssembly.Instance(s,a);return o.__wbg_set_wasm(l.exports),o.QueryEngine})());let i=await fo;return{debugPanic(){return Promise.reject("{}")},dmmf(){return Promise.resolve("{}")},version(){return{commit:"unknown",version:"unknown"}},QueryEngine:i}}};var Pm="P2036",Ie=F("prisma:client:libraryEngine");function vm(e){return e.item_type==="query"&&"query"in e}function Tm(e){return"level"in e?e.level==="error"&&e.message==="PANIC":!1}var Rl=[...Yn,"native"],Rm=0xffffffffffffffffn,go=1n;function Cm(){let e=go++;return go>Rm&&(go=1n),e}var Dr=class{constructor(t,r){this.name="LibraryEngine";this.libraryLoader=r??vl,t.engineWasm!==void 0&&(this.libraryLoader=r??Tl),this.config=t,this.libraryStarted=!1,this.logQueries=t.logQueries??!1,this.logLevel=t.logLevel??"error",this.logEmitter=t.logEmitter,this.datamodel=t.inlineSchema,this.tracingHelper=t.tracingHelper,t.enableDebugLogs&&(this.logLevel="debug");let n=Object.keys(t.overrideDatasources)[0],i=t.overrideDatasources[n]?.url;n!==void 0&&i!==void 0&&(this.datasourceOverrides={[n]:i}),this.libraryInstantiationPromise=this.instantiateLibrary()}wrapEngine(t){return{applyPendingMigrations:t.applyPendingMigrations?.bind(t),commitTransaction:this.withRequestId(t.commitTransaction.bind(t)),connect:this.withRequestId(t.connect.bind(t)),disconnect:this.withRequestId(t.disconnect.bind(t)),metrics:t.metrics?.bind(t),query:this.withRequestId(t.query.bind(t)),rollbackTransaction:this.withRequestId(t.rollbackTransaction.bind(t)),sdlSchema:t.sdlSchema?.bind(t),startTransaction:this.withRequestId(t.startTransaction.bind(t)),trace:t.trace.bind(t)}}withRequestId(t){return async(...r)=>{let n=Cm().toString();try{return await t(...r,n)}finally{if(this.tracingHelper.isEnabled()){let i=await this.engine?.trace(n);if(i){let o=JSON.parse(i);this.tracingHelper.dispatchEngineSpans(o.spans)}}}}}async applyPendingMigrations(){throw new Error("Cannot call this method from this type of engine instance")}async transaction(t,r,n){await this.start();let i=JSON.stringify(r),o;if(t==="start"){let a=JSON.stringify({max_wait:n.maxWait,timeout:n.timeout,isolation_level:n.isolationLevel});o=await this.engine?.startTransaction(a,i)}else t==="commit"?o=await this.engine?.commitTransaction(n.id,i):t==="rollback"&&(o=await this.engine?.rollbackTransaction(n.id,i));let s=this.parseEngineResponse(o);if(Sm(s)){let a=this.getExternalAdapterError(s);throw a?a.error:new ee(s.message,{code:s.error_code,clientVersion:this.config.clientVersion,meta:s.meta})}else if(typeof s.message=="string")throw new B(s.message,{clientVersion:this.config.clientVersion});return s}async instantiateLibrary(){if(Ie("internalSetup"),this.libraryInstantiationPromise)return this.libraryInstantiationPromise;Kn(),this.binaryTarget=await this.getCurrentBinaryTarget(),await this.tracingHelper.runInChildSpan("load_engine",()=>this.loadEngine()),this.version()}async getCurrentBinaryTarget(){{if(this.binaryTarget)return this.binaryTarget;let t=await this.tracingHelper.runInChildSpan("detect_platform",()=>nt());if(!Rl.includes(t))throw new T(`Unknown ${de("PRISMA_QUERY_ENGINE_LIBRARY")} ${de(H(t))}. Possible binaryTargets: ${Ve(Rl.join(", "))} or a path to the query engine library.
112
112
  You may have to run ${Ve("prisma generate")} for your changes to take effect.`,this.config.clientVersion);return t}}parseEngineResponse(t){if(!t)throw new B("Response from the Engine was empty",{clientVersion:this.config.clientVersion});try{return JSON.parse(t)}catch{throw new B("Unable to JSON.parse response from engine",{clientVersion:this.config.clientVersion})}}async loadEngine(){if(!this.engine){this.QueryEngineConstructor||(this.library=await this.libraryLoader.loadLibrary(this.config),this.QueryEngineConstructor=this.library.QueryEngine);try{let t=new WeakRef(this),{adapter:r}=this.config;r&&Ie("Using driver adapter: %O",r),this.engine=this.wrapEngine(new this.QueryEngineConstructor({datamodel:this.datamodel,env:process.env,logQueries:this.config.logQueries??!1,ignoreEnvVarErrors:!0,datasourceOverrides:this.datasourceOverrides??{},logLevel:this.logLevel,configDir:this.config.cwd,engineProtocol:"json",enableTracing:this.tracingHelper.isEnabled()},n=>{t.deref()?.logger(n)},r))}catch(t){let r=t,n=this.parseInitError(r.message);throw typeof n=="string"?r:new T(n.message,this.config.clientVersion,n.error_code)}}}logger(t){let r=this.parseEngineResponse(t);r&&(r.level=r?.level.toLowerCase()??"unknown",vm(r)?this.logEmitter.emit("query",{timestamp:new Date,query:r.query,params:r.params,duration:Number(r.duration_ms),target:r.module_path}):Tm(r)?this.loggerRustPanic=new ce(ho(this,`${r.message}: ${r.reason} in ${r.file}:${r.line}:${r.column}`),this.config.clientVersion):this.logEmitter.emit(r.level,{timestamp:new Date,message:r.message,target:r.module_path}))}parseInitError(t){try{return JSON.parse(t)}catch{}return t}parseRequestError(t){try{return JSON.parse(t)}catch{}return t}onBeforeExit(){throw new Error('"beforeExit" hook is not applicable to the library engine since Prisma 5.0.0, it is only relevant and implemented for the binary engine. Please add your event listener to the `process` object directly instead.')}async start(){if(await this.libraryInstantiationPromise,await this.libraryStoppingPromise,this.libraryStartingPromise)return Ie(`library already starting, this.libraryStarted: ${this.libraryStarted}`),this.libraryStartingPromise;if(this.libraryStarted)return;let t=async()=>{Ie("library starting");try{let r={traceparent:this.tracingHelper.getTraceParent()};await this.engine?.connect(JSON.stringify(r)),this.libraryStarted=!0,Ie("library started")}catch(r){let n=this.parseInitError(r.message);throw typeof n=="string"?r:new T(n.message,this.config.clientVersion,n.error_code)}finally{this.libraryStartingPromise=void 0}};return this.libraryStartingPromise=this.tracingHelper.runInChildSpan("connect",t),this.libraryStartingPromise}async stop(){if(await this.libraryStartingPromise,await this.executingQueryPromise,this.libraryStoppingPromise)return Ie("library is already stopping"),this.libraryStoppingPromise;if(!this.libraryStarted)return;let t=async()=>{await new Promise(n=>setTimeout(n,5)),Ie("library stopping");let r={traceparent:this.tracingHelper.getTraceParent()};await this.engine?.disconnect(JSON.stringify(r)),this.libraryStarted=!1,this.libraryStoppingPromise=void 0,Ie("library stopped")};return this.libraryStoppingPromise=this.tracingHelper.runInChildSpan("disconnect",t),this.libraryStoppingPromise}version(){return this.versionInfo=this.library?.version(),this.versionInfo?.version??"unknown"}debugPanic(t){return this.library?.debugPanic(t)}async request(t,{traceparent:r,interactiveTransaction:n}){Ie(`sending request, this.libraryStarted: ${this.libraryStarted}`);let i=JSON.stringify({traceparent:r}),o=JSON.stringify(t);try{await this.start(),this.executingQueryPromise=this.engine?.query(o,i,n?.id),this.lastQuery=o;let s=this.parseEngineResponse(await this.executingQueryPromise);if(s.errors)throw s.errors.length===1?this.buildQueryError(s.errors[0]):new B(JSON.stringify(s.errors),{clientVersion:this.config.clientVersion});if(this.loggerRustPanic)throw this.loggerRustPanic;return{data:s}}catch(s){if(s instanceof T)throw s;if(s.code==="GenericFailure"&&s.message?.startsWith("PANIC:"))throw new ce(ho(this,s.message),this.config.clientVersion);let a=this.parseRequestError(s.message);throw typeof a=="string"?s:new B(`${a.message}
113
113
  ${a.backtrace}`,{clientVersion:this.config.clientVersion})}}async requestBatch(t,{transaction:r,traceparent:n}){Ie("requestBatch");let i=Dt(t,r);await this.start(),this.lastQuery=JSON.stringify(i),this.executingQueryPromise=this.engine.query(this.lastQuery,JSON.stringify({traceparent:n}),xl(r));let o=await this.executingQueryPromise,s=this.parseEngineResponse(o);if(s.errors)throw s.errors.length===1?this.buildQueryError(s.errors[0]):new B(JSON.stringify(s.errors),{clientVersion:this.config.clientVersion});let{batchResult:a,errors:l}=s;if(Array.isArray(a))return a.map(u=>u.errors&&u.errors.length>0?this.loggerRustPanic??this.buildQueryError(u.errors[0]):{data:u});throw l&&l.length===1?new Error(l[0].error):new Error(JSON.stringify(s))}buildQueryError(t){if(t.user_facing_error.is_panic)return new ce(ho(this,t.user_facing_error.message),this.config.clientVersion);let r=this.getExternalAdapterError(t.user_facing_error);return r?r.error:Nt(t,this.config.clientVersion,this.config.activeProvider)}getExternalAdapterError(t){if(t.error_code===Pm&&this.config.adapter){let r=t.meta?.id;zr(typeof r=="number","Malformed external JS error received from the engine");let n=this.config.adapter.errorRegistry.consumeError(r);return zr(n,"External error with reported id was not registered"),n}}async metrics(t){await this.start();let r=await this.engine.metrics(JSON.stringify(t));return t.format==="prometheus"?r:this.parseEngineResponse(r)}};function Sm(e){return typeof e=="object"&&e!==null&&e.error_code!==void 0}function ho(e,t){return ml({binaryTarget:e.binaryTarget,title:t,version:e.config.clientVersion,engineVersion:e.versionInfo?.commit,database:e.config.activeProvider,query:e.lastQuery})}function Cl({copyEngine:e=!0},t){let r;try{r=Ft({inlineDatasources:t.inlineDatasources,overrideDatasources:t.overrideDatasources,env:{...t.env,...process.env},clientVersion:t.clientVersion})}catch{}let n=!!(r?.startsWith("prisma://")||wi(r));e&&n&&tr("recommend--no-engine","In production, we recommend using `prisma generate --no-engine` (See: `prisma generate --help`)");let i=ht(t.generator),o=n||!e,s=!!t.adapter,a=i==="library",l=i==="binary",u=i==="client";if(o&&s||s&&!1){let c;throw e?r?.startsWith("prisma://")?c=["Prisma Client was configured to use the `adapter` option but the URL was a `prisma://` URL.","Please either use the `prisma://` URL or remove the `adapter` from the Prisma Client constructor."]:c=["Prisma Client was configured to use both the `adapter` and Accelerate, please chose one."]:c=["Prisma Client was configured to use the `adapter` option but `prisma generate` was run with `--no-engine`.","Please run `prisma generate` without `--no-engine` to be able to use Prisma Client with the adapter."],new te(c.join(`
@@ -118,7 +118,7 @@ Example:
118
118
  await prisma.$executeRawUnsafe(\`ALTER USER prisma WITH PASSWORD '\${password}'\`)
119
119
 
120
120
  More Information: https://pris.ly/d/execute-raw
121
- `)}var Eo=({clientMethod:e,activeProvider:t})=>r=>{let n="",i;if(va(r))n=r.sql,i={values:Vt(r.values),__prismaRawParameters__:!0};else if(Array.isArray(r)){let[o,...s]=r;n=o,i={values:Vt(s||[]),__prismaRawParameters__:!0}}else switch(t){case"sqlite":case"mysql":{n=r.sql,i={values:Vt(r.values),__prismaRawParameters__:!0};break}case"cockroachdb":case"postgresql":case"postgres":{n=r.text,i={values:Vt(r.values),__prismaRawParameters__:!0};break}case"sqlserver":{n=Al(r),i={values:Vt(r.values),__prismaRawParameters__:!0};break}default:throw new Error(`The ${t} provider does not support ${e}`)}return i?.values?Nl(`prisma.${e}(${n}, ${i.values})`):Nl(`prisma.${e}(${n})`),{query:n,parameters:i}},Ll={requestArgsToMiddlewareArgs(e){return[e.strings,...e.values]},middlewareArgsToRequestArgs(e){let[t,...r]=e;return new ae(t,r)}},Fl={requestArgsToMiddlewareArgs(e){return[e]},middlewareArgsToRequestArgs(e){return e[0]}};function bo(e){return function(r,n){let i,o=(s=e)=>{try{return s===void 0||s?.kind==="itx"?i??=Ml(r(s)):Ml(r(s))}catch(a){return Promise.reject(a)}};return{get spec(){return n},then(s,a){return o().then(s,a)},catch(s){return o().catch(s)},finally(s){return o().finally(s)},requestTransaction(s){let a=o(s);return a.requestTransaction?a.requestTransaction(s):a},[Symbol.toStringTag]:"PrismaPromise"}}}function Ml(e){return typeof e.then=="function"?e:Promise.resolve(e)}var km={isEnabled(){return!1},getTraceParent(){return"00-10-10-00"},dispatchEngineSpans(){},getActiveContext(){},runInChildSpan(e,t){return t()}},wo=class{isEnabled(){return this.getGlobalTracingHelper().isEnabled()}getTraceParent(t){return this.getGlobalTracingHelper().getTraceParent(t)}dispatchEngineSpans(t){return this.getGlobalTracingHelper().dispatchEngineSpans(t)}getActiveContext(){return this.getGlobalTracingHelper().getActiveContext()}runInChildSpan(t,r){return this.getGlobalTracingHelper().runInChildSpan(t,r)}getGlobalTracingHelper(){return globalThis.PRISMA_INSTRUMENTATION?.helper??km}};function $l(){return new wo}function ql(e,t=()=>{}){let r,n=new Promise(i=>r=i);return{then(i){return--e===0&&r(t()),i?.(n)}}}function Vl(e){return typeof e=="string"?e:e.reduce((t,r)=>{let n=typeof r=="string"?r:r.level;return n==="query"?t:t&&(r==="info"||t==="info")?"info":n},void 0)}var $n=class{constructor(){this._middlewares=[]}use(t){this._middlewares.push(t)}get(t){return this._middlewares[t]}has(t){return!!this._middlewares[t]}length(){return this._middlewares.length}};var Bl=_(Ci());function qn(e){return typeof e.batchRequestIdx=="number"}function jl(e){if(e.action!=="findUnique"&&e.action!=="findUniqueOrThrow")return;let t=[];return e.modelName&&t.push(e.modelName),e.query.arguments&&t.push(xo(e.query.arguments)),t.push(xo(e.query.selection)),t.join("")}function xo(e){return`(${Object.keys(e).sort().map(r=>{let n=e[r];return typeof n=="object"&&n!==null?`(${r} ${xo(n)})`:r}).join(" ")})`}var _m={aggregate:!1,aggregateRaw:!1,createMany:!0,createManyAndReturn:!0,createOne:!0,deleteMany:!0,deleteOne:!0,executeRaw:!0,findFirst:!1,findFirstOrThrow:!1,findMany:!1,findRaw:!1,findUnique:!1,findUniqueOrThrow:!1,groupBy:!1,queryRaw:!1,runCommandRaw:!0,updateMany:!0,updateManyAndReturn:!0,updateOne:!0,upsertOne:!0};function Po(e){return _m[e]}var Vn=class{constructor(t){this.options=t;this.tickActive=!1;this.batches={}}request(t){let r=this.options.batchBy(t);return r?(this.batches[r]||(this.batches[r]=[],this.tickActive||(this.tickActive=!0,process.nextTick(()=>{this.dispatchBatches(),this.tickActive=!1}))),new Promise((n,i)=>{this.batches[r].push({request:t,resolve:n,reject:i})})):this.options.singleLoader(t)}dispatchBatches(){for(let t in this.batches){let r=this.batches[t];delete this.batches[t],r.length===1?this.options.singleLoader(r[0].request).then(n=>{n instanceof Error?r[0].reject(n):r[0].resolve(n)}).catch(n=>{r[0].reject(n)}):(r.sort((n,i)=>this.options.batchOrder(n.request,i.request)),this.options.batchLoader(r.map(n=>n.request)).then(n=>{if(n instanceof Error)for(let i=0;i<r.length;i++)r[i].reject(n);else for(let i=0;i<r.length;i++){let o=n[i];o instanceof Error?r[i].reject(o):r[i].resolve(o)}}).catch(n=>{for(let i=0;i<r.length;i++)r[i].reject(n)}))}}get[Symbol.toStringTag](){return"DataLoader"}};function ct(e,t){if(t===null)return t;switch(e){case"bigint":return BigInt(t);case"bytes":{let{buffer:r,byteOffset:n,byteLength:i}=Buffer.from(t,"base64");return new Uint8Array(r,n,i)}case"decimal":return new Pe(t);case"datetime":case"date":return new Date(t);case"time":return new Date(`1970-01-01T${t}Z`);case"bigint-array":return t.map(r=>ct("bigint",r));case"bytes-array":return t.map(r=>ct("bytes",r));case"decimal-array":return t.map(r=>ct("decimal",r));case"datetime-array":return t.map(r=>ct("datetime",r));case"date-array":return t.map(r=>ct("date",r));case"time-array":return t.map(r=>ct("time",r));default:return t}}function jn(e){let t=[],r=Dm(e);for(let n=0;n<e.rows.length;n++){let i=e.rows[n],o={...r};for(let s=0;s<i.length;s++)o[e.columns[s]]=ct(e.types[s],i[s]);t.push(o)}return t}function Dm(e){let t={};for(let r=0;r<e.columns.length;r++)t[e.columns[r]]=null;return t}var Nm=F("prisma:client:request_handler"),Bn=class{constructor(t,r){this.logEmitter=r,this.client=t,this.dataloader=new Vn({batchLoader:Ha(async({requests:n,customDataProxyFetch:i})=>{let{transaction:o,otelParentCtx:s}=n[0],a=n.map(p=>p.protocolQuery),l=this.client._tracingHelper.getTraceParent(s),u=n.some(p=>Po(p.protocolQuery.action));return(await this.client._engine.requestBatch(a,{traceparent:l,transaction:Lm(o),containsWrite:u,customDataProxyFetch:i})).map((p,d)=>{if(p instanceof Error)return p;try{return this.mapQueryEngineResult(n[d],p)}catch(f){return f}})}),singleLoader:async n=>{let i=n.transaction?.kind==="itx"?Ul(n.transaction):void 0,o=await this.client._engine.request(n.protocolQuery,{traceparent:this.client._tracingHelper.getTraceParent(),interactiveTransaction:i,isWrite:Po(n.protocolQuery.action),customDataProxyFetch:n.customDataProxyFetch});return this.mapQueryEngineResult(n,o)},batchBy:n=>n.transaction?.id?`transaction-${n.transaction.id}`:jl(n.protocolQuery),batchOrder(n,i){return n.transaction?.kind==="batch"&&i.transaction?.kind==="batch"?n.transaction.index-i.transaction.index:0}})}async request(t){try{return await this.dataloader.request(t)}catch(r){let{clientMethod:n,callsite:i,transaction:o,args:s,modelName:a}=t;this.handleAndLogRequestError({error:r,clientMethod:n,callsite:i,transaction:o,args:s,modelName:a,globalOmit:t.globalOmit})}}mapQueryEngineResult({dataPath:t,unpacker:r},n){let i=n?.data,o=this.unpack(i,t,r);return process.env.PRISMA_CLIENT_GET_TIME?{data:o}:o}handleAndLogRequestError(t){try{this.handleRequestError(t)}catch(r){throw this.logEmitter&&this.logEmitter.emit("error",{message:r.message,target:t.clientMethod,timestamp:new Date}),r}}handleRequestError({error:t,clientMethod:r,callsite:n,transaction:i,args:o,modelName:s,globalOmit:a}){if(Nm(t),Fm(t,i))throw t;if(t instanceof ee&&Mm(t)){let u=Ql(t.meta);xn({args:o,errors:[u],callsite:n,errorFormat:this.client._errorFormat,originalMethod:r,clientVersion:this.client._clientVersion,globalOmit:a})}let l=t.message;if(n&&(l=pn({callsite:n,originalMethod:r,isPanic:t.isPanic,showColors:this.client._errorFormat==="pretty",message:l})),l=this.sanitizeMessage(l),t.code){let u=s?{modelName:s,...t.meta}:t.meta;throw new ee(l,{code:t.code,clientVersion:this.client._clientVersion,meta:u,batchRequestIdx:t.batchRequestIdx})}else{if(t.isPanic)throw new ce(l,this.client._clientVersion);if(t instanceof B)throw new B(l,{clientVersion:this.client._clientVersion,batchRequestIdx:t.batchRequestIdx});if(t instanceof T)throw new T(l,this.client._clientVersion);if(t instanceof ce)throw new ce(l,this.client._clientVersion)}throw t.clientVersion=this.client._clientVersion,t}sanitizeMessage(t){return this.client._errorFormat&&this.client._errorFormat!=="pretty"?(0,Bl.default)(t):t}unpack(t,r,n){if(!t||(t.data&&(t=t.data),!t))return t;let i=Object.keys(t)[0],o=Object.values(t)[0],s=r.filter(u=>u!=="select"&&u!=="include"),a=Zi(o,s),l=i==="queryRaw"?jn(a):wt(a);return n?n(l):l}get[Symbol.toStringTag](){return"RequestHandler"}};function Lm(e){if(e){if(e.kind==="batch")return{kind:"batch",options:{isolationLevel:e.isolationLevel}};if(e.kind==="itx")return{kind:"itx",options:Ul(e)};Fe(e,"Unknown transaction kind")}}function Ul(e){return{id:e.id,payload:e.payload}}function Fm(e,t){return qn(e)&&t?.kind==="batch"&&e.batchRequestIdx!==t.index}function Mm(e){return e.code==="P2009"||e.code==="P2012"}function Ql(e){if(e.kind==="Union")return{kind:"Union",errors:e.errors.map(Ql)};if(Array.isArray(e.selectionPath)){let[,...t]=e.selectionPath;return{...e,selectionPath:t}}return e}var Gl="6.4.0-dev.1";var Jl=Gl;var zl=_(Fi());var N=class extends Error{constructor(t){super(t+`
121
+ `)}var Eo=({clientMethod:e,activeProvider:t})=>r=>{let n="",i;if(va(r))n=r.sql,i={values:Vt(r.values),__prismaRawParameters__:!0};else if(Array.isArray(r)){let[o,...s]=r;n=o,i={values:Vt(s||[]),__prismaRawParameters__:!0}}else switch(t){case"sqlite":case"mysql":{n=r.sql,i={values:Vt(r.values),__prismaRawParameters__:!0};break}case"cockroachdb":case"postgresql":case"postgres":{n=r.text,i={values:Vt(r.values),__prismaRawParameters__:!0};break}case"sqlserver":{n=Al(r),i={values:Vt(r.values),__prismaRawParameters__:!0};break}default:throw new Error(`The ${t} provider does not support ${e}`)}return i?.values?Nl(`prisma.${e}(${n}, ${i.values})`):Nl(`prisma.${e}(${n})`),{query:n,parameters:i}},Ll={requestArgsToMiddlewareArgs(e){return[e.strings,...e.values]},middlewareArgsToRequestArgs(e){let[t,...r]=e;return new ae(t,r)}},Fl={requestArgsToMiddlewareArgs(e){return[e]},middlewareArgsToRequestArgs(e){return e[0]}};function bo(e){return function(r,n){let i,o=(s=e)=>{try{return s===void 0||s?.kind==="itx"?i??=Ml(r(s)):Ml(r(s))}catch(a){return Promise.reject(a)}};return{get spec(){return n},then(s,a){return o().then(s,a)},catch(s){return o().catch(s)},finally(s){return o().finally(s)},requestTransaction(s){let a=o(s);return a.requestTransaction?a.requestTransaction(s):a},[Symbol.toStringTag]:"PrismaPromise"}}}function Ml(e){return typeof e.then=="function"?e:Promise.resolve(e)}var km={isEnabled(){return!1},getTraceParent(){return"00-10-10-00"},dispatchEngineSpans(){},getActiveContext(){},runInChildSpan(e,t){return t()}},wo=class{isEnabled(){return this.getGlobalTracingHelper().isEnabled()}getTraceParent(t){return this.getGlobalTracingHelper().getTraceParent(t)}dispatchEngineSpans(t){return this.getGlobalTracingHelper().dispatchEngineSpans(t)}getActiveContext(){return this.getGlobalTracingHelper().getActiveContext()}runInChildSpan(t,r){return this.getGlobalTracingHelper().runInChildSpan(t,r)}getGlobalTracingHelper(){return globalThis.PRISMA_INSTRUMENTATION?.helper??km}};function $l(){return new wo}function ql(e,t=()=>{}){let r,n=new Promise(i=>r=i);return{then(i){return--e===0&&r(t()),i?.(n)}}}function Vl(e){return typeof e=="string"?e:e.reduce((t,r)=>{let n=typeof r=="string"?r:r.level;return n==="query"?t:t&&(r==="info"||t==="info")?"info":n},void 0)}var $n=class{constructor(){this._middlewares=[]}use(t){this._middlewares.push(t)}get(t){return this._middlewares[t]}has(t){return!!this._middlewares[t]}length(){return this._middlewares.length}};var Bl=_(Ci());function qn(e){return typeof e.batchRequestIdx=="number"}function jl(e){if(e.action!=="findUnique"&&e.action!=="findUniqueOrThrow")return;let t=[];return e.modelName&&t.push(e.modelName),e.query.arguments&&t.push(xo(e.query.arguments)),t.push(xo(e.query.selection)),t.join("")}function xo(e){return`(${Object.keys(e).sort().map(r=>{let n=e[r];return typeof n=="object"&&n!==null?`(${r} ${xo(n)})`:r}).join(" ")})`}var _m={aggregate:!1,aggregateRaw:!1,createMany:!0,createManyAndReturn:!0,createOne:!0,deleteMany:!0,deleteOne:!0,executeRaw:!0,findFirst:!1,findFirstOrThrow:!1,findMany:!1,findRaw:!1,findUnique:!1,findUniqueOrThrow:!1,groupBy:!1,queryRaw:!1,runCommandRaw:!0,updateMany:!0,updateManyAndReturn:!0,updateOne:!0,upsertOne:!0};function Po(e){return _m[e]}var Vn=class{constructor(t){this.options=t;this.tickActive=!1;this.batches={}}request(t){let r=this.options.batchBy(t);return r?(this.batches[r]||(this.batches[r]=[],this.tickActive||(this.tickActive=!0,process.nextTick(()=>{this.dispatchBatches(),this.tickActive=!1}))),new Promise((n,i)=>{this.batches[r].push({request:t,resolve:n,reject:i})})):this.options.singleLoader(t)}dispatchBatches(){for(let t in this.batches){let r=this.batches[t];delete this.batches[t],r.length===1?this.options.singleLoader(r[0].request).then(n=>{n instanceof Error?r[0].reject(n):r[0].resolve(n)}).catch(n=>{r[0].reject(n)}):(r.sort((n,i)=>this.options.batchOrder(n.request,i.request)),this.options.batchLoader(r.map(n=>n.request)).then(n=>{if(n instanceof Error)for(let i=0;i<r.length;i++)r[i].reject(n);else for(let i=0;i<r.length;i++){let o=n[i];o instanceof Error?r[i].reject(o):r[i].resolve(o)}}).catch(n=>{for(let i=0;i<r.length;i++)r[i].reject(n)}))}}get[Symbol.toStringTag](){return"DataLoader"}};function ct(e,t){if(t===null)return t;switch(e){case"bigint":return BigInt(t);case"bytes":{let{buffer:r,byteOffset:n,byteLength:i}=Buffer.from(t,"base64");return new Uint8Array(r,n,i)}case"decimal":return new Pe(t);case"datetime":case"date":return new Date(t);case"time":return new Date(`1970-01-01T${t}Z`);case"bigint-array":return t.map(r=>ct("bigint",r));case"bytes-array":return t.map(r=>ct("bytes",r));case"decimal-array":return t.map(r=>ct("decimal",r));case"datetime-array":return t.map(r=>ct("datetime",r));case"date-array":return t.map(r=>ct("date",r));case"time-array":return t.map(r=>ct("time",r));default:return t}}function jn(e){let t=[],r=Dm(e);for(let n=0;n<e.rows.length;n++){let i=e.rows[n],o={...r};for(let s=0;s<i.length;s++)o[e.columns[s]]=ct(e.types[s],i[s]);t.push(o)}return t}function Dm(e){let t={};for(let r=0;r<e.columns.length;r++)t[e.columns[r]]=null;return t}var Nm=F("prisma:client:request_handler"),Bn=class{constructor(t,r){this.logEmitter=r,this.client=t,this.dataloader=new Vn({batchLoader:Ha(async({requests:n,customDataProxyFetch:i})=>{let{transaction:o,otelParentCtx:s}=n[0],a=n.map(p=>p.protocolQuery),l=this.client._tracingHelper.getTraceParent(s),u=n.some(p=>Po(p.protocolQuery.action));return(await this.client._engine.requestBatch(a,{traceparent:l,transaction:Lm(o),containsWrite:u,customDataProxyFetch:i})).map((p,d)=>{if(p instanceof Error)return p;try{return this.mapQueryEngineResult(n[d],p)}catch(f){return f}})}),singleLoader:async n=>{let i=n.transaction?.kind==="itx"?Ul(n.transaction):void 0,o=await this.client._engine.request(n.protocolQuery,{traceparent:this.client._tracingHelper.getTraceParent(),interactiveTransaction:i,isWrite:Po(n.protocolQuery.action),customDataProxyFetch:n.customDataProxyFetch});return this.mapQueryEngineResult(n,o)},batchBy:n=>n.transaction?.id?`transaction-${n.transaction.id}`:jl(n.protocolQuery),batchOrder(n,i){return n.transaction?.kind==="batch"&&i.transaction?.kind==="batch"?n.transaction.index-i.transaction.index:0}})}async request(t){try{return await this.dataloader.request(t)}catch(r){let{clientMethod:n,callsite:i,transaction:o,args:s,modelName:a}=t;this.handleAndLogRequestError({error:r,clientMethod:n,callsite:i,transaction:o,args:s,modelName:a,globalOmit:t.globalOmit})}}mapQueryEngineResult({dataPath:t,unpacker:r},n){let i=n?.data,o=this.unpack(i,t,r);return process.env.PRISMA_CLIENT_GET_TIME?{data:o}:o}handleAndLogRequestError(t){try{this.handleRequestError(t)}catch(r){throw this.logEmitter&&this.logEmitter.emit("error",{message:r.message,target:t.clientMethod,timestamp:new Date}),r}}handleRequestError({error:t,clientMethod:r,callsite:n,transaction:i,args:o,modelName:s,globalOmit:a}){if(Nm(t),Fm(t,i))throw t;if(t instanceof ee&&Mm(t)){let u=Ql(t.meta);xn({args:o,errors:[u],callsite:n,errorFormat:this.client._errorFormat,originalMethod:r,clientVersion:this.client._clientVersion,globalOmit:a})}let l=t.message;if(n&&(l=pn({callsite:n,originalMethod:r,isPanic:t.isPanic,showColors:this.client._errorFormat==="pretty",message:l})),l=this.sanitizeMessage(l),t.code){let u=s?{modelName:s,...t.meta}:t.meta;throw new ee(l,{code:t.code,clientVersion:this.client._clientVersion,meta:u,batchRequestIdx:t.batchRequestIdx})}else{if(t.isPanic)throw new ce(l,this.client._clientVersion);if(t instanceof B)throw new B(l,{clientVersion:this.client._clientVersion,batchRequestIdx:t.batchRequestIdx});if(t instanceof T)throw new T(l,this.client._clientVersion);if(t instanceof ce)throw new ce(l,this.client._clientVersion)}throw t.clientVersion=this.client._clientVersion,t}sanitizeMessage(t){return this.client._errorFormat&&this.client._errorFormat!=="pretty"?(0,Bl.default)(t):t}unpack(t,r,n){if(!t||(t.data&&(t=t.data),!t))return t;let i=Object.keys(t)[0],o=Object.values(t)[0],s=r.filter(u=>u!=="select"&&u!=="include"),a=Zi(o,s),l=i==="queryRaw"?jn(a):wt(a);return n?n(l):l}get[Symbol.toStringTag](){return"RequestHandler"}};function Lm(e){if(e){if(e.kind==="batch")return{kind:"batch",options:{isolationLevel:e.isolationLevel}};if(e.kind==="itx")return{kind:"itx",options:Ul(e)};Fe(e,"Unknown transaction kind")}}function Ul(e){return{id:e.id,payload:e.payload}}function Fm(e,t){return qn(e)&&t?.kind==="batch"&&e.batchRequestIdx!==t.index}function Mm(e){return e.code==="P2009"||e.code==="P2012"}function Ql(e){if(e.kind==="Union")return{kind:"Union",errors:e.errors.map(Ql)};if(Array.isArray(e.selectionPath)){let[,...t]=e.selectionPath;return{...e,selectionPath:t}}return e}var Gl="6.4.0-dev.3";var Jl=Gl;var zl=_(Fi());var N=class extends Error{constructor(t){super(t+`
122
122
  Read more at https://pris.ly/d/client-constructor`),this.name="PrismaClientConstructorValidationError"}get[Symbol.toStringTag](){return"PrismaClientConstructorValidationError"}};w(N,"PrismaClientConstructorValidationError");var Wl=["datasources","datasourceUrl","errorFormat","adapter","log","transactionOptions","omit","__internal"],Hl=["pretty","colorless","minimal"],Kl=["info","query","warn","error"],qm={datasources:(e,{datasourceNames:t})=>{if(e){if(typeof e!="object"||Array.isArray(e))throw new N(`Invalid value ${JSON.stringify(e)} for "datasources" provided to PrismaClient constructor`);for(let[r,n]of Object.entries(e)){if(!t.includes(r)){let i=jt(r,t)||` Available datasources: ${t.join(", ")}`;throw new N(`Unknown datasource ${r} provided to PrismaClient constructor.${i}`)}if(typeof n!="object"||Array.isArray(n))throw new N(`Invalid value ${JSON.stringify(e)} for datasource "${r}" provided to PrismaClient constructor.
123
123
  It should have this form: { url: "CONNECTION_STRING" }`);if(n&&typeof n=="object")for(let[i,o]of Object.entries(n)){if(i!=="url")throw new N(`Invalid value ${JSON.stringify(e)} for datasource "${r}" provided to PrismaClient constructor.
124
124
  It should have this form: { url: "CONNECTION_STRING" }`);if(typeof o!="string")throw new N(`Invalid value ${JSON.stringify(o)} for datasource "${r}" provided to PrismaClient constructor.
@@ -1,2 +1,2 @@
1
- "use strict";var q=Object.defineProperty;var U=Object.getOwnPropertyDescriptor;var B=Object.getOwnPropertyNames;var N=Object.prototype.hasOwnProperty;var C=(n,t)=>{for(var e in t)q(n,e,{get:t[e],enumerable:!0})},$=(n,t,e,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let c of B(t))!N.call(n,c)&&c!==e&&q(n,c,{get:()=>t[c],enumerable:!(o=U(t,c))||o.enumerable});return n};var V=n=>$(q({},"__esModule",{value:!0}),n);var Ft={};C(Ft,{QueryEngine:()=>Y,__wbg_String_88810dfeb4021902:()=>Bn,__wbg_buffer_b7b08af79b0b0974:()=>Cn,__wbg_call_1084a111329e68ce:()=>Zn,__wbg_call_89af060b4e1523f2:()=>gt,__wbg_crypto_58f13aa23ffcb166:()=>Wn,__wbg_done_bfda7aa8f252b39f:()=>rt,__wbg_entries_7a0e06255456ebcd:()=>It,__wbg_getRandomValues_504510b5564925af:()=>Ln,__wbg_getTime_91058879093a1589:()=>fn,__wbg_get_224d16597dbbfd96:()=>ct,__wbg_get_3baa728f9d58d3f6:()=>nt,__wbg_get_94990005bd6ca07c:()=>Un,__wbg_getwithrefkey_5e6d9547403deab8:()=>Dn,__wbg_globalThis_86b222e13bdf32ed:()=>st,__wbg_global_e5a3fe56f8be9485:()=>ft,__wbg_has_4bfbc01db38743f7:()=>cn,__wbg_instanceof_ArrayBuffer_61dfc3198373c902:()=>Tt,__wbg_instanceof_Promise_ae8c7ffdec83f2ae:()=>wn,__wbg_instanceof_Uint8Array_247a91427532499e:()=>ht,__wbg_isArray_8364a5371e9737d8:()=>bt,__wbg_isSafeInteger_7f1ed56200d90674:()=>lt,__wbg_iterator_888179a48810a9fe:()=>xn,__wbg_keys_7840ae453e408eab:()=>gn,__wbg_length_8339fcf5d8ecd12e:()=>xt,__wbg_length_ae22078168b726f5:()=>ln,__wbg_msCrypto_abcb1295e768d1f2:()=>Kn,__wbg_new0_65387337a95cf44d:()=>sn,__wbg_new_525245e2b9901204:()=>vn,__wbg_new_8608a2b51a5f6737:()=>kn,__wbg_new_a220cf903aa02ca2:()=>On,__wbg_new_b85e72ed1bfd57f9:()=>nn,__wbg_new_ea1883e1e5e86686:()=>Vn,__wbg_newnoargs_76313bd6ff35d0f2:()=>at,__wbg_newwithbyteoffsetandlength_8a2cb9ca96b27ec9:()=>$n,__wbg_newwithlength_ec548f448387c968:()=>Xn,__wbg_next_de3e9db4440638b2:()=>ot,__wbg_next_f9cb570345655b9a:()=>et,__wbg_node_523d7bd03ef69fba:()=>Hn,__wbg_now_28a6b413aca4a96a:()=>mt,__wbg_now_8ed1a4454e40ecd1:()=>an,__wbg_now_b7a162010a9e75b4:()=>bn,__wbg_parse_52202f117ec9ecfa:()=>un,__wbg_process_5b786e71d465a513:()=>Jn,__wbg_push_37c89022f34c01ca:()=>Mn,__wbg_randomFillSync_a0d98aa11c81fe89:()=>Pn,__wbg_require_2784e593a4674877:()=>Gn,__wbg_resolve_570458cb99d56a43:()=>vt,__wbg_self_3093d5d1f7bcb682:()=>it,__wbg_setTimeout_631fe61f31fa2fad:()=>tn,__wbg_set_49185437f0ab06f8:()=>En,__wbg_set_673dda6c73d19609:()=>qn,__wbg_set_841ac57cff3d672b:()=>Rn,__wbg_set_d1e79e2388520f18:()=>pt,__wbg_set_eacc7d73fefaafdf:()=>dt,__wbg_set_wasm:()=>z,__wbg_stringify_bbf45426c92a6bf5:()=>wt,__wbg_subarray_7c2e3576afe181d1:()=>zn,__wbg_then_876bb3c633745cc6:()=>kt,__wbg_then_95e6edc0f89b73b1:()=>qt,__wbg_valueOf_c759749a331da0c0:()=>tt,__wbg_value_6d39332ab4788d86:()=>_t,__wbg_versions_c2ab80650590b6a2:()=>Qn,__wbg_window_3bcfc4d31bc012f8:()=>ut,__wbindgen_bigint_from_i64:()=>Tn,__wbindgen_bigint_from_u64:()=>Sn,__wbindgen_bigint_get_as_i64:()=>jt,__wbindgen_boolean_get:()=>mn,__wbindgen_cb_drop:()=>Ot,__wbindgen_closure_wrapper7235:()=>Et,__wbindgen_debug_string:()=>At,__wbindgen_error_new:()=>rn,__wbindgen_in:()=>In,__wbindgen_is_bigint:()=>yn,__wbindgen_is_function:()=>Yn,__wbindgen_is_object:()=>pn,__wbindgen_is_string:()=>Fn,__wbindgen_is_undefined:()=>on,__wbindgen_jsval_eq:()=>jn,__wbindgen_jsval_loose_eq:()=>yt,__wbindgen_memory:()=>Nn,__wbindgen_number_get:()=>hn,__wbindgen_number_new:()=>An,__wbindgen_object_clone_ref:()=>_n,__wbindgen_object_drop_ref:()=>dn,__wbindgen_string_get:()=>Z,__wbindgen_string_new:()=>en,__wbindgen_throw:()=>St,debug_panic:()=>K,getBuildTimeInfo:()=>G});module.exports=V(Ft);var S=()=>{};S.prototype=S;let _;function z(n){_=n}const p=new Array(128).fill(void 0);p.push(void 0,null,!0,!1);function r(n){return p[n]}let a=0,j=null;function A(){return(j===null||j.byteLength===0)&&(j=new Uint8Array(_.memory.buffer)),j}const L=typeof TextEncoder>"u"?(0,module.require)("util").TextEncoder:TextEncoder;let O=new L("utf-8");const P=typeof O.encodeInto=="function"?function(n,t){return O.encodeInto(n,t)}:function(n,t){const e=O.encode(n);return t.set(e),{read:n.length,written:e.length}};function b(n,t,e){if(e===void 0){const s=O.encode(n),w=t(s.length,1)>>>0;return A().subarray(w,w+s.length).set(s),a=s.length,w}let o=n.length,c=t(o,1)>>>0;const f=A();let u=0;for(;u<o;u++){const s=n.charCodeAt(u);if(s>127)break;f[c+u]=s}if(u!==o){u!==0&&(n=n.slice(u)),c=e(c,o,o=u+n.length*3,1)>>>0;const s=A().subarray(c+u,c+o),w=P(n,s);u+=w.written,c=e(c,o,u,1)>>>0}return a=u,c}function y(n){return n==null}let h=null;function d(){return(h===null||h.buffer.detached===!0||h.buffer.detached===void 0&&h.buffer!==_.memory.buffer)&&(h=new DataView(_.memory.buffer)),h}const W=typeof TextDecoder>"u"?(0,module.require)("util").TextDecoder:TextDecoder;let v=new W("utf-8",{ignoreBOM:!0,fatal:!0});v.decode();function T(n,t){return n=n>>>0,v.decode(A().subarray(n,n+t))}let I=p.length;function i(n){I===p.length&&p.push(p.length+1);const t=I;return I=p[t],p[t]=n,t}function J(n){n<132||(p[n]=I,I=n)}function g(n){const t=r(n);return J(n),t}function k(n){const t=typeof n;if(t=="number"||t=="boolean"||n==null)return`${n}`;if(t=="string")return`"${n}"`;if(t=="symbol"){const c=n.description;return c==null?"Symbol":`Symbol(${c})`}if(t=="function"){const c=n.name;return typeof c=="string"&&c.length>0?`Function(${c})`:"Function"}if(Array.isArray(n)){const c=n.length;let f="[";c>0&&(f+=k(n[0]));for(let u=1;u<c;u++)f+=", "+k(n[u]);return f+="]",f}const e=/\[object ([^\]]+)\]/.exec(toString.call(n));let o;if(e.length>1)o=e[1];else return toString.call(n);if(o=="Object")try{return"Object("+JSON.stringify(n)+")"}catch{return"Object"}return n instanceof Error?`${n.name}: ${n.message}
2
- ${n.stack}`:o}const E=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>{_.__wbindgen_export_2.get(n.dtor)(n.a,n.b)});function Q(n,t,e,o){const c={a:n,b:t,cnt:1,dtor:e},f=(...u)=>{c.cnt++;const s=c.a;c.a=0;try{return o(s,c.b,...u)}finally{--c.cnt===0?(_.__wbindgen_export_2.get(c.dtor)(s,c.b),E.unregister(c)):c.a=s}};return f.original=c,E.register(f,c,c),f}function H(n,t,e){_._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h92ff5ab9e3740637(n,t,i(e))}function G(){const n=_.getBuildTimeInfo();return g(n)}function K(n){try{const f=_.__wbindgen_add_to_stack_pointer(-16);var t=y(n)?0:b(n,_.__wbindgen_malloc,_.__wbindgen_realloc),e=a;_.debug_panic(f,t,e);var o=d().getInt32(f+4*0,!0),c=d().getInt32(f+4*1,!0);if(c)throw g(o)}finally{_.__wbindgen_add_to_stack_pointer(16)}}function l(n,t){try{return n.apply(this,t)}catch(e){_.__wbindgen_exn_store(i(e))}}function X(n,t,e,o){_.wasm_bindgen__convert__closures__invoke2_mut__h2dd59201d446cc9a(n,t,i(e),i(o))}const F=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>_.__wbg_queryengine_free(n>>>0,1));class Y{__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,F.unregister(this),t}free(){const t=this.__destroy_into_raw();_.__wbg_queryengine_free(t,0)}constructor(t,e,o){try{const s=_.__wbindgen_add_to_stack_pointer(-16);_.queryengine_new(s,i(t),i(e),i(o));var c=d().getInt32(s+4*0,!0),f=d().getInt32(s+4*1,!0),u=d().getInt32(s+4*2,!0);if(u)throw g(f);return this.__wbg_ptr=c>>>0,F.register(this,this.__wbg_ptr,this),this}finally{_.__wbindgen_add_to_stack_pointer(16)}}connect(t,e){const o=b(t,_.__wbindgen_malloc,_.__wbindgen_realloc),c=a,f=b(e,_.__wbindgen_malloc,_.__wbindgen_realloc),u=a,s=_.queryengine_connect(this.__wbg_ptr,o,c,f,u);return g(s)}disconnect(t,e){const o=b(t,_.__wbindgen_malloc,_.__wbindgen_realloc),c=a,f=b(e,_.__wbindgen_malloc,_.__wbindgen_realloc),u=a,s=_.queryengine_disconnect(this.__wbg_ptr,o,c,f,u);return g(s)}query(t,e,o,c){const f=b(t,_.__wbindgen_malloc,_.__wbindgen_realloc),u=a,s=b(e,_.__wbindgen_malloc,_.__wbindgen_realloc),w=a;var x=y(o)?0:b(o,_.__wbindgen_malloc,_.__wbindgen_realloc),m=a;const R=b(c,_.__wbindgen_malloc,_.__wbindgen_realloc),D=a,M=_.queryengine_query(this.__wbg_ptr,f,u,s,w,x,m,R,D);return g(M)}startTransaction(t,e,o){const c=b(t,_.__wbindgen_malloc,_.__wbindgen_realloc),f=a,u=b(e,_.__wbindgen_malloc,_.__wbindgen_realloc),s=a,w=b(o,_.__wbindgen_malloc,_.__wbindgen_realloc),x=a,m=_.queryengine_startTransaction(this.__wbg_ptr,c,f,u,s,w,x);return g(m)}commitTransaction(t,e,o){const c=b(t,_.__wbindgen_malloc,_.__wbindgen_realloc),f=a,u=b(e,_.__wbindgen_malloc,_.__wbindgen_realloc),s=a,w=b(o,_.__wbindgen_malloc,_.__wbindgen_realloc),x=a,m=_.queryengine_commitTransaction(this.__wbg_ptr,c,f,u,s,w,x);return g(m)}rollbackTransaction(t,e,o){const c=b(t,_.__wbindgen_malloc,_.__wbindgen_realloc),f=a,u=b(e,_.__wbindgen_malloc,_.__wbindgen_realloc),s=a,w=b(o,_.__wbindgen_malloc,_.__wbindgen_realloc),x=a,m=_.queryengine_rollbackTransaction(this.__wbg_ptr,c,f,u,s,w,x);return g(m)}metrics(t){const e=b(t,_.__wbindgen_malloc,_.__wbindgen_realloc),o=a,c=_.queryengine_metrics(this.__wbg_ptr,e,o);return g(c)}trace(t){const e=b(t,_.__wbindgen_malloc,_.__wbindgen_realloc),o=a,c=_.queryengine_trace(this.__wbg_ptr,e,o);return g(c)}}function Z(n,t){const e=r(t),o=typeof e=="string"?e:void 0;var c=y(o)?0:b(o,_.__wbindgen_malloc,_.__wbindgen_realloc),f=a;d().setInt32(n+4*1,f,!0),d().setInt32(n+4*0,c,!0)}function nn(n,t){try{var e={a:n,b:t},o=(f,u)=>{const s=e.a;e.a=0;try{return X(s,e.b,f,u)}finally{e.a=s}};const c=new Promise(o);return i(c)}finally{e.a=e.b=0}}function tn(n,t){return setTimeout(r(n),t>>>0)}function en(n,t){const e=T(n,t);return i(e)}function rn(n,t){const e=new Error(T(n,t));return i(e)}function _n(n){const t=r(n);return i(t)}function on(n){return r(n)===void 0}function cn(){return l(function(n,t){return Reflect.has(r(n),r(t))},arguments)}function un(){return l(function(n,t){const e=JSON.parse(T(n,t));return i(e)},arguments)}function sn(){return i(new Date)}function fn(n){return r(n).getTime()}function an(n){return r(n).now()}function bn(){return Date.now()}function gn(n){const t=Object.keys(r(n));return i(t)}function ln(n){return r(n).length}function dn(n){g(n)}function wn(n){let t;try{t=r(n)instanceof Promise}catch{t=!1}return t}function pn(n){const t=r(n);return typeof t=="object"&&t!==null}function xn(){return i(Symbol.iterator)}function mn(n){const t=r(n);return typeof t=="boolean"?t?1:0:2}function yn(n){return typeof r(n)=="bigint"}function hn(n,t){const e=r(t),o=typeof e=="number"?e:void 0;d().setFloat64(n+8*1,y(o)?0:o,!0),d().setInt32(n+4*0,!y(o),!0)}function Tn(n){return i(n)}function In(n,t){return r(n)in r(t)}function Sn(n){const t=BigInt.asUintN(64,n);return i(t)}function jn(n,t){return r(n)===r(t)}function An(n){return i(n)}function On(){const n=new Array;return i(n)}function qn(n,t,e){r(n)[t>>>0]=g(e)}function kn(){return i(new Map)}function vn(){const n=new Object;return i(n)}function En(n,t,e){const o=r(n).set(r(t),r(e));return i(o)}function Fn(n){return typeof r(n)=="string"}function Rn(n,t,e){r(n)[g(t)]=g(e)}function Dn(n,t){const e=r(n)[r(t)];return i(e)}function Mn(n,t){return r(n).push(r(t))}function Un(){return l(function(n,t){const e=r(n)[g(t)];return i(e)},arguments)}function Bn(n,t){const e=String(r(t)),o=b(e,_.__wbindgen_malloc,_.__wbindgen_realloc),c=a;d().setInt32(n+4*1,c,!0),d().setInt32(n+4*0,o,!0)}function Nn(){const n=_.memory;return i(n)}function Cn(n){const t=r(n).buffer;return i(t)}function $n(n,t,e){const o=new Uint8Array(r(n),t>>>0,e>>>0);return i(o)}function Vn(n){const t=new Uint8Array(r(n));return i(t)}function zn(n,t,e){const o=r(n).subarray(t>>>0,e>>>0);return i(o)}function Ln(){return l(function(n,t){r(n).getRandomValues(r(t))},arguments)}function Pn(){return l(function(n,t){r(n).randomFillSync(g(t))},arguments)}function Wn(n){const t=r(n).crypto;return i(t)}function Jn(n){const t=r(n).process;return i(t)}function Qn(n){const t=r(n).versions;return i(t)}function Hn(n){const t=r(n).node;return i(t)}function Gn(){return l(function(){const n=module.require;return i(n)},arguments)}function Kn(n){const t=r(n).msCrypto;return i(t)}function Xn(n){const t=new Uint8Array(n>>>0);return i(t)}function Yn(n){return typeof r(n)=="function"}function Zn(){return l(function(n,t){const e=r(n).call(r(t));return i(e)},arguments)}function nt(n,t){const e=r(n)[t>>>0];return i(e)}function tt(n){return r(n).valueOf()}function et(){return l(function(n){const t=r(n).next();return i(t)},arguments)}function rt(n){return r(n).done}function _t(n){const t=r(n).value;return i(t)}function ot(n){const t=r(n).next;return i(t)}function ct(){return l(function(n,t){const e=Reflect.get(r(n),r(t));return i(e)},arguments)}function it(){return l(function(){const n=self.self;return i(n)},arguments)}function ut(){return l(function(){const n=window.window;return i(n)},arguments)}function st(){return l(function(){const n=globalThis.globalThis;return i(n)},arguments)}function ft(){return l(function(){const n=global.global;return i(n)},arguments)}function at(n,t){const e=new S(T(n,t));return i(e)}function bt(n){return Array.isArray(r(n))}function gt(){return l(function(n,t,e){const o=r(n).call(r(t),r(e));return i(o)},arguments)}function lt(n){return Number.isSafeInteger(r(n))}function dt(){return l(function(n,t,e){return Reflect.set(r(n),r(t),r(e))},arguments)}function wt(){return l(function(n){const t=JSON.stringify(r(n));return i(t)},arguments)}function pt(n,t,e){r(n).set(r(t),e>>>0)}function xt(n){return r(n).length}function mt(){return l(function(){return Date.now()},arguments)}function yt(n,t){return r(n)==r(t)}function ht(n){let t;try{t=r(n)instanceof Uint8Array}catch{t=!1}return t}function Tt(n){let t;try{t=r(n)instanceof ArrayBuffer}catch{t=!1}return t}function It(n){const t=Object.entries(r(n));return i(t)}function St(n,t){throw new Error(T(n,t))}function jt(n,t){const e=r(t),o=typeof e=="bigint"?e:void 0;d().setBigInt64(n+8*1,y(o)?BigInt(0):o,!0),d().setInt32(n+4*0,!y(o),!0)}function At(n,t){const e=k(r(t)),o=b(e,_.__wbindgen_malloc,_.__wbindgen_realloc),c=a;d().setInt32(n+4*1,c,!0),d().setInt32(n+4*0,o,!0)}function Ot(n){const t=g(n).original;return t.cnt--==1?(t.a=0,!0):!1}function qt(n,t){const e=r(n).then(r(t));return i(e)}function kt(n,t,e){const o=r(n).then(r(t),r(e));return i(o)}function vt(n){const t=Promise.resolve(r(n));return i(t)}function Et(n,t,e){const o=Q(n,t,548,H);return i(o)}0&&(module.exports={QueryEngine,__wbg_String_88810dfeb4021902,__wbg_buffer_b7b08af79b0b0974,__wbg_call_1084a111329e68ce,__wbg_call_89af060b4e1523f2,__wbg_crypto_58f13aa23ffcb166,__wbg_done_bfda7aa8f252b39f,__wbg_entries_7a0e06255456ebcd,__wbg_getRandomValues_504510b5564925af,__wbg_getTime_91058879093a1589,__wbg_get_224d16597dbbfd96,__wbg_get_3baa728f9d58d3f6,__wbg_get_94990005bd6ca07c,__wbg_getwithrefkey_5e6d9547403deab8,__wbg_globalThis_86b222e13bdf32ed,__wbg_global_e5a3fe56f8be9485,__wbg_has_4bfbc01db38743f7,__wbg_instanceof_ArrayBuffer_61dfc3198373c902,__wbg_instanceof_Promise_ae8c7ffdec83f2ae,__wbg_instanceof_Uint8Array_247a91427532499e,__wbg_isArray_8364a5371e9737d8,__wbg_isSafeInteger_7f1ed56200d90674,__wbg_iterator_888179a48810a9fe,__wbg_keys_7840ae453e408eab,__wbg_length_8339fcf5d8ecd12e,__wbg_length_ae22078168b726f5,__wbg_msCrypto_abcb1295e768d1f2,__wbg_new0_65387337a95cf44d,__wbg_new_525245e2b9901204,__wbg_new_8608a2b51a5f6737,__wbg_new_a220cf903aa02ca2,__wbg_new_b85e72ed1bfd57f9,__wbg_new_ea1883e1e5e86686,__wbg_newnoargs_76313bd6ff35d0f2,__wbg_newwithbyteoffsetandlength_8a2cb9ca96b27ec9,__wbg_newwithlength_ec548f448387c968,__wbg_next_de3e9db4440638b2,__wbg_next_f9cb570345655b9a,__wbg_node_523d7bd03ef69fba,__wbg_now_28a6b413aca4a96a,__wbg_now_8ed1a4454e40ecd1,__wbg_now_b7a162010a9e75b4,__wbg_parse_52202f117ec9ecfa,__wbg_process_5b786e71d465a513,__wbg_push_37c89022f34c01ca,__wbg_randomFillSync_a0d98aa11c81fe89,__wbg_require_2784e593a4674877,__wbg_resolve_570458cb99d56a43,__wbg_self_3093d5d1f7bcb682,__wbg_setTimeout_631fe61f31fa2fad,__wbg_set_49185437f0ab06f8,__wbg_set_673dda6c73d19609,__wbg_set_841ac57cff3d672b,__wbg_set_d1e79e2388520f18,__wbg_set_eacc7d73fefaafdf,__wbg_set_wasm,__wbg_stringify_bbf45426c92a6bf5,__wbg_subarray_7c2e3576afe181d1,__wbg_then_876bb3c633745cc6,__wbg_then_95e6edc0f89b73b1,__wbg_valueOf_c759749a331da0c0,__wbg_value_6d39332ab4788d86,__wbg_versions_c2ab80650590b6a2,__wbg_window_3bcfc4d31bc012f8,__wbindgen_bigint_from_i64,__wbindgen_bigint_from_u64,__wbindgen_bigint_get_as_i64,__wbindgen_boolean_get,__wbindgen_cb_drop,__wbindgen_closure_wrapper7235,__wbindgen_debug_string,__wbindgen_error_new,__wbindgen_in,__wbindgen_is_bigint,__wbindgen_is_function,__wbindgen_is_object,__wbindgen_is_string,__wbindgen_is_undefined,__wbindgen_jsval_eq,__wbindgen_jsval_loose_eq,__wbindgen_memory,__wbindgen_number_get,__wbindgen_number_new,__wbindgen_object_clone_ref,__wbindgen_object_drop_ref,__wbindgen_string_get,__wbindgen_string_new,__wbindgen_throw,debug_panic,getBuildTimeInfo});
1
+ "use strict";var q=Object.defineProperty;var U=Object.getOwnPropertyDescriptor;var B=Object.getOwnPropertyNames;var N=Object.prototype.hasOwnProperty;var C=(n,t)=>{for(var e in t)q(n,e,{get:t[e],enumerable:!0})},$=(n,t,e,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let c of B(t))!N.call(n,c)&&c!==e&&q(n,c,{get:()=>t[c],enumerable:!(o=U(t,c))||o.enumerable});return n};var V=n=>$(q({},"__esModule",{value:!0}),n);var Ft={};C(Ft,{QueryEngine:()=>Y,__wbg_String_88810dfeb4021902:()=>Bn,__wbg_buffer_b7b08af79b0b0974:()=>Cn,__wbg_call_1084a111329e68ce:()=>Zn,__wbg_call_89af060b4e1523f2:()=>gt,__wbg_crypto_58f13aa23ffcb166:()=>Wn,__wbg_done_bfda7aa8f252b39f:()=>rt,__wbg_entries_7a0e06255456ebcd:()=>It,__wbg_getRandomValues_504510b5564925af:()=>Ln,__wbg_getTime_91058879093a1589:()=>fn,__wbg_get_224d16597dbbfd96:()=>ct,__wbg_get_3baa728f9d58d3f6:()=>nt,__wbg_get_94990005bd6ca07c:()=>Un,__wbg_getwithrefkey_5e6d9547403deab8:()=>Dn,__wbg_globalThis_86b222e13bdf32ed:()=>st,__wbg_global_e5a3fe56f8be9485:()=>ft,__wbg_has_4bfbc01db38743f7:()=>cn,__wbg_instanceof_ArrayBuffer_61dfc3198373c902:()=>Tt,__wbg_instanceof_Promise_ae8c7ffdec83f2ae:()=>wn,__wbg_instanceof_Uint8Array_247a91427532499e:()=>ht,__wbg_isArray_8364a5371e9737d8:()=>bt,__wbg_isSafeInteger_7f1ed56200d90674:()=>lt,__wbg_iterator_888179a48810a9fe:()=>xn,__wbg_keys_7840ae453e408eab:()=>gn,__wbg_length_8339fcf5d8ecd12e:()=>xt,__wbg_length_ae22078168b726f5:()=>ln,__wbg_msCrypto_abcb1295e768d1f2:()=>Kn,__wbg_new0_65387337a95cf44d:()=>sn,__wbg_new_525245e2b9901204:()=>vn,__wbg_new_8608a2b51a5f6737:()=>kn,__wbg_new_a220cf903aa02ca2:()=>On,__wbg_new_b85e72ed1bfd57f9:()=>nn,__wbg_new_ea1883e1e5e86686:()=>Vn,__wbg_newnoargs_76313bd6ff35d0f2:()=>at,__wbg_newwithbyteoffsetandlength_8a2cb9ca96b27ec9:()=>$n,__wbg_newwithlength_ec548f448387c968:()=>Xn,__wbg_next_de3e9db4440638b2:()=>ot,__wbg_next_f9cb570345655b9a:()=>et,__wbg_node_523d7bd03ef69fba:()=>Hn,__wbg_now_28a6b413aca4a96a:()=>mt,__wbg_now_8ed1a4454e40ecd1:()=>an,__wbg_now_b7a162010a9e75b4:()=>bn,__wbg_parse_52202f117ec9ecfa:()=>un,__wbg_process_5b786e71d465a513:()=>Jn,__wbg_push_37c89022f34c01ca:()=>Mn,__wbg_randomFillSync_a0d98aa11c81fe89:()=>Pn,__wbg_require_2784e593a4674877:()=>Gn,__wbg_resolve_570458cb99d56a43:()=>vt,__wbg_self_3093d5d1f7bcb682:()=>it,__wbg_setTimeout_631fe61f31fa2fad:()=>tn,__wbg_set_49185437f0ab06f8:()=>En,__wbg_set_673dda6c73d19609:()=>qn,__wbg_set_841ac57cff3d672b:()=>Rn,__wbg_set_d1e79e2388520f18:()=>pt,__wbg_set_eacc7d73fefaafdf:()=>dt,__wbg_set_wasm:()=>z,__wbg_stringify_bbf45426c92a6bf5:()=>wt,__wbg_subarray_7c2e3576afe181d1:()=>zn,__wbg_then_876bb3c633745cc6:()=>kt,__wbg_then_95e6edc0f89b73b1:()=>qt,__wbg_valueOf_c759749a331da0c0:()=>tt,__wbg_value_6d39332ab4788d86:()=>_t,__wbg_versions_c2ab80650590b6a2:()=>Qn,__wbg_window_3bcfc4d31bc012f8:()=>ut,__wbindgen_bigint_from_i64:()=>Tn,__wbindgen_bigint_from_u64:()=>Sn,__wbindgen_bigint_get_as_i64:()=>jt,__wbindgen_boolean_get:()=>mn,__wbindgen_cb_drop:()=>Ot,__wbindgen_closure_wrapper7236:()=>Et,__wbindgen_debug_string:()=>At,__wbindgen_error_new:()=>rn,__wbindgen_in:()=>In,__wbindgen_is_bigint:()=>yn,__wbindgen_is_function:()=>Yn,__wbindgen_is_object:()=>pn,__wbindgen_is_string:()=>Fn,__wbindgen_is_undefined:()=>on,__wbindgen_jsval_eq:()=>jn,__wbindgen_jsval_loose_eq:()=>yt,__wbindgen_memory:()=>Nn,__wbindgen_number_get:()=>hn,__wbindgen_number_new:()=>An,__wbindgen_object_clone_ref:()=>_n,__wbindgen_object_drop_ref:()=>dn,__wbindgen_string_get:()=>Z,__wbindgen_string_new:()=>en,__wbindgen_throw:()=>St,debug_panic:()=>K,getBuildTimeInfo:()=>G});module.exports=V(Ft);var S=()=>{};S.prototype=S;let _;function z(n){_=n}const p=new Array(128).fill(void 0);p.push(void 0,null,!0,!1);function r(n){return p[n]}let a=0,j=null;function A(){return(j===null||j.byteLength===0)&&(j=new Uint8Array(_.memory.buffer)),j}const L=typeof TextEncoder>"u"?(0,module.require)("util").TextEncoder:TextEncoder;let O=new L("utf-8");const P=typeof O.encodeInto=="function"?function(n,t){return O.encodeInto(n,t)}:function(n,t){const e=O.encode(n);return t.set(e),{read:n.length,written:e.length}};function b(n,t,e){if(e===void 0){const s=O.encode(n),w=t(s.length,1)>>>0;return A().subarray(w,w+s.length).set(s),a=s.length,w}let o=n.length,c=t(o,1)>>>0;const f=A();let u=0;for(;u<o;u++){const s=n.charCodeAt(u);if(s>127)break;f[c+u]=s}if(u!==o){u!==0&&(n=n.slice(u)),c=e(c,o,o=u+n.length*3,1)>>>0;const s=A().subarray(c+u,c+o),w=P(n,s);u+=w.written,c=e(c,o,u,1)>>>0}return a=u,c}function y(n){return n==null}let h=null;function d(){return(h===null||h.buffer.detached===!0||h.buffer.detached===void 0&&h.buffer!==_.memory.buffer)&&(h=new DataView(_.memory.buffer)),h}const W=typeof TextDecoder>"u"?(0,module.require)("util").TextDecoder:TextDecoder;let v=new W("utf-8",{ignoreBOM:!0,fatal:!0});v.decode();function T(n,t){return n=n>>>0,v.decode(A().subarray(n,n+t))}let I=p.length;function i(n){I===p.length&&p.push(p.length+1);const t=I;return I=p[t],p[t]=n,t}function J(n){n<132||(p[n]=I,I=n)}function g(n){const t=r(n);return J(n),t}function k(n){const t=typeof n;if(t=="number"||t=="boolean"||n==null)return`${n}`;if(t=="string")return`"${n}"`;if(t=="symbol"){const c=n.description;return c==null?"Symbol":`Symbol(${c})`}if(t=="function"){const c=n.name;return typeof c=="string"&&c.length>0?`Function(${c})`:"Function"}if(Array.isArray(n)){const c=n.length;let f="[";c>0&&(f+=k(n[0]));for(let u=1;u<c;u++)f+=", "+k(n[u]);return f+="]",f}const e=/\[object ([^\]]+)\]/.exec(toString.call(n));let o;if(e.length>1)o=e[1];else return toString.call(n);if(o=="Object")try{return"Object("+JSON.stringify(n)+")"}catch{return"Object"}return n instanceof Error?`${n.name}: ${n.message}
2
+ ${n.stack}`:o}const E=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>{_.__wbindgen_export_2.get(n.dtor)(n.a,n.b)});function Q(n,t,e,o){const c={a:n,b:t,cnt:1,dtor:e},f=(...u)=>{c.cnt++;const s=c.a;c.a=0;try{return o(s,c.b,...u)}finally{--c.cnt===0?(_.__wbindgen_export_2.get(c.dtor)(s,c.b),E.unregister(c)):c.a=s}};return f.original=c,E.register(f,c,c),f}function H(n,t,e){_._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h92ff5ab9e3740637(n,t,i(e))}function G(){const n=_.getBuildTimeInfo();return g(n)}function K(n){try{const f=_.__wbindgen_add_to_stack_pointer(-16);var t=y(n)?0:b(n,_.__wbindgen_malloc,_.__wbindgen_realloc),e=a;_.debug_panic(f,t,e);var o=d().getInt32(f+4*0,!0),c=d().getInt32(f+4*1,!0);if(c)throw g(o)}finally{_.__wbindgen_add_to_stack_pointer(16)}}function l(n,t){try{return n.apply(this,t)}catch(e){_.__wbindgen_exn_store(i(e))}}function X(n,t,e,o){_.wasm_bindgen__convert__closures__invoke2_mut__h2dd59201d446cc9a(n,t,i(e),i(o))}const F=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>_.__wbg_queryengine_free(n>>>0,1));class Y{__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,F.unregister(this),t}free(){const t=this.__destroy_into_raw();_.__wbg_queryengine_free(t,0)}constructor(t,e,o){try{const s=_.__wbindgen_add_to_stack_pointer(-16);_.queryengine_new(s,i(t),i(e),i(o));var c=d().getInt32(s+4*0,!0),f=d().getInt32(s+4*1,!0),u=d().getInt32(s+4*2,!0);if(u)throw g(f);return this.__wbg_ptr=c>>>0,F.register(this,this.__wbg_ptr,this),this}finally{_.__wbindgen_add_to_stack_pointer(16)}}connect(t,e){const o=b(t,_.__wbindgen_malloc,_.__wbindgen_realloc),c=a,f=b(e,_.__wbindgen_malloc,_.__wbindgen_realloc),u=a,s=_.queryengine_connect(this.__wbg_ptr,o,c,f,u);return g(s)}disconnect(t,e){const o=b(t,_.__wbindgen_malloc,_.__wbindgen_realloc),c=a,f=b(e,_.__wbindgen_malloc,_.__wbindgen_realloc),u=a,s=_.queryengine_disconnect(this.__wbg_ptr,o,c,f,u);return g(s)}query(t,e,o,c){const f=b(t,_.__wbindgen_malloc,_.__wbindgen_realloc),u=a,s=b(e,_.__wbindgen_malloc,_.__wbindgen_realloc),w=a;var x=y(o)?0:b(o,_.__wbindgen_malloc,_.__wbindgen_realloc),m=a;const R=b(c,_.__wbindgen_malloc,_.__wbindgen_realloc),D=a,M=_.queryengine_query(this.__wbg_ptr,f,u,s,w,x,m,R,D);return g(M)}startTransaction(t,e,o){const c=b(t,_.__wbindgen_malloc,_.__wbindgen_realloc),f=a,u=b(e,_.__wbindgen_malloc,_.__wbindgen_realloc),s=a,w=b(o,_.__wbindgen_malloc,_.__wbindgen_realloc),x=a,m=_.queryengine_startTransaction(this.__wbg_ptr,c,f,u,s,w,x);return g(m)}commitTransaction(t,e,o){const c=b(t,_.__wbindgen_malloc,_.__wbindgen_realloc),f=a,u=b(e,_.__wbindgen_malloc,_.__wbindgen_realloc),s=a,w=b(o,_.__wbindgen_malloc,_.__wbindgen_realloc),x=a,m=_.queryengine_commitTransaction(this.__wbg_ptr,c,f,u,s,w,x);return g(m)}rollbackTransaction(t,e,o){const c=b(t,_.__wbindgen_malloc,_.__wbindgen_realloc),f=a,u=b(e,_.__wbindgen_malloc,_.__wbindgen_realloc),s=a,w=b(o,_.__wbindgen_malloc,_.__wbindgen_realloc),x=a,m=_.queryengine_rollbackTransaction(this.__wbg_ptr,c,f,u,s,w,x);return g(m)}metrics(t){const e=b(t,_.__wbindgen_malloc,_.__wbindgen_realloc),o=a,c=_.queryengine_metrics(this.__wbg_ptr,e,o);return g(c)}trace(t){const e=b(t,_.__wbindgen_malloc,_.__wbindgen_realloc),o=a,c=_.queryengine_trace(this.__wbg_ptr,e,o);return g(c)}}function Z(n,t){const e=r(t),o=typeof e=="string"?e:void 0;var c=y(o)?0:b(o,_.__wbindgen_malloc,_.__wbindgen_realloc),f=a;d().setInt32(n+4*1,f,!0),d().setInt32(n+4*0,c,!0)}function nn(n,t){try{var e={a:n,b:t},o=(f,u)=>{const s=e.a;e.a=0;try{return X(s,e.b,f,u)}finally{e.a=s}};const c=new Promise(o);return i(c)}finally{e.a=e.b=0}}function tn(n,t){return setTimeout(r(n),t>>>0)}function en(n,t){const e=T(n,t);return i(e)}function rn(n,t){const e=new Error(T(n,t));return i(e)}function _n(n){const t=r(n);return i(t)}function on(n){return r(n)===void 0}function cn(){return l(function(n,t){return Reflect.has(r(n),r(t))},arguments)}function un(){return l(function(n,t){const e=JSON.parse(T(n,t));return i(e)},arguments)}function sn(){return i(new Date)}function fn(n){return r(n).getTime()}function an(n){return r(n).now()}function bn(){return Date.now()}function gn(n){const t=Object.keys(r(n));return i(t)}function ln(n){return r(n).length}function dn(n){g(n)}function wn(n){let t;try{t=r(n)instanceof Promise}catch{t=!1}return t}function pn(n){const t=r(n);return typeof t=="object"&&t!==null}function xn(){return i(Symbol.iterator)}function mn(n){const t=r(n);return typeof t=="boolean"?t?1:0:2}function yn(n){return typeof r(n)=="bigint"}function hn(n,t){const e=r(t),o=typeof e=="number"?e:void 0;d().setFloat64(n+8*1,y(o)?0:o,!0),d().setInt32(n+4*0,!y(o),!0)}function Tn(n){return i(n)}function In(n,t){return r(n)in r(t)}function Sn(n){const t=BigInt.asUintN(64,n);return i(t)}function jn(n,t){return r(n)===r(t)}function An(n){return i(n)}function On(){const n=new Array;return i(n)}function qn(n,t,e){r(n)[t>>>0]=g(e)}function kn(){return i(new Map)}function vn(){const n=new Object;return i(n)}function En(n,t,e){const o=r(n).set(r(t),r(e));return i(o)}function Fn(n){return typeof r(n)=="string"}function Rn(n,t,e){r(n)[g(t)]=g(e)}function Dn(n,t){const e=r(n)[r(t)];return i(e)}function Mn(n,t){return r(n).push(r(t))}function Un(){return l(function(n,t){const e=r(n)[g(t)];return i(e)},arguments)}function Bn(n,t){const e=String(r(t)),o=b(e,_.__wbindgen_malloc,_.__wbindgen_realloc),c=a;d().setInt32(n+4*1,c,!0),d().setInt32(n+4*0,o,!0)}function Nn(){const n=_.memory;return i(n)}function Cn(n){const t=r(n).buffer;return i(t)}function $n(n,t,e){const o=new Uint8Array(r(n),t>>>0,e>>>0);return i(o)}function Vn(n){const t=new Uint8Array(r(n));return i(t)}function zn(n,t,e){const o=r(n).subarray(t>>>0,e>>>0);return i(o)}function Ln(){return l(function(n,t){r(n).getRandomValues(r(t))},arguments)}function Pn(){return l(function(n,t){r(n).randomFillSync(g(t))},arguments)}function Wn(n){const t=r(n).crypto;return i(t)}function Jn(n){const t=r(n).process;return i(t)}function Qn(n){const t=r(n).versions;return i(t)}function Hn(n){const t=r(n).node;return i(t)}function Gn(){return l(function(){const n=module.require;return i(n)},arguments)}function Kn(n){const t=r(n).msCrypto;return i(t)}function Xn(n){const t=new Uint8Array(n>>>0);return i(t)}function Yn(n){return typeof r(n)=="function"}function Zn(){return l(function(n,t){const e=r(n).call(r(t));return i(e)},arguments)}function nt(n,t){const e=r(n)[t>>>0];return i(e)}function tt(n){return r(n).valueOf()}function et(){return l(function(n){const t=r(n).next();return i(t)},arguments)}function rt(n){return r(n).done}function _t(n){const t=r(n).value;return i(t)}function ot(n){const t=r(n).next;return i(t)}function ct(){return l(function(n,t){const e=Reflect.get(r(n),r(t));return i(e)},arguments)}function it(){return l(function(){const n=self.self;return i(n)},arguments)}function ut(){return l(function(){const n=window.window;return i(n)},arguments)}function st(){return l(function(){const n=globalThis.globalThis;return i(n)},arguments)}function ft(){return l(function(){const n=global.global;return i(n)},arguments)}function at(n,t){const e=new S(T(n,t));return i(e)}function bt(n){return Array.isArray(r(n))}function gt(){return l(function(n,t,e){const o=r(n).call(r(t),r(e));return i(o)},arguments)}function lt(n){return Number.isSafeInteger(r(n))}function dt(){return l(function(n,t,e){return Reflect.set(r(n),r(t),r(e))},arguments)}function wt(){return l(function(n){const t=JSON.stringify(r(n));return i(t)},arguments)}function pt(n,t,e){r(n).set(r(t),e>>>0)}function xt(n){return r(n).length}function mt(){return l(function(){return Date.now()},arguments)}function yt(n,t){return r(n)==r(t)}function ht(n){let t;try{t=r(n)instanceof Uint8Array}catch{t=!1}return t}function Tt(n){let t;try{t=r(n)instanceof ArrayBuffer}catch{t=!1}return t}function It(n){const t=Object.entries(r(n));return i(t)}function St(n,t){throw new Error(T(n,t))}function jt(n,t){const e=r(t),o=typeof e=="bigint"?e:void 0;d().setBigInt64(n+8*1,y(o)?BigInt(0):o,!0),d().setInt32(n+4*0,!y(o),!0)}function At(n,t){const e=k(r(t)),o=b(e,_.__wbindgen_malloc,_.__wbindgen_realloc),c=a;d().setInt32(n+4*1,c,!0),d().setInt32(n+4*0,o,!0)}function Ot(n){const t=g(n).original;return t.cnt--==1?(t.a=0,!0):!1}function qt(n,t){const e=r(n).then(r(t));return i(e)}function kt(n,t,e){const o=r(n).then(r(t),r(e));return i(o)}function vt(n){const t=Promise.resolve(r(n));return i(t)}function Et(n,t,e){const o=Q(n,t,548,H);return i(o)}0&&(module.exports={QueryEngine,__wbg_String_88810dfeb4021902,__wbg_buffer_b7b08af79b0b0974,__wbg_call_1084a111329e68ce,__wbg_call_89af060b4e1523f2,__wbg_crypto_58f13aa23ffcb166,__wbg_done_bfda7aa8f252b39f,__wbg_entries_7a0e06255456ebcd,__wbg_getRandomValues_504510b5564925af,__wbg_getTime_91058879093a1589,__wbg_get_224d16597dbbfd96,__wbg_get_3baa728f9d58d3f6,__wbg_get_94990005bd6ca07c,__wbg_getwithrefkey_5e6d9547403deab8,__wbg_globalThis_86b222e13bdf32ed,__wbg_global_e5a3fe56f8be9485,__wbg_has_4bfbc01db38743f7,__wbg_instanceof_ArrayBuffer_61dfc3198373c902,__wbg_instanceof_Promise_ae8c7ffdec83f2ae,__wbg_instanceof_Uint8Array_247a91427532499e,__wbg_isArray_8364a5371e9737d8,__wbg_isSafeInteger_7f1ed56200d90674,__wbg_iterator_888179a48810a9fe,__wbg_keys_7840ae453e408eab,__wbg_length_8339fcf5d8ecd12e,__wbg_length_ae22078168b726f5,__wbg_msCrypto_abcb1295e768d1f2,__wbg_new0_65387337a95cf44d,__wbg_new_525245e2b9901204,__wbg_new_8608a2b51a5f6737,__wbg_new_a220cf903aa02ca2,__wbg_new_b85e72ed1bfd57f9,__wbg_new_ea1883e1e5e86686,__wbg_newnoargs_76313bd6ff35d0f2,__wbg_newwithbyteoffsetandlength_8a2cb9ca96b27ec9,__wbg_newwithlength_ec548f448387c968,__wbg_next_de3e9db4440638b2,__wbg_next_f9cb570345655b9a,__wbg_node_523d7bd03ef69fba,__wbg_now_28a6b413aca4a96a,__wbg_now_8ed1a4454e40ecd1,__wbg_now_b7a162010a9e75b4,__wbg_parse_52202f117ec9ecfa,__wbg_process_5b786e71d465a513,__wbg_push_37c89022f34c01ca,__wbg_randomFillSync_a0d98aa11c81fe89,__wbg_require_2784e593a4674877,__wbg_resolve_570458cb99d56a43,__wbg_self_3093d5d1f7bcb682,__wbg_setTimeout_631fe61f31fa2fad,__wbg_set_49185437f0ab06f8,__wbg_set_673dda6c73d19609,__wbg_set_841ac57cff3d672b,__wbg_set_d1e79e2388520f18,__wbg_set_eacc7d73fefaafdf,__wbg_set_wasm,__wbg_stringify_bbf45426c92a6bf5,__wbg_subarray_7c2e3576afe181d1,__wbg_then_876bb3c633745cc6,__wbg_then_95e6edc0f89b73b1,__wbg_valueOf_c759749a331da0c0,__wbg_value_6d39332ab4788d86,__wbg_versions_c2ab80650590b6a2,__wbg_window_3bcfc4d31bc012f8,__wbindgen_bigint_from_i64,__wbindgen_bigint_from_u64,__wbindgen_bigint_get_as_i64,__wbindgen_boolean_get,__wbindgen_cb_drop,__wbindgen_closure_wrapper7236,__wbindgen_debug_string,__wbindgen_error_new,__wbindgen_in,__wbindgen_is_bigint,__wbindgen_is_function,__wbindgen_is_object,__wbindgen_is_string,__wbindgen_is_undefined,__wbindgen_jsval_eq,__wbindgen_jsval_loose_eq,__wbindgen_memory,__wbindgen_number_get,__wbindgen_number_new,__wbindgen_object_clone_ref,__wbindgen_object_drop_ref,__wbindgen_string_get,__wbindgen_string_new,__wbindgen_throw,debug_panic,getBuildTimeInfo});
@@ -1,2 +1,2 @@
1
- "use strict";var q=Object.defineProperty;var U=Object.getOwnPropertyDescriptor;var B=Object.getOwnPropertyNames;var N=Object.prototype.hasOwnProperty;var C=(n,e)=>{for(var t in e)q(n,t,{get:e[t],enumerable:!0})},$=(n,e,t,_)=>{if(e&&typeof e=="object"||typeof e=="function")for(let c of B(e))!N.call(n,c)&&c!==t&&q(n,c,{get:()=>e[c],enumerable:!(_=U(e,c))||_.enumerable});return n};var V=n=>$(q({},"__esModule",{value:!0}),n);var De={};C(De,{QueryEngine:()=>Y,__wbg_String_88810dfeb4021902:()=>Cn,__wbg_buffer_b7b08af79b0b0974:()=>Vn,__wbg_call_1084a111329e68ce:()=>ee,__wbg_call_89af060b4e1523f2:()=>de,__wbg_crypto_58f13aa23ffcb166:()=>Qn,__wbg_done_bfda7aa8f252b39f:()=>oe,__wbg_entries_7a0e06255456ebcd:()=>je,__wbg_exec_a29a4ce5544bd3be:()=>Bn,__wbg_getRandomValues_504510b5564925af:()=>Wn,__wbg_getTime_91058879093a1589:()=>fn,__wbg_get_224d16597dbbfd96:()=>ue,__wbg_get_3baa728f9d58d3f6:()=>te,__wbg_get_94990005bd6ca07c:()=>Nn,__wbg_getwithrefkey_5e6d9547403deab8:()=>Dn,__wbg_globalThis_86b222e13bdf32ed:()=>ae,__wbg_global_e5a3fe56f8be9485:()=>be,__wbg_has_4bfbc01db38743f7:()=>cn,__wbg_instanceof_ArrayBuffer_61dfc3198373c902:()=>Se,__wbg_instanceof_Promise_ae8c7ffdec83f2ae:()=>wn,__wbg_instanceof_Uint8Array_247a91427532499e:()=>Ie,__wbg_isArray_8364a5371e9737d8:()=>le,__wbg_isSafeInteger_7f1ed56200d90674:()=>we,__wbg_iterator_888179a48810a9fe:()=>xn,__wbg_keys_7840ae453e408eab:()=>ln,__wbg_length_8339fcf5d8ecd12e:()=>ye,__wbg_length_ae22078168b726f5:()=>dn,__wbg_msCrypto_abcb1295e768d1f2:()=>Yn,__wbg_new0_65387337a95cf44d:()=>sn,__wbg_new_13847c66f41dda63:()=>Un,__wbg_new_525245e2b9901204:()=>En,__wbg_new_8608a2b51a5f6737:()=>kn,__wbg_new_a220cf903aa02ca2:()=>On,__wbg_new_b85e72ed1bfd57f9:()=>nn,__wbg_new_ea1883e1e5e86686:()=>Ln,__wbg_newnoargs_76313bd6ff35d0f2:()=>ge,__wbg_newwithbyteoffsetandlength_8a2cb9ca96b27ec9:()=>zn,__wbg_newwithlength_ec548f448387c968:()=>Zn,__wbg_next_de3e9db4440638b2:()=>ie,__wbg_next_f9cb570345655b9a:()=>_e,__wbg_node_523d7bd03ef69fba:()=>Kn,__wbg_now_28a6b413aca4a96a:()=>he,__wbg_now_8ed1a4454e40ecd1:()=>bn,__wbg_now_b7a162010a9e75b4:()=>gn,__wbg_parse_52202f117ec9ecfa:()=>un,__wbg_process_5b786e71d465a513:()=>Hn,__wbg_push_37c89022f34c01ca:()=>Mn,__wbg_randomFillSync_a0d98aa11c81fe89:()=>Jn,__wbg_require_2784e593a4674877:()=>Xn,__wbg_resolve_570458cb99d56a43:()=>Fe,__wbg_self_3093d5d1f7bcb682:()=>se,__wbg_setTimeout_631fe61f31fa2fad:()=>en,__wbg_set_49185437f0ab06f8:()=>vn,__wbg_set_673dda6c73d19609:()=>qn,__wbg_set_841ac57cff3d672b:()=>Rn,__wbg_set_d1e79e2388520f18:()=>me,__wbg_set_eacc7d73fefaafdf:()=>pe,__wbg_set_wasm:()=>z,__wbg_stringify_bbf45426c92a6bf5:()=>xe,__wbg_subarray_7c2e3576afe181d1:()=>Pn,__wbg_then_876bb3c633745cc6:()=>ve,__wbg_then_95e6edc0f89b73b1:()=>Ee,__wbg_valueOf_c759749a331da0c0:()=>re,__wbg_value_6d39332ab4788d86:()=>ce,__wbg_versions_c2ab80650590b6a2:()=>Gn,__wbg_window_3bcfc4d31bc012f8:()=>fe,__wbindgen_bigint_from_i64:()=>Tn,__wbindgen_bigint_from_u64:()=>Sn,__wbindgen_bigint_get_as_i64:()=>Oe,__wbindgen_boolean_get:()=>mn,__wbindgen_cb_drop:()=>ke,__wbindgen_closure_wrapper7295:()=>Re,__wbindgen_debug_string:()=>qe,__wbindgen_error_new:()=>rn,__wbindgen_in:()=>In,__wbindgen_is_bigint:()=>yn,__wbindgen_is_function:()=>ne,__wbindgen_is_object:()=>pn,__wbindgen_is_string:()=>Fn,__wbindgen_is_undefined:()=>on,__wbindgen_jsval_eq:()=>jn,__wbindgen_jsval_loose_eq:()=>Te,__wbindgen_memory:()=>$n,__wbindgen_number_get:()=>hn,__wbindgen_number_new:()=>An,__wbindgen_object_clone_ref:()=>_n,__wbindgen_object_drop_ref:()=>an,__wbindgen_string_get:()=>Z,__wbindgen_string_new:()=>tn,__wbindgen_throw:()=>Ae,debug_panic:()=>K,getBuildTimeInfo:()=>G});module.exports=V(De);var S=()=>{};S.prototype=S;let o;function z(n){o=n}const p=new Array(128).fill(void 0);p.push(void 0,null,!0,!1);function r(n){return p[n]}let a=0,j=null;function A(){return(j===null||j.byteLength===0)&&(j=new Uint8Array(o.memory.buffer)),j}const L=typeof TextEncoder>"u"?(0,module.require)("util").TextEncoder:TextEncoder;let O=new L("utf-8");const P=typeof O.encodeInto=="function"?function(n,e){return O.encodeInto(n,e)}:function(n,e){const t=O.encode(n);return e.set(t),{read:n.length,written:t.length}};function b(n,e,t){if(t===void 0){const s=O.encode(n),w=e(s.length,1)>>>0;return A().subarray(w,w+s.length).set(s),a=s.length,w}let _=n.length,c=e(_,1)>>>0;const f=A();let u=0;for(;u<_;u++){const s=n.charCodeAt(u);if(s>127)break;f[c+u]=s}if(u!==_){u!==0&&(n=n.slice(u)),c=t(c,_,_=u+n.length*3,1)>>>0;const s=A().subarray(c+u,c+_),w=P(n,s);u+=w.written,c=t(c,_,u,1)>>>0}return a=u,c}function x(n){return n==null}let T=null;function d(){return(T===null||T.buffer.detached===!0||T.buffer.detached===void 0&&T.buffer!==o.memory.buffer)&&(T=new DataView(o.memory.buffer)),T}const W=typeof TextDecoder>"u"?(0,module.require)("util").TextDecoder:TextDecoder;let E=new W("utf-8",{ignoreBOM:!0,fatal:!0});E.decode();function m(n,e){return n=n>>>0,E.decode(A().subarray(n,n+e))}let I=p.length;function i(n){I===p.length&&p.push(p.length+1);const e=I;return I=p[e],p[e]=n,e}function J(n){n<132||(p[n]=I,I=n)}function g(n){const e=r(n);return J(n),e}function k(n){const e=typeof n;if(e=="number"||e=="boolean"||n==null)return`${n}`;if(e=="string")return`"${n}"`;if(e=="symbol"){const c=n.description;return c==null?"Symbol":`Symbol(${c})`}if(e=="function"){const c=n.name;return typeof c=="string"&&c.length>0?`Function(${c})`:"Function"}if(Array.isArray(n)){const c=n.length;let f="[";c>0&&(f+=k(n[0]));for(let u=1;u<c;u++)f+=", "+k(n[u]);return f+="]",f}const t=/\[object ([^\]]+)\]/.exec(toString.call(n));let _;if(t.length>1)_=t[1];else return toString.call(n);if(_=="Object")try{return"Object("+JSON.stringify(n)+")"}catch{return"Object"}return n instanceof Error?`${n.name}: ${n.message}
2
- ${n.stack}`:_}const v=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>{o.__wbindgen_export_2.get(n.dtor)(n.a,n.b)});function Q(n,e,t,_){const c={a:n,b:e,cnt:1,dtor:t},f=(...u)=>{c.cnt++;const s=c.a;c.a=0;try{return _(s,c.b,...u)}finally{--c.cnt===0?(o.__wbindgen_export_2.get(c.dtor)(s,c.b),v.unregister(c)):c.a=s}};return f.original=c,v.register(f,c,c),f}function H(n,e,t){o._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h92ff5ab9e3740637(n,e,i(t))}function G(){const n=o.getBuildTimeInfo();return g(n)}function K(n){try{const f=o.__wbindgen_add_to_stack_pointer(-16);var e=x(n)?0:b(n,o.__wbindgen_malloc,o.__wbindgen_realloc),t=a;o.debug_panic(f,e,t);var _=d().getInt32(f+4*0,!0),c=d().getInt32(f+4*1,!0);if(c)throw g(_)}finally{o.__wbindgen_add_to_stack_pointer(16)}}function l(n,e){try{return n.apply(this,e)}catch(t){o.__wbindgen_exn_store(i(t))}}function X(n,e,t,_){o.wasm_bindgen__convert__closures__invoke2_mut__h2dd59201d446cc9a(n,e,i(t),i(_))}const F=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>o.__wbg_queryengine_free(n>>>0,1));class Y{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,F.unregister(this),e}free(){const e=this.__destroy_into_raw();o.__wbg_queryengine_free(e,0)}constructor(e,t,_){try{const s=o.__wbindgen_add_to_stack_pointer(-16);o.queryengine_new(s,i(e),i(t),i(_));var c=d().getInt32(s+4*0,!0),f=d().getInt32(s+4*1,!0),u=d().getInt32(s+4*2,!0);if(u)throw g(f);return this.__wbg_ptr=c>>>0,F.register(this,this.__wbg_ptr,this),this}finally{o.__wbindgen_add_to_stack_pointer(16)}}connect(e,t){const _=b(e,o.__wbindgen_malloc,o.__wbindgen_realloc),c=a,f=b(t,o.__wbindgen_malloc,o.__wbindgen_realloc),u=a,s=o.queryengine_connect(this.__wbg_ptr,_,c,f,u);return g(s)}disconnect(e,t){const _=b(e,o.__wbindgen_malloc,o.__wbindgen_realloc),c=a,f=b(t,o.__wbindgen_malloc,o.__wbindgen_realloc),u=a,s=o.queryengine_disconnect(this.__wbg_ptr,_,c,f,u);return g(s)}query(e,t,_,c){const f=b(e,o.__wbindgen_malloc,o.__wbindgen_realloc),u=a,s=b(t,o.__wbindgen_malloc,o.__wbindgen_realloc),w=a;var y=x(_)?0:b(_,o.__wbindgen_malloc,o.__wbindgen_realloc),h=a;const R=b(c,o.__wbindgen_malloc,o.__wbindgen_realloc),D=a,M=o.queryengine_query(this.__wbg_ptr,f,u,s,w,y,h,R,D);return g(M)}startTransaction(e,t,_){const c=b(e,o.__wbindgen_malloc,o.__wbindgen_realloc),f=a,u=b(t,o.__wbindgen_malloc,o.__wbindgen_realloc),s=a,w=b(_,o.__wbindgen_malloc,o.__wbindgen_realloc),y=a,h=o.queryengine_startTransaction(this.__wbg_ptr,c,f,u,s,w,y);return g(h)}commitTransaction(e,t,_){const c=b(e,o.__wbindgen_malloc,o.__wbindgen_realloc),f=a,u=b(t,o.__wbindgen_malloc,o.__wbindgen_realloc),s=a,w=b(_,o.__wbindgen_malloc,o.__wbindgen_realloc),y=a,h=o.queryengine_commitTransaction(this.__wbg_ptr,c,f,u,s,w,y);return g(h)}rollbackTransaction(e,t,_){const c=b(e,o.__wbindgen_malloc,o.__wbindgen_realloc),f=a,u=b(t,o.__wbindgen_malloc,o.__wbindgen_realloc),s=a,w=b(_,o.__wbindgen_malloc,o.__wbindgen_realloc),y=a,h=o.queryengine_rollbackTransaction(this.__wbg_ptr,c,f,u,s,w,y);return g(h)}metrics(e){const t=b(e,o.__wbindgen_malloc,o.__wbindgen_realloc),_=a,c=o.queryengine_metrics(this.__wbg_ptr,t,_);return g(c)}trace(e){const t=b(e,o.__wbindgen_malloc,o.__wbindgen_realloc),_=a,c=o.queryengine_trace(this.__wbg_ptr,t,_);return g(c)}}function Z(n,e){const t=r(e),_=typeof t=="string"?t:void 0;var c=x(_)?0:b(_,o.__wbindgen_malloc,o.__wbindgen_realloc),f=a;d().setInt32(n+4*1,f,!0),d().setInt32(n+4*0,c,!0)}function nn(n,e){try{var t={a:n,b:e},_=(f,u)=>{const s=t.a;t.a=0;try{return X(s,t.b,f,u)}finally{t.a=s}};const c=new Promise(_);return i(c)}finally{t.a=t.b=0}}function en(n,e){return setTimeout(r(n),e>>>0)}function tn(n,e){const t=m(n,e);return i(t)}function rn(n,e){const t=new Error(m(n,e));return i(t)}function _n(n){const e=r(n);return i(e)}function on(n){return r(n)===void 0}function cn(){return l(function(n,e){return Reflect.has(r(n),r(e))},arguments)}function un(){return l(function(n,e){const t=JSON.parse(m(n,e));return i(t)},arguments)}function sn(){return i(new Date)}function fn(n){return r(n).getTime()}function an(n){g(n)}function bn(n){return r(n).now()}function gn(){return Date.now()}function ln(n){const e=Object.keys(r(n));return i(e)}function dn(n){return r(n).length}function wn(n){let e;try{e=r(n)instanceof Promise}catch{e=!1}return e}function pn(n){const e=r(n);return typeof e=="object"&&e!==null}function xn(){return i(Symbol.iterator)}function mn(n){const e=r(n);return typeof e=="boolean"?e?1:0:2}function yn(n){return typeof r(n)=="bigint"}function hn(n,e){const t=r(e),_=typeof t=="number"?t:void 0;d().setFloat64(n+8*1,x(_)?0:_,!0),d().setInt32(n+4*0,!x(_),!0)}function Tn(n){return i(n)}function In(n,e){return r(n)in r(e)}function Sn(n){const e=BigInt.asUintN(64,n);return i(e)}function jn(n,e){return r(n)===r(e)}function An(n){return i(n)}function On(){const n=new Array;return i(n)}function qn(n,e,t){r(n)[e>>>0]=g(t)}function kn(){return i(new Map)}function En(){const n=new Object;return i(n)}function vn(n,e,t){const _=r(n).set(r(e),r(t));return i(_)}function Fn(n){return typeof r(n)=="string"}function Rn(n,e,t){r(n)[g(e)]=g(t)}function Dn(n,e){const t=r(n)[r(e)];return i(t)}function Mn(n,e){return r(n).push(r(e))}function Un(n,e,t,_){const c=new RegExp(m(n,e),m(t,_));return i(c)}function Bn(n,e,t){const _=r(n).exec(m(e,t));return x(_)?0:i(_)}function Nn(){return l(function(n,e){const t=r(n)[g(e)];return i(t)},arguments)}function Cn(n,e){const t=String(r(e)),_=b(t,o.__wbindgen_malloc,o.__wbindgen_realloc),c=a;d().setInt32(n+4*1,c,!0),d().setInt32(n+4*0,_,!0)}function $n(){const n=o.memory;return i(n)}function Vn(n){const e=r(n).buffer;return i(e)}function zn(n,e,t){const _=new Uint8Array(r(n),e>>>0,t>>>0);return i(_)}function Ln(n){const e=new Uint8Array(r(n));return i(e)}function Pn(n,e,t){const _=r(n).subarray(e>>>0,t>>>0);return i(_)}function Wn(){return l(function(n,e){r(n).getRandomValues(r(e))},arguments)}function Jn(){return l(function(n,e){r(n).randomFillSync(g(e))},arguments)}function Qn(n){const e=r(n).crypto;return i(e)}function Hn(n){const e=r(n).process;return i(e)}function Gn(n){const e=r(n).versions;return i(e)}function Kn(n){const e=r(n).node;return i(e)}function Xn(){return l(function(){const n=module.require;return i(n)},arguments)}function Yn(n){const e=r(n).msCrypto;return i(e)}function Zn(n){const e=new Uint8Array(n>>>0);return i(e)}function ne(n){return typeof r(n)=="function"}function ee(){return l(function(n,e){const t=r(n).call(r(e));return i(t)},arguments)}function te(n,e){const t=r(n)[e>>>0];return i(t)}function re(n){return r(n).valueOf()}function _e(){return l(function(n){const e=r(n).next();return i(e)},arguments)}function oe(n){return r(n).done}function ce(n){const e=r(n).value;return i(e)}function ie(n){const e=r(n).next;return i(e)}function ue(){return l(function(n,e){const t=Reflect.get(r(n),r(e));return i(t)},arguments)}function se(){return l(function(){const n=self.self;return i(n)},arguments)}function fe(){return l(function(){const n=window.window;return i(n)},arguments)}function ae(){return l(function(){const n=globalThis.globalThis;return i(n)},arguments)}function be(){return l(function(){const n=global.global;return i(n)},arguments)}function ge(n,e){const t=new S(m(n,e));return i(t)}function le(n){return Array.isArray(r(n))}function de(){return l(function(n,e,t){const _=r(n).call(r(e),r(t));return i(_)},arguments)}function we(n){return Number.isSafeInteger(r(n))}function pe(){return l(function(n,e,t){return Reflect.set(r(n),r(e),r(t))},arguments)}function xe(){return l(function(n){const e=JSON.stringify(r(n));return i(e)},arguments)}function me(n,e,t){r(n).set(r(e),t>>>0)}function ye(n){return r(n).length}function he(){return l(function(){return Date.now()},arguments)}function Te(n,e){return r(n)==r(e)}function Ie(n){let e;try{e=r(n)instanceof Uint8Array}catch{e=!1}return e}function Se(n){let e;try{e=r(n)instanceof ArrayBuffer}catch{e=!1}return e}function je(n){const e=Object.entries(r(n));return i(e)}function Ae(n,e){throw new Error(m(n,e))}function Oe(n,e){const t=r(e),_=typeof t=="bigint"?t:void 0;d().setBigInt64(n+8*1,x(_)?BigInt(0):_,!0),d().setInt32(n+4*0,!x(_),!0)}function qe(n,e){const t=k(r(e)),_=b(t,o.__wbindgen_malloc,o.__wbindgen_realloc),c=a;d().setInt32(n+4*1,c,!0),d().setInt32(n+4*0,_,!0)}function ke(n){const e=g(n).original;return e.cnt--==1?(e.a=0,!0):!1}function Ee(n,e){const t=r(n).then(r(e));return i(t)}function ve(n,e,t){const _=r(n).then(r(e),r(t));return i(_)}function Fe(n){const e=Promise.resolve(r(n));return i(e)}function Re(n,e,t){const _=Q(n,e,553,H);return i(_)}0&&(module.exports={QueryEngine,__wbg_String_88810dfeb4021902,__wbg_buffer_b7b08af79b0b0974,__wbg_call_1084a111329e68ce,__wbg_call_89af060b4e1523f2,__wbg_crypto_58f13aa23ffcb166,__wbg_done_bfda7aa8f252b39f,__wbg_entries_7a0e06255456ebcd,__wbg_exec_a29a4ce5544bd3be,__wbg_getRandomValues_504510b5564925af,__wbg_getTime_91058879093a1589,__wbg_get_224d16597dbbfd96,__wbg_get_3baa728f9d58d3f6,__wbg_get_94990005bd6ca07c,__wbg_getwithrefkey_5e6d9547403deab8,__wbg_globalThis_86b222e13bdf32ed,__wbg_global_e5a3fe56f8be9485,__wbg_has_4bfbc01db38743f7,__wbg_instanceof_ArrayBuffer_61dfc3198373c902,__wbg_instanceof_Promise_ae8c7ffdec83f2ae,__wbg_instanceof_Uint8Array_247a91427532499e,__wbg_isArray_8364a5371e9737d8,__wbg_isSafeInteger_7f1ed56200d90674,__wbg_iterator_888179a48810a9fe,__wbg_keys_7840ae453e408eab,__wbg_length_8339fcf5d8ecd12e,__wbg_length_ae22078168b726f5,__wbg_msCrypto_abcb1295e768d1f2,__wbg_new0_65387337a95cf44d,__wbg_new_13847c66f41dda63,__wbg_new_525245e2b9901204,__wbg_new_8608a2b51a5f6737,__wbg_new_a220cf903aa02ca2,__wbg_new_b85e72ed1bfd57f9,__wbg_new_ea1883e1e5e86686,__wbg_newnoargs_76313bd6ff35d0f2,__wbg_newwithbyteoffsetandlength_8a2cb9ca96b27ec9,__wbg_newwithlength_ec548f448387c968,__wbg_next_de3e9db4440638b2,__wbg_next_f9cb570345655b9a,__wbg_node_523d7bd03ef69fba,__wbg_now_28a6b413aca4a96a,__wbg_now_8ed1a4454e40ecd1,__wbg_now_b7a162010a9e75b4,__wbg_parse_52202f117ec9ecfa,__wbg_process_5b786e71d465a513,__wbg_push_37c89022f34c01ca,__wbg_randomFillSync_a0d98aa11c81fe89,__wbg_require_2784e593a4674877,__wbg_resolve_570458cb99d56a43,__wbg_self_3093d5d1f7bcb682,__wbg_setTimeout_631fe61f31fa2fad,__wbg_set_49185437f0ab06f8,__wbg_set_673dda6c73d19609,__wbg_set_841ac57cff3d672b,__wbg_set_d1e79e2388520f18,__wbg_set_eacc7d73fefaafdf,__wbg_set_wasm,__wbg_stringify_bbf45426c92a6bf5,__wbg_subarray_7c2e3576afe181d1,__wbg_then_876bb3c633745cc6,__wbg_then_95e6edc0f89b73b1,__wbg_valueOf_c759749a331da0c0,__wbg_value_6d39332ab4788d86,__wbg_versions_c2ab80650590b6a2,__wbg_window_3bcfc4d31bc012f8,__wbindgen_bigint_from_i64,__wbindgen_bigint_from_u64,__wbindgen_bigint_get_as_i64,__wbindgen_boolean_get,__wbindgen_cb_drop,__wbindgen_closure_wrapper7295,__wbindgen_debug_string,__wbindgen_error_new,__wbindgen_in,__wbindgen_is_bigint,__wbindgen_is_function,__wbindgen_is_object,__wbindgen_is_string,__wbindgen_is_undefined,__wbindgen_jsval_eq,__wbindgen_jsval_loose_eq,__wbindgen_memory,__wbindgen_number_get,__wbindgen_number_new,__wbindgen_object_clone_ref,__wbindgen_object_drop_ref,__wbindgen_string_get,__wbindgen_string_new,__wbindgen_throw,debug_panic,getBuildTimeInfo});
1
+ "use strict";var q=Object.defineProperty;var U=Object.getOwnPropertyDescriptor;var B=Object.getOwnPropertyNames;var N=Object.prototype.hasOwnProperty;var C=(n,e)=>{for(var t in e)q(n,t,{get:e[t],enumerable:!0})},$=(n,e,t,_)=>{if(e&&typeof e=="object"||typeof e=="function")for(let c of B(e))!N.call(n,c)&&c!==t&&q(n,c,{get:()=>e[c],enumerable:!(_=U(e,c))||_.enumerable});return n};var V=n=>$(q({},"__esModule",{value:!0}),n);var De={};C(De,{QueryEngine:()=>Y,__wbg_String_88810dfeb4021902:()=>Cn,__wbg_buffer_b7b08af79b0b0974:()=>Vn,__wbg_call_1084a111329e68ce:()=>ee,__wbg_call_89af060b4e1523f2:()=>de,__wbg_crypto_58f13aa23ffcb166:()=>Qn,__wbg_done_bfda7aa8f252b39f:()=>oe,__wbg_entries_7a0e06255456ebcd:()=>je,__wbg_exec_a29a4ce5544bd3be:()=>Bn,__wbg_getRandomValues_504510b5564925af:()=>Wn,__wbg_getTime_91058879093a1589:()=>fn,__wbg_get_224d16597dbbfd96:()=>ue,__wbg_get_3baa728f9d58d3f6:()=>te,__wbg_get_94990005bd6ca07c:()=>Nn,__wbg_getwithrefkey_5e6d9547403deab8:()=>Dn,__wbg_globalThis_86b222e13bdf32ed:()=>ae,__wbg_global_e5a3fe56f8be9485:()=>be,__wbg_has_4bfbc01db38743f7:()=>cn,__wbg_instanceof_ArrayBuffer_61dfc3198373c902:()=>Se,__wbg_instanceof_Promise_ae8c7ffdec83f2ae:()=>wn,__wbg_instanceof_Uint8Array_247a91427532499e:()=>Ie,__wbg_isArray_8364a5371e9737d8:()=>le,__wbg_isSafeInteger_7f1ed56200d90674:()=>we,__wbg_iterator_888179a48810a9fe:()=>xn,__wbg_keys_7840ae453e408eab:()=>ln,__wbg_length_8339fcf5d8ecd12e:()=>ye,__wbg_length_ae22078168b726f5:()=>dn,__wbg_msCrypto_abcb1295e768d1f2:()=>Yn,__wbg_new0_65387337a95cf44d:()=>sn,__wbg_new_13847c66f41dda63:()=>Un,__wbg_new_525245e2b9901204:()=>En,__wbg_new_8608a2b51a5f6737:()=>kn,__wbg_new_a220cf903aa02ca2:()=>On,__wbg_new_b85e72ed1bfd57f9:()=>nn,__wbg_new_ea1883e1e5e86686:()=>Ln,__wbg_newnoargs_76313bd6ff35d0f2:()=>ge,__wbg_newwithbyteoffsetandlength_8a2cb9ca96b27ec9:()=>zn,__wbg_newwithlength_ec548f448387c968:()=>Zn,__wbg_next_de3e9db4440638b2:()=>ie,__wbg_next_f9cb570345655b9a:()=>_e,__wbg_node_523d7bd03ef69fba:()=>Kn,__wbg_now_28a6b413aca4a96a:()=>he,__wbg_now_8ed1a4454e40ecd1:()=>bn,__wbg_now_b7a162010a9e75b4:()=>gn,__wbg_parse_52202f117ec9ecfa:()=>un,__wbg_process_5b786e71d465a513:()=>Hn,__wbg_push_37c89022f34c01ca:()=>Mn,__wbg_randomFillSync_a0d98aa11c81fe89:()=>Jn,__wbg_require_2784e593a4674877:()=>Xn,__wbg_resolve_570458cb99d56a43:()=>Fe,__wbg_self_3093d5d1f7bcb682:()=>se,__wbg_setTimeout_631fe61f31fa2fad:()=>en,__wbg_set_49185437f0ab06f8:()=>vn,__wbg_set_673dda6c73d19609:()=>qn,__wbg_set_841ac57cff3d672b:()=>Rn,__wbg_set_d1e79e2388520f18:()=>me,__wbg_set_eacc7d73fefaafdf:()=>pe,__wbg_set_wasm:()=>z,__wbg_stringify_bbf45426c92a6bf5:()=>xe,__wbg_subarray_7c2e3576afe181d1:()=>Pn,__wbg_then_876bb3c633745cc6:()=>ve,__wbg_then_95e6edc0f89b73b1:()=>Ee,__wbg_valueOf_c759749a331da0c0:()=>re,__wbg_value_6d39332ab4788d86:()=>ce,__wbg_versions_c2ab80650590b6a2:()=>Gn,__wbg_window_3bcfc4d31bc012f8:()=>fe,__wbindgen_bigint_from_i64:()=>Tn,__wbindgen_bigint_from_u64:()=>Sn,__wbindgen_bigint_get_as_i64:()=>Oe,__wbindgen_boolean_get:()=>mn,__wbindgen_cb_drop:()=>ke,__wbindgen_closure_wrapper7296:()=>Re,__wbindgen_debug_string:()=>qe,__wbindgen_error_new:()=>rn,__wbindgen_in:()=>In,__wbindgen_is_bigint:()=>yn,__wbindgen_is_function:()=>ne,__wbindgen_is_object:()=>pn,__wbindgen_is_string:()=>Fn,__wbindgen_is_undefined:()=>on,__wbindgen_jsval_eq:()=>jn,__wbindgen_jsval_loose_eq:()=>Te,__wbindgen_memory:()=>$n,__wbindgen_number_get:()=>hn,__wbindgen_number_new:()=>An,__wbindgen_object_clone_ref:()=>_n,__wbindgen_object_drop_ref:()=>an,__wbindgen_string_get:()=>Z,__wbindgen_string_new:()=>tn,__wbindgen_throw:()=>Ae,debug_panic:()=>K,getBuildTimeInfo:()=>G});module.exports=V(De);var S=()=>{};S.prototype=S;let o;function z(n){o=n}const p=new Array(128).fill(void 0);p.push(void 0,null,!0,!1);function r(n){return p[n]}let a=0,j=null;function A(){return(j===null||j.byteLength===0)&&(j=new Uint8Array(o.memory.buffer)),j}const L=typeof TextEncoder>"u"?(0,module.require)("util").TextEncoder:TextEncoder;let O=new L("utf-8");const P=typeof O.encodeInto=="function"?function(n,e){return O.encodeInto(n,e)}:function(n,e){const t=O.encode(n);return e.set(t),{read:n.length,written:t.length}};function b(n,e,t){if(t===void 0){const s=O.encode(n),w=e(s.length,1)>>>0;return A().subarray(w,w+s.length).set(s),a=s.length,w}let _=n.length,c=e(_,1)>>>0;const f=A();let u=0;for(;u<_;u++){const s=n.charCodeAt(u);if(s>127)break;f[c+u]=s}if(u!==_){u!==0&&(n=n.slice(u)),c=t(c,_,_=u+n.length*3,1)>>>0;const s=A().subarray(c+u,c+_),w=P(n,s);u+=w.written,c=t(c,_,u,1)>>>0}return a=u,c}function x(n){return n==null}let T=null;function d(){return(T===null||T.buffer.detached===!0||T.buffer.detached===void 0&&T.buffer!==o.memory.buffer)&&(T=new DataView(o.memory.buffer)),T}const W=typeof TextDecoder>"u"?(0,module.require)("util").TextDecoder:TextDecoder;let E=new W("utf-8",{ignoreBOM:!0,fatal:!0});E.decode();function m(n,e){return n=n>>>0,E.decode(A().subarray(n,n+e))}let I=p.length;function i(n){I===p.length&&p.push(p.length+1);const e=I;return I=p[e],p[e]=n,e}function J(n){n<132||(p[n]=I,I=n)}function g(n){const e=r(n);return J(n),e}function k(n){const e=typeof n;if(e=="number"||e=="boolean"||n==null)return`${n}`;if(e=="string")return`"${n}"`;if(e=="symbol"){const c=n.description;return c==null?"Symbol":`Symbol(${c})`}if(e=="function"){const c=n.name;return typeof c=="string"&&c.length>0?`Function(${c})`:"Function"}if(Array.isArray(n)){const c=n.length;let f="[";c>0&&(f+=k(n[0]));for(let u=1;u<c;u++)f+=", "+k(n[u]);return f+="]",f}const t=/\[object ([^\]]+)\]/.exec(toString.call(n));let _;if(t.length>1)_=t[1];else return toString.call(n);if(_=="Object")try{return"Object("+JSON.stringify(n)+")"}catch{return"Object"}return n instanceof Error?`${n.name}: ${n.message}
2
+ ${n.stack}`:_}const v=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>{o.__wbindgen_export_2.get(n.dtor)(n.a,n.b)});function Q(n,e,t,_){const c={a:n,b:e,cnt:1,dtor:t},f=(...u)=>{c.cnt++;const s=c.a;c.a=0;try{return _(s,c.b,...u)}finally{--c.cnt===0?(o.__wbindgen_export_2.get(c.dtor)(s,c.b),v.unregister(c)):c.a=s}};return f.original=c,v.register(f,c,c),f}function H(n,e,t){o._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h92ff5ab9e3740637(n,e,i(t))}function G(){const n=o.getBuildTimeInfo();return g(n)}function K(n){try{const f=o.__wbindgen_add_to_stack_pointer(-16);var e=x(n)?0:b(n,o.__wbindgen_malloc,o.__wbindgen_realloc),t=a;o.debug_panic(f,e,t);var _=d().getInt32(f+4*0,!0),c=d().getInt32(f+4*1,!0);if(c)throw g(_)}finally{o.__wbindgen_add_to_stack_pointer(16)}}function l(n,e){try{return n.apply(this,e)}catch(t){o.__wbindgen_exn_store(i(t))}}function X(n,e,t,_){o.wasm_bindgen__convert__closures__invoke2_mut__h2dd59201d446cc9a(n,e,i(t),i(_))}const F=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>o.__wbg_queryengine_free(n>>>0,1));class Y{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,F.unregister(this),e}free(){const e=this.__destroy_into_raw();o.__wbg_queryengine_free(e,0)}constructor(e,t,_){try{const s=o.__wbindgen_add_to_stack_pointer(-16);o.queryengine_new(s,i(e),i(t),i(_));var c=d().getInt32(s+4*0,!0),f=d().getInt32(s+4*1,!0),u=d().getInt32(s+4*2,!0);if(u)throw g(f);return this.__wbg_ptr=c>>>0,F.register(this,this.__wbg_ptr,this),this}finally{o.__wbindgen_add_to_stack_pointer(16)}}connect(e,t){const _=b(e,o.__wbindgen_malloc,o.__wbindgen_realloc),c=a,f=b(t,o.__wbindgen_malloc,o.__wbindgen_realloc),u=a,s=o.queryengine_connect(this.__wbg_ptr,_,c,f,u);return g(s)}disconnect(e,t){const _=b(e,o.__wbindgen_malloc,o.__wbindgen_realloc),c=a,f=b(t,o.__wbindgen_malloc,o.__wbindgen_realloc),u=a,s=o.queryengine_disconnect(this.__wbg_ptr,_,c,f,u);return g(s)}query(e,t,_,c){const f=b(e,o.__wbindgen_malloc,o.__wbindgen_realloc),u=a,s=b(t,o.__wbindgen_malloc,o.__wbindgen_realloc),w=a;var y=x(_)?0:b(_,o.__wbindgen_malloc,o.__wbindgen_realloc),h=a;const R=b(c,o.__wbindgen_malloc,o.__wbindgen_realloc),D=a,M=o.queryengine_query(this.__wbg_ptr,f,u,s,w,y,h,R,D);return g(M)}startTransaction(e,t,_){const c=b(e,o.__wbindgen_malloc,o.__wbindgen_realloc),f=a,u=b(t,o.__wbindgen_malloc,o.__wbindgen_realloc),s=a,w=b(_,o.__wbindgen_malloc,o.__wbindgen_realloc),y=a,h=o.queryengine_startTransaction(this.__wbg_ptr,c,f,u,s,w,y);return g(h)}commitTransaction(e,t,_){const c=b(e,o.__wbindgen_malloc,o.__wbindgen_realloc),f=a,u=b(t,o.__wbindgen_malloc,o.__wbindgen_realloc),s=a,w=b(_,o.__wbindgen_malloc,o.__wbindgen_realloc),y=a,h=o.queryengine_commitTransaction(this.__wbg_ptr,c,f,u,s,w,y);return g(h)}rollbackTransaction(e,t,_){const c=b(e,o.__wbindgen_malloc,o.__wbindgen_realloc),f=a,u=b(t,o.__wbindgen_malloc,o.__wbindgen_realloc),s=a,w=b(_,o.__wbindgen_malloc,o.__wbindgen_realloc),y=a,h=o.queryengine_rollbackTransaction(this.__wbg_ptr,c,f,u,s,w,y);return g(h)}metrics(e){const t=b(e,o.__wbindgen_malloc,o.__wbindgen_realloc),_=a,c=o.queryengine_metrics(this.__wbg_ptr,t,_);return g(c)}trace(e){const t=b(e,o.__wbindgen_malloc,o.__wbindgen_realloc),_=a,c=o.queryengine_trace(this.__wbg_ptr,t,_);return g(c)}}function Z(n,e){const t=r(e),_=typeof t=="string"?t:void 0;var c=x(_)?0:b(_,o.__wbindgen_malloc,o.__wbindgen_realloc),f=a;d().setInt32(n+4*1,f,!0),d().setInt32(n+4*0,c,!0)}function nn(n,e){try{var t={a:n,b:e},_=(f,u)=>{const s=t.a;t.a=0;try{return X(s,t.b,f,u)}finally{t.a=s}};const c=new Promise(_);return i(c)}finally{t.a=t.b=0}}function en(n,e){return setTimeout(r(n),e>>>0)}function tn(n,e){const t=m(n,e);return i(t)}function rn(n,e){const t=new Error(m(n,e));return i(t)}function _n(n){const e=r(n);return i(e)}function on(n){return r(n)===void 0}function cn(){return l(function(n,e){return Reflect.has(r(n),r(e))},arguments)}function un(){return l(function(n,e){const t=JSON.parse(m(n,e));return i(t)},arguments)}function sn(){return i(new Date)}function fn(n){return r(n).getTime()}function an(n){g(n)}function bn(n){return r(n).now()}function gn(){return Date.now()}function ln(n){const e=Object.keys(r(n));return i(e)}function dn(n){return r(n).length}function wn(n){let e;try{e=r(n)instanceof Promise}catch{e=!1}return e}function pn(n){const e=r(n);return typeof e=="object"&&e!==null}function xn(){return i(Symbol.iterator)}function mn(n){const e=r(n);return typeof e=="boolean"?e?1:0:2}function yn(n){return typeof r(n)=="bigint"}function hn(n,e){const t=r(e),_=typeof t=="number"?t:void 0;d().setFloat64(n+8*1,x(_)?0:_,!0),d().setInt32(n+4*0,!x(_),!0)}function Tn(n){return i(n)}function In(n,e){return r(n)in r(e)}function Sn(n){const e=BigInt.asUintN(64,n);return i(e)}function jn(n,e){return r(n)===r(e)}function An(n){return i(n)}function On(){const n=new Array;return i(n)}function qn(n,e,t){r(n)[e>>>0]=g(t)}function kn(){return i(new Map)}function En(){const n=new Object;return i(n)}function vn(n,e,t){const _=r(n).set(r(e),r(t));return i(_)}function Fn(n){return typeof r(n)=="string"}function Rn(n,e,t){r(n)[g(e)]=g(t)}function Dn(n,e){const t=r(n)[r(e)];return i(t)}function Mn(n,e){return r(n).push(r(e))}function Un(n,e,t,_){const c=new RegExp(m(n,e),m(t,_));return i(c)}function Bn(n,e,t){const _=r(n).exec(m(e,t));return x(_)?0:i(_)}function Nn(){return l(function(n,e){const t=r(n)[g(e)];return i(t)},arguments)}function Cn(n,e){const t=String(r(e)),_=b(t,o.__wbindgen_malloc,o.__wbindgen_realloc),c=a;d().setInt32(n+4*1,c,!0),d().setInt32(n+4*0,_,!0)}function $n(){const n=o.memory;return i(n)}function Vn(n){const e=r(n).buffer;return i(e)}function zn(n,e,t){const _=new Uint8Array(r(n),e>>>0,t>>>0);return i(_)}function Ln(n){const e=new Uint8Array(r(n));return i(e)}function Pn(n,e,t){const _=r(n).subarray(e>>>0,t>>>0);return i(_)}function Wn(){return l(function(n,e){r(n).getRandomValues(r(e))},arguments)}function Jn(){return l(function(n,e){r(n).randomFillSync(g(e))},arguments)}function Qn(n){const e=r(n).crypto;return i(e)}function Hn(n){const e=r(n).process;return i(e)}function Gn(n){const e=r(n).versions;return i(e)}function Kn(n){const e=r(n).node;return i(e)}function Xn(){return l(function(){const n=module.require;return i(n)},arguments)}function Yn(n){const e=r(n).msCrypto;return i(e)}function Zn(n){const e=new Uint8Array(n>>>0);return i(e)}function ne(n){return typeof r(n)=="function"}function ee(){return l(function(n,e){const t=r(n).call(r(e));return i(t)},arguments)}function te(n,e){const t=r(n)[e>>>0];return i(t)}function re(n){return r(n).valueOf()}function _e(){return l(function(n){const e=r(n).next();return i(e)},arguments)}function oe(n){return r(n).done}function ce(n){const e=r(n).value;return i(e)}function ie(n){const e=r(n).next;return i(e)}function ue(){return l(function(n,e){const t=Reflect.get(r(n),r(e));return i(t)},arguments)}function se(){return l(function(){const n=self.self;return i(n)},arguments)}function fe(){return l(function(){const n=window.window;return i(n)},arguments)}function ae(){return l(function(){const n=globalThis.globalThis;return i(n)},arguments)}function be(){return l(function(){const n=global.global;return i(n)},arguments)}function ge(n,e){const t=new S(m(n,e));return i(t)}function le(n){return Array.isArray(r(n))}function de(){return l(function(n,e,t){const _=r(n).call(r(e),r(t));return i(_)},arguments)}function we(n){return Number.isSafeInteger(r(n))}function pe(){return l(function(n,e,t){return Reflect.set(r(n),r(e),r(t))},arguments)}function xe(){return l(function(n){const e=JSON.stringify(r(n));return i(e)},arguments)}function me(n,e,t){r(n).set(r(e),t>>>0)}function ye(n){return r(n).length}function he(){return l(function(){return Date.now()},arguments)}function Te(n,e){return r(n)==r(e)}function Ie(n){let e;try{e=r(n)instanceof Uint8Array}catch{e=!1}return e}function Se(n){let e;try{e=r(n)instanceof ArrayBuffer}catch{e=!1}return e}function je(n){const e=Object.entries(r(n));return i(e)}function Ae(n,e){throw new Error(m(n,e))}function Oe(n,e){const t=r(e),_=typeof t=="bigint"?t:void 0;d().setBigInt64(n+8*1,x(_)?BigInt(0):_,!0),d().setInt32(n+4*0,!x(_),!0)}function qe(n,e){const t=k(r(e)),_=b(t,o.__wbindgen_malloc,o.__wbindgen_realloc),c=a;d().setInt32(n+4*1,c,!0),d().setInt32(n+4*0,_,!0)}function ke(n){const e=g(n).original;return e.cnt--==1?(e.a=0,!0):!1}function Ee(n,e){const t=r(n).then(r(e));return i(t)}function ve(n,e,t){const _=r(n).then(r(e),r(t));return i(_)}function Fe(n){const e=Promise.resolve(r(n));return i(e)}function Re(n,e,t){const _=Q(n,e,553,H);return i(_)}0&&(module.exports={QueryEngine,__wbg_String_88810dfeb4021902,__wbg_buffer_b7b08af79b0b0974,__wbg_call_1084a111329e68ce,__wbg_call_89af060b4e1523f2,__wbg_crypto_58f13aa23ffcb166,__wbg_done_bfda7aa8f252b39f,__wbg_entries_7a0e06255456ebcd,__wbg_exec_a29a4ce5544bd3be,__wbg_getRandomValues_504510b5564925af,__wbg_getTime_91058879093a1589,__wbg_get_224d16597dbbfd96,__wbg_get_3baa728f9d58d3f6,__wbg_get_94990005bd6ca07c,__wbg_getwithrefkey_5e6d9547403deab8,__wbg_globalThis_86b222e13bdf32ed,__wbg_global_e5a3fe56f8be9485,__wbg_has_4bfbc01db38743f7,__wbg_instanceof_ArrayBuffer_61dfc3198373c902,__wbg_instanceof_Promise_ae8c7ffdec83f2ae,__wbg_instanceof_Uint8Array_247a91427532499e,__wbg_isArray_8364a5371e9737d8,__wbg_isSafeInteger_7f1ed56200d90674,__wbg_iterator_888179a48810a9fe,__wbg_keys_7840ae453e408eab,__wbg_length_8339fcf5d8ecd12e,__wbg_length_ae22078168b726f5,__wbg_msCrypto_abcb1295e768d1f2,__wbg_new0_65387337a95cf44d,__wbg_new_13847c66f41dda63,__wbg_new_525245e2b9901204,__wbg_new_8608a2b51a5f6737,__wbg_new_a220cf903aa02ca2,__wbg_new_b85e72ed1bfd57f9,__wbg_new_ea1883e1e5e86686,__wbg_newnoargs_76313bd6ff35d0f2,__wbg_newwithbyteoffsetandlength_8a2cb9ca96b27ec9,__wbg_newwithlength_ec548f448387c968,__wbg_next_de3e9db4440638b2,__wbg_next_f9cb570345655b9a,__wbg_node_523d7bd03ef69fba,__wbg_now_28a6b413aca4a96a,__wbg_now_8ed1a4454e40ecd1,__wbg_now_b7a162010a9e75b4,__wbg_parse_52202f117ec9ecfa,__wbg_process_5b786e71d465a513,__wbg_push_37c89022f34c01ca,__wbg_randomFillSync_a0d98aa11c81fe89,__wbg_require_2784e593a4674877,__wbg_resolve_570458cb99d56a43,__wbg_self_3093d5d1f7bcb682,__wbg_setTimeout_631fe61f31fa2fad,__wbg_set_49185437f0ab06f8,__wbg_set_673dda6c73d19609,__wbg_set_841ac57cff3d672b,__wbg_set_d1e79e2388520f18,__wbg_set_eacc7d73fefaafdf,__wbg_set_wasm,__wbg_stringify_bbf45426c92a6bf5,__wbg_subarray_7c2e3576afe181d1,__wbg_then_876bb3c633745cc6,__wbg_then_95e6edc0f89b73b1,__wbg_valueOf_c759749a331da0c0,__wbg_value_6d39332ab4788d86,__wbg_versions_c2ab80650590b6a2,__wbg_window_3bcfc4d31bc012f8,__wbindgen_bigint_from_i64,__wbindgen_bigint_from_u64,__wbindgen_bigint_get_as_i64,__wbindgen_boolean_get,__wbindgen_cb_drop,__wbindgen_closure_wrapper7296,__wbindgen_debug_string,__wbindgen_error_new,__wbindgen_in,__wbindgen_is_bigint,__wbindgen_is_function,__wbindgen_is_object,__wbindgen_is_string,__wbindgen_is_undefined,__wbindgen_jsval_eq,__wbindgen_jsval_loose_eq,__wbindgen_memory,__wbindgen_number_get,__wbindgen_number_new,__wbindgen_object_clone_ref,__wbindgen_object_drop_ref,__wbindgen_string_get,__wbindgen_string_new,__wbindgen_throw,debug_panic,getBuildTimeInfo});
@@ -1,2 +1,2 @@
1
- "use strict";var q=Object.defineProperty;var U=Object.getOwnPropertyDescriptor;var B=Object.getOwnPropertyNames;var N=Object.prototype.hasOwnProperty;var C=(n,t)=>{for(var e in t)q(n,e,{get:t[e],enumerable:!0})},$=(n,t,e,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let c of B(t))!N.call(n,c)&&c!==e&&q(n,c,{get:()=>t[c],enumerable:!(o=U(t,c))||o.enumerable});return n};var V=n=>$(q({},"__esModule",{value:!0}),n);var Ft={};C(Ft,{QueryEngine:()=>Y,__wbg_String_88810dfeb4021902:()=>Bn,__wbg_buffer_b7b08af79b0b0974:()=>Cn,__wbg_call_1084a111329e68ce:()=>Zn,__wbg_call_89af060b4e1523f2:()=>gt,__wbg_crypto_58f13aa23ffcb166:()=>Wn,__wbg_done_bfda7aa8f252b39f:()=>rt,__wbg_entries_7a0e06255456ebcd:()=>It,__wbg_getRandomValues_504510b5564925af:()=>Ln,__wbg_getTime_91058879093a1589:()=>fn,__wbg_get_224d16597dbbfd96:()=>ct,__wbg_get_3baa728f9d58d3f6:()=>nt,__wbg_get_94990005bd6ca07c:()=>Un,__wbg_getwithrefkey_5e6d9547403deab8:()=>Dn,__wbg_globalThis_86b222e13bdf32ed:()=>st,__wbg_global_e5a3fe56f8be9485:()=>ft,__wbg_has_4bfbc01db38743f7:()=>cn,__wbg_instanceof_ArrayBuffer_61dfc3198373c902:()=>Tt,__wbg_instanceof_Promise_ae8c7ffdec83f2ae:()=>wn,__wbg_instanceof_Uint8Array_247a91427532499e:()=>ht,__wbg_isArray_8364a5371e9737d8:()=>bt,__wbg_isSafeInteger_7f1ed56200d90674:()=>lt,__wbg_iterator_888179a48810a9fe:()=>xn,__wbg_keys_7840ae453e408eab:()=>gn,__wbg_length_8339fcf5d8ecd12e:()=>xt,__wbg_length_ae22078168b726f5:()=>ln,__wbg_msCrypto_abcb1295e768d1f2:()=>Kn,__wbg_new0_65387337a95cf44d:()=>sn,__wbg_new_525245e2b9901204:()=>vn,__wbg_new_8608a2b51a5f6737:()=>kn,__wbg_new_a220cf903aa02ca2:()=>On,__wbg_new_b85e72ed1bfd57f9:()=>nn,__wbg_new_ea1883e1e5e86686:()=>Vn,__wbg_newnoargs_76313bd6ff35d0f2:()=>at,__wbg_newwithbyteoffsetandlength_8a2cb9ca96b27ec9:()=>$n,__wbg_newwithlength_ec548f448387c968:()=>Xn,__wbg_next_de3e9db4440638b2:()=>ot,__wbg_next_f9cb570345655b9a:()=>et,__wbg_node_523d7bd03ef69fba:()=>Hn,__wbg_now_28a6b413aca4a96a:()=>mt,__wbg_now_8ed1a4454e40ecd1:()=>an,__wbg_now_b7a162010a9e75b4:()=>bn,__wbg_parse_52202f117ec9ecfa:()=>un,__wbg_process_5b786e71d465a513:()=>Jn,__wbg_push_37c89022f34c01ca:()=>Mn,__wbg_randomFillSync_a0d98aa11c81fe89:()=>Pn,__wbg_require_2784e593a4674877:()=>Gn,__wbg_resolve_570458cb99d56a43:()=>vt,__wbg_self_3093d5d1f7bcb682:()=>it,__wbg_setTimeout_631fe61f31fa2fad:()=>tn,__wbg_set_49185437f0ab06f8:()=>En,__wbg_set_673dda6c73d19609:()=>qn,__wbg_set_841ac57cff3d672b:()=>Rn,__wbg_set_d1e79e2388520f18:()=>pt,__wbg_set_eacc7d73fefaafdf:()=>dt,__wbg_set_wasm:()=>z,__wbg_stringify_bbf45426c92a6bf5:()=>wt,__wbg_subarray_7c2e3576afe181d1:()=>zn,__wbg_then_876bb3c633745cc6:()=>kt,__wbg_then_95e6edc0f89b73b1:()=>qt,__wbg_valueOf_c759749a331da0c0:()=>tt,__wbg_value_6d39332ab4788d86:()=>_t,__wbg_versions_c2ab80650590b6a2:()=>Qn,__wbg_window_3bcfc4d31bc012f8:()=>ut,__wbindgen_bigint_from_i64:()=>Tn,__wbindgen_bigint_from_u64:()=>Sn,__wbindgen_bigint_get_as_i64:()=>jt,__wbindgen_boolean_get:()=>mn,__wbindgen_cb_drop:()=>Ot,__wbindgen_closure_wrapper6973:()=>Et,__wbindgen_debug_string:()=>At,__wbindgen_error_new:()=>rn,__wbindgen_in:()=>In,__wbindgen_is_bigint:()=>yn,__wbindgen_is_function:()=>Yn,__wbindgen_is_object:()=>pn,__wbindgen_is_string:()=>Fn,__wbindgen_is_undefined:()=>on,__wbindgen_jsval_eq:()=>jn,__wbindgen_jsval_loose_eq:()=>yt,__wbindgen_memory:()=>Nn,__wbindgen_number_get:()=>hn,__wbindgen_number_new:()=>An,__wbindgen_object_clone_ref:()=>_n,__wbindgen_object_drop_ref:()=>dn,__wbindgen_string_get:()=>Z,__wbindgen_string_new:()=>en,__wbindgen_throw:()=>St,debug_panic:()=>K,getBuildTimeInfo:()=>G});module.exports=V(Ft);var S=()=>{};S.prototype=S;let _;function z(n){_=n}const p=new Array(128).fill(void 0);p.push(void 0,null,!0,!1);function r(n){return p[n]}let a=0,j=null;function A(){return(j===null||j.byteLength===0)&&(j=new Uint8Array(_.memory.buffer)),j}const L=typeof TextEncoder>"u"?(0,module.require)("util").TextEncoder:TextEncoder;let O=new L("utf-8");const P=typeof O.encodeInto=="function"?function(n,t){return O.encodeInto(n,t)}:function(n,t){const e=O.encode(n);return t.set(e),{read:n.length,written:e.length}};function b(n,t,e){if(e===void 0){const s=O.encode(n),w=t(s.length,1)>>>0;return A().subarray(w,w+s.length).set(s),a=s.length,w}let o=n.length,c=t(o,1)>>>0;const f=A();let u=0;for(;u<o;u++){const s=n.charCodeAt(u);if(s>127)break;f[c+u]=s}if(u!==o){u!==0&&(n=n.slice(u)),c=e(c,o,o=u+n.length*3,1)>>>0;const s=A().subarray(c+u,c+o),w=P(n,s);u+=w.written,c=e(c,o,u,1)>>>0}return a=u,c}function y(n){return n==null}let h=null;function d(){return(h===null||h.buffer.detached===!0||h.buffer.detached===void 0&&h.buffer!==_.memory.buffer)&&(h=new DataView(_.memory.buffer)),h}const W=typeof TextDecoder>"u"?(0,module.require)("util").TextDecoder:TextDecoder;let v=new W("utf-8",{ignoreBOM:!0,fatal:!0});v.decode();function T(n,t){return n=n>>>0,v.decode(A().subarray(n,n+t))}let I=p.length;function i(n){I===p.length&&p.push(p.length+1);const t=I;return I=p[t],p[t]=n,t}function J(n){n<132||(p[n]=I,I=n)}function g(n){const t=r(n);return J(n),t}function k(n){const t=typeof n;if(t=="number"||t=="boolean"||n==null)return`${n}`;if(t=="string")return`"${n}"`;if(t=="symbol"){const c=n.description;return c==null?"Symbol":`Symbol(${c})`}if(t=="function"){const c=n.name;return typeof c=="string"&&c.length>0?`Function(${c})`:"Function"}if(Array.isArray(n)){const c=n.length;let f="[";c>0&&(f+=k(n[0]));for(let u=1;u<c;u++)f+=", "+k(n[u]);return f+="]",f}const e=/\[object ([^\]]+)\]/.exec(toString.call(n));let o;if(e.length>1)o=e[1];else return toString.call(n);if(o=="Object")try{return"Object("+JSON.stringify(n)+")"}catch{return"Object"}return n instanceof Error?`${n.name}: ${n.message}
2
- ${n.stack}`:o}const E=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>{_.__wbindgen_export_2.get(n.dtor)(n.a,n.b)});function Q(n,t,e,o){const c={a:n,b:t,cnt:1,dtor:e},f=(...u)=>{c.cnt++;const s=c.a;c.a=0;try{return o(s,c.b,...u)}finally{--c.cnt===0?(_.__wbindgen_export_2.get(c.dtor)(s,c.b),E.unregister(c)):c.a=s}};return f.original=c,E.register(f,c,c),f}function H(n,t,e){_._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h92ff5ab9e3740637(n,t,i(e))}function G(){const n=_.getBuildTimeInfo();return g(n)}function K(n){try{const f=_.__wbindgen_add_to_stack_pointer(-16);var t=y(n)?0:b(n,_.__wbindgen_malloc,_.__wbindgen_realloc),e=a;_.debug_panic(f,t,e);var o=d().getInt32(f+4*0,!0),c=d().getInt32(f+4*1,!0);if(c)throw g(o)}finally{_.__wbindgen_add_to_stack_pointer(16)}}function l(n,t){try{return n.apply(this,t)}catch(e){_.__wbindgen_exn_store(i(e))}}function X(n,t,e,o){_.wasm_bindgen__convert__closures__invoke2_mut__h2dd59201d446cc9a(n,t,i(e),i(o))}const F=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>_.__wbg_queryengine_free(n>>>0,1));class Y{__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,F.unregister(this),t}free(){const t=this.__destroy_into_raw();_.__wbg_queryengine_free(t,0)}constructor(t,e,o){try{const s=_.__wbindgen_add_to_stack_pointer(-16);_.queryengine_new(s,i(t),i(e),i(o));var c=d().getInt32(s+4*0,!0),f=d().getInt32(s+4*1,!0),u=d().getInt32(s+4*2,!0);if(u)throw g(f);return this.__wbg_ptr=c>>>0,F.register(this,this.__wbg_ptr,this),this}finally{_.__wbindgen_add_to_stack_pointer(16)}}connect(t,e){const o=b(t,_.__wbindgen_malloc,_.__wbindgen_realloc),c=a,f=b(e,_.__wbindgen_malloc,_.__wbindgen_realloc),u=a,s=_.queryengine_connect(this.__wbg_ptr,o,c,f,u);return g(s)}disconnect(t,e){const o=b(t,_.__wbindgen_malloc,_.__wbindgen_realloc),c=a,f=b(e,_.__wbindgen_malloc,_.__wbindgen_realloc),u=a,s=_.queryengine_disconnect(this.__wbg_ptr,o,c,f,u);return g(s)}query(t,e,o,c){const f=b(t,_.__wbindgen_malloc,_.__wbindgen_realloc),u=a,s=b(e,_.__wbindgen_malloc,_.__wbindgen_realloc),w=a;var x=y(o)?0:b(o,_.__wbindgen_malloc,_.__wbindgen_realloc),m=a;const R=b(c,_.__wbindgen_malloc,_.__wbindgen_realloc),D=a,M=_.queryengine_query(this.__wbg_ptr,f,u,s,w,x,m,R,D);return g(M)}startTransaction(t,e,o){const c=b(t,_.__wbindgen_malloc,_.__wbindgen_realloc),f=a,u=b(e,_.__wbindgen_malloc,_.__wbindgen_realloc),s=a,w=b(o,_.__wbindgen_malloc,_.__wbindgen_realloc),x=a,m=_.queryengine_startTransaction(this.__wbg_ptr,c,f,u,s,w,x);return g(m)}commitTransaction(t,e,o){const c=b(t,_.__wbindgen_malloc,_.__wbindgen_realloc),f=a,u=b(e,_.__wbindgen_malloc,_.__wbindgen_realloc),s=a,w=b(o,_.__wbindgen_malloc,_.__wbindgen_realloc),x=a,m=_.queryengine_commitTransaction(this.__wbg_ptr,c,f,u,s,w,x);return g(m)}rollbackTransaction(t,e,o){const c=b(t,_.__wbindgen_malloc,_.__wbindgen_realloc),f=a,u=b(e,_.__wbindgen_malloc,_.__wbindgen_realloc),s=a,w=b(o,_.__wbindgen_malloc,_.__wbindgen_realloc),x=a,m=_.queryengine_rollbackTransaction(this.__wbg_ptr,c,f,u,s,w,x);return g(m)}metrics(t){const e=b(t,_.__wbindgen_malloc,_.__wbindgen_realloc),o=a,c=_.queryengine_metrics(this.__wbg_ptr,e,o);return g(c)}trace(t){const e=b(t,_.__wbindgen_malloc,_.__wbindgen_realloc),o=a,c=_.queryengine_trace(this.__wbg_ptr,e,o);return g(c)}}function Z(n,t){const e=r(t),o=typeof e=="string"?e:void 0;var c=y(o)?0:b(o,_.__wbindgen_malloc,_.__wbindgen_realloc),f=a;d().setInt32(n+4*1,f,!0),d().setInt32(n+4*0,c,!0)}function nn(n,t){try{var e={a:n,b:t},o=(f,u)=>{const s=e.a;e.a=0;try{return X(s,e.b,f,u)}finally{e.a=s}};const c=new Promise(o);return i(c)}finally{e.a=e.b=0}}function tn(n,t){return setTimeout(r(n),t>>>0)}function en(n,t){const e=T(n,t);return i(e)}function rn(n,t){const e=new Error(T(n,t));return i(e)}function _n(n){const t=r(n);return i(t)}function on(n){return r(n)===void 0}function cn(){return l(function(n,t){return Reflect.has(r(n),r(t))},arguments)}function un(){return l(function(n,t){const e=JSON.parse(T(n,t));return i(e)},arguments)}function sn(){return i(new Date)}function fn(n){return r(n).getTime()}function an(n){return r(n).now()}function bn(){return Date.now()}function gn(n){const t=Object.keys(r(n));return i(t)}function ln(n){return r(n).length}function dn(n){g(n)}function wn(n){let t;try{t=r(n)instanceof Promise}catch{t=!1}return t}function pn(n){const t=r(n);return typeof t=="object"&&t!==null}function xn(){return i(Symbol.iterator)}function mn(n){const t=r(n);return typeof t=="boolean"?t?1:0:2}function yn(n){return typeof r(n)=="bigint"}function hn(n,t){const e=r(t),o=typeof e=="number"?e:void 0;d().setFloat64(n+8*1,y(o)?0:o,!0),d().setInt32(n+4*0,!y(o),!0)}function Tn(n){return i(n)}function In(n,t){return r(n)in r(t)}function Sn(n){const t=BigInt.asUintN(64,n);return i(t)}function jn(n,t){return r(n)===r(t)}function An(n){return i(n)}function On(){const n=new Array;return i(n)}function qn(n,t,e){r(n)[t>>>0]=g(e)}function kn(){return i(new Map)}function vn(){const n=new Object;return i(n)}function En(n,t,e){const o=r(n).set(r(t),r(e));return i(o)}function Fn(n){return typeof r(n)=="string"}function Rn(n,t,e){r(n)[g(t)]=g(e)}function Dn(n,t){const e=r(n)[r(t)];return i(e)}function Mn(n,t){return r(n).push(r(t))}function Un(){return l(function(n,t){const e=r(n)[g(t)];return i(e)},arguments)}function Bn(n,t){const e=String(r(t)),o=b(e,_.__wbindgen_malloc,_.__wbindgen_realloc),c=a;d().setInt32(n+4*1,c,!0),d().setInt32(n+4*0,o,!0)}function Nn(){const n=_.memory;return i(n)}function Cn(n){const t=r(n).buffer;return i(t)}function $n(n,t,e){const o=new Uint8Array(r(n),t>>>0,e>>>0);return i(o)}function Vn(n){const t=new Uint8Array(r(n));return i(t)}function zn(n,t,e){const o=r(n).subarray(t>>>0,e>>>0);return i(o)}function Ln(){return l(function(n,t){r(n).getRandomValues(r(t))},arguments)}function Pn(){return l(function(n,t){r(n).randomFillSync(g(t))},arguments)}function Wn(n){const t=r(n).crypto;return i(t)}function Jn(n){const t=r(n).process;return i(t)}function Qn(n){const t=r(n).versions;return i(t)}function Hn(n){const t=r(n).node;return i(t)}function Gn(){return l(function(){const n=module.require;return i(n)},arguments)}function Kn(n){const t=r(n).msCrypto;return i(t)}function Xn(n){const t=new Uint8Array(n>>>0);return i(t)}function Yn(n){return typeof r(n)=="function"}function Zn(){return l(function(n,t){const e=r(n).call(r(t));return i(e)},arguments)}function nt(n,t){const e=r(n)[t>>>0];return i(e)}function tt(n){return r(n).valueOf()}function et(){return l(function(n){const t=r(n).next();return i(t)},arguments)}function rt(n){return r(n).done}function _t(n){const t=r(n).value;return i(t)}function ot(n){const t=r(n).next;return i(t)}function ct(){return l(function(n,t){const e=Reflect.get(r(n),r(t));return i(e)},arguments)}function it(){return l(function(){const n=self.self;return i(n)},arguments)}function ut(){return l(function(){const n=window.window;return i(n)},arguments)}function st(){return l(function(){const n=globalThis.globalThis;return i(n)},arguments)}function ft(){return l(function(){const n=global.global;return i(n)},arguments)}function at(n,t){const e=new S(T(n,t));return i(e)}function bt(n){return Array.isArray(r(n))}function gt(){return l(function(n,t,e){const o=r(n).call(r(t),r(e));return i(o)},arguments)}function lt(n){return Number.isSafeInteger(r(n))}function dt(){return l(function(n,t,e){return Reflect.set(r(n),r(t),r(e))},arguments)}function wt(){return l(function(n){const t=JSON.stringify(r(n));return i(t)},arguments)}function pt(n,t,e){r(n).set(r(t),e>>>0)}function xt(n){return r(n).length}function mt(){return l(function(){return Date.now()},arguments)}function yt(n,t){return r(n)==r(t)}function ht(n){let t;try{t=r(n)instanceof Uint8Array}catch{t=!1}return t}function Tt(n){let t;try{t=r(n)instanceof ArrayBuffer}catch{t=!1}return t}function It(n){const t=Object.entries(r(n));return i(t)}function St(n,t){throw new Error(T(n,t))}function jt(n,t){const e=r(t),o=typeof e=="bigint"?e:void 0;d().setBigInt64(n+8*1,y(o)?BigInt(0):o,!0),d().setInt32(n+4*0,!y(o),!0)}function At(n,t){const e=k(r(t)),o=b(e,_.__wbindgen_malloc,_.__wbindgen_realloc),c=a;d().setInt32(n+4*1,c,!0),d().setInt32(n+4*0,o,!0)}function Ot(n){const t=g(n).original;return t.cnt--==1?(t.a=0,!0):!1}function qt(n,t){const e=r(n).then(r(t));return i(e)}function kt(n,t,e){const o=r(n).then(r(t),r(e));return i(o)}function vt(n){const t=Promise.resolve(r(n));return i(t)}function Et(n,t,e){const o=Q(n,t,541,H);return i(o)}0&&(module.exports={QueryEngine,__wbg_String_88810dfeb4021902,__wbg_buffer_b7b08af79b0b0974,__wbg_call_1084a111329e68ce,__wbg_call_89af060b4e1523f2,__wbg_crypto_58f13aa23ffcb166,__wbg_done_bfda7aa8f252b39f,__wbg_entries_7a0e06255456ebcd,__wbg_getRandomValues_504510b5564925af,__wbg_getTime_91058879093a1589,__wbg_get_224d16597dbbfd96,__wbg_get_3baa728f9d58d3f6,__wbg_get_94990005bd6ca07c,__wbg_getwithrefkey_5e6d9547403deab8,__wbg_globalThis_86b222e13bdf32ed,__wbg_global_e5a3fe56f8be9485,__wbg_has_4bfbc01db38743f7,__wbg_instanceof_ArrayBuffer_61dfc3198373c902,__wbg_instanceof_Promise_ae8c7ffdec83f2ae,__wbg_instanceof_Uint8Array_247a91427532499e,__wbg_isArray_8364a5371e9737d8,__wbg_isSafeInteger_7f1ed56200d90674,__wbg_iterator_888179a48810a9fe,__wbg_keys_7840ae453e408eab,__wbg_length_8339fcf5d8ecd12e,__wbg_length_ae22078168b726f5,__wbg_msCrypto_abcb1295e768d1f2,__wbg_new0_65387337a95cf44d,__wbg_new_525245e2b9901204,__wbg_new_8608a2b51a5f6737,__wbg_new_a220cf903aa02ca2,__wbg_new_b85e72ed1bfd57f9,__wbg_new_ea1883e1e5e86686,__wbg_newnoargs_76313bd6ff35d0f2,__wbg_newwithbyteoffsetandlength_8a2cb9ca96b27ec9,__wbg_newwithlength_ec548f448387c968,__wbg_next_de3e9db4440638b2,__wbg_next_f9cb570345655b9a,__wbg_node_523d7bd03ef69fba,__wbg_now_28a6b413aca4a96a,__wbg_now_8ed1a4454e40ecd1,__wbg_now_b7a162010a9e75b4,__wbg_parse_52202f117ec9ecfa,__wbg_process_5b786e71d465a513,__wbg_push_37c89022f34c01ca,__wbg_randomFillSync_a0d98aa11c81fe89,__wbg_require_2784e593a4674877,__wbg_resolve_570458cb99d56a43,__wbg_self_3093d5d1f7bcb682,__wbg_setTimeout_631fe61f31fa2fad,__wbg_set_49185437f0ab06f8,__wbg_set_673dda6c73d19609,__wbg_set_841ac57cff3d672b,__wbg_set_d1e79e2388520f18,__wbg_set_eacc7d73fefaafdf,__wbg_set_wasm,__wbg_stringify_bbf45426c92a6bf5,__wbg_subarray_7c2e3576afe181d1,__wbg_then_876bb3c633745cc6,__wbg_then_95e6edc0f89b73b1,__wbg_valueOf_c759749a331da0c0,__wbg_value_6d39332ab4788d86,__wbg_versions_c2ab80650590b6a2,__wbg_window_3bcfc4d31bc012f8,__wbindgen_bigint_from_i64,__wbindgen_bigint_from_u64,__wbindgen_bigint_get_as_i64,__wbindgen_boolean_get,__wbindgen_cb_drop,__wbindgen_closure_wrapper6973,__wbindgen_debug_string,__wbindgen_error_new,__wbindgen_in,__wbindgen_is_bigint,__wbindgen_is_function,__wbindgen_is_object,__wbindgen_is_string,__wbindgen_is_undefined,__wbindgen_jsval_eq,__wbindgen_jsval_loose_eq,__wbindgen_memory,__wbindgen_number_get,__wbindgen_number_new,__wbindgen_object_clone_ref,__wbindgen_object_drop_ref,__wbindgen_string_get,__wbindgen_string_new,__wbindgen_throw,debug_panic,getBuildTimeInfo});
1
+ "use strict";var q=Object.defineProperty;var U=Object.getOwnPropertyDescriptor;var B=Object.getOwnPropertyNames;var N=Object.prototype.hasOwnProperty;var C=(n,t)=>{for(var e in t)q(n,e,{get:t[e],enumerable:!0})},$=(n,t,e,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let c of B(t))!N.call(n,c)&&c!==e&&q(n,c,{get:()=>t[c],enumerable:!(o=U(t,c))||o.enumerable});return n};var V=n=>$(q({},"__esModule",{value:!0}),n);var Ft={};C(Ft,{QueryEngine:()=>Y,__wbg_String_88810dfeb4021902:()=>Bn,__wbg_buffer_b7b08af79b0b0974:()=>Cn,__wbg_call_1084a111329e68ce:()=>Zn,__wbg_call_89af060b4e1523f2:()=>gt,__wbg_crypto_58f13aa23ffcb166:()=>Wn,__wbg_done_bfda7aa8f252b39f:()=>rt,__wbg_entries_7a0e06255456ebcd:()=>It,__wbg_getRandomValues_504510b5564925af:()=>Ln,__wbg_getTime_91058879093a1589:()=>fn,__wbg_get_224d16597dbbfd96:()=>ct,__wbg_get_3baa728f9d58d3f6:()=>nt,__wbg_get_94990005bd6ca07c:()=>Un,__wbg_getwithrefkey_5e6d9547403deab8:()=>Dn,__wbg_globalThis_86b222e13bdf32ed:()=>st,__wbg_global_e5a3fe56f8be9485:()=>ft,__wbg_has_4bfbc01db38743f7:()=>cn,__wbg_instanceof_ArrayBuffer_61dfc3198373c902:()=>Tt,__wbg_instanceof_Promise_ae8c7ffdec83f2ae:()=>wn,__wbg_instanceof_Uint8Array_247a91427532499e:()=>ht,__wbg_isArray_8364a5371e9737d8:()=>bt,__wbg_isSafeInteger_7f1ed56200d90674:()=>lt,__wbg_iterator_888179a48810a9fe:()=>xn,__wbg_keys_7840ae453e408eab:()=>gn,__wbg_length_8339fcf5d8ecd12e:()=>xt,__wbg_length_ae22078168b726f5:()=>ln,__wbg_msCrypto_abcb1295e768d1f2:()=>Kn,__wbg_new0_65387337a95cf44d:()=>sn,__wbg_new_525245e2b9901204:()=>vn,__wbg_new_8608a2b51a5f6737:()=>kn,__wbg_new_a220cf903aa02ca2:()=>On,__wbg_new_b85e72ed1bfd57f9:()=>nn,__wbg_new_ea1883e1e5e86686:()=>Vn,__wbg_newnoargs_76313bd6ff35d0f2:()=>at,__wbg_newwithbyteoffsetandlength_8a2cb9ca96b27ec9:()=>$n,__wbg_newwithlength_ec548f448387c968:()=>Xn,__wbg_next_de3e9db4440638b2:()=>ot,__wbg_next_f9cb570345655b9a:()=>et,__wbg_node_523d7bd03ef69fba:()=>Hn,__wbg_now_28a6b413aca4a96a:()=>mt,__wbg_now_8ed1a4454e40ecd1:()=>an,__wbg_now_b7a162010a9e75b4:()=>bn,__wbg_parse_52202f117ec9ecfa:()=>un,__wbg_process_5b786e71d465a513:()=>Jn,__wbg_push_37c89022f34c01ca:()=>Mn,__wbg_randomFillSync_a0d98aa11c81fe89:()=>Pn,__wbg_require_2784e593a4674877:()=>Gn,__wbg_resolve_570458cb99d56a43:()=>vt,__wbg_self_3093d5d1f7bcb682:()=>it,__wbg_setTimeout_631fe61f31fa2fad:()=>tn,__wbg_set_49185437f0ab06f8:()=>En,__wbg_set_673dda6c73d19609:()=>qn,__wbg_set_841ac57cff3d672b:()=>Rn,__wbg_set_d1e79e2388520f18:()=>pt,__wbg_set_eacc7d73fefaafdf:()=>dt,__wbg_set_wasm:()=>z,__wbg_stringify_bbf45426c92a6bf5:()=>wt,__wbg_subarray_7c2e3576afe181d1:()=>zn,__wbg_then_876bb3c633745cc6:()=>kt,__wbg_then_95e6edc0f89b73b1:()=>qt,__wbg_valueOf_c759749a331da0c0:()=>tt,__wbg_value_6d39332ab4788d86:()=>_t,__wbg_versions_c2ab80650590b6a2:()=>Qn,__wbg_window_3bcfc4d31bc012f8:()=>ut,__wbindgen_bigint_from_i64:()=>Tn,__wbindgen_bigint_from_u64:()=>Sn,__wbindgen_bigint_get_as_i64:()=>jt,__wbindgen_boolean_get:()=>mn,__wbindgen_cb_drop:()=>Ot,__wbindgen_closure_wrapper6974:()=>Et,__wbindgen_debug_string:()=>At,__wbindgen_error_new:()=>rn,__wbindgen_in:()=>In,__wbindgen_is_bigint:()=>yn,__wbindgen_is_function:()=>Yn,__wbindgen_is_object:()=>pn,__wbindgen_is_string:()=>Fn,__wbindgen_is_undefined:()=>on,__wbindgen_jsval_eq:()=>jn,__wbindgen_jsval_loose_eq:()=>yt,__wbindgen_memory:()=>Nn,__wbindgen_number_get:()=>hn,__wbindgen_number_new:()=>An,__wbindgen_object_clone_ref:()=>_n,__wbindgen_object_drop_ref:()=>dn,__wbindgen_string_get:()=>Z,__wbindgen_string_new:()=>en,__wbindgen_throw:()=>St,debug_panic:()=>K,getBuildTimeInfo:()=>G});module.exports=V(Ft);var S=()=>{};S.prototype=S;let _;function z(n){_=n}const p=new Array(128).fill(void 0);p.push(void 0,null,!0,!1);function r(n){return p[n]}let a=0,j=null;function A(){return(j===null||j.byteLength===0)&&(j=new Uint8Array(_.memory.buffer)),j}const L=typeof TextEncoder>"u"?(0,module.require)("util").TextEncoder:TextEncoder;let O=new L("utf-8");const P=typeof O.encodeInto=="function"?function(n,t){return O.encodeInto(n,t)}:function(n,t){const e=O.encode(n);return t.set(e),{read:n.length,written:e.length}};function b(n,t,e){if(e===void 0){const s=O.encode(n),w=t(s.length,1)>>>0;return A().subarray(w,w+s.length).set(s),a=s.length,w}let o=n.length,c=t(o,1)>>>0;const f=A();let u=0;for(;u<o;u++){const s=n.charCodeAt(u);if(s>127)break;f[c+u]=s}if(u!==o){u!==0&&(n=n.slice(u)),c=e(c,o,o=u+n.length*3,1)>>>0;const s=A().subarray(c+u,c+o),w=P(n,s);u+=w.written,c=e(c,o,u,1)>>>0}return a=u,c}function y(n){return n==null}let h=null;function d(){return(h===null||h.buffer.detached===!0||h.buffer.detached===void 0&&h.buffer!==_.memory.buffer)&&(h=new DataView(_.memory.buffer)),h}const W=typeof TextDecoder>"u"?(0,module.require)("util").TextDecoder:TextDecoder;let v=new W("utf-8",{ignoreBOM:!0,fatal:!0});v.decode();function T(n,t){return n=n>>>0,v.decode(A().subarray(n,n+t))}let I=p.length;function i(n){I===p.length&&p.push(p.length+1);const t=I;return I=p[t],p[t]=n,t}function J(n){n<132||(p[n]=I,I=n)}function g(n){const t=r(n);return J(n),t}function k(n){const t=typeof n;if(t=="number"||t=="boolean"||n==null)return`${n}`;if(t=="string")return`"${n}"`;if(t=="symbol"){const c=n.description;return c==null?"Symbol":`Symbol(${c})`}if(t=="function"){const c=n.name;return typeof c=="string"&&c.length>0?`Function(${c})`:"Function"}if(Array.isArray(n)){const c=n.length;let f="[";c>0&&(f+=k(n[0]));for(let u=1;u<c;u++)f+=", "+k(n[u]);return f+="]",f}const e=/\[object ([^\]]+)\]/.exec(toString.call(n));let o;if(e.length>1)o=e[1];else return toString.call(n);if(o=="Object")try{return"Object("+JSON.stringify(n)+")"}catch{return"Object"}return n instanceof Error?`${n.name}: ${n.message}
2
+ ${n.stack}`:o}const E=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>{_.__wbindgen_export_2.get(n.dtor)(n.a,n.b)});function Q(n,t,e,o){const c={a:n,b:t,cnt:1,dtor:e},f=(...u)=>{c.cnt++;const s=c.a;c.a=0;try{return o(s,c.b,...u)}finally{--c.cnt===0?(_.__wbindgen_export_2.get(c.dtor)(s,c.b),E.unregister(c)):c.a=s}};return f.original=c,E.register(f,c,c),f}function H(n,t,e){_._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h92ff5ab9e3740637(n,t,i(e))}function G(){const n=_.getBuildTimeInfo();return g(n)}function K(n){try{const f=_.__wbindgen_add_to_stack_pointer(-16);var t=y(n)?0:b(n,_.__wbindgen_malloc,_.__wbindgen_realloc),e=a;_.debug_panic(f,t,e);var o=d().getInt32(f+4*0,!0),c=d().getInt32(f+4*1,!0);if(c)throw g(o)}finally{_.__wbindgen_add_to_stack_pointer(16)}}function l(n,t){try{return n.apply(this,t)}catch(e){_.__wbindgen_exn_store(i(e))}}function X(n,t,e,o){_.wasm_bindgen__convert__closures__invoke2_mut__h2dd59201d446cc9a(n,t,i(e),i(o))}const F=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>_.__wbg_queryengine_free(n>>>0,1));class Y{__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,F.unregister(this),t}free(){const t=this.__destroy_into_raw();_.__wbg_queryengine_free(t,0)}constructor(t,e,o){try{const s=_.__wbindgen_add_to_stack_pointer(-16);_.queryengine_new(s,i(t),i(e),i(o));var c=d().getInt32(s+4*0,!0),f=d().getInt32(s+4*1,!0),u=d().getInt32(s+4*2,!0);if(u)throw g(f);return this.__wbg_ptr=c>>>0,F.register(this,this.__wbg_ptr,this),this}finally{_.__wbindgen_add_to_stack_pointer(16)}}connect(t,e){const o=b(t,_.__wbindgen_malloc,_.__wbindgen_realloc),c=a,f=b(e,_.__wbindgen_malloc,_.__wbindgen_realloc),u=a,s=_.queryengine_connect(this.__wbg_ptr,o,c,f,u);return g(s)}disconnect(t,e){const o=b(t,_.__wbindgen_malloc,_.__wbindgen_realloc),c=a,f=b(e,_.__wbindgen_malloc,_.__wbindgen_realloc),u=a,s=_.queryengine_disconnect(this.__wbg_ptr,o,c,f,u);return g(s)}query(t,e,o,c){const f=b(t,_.__wbindgen_malloc,_.__wbindgen_realloc),u=a,s=b(e,_.__wbindgen_malloc,_.__wbindgen_realloc),w=a;var x=y(o)?0:b(o,_.__wbindgen_malloc,_.__wbindgen_realloc),m=a;const R=b(c,_.__wbindgen_malloc,_.__wbindgen_realloc),D=a,M=_.queryengine_query(this.__wbg_ptr,f,u,s,w,x,m,R,D);return g(M)}startTransaction(t,e,o){const c=b(t,_.__wbindgen_malloc,_.__wbindgen_realloc),f=a,u=b(e,_.__wbindgen_malloc,_.__wbindgen_realloc),s=a,w=b(o,_.__wbindgen_malloc,_.__wbindgen_realloc),x=a,m=_.queryengine_startTransaction(this.__wbg_ptr,c,f,u,s,w,x);return g(m)}commitTransaction(t,e,o){const c=b(t,_.__wbindgen_malloc,_.__wbindgen_realloc),f=a,u=b(e,_.__wbindgen_malloc,_.__wbindgen_realloc),s=a,w=b(o,_.__wbindgen_malloc,_.__wbindgen_realloc),x=a,m=_.queryengine_commitTransaction(this.__wbg_ptr,c,f,u,s,w,x);return g(m)}rollbackTransaction(t,e,o){const c=b(t,_.__wbindgen_malloc,_.__wbindgen_realloc),f=a,u=b(e,_.__wbindgen_malloc,_.__wbindgen_realloc),s=a,w=b(o,_.__wbindgen_malloc,_.__wbindgen_realloc),x=a,m=_.queryengine_rollbackTransaction(this.__wbg_ptr,c,f,u,s,w,x);return g(m)}metrics(t){const e=b(t,_.__wbindgen_malloc,_.__wbindgen_realloc),o=a,c=_.queryengine_metrics(this.__wbg_ptr,e,o);return g(c)}trace(t){const e=b(t,_.__wbindgen_malloc,_.__wbindgen_realloc),o=a,c=_.queryengine_trace(this.__wbg_ptr,e,o);return g(c)}}function Z(n,t){const e=r(t),o=typeof e=="string"?e:void 0;var c=y(o)?0:b(o,_.__wbindgen_malloc,_.__wbindgen_realloc),f=a;d().setInt32(n+4*1,f,!0),d().setInt32(n+4*0,c,!0)}function nn(n,t){try{var e={a:n,b:t},o=(f,u)=>{const s=e.a;e.a=0;try{return X(s,e.b,f,u)}finally{e.a=s}};const c=new Promise(o);return i(c)}finally{e.a=e.b=0}}function tn(n,t){return setTimeout(r(n),t>>>0)}function en(n,t){const e=T(n,t);return i(e)}function rn(n,t){const e=new Error(T(n,t));return i(e)}function _n(n){const t=r(n);return i(t)}function on(n){return r(n)===void 0}function cn(){return l(function(n,t){return Reflect.has(r(n),r(t))},arguments)}function un(){return l(function(n,t){const e=JSON.parse(T(n,t));return i(e)},arguments)}function sn(){return i(new Date)}function fn(n){return r(n).getTime()}function an(n){return r(n).now()}function bn(){return Date.now()}function gn(n){const t=Object.keys(r(n));return i(t)}function ln(n){return r(n).length}function dn(n){g(n)}function wn(n){let t;try{t=r(n)instanceof Promise}catch{t=!1}return t}function pn(n){const t=r(n);return typeof t=="object"&&t!==null}function xn(){return i(Symbol.iterator)}function mn(n){const t=r(n);return typeof t=="boolean"?t?1:0:2}function yn(n){return typeof r(n)=="bigint"}function hn(n,t){const e=r(t),o=typeof e=="number"?e:void 0;d().setFloat64(n+8*1,y(o)?0:o,!0),d().setInt32(n+4*0,!y(o),!0)}function Tn(n){return i(n)}function In(n,t){return r(n)in r(t)}function Sn(n){const t=BigInt.asUintN(64,n);return i(t)}function jn(n,t){return r(n)===r(t)}function An(n){return i(n)}function On(){const n=new Array;return i(n)}function qn(n,t,e){r(n)[t>>>0]=g(e)}function kn(){return i(new Map)}function vn(){const n=new Object;return i(n)}function En(n,t,e){const o=r(n).set(r(t),r(e));return i(o)}function Fn(n){return typeof r(n)=="string"}function Rn(n,t,e){r(n)[g(t)]=g(e)}function Dn(n,t){const e=r(n)[r(t)];return i(e)}function Mn(n,t){return r(n).push(r(t))}function Un(){return l(function(n,t){const e=r(n)[g(t)];return i(e)},arguments)}function Bn(n,t){const e=String(r(t)),o=b(e,_.__wbindgen_malloc,_.__wbindgen_realloc),c=a;d().setInt32(n+4*1,c,!0),d().setInt32(n+4*0,o,!0)}function Nn(){const n=_.memory;return i(n)}function Cn(n){const t=r(n).buffer;return i(t)}function $n(n,t,e){const o=new Uint8Array(r(n),t>>>0,e>>>0);return i(o)}function Vn(n){const t=new Uint8Array(r(n));return i(t)}function zn(n,t,e){const o=r(n).subarray(t>>>0,e>>>0);return i(o)}function Ln(){return l(function(n,t){r(n).getRandomValues(r(t))},arguments)}function Pn(){return l(function(n,t){r(n).randomFillSync(g(t))},arguments)}function Wn(n){const t=r(n).crypto;return i(t)}function Jn(n){const t=r(n).process;return i(t)}function Qn(n){const t=r(n).versions;return i(t)}function Hn(n){const t=r(n).node;return i(t)}function Gn(){return l(function(){const n=module.require;return i(n)},arguments)}function Kn(n){const t=r(n).msCrypto;return i(t)}function Xn(n){const t=new Uint8Array(n>>>0);return i(t)}function Yn(n){return typeof r(n)=="function"}function Zn(){return l(function(n,t){const e=r(n).call(r(t));return i(e)},arguments)}function nt(n,t){const e=r(n)[t>>>0];return i(e)}function tt(n){return r(n).valueOf()}function et(){return l(function(n){const t=r(n).next();return i(t)},arguments)}function rt(n){return r(n).done}function _t(n){const t=r(n).value;return i(t)}function ot(n){const t=r(n).next;return i(t)}function ct(){return l(function(n,t){const e=Reflect.get(r(n),r(t));return i(e)},arguments)}function it(){return l(function(){const n=self.self;return i(n)},arguments)}function ut(){return l(function(){const n=window.window;return i(n)},arguments)}function st(){return l(function(){const n=globalThis.globalThis;return i(n)},arguments)}function ft(){return l(function(){const n=global.global;return i(n)},arguments)}function at(n,t){const e=new S(T(n,t));return i(e)}function bt(n){return Array.isArray(r(n))}function gt(){return l(function(n,t,e){const o=r(n).call(r(t),r(e));return i(o)},arguments)}function lt(n){return Number.isSafeInteger(r(n))}function dt(){return l(function(n,t,e){return Reflect.set(r(n),r(t),r(e))},arguments)}function wt(){return l(function(n){const t=JSON.stringify(r(n));return i(t)},arguments)}function pt(n,t,e){r(n).set(r(t),e>>>0)}function xt(n){return r(n).length}function mt(){return l(function(){return Date.now()},arguments)}function yt(n,t){return r(n)==r(t)}function ht(n){let t;try{t=r(n)instanceof Uint8Array}catch{t=!1}return t}function Tt(n){let t;try{t=r(n)instanceof ArrayBuffer}catch{t=!1}return t}function It(n){const t=Object.entries(r(n));return i(t)}function St(n,t){throw new Error(T(n,t))}function jt(n,t){const e=r(t),o=typeof e=="bigint"?e:void 0;d().setBigInt64(n+8*1,y(o)?BigInt(0):o,!0),d().setInt32(n+4*0,!y(o),!0)}function At(n,t){const e=k(r(t)),o=b(e,_.__wbindgen_malloc,_.__wbindgen_realloc),c=a;d().setInt32(n+4*1,c,!0),d().setInt32(n+4*0,o,!0)}function Ot(n){const t=g(n).original;return t.cnt--==1?(t.a=0,!0):!1}function qt(n,t){const e=r(n).then(r(t));return i(e)}function kt(n,t,e){const o=r(n).then(r(t),r(e));return i(o)}function vt(n){const t=Promise.resolve(r(n));return i(t)}function Et(n,t,e){const o=Q(n,t,541,H);return i(o)}0&&(module.exports={QueryEngine,__wbg_String_88810dfeb4021902,__wbg_buffer_b7b08af79b0b0974,__wbg_call_1084a111329e68ce,__wbg_call_89af060b4e1523f2,__wbg_crypto_58f13aa23ffcb166,__wbg_done_bfda7aa8f252b39f,__wbg_entries_7a0e06255456ebcd,__wbg_getRandomValues_504510b5564925af,__wbg_getTime_91058879093a1589,__wbg_get_224d16597dbbfd96,__wbg_get_3baa728f9d58d3f6,__wbg_get_94990005bd6ca07c,__wbg_getwithrefkey_5e6d9547403deab8,__wbg_globalThis_86b222e13bdf32ed,__wbg_global_e5a3fe56f8be9485,__wbg_has_4bfbc01db38743f7,__wbg_instanceof_ArrayBuffer_61dfc3198373c902,__wbg_instanceof_Promise_ae8c7ffdec83f2ae,__wbg_instanceof_Uint8Array_247a91427532499e,__wbg_isArray_8364a5371e9737d8,__wbg_isSafeInteger_7f1ed56200d90674,__wbg_iterator_888179a48810a9fe,__wbg_keys_7840ae453e408eab,__wbg_length_8339fcf5d8ecd12e,__wbg_length_ae22078168b726f5,__wbg_msCrypto_abcb1295e768d1f2,__wbg_new0_65387337a95cf44d,__wbg_new_525245e2b9901204,__wbg_new_8608a2b51a5f6737,__wbg_new_a220cf903aa02ca2,__wbg_new_b85e72ed1bfd57f9,__wbg_new_ea1883e1e5e86686,__wbg_newnoargs_76313bd6ff35d0f2,__wbg_newwithbyteoffsetandlength_8a2cb9ca96b27ec9,__wbg_newwithlength_ec548f448387c968,__wbg_next_de3e9db4440638b2,__wbg_next_f9cb570345655b9a,__wbg_node_523d7bd03ef69fba,__wbg_now_28a6b413aca4a96a,__wbg_now_8ed1a4454e40ecd1,__wbg_now_b7a162010a9e75b4,__wbg_parse_52202f117ec9ecfa,__wbg_process_5b786e71d465a513,__wbg_push_37c89022f34c01ca,__wbg_randomFillSync_a0d98aa11c81fe89,__wbg_require_2784e593a4674877,__wbg_resolve_570458cb99d56a43,__wbg_self_3093d5d1f7bcb682,__wbg_setTimeout_631fe61f31fa2fad,__wbg_set_49185437f0ab06f8,__wbg_set_673dda6c73d19609,__wbg_set_841ac57cff3d672b,__wbg_set_d1e79e2388520f18,__wbg_set_eacc7d73fefaafdf,__wbg_set_wasm,__wbg_stringify_bbf45426c92a6bf5,__wbg_subarray_7c2e3576afe181d1,__wbg_then_876bb3c633745cc6,__wbg_then_95e6edc0f89b73b1,__wbg_valueOf_c759749a331da0c0,__wbg_value_6d39332ab4788d86,__wbg_versions_c2ab80650590b6a2,__wbg_window_3bcfc4d31bc012f8,__wbindgen_bigint_from_i64,__wbindgen_bigint_from_u64,__wbindgen_bigint_get_as_i64,__wbindgen_boolean_get,__wbindgen_cb_drop,__wbindgen_closure_wrapper6974,__wbindgen_debug_string,__wbindgen_error_new,__wbindgen_in,__wbindgen_is_bigint,__wbindgen_is_function,__wbindgen_is_object,__wbindgen_is_string,__wbindgen_is_undefined,__wbindgen_jsval_eq,__wbindgen_jsval_loose_eq,__wbindgen_memory,__wbindgen_number_get,__wbindgen_number_new,__wbindgen_object_clone_ref,__wbindgen_object_drop_ref,__wbindgen_string_get,__wbindgen_string_new,__wbindgen_throw,debug_panic,getBuildTimeInfo});