prisma 5.23.0-dev.26 → 5.23.0-dev.28

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 zl=Object.create;var Lr=Object.defineProperty;var Yl=Object.getOwnPropertyDescriptor;var Zl=Object.getOwnPropertyNames;var Xl=Object.getPrototypeOf,eu=Object.prototype.hasOwnProperty;var z=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),jt=(e,t)=>{for(var r in t)Lr(e,r,{get:t[r],enumerable:!0})},mo=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Zl(t))!eu.call(e,i)&&i!==r&&Lr(e,i,{get:()=>t[i],enumerable:!(n=Yl(t,i))||n.enumerable});return e};var k=(e,t,r)=>(r=e!=null?zl(Xl(e)):{},mo(t||!e||!e.__esModule?Lr(r,"default",{value:e,enumerable:!0}):r,e)),tu=e=>mo(Lr({},"__esModule",{value:!0}),e);var Mo=z((tf,Yn)=>{"use strict";var v=Yn.exports;Yn.exports.default=v;var D="\x1B[",Gt="\x1B]",pt="\x07",Qr=";",Fo=process.env.TERM_PROGRAM==="Apple_Terminal";v.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"};v.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};v.cursorUp=(e=1)=>D+e+"A";v.cursorDown=(e=1)=>D+e+"B";v.cursorForward=(e=1)=>D+e+"C";v.cursorBackward=(e=1)=>D+e+"D";v.cursorLeft=D+"G";v.cursorSavePosition=Fo?"\x1B7":D+"s";v.cursorRestorePosition=Fo?"\x1B8":D+"u";v.cursorGetPosition=D+"6n";v.cursorNextLine=D+"E";v.cursorPrevLine=D+"F";v.cursorHide=D+"?25l";v.cursorShow=D+"?25h";v.eraseLines=e=>{let t="";for(let r=0;r<e;r++)t+=v.eraseLine+(r<e-1?v.cursorUp():"");return e&&(t+=v.cursorLeft),t};v.eraseEndLine=D+"K";v.eraseStartLine=D+"1K";v.eraseLine=D+"2K";v.eraseDown=D+"J";v.eraseUp=D+"1J";v.eraseScreen=D+"2J";v.scrollUp=D+"S";v.scrollDown=D+"T";v.clearScreen="\x1Bc";v.clearTerminal=process.platform==="win32"?`${v.eraseScreen}${D}0f`:`${v.eraseScreen}${D}3J${D}H`;v.beep=pt;v.link=(e,t)=>[Gt,"8",Qr,Qr,t,pt,e,Gt,"8",Qr,Qr,pt].join("");v.image=(e,t={})=>{let r=`${Gt}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")+pt};v.iTerm={setCwd:(e=process.cwd())=>`${Gt}50;CurrentDir=${e}${pt}`,annotation:(e,t={})=>{let r=`${Gt}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+pt}}});var Zn=z((rf,$o)=>{"use strict";$o.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 Vo=z((nf,jo)=>{"use strict";var ju=require("os"),qo=require("tty"),de=Zn(),{env:Q}=process,Qe;de("no-color")||de("no-colors")||de("color=false")||de("color=never")?Qe=0:(de("color")||de("colors")||de("color=true")||de("color=always"))&&(Qe=1);"FORCE_COLOR"in Q&&(Q.FORCE_COLOR==="true"?Qe=1:Q.FORCE_COLOR==="false"?Qe=0:Qe=Q.FORCE_COLOR.length===0?1:Math.min(parseInt(Q.FORCE_COLOR,10),3));function Xn(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function ei(e,t){if(Qe===0)return 0;if(de("color=16m")||de("color=full")||de("color=truecolor"))return 3;if(de("color=256"))return 2;if(e&&!t&&Qe===void 0)return 0;let r=Qe||0;if(Q.TERM==="dumb")return r;if(process.platform==="win32"){let n=ju.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in Q)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in Q)||Q.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in Q)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Q.TEAMCITY_VERSION)?1:0;if(Q.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Q){let n=parseInt((Q.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Q.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Q.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Q.TERM)||"COLORTERM"in Q?1:r}function Vu(e){let t=ei(e,e&&e.isTTY);return Xn(t)}jo.exports={supportsColor:Vu,stdout:Xn(ei(!0,qo.isatty(1))),stderr:Xn(ei(!0,qo.isatty(2)))}});var Qo=z((of,Uo)=>{"use strict";var Bu=Vo(),dt=Zn();function Bo(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 ti(e){let{env:t}=process;if("FORCE_HYPERLINK"in t)return!(t.FORCE_HYPERLINK.length>0&&parseInt(t.FORCE_HYPERLINK,10)===0);if(dt("no-hyperlink")||dt("no-hyperlinks")||dt("hyperlink=false")||dt("hyperlink=never"))return!1;if(dt("hyperlink=true")||dt("hyperlink=always")||"NETLIFY"in t)return!0;if(!Bu.supportsColor(e)||e&&!e.isTTY||process.platform==="win32"||"CI"in t||"TEAMCITY_VERSION"in t)return!1;if("TERM_PROGRAM"in t){let r=Bo(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=Bo(t.VTE_VERSION);return r.major>0||r.minor>=50}return!1}Uo.exports={supportsHyperlink:ti,stdout:ti(process.stdout),stderr:ti(process.stderr)}});var Jo=z((sf,Jt)=>{"use strict";var Uu=Mo(),ri=Qo(),Go=(e,t,{target:r="stdout",...n}={})=>ri[r]?Uu.link(e,t):n.fallback===!1?e:typeof n.fallback=="function"?n.fallback(e,t):`${e} (\u200B${t}\u200B)`;Jt.exports=(e,t,r={})=>Go(e,t,r);Jt.exports.stderr=(e,t,r={})=>Go(e,t,{target:"stderr",...r});Jt.exports.isSupported=ri.stdout;Jt.exports.stderr.isSupported=ri.stderr});var ii=z((hf,Qu)=>{Qu.exports={name:"@prisma/engines-version",version:"5.23.0-13.06d4b2f30bf4fc71a1cb03bdc0f69f8c2a5c2b9c",main:"index.js",types:"index.d.ts",license:"Apache-2.0",author:"Tim Suchanek <suchanek@prisma.io>",prisma:{enginesVersion:"06d4b2f30bf4fc71a1cb03bdc0f69f8c2a5c2b9c"},repository:{type:"git",url:"https://github.com/prisma/engines-wrapper.git",directory:"packages/engines-version"},devDependencies:{"@types/node":"18.19.34",typescript:"4.9.5"},files:["index.js","index.d.ts"],scripts:{build:"tsc -d"}}});var oi=z(Gr=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});Gr.enginesVersion=void 0;Gr.enginesVersion=ii().prisma.enginesVersion});var zo=z((Nf,Wu)=>{Wu.exports={name:"dotenv",version:"16.0.3",description:"Loads environment variables from .env file",main:"lib/main.js",types:"lib/main.d.ts",exports:{".":{require:"./lib/main.js",types:"./lib/main.d.ts",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","lint-readme":"standard-markdown",pretest:"npm run lint && npm run dts-check",test:"tap tests/*.js --100 -Rspec",prerelease:"npm test",release:"standard-version"},repository:{type:"git",url:"git://github.com/motdotla/dotenv.git"},keywords:["dotenv","env",".env","environment","variables","config","settings"],readmeFilename:"README.md",license:"BSD-2-Clause",devDependencies:{"@types/node":"^17.0.9",decache:"^4.6.1",dtslint:"^3.7.0",sinon:"^12.0.1",standard:"^16.0.4","standard-markdown":"^7.1.0","standard-version":"^9.3.2",tap:"^15.1.6",tar:"^6.1.11",typescript:"^4.5.4"},engines:{node:">=12"}}});var Zo=z((Ff,Wr)=>{"use strict";var Hu=require("fs"),Yo=require("path"),Ku=require("os"),zu=zo(),Yu=zu.version,Zu=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function Xu(e){let t={},r=e.toString();r=r.replace(/\r\n?/mg,`
1
+ "use strict";var zl=Object.create;var Lr=Object.defineProperty;var Yl=Object.getOwnPropertyDescriptor;var Zl=Object.getOwnPropertyNames;var Xl=Object.getPrototypeOf,eu=Object.prototype.hasOwnProperty;var z=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),jt=(e,t)=>{for(var r in t)Lr(e,r,{get:t[r],enumerable:!0})},mo=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Zl(t))!eu.call(e,i)&&i!==r&&Lr(e,i,{get:()=>t[i],enumerable:!(n=Yl(t,i))||n.enumerable});return e};var k=(e,t,r)=>(r=e!=null?zl(Xl(e)):{},mo(t||!e||!e.__esModule?Lr(r,"default",{value:e,enumerable:!0}):r,e)),tu=e=>mo(Lr({},"__esModule",{value:!0}),e);var Mo=z((tf,Yn)=>{"use strict";var v=Yn.exports;Yn.exports.default=v;var D="\x1B[",Gt="\x1B]",pt="\x07",Qr=";",Fo=process.env.TERM_PROGRAM==="Apple_Terminal";v.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"};v.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};v.cursorUp=(e=1)=>D+e+"A";v.cursorDown=(e=1)=>D+e+"B";v.cursorForward=(e=1)=>D+e+"C";v.cursorBackward=(e=1)=>D+e+"D";v.cursorLeft=D+"G";v.cursorSavePosition=Fo?"\x1B7":D+"s";v.cursorRestorePosition=Fo?"\x1B8":D+"u";v.cursorGetPosition=D+"6n";v.cursorNextLine=D+"E";v.cursorPrevLine=D+"F";v.cursorHide=D+"?25l";v.cursorShow=D+"?25h";v.eraseLines=e=>{let t="";for(let r=0;r<e;r++)t+=v.eraseLine+(r<e-1?v.cursorUp():"");return e&&(t+=v.cursorLeft),t};v.eraseEndLine=D+"K";v.eraseStartLine=D+"1K";v.eraseLine=D+"2K";v.eraseDown=D+"J";v.eraseUp=D+"1J";v.eraseScreen=D+"2J";v.scrollUp=D+"S";v.scrollDown=D+"T";v.clearScreen="\x1Bc";v.clearTerminal=process.platform==="win32"?`${v.eraseScreen}${D}0f`:`${v.eraseScreen}${D}3J${D}H`;v.beep=pt;v.link=(e,t)=>[Gt,"8",Qr,Qr,t,pt,e,Gt,"8",Qr,Qr,pt].join("");v.image=(e,t={})=>{let r=`${Gt}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")+pt};v.iTerm={setCwd:(e=process.cwd())=>`${Gt}50;CurrentDir=${e}${pt}`,annotation:(e,t={})=>{let r=`${Gt}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+pt}}});var Zn=z((rf,$o)=>{"use strict";$o.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 Vo=z((nf,jo)=>{"use strict";var ju=require("os"),qo=require("tty"),de=Zn(),{env:Q}=process,Qe;de("no-color")||de("no-colors")||de("color=false")||de("color=never")?Qe=0:(de("color")||de("colors")||de("color=true")||de("color=always"))&&(Qe=1);"FORCE_COLOR"in Q&&(Q.FORCE_COLOR==="true"?Qe=1:Q.FORCE_COLOR==="false"?Qe=0:Qe=Q.FORCE_COLOR.length===0?1:Math.min(parseInt(Q.FORCE_COLOR,10),3));function Xn(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function ei(e,t){if(Qe===0)return 0;if(de("color=16m")||de("color=full")||de("color=truecolor"))return 3;if(de("color=256"))return 2;if(e&&!t&&Qe===void 0)return 0;let r=Qe||0;if(Q.TERM==="dumb")return r;if(process.platform==="win32"){let n=ju.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in Q)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in Q)||Q.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in Q)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Q.TEAMCITY_VERSION)?1:0;if(Q.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Q){let n=parseInt((Q.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Q.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Q.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Q.TERM)||"COLORTERM"in Q?1:r}function Vu(e){let t=ei(e,e&&e.isTTY);return Xn(t)}jo.exports={supportsColor:Vu,stdout:Xn(ei(!0,qo.isatty(1))),stderr:Xn(ei(!0,qo.isatty(2)))}});var Qo=z((of,Uo)=>{"use strict";var Bu=Vo(),dt=Zn();function Bo(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 ti(e){let{env:t}=process;if("FORCE_HYPERLINK"in t)return!(t.FORCE_HYPERLINK.length>0&&parseInt(t.FORCE_HYPERLINK,10)===0);if(dt("no-hyperlink")||dt("no-hyperlinks")||dt("hyperlink=false")||dt("hyperlink=never"))return!1;if(dt("hyperlink=true")||dt("hyperlink=always")||"NETLIFY"in t)return!0;if(!Bu.supportsColor(e)||e&&!e.isTTY||process.platform==="win32"||"CI"in t||"TEAMCITY_VERSION"in t)return!1;if("TERM_PROGRAM"in t){let r=Bo(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=Bo(t.VTE_VERSION);return r.major>0||r.minor>=50}return!1}Uo.exports={supportsHyperlink:ti,stdout:ti(process.stdout),stderr:ti(process.stderr)}});var Jo=z((sf,Jt)=>{"use strict";var Uu=Mo(),ri=Qo(),Go=(e,t,{target:r="stdout",...n}={})=>ri[r]?Uu.link(e,t):n.fallback===!1?e:typeof n.fallback=="function"?n.fallback(e,t):`${e} (\u200B${t}\u200B)`;Jt.exports=(e,t,r={})=>Go(e,t,r);Jt.exports.stderr=(e,t,r={})=>Go(e,t,{target:"stderr",...r});Jt.exports.isSupported=ri.stdout;Jt.exports.stderr.isSupported=ri.stderr});var ii=z((hf,Qu)=>{Qu.exports={name:"@prisma/engines-version",version:"5.23.0-18.c1f560085eac7ac5a5014b5a5a9f7ddf9b9fcb1b",main:"index.js",types:"index.d.ts",license:"Apache-2.0",author:"Tim Suchanek <suchanek@prisma.io>",prisma:{enginesVersion:"c1f560085eac7ac5a5014b5a5a9f7ddf9b9fcb1b"},repository:{type:"git",url:"https://github.com/prisma/engines-wrapper.git",directory:"packages/engines-version"},devDependencies:{"@types/node":"18.19.34",typescript:"4.9.5"},files:["index.js","index.d.ts"],scripts:{build:"tsc -d"}}});var oi=z(Gr=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});Gr.enginesVersion=void 0;Gr.enginesVersion=ii().prisma.enginesVersion});var zo=z((Nf,Wu)=>{Wu.exports={name:"dotenv",version:"16.0.3",description:"Loads environment variables from .env file",main:"lib/main.js",types:"lib/main.d.ts",exports:{".":{require:"./lib/main.js",types:"./lib/main.d.ts",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","lint-readme":"standard-markdown",pretest:"npm run lint && npm run dts-check",test:"tap tests/*.js --100 -Rspec",prerelease:"npm test",release:"standard-version"},repository:{type:"git",url:"git://github.com/motdotla/dotenv.git"},keywords:["dotenv","env",".env","environment","variables","config","settings"],readmeFilename:"README.md",license:"BSD-2-Clause",devDependencies:{"@types/node":"^17.0.9",decache:"^4.6.1",dtslint:"^3.7.0",sinon:"^12.0.1",standard:"^16.0.4","standard-markdown":"^7.1.0","standard-version":"^9.3.2",tap:"^15.1.6",tar:"^6.1.11",typescript:"^4.5.4"},engines:{node:">=12"}}});var Zo=z((Ff,Wr)=>{"use strict";var Hu=require("fs"),Yo=require("path"),Ku=require("os"),zu=zo(),Yu=zu.version,Zu=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function Xu(e){let t={},r=e.toString();r=r.replace(/\r\n?/mg,`
2
2
  `);let n;for(;(n=Zu.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 ui(e){console.log(`[dotenv@${Yu}][DEBUG] ${e}`)}function ec(e){return e[0]==="~"?Yo.join(Ku.homedir(),e.slice(1)):e}function tc(e){let t=Yo.resolve(process.cwd(),".env"),r="utf8",n=!!(e&&e.debug),i=!!(e&&e.override);e&&(e.path!=null&&(t=ec(e.path)),e.encoding!=null&&(r=e.encoding));try{let o=Jr.parse(Hu.readFileSync(t,{encoding:r}));return Object.keys(o).forEach(function(s){Object.prototype.hasOwnProperty.call(process.env,s)?(i===!0&&(process.env[s]=o[s]),n&&ui(i===!0?`"${s}" is already defined in \`process.env\` and WAS overwritten`:`"${s}" is already defined in \`process.env\` and was NOT overwritten`)):process.env[s]=o[s]}),{parsed:o}}catch(o){return n&&ui(`Failed to load ${t} ${o.message}`),{error:o}}}var Jr={config:tc,parse:Xu};Wr.exports.config=Jr.config;Wr.exports.parse=Jr.parse;Wr.exports=Jr});var is=z((Uf,ns)=>{"use strict";ns.exports=e=>{let t=e.match(/^[ \t]*(?=\S)/gm);return t?t.reduce((r,n)=>Math.min(r,n.length),1/0):0}});var ss=z((Qf,os)=>{"use strict";var oc=is();os.exports=e=>{let t=oc(e);if(t===0)return e;let r=new RegExp(`^[ \\t]{${t}}`,"gm");return e.replace(r,"")}});var mi=z((zf,as)=>{"use strict";as.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 ps=z((Xf,cs)=>{"use strict";cs.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 yi=z((eg,ds)=>{"use strict";var mc=ps();ds.exports=e=>typeof e=="string"?e.replace(mc(),""):e});var ms=z((ng,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 Si=z((dh,Ns)=>{"use strict";Ns.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,T,S,C,E=[];for(l=0;l<i;l++)E.push(l+1),E.push(t.charCodeAt(s+l));for(var me=E.length-1;a<o-3;)for(O=r.charCodeAt(s+(u=a)),T=r.charCodeAt(s+(c=a+1)),S=r.charCodeAt(s+(p=a+2)),C=r.charCodeAt(s+(d=a+3)),f=a+=4,l=0;l<me;l+=2)g=E[l],h=E[l+1],u=e(g,u,c,O,h),c=e(u,c,p,T,h),p=e(c,p,d,S,h),f=e(p,d,f,C,h),E[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<me;l+=2)g=E[l],E[l]=f=e(g,u,f,O,E[l+1]),u=g;return f}}()});var Sm={};jt(Sm,{Debug:()=>Un,Decimal:()=>xe,Extensions:()=>qn,MetricsClient:()=>At,PrismaClientInitializationError:()=>R,PrismaClientKnownRequestError:()=>Z,PrismaClientRustPanicError:()=>le,PrismaClientUnknownRequestError:()=>V,PrismaClientValidationError:()=>X,Public:()=>jn,Sql:()=>oe,defineDmmfProperty:()=>sa,deserializeJsonResponse:()=>yt,dmmfToRuntimeDataModel:()=>oa,empty:()=>ca,getPrismaClient:()=>Wl,getRuntime:()=>An,join:()=>ua,makeStrictEnum:()=>Hl,makeTypedQueryFactory:()=>aa,objectEnumValues:()=>hn,raw:()=>qi,serializeJsonQuery:()=>Pn,skip:()=>xn,sqltag:()=>ji,warnEnvConflicts:()=>Kl,warnOnce:()=>Xt});module.exports=tu(Sm);var qn={};jt(qn,{defineExtension:()=>fo,getExtensionContext:()=>go});function fo(e){return typeof e=="function"?e:t=>t.$extends(e)}function go(e){return e}var jn={};jt(jn,{validator:()=>ho});function ho(...e){return t=>t}var Nr={};jt(Nr,{$:()=>xo,bgBlack:()=>pu,bgBlue:()=>gu,bgCyan:()=>yu,bgGreen:()=>mu,bgMagenta:()=>hu,bgRed:()=>du,bgWhite:()=>bu,bgYellow:()=>fu,black:()=>au,blue:()=>et,bold:()=>J,cyan:()=>De,dim:()=>Oe,gray:()=>Vt,green:()=>$e,grey:()=>cu,hidden:()=>ou,inverse:()=>iu,italic:()=>nu,magenta:()=>lu,red:()=>ce,reset:()=>ru,strikethrough:()=>su,underline:()=>Y,white:()=>uu,yellow:()=>ke});var Vn,yo,bo,Eo,wo=!0;typeof process<"u"&&({FORCE_COLOR:Vn,NODE_DISABLE_COLORS:yo,NO_COLOR:bo,TERM:Eo}=process.env||{},wo=process.stdout&&process.stdout.isTTY);var xo={enabled:!yo&&bo==null&&Eo!=="dumb"&&(Vn!=null&&Vn!=="0"||wo)};function M(e,t){let r=new RegExp(`\\x1b\\[${t}m`,"g"),n=`\x1B[${e}m`,i=`\x1B[${t}m`;return function(o){return!xo.enabled||o==null?o:n+(~(""+o).indexOf(i)?o.replace(r,i+n):o)+i}}var ru=M(0,0),J=M(1,22),Oe=M(2,22),nu=M(3,23),Y=M(4,24),iu=M(7,27),ou=M(8,28),su=M(9,29),au=M(30,39),ce=M(31,39),$e=M(32,39),ke=M(33,39),et=M(34,39),lu=M(35,39),De=M(36,39),uu=M(37,39),Vt=M(90,39),cu=M(90,39),pu=M(40,49),du=M(41,49),mu=M(42,49),fu=M(43,49),gu=M(44,49),hu=M(45,49),yu=M(46,49),bu=M(47,49);var Eu=100,Po=["green","yellow","blue","magenta","cyan","red"],Bt=[],vo=Date.now(),wu=0,Bn=typeof process<"u"?process.env:{};globalThis.DEBUG??=Bn.DEBUG??"";globalThis.DEBUG_COLORS??=Bn.DEBUG_COLORS?Bn.DEBUG_COLORS==="true":!0;var Ut={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 xu(e){let t={color:Po[wu++%Po.length],enabled:Ut.enabled(e),namespace:e,log:Ut.log,extend:()=>{}},r=(...n)=>{let{enabled:i,namespace:o,color:s,log:a}=t;if(n.length!==0&&Bt.push([o,...n]),Bt.length>Eu&&Bt.shift(),Ut.enabled(o)||i){let l=n.map(c=>typeof c=="string"?c:Pu(c)),u=`+${Date.now()-vo}ms`;vo=Date.now(),globalThis.DEBUG_COLORS?a(Nr[s](J(o)),...l,Nr[s](u)):a(o,...l,u)}};return new Proxy(r,{get:(n,i)=>t[i],set:(n,i,o)=>t[i]=o})}var Un=new Proxy(xu,{get:(e,t)=>Ut[t],set:(e,t,r)=>Ut[t]=r});function Pu(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 To(e=7500){let t=Bt.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 Ro(){Bt.length=0}var N=Un;var Co=k(require("fs"));function Qn(){let e=process.env.PRISMA_QUERY_ENGINE_LIBRARY;if(!(e&&Co.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 Gn=["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 Fr="libquery_engine";function Mr(e,t){let r=t==="url";return e.includes("windows")?r?"query_engine.dll.node":`query_engine-${e}.dll.node`:e.includes("darwin")?r?`${Fr}.dylib.node`:`${Fr}-${e}.dylib.node`:r?`${Fr}.so.node`:`${Fr}-${e}.so.node`}var Oo=k(require("child_process")),Kn=k(require("fs/promises")),Br=k(require("os"));var _e=Symbol.for("@ts-pattern/matcher"),vu=Symbol.for("@ts-pattern/isVariadic"),qr="@ts-pattern/anonymous-select-key",Jn=e=>!!(e&&typeof e=="object"),$r=e=>e&&!!e[_e],Ee=(e,t,r)=>{if($r(e)){let n=e[_e](),{matched:i,selections:o}=n.match(t);return i&&o&&Object.keys(o).forEach(s=>r(s,o[s])),i}if(Jn(e)){if(!Jn(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];$r(a)&&a[vu]?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)=>Ee(u,s[c],r))&&i.every((u,c)=>Ee(u,a[c],r))&&(o.length===0||Ee(o[0],l,r))}return e.length===t.length&&e.every((s,a)=>Ee(s,t[a],r))}return Object.keys(e).every(n=>{let i=e[n];return(n in t||$r(o=i)&&o[_e]().matcherType==="optional")&&Ee(i,t[n],r);var o})}return Object.is(t,e)},Ue=e=>{var t,r,n;return Jn(e)?$r(e)?(t=(r=(n=e[_e]()).getSelectionKeys)==null?void 0:r.call(n))!=null?t:[]:Array.isArray(e)?Qt(e,Ue):Qt(Object.values(e),Ue):[]},Qt=(e,t)=>e.reduce((r,n)=>r.concat(t(n)),[]);function pe(e){return Object.assign(e,{optional:()=>Tu(e),and:t=>j(e,t),or:t=>Ru(e,t),select:t=>t===void 0?So(e):So(t,e)})}function Tu(e){return pe({[_e]:()=>({match:t=>{let r={},n=(i,o)=>{r[i]=o};return t===void 0?(Ue(e).forEach(i=>n(i,void 0)),{matched:!0,selections:r}):{matched:Ee(e,t,n),selections:r}},getSelectionKeys:()=>Ue(e),matcherType:"optional"})})}function j(...e){return pe({[_e]:()=>({match:t=>{let r={},n=(i,o)=>{r[i]=o};return{matched:e.every(i=>Ee(i,t,n)),selections:r}},getSelectionKeys:()=>Qt(e,Ue),matcherType:"and"})})}function Ru(...e){return pe({[_e]:()=>({match:t=>{let r={},n=(i,o)=>{r[i]=o};return Qt(e,Ue).forEach(i=>n(i,void 0)),{matched:e.some(i=>Ee(i,t,n)),selections:r}},getSelectionKeys:()=>Qt(e,Ue),matcherType:"or"})})}function I(e){return{[_e]:()=>({match:t=>({matched:!!e(t)})})}}function So(...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 pe({[_e]:()=>({match:n=>{let i={[t??qr]:n};return{matched:r===void 0||Ee(r,n,(o,s)=>{i[o]=s}),selections:i}},getSelectionKeys:()=>[t??qr].concat(r===void 0?[]:Ue(r))})})}function ye(e){return typeof e=="number"}function qe(e){return typeof e=="string"}function je(e){return typeof e=="bigint"}var jm=pe(I(function(e){return!0}));var Ve=e=>Object.assign(pe(e),{startsWith:t=>{return Ve(j(e,(r=t,I(n=>qe(n)&&n.startsWith(r)))));var r},endsWith:t=>{return Ve(j(e,(r=t,I(n=>qe(n)&&n.endsWith(r)))));var r},minLength:t=>Ve(j(e,(r=>I(n=>qe(n)&&n.length>=r))(t))),length:t=>Ve(j(e,(r=>I(n=>qe(n)&&n.length===r))(t))),maxLength:t=>Ve(j(e,(r=>I(n=>qe(n)&&n.length<=r))(t))),includes:t=>{return Ve(j(e,(r=t,I(n=>qe(n)&&n.includes(r)))));var r},regex:t=>{return Ve(j(e,(r=t,I(n=>qe(n)&&!!n.match(r)))));var r}}),Vm=Ve(I(qe)),be=e=>Object.assign(pe(e),{between:(t,r)=>be(j(e,((n,i)=>I(o=>ye(o)&&n<=o&&i>=o))(t,r))),lt:t=>be(j(e,(r=>I(n=>ye(n)&&n<r))(t))),gt:t=>be(j(e,(r=>I(n=>ye(n)&&n>r))(t))),lte:t=>be(j(e,(r=>I(n=>ye(n)&&n<=r))(t))),gte:t=>be(j(e,(r=>I(n=>ye(n)&&n>=r))(t))),int:()=>be(j(e,I(t=>ye(t)&&Number.isInteger(t)))),finite:()=>be(j(e,I(t=>ye(t)&&Number.isFinite(t)))),positive:()=>be(j(e,I(t=>ye(t)&&t>0))),negative:()=>be(j(e,I(t=>ye(t)&&t<0)))}),Bm=be(I(ye)),Be=e=>Object.assign(pe(e),{between:(t,r)=>Be(j(e,((n,i)=>I(o=>je(o)&&n<=o&&i>=o))(t,r))),lt:t=>Be(j(e,(r=>I(n=>je(n)&&n<r))(t))),gt:t=>Be(j(e,(r=>I(n=>je(n)&&n>r))(t))),lte:t=>Be(j(e,(r=>I(n=>je(n)&&n<=r))(t))),gte:t=>Be(j(e,(r=>I(n=>je(n)&&n>=r))(t))),positive:()=>Be(j(e,I(t=>je(t)&&t>0))),negative:()=>Be(j(e,I(t=>je(t)&&t<0)))}),Um=Be(I(je)),Qm=pe(I(function(e){return typeof e=="boolean"})),Gm=pe(I(function(e){return typeof e=="symbol"})),Jm=pe(I(function(e){return e==null})),Wm=pe(I(function(e){return e!=null}));var Wn={matched:!1,value:void 0};function ct(e){return new Hn(e,Wn)}var Hn=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=>Ee(u,this.input,a))||i&&!i(this.input)?Wn:{matched:!0,value:r(o?qr in s?s[qr]: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)}:Wn)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(){if(this.state.matched)return this.state.value;let t;try{t=JSON.stringify(this.input)}catch{t=this.input}throw new Error(`Pattern matching error: no pattern matches value ${t}`)}run(){return this.exhaustive()}returnType(){return this}};var ko=require("util");var Cu={warn:ke("prisma:warn")},Su={warn:()=>!process.env.PRISMA_DISABLE_WARNINGS};function jr(e,...t){Su.warn()&&console.warn(`${Cu.warn} ${e}`,...t)}var Au=(0,ko.promisify)(Oo.default.exec),te=N("prisma:get-platform"),Iu=["1.0.x","1.1.x","3.0.x"];async function Do(){let e=Br.default.platform(),t=process.arch;if(e==="freebsd"){let s=await Ur("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 ku(),n=await qu(),i=_u({arch:t,archFromUname:n,familyDistro:r.familyDistro}),{libssl:o}=await Lu(i);return{platform:"linux",libssl:o,arch:t,archFromUname:n,...r}}function Ou(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=ct({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 te(`Found distro info:
@@ -107,7 +107,7 @@ ${Y(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 _t({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 R(`error: Environment variable not found: ${s.fromEnvVar}.`,n);if(i===void 0)throw new R("error: Missing URL environment variable, value, or override.",n);return i}var Dn=class extends Error{constructor(t,r){super(t),this.clientVersion=r.clientVersion,this.cause=r.cause}get[Symbol.toStringTag](){return this.name}};var se=class extends Dn{constructor(t,r){super(t,r),this.isRetryable=r.isRetryable??!0}};function A(e,t){return{...e,isRetryable:t}}var Lt=class extends se{constructor(r){super("This request must be retried",A(r,!0));this.name="ForcedRetryError";this.code="P5001"}};x(Lt,"ForcedRetryError");var it=class extends se{constructor(r,n){super(r,A(n,!1));this.name="InvalidDatasourceError";this.code="P6001"}};x(it,"InvalidDatasourceError");var ot=class extends se{constructor(r,n){super(r,A(n,!1));this.name="NotImplementedYetError";this.code="P5004"}};x(ot,"NotImplementedYetError");var q=class extends se{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 st=class extends q{constructor(r){super("Schema needs to be uploaded",A(r,!0));this.name="SchemaMissingError";this.code="P5005"}};x(st,"SchemaMissingError");var Hi="This request could not be understood by the server",br=class extends q{constructor(r,n,i){super(n||Hi,A(r,!1));this.name="BadRequestError";this.code="P5000";i&&(this.code=i)}};x(br,"BadRequestError");var Er=class extends q{constructor(r,n){super("Engine not started: healthcheck timeout",A(r,!0));this.name="HealthcheckTimeoutError";this.code="P5013";this.logs=n}};x(Er,"HealthcheckTimeoutError");var wr=class extends q{constructor(r,n,i){super(n,A(r,!0));this.name="EngineStartupError";this.code="P5014";this.logs=i}};x(wr,"EngineStartupError");var xr=class extends q{constructor(r){super("Engine version is not supported",A(r,!1));this.name="EngineVersionNotSupportedError";this.code="P5012"}};x(xr,"EngineVersionNotSupportedError");var Ki="Request timed out",Pr=class extends q{constructor(r,n=Ki){super(n,A(r,!1));this.name="GatewayTimeoutError";this.code="P5009"}};x(Pr,"GatewayTimeoutError");var Hd="Interactive transaction error",vr=class extends q{constructor(r,n=Hd){super(n,A(r,!1));this.name="InteractiveTransactionError";this.code="P5015"}};x(vr,"InteractiveTransactionError");var Kd="Request parameters are invalid",Tr=class extends q{constructor(r,n=Kd){super(n,A(r,!1));this.name="InvalidRequestError";this.code="P5011"}};x(Tr,"InvalidRequestError");var zi="Requested resource does not exist",Rr=class extends q{constructor(r,n=zi){super(n,A(r,!1));this.name="NotFoundError";this.code="P5003"}};x(Rr,"NotFoundError");var Yi="Unknown server error",Nt=class extends q{constructor(r,n,i){super(n||Yi,A(r,!0));this.name="ServerError";this.code="P5006";this.logs=i}};x(Nt,"ServerError");var Zi="Unauthorized, check your connection string",Cr=class extends q{constructor(r,n=Zi){super(n,A(r,!1));this.name="UnauthorizedError";this.code="P5007"}};x(Cr,"UnauthorizedError");var Xi="Usage exceeded, retry again later",Sr=class extends q{constructor(r,n=Xi){super(n,A(r,!0));this.name="UsageExceededError";this.code="P5008"}};x(Sr,"UsageExceededError");async function zd(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 Ar(e,t){if(e.ok)return;let r={clientVersion:t,response:e},n=await zd(e);if(n.type==="QueryEngineError")throw new Z(n.body.message,{code:n.body.error_code,clientVersion:t});if(n.type==="DataProxyError"){if(n.body==="InternalDataProxyError")throw new Nt(r,"Internal Data Proxy error");if("EngineNotStarted"in n.body){if(n.body.EngineNotStarted.reason==="SchemaMissing")return new st(r);if(n.body.EngineNotStarted.reason==="EngineVersionNotSupported")throw new xr(r);if("EngineStartupError"in n.body.EngineNotStarted.reason){let{msg:i,logs:o}=n.body.EngineNotStarted.reason.EngineStartupError;throw new wr(r,i,o)}if("KnownEngineStartupError"in n.body.EngineNotStarted.reason){let{msg:i,error_code:o}=n.body.EngineNotStarted.reason.KnownEngineStartupError;throw new R(i,t,o)}if("HealthcheckTimeout"in n.body.EngineNotStarted.reason){let{logs:i}=n.body.EngineNotStarted.reason.HealthcheckTimeout;throw new Er(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 vr(r,i[n.body.InteractiveTransactionMisrouted.reason])}if("InvalidRequestError"in n.body)throw new Tr(r,n.body.InvalidRequestError.reason)}if(e.status===401||e.status===403)throw new Cr(r,Ft(Zi,n));if(e.status===404)return new Rr(r,Ft(zi,n));if(e.status===429)throw new Sr(r,Ft(Xi,n));if(e.status===504)throw new Pr(r,Ft(Ki,n));if(e.status>=500)throw new Nt(r,Ft(Yi,n));if(e.status>=400)throw new br(r,Ft(Hi,n))}function Ft(e,t){return t.type==="EmptyError"?e:`${e}: ${JSON.stringify(t)}`}function Xa(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 Me="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function el(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+=Me[s]+Me[a]+Me[l]+Me[u];return i==1?(c=t[o],s=(c&252)>>2,a=(c&3)<<4,r+=Me[s]+Me[a]+"=="):i==2&&(c=t[o]<<8|t[o+1],s=(c&64512)>>10,a=(c&1008)>>4,l=(c&15)<<2,r+=Me[s]+Me[a]+Me[l]+"="),r}function tl(e){if(!!e.generator?.previewFeatures.some(r=>r.toLowerCase().includes("metrics")))throw new R("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 Yd(e){return e[0]*1e3+e[1]/1e6}function rl(e){return new Date(Yd(e))}var nl={"@prisma/debug":"workspace:*","@prisma/engines-version":"5.23.0-13.06d4b2f30bf4fc71a1cb03bdc0f69f8c2a5c2b9c","@prisma/fetch-engine":"workspace:*","@prisma/get-platform":"workspace:*"};var Ir=class extends se{constructor(r,n){super(`Cannot fetch data from service:
110
+ `}function _t({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 R(`error: Environment variable not found: ${s.fromEnvVar}.`,n);if(i===void 0)throw new R("error: Missing URL environment variable, value, or override.",n);return i}var Dn=class extends Error{constructor(t,r){super(t),this.clientVersion=r.clientVersion,this.cause=r.cause}get[Symbol.toStringTag](){return this.name}};var se=class extends Dn{constructor(t,r){super(t,r),this.isRetryable=r.isRetryable??!0}};function A(e,t){return{...e,isRetryable:t}}var Lt=class extends se{constructor(r){super("This request must be retried",A(r,!0));this.name="ForcedRetryError";this.code="P5001"}};x(Lt,"ForcedRetryError");var it=class extends se{constructor(r,n){super(r,A(n,!1));this.name="InvalidDatasourceError";this.code="P6001"}};x(it,"InvalidDatasourceError");var ot=class extends se{constructor(r,n){super(r,A(n,!1));this.name="NotImplementedYetError";this.code="P5004"}};x(ot,"NotImplementedYetError");var q=class extends se{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 st=class extends q{constructor(r){super("Schema needs to be uploaded",A(r,!0));this.name="SchemaMissingError";this.code="P5005"}};x(st,"SchemaMissingError");var Hi="This request could not be understood by the server",br=class extends q{constructor(r,n,i){super(n||Hi,A(r,!1));this.name="BadRequestError";this.code="P5000";i&&(this.code=i)}};x(br,"BadRequestError");var Er=class extends q{constructor(r,n){super("Engine not started: healthcheck timeout",A(r,!0));this.name="HealthcheckTimeoutError";this.code="P5013";this.logs=n}};x(Er,"HealthcheckTimeoutError");var wr=class extends q{constructor(r,n,i){super(n,A(r,!0));this.name="EngineStartupError";this.code="P5014";this.logs=i}};x(wr,"EngineStartupError");var xr=class extends q{constructor(r){super("Engine version is not supported",A(r,!1));this.name="EngineVersionNotSupportedError";this.code="P5012"}};x(xr,"EngineVersionNotSupportedError");var Ki="Request timed out",Pr=class extends q{constructor(r,n=Ki){super(n,A(r,!1));this.name="GatewayTimeoutError";this.code="P5009"}};x(Pr,"GatewayTimeoutError");var Hd="Interactive transaction error",vr=class extends q{constructor(r,n=Hd){super(n,A(r,!1));this.name="InteractiveTransactionError";this.code="P5015"}};x(vr,"InteractiveTransactionError");var Kd="Request parameters are invalid",Tr=class extends q{constructor(r,n=Kd){super(n,A(r,!1));this.name="InvalidRequestError";this.code="P5011"}};x(Tr,"InvalidRequestError");var zi="Requested resource does not exist",Rr=class extends q{constructor(r,n=zi){super(n,A(r,!1));this.name="NotFoundError";this.code="P5003"}};x(Rr,"NotFoundError");var Yi="Unknown server error",Nt=class extends q{constructor(r,n,i){super(n||Yi,A(r,!0));this.name="ServerError";this.code="P5006";this.logs=i}};x(Nt,"ServerError");var Zi="Unauthorized, check your connection string",Cr=class extends q{constructor(r,n=Zi){super(n,A(r,!1));this.name="UnauthorizedError";this.code="P5007"}};x(Cr,"UnauthorizedError");var Xi="Usage exceeded, retry again later",Sr=class extends q{constructor(r,n=Xi){super(n,A(r,!0));this.name="UsageExceededError";this.code="P5008"}};x(Sr,"UsageExceededError");async function zd(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 Ar(e,t){if(e.ok)return;let r={clientVersion:t,response:e},n=await zd(e);if(n.type==="QueryEngineError")throw new Z(n.body.message,{code:n.body.error_code,clientVersion:t});if(n.type==="DataProxyError"){if(n.body==="InternalDataProxyError")throw new Nt(r,"Internal Data Proxy error");if("EngineNotStarted"in n.body){if(n.body.EngineNotStarted.reason==="SchemaMissing")return new st(r);if(n.body.EngineNotStarted.reason==="EngineVersionNotSupported")throw new xr(r);if("EngineStartupError"in n.body.EngineNotStarted.reason){let{msg:i,logs:o}=n.body.EngineNotStarted.reason.EngineStartupError;throw new wr(r,i,o)}if("KnownEngineStartupError"in n.body.EngineNotStarted.reason){let{msg:i,error_code:o}=n.body.EngineNotStarted.reason.KnownEngineStartupError;throw new R(i,t,o)}if("HealthcheckTimeout"in n.body.EngineNotStarted.reason){let{logs:i}=n.body.EngineNotStarted.reason.HealthcheckTimeout;throw new Er(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 vr(r,i[n.body.InteractiveTransactionMisrouted.reason])}if("InvalidRequestError"in n.body)throw new Tr(r,n.body.InvalidRequestError.reason)}if(e.status===401||e.status===403)throw new Cr(r,Ft(Zi,n));if(e.status===404)return new Rr(r,Ft(zi,n));if(e.status===429)throw new Sr(r,Ft(Xi,n));if(e.status===504)throw new Pr(r,Ft(Ki,n));if(e.status>=500)throw new Nt(r,Ft(Yi,n));if(e.status>=400)throw new br(r,Ft(Hi,n))}function Ft(e,t){return t.type==="EmptyError"?e:`${e}: ${JSON.stringify(t)}`}function Xa(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 Me="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function el(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+=Me[s]+Me[a]+Me[l]+Me[u];return i==1?(c=t[o],s=(c&252)>>2,a=(c&3)<<4,r+=Me[s]+Me[a]+"=="):i==2&&(c=t[o]<<8|t[o+1],s=(c&64512)>>10,a=(c&1008)>>4,l=(c&15)<<2,r+=Me[s]+Me[a]+Me[l]+"="),r}function tl(e){if(!!e.generator?.previewFeatures.some(r=>r.toLowerCase().includes("metrics")))throw new R("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 Yd(e){return e[0]*1e3+e[1]/1e6}function rl(e){return new Date(Yd(e))}var nl={"@prisma/debug":"workspace:*","@prisma/engines-version":"5.23.0-18.c1f560085eac7ac5a5014b5a5a9f7ddf9b9fcb1b","@prisma/fetch-engine":"workspace:*","@prisma/get-platform":"workspace:*"};var Ir=class extends se{constructor(r,n){super(`Cannot fetch data from service:
111
111
  ${r}`,A(n,!0));this.name="RequestError";this.code="P5010"}};x(Ir,"RequestError");async function at(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 Ir(a,{clientVersion:n,cause:s})}}var Xd=/^[1-9][0-9]*\.[0-9]+\.[0-9]+$/,il=N("prisma:client:dataproxyEngine");async function em(e,t){let r=nl["@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&&Xd.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=tm(`<=${a}.${l}.${u}`),p=await at(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();il("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 ot("Only `major.minor.patch` versions are supported by Accelerate.",{clientVersion:n})}async function ol(e,t){let r=await em(e,t);return il("version",r),r}function tm(e){return encodeURI(`https://unpkg.com/prisma@${e}/package.json`)}var sl=3,eo=N("prisma:client:dataproxyEngine"),to=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}},Or=class{constructor(t){this.name="DataProxyEngine";tl(t),this.config=t,this.env={...t.env,...typeof process<"u"?process.env:{}},this.inlineSchema=el(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 to({apiKey:r,tracingHelper:this.tracingHelper,logLevel:this.config.logLevel,logQueries:this.config.logQueries,engineHash:this.engineHash}),this.remoteClientVersion=await ol(t,this.config),eo("host",this.host)})(),await this.startPromise}async stop(){}propagateResponseExtensions(t){t?.logs?.length&&t.logs.forEach(r=>{switch(r.level){case"debug":case"error":case"trace":case"warn":case"info":break;case"query":{let n=typeof r.attributes.query=="string"?r.attributes.query:"";if(!this.tracingHelper.isEnabled()){let[i]=n.split("/* traceparent");n=i}this.logEmitter.emit("query",{query:n,timestamp:rl(r.timestamp),duration:Number(r.attributes.duration_ms),params:r.attributes.params,target:r.attributes.target})}}}),t?.traces?.length&&this.tracingHelper.createEngineSpan({span:!0,spans: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 at(await this.url("schema"),{method:"PUT",headers:this.headerBuilder.build(),body:this.inlineSchema,clientVersion:this.clientVersion});r.ok||eo("schema response status",r.status);let n=await Ar(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=Ot(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 at(s,{method:"POST",headers:this.headerBuilder.build({traceparent:r,interactiveTransaction:i}),body:JSON.stringify(t),clientVersion:this.clientVersion},n);a.ok||eo("graphql response status",a.status),await this.handleError(await Ar(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 at(a,{method:"POST",headers:this.headerBuilder.build({traceparent:r.traceparent}),body:s,clientVersion:this.clientVersion});await this.handleError(await Ar(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 at(s,{method:"POST",headers:this.headerBuilder.build({traceparent:r.traceparent}),clientVersion:this.clientVersion});await this.handleError(await Ar(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=_t({inlineDatasources:this.inlineDatasources,overrideDatasources:this.config.overrideDatasources,clientVersion:this.clientVersion,env:this.env}),i;try{i=new URL(n)}catch{throw new it(`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!=="prisma+postgres:")throw new it(`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 it(`Error validating datasource \`${r}\`: the URL must contain a valid API key`,t);return[s,l]}metrics(){throw new ot("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 se)||!i.isRetryable)throw i;if(r>=sl)throw i instanceof Lt?i.cause:i;this.logEmitter.emit("warn",{message:`Attempt ${r+1}/${sl} failed for ${t.actionGerund}: ${i.message??"(unknown)"}`,timestamp:new Date,target:""});let o=await Xa(r);this.logEmitter.emit("warn",{message:`Retrying after ${o}ms`,timestamp:new Date,target:""})}}}async handleError(t){if(t instanceof st)throw await this.uploadSchema(),new Lt({clientVersion:this.clientVersion,cause:t});if(t)throw t}convertProtocolErrorsToClientError(t){return t.length===1?kt(t[0],this.config.clientVersion,this.config.activeProvider):new V(JSON.stringify(t),{clientVersion:this.config.clientVersion})}applyPendingMigrations(){throw new Error("Method not implemented.")}};function al(e){if(e?.kind==="itx")return e.options.id}var no=k(require("os")),ll=k(require("path"));var ro=Symbol("PrismaLibraryEngineCache");function rm(){let e=globalThis;return e[ro]===void 0&&(e[ro]={}),e[ro]}function nm(e){let t=rm();if(t[e]!==void 0)return t[e];let r=ll.default.toNamespacedPath(e),n={exports:{}},i=0;return process.platform!=="win32"&&(i=no.default.constants.dlopen.RTLD_LAZY|no.default.constants.dlopen.RTLD_DEEPBIND),process.dlopen(n,r,i),t[e]=n.exports,n.exports}var ul={async loadLibrary(e){let t=await zn(),r=await Ja("library",e);try{return e.tracingHelper.runInChildSpan({name:"loadLibrary",internal:!0},()=>nm(r))}catch(n){let i=li({e:n,platformInfo:t,id:r});throw new R(i,e.clientVersion)}}};var io,cl={async loadLibrary(e){let{clientVersion:t,adapter:r,engineWasm:n}=e;if(r===void 0)throw new R(`The \`adapter\` option for \`PrismaClient\` is required in this context (${An().prettyName})`,t);if(n===void 0)throw new R("WASM engine was unexpectedly `undefined`",t);io===void 0&&(io=(async()=>{let o=n.getRuntime(),s=await n.getQueryEngineWasmModule();if(s==null)throw new R("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 io;return{debugPanic(){return Promise.reject("{}")},dmmf(){return Promise.resolve("{}")},version(){return{commit:"unknown",version:"unknown"}},QueryEngine:i}}};var im="P2036",Ae=N("prisma:client:libraryEngine");function om(e){return e.item_type==="query"&&"query"in e}function sm(e){return"level"in e?e.level==="error"&&e.message==="PANIC":!1}var pl=[...Gn,"native"],kr=class{constructor(t,r){this.name="LibraryEngine";this.libraryLoader=r??ul,t.engineWasm!==void 0&&(this.libraryLoader=r??cl),this.config=t,this.libraryStarted=!1,this.logQueries=t.logQueries??!1,this.logLevel=t.logLevel??"error",this.logEmitter=t.logEmitter,this.datamodel=t.inlineSchema,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()}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(am(s)){let a=this.getExternalAdapterError(s);throw a?a.error:new Z(s.message,{code:s.error_code,clientVersion:this.config.clientVersion,meta:s.meta})}return s}async instantiateLibrary(){if(Ae("internalSetup"),this.libraryInstantiationPromise)return this.libraryInstantiationPromise;Qn(),this.binaryTarget=await this.getCurrentBinaryTarget(),await this.loadEngine(),this.version()}async getCurrentBinaryTarget(){{if(this.binaryTarget)return this.binaryTarget;let t=await tt();if(!pl.includes(t))throw new R(`Unknown ${ce("PRISMA_QUERY_ENGINE_LIBRARY")} ${ce(J(t))}. Possible binaryTargets: ${$e(pl.join(", "))} or a path to the query engine library.
112
112
  You may have to run ${$e("prisma generate")} for your changes to take effect.`,this.config.clientVersion);return t}}parseEngineResponse(t){if(!t)throw new V("Response from the Engine was empty",{clientVersion:this.config.clientVersion});try{return JSON.parse(t)}catch{throw new V("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&&Ae("Using driver adapter: %O",r),this.engine=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"},n=>{t.deref()?.logger(n)},r)}catch(t){let r=t,n=this.parseInitError(r.message);throw typeof n=="string"?r:new R(n.message,this.config.clientVersion,n.error_code)}}}logger(t){let r=this.parseEngineResponse(t);if(r){if("span"in r){this.config.tracingHelper.createEngineSpan(r);return}r.level=r?.level.toLowerCase()??"unknown",om(r)?this.logEmitter.emit("query",{timestamp:new Date,query:r.query,params:r.params,duration:Number(r.duration_ms),target:r.module_path}):sm(r)?this.loggerRustPanic=new le(oo(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 Ae(`library already starting, this.libraryStarted: ${this.libraryStarted}`),this.libraryStartingPromise;if(this.libraryStarted)return;let t=async()=>{Ae("library starting");try{let r={traceparent:this.config.tracingHelper.getTraceParent()};await this.engine?.connect(JSON.stringify(r)),this.libraryStarted=!0,Ae("library started")}catch(r){let n=this.parseInitError(r.message);throw typeof n=="string"?r:new R(n.message,this.config.clientVersion,n.error_code)}finally{this.libraryStartingPromise=void 0}};return this.libraryStartingPromise=this.config.tracingHelper.runInChildSpan("connect",t),this.libraryStartingPromise}async stop(){if(await this.libraryStartingPromise,await this.executingQueryPromise,this.libraryStoppingPromise)return Ae("library is already stopping"),this.libraryStoppingPromise;if(!this.libraryStarted)return;let t=async()=>{await new Promise(n=>setTimeout(n,5)),Ae("library stopping");let r={traceparent:this.config.tracingHelper.getTraceParent()};await this.engine?.disconnect(JSON.stringify(r)),this.libraryStarted=!1,this.libraryStoppingPromise=void 0,Ae("library stopped")};return this.libraryStoppingPromise=this.config.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}){Ae(`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 V(JSON.stringify(s.errors),{clientVersion:this.config.clientVersion});if(this.loggerRustPanic)throw this.loggerRustPanic;return{data:s}}catch(s){if(s instanceof R)throw s;if(s.code==="GenericFailure"&&s.message?.startsWith("PANIC:"))throw new le(oo(this,s.message),this.config.clientVersion);let a=this.parseRequestError(s.message);throw typeof a=="string"?s:new V(`${a.message}
113
113
  ${a.backtrace}`,{clientVersion:this.config.clientVersion})}}async requestBatch(t,{transaction:r,traceparent:n}){Ae("requestBatch");let i=Ot(t,r);await this.start(),this.lastQuery=JSON.stringify(i),this.executingQueryPromise=this.engine.query(this.lastQuery,JSON.stringify({traceparent:n}),al(r));let o=await this.executingQueryPromise,s=this.parseEngineResponse(o);if(s.errors)throw s.errors.length===1?this.buildQueryError(s.errors[0]):new V(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 le(oo(this,t.user_facing_error.message),this.config.clientVersion);let r=this.getExternalAdapterError(t.user_facing_error);return r?r.error:kt(t,this.config.clientVersion,this.config.activeProvider)}getExternalAdapterError(t){if(t.error_code===im&&this.config.adapter){let r=t.meta?.id;Kr(typeof r=="number","Malformed external JS error received from the engine");let n=this.config.adapter.errorRegistry.consumeError(r);return Kr(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 am(e){return typeof e=="object"&&e!==null&&e.error_code!==void 0}function oo(e,t){return Za({binaryTarget:e.binaryTarget,title:t,version:e.config.clientVersion,engineVersion:e.versionInfo?.commit,database:e.config.activeProvider,query:e.lastQuery})}function dl({copyEngine:e=!0},t){let r;try{r=_t({inlineDatasources:t.inlineDatasources,overrideDatasources:t.overrideDatasources,env:{...t.env,...process.env},clientVersion:t.clientVersion})}catch{}let n=!!(r?.startsWith("prisma://")||r?.startsWith("prisma+postgres://"));e&&n&&Xt("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";if(o&&s||s&&!1){let u;throw e?r?.startsWith("prisma://")?u=["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."]:u=["Prisma Client was configured to use both the `adapter` and Accelerate, please chose one."]:u=["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 X(u.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 ao=({clientMethod:e,activeProvider:t})=>r=>{let n="",i;if(la(r))n=r.sql,i={values:Mt(r.values),__prismaRawParameters__:!0};else if(Array.isArray(r)){let[o,...s]=r;n=o,i={values:Mt(s||[]),__prismaRawParameters__:!0}}else switch(t){case"sqlite":case"mysql":{n=r.sql,i={values:Mt(r.values),__prismaRawParameters__:!0};break}case"cockroachdb":case"postgresql":case"postgres":{n=r.text,i={values:Mt(r.values),__prismaRawParameters__:!0};break}case"sqlserver":{n=fl(r),i={values:Mt(r.values),__prismaRawParameters__:!0};break}default:throw new Error(`The ${t} provider does not support ${e}`)}return i?.values?wl(`prisma.${e}(${n}, ${i.values})`):wl(`prisma.${e}(${n})`),{query:n,parameters:i}},xl={requestArgsToMiddlewareArgs(e){return[e.strings,...e.values]},middlewareArgsToRequestArgs(e){let[t,...r]=e;return new oe(t,r)}},Pl={requestArgsToMiddlewareArgs(e){return[e]},middlewareArgsToRequestArgs(e){return e[0]}};function lo(e){return function(r){let n,i=(o=e)=>{try{return o===void 0||o?.kind==="itx"?n??=vl(r(o)):vl(r(o))}catch(s){return Promise.reject(s)}};return{then(o,s){return i().then(o,s)},catch(o){return i().catch(o)},finally(o){return i().finally(o)},requestTransaction(o){let s=i(o);return s.requestTransaction?s.requestTransaction(o):s},[Symbol.toStringTag]:"PrismaPromise"}}}function vl(e){return typeof e.then=="function"?e:Promise.resolve(e)}var Tl={isEnabled(){return!1},getTraceParent(){return"00-10-10-00"},async createEngineSpan(){},getActiveContext(){},runInChildSpan(e,t){return t()}},uo=class{isEnabled(){return this.getGlobalTracingHelper().isEnabled()}getTraceParent(t){return this.getGlobalTracingHelper().getTraceParent(t)}createEngineSpan(t){return this.getGlobalTracingHelper().createEngineSpan(t)}getActiveContext(){return this.getGlobalTracingHelper().getActiveContext()}runInChildSpan(t,r){return this.getGlobalTracingHelper().runInChildSpan(t,r)}getGlobalTracingHelper(){return globalThis.PRISMA_INSTRUMENTATION?.helper??Tl}};function Rl(e){return e.includes("tracing")?new uo:Tl}function Cl(e,t=()=>{}){let r,n=new Promise(i=>r=i);return{then(i){return--e===0&&r(t()),i?.(n)}}}function Sl(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 Ln=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 Ol=k(yi());function Nn(e){return typeof e.batchRequestIdx=="number"}function Al(e){if(e.action!=="findUnique"&&e.action!=="findUniqueOrThrow")return;let t=[];return e.modelName&&t.push(e.modelName),e.query.arguments&&t.push(co(e.query.arguments)),t.push(co(e.query.selection)),t.join("")}function co(e){return`(${Object.keys(e).sort().map(r=>{let n=e[r];return typeof n=="object"&&n!==null?`(${r} ${co(n)})`:r}).join(" ")})`}var pm={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,updateOne:!0,upsertOne:!0};function po(e){return pm[e]}var Fn=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 lt(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 xe(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=>lt("bigint",r));case"bytes-array":return t.map(r=>lt("bytes",r));case"decimal-array":return t.map(r=>lt("decimal",r));case"datetime-array":return t.map(r=>lt("datetime",r));case"date-array":return t.map(r=>lt("date",r));case"time-array":return t.map(r=>lt("time",r));default:return t}}function Il(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]]=lt(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 mm=N("prisma:client:request_handler"),Mn=class{constructor(t,r){this.logEmitter=r,this.client=t,this.dataloader=new Fn({batchLoader:_a(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:fm(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"?kl(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}`:Al(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(mm(t),gm(t,i))throw t;if(t instanceof Z&&hm(t)){let u=Dl(t.meta);En({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=un({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 Z(l,{code:t.code,clientVersion:this.client._clientVersion,meta:u,batchRequestIdx:t.batchRequestIdx})}else{if(t.isPanic)throw new le(l,this.client._clientVersion);if(t instanceof V)throw new V(l,{clientVersion:this.client._clientVersion,batchRequestIdx:t.batchRequestIdx});if(t instanceof R)throw new R(l,this.client._clientVersion);if(t instanceof le)throw new le(l,this.client._clientVersion)}throw t.clientVersion=this.client._clientVersion,t}sanitizeMessage(t){return this.client._errorFormat&&this.client._errorFormat!=="pretty"?(0,Ol.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=Ui(o,s),l=i==="queryRaw"?Il(a):yt(a);return n?n(l):l}get[Symbol.toStringTag](){return"RequestHandler"}};function fm(e){if(e){if(e.kind==="batch")return{kind:"batch",options:{isolationLevel:e.isolationLevel}};if(e.kind==="itx")return{kind:"itx",options:kl(e)};Le(e,"Unknown transaction kind")}}function kl(e){return{id:e.id,payload:e.payload}}function gm(e,t){return Nn(e)&&t?.kind==="batch"&&e.batchRequestIdx!==t.index}function hm(e){return e.code==="P2009"||e.code==="P2012"}function Dl(e){if(e.kind==="Union")return{kind:"Union",errors:e.errors.map(Dl)};if(Array.isArray(e.selectionPath)){let[,...t]=e.selectionPath;return{...e,selectionPath:t}}return e}var _l="5.23.0-dev.26";var Ll=_l;var ql=k(Si());var L=class extends Error{constructor(t){super(t+`
121
+ `)}var ao=({clientMethod:e,activeProvider:t})=>r=>{let n="",i;if(la(r))n=r.sql,i={values:Mt(r.values),__prismaRawParameters__:!0};else if(Array.isArray(r)){let[o,...s]=r;n=o,i={values:Mt(s||[]),__prismaRawParameters__:!0}}else switch(t){case"sqlite":case"mysql":{n=r.sql,i={values:Mt(r.values),__prismaRawParameters__:!0};break}case"cockroachdb":case"postgresql":case"postgres":{n=r.text,i={values:Mt(r.values),__prismaRawParameters__:!0};break}case"sqlserver":{n=fl(r),i={values:Mt(r.values),__prismaRawParameters__:!0};break}default:throw new Error(`The ${t} provider does not support ${e}`)}return i?.values?wl(`prisma.${e}(${n}, ${i.values})`):wl(`prisma.${e}(${n})`),{query:n,parameters:i}},xl={requestArgsToMiddlewareArgs(e){return[e.strings,...e.values]},middlewareArgsToRequestArgs(e){let[t,...r]=e;return new oe(t,r)}},Pl={requestArgsToMiddlewareArgs(e){return[e]},middlewareArgsToRequestArgs(e){return e[0]}};function lo(e){return function(r){let n,i=(o=e)=>{try{return o===void 0||o?.kind==="itx"?n??=vl(r(o)):vl(r(o))}catch(s){return Promise.reject(s)}};return{then(o,s){return i().then(o,s)},catch(o){return i().catch(o)},finally(o){return i().finally(o)},requestTransaction(o){let s=i(o);return s.requestTransaction?s.requestTransaction(o):s},[Symbol.toStringTag]:"PrismaPromise"}}}function vl(e){return typeof e.then=="function"?e:Promise.resolve(e)}var Tl={isEnabled(){return!1},getTraceParent(){return"00-10-10-00"},async createEngineSpan(){},getActiveContext(){},runInChildSpan(e,t){return t()}},uo=class{isEnabled(){return this.getGlobalTracingHelper().isEnabled()}getTraceParent(t){return this.getGlobalTracingHelper().getTraceParent(t)}createEngineSpan(t){return this.getGlobalTracingHelper().createEngineSpan(t)}getActiveContext(){return this.getGlobalTracingHelper().getActiveContext()}runInChildSpan(t,r){return this.getGlobalTracingHelper().runInChildSpan(t,r)}getGlobalTracingHelper(){return globalThis.PRISMA_INSTRUMENTATION?.helper??Tl}};function Rl(e){return e.includes("tracing")?new uo:Tl}function Cl(e,t=()=>{}){let r,n=new Promise(i=>r=i);return{then(i){return--e===0&&r(t()),i?.(n)}}}function Sl(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 Ln=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 Ol=k(yi());function Nn(e){return typeof e.batchRequestIdx=="number"}function Al(e){if(e.action!=="findUnique"&&e.action!=="findUniqueOrThrow")return;let t=[];return e.modelName&&t.push(e.modelName),e.query.arguments&&t.push(co(e.query.arguments)),t.push(co(e.query.selection)),t.join("")}function co(e){return`(${Object.keys(e).sort().map(r=>{let n=e[r];return typeof n=="object"&&n!==null?`(${r} ${co(n)})`:r}).join(" ")})`}var pm={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,updateOne:!0,upsertOne:!0};function po(e){return pm[e]}var Fn=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 lt(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 xe(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=>lt("bigint",r));case"bytes-array":return t.map(r=>lt("bytes",r));case"decimal-array":return t.map(r=>lt("decimal",r));case"datetime-array":return t.map(r=>lt("datetime",r));case"date-array":return t.map(r=>lt("date",r));case"time-array":return t.map(r=>lt("time",r));default:return t}}function Il(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]]=lt(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 mm=N("prisma:client:request_handler"),Mn=class{constructor(t,r){this.logEmitter=r,this.client=t,this.dataloader=new Fn({batchLoader:_a(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:fm(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"?kl(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}`:Al(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(mm(t),gm(t,i))throw t;if(t instanceof Z&&hm(t)){let u=Dl(t.meta);En({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=un({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 Z(l,{code:t.code,clientVersion:this.client._clientVersion,meta:u,batchRequestIdx:t.batchRequestIdx})}else{if(t.isPanic)throw new le(l,this.client._clientVersion);if(t instanceof V)throw new V(l,{clientVersion:this.client._clientVersion,batchRequestIdx:t.batchRequestIdx});if(t instanceof R)throw new R(l,this.client._clientVersion);if(t instanceof le)throw new le(l,this.client._clientVersion)}throw t.clientVersion=this.client._clientVersion,t}sanitizeMessage(t){return this.client._errorFormat&&this.client._errorFormat!=="pretty"?(0,Ol.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=Ui(o,s),l=i==="queryRaw"?Il(a):yt(a);return n?n(l):l}get[Symbol.toStringTag](){return"RequestHandler"}};function fm(e){if(e){if(e.kind==="batch")return{kind:"batch",options:{isolationLevel:e.isolationLevel}};if(e.kind==="itx")return{kind:"itx",options:kl(e)};Le(e,"Unknown transaction kind")}}function kl(e){return{id:e.id,payload:e.payload}}function gm(e,t){return Nn(e)&&t?.kind==="batch"&&e.batchRequestIdx!==t.index}function hm(e){return e.code==="P2009"||e.code==="P2012"}function Dl(e){if(e.kind==="Union")return{kind:"Union",errors:e.errors.map(Dl)};if(Array.isArray(e.selectionPath)){let[,...t]=e.selectionPath;return{...e,selectionPath:t}}return e}var _l="5.23.0-dev.28";var Ll=_l;var ql=k(Si());var L=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"}};x(L,"PrismaClientConstructorValidationError");var Nl=["datasources","datasourceUrl","errorFormat","adapter","log","transactionOptions","omit","__internal"],Fl=["pretty","colorless","minimal"],Ml=["info","query","warn","error"],bm={datasources:(e,{datasourceNames:t})=>{if(e){if(typeof e!="object"||Array.isArray(e))throw new L(`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=$t(r,t)||` Available datasources: ${t.join(", ")}`;throw new L(`Unknown datasource ${r} provided to PrismaClient constructor.${i}`)}if(typeof n!="object"||Array.isArray(n))throw new L(`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 L(`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 L(`Invalid value ${JSON.stringify(o)} for datasource "${r}" provided to PrismaClient constructor.
@@ -1,2 +1,2 @@
1
- "use strict";var A=Object.defineProperty;var R=Object.getOwnPropertyDescriptor;var D=Object.getOwnPropertyNames;var M=Object.prototype.hasOwnProperty;var U=(t,e)=>{for(var n in e)A(t,n,{get:e[n],enumerable:!0})},B=(t,e,n,_)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of D(e))!M.call(t,o)&&o!==n&&A(t,o,{get:()=>e[o],enumerable:!(_=R(e,o))||_.enumerable});return t};var N=t=>B(A({},"__esModule",{value:!0}),t);var qe={};U(qe,{QueryEngine:()=>G,__wbg_String_88810dfeb4021902:()=>Rt,__wbg_buffer_b7b08af79b0b0974:()=>Mt,__wbg_call_1084a111329e68ce:()=>Gt,__wbg_call_89af060b4e1523f2:()=>se,__wbg_crypto_58f13aa23ffcb166:()=>Vt,__wbg_done_bfda7aa8f252b39f:()=>Zt,__wbg_entries_7a0e06255456ebcd:()=>ye,__wbg_getRandomValues_504510b5564925af:()=>Ct,__wbg_getTime_91058879093a1589:()=>ct,__wbg_get_224d16597dbbfd96:()=>ne,__wbg_get_3baa728f9d58d3f6:()=>Kt,__wbg_get_94990005bd6ca07c:()=>Ft,__wbg_getwithrefkey_5e6d9547403deab8:()=>vt,__wbg_globalThis_86b222e13bdf32ed:()=>oe,__wbg_global_e5a3fe56f8be9485:()=>ce,__wbg_has_4bfbc01db38743f7:()=>rt,__wbg_instanceof_ArrayBuffer_61dfc3198373c902:()=>xe,__wbg_instanceof_Promise_ae8c7ffdec83f2ae:()=>bt,__wbg_instanceof_Uint8Array_247a91427532499e:()=>pe,__wbg_isArray_8364a5371e9737d8:()=>ue,__wbg_isSafeInteger_7f1ed56200d90674:()=>fe,__wbg_iterator_888179a48810a9fe:()=>lt,__wbg_keys_7840ae453e408eab:()=>st,__wbg_length_8339fcf5d8ecd12e:()=>le,__wbg_length_ae22078168b726f5:()=>ft,__wbg_msCrypto_abcb1295e768d1f2:()=>Jt,__wbg_new0_65387337a95cf44d:()=>ot,__wbg_new_525245e2b9901204:()=>At,__wbg_new_8608a2b51a5f6737:()=>jt,__wbg_new_a220cf903aa02ca2:()=>It,__wbg_new_b85e72ed1bfd57f9:()=>Y,__wbg_new_ea1883e1e5e86686:()=>Bt,__wbg_newnoargs_76313bd6ff35d0f2:()=>ie,__wbg_newwithbyteoffsetandlength_8a2cb9ca96b27ec9:()=>Ut,__wbg_newwithlength_ec548f448387c968:()=>Qt,__wbg_next_de3e9db4440638b2:()=>ee,__wbg_next_f9cb570345655b9a:()=>Yt,__wbg_node_523d7bd03ef69fba:()=>Pt,__wbg_now_28a6b413aca4a96a:()=>de,__wbg_now_8ed1a4454e40ecd1:()=>it,__wbg_now_b7a162010a9e75b4:()=>ut,__wbg_parse_52202f117ec9ecfa:()=>_t,__wbg_process_5b786e71d465a513:()=>zt,__wbg_push_37c89022f34c01ca:()=>Et,__wbg_randomFillSync_a0d98aa11c81fe89:()=>$t,__wbg_require_2784e593a4674877:()=>Wt,__wbg_resolve_570458cb99d56a43:()=>Ae,__wbg_self_3093d5d1f7bcb682:()=>re,__wbg_setTimeout_631fe61f31fa2fad:()=>Z,__wbg_set_49185437f0ab06f8:()=>Ot,__wbg_set_673dda6c73d19609:()=>St,__wbg_set_841ac57cff3d672b:()=>kt,__wbg_set_d1e79e2388520f18:()=>ge,__wbg_set_eacc7d73fefaafdf:()=>ae,__wbg_set_wasm:()=>C,__wbg_stringify_bbf45426c92a6bf5:()=>be,__wbg_subarray_7c2e3576afe181d1:()=>Nt,__wbg_then_876bb3c633745cc6:()=>je,__wbg_then_95e6edc0f89b73b1:()=>Se,__wbg_valueOf_c759749a331da0c0:()=>Xt,__wbg_value_6d39332ab4788d86:()=>te,__wbg_versions_c2ab80650590b6a2:()=>Lt,__wbg_window_3bcfc4d31bc012f8:()=>_e,__wbindgen_bigint_from_i64:()=>xt,__wbindgen_bigint_from_u64:()=>mt,__wbindgen_bigint_get_as_i64:()=>he,__wbindgen_boolean_get:()=>dt,__wbindgen_cb_drop:()=>Ie,__wbindgen_closure_wrapper7009:()=>Oe,__wbindgen_debug_string:()=>Te,__wbindgen_error_new:()=>X,__wbindgen_in:()=>yt,__wbindgen_is_bigint:()=>wt,__wbindgen_is_function:()=>Ht,__wbindgen_is_object:()=>gt,__wbindgen_is_string:()=>qt,__wbindgen_is_undefined:()=>nt,__wbindgen_jsval_eq:()=>ht,__wbindgen_jsval_loose_eq:()=>we,__wbindgen_memory:()=>Dt,__wbindgen_number_get:()=>pt,__wbindgen_number_new:()=>Tt,__wbindgen_object_clone_ref:()=>et,__wbindgen_object_drop_ref:()=>at,__wbindgen_string_get:()=>K,__wbindgen_string_new:()=>tt,__wbindgen_throw:()=>me,debug_panic:()=>Q,getBuildTimeInfo:()=>J});module.exports=N(qe);var T=()=>{};T.prototype=T;let c;function C(t){c=t}const w=new Array(128).fill(void 0);w.push(void 0,null,!0,!1);function r(t){return w[t]}let a=0,I=null;function S(){return(I===null||I.byteLength===0)&&(I=new Uint8Array(c.memory.buffer)),I}const $=typeof TextEncoder>"u"?(0,module.require)("util").TextEncoder:TextEncoder;let j=new $("utf-8");const V=typeof j.encodeInto=="function"?function(t,e){return j.encodeInto(t,e)}:function(t,e){const n=j.encode(t);return e.set(n),{read:t.length,written:n.length}};function l(t,e,n){if(n===void 0){const s=j.encode(t),p=e(s.length,1)>>>0;return S().subarray(p,p+s.length).set(s),a=s.length,p}let _=t.length,o=e(_,1)>>>0;const f=S();let u=0;for(;u<_;u++){const s=t.charCodeAt(u);if(s>127)break;f[o+u]=s}if(u!==_){u!==0&&(t=t.slice(u)),o=n(o,_,_=u+t.length*3,1)>>>0;const s=S().subarray(o+u,o+_),p=V(t,s);u+=p.written,o=n(o,_,u,1)>>>0}return a=u,o}function x(t){return t==null}let y=null;function d(){return(y===null||y.buffer.detached===!0||y.buffer.detached===void 0&&y.buffer!==c.memory.buffer)&&(y=new DataView(c.memory.buffer)),y}const z=typeof TextDecoder>"u"?(0,module.require)("util").TextDecoder:TextDecoder;let q=new z("utf-8",{ignoreBOM:!0,fatal:!0});q.decode();function m(t,e){return t=t>>>0,q.decode(S().subarray(t,t+e))}let h=w.length;function i(t){h===w.length&&w.push(w.length+1);const e=h;return h=w[e],w[e]=t,e}function L(t){t<132||(w[t]=h,h=t)}function b(t){const e=r(t);return L(t),e}function O(t){const e=typeof t;if(e=="number"||e=="boolean"||t==null)return`${t}`;if(e=="string")return`"${t}"`;if(e=="symbol"){const o=t.description;return o==null?"Symbol":`Symbol(${o})`}if(e=="function"){const o=t.name;return typeof o=="string"&&o.length>0?`Function(${o})`:"Function"}if(Array.isArray(t)){const o=t.length;let f="[";o>0&&(f+=O(t[0]));for(let u=1;u<o;u++)f+=", "+O(t[u]);return f+="]",f}const n=/\[object ([^\]]+)\]/.exec(toString.call(t));let _;if(n.length>1)_=n[1];else return toString.call(t);if(_=="Object")try{return"Object("+JSON.stringify(t)+")"}catch{return"Object"}return t instanceof Error?`${t.name}: ${t.message}
2
- ${t.stack}`:_}const k=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>{c.__wbindgen_export_2.get(t.dtor)(t.a,t.b)});function P(t,e,n,_){const o={a:t,b:e,cnt:1,dtor:n},f=(...u)=>{o.cnt++;const s=o.a;o.a=0;try{return _(s,o.b,...u)}finally{--o.cnt===0?(c.__wbindgen_export_2.get(o.dtor)(s,o.b),k.unregister(o)):o.a=s}};return f.original=o,k.register(f,o,o),f}function W(t,e,n){c._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9f2fcea3357d311c(t,e,i(n))}function J(){const t=c.getBuildTimeInfo();return b(t)}function Q(t){try{const f=c.__wbindgen_add_to_stack_pointer(-16);var e=x(t)?0:l(t,c.__wbindgen_malloc,c.__wbindgen_realloc),n=a;c.debug_panic(f,e,n);var _=d().getInt32(f+4*0,!0),o=d().getInt32(f+4*1,!0);if(o)throw b(_)}finally{c.__wbindgen_add_to_stack_pointer(16)}}function g(t,e){try{return t.apply(this,e)}catch(n){c.__wbindgen_exn_store(i(n))}}function H(t,e,n,_){c.wasm_bindgen__convert__closures__invoke2_mut__h157f32060ce6ea34(t,e,i(n),i(_))}const v=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>c.__wbg_queryengine_free(t>>>0,1));class G{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,v.unregister(this),e}free(){const e=this.__destroy_into_raw();c.__wbg_queryengine_free(e,0)}constructor(e,n,_){try{const s=c.__wbindgen_add_to_stack_pointer(-16);c.queryengine_new(s,i(e),i(n),i(_));var o=d().getInt32(s+4*0,!0),f=d().getInt32(s+4*1,!0),u=d().getInt32(s+4*2,!0);if(u)throw b(f);return this.__wbg_ptr=o>>>0,v.register(this,this.__wbg_ptr,this),this}finally{c.__wbindgen_add_to_stack_pointer(16)}}connect(e){const n=l(e,c.__wbindgen_malloc,c.__wbindgen_realloc),_=a,o=c.queryengine_connect(this.__wbg_ptr,n,_);return b(o)}disconnect(e){const n=l(e,c.__wbindgen_malloc,c.__wbindgen_realloc),_=a,o=c.queryengine_disconnect(this.__wbg_ptr,n,_);return b(o)}query(e,n,_){const o=l(e,c.__wbindgen_malloc,c.__wbindgen_realloc),f=a,u=l(n,c.__wbindgen_malloc,c.__wbindgen_realloc),s=a;var p=x(_)?0:l(_,c.__wbindgen_malloc,c.__wbindgen_realloc),E=a;const F=c.queryengine_query(this.__wbg_ptr,o,f,u,s,p,E);return b(F)}startTransaction(e,n){const _=l(e,c.__wbindgen_malloc,c.__wbindgen_realloc),o=a,f=l(n,c.__wbindgen_malloc,c.__wbindgen_realloc),u=a,s=c.queryengine_startTransaction(this.__wbg_ptr,_,o,f,u);return b(s)}commitTransaction(e,n){const _=l(e,c.__wbindgen_malloc,c.__wbindgen_realloc),o=a,f=l(n,c.__wbindgen_malloc,c.__wbindgen_realloc),u=a,s=c.queryengine_commitTransaction(this.__wbg_ptr,_,o,f,u);return b(s)}rollbackTransaction(e,n){const _=l(e,c.__wbindgen_malloc,c.__wbindgen_realloc),o=a,f=l(n,c.__wbindgen_malloc,c.__wbindgen_realloc),u=a,s=c.queryengine_rollbackTransaction(this.__wbg_ptr,_,o,f,u);return b(s)}metrics(e){const n=l(e,c.__wbindgen_malloc,c.__wbindgen_realloc),_=a,o=c.queryengine_metrics(this.__wbg_ptr,n,_);return b(o)}}function K(t,e){const n=r(e),_=typeof n=="string"?n:void 0;var o=x(_)?0:l(_,c.__wbindgen_malloc,c.__wbindgen_realloc),f=a;d().setInt32(t+4*1,f,!0),d().setInt32(t+4*0,o,!0)}function X(t,e){const n=new Error(m(t,e));return i(n)}function Y(t,e){try{var n={a:t,b:e},_=(f,u)=>{const s=n.a;n.a=0;try{return H(s,n.b,f,u)}finally{n.a=s}};const o=new Promise(_);return i(o)}finally{n.a=n.b=0}}function Z(t,e){return setTimeout(r(t),e>>>0)}function tt(t,e){const n=m(t,e);return i(n)}function et(t){const e=r(t);return i(e)}function nt(t){return r(t)===void 0}function rt(){return g(function(t,e){return Reflect.has(r(t),r(e))},arguments)}function _t(){return g(function(t,e){const n=JSON.parse(m(t,e));return i(n)},arguments)}function ot(){return i(new Date)}function ct(t){return r(t).getTime()}function it(t){return r(t).now()}function ut(){return Date.now()}function st(t){const e=Object.keys(r(t));return i(e)}function ft(t){return r(t).length}function at(t){b(t)}function bt(t){let e;try{e=r(t)instanceof Promise}catch{e=!1}return e}function gt(t){const e=r(t);return typeof e=="object"&&e!==null}function lt(){return i(Symbol.iterator)}function dt(t){const e=r(t);return typeof e=="boolean"?e?1:0:2}function wt(t){return typeof r(t)=="bigint"}function pt(t,e){const n=r(e),_=typeof n=="number"?n:void 0;d().setFloat64(t+8*1,x(_)?0:_,!0),d().setInt32(t+4*0,!x(_),!0)}function xt(t){return i(t)}function yt(t,e){return r(t)in r(e)}function mt(t){const e=BigInt.asUintN(64,t);return i(e)}function ht(t,e){return r(t)===r(e)}function Tt(t){return i(t)}function It(){const t=new Array;return i(t)}function St(t,e,n){r(t)[e>>>0]=b(n)}function jt(){return i(new Map)}function At(){const t=new Object;return i(t)}function Ot(t,e,n){const _=r(t).set(r(e),r(n));return i(_)}function qt(t){return typeof r(t)=="string"}function kt(t,e,n){r(t)[b(e)]=b(n)}function vt(t,e){const n=r(t)[r(e)];return i(n)}function Et(t,e){return r(t).push(r(e))}function Ft(){return g(function(t,e){const n=r(t)[b(e)];return i(n)},arguments)}function Rt(t,e){const n=String(r(e)),_=l(n,c.__wbindgen_malloc,c.__wbindgen_realloc),o=a;d().setInt32(t+4*1,o,!0),d().setInt32(t+4*0,_,!0)}function Dt(){const t=c.memory;return i(t)}function Mt(t){const e=r(t).buffer;return i(e)}function Ut(t,e,n){const _=new Uint8Array(r(t),e>>>0,n>>>0);return i(_)}function Bt(t){const e=new Uint8Array(r(t));return i(e)}function Nt(t,e,n){const _=r(t).subarray(e>>>0,n>>>0);return i(_)}function Ct(){return g(function(t,e){r(t).getRandomValues(r(e))},arguments)}function $t(){return g(function(t,e){r(t).randomFillSync(b(e))},arguments)}function Vt(t){const e=r(t).crypto;return i(e)}function zt(t){const e=r(t).process;return i(e)}function Lt(t){const e=r(t).versions;return i(e)}function Pt(t){const e=r(t).node;return i(e)}function Wt(){return g(function(){const t=module.require;return i(t)},arguments)}function Jt(t){const e=r(t).msCrypto;return i(e)}function Qt(t){const e=new Uint8Array(t>>>0);return i(e)}function Ht(t){return typeof r(t)=="function"}function Gt(){return g(function(t,e){const n=r(t).call(r(e));return i(n)},arguments)}function Kt(t,e){const n=r(t)[e>>>0];return i(n)}function Xt(t){return r(t).valueOf()}function Yt(){return g(function(t){const e=r(t).next();return i(e)},arguments)}function Zt(t){return r(t).done}function te(t){const e=r(t).value;return i(e)}function ee(t){const e=r(t).next;return i(e)}function ne(){return g(function(t,e){const n=Reflect.get(r(t),r(e));return i(n)},arguments)}function re(){return g(function(){const t=self.self;return i(t)},arguments)}function _e(){return g(function(){const t=window.window;return i(t)},arguments)}function oe(){return g(function(){const t=globalThis.globalThis;return i(t)},arguments)}function ce(){return g(function(){const t=global.global;return i(t)},arguments)}function ie(t,e){const n=new T(m(t,e));return i(n)}function ue(t){return Array.isArray(r(t))}function se(){return g(function(t,e,n){const _=r(t).call(r(e),r(n));return i(_)},arguments)}function fe(t){return Number.isSafeInteger(r(t))}function ae(){return g(function(t,e,n){return Reflect.set(r(t),r(e),r(n))},arguments)}function be(){return g(function(t){const e=JSON.stringify(r(t));return i(e)},arguments)}function ge(t,e,n){r(t).set(r(e),n>>>0)}function le(t){return r(t).length}function de(){return g(function(){return Date.now()},arguments)}function we(t,e){return r(t)==r(e)}function pe(t){let e;try{e=r(t)instanceof Uint8Array}catch{e=!1}return e}function xe(t){let e;try{e=r(t)instanceof ArrayBuffer}catch{e=!1}return e}function ye(t){const e=Object.entries(r(t));return i(e)}function me(t,e){throw new Error(m(t,e))}function he(t,e){const n=r(e),_=typeof n=="bigint"?n:void 0;d().setBigInt64(t+8*1,x(_)?BigInt(0):_,!0),d().setInt32(t+4*0,!x(_),!0)}function Te(t,e){const n=O(r(e)),_=l(n,c.__wbindgen_malloc,c.__wbindgen_realloc),o=a;d().setInt32(t+4*1,o,!0),d().setInt32(t+4*0,_,!0)}function Ie(t){const e=b(t).original;return e.cnt--==1?(e.a=0,!0):!1}function Se(t,e){const n=r(t).then(r(e));return i(n)}function je(t,e,n){const _=r(t).then(r(e),r(n));return i(_)}function Ae(t){const e=Promise.resolve(r(t));return i(e)}function Oe(t,e,n){const _=P(t,e,536,W);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_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_wrapper7009,__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 A=Object.defineProperty;var R=Object.getOwnPropertyDescriptor;var D=Object.getOwnPropertyNames;var M=Object.prototype.hasOwnProperty;var U=(t,e)=>{for(var n in e)A(t,n,{get:e[n],enumerable:!0})},B=(t,e,n,_)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of D(e))!M.call(t,o)&&o!==n&&A(t,o,{get:()=>e[o],enumerable:!(_=R(e,o))||_.enumerable});return t};var N=t=>B(A({},"__esModule",{value:!0}),t);var qe={};U(qe,{QueryEngine:()=>G,__wbg_String_88810dfeb4021902:()=>Rt,__wbg_buffer_b7b08af79b0b0974:()=>Mt,__wbg_call_1084a111329e68ce:()=>Gt,__wbg_call_89af060b4e1523f2:()=>se,__wbg_crypto_58f13aa23ffcb166:()=>Vt,__wbg_done_bfda7aa8f252b39f:()=>Zt,__wbg_entries_7a0e06255456ebcd:()=>ye,__wbg_getRandomValues_504510b5564925af:()=>Ct,__wbg_getTime_91058879093a1589:()=>ct,__wbg_get_224d16597dbbfd96:()=>ne,__wbg_get_3baa728f9d58d3f6:()=>Kt,__wbg_get_94990005bd6ca07c:()=>Ft,__wbg_getwithrefkey_5e6d9547403deab8:()=>vt,__wbg_globalThis_86b222e13bdf32ed:()=>oe,__wbg_global_e5a3fe56f8be9485:()=>ce,__wbg_has_4bfbc01db38743f7:()=>rt,__wbg_instanceof_ArrayBuffer_61dfc3198373c902:()=>xe,__wbg_instanceof_Promise_ae8c7ffdec83f2ae:()=>bt,__wbg_instanceof_Uint8Array_247a91427532499e:()=>pe,__wbg_isArray_8364a5371e9737d8:()=>ue,__wbg_isSafeInteger_7f1ed56200d90674:()=>fe,__wbg_iterator_888179a48810a9fe:()=>lt,__wbg_keys_7840ae453e408eab:()=>st,__wbg_length_8339fcf5d8ecd12e:()=>le,__wbg_length_ae22078168b726f5:()=>ft,__wbg_msCrypto_abcb1295e768d1f2:()=>Jt,__wbg_new0_65387337a95cf44d:()=>ot,__wbg_new_525245e2b9901204:()=>At,__wbg_new_8608a2b51a5f6737:()=>jt,__wbg_new_a220cf903aa02ca2:()=>It,__wbg_new_b85e72ed1bfd57f9:()=>Y,__wbg_new_ea1883e1e5e86686:()=>Bt,__wbg_newnoargs_76313bd6ff35d0f2:()=>ie,__wbg_newwithbyteoffsetandlength_8a2cb9ca96b27ec9:()=>Ut,__wbg_newwithlength_ec548f448387c968:()=>Qt,__wbg_next_de3e9db4440638b2:()=>ee,__wbg_next_f9cb570345655b9a:()=>Yt,__wbg_node_523d7bd03ef69fba:()=>Pt,__wbg_now_28a6b413aca4a96a:()=>de,__wbg_now_8ed1a4454e40ecd1:()=>it,__wbg_now_b7a162010a9e75b4:()=>ut,__wbg_parse_52202f117ec9ecfa:()=>_t,__wbg_process_5b786e71d465a513:()=>zt,__wbg_push_37c89022f34c01ca:()=>Et,__wbg_randomFillSync_a0d98aa11c81fe89:()=>$t,__wbg_require_2784e593a4674877:()=>Wt,__wbg_resolve_570458cb99d56a43:()=>Ae,__wbg_self_3093d5d1f7bcb682:()=>re,__wbg_setTimeout_631fe61f31fa2fad:()=>Z,__wbg_set_49185437f0ab06f8:()=>Ot,__wbg_set_673dda6c73d19609:()=>St,__wbg_set_841ac57cff3d672b:()=>kt,__wbg_set_d1e79e2388520f18:()=>ge,__wbg_set_eacc7d73fefaafdf:()=>ae,__wbg_set_wasm:()=>C,__wbg_stringify_bbf45426c92a6bf5:()=>be,__wbg_subarray_7c2e3576afe181d1:()=>Nt,__wbg_then_876bb3c633745cc6:()=>je,__wbg_then_95e6edc0f89b73b1:()=>Se,__wbg_valueOf_c759749a331da0c0:()=>Xt,__wbg_value_6d39332ab4788d86:()=>te,__wbg_versions_c2ab80650590b6a2:()=>Lt,__wbg_window_3bcfc4d31bc012f8:()=>_e,__wbindgen_bigint_from_i64:()=>xt,__wbindgen_bigint_from_u64:()=>mt,__wbindgen_bigint_get_as_i64:()=>he,__wbindgen_boolean_get:()=>dt,__wbindgen_cb_drop:()=>Ie,__wbindgen_closure_wrapper7019:()=>Oe,__wbindgen_debug_string:()=>Te,__wbindgen_error_new:()=>X,__wbindgen_in:()=>yt,__wbindgen_is_bigint:()=>wt,__wbindgen_is_function:()=>Ht,__wbindgen_is_object:()=>gt,__wbindgen_is_string:()=>qt,__wbindgen_is_undefined:()=>nt,__wbindgen_jsval_eq:()=>ht,__wbindgen_jsval_loose_eq:()=>we,__wbindgen_memory:()=>Dt,__wbindgen_number_get:()=>pt,__wbindgen_number_new:()=>Tt,__wbindgen_object_clone_ref:()=>et,__wbindgen_object_drop_ref:()=>at,__wbindgen_string_get:()=>K,__wbindgen_string_new:()=>tt,__wbindgen_throw:()=>me,debug_panic:()=>Q,getBuildTimeInfo:()=>J});module.exports=N(qe);var T=()=>{};T.prototype=T;let c;function C(t){c=t}const w=new Array(128).fill(void 0);w.push(void 0,null,!0,!1);function r(t){return w[t]}let a=0,I=null;function S(){return(I===null||I.byteLength===0)&&(I=new Uint8Array(c.memory.buffer)),I}const $=typeof TextEncoder>"u"?(0,module.require)("util").TextEncoder:TextEncoder;let j=new $("utf-8");const V=typeof j.encodeInto=="function"?function(t,e){return j.encodeInto(t,e)}:function(t,e){const n=j.encode(t);return e.set(n),{read:t.length,written:n.length}};function l(t,e,n){if(n===void 0){const s=j.encode(t),p=e(s.length,1)>>>0;return S().subarray(p,p+s.length).set(s),a=s.length,p}let _=t.length,o=e(_,1)>>>0;const f=S();let u=0;for(;u<_;u++){const s=t.charCodeAt(u);if(s>127)break;f[o+u]=s}if(u!==_){u!==0&&(t=t.slice(u)),o=n(o,_,_=u+t.length*3,1)>>>0;const s=S().subarray(o+u,o+_),p=V(t,s);u+=p.written,o=n(o,_,u,1)>>>0}return a=u,o}function x(t){return t==null}let y=null;function d(){return(y===null||y.buffer.detached===!0||y.buffer.detached===void 0&&y.buffer!==c.memory.buffer)&&(y=new DataView(c.memory.buffer)),y}const z=typeof TextDecoder>"u"?(0,module.require)("util").TextDecoder:TextDecoder;let q=new z("utf-8",{ignoreBOM:!0,fatal:!0});q.decode();function m(t,e){return t=t>>>0,q.decode(S().subarray(t,t+e))}let h=w.length;function i(t){h===w.length&&w.push(w.length+1);const e=h;return h=w[e],w[e]=t,e}function L(t){t<132||(w[t]=h,h=t)}function b(t){const e=r(t);return L(t),e}function O(t){const e=typeof t;if(e=="number"||e=="boolean"||t==null)return`${t}`;if(e=="string")return`"${t}"`;if(e=="symbol"){const o=t.description;return o==null?"Symbol":`Symbol(${o})`}if(e=="function"){const o=t.name;return typeof o=="string"&&o.length>0?`Function(${o})`:"Function"}if(Array.isArray(t)){const o=t.length;let f="[";o>0&&(f+=O(t[0]));for(let u=1;u<o;u++)f+=", "+O(t[u]);return f+="]",f}const n=/\[object ([^\]]+)\]/.exec(toString.call(t));let _;if(n.length>1)_=n[1];else return toString.call(t);if(_=="Object")try{return"Object("+JSON.stringify(t)+")"}catch{return"Object"}return t instanceof Error?`${t.name}: ${t.message}
2
+ ${t.stack}`:_}const k=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>{c.__wbindgen_export_2.get(t.dtor)(t.a,t.b)});function P(t,e,n,_){const o={a:t,b:e,cnt:1,dtor:n},f=(...u)=>{o.cnt++;const s=o.a;o.a=0;try{return _(s,o.b,...u)}finally{--o.cnt===0?(c.__wbindgen_export_2.get(o.dtor)(s,o.b),k.unregister(o)):o.a=s}};return f.original=o,k.register(f,o,o),f}function W(t,e,n){c._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9f2fcea3357d311c(t,e,i(n))}function J(){const t=c.getBuildTimeInfo();return b(t)}function Q(t){try{const f=c.__wbindgen_add_to_stack_pointer(-16);var e=x(t)?0:l(t,c.__wbindgen_malloc,c.__wbindgen_realloc),n=a;c.debug_panic(f,e,n);var _=d().getInt32(f+4*0,!0),o=d().getInt32(f+4*1,!0);if(o)throw b(_)}finally{c.__wbindgen_add_to_stack_pointer(16)}}function g(t,e){try{return t.apply(this,e)}catch(n){c.__wbindgen_exn_store(i(n))}}function H(t,e,n,_){c.wasm_bindgen__convert__closures__invoke2_mut__h157f32060ce6ea34(t,e,i(n),i(_))}const v=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>c.__wbg_queryengine_free(t>>>0,1));class G{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,v.unregister(this),e}free(){const e=this.__destroy_into_raw();c.__wbg_queryengine_free(e,0)}constructor(e,n,_){try{const s=c.__wbindgen_add_to_stack_pointer(-16);c.queryengine_new(s,i(e),i(n),i(_));var o=d().getInt32(s+4*0,!0),f=d().getInt32(s+4*1,!0),u=d().getInt32(s+4*2,!0);if(u)throw b(f);return this.__wbg_ptr=o>>>0,v.register(this,this.__wbg_ptr,this),this}finally{c.__wbindgen_add_to_stack_pointer(16)}}connect(e){const n=l(e,c.__wbindgen_malloc,c.__wbindgen_realloc),_=a,o=c.queryengine_connect(this.__wbg_ptr,n,_);return b(o)}disconnect(e){const n=l(e,c.__wbindgen_malloc,c.__wbindgen_realloc),_=a,o=c.queryengine_disconnect(this.__wbg_ptr,n,_);return b(o)}query(e,n,_){const o=l(e,c.__wbindgen_malloc,c.__wbindgen_realloc),f=a,u=l(n,c.__wbindgen_malloc,c.__wbindgen_realloc),s=a;var p=x(_)?0:l(_,c.__wbindgen_malloc,c.__wbindgen_realloc),E=a;const F=c.queryengine_query(this.__wbg_ptr,o,f,u,s,p,E);return b(F)}startTransaction(e,n){const _=l(e,c.__wbindgen_malloc,c.__wbindgen_realloc),o=a,f=l(n,c.__wbindgen_malloc,c.__wbindgen_realloc),u=a,s=c.queryengine_startTransaction(this.__wbg_ptr,_,o,f,u);return b(s)}commitTransaction(e,n){const _=l(e,c.__wbindgen_malloc,c.__wbindgen_realloc),o=a,f=l(n,c.__wbindgen_malloc,c.__wbindgen_realloc),u=a,s=c.queryengine_commitTransaction(this.__wbg_ptr,_,o,f,u);return b(s)}rollbackTransaction(e,n){const _=l(e,c.__wbindgen_malloc,c.__wbindgen_realloc),o=a,f=l(n,c.__wbindgen_malloc,c.__wbindgen_realloc),u=a,s=c.queryengine_rollbackTransaction(this.__wbg_ptr,_,o,f,u);return b(s)}metrics(e){const n=l(e,c.__wbindgen_malloc,c.__wbindgen_realloc),_=a,o=c.queryengine_metrics(this.__wbg_ptr,n,_);return b(o)}}function K(t,e){const n=r(e),_=typeof n=="string"?n:void 0;var o=x(_)?0:l(_,c.__wbindgen_malloc,c.__wbindgen_realloc),f=a;d().setInt32(t+4*1,f,!0),d().setInt32(t+4*0,o,!0)}function X(t,e){const n=new Error(m(t,e));return i(n)}function Y(t,e){try{var n={a:t,b:e},_=(f,u)=>{const s=n.a;n.a=0;try{return H(s,n.b,f,u)}finally{n.a=s}};const o=new Promise(_);return i(o)}finally{n.a=n.b=0}}function Z(t,e){return setTimeout(r(t),e>>>0)}function tt(t,e){const n=m(t,e);return i(n)}function et(t){const e=r(t);return i(e)}function nt(t){return r(t)===void 0}function rt(){return g(function(t,e){return Reflect.has(r(t),r(e))},arguments)}function _t(){return g(function(t,e){const n=JSON.parse(m(t,e));return i(n)},arguments)}function ot(){return i(new Date)}function ct(t){return r(t).getTime()}function it(t){return r(t).now()}function ut(){return Date.now()}function st(t){const e=Object.keys(r(t));return i(e)}function ft(t){return r(t).length}function at(t){b(t)}function bt(t){let e;try{e=r(t)instanceof Promise}catch{e=!1}return e}function gt(t){const e=r(t);return typeof e=="object"&&e!==null}function lt(){return i(Symbol.iterator)}function dt(t){const e=r(t);return typeof e=="boolean"?e?1:0:2}function wt(t){return typeof r(t)=="bigint"}function pt(t,e){const n=r(e),_=typeof n=="number"?n:void 0;d().setFloat64(t+8*1,x(_)?0:_,!0),d().setInt32(t+4*0,!x(_),!0)}function xt(t){return i(t)}function yt(t,e){return r(t)in r(e)}function mt(t){const e=BigInt.asUintN(64,t);return i(e)}function ht(t,e){return r(t)===r(e)}function Tt(t){return i(t)}function It(){const t=new Array;return i(t)}function St(t,e,n){r(t)[e>>>0]=b(n)}function jt(){return i(new Map)}function At(){const t=new Object;return i(t)}function Ot(t,e,n){const _=r(t).set(r(e),r(n));return i(_)}function qt(t){return typeof r(t)=="string"}function kt(t,e,n){r(t)[b(e)]=b(n)}function vt(t,e){const n=r(t)[r(e)];return i(n)}function Et(t,e){return r(t).push(r(e))}function Ft(){return g(function(t,e){const n=r(t)[b(e)];return i(n)},arguments)}function Rt(t,e){const n=String(r(e)),_=l(n,c.__wbindgen_malloc,c.__wbindgen_realloc),o=a;d().setInt32(t+4*1,o,!0),d().setInt32(t+4*0,_,!0)}function Dt(){const t=c.memory;return i(t)}function Mt(t){const e=r(t).buffer;return i(e)}function Ut(t,e,n){const _=new Uint8Array(r(t),e>>>0,n>>>0);return i(_)}function Bt(t){const e=new Uint8Array(r(t));return i(e)}function Nt(t,e,n){const _=r(t).subarray(e>>>0,n>>>0);return i(_)}function Ct(){return g(function(t,e){r(t).getRandomValues(r(e))},arguments)}function $t(){return g(function(t,e){r(t).randomFillSync(b(e))},arguments)}function Vt(t){const e=r(t).crypto;return i(e)}function zt(t){const e=r(t).process;return i(e)}function Lt(t){const e=r(t).versions;return i(e)}function Pt(t){const e=r(t).node;return i(e)}function Wt(){return g(function(){const t=module.require;return i(t)},arguments)}function Jt(t){const e=r(t).msCrypto;return i(e)}function Qt(t){const e=new Uint8Array(t>>>0);return i(e)}function Ht(t){return typeof r(t)=="function"}function Gt(){return g(function(t,e){const n=r(t).call(r(e));return i(n)},arguments)}function Kt(t,e){const n=r(t)[e>>>0];return i(n)}function Xt(t){return r(t).valueOf()}function Yt(){return g(function(t){const e=r(t).next();return i(e)},arguments)}function Zt(t){return r(t).done}function te(t){const e=r(t).value;return i(e)}function ee(t){const e=r(t).next;return i(e)}function ne(){return g(function(t,e){const n=Reflect.get(r(t),r(e));return i(n)},arguments)}function re(){return g(function(){const t=self.self;return i(t)},arguments)}function _e(){return g(function(){const t=window.window;return i(t)},arguments)}function oe(){return g(function(){const t=globalThis.globalThis;return i(t)},arguments)}function ce(){return g(function(){const t=global.global;return i(t)},arguments)}function ie(t,e){const n=new T(m(t,e));return i(n)}function ue(t){return Array.isArray(r(t))}function se(){return g(function(t,e,n){const _=r(t).call(r(e),r(n));return i(_)},arguments)}function fe(t){return Number.isSafeInteger(r(t))}function ae(){return g(function(t,e,n){return Reflect.set(r(t),r(e),r(n))},arguments)}function be(){return g(function(t){const e=JSON.stringify(r(t));return i(e)},arguments)}function ge(t,e,n){r(t).set(r(e),n>>>0)}function le(t){return r(t).length}function de(){return g(function(){return Date.now()},arguments)}function we(t,e){return r(t)==r(e)}function pe(t){let e;try{e=r(t)instanceof Uint8Array}catch{e=!1}return e}function xe(t){let e;try{e=r(t)instanceof ArrayBuffer}catch{e=!1}return e}function ye(t){const e=Object.entries(r(t));return i(e)}function me(t,e){throw new Error(m(t,e))}function he(t,e){const n=r(e),_=typeof n=="bigint"?n:void 0;d().setBigInt64(t+8*1,x(_)?BigInt(0):_,!0),d().setInt32(t+4*0,!x(_),!0)}function Te(t,e){const n=O(r(e)),_=l(n,c.__wbindgen_malloc,c.__wbindgen_realloc),o=a;d().setInt32(t+4*1,o,!0),d().setInt32(t+4*0,_,!0)}function Ie(t){const e=b(t).original;return e.cnt--==1?(e.a=0,!0):!1}function Se(t,e){const n=r(t).then(r(e));return i(n)}function je(t,e,n){const _=r(t).then(r(e),r(n));return i(_)}function Ae(t){const e=Promise.resolve(r(t));return i(e)}function Oe(t,e,n){const _=P(t,e,537,W);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_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_wrapper7019,__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 A=Object.defineProperty;var R=Object.getOwnPropertyDescriptor;var D=Object.getOwnPropertyNames;var M=Object.prototype.hasOwnProperty;var U=(t,e)=>{for(var n in e)A(t,n,{get:e[n],enumerable:!0})},B=(t,e,n,_)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of D(e))!M.call(t,o)&&o!==n&&A(t,o,{get:()=>e[o],enumerable:!(_=R(e,o))||_.enumerable});return t};var N=t=>B(A({},"__esModule",{value:!0}),t);var Ee={};U(Ee,{QueryEngine:()=>G,__wbg_String_88810dfeb4021902:()=>Mt,__wbg_buffer_b7b08af79b0b0974:()=>Bt,__wbg_call_1084a111329e68ce:()=>Xt,__wbg_call_89af060b4e1523f2:()=>ae,__wbg_crypto_58f13aa23ffcb166:()=>Lt,__wbg_done_bfda7aa8f252b39f:()=>ee,__wbg_entries_7a0e06255456ebcd:()=>he,__wbg_exec_a29a4ce5544bd3be:()=>Rt,__wbg_getRandomValues_504510b5564925af:()=>Vt,__wbg_getTime_91058879093a1589:()=>ct,__wbg_get_224d16597dbbfd96:()=>_e,__wbg_get_3baa728f9d58d3f6:()=>Yt,__wbg_get_94990005bd6ca07c:()=>Dt,__wbg_getwithrefkey_5e6d9547403deab8:()=>Et,__wbg_globalThis_86b222e13bdf32ed:()=>ie,__wbg_global_e5a3fe56f8be9485:()=>ue,__wbg_has_4bfbc01db38743f7:()=>rt,__wbg_instanceof_ArrayBuffer_61dfc3198373c902:()=>me,__wbg_instanceof_Promise_ae8c7ffdec83f2ae:()=>gt,__wbg_instanceof_Uint8Array_247a91427532499e:()=>ye,__wbg_isArray_8364a5371e9737d8:()=>fe,__wbg_isSafeInteger_7f1ed56200d90674:()=>be,__wbg_iterator_888179a48810a9fe:()=>dt,__wbg_keys_7840ae453e408eab:()=>ft,__wbg_length_8339fcf5d8ecd12e:()=>we,__wbg_length_ae22078168b726f5:()=>at,__wbg_msCrypto_abcb1295e768d1f2:()=>Ht,__wbg_new0_65387337a95cf44d:()=>ot,__wbg_new_13847c66f41dda63:()=>Ft,__wbg_new_525245e2b9901204:()=>At,__wbg_new_8608a2b51a5f6737:()=>jt,__wbg_new_a220cf903aa02ca2:()=>It,__wbg_new_b85e72ed1bfd57f9:()=>Y,__wbg_new_ea1883e1e5e86686:()=>Ct,__wbg_newnoargs_76313bd6ff35d0f2:()=>se,__wbg_newwithbyteoffsetandlength_8a2cb9ca96b27ec9:()=>Nt,__wbg_newwithlength_ec548f448387c968:()=>Gt,__wbg_next_de3e9db4440638b2:()=>re,__wbg_next_f9cb570345655b9a:()=>te,__wbg_node_523d7bd03ef69fba:()=>Jt,__wbg_now_28a6b413aca4a96a:()=>pe,__wbg_now_8ed1a4454e40ecd1:()=>ut,__wbg_now_b7a162010a9e75b4:()=>st,__wbg_parse_52202f117ec9ecfa:()=>_t,__wbg_process_5b786e71d465a513:()=>Pt,__wbg_push_37c89022f34c01ca:()=>vt,__wbg_randomFillSync_a0d98aa11c81fe89:()=>zt,__wbg_require_2784e593a4674877:()=>Qt,__wbg_resolve_570458cb99d56a43:()=>qe,__wbg_self_3093d5d1f7bcb682:()=>oe,__wbg_setTimeout_631fe61f31fa2fad:()=>Z,__wbg_set_49185437f0ab06f8:()=>Ot,__wbg_set_673dda6c73d19609:()=>St,__wbg_set_841ac57cff3d672b:()=>kt,__wbg_set_d1e79e2388520f18:()=>le,__wbg_set_eacc7d73fefaafdf:()=>ge,__wbg_set_wasm:()=>C,__wbg_stringify_bbf45426c92a6bf5:()=>de,__wbg_subarray_7c2e3576afe181d1:()=>$t,__wbg_then_876bb3c633745cc6:()=>Oe,__wbg_then_95e6edc0f89b73b1:()=>Ae,__wbg_valueOf_c759749a331da0c0:()=>Zt,__wbg_value_6d39332ab4788d86:()=>ne,__wbg_versions_c2ab80650590b6a2:()=>Wt,__wbg_window_3bcfc4d31bc012f8:()=>ce,__wbindgen_bigint_from_i64:()=>xt,__wbindgen_bigint_from_u64:()=>mt,__wbindgen_bigint_get_as_i64:()=>Ie,__wbindgen_boolean_get:()=>lt,__wbindgen_cb_drop:()=>je,__wbindgen_closure_wrapper7054:()=>ke,__wbindgen_debug_string:()=>Se,__wbindgen_error_new:()=>X,__wbindgen_in:()=>yt,__wbindgen_is_bigint:()=>wt,__wbindgen_is_function:()=>Kt,__wbindgen_is_object:()=>bt,__wbindgen_is_string:()=>qt,__wbindgen_is_undefined:()=>nt,__wbindgen_jsval_eq:()=>ht,__wbindgen_jsval_loose_eq:()=>xe,__wbindgen_memory:()=>Ut,__wbindgen_number_get:()=>pt,__wbindgen_number_new:()=>Tt,__wbindgen_object_clone_ref:()=>et,__wbindgen_object_drop_ref:()=>it,__wbindgen_string_get:()=>K,__wbindgen_string_new:()=>tt,__wbindgen_throw:()=>Te,debug_panic:()=>Q,getBuildTimeInfo:()=>J});module.exports=N(Ee);var T=()=>{};T.prototype=T;let c;function C(t){c=t}const w=new Array(128).fill(void 0);w.push(void 0,null,!0,!1);function r(t){return w[t]}let a=0,I=null;function S(){return(I===null||I.byteLength===0)&&(I=new Uint8Array(c.memory.buffer)),I}const $=typeof TextEncoder>"u"?(0,module.require)("util").TextEncoder:TextEncoder;let j=new $("utf-8");const V=typeof j.encodeInto=="function"?function(t,e){return j.encodeInto(t,e)}:function(t,e){const n=j.encode(t);return e.set(n),{read:t.length,written:n.length}};function d(t,e,n){if(n===void 0){const s=j.encode(t),y=e(s.length,1)>>>0;return S().subarray(y,y+s.length).set(s),a=s.length,y}let _=t.length,o=e(_,1)>>>0;const f=S();let u=0;for(;u<_;u++){const s=t.charCodeAt(u);if(s>127)break;f[o+u]=s}if(u!==_){u!==0&&(t=t.slice(u)),o=n(o,_,_=u+t.length*3,1)>>>0;const s=S().subarray(o+u,o+_),y=V(t,s);u+=y.written,o=n(o,_,u,1)>>>0}return a=u,o}function p(t){return t==null}let m=null;function l(){return(m===null||m.buffer.detached===!0||m.buffer.detached===void 0&&m.buffer!==c.memory.buffer)&&(m=new DataView(c.memory.buffer)),m}const z=typeof TextDecoder>"u"?(0,module.require)("util").TextDecoder:TextDecoder;let q=new z("utf-8",{ignoreBOM:!0,fatal:!0});q.decode();function x(t,e){return t=t>>>0,q.decode(S().subarray(t,t+e))}let h=w.length;function i(t){h===w.length&&w.push(w.length+1);const e=h;return h=w[e],w[e]=t,e}function L(t){t<132||(w[t]=h,h=t)}function b(t){const e=r(t);return L(t),e}function O(t){const e=typeof t;if(e=="number"||e=="boolean"||t==null)return`${t}`;if(e=="string")return`"${t}"`;if(e=="symbol"){const o=t.description;return o==null?"Symbol":`Symbol(${o})`}if(e=="function"){const o=t.name;return typeof o=="string"&&o.length>0?`Function(${o})`:"Function"}if(Array.isArray(t)){const o=t.length;let f="[";o>0&&(f+=O(t[0]));for(let u=1;u<o;u++)f+=", "+O(t[u]);return f+="]",f}const n=/\[object ([^\]]+)\]/.exec(toString.call(t));let _;if(n.length>1)_=n[1];else return toString.call(t);if(_=="Object")try{return"Object("+JSON.stringify(t)+")"}catch{return"Object"}return t instanceof Error?`${t.name}: ${t.message}
2
- ${t.stack}`:_}const k=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>{c.__wbindgen_export_2.get(t.dtor)(t.a,t.b)});function P(t,e,n,_){const o={a:t,b:e,cnt:1,dtor:n},f=(...u)=>{o.cnt++;const s=o.a;o.a=0;try{return _(s,o.b,...u)}finally{--o.cnt===0?(c.__wbindgen_export_2.get(o.dtor)(s,o.b),k.unregister(o)):o.a=s}};return f.original=o,k.register(f,o,o),f}function W(t,e,n){c._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9f2fcea3357d311c(t,e,i(n))}function J(){const t=c.getBuildTimeInfo();return b(t)}function Q(t){try{const f=c.__wbindgen_add_to_stack_pointer(-16);var e=p(t)?0:d(t,c.__wbindgen_malloc,c.__wbindgen_realloc),n=a;c.debug_panic(f,e,n);var _=l().getInt32(f+4*0,!0),o=l().getInt32(f+4*1,!0);if(o)throw b(_)}finally{c.__wbindgen_add_to_stack_pointer(16)}}function g(t,e){try{return t.apply(this,e)}catch(n){c.__wbindgen_exn_store(i(n))}}function H(t,e,n,_){c.wasm_bindgen__convert__closures__invoke2_mut__h157f32060ce6ea34(t,e,i(n),i(_))}const E=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>c.__wbg_queryengine_free(t>>>0,1));class G{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,E.unregister(this),e}free(){const e=this.__destroy_into_raw();c.__wbg_queryengine_free(e,0)}constructor(e,n,_){try{const s=c.__wbindgen_add_to_stack_pointer(-16);c.queryengine_new(s,i(e),i(n),i(_));var o=l().getInt32(s+4*0,!0),f=l().getInt32(s+4*1,!0),u=l().getInt32(s+4*2,!0);if(u)throw b(f);return this.__wbg_ptr=o>>>0,E.register(this,this.__wbg_ptr,this),this}finally{c.__wbindgen_add_to_stack_pointer(16)}}connect(e){const n=d(e,c.__wbindgen_malloc,c.__wbindgen_realloc),_=a,o=c.queryengine_connect(this.__wbg_ptr,n,_);return b(o)}disconnect(e){const n=d(e,c.__wbindgen_malloc,c.__wbindgen_realloc),_=a,o=c.queryengine_disconnect(this.__wbg_ptr,n,_);return b(o)}query(e,n,_){const o=d(e,c.__wbindgen_malloc,c.__wbindgen_realloc),f=a,u=d(n,c.__wbindgen_malloc,c.__wbindgen_realloc),s=a;var y=p(_)?0:d(_,c.__wbindgen_malloc,c.__wbindgen_realloc),v=a;const F=c.queryengine_query(this.__wbg_ptr,o,f,u,s,y,v);return b(F)}startTransaction(e,n){const _=d(e,c.__wbindgen_malloc,c.__wbindgen_realloc),o=a,f=d(n,c.__wbindgen_malloc,c.__wbindgen_realloc),u=a,s=c.queryengine_startTransaction(this.__wbg_ptr,_,o,f,u);return b(s)}commitTransaction(e,n){const _=d(e,c.__wbindgen_malloc,c.__wbindgen_realloc),o=a,f=d(n,c.__wbindgen_malloc,c.__wbindgen_realloc),u=a,s=c.queryengine_commitTransaction(this.__wbg_ptr,_,o,f,u);return b(s)}rollbackTransaction(e,n){const _=d(e,c.__wbindgen_malloc,c.__wbindgen_realloc),o=a,f=d(n,c.__wbindgen_malloc,c.__wbindgen_realloc),u=a,s=c.queryengine_rollbackTransaction(this.__wbg_ptr,_,o,f,u);return b(s)}metrics(e){const n=d(e,c.__wbindgen_malloc,c.__wbindgen_realloc),_=a,o=c.queryengine_metrics(this.__wbg_ptr,n,_);return b(o)}}function K(t,e){const n=r(e),_=typeof n=="string"?n:void 0;var o=p(_)?0:d(_,c.__wbindgen_malloc,c.__wbindgen_realloc),f=a;l().setInt32(t+4*1,f,!0),l().setInt32(t+4*0,o,!0)}function X(t,e){const n=new Error(x(t,e));return i(n)}function Y(t,e){try{var n={a:t,b:e},_=(f,u)=>{const s=n.a;n.a=0;try{return H(s,n.b,f,u)}finally{n.a=s}};const o=new Promise(_);return i(o)}finally{n.a=n.b=0}}function Z(t,e){return setTimeout(r(t),e>>>0)}function tt(t,e){const n=x(t,e);return i(n)}function et(t){const e=r(t);return i(e)}function nt(t){return r(t)===void 0}function rt(){return g(function(t,e){return Reflect.has(r(t),r(e))},arguments)}function _t(){return g(function(t,e){const n=JSON.parse(x(t,e));return i(n)},arguments)}function ot(){return i(new Date)}function ct(t){return r(t).getTime()}function it(t){b(t)}function ut(t){return r(t).now()}function st(){return Date.now()}function ft(t){const e=Object.keys(r(t));return i(e)}function at(t){return r(t).length}function bt(t){const e=r(t);return typeof e=="object"&&e!==null}function gt(t){let e;try{e=r(t)instanceof Promise}catch{e=!1}return e}function dt(){return i(Symbol.iterator)}function lt(t){const e=r(t);return typeof e=="boolean"?e?1:0:2}function wt(t){return typeof r(t)=="bigint"}function pt(t,e){const n=r(e),_=typeof n=="number"?n:void 0;l().setFloat64(t+8*1,p(_)?0:_,!0),l().setInt32(t+4*0,!p(_),!0)}function xt(t){return i(t)}function yt(t,e){return r(t)in r(e)}function mt(t){const e=BigInt.asUintN(64,t);return i(e)}function ht(t,e){return r(t)===r(e)}function Tt(t){return i(t)}function It(){const t=new Array;return i(t)}function St(t,e,n){r(t)[e>>>0]=b(n)}function jt(){return i(new Map)}function At(){const t=new Object;return i(t)}function Ot(t,e,n){const _=r(t).set(r(e),r(n));return i(_)}function qt(t){return typeof r(t)=="string"}function kt(t,e,n){r(t)[b(e)]=b(n)}function Et(t,e){const n=r(t)[r(e)];return i(n)}function vt(t,e){return r(t).push(r(e))}function Ft(t,e,n,_){const o=new RegExp(x(t,e),x(n,_));return i(o)}function Rt(t,e,n){const _=r(t).exec(x(e,n));return p(_)?0:i(_)}function Dt(){return g(function(t,e){const n=r(t)[b(e)];return i(n)},arguments)}function Mt(t,e){const n=String(r(e)),_=d(n,c.__wbindgen_malloc,c.__wbindgen_realloc),o=a;l().setInt32(t+4*1,o,!0),l().setInt32(t+4*0,_,!0)}function Ut(){const t=c.memory;return i(t)}function Bt(t){const e=r(t).buffer;return i(e)}function Nt(t,e,n){const _=new Uint8Array(r(t),e>>>0,n>>>0);return i(_)}function Ct(t){const e=new Uint8Array(r(t));return i(e)}function $t(t,e,n){const _=r(t).subarray(e>>>0,n>>>0);return i(_)}function Vt(){return g(function(t,e){r(t).getRandomValues(r(e))},arguments)}function zt(){return g(function(t,e){r(t).randomFillSync(b(e))},arguments)}function Lt(t){const e=r(t).crypto;return i(e)}function Pt(t){const e=r(t).process;return i(e)}function Wt(t){const e=r(t).versions;return i(e)}function Jt(t){const e=r(t).node;return i(e)}function Qt(){return g(function(){const t=module.require;return i(t)},arguments)}function Ht(t){const e=r(t).msCrypto;return i(e)}function Gt(t){const e=new Uint8Array(t>>>0);return i(e)}function Kt(t){return typeof r(t)=="function"}function Xt(){return g(function(t,e){const n=r(t).call(r(e));return i(n)},arguments)}function Yt(t,e){const n=r(t)[e>>>0];return i(n)}function Zt(t){return r(t).valueOf()}function te(){return g(function(t){const e=r(t).next();return i(e)},arguments)}function ee(t){return r(t).done}function ne(t){const e=r(t).value;return i(e)}function re(t){const e=r(t).next;return i(e)}function _e(){return g(function(t,e){const n=Reflect.get(r(t),r(e));return i(n)},arguments)}function oe(){return g(function(){const t=self.self;return i(t)},arguments)}function ce(){return g(function(){const t=window.window;return i(t)},arguments)}function ie(){return g(function(){const t=globalThis.globalThis;return i(t)},arguments)}function ue(){return g(function(){const t=global.global;return i(t)},arguments)}function se(t,e){const n=new T(x(t,e));return i(n)}function fe(t){return Array.isArray(r(t))}function ae(){return g(function(t,e,n){const _=r(t).call(r(e),r(n));return i(_)},arguments)}function be(t){return Number.isSafeInteger(r(t))}function ge(){return g(function(t,e,n){return Reflect.set(r(t),r(e),r(n))},arguments)}function de(){return g(function(t){const e=JSON.stringify(r(t));return i(e)},arguments)}function le(t,e,n){r(t).set(r(e),n>>>0)}function we(t){return r(t).length}function pe(){return g(function(){return Date.now()},arguments)}function xe(t,e){return r(t)==r(e)}function ye(t){let e;try{e=r(t)instanceof Uint8Array}catch{e=!1}return e}function me(t){let e;try{e=r(t)instanceof ArrayBuffer}catch{e=!1}return e}function he(t){const e=Object.entries(r(t));return i(e)}function Te(t,e){throw new Error(x(t,e))}function Ie(t,e){const n=r(e),_=typeof n=="bigint"?n:void 0;l().setBigInt64(t+8*1,p(_)?BigInt(0):_,!0),l().setInt32(t+4*0,!p(_),!0)}function Se(t,e){const n=O(r(e)),_=d(n,c.__wbindgen_malloc,c.__wbindgen_realloc),o=a;l().setInt32(t+4*1,o,!0),l().setInt32(t+4*0,_,!0)}function je(t){const e=b(t).original;return e.cnt--==1?(e.a=0,!0):!1}function Ae(t,e){const n=r(t).then(r(e));return i(n)}function Oe(t,e,n){const _=r(t).then(r(e),r(n));return i(_)}function qe(t){const e=Promise.resolve(r(t));return i(e)}function ke(t,e,n){const _=P(t,e,537,W);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_wrapper7054,__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 A=Object.defineProperty;var R=Object.getOwnPropertyDescriptor;var D=Object.getOwnPropertyNames;var M=Object.prototype.hasOwnProperty;var U=(t,e)=>{for(var n in e)A(t,n,{get:e[n],enumerable:!0})},B=(t,e,n,_)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of D(e))!M.call(t,o)&&o!==n&&A(t,o,{get:()=>e[o],enumerable:!(_=R(e,o))||_.enumerable});return t};var N=t=>B(A({},"__esModule",{value:!0}),t);var Ee={};U(Ee,{QueryEngine:()=>G,__wbg_String_88810dfeb4021902:()=>Mt,__wbg_buffer_b7b08af79b0b0974:()=>Bt,__wbg_call_1084a111329e68ce:()=>Xt,__wbg_call_89af060b4e1523f2:()=>ae,__wbg_crypto_58f13aa23ffcb166:()=>Lt,__wbg_done_bfda7aa8f252b39f:()=>ee,__wbg_entries_7a0e06255456ebcd:()=>he,__wbg_exec_a29a4ce5544bd3be:()=>Rt,__wbg_getRandomValues_504510b5564925af:()=>Vt,__wbg_getTime_91058879093a1589:()=>ct,__wbg_get_224d16597dbbfd96:()=>_e,__wbg_get_3baa728f9d58d3f6:()=>Yt,__wbg_get_94990005bd6ca07c:()=>Dt,__wbg_getwithrefkey_5e6d9547403deab8:()=>Et,__wbg_globalThis_86b222e13bdf32ed:()=>ie,__wbg_global_e5a3fe56f8be9485:()=>ue,__wbg_has_4bfbc01db38743f7:()=>rt,__wbg_instanceof_ArrayBuffer_61dfc3198373c902:()=>me,__wbg_instanceof_Promise_ae8c7ffdec83f2ae:()=>gt,__wbg_instanceof_Uint8Array_247a91427532499e:()=>ye,__wbg_isArray_8364a5371e9737d8:()=>fe,__wbg_isSafeInteger_7f1ed56200d90674:()=>be,__wbg_iterator_888179a48810a9fe:()=>dt,__wbg_keys_7840ae453e408eab:()=>ft,__wbg_length_8339fcf5d8ecd12e:()=>we,__wbg_length_ae22078168b726f5:()=>at,__wbg_msCrypto_abcb1295e768d1f2:()=>Ht,__wbg_new0_65387337a95cf44d:()=>ot,__wbg_new_13847c66f41dda63:()=>Ft,__wbg_new_525245e2b9901204:()=>At,__wbg_new_8608a2b51a5f6737:()=>jt,__wbg_new_a220cf903aa02ca2:()=>It,__wbg_new_b85e72ed1bfd57f9:()=>Y,__wbg_new_ea1883e1e5e86686:()=>Ct,__wbg_newnoargs_76313bd6ff35d0f2:()=>se,__wbg_newwithbyteoffsetandlength_8a2cb9ca96b27ec9:()=>Nt,__wbg_newwithlength_ec548f448387c968:()=>Gt,__wbg_next_de3e9db4440638b2:()=>re,__wbg_next_f9cb570345655b9a:()=>te,__wbg_node_523d7bd03ef69fba:()=>Jt,__wbg_now_28a6b413aca4a96a:()=>pe,__wbg_now_8ed1a4454e40ecd1:()=>ut,__wbg_now_b7a162010a9e75b4:()=>st,__wbg_parse_52202f117ec9ecfa:()=>_t,__wbg_process_5b786e71d465a513:()=>Pt,__wbg_push_37c89022f34c01ca:()=>vt,__wbg_randomFillSync_a0d98aa11c81fe89:()=>zt,__wbg_require_2784e593a4674877:()=>Qt,__wbg_resolve_570458cb99d56a43:()=>qe,__wbg_self_3093d5d1f7bcb682:()=>oe,__wbg_setTimeout_631fe61f31fa2fad:()=>Z,__wbg_set_49185437f0ab06f8:()=>Ot,__wbg_set_673dda6c73d19609:()=>St,__wbg_set_841ac57cff3d672b:()=>kt,__wbg_set_d1e79e2388520f18:()=>le,__wbg_set_eacc7d73fefaafdf:()=>ge,__wbg_set_wasm:()=>C,__wbg_stringify_bbf45426c92a6bf5:()=>de,__wbg_subarray_7c2e3576afe181d1:()=>$t,__wbg_then_876bb3c633745cc6:()=>Oe,__wbg_then_95e6edc0f89b73b1:()=>Ae,__wbg_valueOf_c759749a331da0c0:()=>Zt,__wbg_value_6d39332ab4788d86:()=>ne,__wbg_versions_c2ab80650590b6a2:()=>Wt,__wbg_window_3bcfc4d31bc012f8:()=>ce,__wbindgen_bigint_from_i64:()=>xt,__wbindgen_bigint_from_u64:()=>mt,__wbindgen_bigint_get_as_i64:()=>Ie,__wbindgen_boolean_get:()=>lt,__wbindgen_cb_drop:()=>je,__wbindgen_closure_wrapper7073:()=>ke,__wbindgen_debug_string:()=>Se,__wbindgen_error_new:()=>X,__wbindgen_in:()=>yt,__wbindgen_is_bigint:()=>wt,__wbindgen_is_function:()=>Kt,__wbindgen_is_object:()=>bt,__wbindgen_is_string:()=>qt,__wbindgen_is_undefined:()=>nt,__wbindgen_jsval_eq:()=>ht,__wbindgen_jsval_loose_eq:()=>xe,__wbindgen_memory:()=>Ut,__wbindgen_number_get:()=>pt,__wbindgen_number_new:()=>Tt,__wbindgen_object_clone_ref:()=>et,__wbindgen_object_drop_ref:()=>it,__wbindgen_string_get:()=>K,__wbindgen_string_new:()=>tt,__wbindgen_throw:()=>Te,debug_panic:()=>Q,getBuildTimeInfo:()=>J});module.exports=N(Ee);var T=()=>{};T.prototype=T;let c;function C(t){c=t}const w=new Array(128).fill(void 0);w.push(void 0,null,!0,!1);function r(t){return w[t]}let a=0,I=null;function S(){return(I===null||I.byteLength===0)&&(I=new Uint8Array(c.memory.buffer)),I}const $=typeof TextEncoder>"u"?(0,module.require)("util").TextEncoder:TextEncoder;let j=new $("utf-8");const V=typeof j.encodeInto=="function"?function(t,e){return j.encodeInto(t,e)}:function(t,e){const n=j.encode(t);return e.set(n),{read:t.length,written:n.length}};function d(t,e,n){if(n===void 0){const s=j.encode(t),y=e(s.length,1)>>>0;return S().subarray(y,y+s.length).set(s),a=s.length,y}let _=t.length,o=e(_,1)>>>0;const f=S();let u=0;for(;u<_;u++){const s=t.charCodeAt(u);if(s>127)break;f[o+u]=s}if(u!==_){u!==0&&(t=t.slice(u)),o=n(o,_,_=u+t.length*3,1)>>>0;const s=S().subarray(o+u,o+_),y=V(t,s);u+=y.written,o=n(o,_,u,1)>>>0}return a=u,o}function p(t){return t==null}let m=null;function l(){return(m===null||m.buffer.detached===!0||m.buffer.detached===void 0&&m.buffer!==c.memory.buffer)&&(m=new DataView(c.memory.buffer)),m}const z=typeof TextDecoder>"u"?(0,module.require)("util").TextDecoder:TextDecoder;let q=new z("utf-8",{ignoreBOM:!0,fatal:!0});q.decode();function x(t,e){return t=t>>>0,q.decode(S().subarray(t,t+e))}let h=w.length;function i(t){h===w.length&&w.push(w.length+1);const e=h;return h=w[e],w[e]=t,e}function L(t){t<132||(w[t]=h,h=t)}function b(t){const e=r(t);return L(t),e}function O(t){const e=typeof t;if(e=="number"||e=="boolean"||t==null)return`${t}`;if(e=="string")return`"${t}"`;if(e=="symbol"){const o=t.description;return o==null?"Symbol":`Symbol(${o})`}if(e=="function"){const o=t.name;return typeof o=="string"&&o.length>0?`Function(${o})`:"Function"}if(Array.isArray(t)){const o=t.length;let f="[";o>0&&(f+=O(t[0]));for(let u=1;u<o;u++)f+=", "+O(t[u]);return f+="]",f}const n=/\[object ([^\]]+)\]/.exec(toString.call(t));let _;if(n.length>1)_=n[1];else return toString.call(t);if(_=="Object")try{return"Object("+JSON.stringify(t)+")"}catch{return"Object"}return t instanceof Error?`${t.name}: ${t.message}
2
+ ${t.stack}`:_}const k=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>{c.__wbindgen_export_2.get(t.dtor)(t.a,t.b)});function P(t,e,n,_){const o={a:t,b:e,cnt:1,dtor:n},f=(...u)=>{o.cnt++;const s=o.a;o.a=0;try{return _(s,o.b,...u)}finally{--o.cnt===0?(c.__wbindgen_export_2.get(o.dtor)(s,o.b),k.unregister(o)):o.a=s}};return f.original=o,k.register(f,o,o),f}function W(t,e,n){c._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9f2fcea3357d311c(t,e,i(n))}function J(){const t=c.getBuildTimeInfo();return b(t)}function Q(t){try{const f=c.__wbindgen_add_to_stack_pointer(-16);var e=p(t)?0:d(t,c.__wbindgen_malloc,c.__wbindgen_realloc),n=a;c.debug_panic(f,e,n);var _=l().getInt32(f+4*0,!0),o=l().getInt32(f+4*1,!0);if(o)throw b(_)}finally{c.__wbindgen_add_to_stack_pointer(16)}}function g(t,e){try{return t.apply(this,e)}catch(n){c.__wbindgen_exn_store(i(n))}}function H(t,e,n,_){c.wasm_bindgen__convert__closures__invoke2_mut__h157f32060ce6ea34(t,e,i(n),i(_))}const E=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>c.__wbg_queryengine_free(t>>>0,1));class G{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,E.unregister(this),e}free(){const e=this.__destroy_into_raw();c.__wbg_queryengine_free(e,0)}constructor(e,n,_){try{const s=c.__wbindgen_add_to_stack_pointer(-16);c.queryengine_new(s,i(e),i(n),i(_));var o=l().getInt32(s+4*0,!0),f=l().getInt32(s+4*1,!0),u=l().getInt32(s+4*2,!0);if(u)throw b(f);return this.__wbg_ptr=o>>>0,E.register(this,this.__wbg_ptr,this),this}finally{c.__wbindgen_add_to_stack_pointer(16)}}connect(e){const n=d(e,c.__wbindgen_malloc,c.__wbindgen_realloc),_=a,o=c.queryengine_connect(this.__wbg_ptr,n,_);return b(o)}disconnect(e){const n=d(e,c.__wbindgen_malloc,c.__wbindgen_realloc),_=a,o=c.queryengine_disconnect(this.__wbg_ptr,n,_);return b(o)}query(e,n,_){const o=d(e,c.__wbindgen_malloc,c.__wbindgen_realloc),f=a,u=d(n,c.__wbindgen_malloc,c.__wbindgen_realloc),s=a;var y=p(_)?0:d(_,c.__wbindgen_malloc,c.__wbindgen_realloc),v=a;const F=c.queryengine_query(this.__wbg_ptr,o,f,u,s,y,v);return b(F)}startTransaction(e,n){const _=d(e,c.__wbindgen_malloc,c.__wbindgen_realloc),o=a,f=d(n,c.__wbindgen_malloc,c.__wbindgen_realloc),u=a,s=c.queryengine_startTransaction(this.__wbg_ptr,_,o,f,u);return b(s)}commitTransaction(e,n){const _=d(e,c.__wbindgen_malloc,c.__wbindgen_realloc),o=a,f=d(n,c.__wbindgen_malloc,c.__wbindgen_realloc),u=a,s=c.queryengine_commitTransaction(this.__wbg_ptr,_,o,f,u);return b(s)}rollbackTransaction(e,n){const _=d(e,c.__wbindgen_malloc,c.__wbindgen_realloc),o=a,f=d(n,c.__wbindgen_malloc,c.__wbindgen_realloc),u=a,s=c.queryengine_rollbackTransaction(this.__wbg_ptr,_,o,f,u);return b(s)}metrics(e){const n=d(e,c.__wbindgen_malloc,c.__wbindgen_realloc),_=a,o=c.queryengine_metrics(this.__wbg_ptr,n,_);return b(o)}}function K(t,e){const n=r(e),_=typeof n=="string"?n:void 0;var o=p(_)?0:d(_,c.__wbindgen_malloc,c.__wbindgen_realloc),f=a;l().setInt32(t+4*1,f,!0),l().setInt32(t+4*0,o,!0)}function X(t,e){const n=new Error(x(t,e));return i(n)}function Y(t,e){try{var n={a:t,b:e},_=(f,u)=>{const s=n.a;n.a=0;try{return H(s,n.b,f,u)}finally{n.a=s}};const o=new Promise(_);return i(o)}finally{n.a=n.b=0}}function Z(t,e){return setTimeout(r(t),e>>>0)}function tt(t,e){const n=x(t,e);return i(n)}function et(t){const e=r(t);return i(e)}function nt(t){return r(t)===void 0}function rt(){return g(function(t,e){return Reflect.has(r(t),r(e))},arguments)}function _t(){return g(function(t,e){const n=JSON.parse(x(t,e));return i(n)},arguments)}function ot(){return i(new Date)}function ct(t){return r(t).getTime()}function it(t){b(t)}function ut(t){return r(t).now()}function st(){return Date.now()}function ft(t){const e=Object.keys(r(t));return i(e)}function at(t){return r(t).length}function bt(t){const e=r(t);return typeof e=="object"&&e!==null}function gt(t){let e;try{e=r(t)instanceof Promise}catch{e=!1}return e}function dt(){return i(Symbol.iterator)}function lt(t){const e=r(t);return typeof e=="boolean"?e?1:0:2}function wt(t){return typeof r(t)=="bigint"}function pt(t,e){const n=r(e),_=typeof n=="number"?n:void 0;l().setFloat64(t+8*1,p(_)?0:_,!0),l().setInt32(t+4*0,!p(_),!0)}function xt(t){return i(t)}function yt(t,e){return r(t)in r(e)}function mt(t){const e=BigInt.asUintN(64,t);return i(e)}function ht(t,e){return r(t)===r(e)}function Tt(t){return i(t)}function It(){const t=new Array;return i(t)}function St(t,e,n){r(t)[e>>>0]=b(n)}function jt(){return i(new Map)}function At(){const t=new Object;return i(t)}function Ot(t,e,n){const _=r(t).set(r(e),r(n));return i(_)}function qt(t){return typeof r(t)=="string"}function kt(t,e,n){r(t)[b(e)]=b(n)}function Et(t,e){const n=r(t)[r(e)];return i(n)}function vt(t,e){return r(t).push(r(e))}function Ft(t,e,n,_){const o=new RegExp(x(t,e),x(n,_));return i(o)}function Rt(t,e,n){const _=r(t).exec(x(e,n));return p(_)?0:i(_)}function Dt(){return g(function(t,e){const n=r(t)[b(e)];return i(n)},arguments)}function Mt(t,e){const n=String(r(e)),_=d(n,c.__wbindgen_malloc,c.__wbindgen_realloc),o=a;l().setInt32(t+4*1,o,!0),l().setInt32(t+4*0,_,!0)}function Ut(){const t=c.memory;return i(t)}function Bt(t){const e=r(t).buffer;return i(e)}function Nt(t,e,n){const _=new Uint8Array(r(t),e>>>0,n>>>0);return i(_)}function Ct(t){const e=new Uint8Array(r(t));return i(e)}function $t(t,e,n){const _=r(t).subarray(e>>>0,n>>>0);return i(_)}function Vt(){return g(function(t,e){r(t).getRandomValues(r(e))},arguments)}function zt(){return g(function(t,e){r(t).randomFillSync(b(e))},arguments)}function Lt(t){const e=r(t).crypto;return i(e)}function Pt(t){const e=r(t).process;return i(e)}function Wt(t){const e=r(t).versions;return i(e)}function Jt(t){const e=r(t).node;return i(e)}function Qt(){return g(function(){const t=module.require;return i(t)},arguments)}function Ht(t){const e=r(t).msCrypto;return i(e)}function Gt(t){const e=new Uint8Array(t>>>0);return i(e)}function Kt(t){return typeof r(t)=="function"}function Xt(){return g(function(t,e){const n=r(t).call(r(e));return i(n)},arguments)}function Yt(t,e){const n=r(t)[e>>>0];return i(n)}function Zt(t){return r(t).valueOf()}function te(){return g(function(t){const e=r(t).next();return i(e)},arguments)}function ee(t){return r(t).done}function ne(t){const e=r(t).value;return i(e)}function re(t){const e=r(t).next;return i(e)}function _e(){return g(function(t,e){const n=Reflect.get(r(t),r(e));return i(n)},arguments)}function oe(){return g(function(){const t=self.self;return i(t)},arguments)}function ce(){return g(function(){const t=window.window;return i(t)},arguments)}function ie(){return g(function(){const t=globalThis.globalThis;return i(t)},arguments)}function ue(){return g(function(){const t=global.global;return i(t)},arguments)}function se(t,e){const n=new T(x(t,e));return i(n)}function fe(t){return Array.isArray(r(t))}function ae(){return g(function(t,e,n){const _=r(t).call(r(e),r(n));return i(_)},arguments)}function be(t){return Number.isSafeInteger(r(t))}function ge(){return g(function(t,e,n){return Reflect.set(r(t),r(e),r(n))},arguments)}function de(){return g(function(t){const e=JSON.stringify(r(t));return i(e)},arguments)}function le(t,e,n){r(t).set(r(e),n>>>0)}function we(t){return r(t).length}function pe(){return g(function(){return Date.now()},arguments)}function xe(t,e){return r(t)==r(e)}function ye(t){let e;try{e=r(t)instanceof Uint8Array}catch{e=!1}return e}function me(t){let e;try{e=r(t)instanceof ArrayBuffer}catch{e=!1}return e}function he(t){const e=Object.entries(r(t));return i(e)}function Te(t,e){throw new Error(x(t,e))}function Ie(t,e){const n=r(e),_=typeof n=="bigint"?n:void 0;l().setBigInt64(t+8*1,p(_)?BigInt(0):_,!0),l().setInt32(t+4*0,!p(_),!0)}function Se(t,e){const n=O(r(e)),_=d(n,c.__wbindgen_malloc,c.__wbindgen_realloc),o=a;l().setInt32(t+4*1,o,!0),l().setInt32(t+4*0,_,!0)}function je(t){const e=b(t).original;return e.cnt--==1?(e.a=0,!0):!1}function Ae(t,e){const n=r(t).then(r(e));return i(n)}function Oe(t,e,n){const _=r(t).then(r(e),r(n));return i(_)}function qe(t){const e=Promise.resolve(r(t));return i(e)}function ke(t,e,n){const _=P(t,e,542,W);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_wrapper7073,__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 A=Object.defineProperty;var R=Object.getOwnPropertyDescriptor;var D=Object.getOwnPropertyNames;var M=Object.prototype.hasOwnProperty;var U=(t,e)=>{for(var n in e)A(t,n,{get:e[n],enumerable:!0})},B=(t,e,n,_)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of D(e))!M.call(t,o)&&o!==n&&A(t,o,{get:()=>e[o],enumerable:!(_=R(e,o))||_.enumerable});return t};var N=t=>B(A({},"__esModule",{value:!0}),t);var qe={};U(qe,{QueryEngine:()=>G,__wbg_String_88810dfeb4021902:()=>Rt,__wbg_buffer_b7b08af79b0b0974:()=>Mt,__wbg_call_1084a111329e68ce:()=>Gt,__wbg_call_89af060b4e1523f2:()=>se,__wbg_crypto_58f13aa23ffcb166:()=>Vt,__wbg_done_bfda7aa8f252b39f:()=>Zt,__wbg_entries_7a0e06255456ebcd:()=>ye,__wbg_getRandomValues_504510b5564925af:()=>Ct,__wbg_getTime_91058879093a1589:()=>ct,__wbg_get_224d16597dbbfd96:()=>ne,__wbg_get_3baa728f9d58d3f6:()=>Kt,__wbg_get_94990005bd6ca07c:()=>Ft,__wbg_getwithrefkey_5e6d9547403deab8:()=>vt,__wbg_globalThis_86b222e13bdf32ed:()=>oe,__wbg_global_e5a3fe56f8be9485:()=>ce,__wbg_has_4bfbc01db38743f7:()=>rt,__wbg_instanceof_ArrayBuffer_61dfc3198373c902:()=>xe,__wbg_instanceof_Promise_ae8c7ffdec83f2ae:()=>gt,__wbg_instanceof_Uint8Array_247a91427532499e:()=>pe,__wbg_isArray_8364a5371e9737d8:()=>ue,__wbg_isSafeInteger_7f1ed56200d90674:()=>fe,__wbg_iterator_888179a48810a9fe:()=>lt,__wbg_keys_7840ae453e408eab:()=>st,__wbg_length_8339fcf5d8ecd12e:()=>le,__wbg_length_ae22078168b726f5:()=>ft,__wbg_msCrypto_abcb1295e768d1f2:()=>Jt,__wbg_new0_65387337a95cf44d:()=>ot,__wbg_new_525245e2b9901204:()=>At,__wbg_new_8608a2b51a5f6737:()=>jt,__wbg_new_a220cf903aa02ca2:()=>It,__wbg_new_b85e72ed1bfd57f9:()=>Y,__wbg_new_ea1883e1e5e86686:()=>Bt,__wbg_newnoargs_76313bd6ff35d0f2:()=>ie,__wbg_newwithbyteoffsetandlength_8a2cb9ca96b27ec9:()=>Ut,__wbg_newwithlength_ec548f448387c968:()=>Qt,__wbg_next_de3e9db4440638b2:()=>ee,__wbg_next_f9cb570345655b9a:()=>Yt,__wbg_node_523d7bd03ef69fba:()=>Pt,__wbg_now_28a6b413aca4a96a:()=>de,__wbg_now_8ed1a4454e40ecd1:()=>it,__wbg_now_b7a162010a9e75b4:()=>ut,__wbg_parse_52202f117ec9ecfa:()=>_t,__wbg_process_5b786e71d465a513:()=>zt,__wbg_push_37c89022f34c01ca:()=>Et,__wbg_randomFillSync_a0d98aa11c81fe89:()=>$t,__wbg_require_2784e593a4674877:()=>Wt,__wbg_resolve_570458cb99d56a43:()=>Ae,__wbg_self_3093d5d1f7bcb682:()=>re,__wbg_setTimeout_631fe61f31fa2fad:()=>Z,__wbg_set_49185437f0ab06f8:()=>Ot,__wbg_set_673dda6c73d19609:()=>St,__wbg_set_841ac57cff3d672b:()=>kt,__wbg_set_d1e79e2388520f18:()=>ge,__wbg_set_eacc7d73fefaafdf:()=>ae,__wbg_set_wasm:()=>C,__wbg_stringify_bbf45426c92a6bf5:()=>be,__wbg_subarray_7c2e3576afe181d1:()=>Nt,__wbg_then_876bb3c633745cc6:()=>je,__wbg_then_95e6edc0f89b73b1:()=>Se,__wbg_valueOf_c759749a331da0c0:()=>Xt,__wbg_value_6d39332ab4788d86:()=>te,__wbg_versions_c2ab80650590b6a2:()=>Lt,__wbg_window_3bcfc4d31bc012f8:()=>_e,__wbindgen_bigint_from_i64:()=>xt,__wbindgen_bigint_from_u64:()=>mt,__wbindgen_bigint_get_as_i64:()=>he,__wbindgen_boolean_get:()=>dt,__wbindgen_cb_drop:()=>Ie,__wbindgen_closure_wrapper6724:()=>Oe,__wbindgen_debug_string:()=>Te,__wbindgen_error_new:()=>X,__wbindgen_in:()=>yt,__wbindgen_is_bigint:()=>wt,__wbindgen_is_function:()=>Ht,__wbindgen_is_object:()=>bt,__wbindgen_is_string:()=>qt,__wbindgen_is_undefined:()=>nt,__wbindgen_jsval_eq:()=>ht,__wbindgen_jsval_loose_eq:()=>we,__wbindgen_memory:()=>Dt,__wbindgen_number_get:()=>pt,__wbindgen_number_new:()=>Tt,__wbindgen_object_clone_ref:()=>et,__wbindgen_object_drop_ref:()=>at,__wbindgen_string_get:()=>K,__wbindgen_string_new:()=>tt,__wbindgen_throw:()=>me,debug_panic:()=>Q,getBuildTimeInfo:()=>J});module.exports=N(qe);var T=()=>{};T.prototype=T;let c;function C(t){c=t}const w=new Array(128).fill(void 0);w.push(void 0,null,!0,!1);function r(t){return w[t]}let a=0,I=null;function S(){return(I===null||I.byteLength===0)&&(I=new Uint8Array(c.memory.buffer)),I}const $=typeof TextEncoder>"u"?(0,module.require)("util").TextEncoder:TextEncoder;let j=new $("utf-8");const V=typeof j.encodeInto=="function"?function(t,e){return j.encodeInto(t,e)}:function(t,e){const n=j.encode(t);return e.set(n),{read:t.length,written:n.length}};function l(t,e,n){if(n===void 0){const s=j.encode(t),p=e(s.length,1)>>>0;return S().subarray(p,p+s.length).set(s),a=s.length,p}let _=t.length,o=e(_,1)>>>0;const f=S();let u=0;for(;u<_;u++){const s=t.charCodeAt(u);if(s>127)break;f[o+u]=s}if(u!==_){u!==0&&(t=t.slice(u)),o=n(o,_,_=u+t.length*3,1)>>>0;const s=S().subarray(o+u,o+_),p=V(t,s);u+=p.written,o=n(o,_,u,1)>>>0}return a=u,o}function x(t){return t==null}let y=null;function d(){return(y===null||y.buffer.detached===!0||y.buffer.detached===void 0&&y.buffer!==c.memory.buffer)&&(y=new DataView(c.memory.buffer)),y}const z=typeof TextDecoder>"u"?(0,module.require)("util").TextDecoder:TextDecoder;let q=new z("utf-8",{ignoreBOM:!0,fatal:!0});q.decode();function m(t,e){return t=t>>>0,q.decode(S().subarray(t,t+e))}let h=w.length;function i(t){h===w.length&&w.push(w.length+1);const e=h;return h=w[e],w[e]=t,e}function L(t){t<132||(w[t]=h,h=t)}function b(t){const e=r(t);return L(t),e}function O(t){const e=typeof t;if(e=="number"||e=="boolean"||t==null)return`${t}`;if(e=="string")return`"${t}"`;if(e=="symbol"){const o=t.description;return o==null?"Symbol":`Symbol(${o})`}if(e=="function"){const o=t.name;return typeof o=="string"&&o.length>0?`Function(${o})`:"Function"}if(Array.isArray(t)){const o=t.length;let f="[";o>0&&(f+=O(t[0]));for(let u=1;u<o;u++)f+=", "+O(t[u]);return f+="]",f}const n=/\[object ([^\]]+)\]/.exec(toString.call(t));let _;if(n.length>1)_=n[1];else return toString.call(t);if(_=="Object")try{return"Object("+JSON.stringify(t)+")"}catch{return"Object"}return t instanceof Error?`${t.name}: ${t.message}
2
- ${t.stack}`:_}const k=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>{c.__wbindgen_export_2.get(t.dtor)(t.a,t.b)});function P(t,e,n,_){const o={a:t,b:e,cnt:1,dtor:n},f=(...u)=>{o.cnt++;const s=o.a;o.a=0;try{return _(s,o.b,...u)}finally{--o.cnt===0?(c.__wbindgen_export_2.get(o.dtor)(s,o.b),k.unregister(o)):o.a=s}};return f.original=o,k.register(f,o,o),f}function W(t,e,n){c._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9f2fcea3357d311c(t,e,i(n))}function J(){const t=c.getBuildTimeInfo();return b(t)}function Q(t){try{const f=c.__wbindgen_add_to_stack_pointer(-16);var e=x(t)?0:l(t,c.__wbindgen_malloc,c.__wbindgen_realloc),n=a;c.debug_panic(f,e,n);var _=d().getInt32(f+4*0,!0),o=d().getInt32(f+4*1,!0);if(o)throw b(_)}finally{c.__wbindgen_add_to_stack_pointer(16)}}function g(t,e){try{return t.apply(this,e)}catch(n){c.__wbindgen_exn_store(i(n))}}function H(t,e,n,_){c.wasm_bindgen__convert__closures__invoke2_mut__h157f32060ce6ea34(t,e,i(n),i(_))}const v=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>c.__wbg_queryengine_free(t>>>0,1));class G{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,v.unregister(this),e}free(){const e=this.__destroy_into_raw();c.__wbg_queryengine_free(e,0)}constructor(e,n,_){try{const s=c.__wbindgen_add_to_stack_pointer(-16);c.queryengine_new(s,i(e),i(n),i(_));var o=d().getInt32(s+4*0,!0),f=d().getInt32(s+4*1,!0),u=d().getInt32(s+4*2,!0);if(u)throw b(f);return this.__wbg_ptr=o>>>0,v.register(this,this.__wbg_ptr,this),this}finally{c.__wbindgen_add_to_stack_pointer(16)}}connect(e){const n=l(e,c.__wbindgen_malloc,c.__wbindgen_realloc),_=a,o=c.queryengine_connect(this.__wbg_ptr,n,_);return b(o)}disconnect(e){const n=l(e,c.__wbindgen_malloc,c.__wbindgen_realloc),_=a,o=c.queryengine_disconnect(this.__wbg_ptr,n,_);return b(o)}query(e,n,_){const o=l(e,c.__wbindgen_malloc,c.__wbindgen_realloc),f=a,u=l(n,c.__wbindgen_malloc,c.__wbindgen_realloc),s=a;var p=x(_)?0:l(_,c.__wbindgen_malloc,c.__wbindgen_realloc),E=a;const F=c.queryengine_query(this.__wbg_ptr,o,f,u,s,p,E);return b(F)}startTransaction(e,n){const _=l(e,c.__wbindgen_malloc,c.__wbindgen_realloc),o=a,f=l(n,c.__wbindgen_malloc,c.__wbindgen_realloc),u=a,s=c.queryengine_startTransaction(this.__wbg_ptr,_,o,f,u);return b(s)}commitTransaction(e,n){const _=l(e,c.__wbindgen_malloc,c.__wbindgen_realloc),o=a,f=l(n,c.__wbindgen_malloc,c.__wbindgen_realloc),u=a,s=c.queryengine_commitTransaction(this.__wbg_ptr,_,o,f,u);return b(s)}rollbackTransaction(e,n){const _=l(e,c.__wbindgen_malloc,c.__wbindgen_realloc),o=a,f=l(n,c.__wbindgen_malloc,c.__wbindgen_realloc),u=a,s=c.queryengine_rollbackTransaction(this.__wbg_ptr,_,o,f,u);return b(s)}metrics(e){const n=l(e,c.__wbindgen_malloc,c.__wbindgen_realloc),_=a,o=c.queryengine_metrics(this.__wbg_ptr,n,_);return b(o)}}function K(t,e){const n=r(e),_=typeof n=="string"?n:void 0;var o=x(_)?0:l(_,c.__wbindgen_malloc,c.__wbindgen_realloc),f=a;d().setInt32(t+4*1,f,!0),d().setInt32(t+4*0,o,!0)}function X(t,e){const n=new Error(m(t,e));return i(n)}function Y(t,e){try{var n={a:t,b:e},_=(f,u)=>{const s=n.a;n.a=0;try{return H(s,n.b,f,u)}finally{n.a=s}};const o=new Promise(_);return i(o)}finally{n.a=n.b=0}}function Z(t,e){return setTimeout(r(t),e>>>0)}function tt(t,e){const n=m(t,e);return i(n)}function et(t){const e=r(t);return i(e)}function nt(t){return r(t)===void 0}function rt(){return g(function(t,e){return Reflect.has(r(t),r(e))},arguments)}function _t(){return g(function(t,e){const n=JSON.parse(m(t,e));return i(n)},arguments)}function ot(){return i(new Date)}function ct(t){return r(t).getTime()}function it(t){return r(t).now()}function ut(){return Date.now()}function st(t){const e=Object.keys(r(t));return i(e)}function ft(t){return r(t).length}function at(t){b(t)}function bt(t){const e=r(t);return typeof e=="object"&&e!==null}function gt(t){let e;try{e=r(t)instanceof Promise}catch{e=!1}return e}function lt(){return i(Symbol.iterator)}function dt(t){const e=r(t);return typeof e=="boolean"?e?1:0:2}function wt(t){return typeof r(t)=="bigint"}function pt(t,e){const n=r(e),_=typeof n=="number"?n:void 0;d().setFloat64(t+8*1,x(_)?0:_,!0),d().setInt32(t+4*0,!x(_),!0)}function xt(t){return i(t)}function yt(t,e){return r(t)in r(e)}function mt(t){const e=BigInt.asUintN(64,t);return i(e)}function ht(t,e){return r(t)===r(e)}function Tt(t){return i(t)}function It(){const t=new Array;return i(t)}function St(t,e,n){r(t)[e>>>0]=b(n)}function jt(){return i(new Map)}function At(){const t=new Object;return i(t)}function Ot(t,e,n){const _=r(t).set(r(e),r(n));return i(_)}function qt(t){return typeof r(t)=="string"}function kt(t,e,n){r(t)[b(e)]=b(n)}function vt(t,e){const n=r(t)[r(e)];return i(n)}function Et(t,e){return r(t).push(r(e))}function Ft(){return g(function(t,e){const n=r(t)[b(e)];return i(n)},arguments)}function Rt(t,e){const n=String(r(e)),_=l(n,c.__wbindgen_malloc,c.__wbindgen_realloc),o=a;d().setInt32(t+4*1,o,!0),d().setInt32(t+4*0,_,!0)}function Dt(){const t=c.memory;return i(t)}function Mt(t){const e=r(t).buffer;return i(e)}function Ut(t,e,n){const _=new Uint8Array(r(t),e>>>0,n>>>0);return i(_)}function Bt(t){const e=new Uint8Array(r(t));return i(e)}function Nt(t,e,n){const _=r(t).subarray(e>>>0,n>>>0);return i(_)}function Ct(){return g(function(t,e){r(t).getRandomValues(r(e))},arguments)}function $t(){return g(function(t,e){r(t).randomFillSync(b(e))},arguments)}function Vt(t){const e=r(t).crypto;return i(e)}function zt(t){const e=r(t).process;return i(e)}function Lt(t){const e=r(t).versions;return i(e)}function Pt(t){const e=r(t).node;return i(e)}function Wt(){return g(function(){const t=module.require;return i(t)},arguments)}function Jt(t){const e=r(t).msCrypto;return i(e)}function Qt(t){const e=new Uint8Array(t>>>0);return i(e)}function Ht(t){return typeof r(t)=="function"}function Gt(){return g(function(t,e){const n=r(t).call(r(e));return i(n)},arguments)}function Kt(t,e){const n=r(t)[e>>>0];return i(n)}function Xt(t){return r(t).valueOf()}function Yt(){return g(function(t){const e=r(t).next();return i(e)},arguments)}function Zt(t){return r(t).done}function te(t){const e=r(t).value;return i(e)}function ee(t){const e=r(t).next;return i(e)}function ne(){return g(function(t,e){const n=Reflect.get(r(t),r(e));return i(n)},arguments)}function re(){return g(function(){const t=self.self;return i(t)},arguments)}function _e(){return g(function(){const t=window.window;return i(t)},arguments)}function oe(){return g(function(){const t=globalThis.globalThis;return i(t)},arguments)}function ce(){return g(function(){const t=global.global;return i(t)},arguments)}function ie(t,e){const n=new T(m(t,e));return i(n)}function ue(t){return Array.isArray(r(t))}function se(){return g(function(t,e,n){const _=r(t).call(r(e),r(n));return i(_)},arguments)}function fe(t){return Number.isSafeInteger(r(t))}function ae(){return g(function(t,e,n){return Reflect.set(r(t),r(e),r(n))},arguments)}function be(){return g(function(t){const e=JSON.stringify(r(t));return i(e)},arguments)}function ge(t,e,n){r(t).set(r(e),n>>>0)}function le(t){return r(t).length}function de(){return g(function(){return Date.now()},arguments)}function we(t,e){return r(t)==r(e)}function pe(t){let e;try{e=r(t)instanceof Uint8Array}catch{e=!1}return e}function xe(t){let e;try{e=r(t)instanceof ArrayBuffer}catch{e=!1}return e}function ye(t){const e=Object.entries(r(t));return i(e)}function me(t,e){throw new Error(m(t,e))}function he(t,e){const n=r(e),_=typeof n=="bigint"?n:void 0;d().setBigInt64(t+8*1,x(_)?BigInt(0):_,!0),d().setInt32(t+4*0,!x(_),!0)}function Te(t,e){const n=O(r(e)),_=l(n,c.__wbindgen_malloc,c.__wbindgen_realloc),o=a;d().setInt32(t+4*1,o,!0),d().setInt32(t+4*0,_,!0)}function Ie(t){const e=b(t).original;return e.cnt--==1?(e.a=0,!0):!1}function Se(t,e){const n=r(t).then(r(e));return i(n)}function je(t,e,n){const _=r(t).then(r(e),r(n));return i(_)}function Ae(t){const e=Promise.resolve(r(t));return i(e)}function Oe(t,e,n){const _=P(t,e,528,W);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_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_wrapper6724,__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 A=Object.defineProperty;var R=Object.getOwnPropertyDescriptor;var D=Object.getOwnPropertyNames;var M=Object.prototype.hasOwnProperty;var U=(t,e)=>{for(var n in e)A(t,n,{get:e[n],enumerable:!0})},B=(t,e,n,_)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of D(e))!M.call(t,o)&&o!==n&&A(t,o,{get:()=>e[o],enumerable:!(_=R(e,o))||_.enumerable});return t};var N=t=>B(A({},"__esModule",{value:!0}),t);var qe={};U(qe,{QueryEngine:()=>G,__wbg_String_88810dfeb4021902:()=>Rt,__wbg_buffer_b7b08af79b0b0974:()=>Mt,__wbg_call_1084a111329e68ce:()=>Gt,__wbg_call_89af060b4e1523f2:()=>se,__wbg_crypto_58f13aa23ffcb166:()=>Vt,__wbg_done_bfda7aa8f252b39f:()=>Zt,__wbg_entries_7a0e06255456ebcd:()=>ye,__wbg_getRandomValues_504510b5564925af:()=>Ct,__wbg_getTime_91058879093a1589:()=>ct,__wbg_get_224d16597dbbfd96:()=>ne,__wbg_get_3baa728f9d58d3f6:()=>Kt,__wbg_get_94990005bd6ca07c:()=>Ft,__wbg_getwithrefkey_5e6d9547403deab8:()=>vt,__wbg_globalThis_86b222e13bdf32ed:()=>oe,__wbg_global_e5a3fe56f8be9485:()=>ce,__wbg_has_4bfbc01db38743f7:()=>rt,__wbg_instanceof_ArrayBuffer_61dfc3198373c902:()=>xe,__wbg_instanceof_Promise_ae8c7ffdec83f2ae:()=>gt,__wbg_instanceof_Uint8Array_247a91427532499e:()=>pe,__wbg_isArray_8364a5371e9737d8:()=>ue,__wbg_isSafeInteger_7f1ed56200d90674:()=>fe,__wbg_iterator_888179a48810a9fe:()=>lt,__wbg_keys_7840ae453e408eab:()=>st,__wbg_length_8339fcf5d8ecd12e:()=>le,__wbg_length_ae22078168b726f5:()=>ft,__wbg_msCrypto_abcb1295e768d1f2:()=>Jt,__wbg_new0_65387337a95cf44d:()=>ot,__wbg_new_525245e2b9901204:()=>At,__wbg_new_8608a2b51a5f6737:()=>jt,__wbg_new_a220cf903aa02ca2:()=>It,__wbg_new_b85e72ed1bfd57f9:()=>Y,__wbg_new_ea1883e1e5e86686:()=>Bt,__wbg_newnoargs_76313bd6ff35d0f2:()=>ie,__wbg_newwithbyteoffsetandlength_8a2cb9ca96b27ec9:()=>Ut,__wbg_newwithlength_ec548f448387c968:()=>Qt,__wbg_next_de3e9db4440638b2:()=>ee,__wbg_next_f9cb570345655b9a:()=>Yt,__wbg_node_523d7bd03ef69fba:()=>Pt,__wbg_now_28a6b413aca4a96a:()=>de,__wbg_now_8ed1a4454e40ecd1:()=>it,__wbg_now_b7a162010a9e75b4:()=>ut,__wbg_parse_52202f117ec9ecfa:()=>_t,__wbg_process_5b786e71d465a513:()=>zt,__wbg_push_37c89022f34c01ca:()=>Et,__wbg_randomFillSync_a0d98aa11c81fe89:()=>$t,__wbg_require_2784e593a4674877:()=>Wt,__wbg_resolve_570458cb99d56a43:()=>Ae,__wbg_self_3093d5d1f7bcb682:()=>re,__wbg_setTimeout_631fe61f31fa2fad:()=>Z,__wbg_set_49185437f0ab06f8:()=>Ot,__wbg_set_673dda6c73d19609:()=>St,__wbg_set_841ac57cff3d672b:()=>kt,__wbg_set_d1e79e2388520f18:()=>ge,__wbg_set_eacc7d73fefaafdf:()=>ae,__wbg_set_wasm:()=>C,__wbg_stringify_bbf45426c92a6bf5:()=>be,__wbg_subarray_7c2e3576afe181d1:()=>Nt,__wbg_then_876bb3c633745cc6:()=>je,__wbg_then_95e6edc0f89b73b1:()=>Se,__wbg_valueOf_c759749a331da0c0:()=>Xt,__wbg_value_6d39332ab4788d86:()=>te,__wbg_versions_c2ab80650590b6a2:()=>Lt,__wbg_window_3bcfc4d31bc012f8:()=>_e,__wbindgen_bigint_from_i64:()=>xt,__wbindgen_bigint_from_u64:()=>mt,__wbindgen_bigint_get_as_i64:()=>he,__wbindgen_boolean_get:()=>dt,__wbindgen_cb_drop:()=>Ie,__wbindgen_closure_wrapper6734:()=>Oe,__wbindgen_debug_string:()=>Te,__wbindgen_error_new:()=>X,__wbindgen_in:()=>yt,__wbindgen_is_bigint:()=>wt,__wbindgen_is_function:()=>Ht,__wbindgen_is_object:()=>bt,__wbindgen_is_string:()=>qt,__wbindgen_is_undefined:()=>nt,__wbindgen_jsval_eq:()=>ht,__wbindgen_jsval_loose_eq:()=>we,__wbindgen_memory:()=>Dt,__wbindgen_number_get:()=>pt,__wbindgen_number_new:()=>Tt,__wbindgen_object_clone_ref:()=>et,__wbindgen_object_drop_ref:()=>at,__wbindgen_string_get:()=>K,__wbindgen_string_new:()=>tt,__wbindgen_throw:()=>me,debug_panic:()=>Q,getBuildTimeInfo:()=>J});module.exports=N(qe);var T=()=>{};T.prototype=T;let c;function C(t){c=t}const w=new Array(128).fill(void 0);w.push(void 0,null,!0,!1);function r(t){return w[t]}let a=0,I=null;function S(){return(I===null||I.byteLength===0)&&(I=new Uint8Array(c.memory.buffer)),I}const $=typeof TextEncoder>"u"?(0,module.require)("util").TextEncoder:TextEncoder;let j=new $("utf-8");const V=typeof j.encodeInto=="function"?function(t,e){return j.encodeInto(t,e)}:function(t,e){const n=j.encode(t);return e.set(n),{read:t.length,written:n.length}};function l(t,e,n){if(n===void 0){const s=j.encode(t),p=e(s.length,1)>>>0;return S().subarray(p,p+s.length).set(s),a=s.length,p}let _=t.length,o=e(_,1)>>>0;const f=S();let u=0;for(;u<_;u++){const s=t.charCodeAt(u);if(s>127)break;f[o+u]=s}if(u!==_){u!==0&&(t=t.slice(u)),o=n(o,_,_=u+t.length*3,1)>>>0;const s=S().subarray(o+u,o+_),p=V(t,s);u+=p.written,o=n(o,_,u,1)>>>0}return a=u,o}function x(t){return t==null}let y=null;function d(){return(y===null||y.buffer.detached===!0||y.buffer.detached===void 0&&y.buffer!==c.memory.buffer)&&(y=new DataView(c.memory.buffer)),y}const z=typeof TextDecoder>"u"?(0,module.require)("util").TextDecoder:TextDecoder;let q=new z("utf-8",{ignoreBOM:!0,fatal:!0});q.decode();function m(t,e){return t=t>>>0,q.decode(S().subarray(t,t+e))}let h=w.length;function i(t){h===w.length&&w.push(w.length+1);const e=h;return h=w[e],w[e]=t,e}function L(t){t<132||(w[t]=h,h=t)}function b(t){const e=r(t);return L(t),e}function O(t){const e=typeof t;if(e=="number"||e=="boolean"||t==null)return`${t}`;if(e=="string")return`"${t}"`;if(e=="symbol"){const o=t.description;return o==null?"Symbol":`Symbol(${o})`}if(e=="function"){const o=t.name;return typeof o=="string"&&o.length>0?`Function(${o})`:"Function"}if(Array.isArray(t)){const o=t.length;let f="[";o>0&&(f+=O(t[0]));for(let u=1;u<o;u++)f+=", "+O(t[u]);return f+="]",f}const n=/\[object ([^\]]+)\]/.exec(toString.call(t));let _;if(n.length>1)_=n[1];else return toString.call(t);if(_=="Object")try{return"Object("+JSON.stringify(t)+")"}catch{return"Object"}return t instanceof Error?`${t.name}: ${t.message}
2
+ ${t.stack}`:_}const k=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>{c.__wbindgen_export_2.get(t.dtor)(t.a,t.b)});function P(t,e,n,_){const o={a:t,b:e,cnt:1,dtor:n},f=(...u)=>{o.cnt++;const s=o.a;o.a=0;try{return _(s,o.b,...u)}finally{--o.cnt===0?(c.__wbindgen_export_2.get(o.dtor)(s,o.b),k.unregister(o)):o.a=s}};return f.original=o,k.register(f,o,o),f}function W(t,e,n){c._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9f2fcea3357d311c(t,e,i(n))}function J(){const t=c.getBuildTimeInfo();return b(t)}function Q(t){try{const f=c.__wbindgen_add_to_stack_pointer(-16);var e=x(t)?0:l(t,c.__wbindgen_malloc,c.__wbindgen_realloc),n=a;c.debug_panic(f,e,n);var _=d().getInt32(f+4*0,!0),o=d().getInt32(f+4*1,!0);if(o)throw b(_)}finally{c.__wbindgen_add_to_stack_pointer(16)}}function g(t,e){try{return t.apply(this,e)}catch(n){c.__wbindgen_exn_store(i(n))}}function H(t,e,n,_){c.wasm_bindgen__convert__closures__invoke2_mut__h157f32060ce6ea34(t,e,i(n),i(_))}const v=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>c.__wbg_queryengine_free(t>>>0,1));class G{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,v.unregister(this),e}free(){const e=this.__destroy_into_raw();c.__wbg_queryengine_free(e,0)}constructor(e,n,_){try{const s=c.__wbindgen_add_to_stack_pointer(-16);c.queryengine_new(s,i(e),i(n),i(_));var o=d().getInt32(s+4*0,!0),f=d().getInt32(s+4*1,!0),u=d().getInt32(s+4*2,!0);if(u)throw b(f);return this.__wbg_ptr=o>>>0,v.register(this,this.__wbg_ptr,this),this}finally{c.__wbindgen_add_to_stack_pointer(16)}}connect(e){const n=l(e,c.__wbindgen_malloc,c.__wbindgen_realloc),_=a,o=c.queryengine_connect(this.__wbg_ptr,n,_);return b(o)}disconnect(e){const n=l(e,c.__wbindgen_malloc,c.__wbindgen_realloc),_=a,o=c.queryengine_disconnect(this.__wbg_ptr,n,_);return b(o)}query(e,n,_){const o=l(e,c.__wbindgen_malloc,c.__wbindgen_realloc),f=a,u=l(n,c.__wbindgen_malloc,c.__wbindgen_realloc),s=a;var p=x(_)?0:l(_,c.__wbindgen_malloc,c.__wbindgen_realloc),E=a;const F=c.queryengine_query(this.__wbg_ptr,o,f,u,s,p,E);return b(F)}startTransaction(e,n){const _=l(e,c.__wbindgen_malloc,c.__wbindgen_realloc),o=a,f=l(n,c.__wbindgen_malloc,c.__wbindgen_realloc),u=a,s=c.queryengine_startTransaction(this.__wbg_ptr,_,o,f,u);return b(s)}commitTransaction(e,n){const _=l(e,c.__wbindgen_malloc,c.__wbindgen_realloc),o=a,f=l(n,c.__wbindgen_malloc,c.__wbindgen_realloc),u=a,s=c.queryengine_commitTransaction(this.__wbg_ptr,_,o,f,u);return b(s)}rollbackTransaction(e,n){const _=l(e,c.__wbindgen_malloc,c.__wbindgen_realloc),o=a,f=l(n,c.__wbindgen_malloc,c.__wbindgen_realloc),u=a,s=c.queryengine_rollbackTransaction(this.__wbg_ptr,_,o,f,u);return b(s)}metrics(e){const n=l(e,c.__wbindgen_malloc,c.__wbindgen_realloc),_=a,o=c.queryengine_metrics(this.__wbg_ptr,n,_);return b(o)}}function K(t,e){const n=r(e),_=typeof n=="string"?n:void 0;var o=x(_)?0:l(_,c.__wbindgen_malloc,c.__wbindgen_realloc),f=a;d().setInt32(t+4*1,f,!0),d().setInt32(t+4*0,o,!0)}function X(t,e){const n=new Error(m(t,e));return i(n)}function Y(t,e){try{var n={a:t,b:e},_=(f,u)=>{const s=n.a;n.a=0;try{return H(s,n.b,f,u)}finally{n.a=s}};const o=new Promise(_);return i(o)}finally{n.a=n.b=0}}function Z(t,e){return setTimeout(r(t),e>>>0)}function tt(t,e){const n=m(t,e);return i(n)}function et(t){const e=r(t);return i(e)}function nt(t){return r(t)===void 0}function rt(){return g(function(t,e){return Reflect.has(r(t),r(e))},arguments)}function _t(){return g(function(t,e){const n=JSON.parse(m(t,e));return i(n)},arguments)}function ot(){return i(new Date)}function ct(t){return r(t).getTime()}function it(t){return r(t).now()}function ut(){return Date.now()}function st(t){const e=Object.keys(r(t));return i(e)}function ft(t){return r(t).length}function at(t){b(t)}function bt(t){const e=r(t);return typeof e=="object"&&e!==null}function gt(t){let e;try{e=r(t)instanceof Promise}catch{e=!1}return e}function lt(){return i(Symbol.iterator)}function dt(t){const e=r(t);return typeof e=="boolean"?e?1:0:2}function wt(t){return typeof r(t)=="bigint"}function pt(t,e){const n=r(e),_=typeof n=="number"?n:void 0;d().setFloat64(t+8*1,x(_)?0:_,!0),d().setInt32(t+4*0,!x(_),!0)}function xt(t){return i(t)}function yt(t,e){return r(t)in r(e)}function mt(t){const e=BigInt.asUintN(64,t);return i(e)}function ht(t,e){return r(t)===r(e)}function Tt(t){return i(t)}function It(){const t=new Array;return i(t)}function St(t,e,n){r(t)[e>>>0]=b(n)}function jt(){return i(new Map)}function At(){const t=new Object;return i(t)}function Ot(t,e,n){const _=r(t).set(r(e),r(n));return i(_)}function qt(t){return typeof r(t)=="string"}function kt(t,e,n){r(t)[b(e)]=b(n)}function vt(t,e){const n=r(t)[r(e)];return i(n)}function Et(t,e){return r(t).push(r(e))}function Ft(){return g(function(t,e){const n=r(t)[b(e)];return i(n)},arguments)}function Rt(t,e){const n=String(r(e)),_=l(n,c.__wbindgen_malloc,c.__wbindgen_realloc),o=a;d().setInt32(t+4*1,o,!0),d().setInt32(t+4*0,_,!0)}function Dt(){const t=c.memory;return i(t)}function Mt(t){const e=r(t).buffer;return i(e)}function Ut(t,e,n){const _=new Uint8Array(r(t),e>>>0,n>>>0);return i(_)}function Bt(t){const e=new Uint8Array(r(t));return i(e)}function Nt(t,e,n){const _=r(t).subarray(e>>>0,n>>>0);return i(_)}function Ct(){return g(function(t,e){r(t).getRandomValues(r(e))},arguments)}function $t(){return g(function(t,e){r(t).randomFillSync(b(e))},arguments)}function Vt(t){const e=r(t).crypto;return i(e)}function zt(t){const e=r(t).process;return i(e)}function Lt(t){const e=r(t).versions;return i(e)}function Pt(t){const e=r(t).node;return i(e)}function Wt(){return g(function(){const t=module.require;return i(t)},arguments)}function Jt(t){const e=r(t).msCrypto;return i(e)}function Qt(t){const e=new Uint8Array(t>>>0);return i(e)}function Ht(t){return typeof r(t)=="function"}function Gt(){return g(function(t,e){const n=r(t).call(r(e));return i(n)},arguments)}function Kt(t,e){const n=r(t)[e>>>0];return i(n)}function Xt(t){return r(t).valueOf()}function Yt(){return g(function(t){const e=r(t).next();return i(e)},arguments)}function Zt(t){return r(t).done}function te(t){const e=r(t).value;return i(e)}function ee(t){const e=r(t).next;return i(e)}function ne(){return g(function(t,e){const n=Reflect.get(r(t),r(e));return i(n)},arguments)}function re(){return g(function(){const t=self.self;return i(t)},arguments)}function _e(){return g(function(){const t=window.window;return i(t)},arguments)}function oe(){return g(function(){const t=globalThis.globalThis;return i(t)},arguments)}function ce(){return g(function(){const t=global.global;return i(t)},arguments)}function ie(t,e){const n=new T(m(t,e));return i(n)}function ue(t){return Array.isArray(r(t))}function se(){return g(function(t,e,n){const _=r(t).call(r(e),r(n));return i(_)},arguments)}function fe(t){return Number.isSafeInteger(r(t))}function ae(){return g(function(t,e,n){return Reflect.set(r(t),r(e),r(n))},arguments)}function be(){return g(function(t){const e=JSON.stringify(r(t));return i(e)},arguments)}function ge(t,e,n){r(t).set(r(e),n>>>0)}function le(t){return r(t).length}function de(){return g(function(){return Date.now()},arguments)}function we(t,e){return r(t)==r(e)}function pe(t){let e;try{e=r(t)instanceof Uint8Array}catch{e=!1}return e}function xe(t){let e;try{e=r(t)instanceof ArrayBuffer}catch{e=!1}return e}function ye(t){const e=Object.entries(r(t));return i(e)}function me(t,e){throw new Error(m(t,e))}function he(t,e){const n=r(e),_=typeof n=="bigint"?n:void 0;d().setBigInt64(t+8*1,x(_)?BigInt(0):_,!0),d().setInt32(t+4*0,!x(_),!0)}function Te(t,e){const n=O(r(e)),_=l(n,c.__wbindgen_malloc,c.__wbindgen_realloc),o=a;d().setInt32(t+4*1,o,!0),d().setInt32(t+4*0,_,!0)}function Ie(t){const e=b(t).original;return e.cnt--==1?(e.a=0,!0):!1}function Se(t,e){const n=r(t).then(r(e));return i(n)}function je(t,e,n){const _=r(t).then(r(e),r(n));return i(_)}function Ae(t){const e=Promise.resolve(r(t));return i(e)}function Oe(t,e,n){const _=P(t,e,529,W);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_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_wrapper6734,__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});
@@ -718,6 +718,7 @@ export declare namespace DMMF {
718
718
  export type Model = ReadonlyDeep_2<{
719
719
  name: string;
720
720
  dbName: string | null;
721
+ schema: string | null;
721
722
  fields: Field[];
722
723
  uniqueFields: string[][];
723
724
  uniqueIndexes: uniqueIndex[];
@@ -743,6 +744,12 @@ export declare namespace DMMF {
743
744
  * BigInt, Boolean, Bytes, DateTime, Decimal, Float, Int, JSON, String, $ModelName
744
745
  */
745
746
  type: string;
747
+ /**
748
+ * Native database type, if specified.
749
+ * For example, `@db.VarChar(191)` is encoded as `['VarChar', ['191']]`,
750
+ * `@db.Text` is encoded as `['Text', []]`.
751
+ */
752
+ nativeType?: [string, string[]] | null;
746
753
  dbName?: string | null;
747
754
  hasDefaultValue: boolean;
748
755
  default?: FieldDefault | FieldDefaultScalar | FieldDefaultScalar[];