@prisma/client 6.19.0-integration-next.12 → 6.19.0-integration-next.13
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.
- package/generator-build/index.js +2 -2
- package/package.json +28 -28
- package/runtime/client.js +2 -2
- package/runtime/client.js.map +1 -1
- package/runtime/client.mjs +2 -2
- package/runtime/client.mjs.map +1 -1
- package/runtime/library.js +2 -2
- package/runtime/library.js.map +1 -1
- package/runtime/library.mjs +2 -2
- package/runtime/library.mjs.map +1 -1
- package/runtime/wasm-compiler-edge.js +2 -2
- package/runtime/wasm-compiler-edge.js.map +2 -2
- package/runtime/wasm-compiler-edge.mjs +2 -2
- package/runtime/wasm-compiler-edge.mjs.map +2 -2
- package/scripts/default-index.js +1 -1
package/runtime/library.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Aa=Object.create;var Dt=Object.defineProperty;var Ra=Object.getOwnPropertyDescriptor;var Oa=Object.getOwnPropertyNames;var ka=Object.getPrototypeOf,Da=Object.prototype.hasOwnProperty;var Wn=(e,t)=>()=>(e&&(t=e(e=0)),t);var V=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Te=(e,t)=>{for(var r in t)Dt(e,r,{get:t[r],enumerable:!0})},Qn=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Oa(t))!Da.call(e,i)&&i!==r&&Dt(e,i,{get:()=>t[i],enumerable:!(n=Ra(t,i))||n.enumerable});return e};var x=(e,t,r)=>(r=e!=null?Aa(ka(e)):{},Qn(t||!e||!e.__esModule?Dt(r,"default",{value:e,enumerable:!0}):r,e)),_a=e=>Qn(Dt({},"__esModule",{value:!0}),e);var Jr=V((lm,wi)=>{"use strict";wi.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 Pi=V((um,vi)=>{"use strict";var Gl=require("node:os"),Ei=require("node:tty"),W=Jr(),{env:O}=process,he;W("no-color")||W("no-colors")||W("color=false")||W("color=never")?he=0:(W("color")||W("colors")||W("color=true")||W("color=always"))&&(he=1);"FORCE_COLOR"in O&&(O.FORCE_COLOR==="true"?he=1:O.FORCE_COLOR==="false"?he=0:he=O.FORCE_COLOR.length===0?1:Math.min(parseInt(O.FORCE_COLOR,10),3));function Kr(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function zr(e,t){if(he===0)return 0;if(W("color=16m")||W("color=full")||W("color=truecolor"))return 3;if(W("color=256"))return 2;if(e&&!t&&he===void 0)return 0;let r=he||0;if(O.TERM==="dumb")return r;if(process.platform==="win32"){let n=Gl.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in O)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in O)||O.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in O)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(O.TEAMCITY_VERSION)?1:0;if(O.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in O){let n=parseInt((O.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(O.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(O.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(O.TERM)||"COLORTERM"in O?1:r}function Jl(e){let t=zr(e,e&&e.isTTY);return Kr(t)}vi.exports={supportsColor:Jl,stdout:Kr(zr(!0,Ei.isatty(1))),stderr:Kr(zr(!0,Ei.isatty(2)))}});var Ci=V((cm,Si)=>{"use strict";var Kl=Pi(),$e=Jr();function Ti(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 Hr(e){let{CI:t,FORCE_HYPERLINK:r,NETLIFY:n,TEAMCITY_VERSION:i,TERM_PROGRAM:o,TERM_PROGRAM_VERSION:s,VTE_VERSION:a,TERM:l}=process.env;if(r)return!(r.length>0&&parseInt(r,10)===0);if($e("no-hyperlink")||$e("no-hyperlinks")||$e("hyperlink=false")||$e("hyperlink=never"))return!1;if($e("hyperlink=true")||$e("hyperlink=always")||n)return!0;if(!Kl.supportsColor(e)||e&&!e.isTTY)return!1;if("WT_SESSION"in process.env)return!0;if(process.platform==="win32"||t||i)return!1;if(o){let u=Ti(s||"");switch(o){case"iTerm.app":return u.major===3?u.minor>=1:u.major>3;case"WezTerm":return u.major>=20200620;case"vscode":return u.major>1||u.major===1&&u.minor>=72;case"ghostty":return!0}}if(a){if(a==="0.50.0")return!1;let u=Ti(a);return u.major>0||u.minor>=50}switch(l){case"alacritty":return!0}return!1}Si.exports={supportsHyperlink:Hr,stdout:Hr(process.stdout),stderr:Hr(process.stderr)}});var Ai=V((Pm,zl)=>{zl.exports={name:"@prisma/internals",version:"6.19.0-integration-next.
|
|
1
|
+
"use strict";var Aa=Object.create;var Dt=Object.defineProperty;var Ra=Object.getOwnPropertyDescriptor;var Oa=Object.getOwnPropertyNames;var ka=Object.getPrototypeOf,Da=Object.prototype.hasOwnProperty;var Wn=(e,t)=>()=>(e&&(t=e(e=0)),t);var V=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Te=(e,t)=>{for(var r in t)Dt(e,r,{get:t[r],enumerable:!0})},Qn=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Oa(t))!Da.call(e,i)&&i!==r&&Dt(e,i,{get:()=>t[i],enumerable:!(n=Ra(t,i))||n.enumerable});return e};var x=(e,t,r)=>(r=e!=null?Aa(ka(e)):{},Qn(t||!e||!e.__esModule?Dt(r,"default",{value:e,enumerable:!0}):r,e)),_a=e=>Qn(Dt({},"__esModule",{value:!0}),e);var Jr=V((lm,wi)=>{"use strict";wi.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 Pi=V((um,vi)=>{"use strict";var Gl=require("node:os"),Ei=require("node:tty"),W=Jr(),{env:O}=process,he;W("no-color")||W("no-colors")||W("color=false")||W("color=never")?he=0:(W("color")||W("colors")||W("color=true")||W("color=always"))&&(he=1);"FORCE_COLOR"in O&&(O.FORCE_COLOR==="true"?he=1:O.FORCE_COLOR==="false"?he=0:he=O.FORCE_COLOR.length===0?1:Math.min(parseInt(O.FORCE_COLOR,10),3));function Kr(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function zr(e,t){if(he===0)return 0;if(W("color=16m")||W("color=full")||W("color=truecolor"))return 3;if(W("color=256"))return 2;if(e&&!t&&he===void 0)return 0;let r=he||0;if(O.TERM==="dumb")return r;if(process.platform==="win32"){let n=Gl.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in O)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in O)||O.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in O)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(O.TEAMCITY_VERSION)?1:0;if(O.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in O){let n=parseInt((O.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(O.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(O.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(O.TERM)||"COLORTERM"in O?1:r}function Jl(e){let t=zr(e,e&&e.isTTY);return Kr(t)}vi.exports={supportsColor:Jl,stdout:Kr(zr(!0,Ei.isatty(1))),stderr:Kr(zr(!0,Ei.isatty(2)))}});var Ci=V((cm,Si)=>{"use strict";var Kl=Pi(),$e=Jr();function Ti(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 Hr(e){let{CI:t,FORCE_HYPERLINK:r,NETLIFY:n,TEAMCITY_VERSION:i,TERM_PROGRAM:o,TERM_PROGRAM_VERSION:s,VTE_VERSION:a,TERM:l}=process.env;if(r)return!(r.length>0&&parseInt(r,10)===0);if($e("no-hyperlink")||$e("no-hyperlinks")||$e("hyperlink=false")||$e("hyperlink=never"))return!1;if($e("hyperlink=true")||$e("hyperlink=always")||n)return!0;if(!Kl.supportsColor(e)||e&&!e.isTTY)return!1;if("WT_SESSION"in process.env)return!0;if(process.platform==="win32"||t||i)return!1;if(o){let u=Ti(s||"");switch(o){case"iTerm.app":return u.major===3?u.minor>=1:u.major>3;case"WezTerm":return u.major>=20200620;case"vscode":return u.major>1||u.major===1&&u.minor>=72;case"ghostty":return!0}}if(a){if(a==="0.50.0")return!1;let u=Ti(a);return u.major>0||u.minor>=50}switch(l){case"alacritty":return!0}return!1}Si.exports={supportsHyperlink:Hr,stdout:Hr(process.stdout),stderr:Hr(process.stderr)}});var Ai=V((Pm,zl)=>{zl.exports={name:"@prisma/internals",version:"6.19.0-integration-next.13",description:"This package is intended for Prisma's internal use",main:"dist/index.js",types:"dist/index.d.ts",repository:{type:"git",url:"https://github.com/prisma/prisma.git",directory:"packages/internals"},homepage:"https://www.prisma.io",author:"Tim Suchanek <suchanek@prisma.io>",bugs:"https://github.com/prisma/prisma/issues",license:"Apache-2.0",scripts:{dev:"DEV=true tsx helpers/build.ts",build:"tsx helpers/build.ts",test:"dotenv -e ../../.db.env -- jest --silent",prepublishOnly:"pnpm run build"},files:["README.md","dist","!**/libquery_engine*","!dist/get-generators/engines/*","scripts"],devDependencies:{"@babel/helper-validator-identifier":"7.25.9","@opentelemetry/api":"1.9.0","@swc/core":"1.11.5","@swc/jest":"0.2.37","@types/babel__helper-validator-identifier":"7.15.2","@types/jest":"29.5.14","@types/node":"~20.19.0","@types/resolve":"1.20.6",archiver:"6.0.2","checkpoint-client":"1.1.33","cli-truncate":"4.0.0",dotenv:"16.5.0",empathic:"2.0.0","escape-string-regexp":"5.0.0",execa:"8.0.1","fast-glob":"3.3.3","find-up":"7.0.0","fp-ts":"2.16.9","fs-extra":"11.3.0","global-directory":"4.0.0",globby:"11.1.0","identifier-regex":"1.0.0","indent-string":"4.0.0","is-windows":"1.0.2","is-wsl":"3.1.0",jest:"29.7.0","jest-junit":"16.0.0",kleur:"4.1.5","mock-stdin":"1.0.0","new-github-issue-url":"0.2.1","node-fetch":"3.3.2","npm-packlist":"5.1.3",open:"7.4.2","p-map":"4.0.0",resolve:"1.22.10","string-width":"7.2.0","strip-indent":"4.0.0","temp-dir":"2.0.0",tempy:"1.0.1","terminal-link":"4.0.0",tmp:"0.2.3","ts-pattern":"5.6.2","ts-toolbelt":"9.6.0",typescript:"5.4.5",yarn:"1.22.22"},dependencies:{"@prisma/config":"workspace:*","@prisma/debug":"workspace:*","@prisma/dmmf":"workspace:*","@prisma/driver-adapter-utils":"workspace:*","@prisma/engines":"workspace:*","@prisma/fetch-engine":"workspace:*","@prisma/generator":"workspace:*","@prisma/generator-helper":"workspace:*","@prisma/get-platform":"workspace:*","@prisma/prisma-schema-wasm":"6.19.0-29.next-ac95b5893b3c05bf39a2431fc1a748dd46152ab4","@prisma/schema-engine-wasm":"6.19.0-21.next-3ab778d6c5a8df0d39fd88ffd67461d3395af732","@prisma/schema-files-loader":"workspace:*",arg:"5.0.2",prompts:"2.4.2"},peerDependencies:{typescript:">=5.4.0"},peerDependenciesMeta:{typescript:{optional:!0}},sideEffects:!1}});var Ri=V((Om,Yl)=>{Yl.exports={name:"@prisma/engines-version",version:"6.19.0-29.next-ac95b5893b3c05bf39a2431fc1a748dd46152ab4",main:"index.js",types:"index.d.ts",license:"Apache-2.0",author:"Tim Suchanek <suchanek@prisma.io>",prisma:{enginesVersion:"ac95b5893b3c05bf39a2431fc1a748dd46152ab4"},repository:{type:"git",url:"https://github.com/prisma/engines-wrapper.git",directory:"packages/engines-version"},devDependencies:{"@types/node":"18.19.76",typescript:"4.9.5"},files:["index.js","index.d.ts"],scripts:{build:"tsc -d"}}});var Xr=V(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.enginesVersion=void 0;Gt.enginesVersion=Ri().prisma.enginesVersion});var Di=V((qm,ki)=>{"use strict";ki.exports=e=>{let t=e.match(/^[ \t]*(?=\S)/gm);return t?t.reduce((r,n)=>Math.min(r,n.length),1/0):0}});var nn=V((Wm,Li)=>{"use strict";Li.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 Ni=V((Xm,cu)=>{cu.exports={name:"dotenv",version:"16.5.0",description:"Loads environment variables from .env file",main:"lib/main.js",types:"lib/main.d.ts",exports:{".":{types:"./lib/main.d.ts",require:"./lib/main.js",default:"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},scripts:{"dts-check":"tsc --project tests/types/tsconfig.json",lint:"standard",pretest:"npm run lint && npm run dts-check",test:"tap run --allow-empty-coverage --disable-coverage --timeout=60000","test:coverage":"tap run --show-full-coverage --timeout=60000 --coverage-report=lcov",prerelease:"npm test",release:"standard-version"},repository:{type:"git",url:"git://github.com/motdotla/dotenv.git"},homepage:"https://github.com/motdotla/dotenv#readme",funding:"https://dotenvx.com",keywords:["dotenv","env",".env","environment","variables","config","settings"],readmeFilename:"README.md",license:"BSD-2-Clause",devDependencies:{"@types/node":"^18.11.3",decache:"^4.6.2",sinon:"^14.0.1",standard:"^17.0.0","standard-version":"^9.5.0",tap:"^19.2.0",typescript:"^4.8.4"},engines:{node:">=12"},browser:{fs:!1}}});var Ui=V((ef,se)=>{"use strict";var cn=require("node:fs"),pn=require("node:path"),pu=require("node:os"),du=require("node:crypto"),mu=Ni(),qi=mu.version,fu=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function gu(e){let t={},r=e.toString();r=r.replace(/\r\n?/mg,`
|
|
2
2
|
`);let n;for(;(n=fu.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 yu(e){let t=Bi(e),r=R.configDotenv({path:t});if(!r.parsed){let s=new Error(`MISSING_DATA: Cannot parse ${t} for an unknown reason`);throw s.code="MISSING_DATA",s}let n=Vi(e).split(","),i=n.length,o;for(let s=0;s<i;s++)try{let a=n[s].trim(),l=bu(r,a);o=R.decrypt(l.ciphertext,l.key);break}catch(a){if(s+1>=i)throw a}return R.parse(o)}function hu(e){console.log(`[dotenv@${qi}][WARN] ${e}`)}function gt(e){console.log(`[dotenv@${qi}][DEBUG] ${e}`)}function Vi(e){return e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0?e.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}function bu(e,t){let r;try{r=new URL(t)}catch(a){if(a.code==="ERR_INVALID_URL"){let l=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");throw l.code="INVALID_DOTENV_KEY",l}throw a}let n=r.password;if(!n){let a=new Error("INVALID_DOTENV_KEY: Missing key part");throw a.code="INVALID_DOTENV_KEY",a}let i=r.searchParams.get("environment");if(!i){let a=new Error("INVALID_DOTENV_KEY: Missing environment part");throw a.code="INVALID_DOTENV_KEY",a}let o=`DOTENV_VAULT_${i.toUpperCase()}`,s=e.parsed[o];if(!s){let a=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${o} in your .env.vault file.`);throw a.code="NOT_FOUND_DOTENV_ENVIRONMENT",a}return{ciphertext:s,key:n}}function Bi(e){let t=null;if(e&&e.path&&e.path.length>0)if(Array.isArray(e.path))for(let r of e.path)cn.existsSync(r)&&(t=r.endsWith(".vault")?r:`${r}.vault`);else t=e.path.endsWith(".vault")?e.path:`${e.path}.vault`;else t=pn.resolve(process.cwd(),".env.vault");return cn.existsSync(t)?t:null}function ji(e){return e[0]==="~"?pn.join(pu.homedir(),e.slice(1)):e}function xu(e){!!(e&&e.debug)&>("Loading env from encrypted .env.vault");let r=R._parseVault(e),n=process.env;return e&&e.processEnv!=null&&(n=e.processEnv),R.populate(n,r,e),{parsed:r}}function wu(e){let t=pn.resolve(process.cwd(),".env"),r="utf8",n=!!(e&&e.debug);e&&e.encoding?r=e.encoding:n&>("No encoding is specified. UTF-8 is used by default");let i=[t];if(e&&e.path)if(!Array.isArray(e.path))i=[ji(e.path)];else{i=[];for(let l of e.path)i.push(ji(l))}let o,s={};for(let l of i)try{let u=R.parse(cn.readFileSync(l,{encoding:r}));R.populate(s,u,e)}catch(u){n&>(`Failed to load ${l} ${u.message}`),o=u}let a=process.env;return e&&e.processEnv!=null&&(a=e.processEnv),R.populate(a,s,e),o?{parsed:s,error:o}:{parsed:s}}function Eu(e){if(Vi(e).length===0)return R.configDotenv(e);let t=Bi(e);return t?R._configVault(e):(hu(`You set DOTENV_KEY but you are missing a .env.vault file at ${t}. Did you forget to build it?`),R.configDotenv(e))}function vu(e,t){let r=Buffer.from(t.slice(-64),"hex"),n=Buffer.from(e,"base64"),i=n.subarray(0,12),o=n.subarray(-16);n=n.subarray(12,-16);try{let s=du.createDecipheriv("aes-256-gcm",r,i);return s.setAuthTag(o),`${s.update(n)}${s.final()}`}catch(s){let a=s instanceof RangeError,l=s.message==="Invalid key length",u=s.message==="Unsupported state or unable to authenticate data";if(a||l){let c=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw c.code="INVALID_DOTENV_KEY",c}else if(u){let c=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw c.code="DECRYPTION_FAILED",c}else throw s}}function Pu(e,t,r={}){let n=!!(r&&r.debug),i=!!(r&&r.override);if(typeof t!="object"){let o=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw o.code="OBJECT_REQUIRED",o}for(let o of Object.keys(t))Object.prototype.hasOwnProperty.call(e,o)?(i===!0&&(e[o]=t[o]),n&>(i===!0?`"${o}" is already defined and WAS overwritten`:`"${o}" is already defined and was NOT overwritten`)):e[o]=t[o]}var R={configDotenv:wu,_configVault:xu,_parseVault:yu,config:Eu,decrypt:vu,parse:gu,populate:Pu};se.exports.configDotenv=R.configDotenv;se.exports._configVault=R._configVault;se.exports._parseVault=R._parseVault;se.exports.config=R.config;se.exports.decrypt=R.decrypt;se.exports.parse=R.parse;se.exports.populate=R.populate;se.exports=R});var Ji=V((af,zt)=>{"use strict";zt.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()};zt.exports.default=zt.exports});var hn=V((ig,to)=>{"use strict";to.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,m,f,b,v,j,le,A,P,q=[];for(l=0;l<i;l++)q.push(l+1),q.push(t.charCodeAt(s+l));for(var Fe=q.length-1;a<o-3;)for(j=r.charCodeAt(s+(u=a)),le=r.charCodeAt(s+(c=a+1)),A=r.charCodeAt(s+(p=a+2)),P=r.charCodeAt(s+(m=a+3)),f=a+=4,l=0;l<Fe;l+=2)b=q[l],v=q[l+1],u=e(b,u,c,j,v),c=e(u,c,p,le,v),p=e(c,p,m,A,v),f=e(p,m,f,P,v),q[l]=f,m=p,p=c,c=u,u=b;for(;a<o;)for(j=r.charCodeAt(s+(u=a)),f=++a,l=0;l<Fe;l+=2)b=q[l],q[l]=f=e(b,u,f,j,q[l+1]),u=b;return f}}()});var so=Wn(()=>{"use strict"});var ao=Wn(()=>{"use strict"});var Yp={};Te(Yp,{AnyNull:()=>I.AnyNull,DMMF:()=>bt,DbNull:()=>I.DbNull,Debug:()=>C,Decimal:()=>Pa.Decimal,Extensions:()=>Fr,JsonNull:()=>I.JsonNull,NullTypes:()=>I.NullTypes,ObjectEnumValue:()=>I.ObjectEnumValue,PrismaClientInitializationError:()=>h.PrismaClientInitializationError,PrismaClientKnownRequestError:()=>h.PrismaClientKnownRequestError,PrismaClientRustPanicError:()=>h.PrismaClientRustPanicError,PrismaClientUnknownRequestError:()=>h.PrismaClientUnknownRequestError,PrismaClientValidationError:()=>h.PrismaClientValidationError,Public:()=>Ir,Sql:()=>te.Sql,createParam:()=>Co,defineDmmfProperty:()=>Do,deserializeJsonResponse:()=>Ze,deserializeRawResult:()=>Or,dmmfToRuntimeDataModel:()=>Hn,empty:()=>te.empty,getPrismaClient:()=>wa,getRuntime:()=>vr,isAnyNull:()=>I.isAnyNull,isDbNull:()=>I.isDbNull,isJsonNull:()=>I.isJsonNull,join:()=>te.join,makeStrictEnum:()=>Ea,makeTypedQueryFactory:()=>_o,raw:()=>te.raw,serializeJsonQuery:()=>mr,skip:()=>dr,sqltag:()=>te.sql,warnEnvConflicts:()=>va,warnOnce:()=>ht});module.exports=_a(Yp);var Fr={};Te(Fr,{defineExtension:()=>Gn,getExtensionContext:()=>Jn});function Gn(e){return typeof e=="function"?e:t=>t.$extends(e)}function Jn(e){return e}var Ir={};Te(Ir,{validator:()=>Kn});function Kn(...e){return t=>t}var J=class{_map=new Map;get(t){return this._map.get(t)?.value}set(t,r){this._map.set(t,{value:r})}getOrCreate(t,r){let n=this._map.get(t);if(n)return n.value;let i=r();return this.set(t,i),i}};function ce(e){return e.substring(0,1).toLowerCase()+e.substring(1)}function zn(e,t){let r={};for(let n of e){let i=n[t];r[i]=n}return r}function nt(e){let t;return{get(){return t||(t={value:e()}),t.value}}}function Hn(e){return{models:Lr(e.models),enums:Lr(e.enums),types:Lr(e.types)}}function Lr(e){let t={};for(let{name:r,...n}of e)t[r]=n;return t}var xe=require("@prisma/client-runtime-utils");var _t={};Te(_t,{$:()=>ti,bgBlack:()=>Ba,bgBlue:()=>Ga,bgCyan:()=>Ka,bgGreen:()=>Wa,bgMagenta:()=>Ja,bgRed:()=>Ua,bgWhite:()=>za,bgYellow:()=>Qa,black:()=>Na,blue:()=>Se,bold:()=>_,cyan:()=>ie,dim:()=>re,gray:()=>it,green:()=>pe,grey:()=>Va,hidden:()=>$a,inverse:()=>La,italic:()=>Ia,magenta:()=>ja,red:()=>B,reset:()=>Fa,strikethrough:()=>Ma,underline:()=>F,white:()=>qa,yellow:()=>ne});var $r,Yn,Zn,Xn,ei=!0;typeof process<"u"&&({FORCE_COLOR:$r,NODE_DISABLE_COLORS:Yn,NO_COLOR:Zn,TERM:Xn}=process.env||{},ei=process.stdout&&process.stdout.isTTY);var ti={enabled:!Yn&&Zn==null&&Xn!=="dumb"&&($r!=null&&$r!=="0"||ei)};function w(e,t){let r=new RegExp(`\\x1b\\[${t}m`,"g"),n=`\x1B[${e}m`,i=`\x1B[${t}m`;return function(o){return!ti.enabled||o==null?o:n+(~(""+o).indexOf(i)?o.replace(r,i+n):o)+i}}var Fa=w(0,0),_=w(1,22),re=w(2,22),Ia=w(3,23),F=w(4,24),La=w(7,27),$a=w(8,28),Ma=w(9,29),Na=w(30,39),B=w(31,39),pe=w(32,39),ne=w(33,39),Se=w(34,39),ja=w(35,39),ie=w(36,39),qa=w(37,39),it=w(90,39),Va=w(90,39),Ba=w(40,49),Ua=w(41,49),Wa=w(42,49),Qa=w(43,49),Ga=w(44,49),Ja=w(45,49),Ka=w(46,49),za=w(47,49);var Ha=100,ri=["green","yellow","blue","magenta","cyan","red"],ot=[],ni=Date.now(),Ya=0,Mr=typeof process<"u"?process.env:{};globalThis.DEBUG??=Mr.DEBUG??"";globalThis.DEBUG_COLORS??=Mr.DEBUG_COLORS?Mr.DEBUG_COLORS==="true":!0;var st={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 Za(e){let t={color:ri[Ya++%ri.length],enabled:st.enabled(e),namespace:e,log:st.log,extend:()=>{}},r=(...n)=>{let{enabled:i,namespace:o,color:s,log:a}=t;if(n.length!==0&&ot.push([o,...n]),ot.length>Ha&&ot.shift(),st.enabled(o)||i){let l=n.map(c=>typeof c=="string"?c:Xa(c)),u=`+${Date.now()-ni}ms`;ni=Date.now(),globalThis.DEBUG_COLORS?a(_t[s](_(o)),...l,_t[s](u)):a(o,...l,u)}};return new Proxy(r,{get:(n,i)=>t[i],set:(n,i,o)=>t[i]=o})}var C=new Proxy(Za,{get:(e,t)=>st[t],set:(e,t,r)=>st[t]=r});function Xa(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 ii(e=7500){let t=ot.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 oi(){ot.length=0}var Ft=C;var si=x(require("node:fs"));function Nr(){let e=process.env.PRISMA_QUERY_ENGINE_LIBRARY;if(!(e&&si.default.existsSync(e))&&process.arch==="ia32")throw new Error('The default query engine type (Node-API, "library") is currently not supported for 32bit Node.)')}var jr=["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 It="libquery_engine";function Lt(e,t){let r=t==="url";return e.includes("windows")?r?"query_engine.dll.node":`query_engine-${e}.dll.node`:e.includes("darwin")?r?`${It}.dylib.node`:`${It}-${e}.dylib.node`:r?`${It}.so.node`:`${It}-${e}.so.node`}var ci=x(require("node:child_process")),Wr=x(require("node:fs/promises")),qt=x(require("node:os"));var oe=Symbol.for("@ts-pattern/matcher"),el=Symbol.for("@ts-pattern/isVariadic"),Mt="@ts-pattern/anonymous-select-key",qr=e=>!!(e&&typeof e=="object"),$t=e=>e&&!!e[oe],H=(e,t,r)=>{if($t(e)){let n=e[oe](),{matched:i,selections:o}=n.match(t);return i&&o&&Object.keys(o).forEach(s=>r(s,o[s])),i}if(qr(e)){if(!qr(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];$t(a)&&a[el]?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)=>H(u,s[c],r))&&i.every((u,c)=>H(u,a[c],r))&&(o.length===0||H(o[0],l,r))}return e.length===t.length&&e.every((s,a)=>H(s,t[a],r))}return Reflect.ownKeys(e).every(n=>{let i=e[n];return(n in t||$t(o=i)&&o[oe]().matcherType==="optional")&&H(i,t[n],r);var o})}return Object.is(t,e)},ye=e=>{var t,r,n;return qr(e)?$t(e)?(t=(r=(n=e[oe]()).getSelectionKeys)==null?void 0:r.call(n))!=null?t:[]:Array.isArray(e)?at(e,ye):at(Object.values(e),ye):[]},at=(e,t)=>e.reduce((r,n)=>r.concat(t(n)),[]);function U(e){return Object.assign(e,{optional:()=>tl(e),and:t=>S(e,t),or:t=>rl(e,t),select:t=>t===void 0?ai(e):ai(t,e)})}function tl(e){return U({[oe]:()=>({match:t=>{let r={},n=(i,o)=>{r[i]=o};return t===void 0?(ye(e).forEach(i=>n(i,void 0)),{matched:!0,selections:r}):{matched:H(e,t,n),selections:r}},getSelectionKeys:()=>ye(e),matcherType:"optional"})})}function S(...e){return U({[oe]:()=>({match:t=>{let r={},n=(i,o)=>{r[i]=o};return{matched:e.every(i=>H(i,t,n)),selections:r}},getSelectionKeys:()=>at(e,ye),matcherType:"and"})})}function rl(...e){return U({[oe]:()=>({match:t=>{let r={},n=(i,o)=>{r[i]=o};return at(e,ye).forEach(i=>n(i,void 0)),{matched:e.some(i=>H(i,t,n)),selections:r}},getSelectionKeys:()=>at(e,ye),matcherType:"or"})})}function g(e){return{[oe]:()=>({match:t=>({matched:!!e(t)})})}}function ai(...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 U({[oe]:()=>({match:n=>{let i={[t??Mt]:n};return{matched:r===void 0||H(r,n,(o,s)=>{i[o]=s}),selections:i}},getSelectionKeys:()=>[t??Mt].concat(r===void 0?[]:ye(r))})})}function K(e){return typeof e=="number"}function de(e){return typeof e=="string"}function me(e){return typeof e=="bigint"}var Od=U(g(function(e){return!0}));var fe=e=>Object.assign(U(e),{startsWith:t=>{return fe(S(e,(r=t,g(n=>de(n)&&n.startsWith(r)))));var r},endsWith:t=>{return fe(S(e,(r=t,g(n=>de(n)&&n.endsWith(r)))));var r},minLength:t=>fe(S(e,(r=>g(n=>de(n)&&n.length>=r))(t))),length:t=>fe(S(e,(r=>g(n=>de(n)&&n.length===r))(t))),maxLength:t=>fe(S(e,(r=>g(n=>de(n)&&n.length<=r))(t))),includes:t=>{return fe(S(e,(r=t,g(n=>de(n)&&n.includes(r)))));var r},regex:t=>{return fe(S(e,(r=t,g(n=>de(n)&&!!n.match(r)))));var r}}),kd=fe(g(de)),z=e=>Object.assign(U(e),{between:(t,r)=>z(S(e,((n,i)=>g(o=>K(o)&&n<=o&&i>=o))(t,r))),lt:t=>z(S(e,(r=>g(n=>K(n)&&n<r))(t))),gt:t=>z(S(e,(r=>g(n=>K(n)&&n>r))(t))),lte:t=>z(S(e,(r=>g(n=>K(n)&&n<=r))(t))),gte:t=>z(S(e,(r=>g(n=>K(n)&&n>=r))(t))),int:()=>z(S(e,g(t=>K(t)&&Number.isInteger(t)))),finite:()=>z(S(e,g(t=>K(t)&&Number.isFinite(t)))),positive:()=>z(S(e,g(t=>K(t)&&t>0))),negative:()=>z(S(e,g(t=>K(t)&&t<0)))}),Dd=z(g(K)),ge=e=>Object.assign(U(e),{between:(t,r)=>ge(S(e,((n,i)=>g(o=>me(o)&&n<=o&&i>=o))(t,r))),lt:t=>ge(S(e,(r=>g(n=>me(n)&&n<r))(t))),gt:t=>ge(S(e,(r=>g(n=>me(n)&&n>r))(t))),lte:t=>ge(S(e,(r=>g(n=>me(n)&&n<=r))(t))),gte:t=>ge(S(e,(r=>g(n=>me(n)&&n>=r))(t))),positive:()=>ge(S(e,g(t=>me(t)&&t>0))),negative:()=>ge(S(e,g(t=>me(t)&&t<0)))}),_d=ge(g(me)),Fd=U(g(function(e){return typeof e=="boolean"})),Id=U(g(function(e){return typeof e=="symbol"})),Ld=U(g(function(e){return e==null})),$d=U(g(function(e){return e!=null}));var Vr=class extends Error{constructor(t){let r;try{r=JSON.stringify(t)}catch{r=t}super(`Pattern matching error: no pattern matches value ${r}`),this.input=void 0,this.input=t}},Br={matched:!1,value:void 0};function Ie(e){return new Ur(e,Br)}var Ur=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=>H(u,this.input,a))||i&&!i(this.input)?Br:{matched:!0,value:r(o?Mt in s?s[Mt]: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)}:Br)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new Vr(this.input)}run(){return this.exhaustive()}returnType(){return this}};var pi=require("node:util");var nl={warn:ne("prisma:warn")},il={warn:()=>!process.env.PRISMA_DISABLE_WARNINGS};function Nt(e,...t){il.warn()&&console.warn(`${nl.warn} ${e}`,...t)}var ol=(0,pi.promisify)(ci.default.exec),L=Ft("prisma:get-platform"),sl=["1.0.x","1.1.x","3.0.x"];async function di(){let e=qt.default.platform(),t=process.arch;if(e==="freebsd"){let s=await Vt("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 ll(),n=await yl(),i=cl({arch:t,archFromUname:n,familyDistro:r.familyDistro}),{libssl:o}=await pl(i);return{platform:"linux",libssl:o,arch:t,archFromUname:n,...r}}function al(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=Ie({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 L(`Found distro info:
|
|
@@ -29,7 +29,7 @@ Note that ${s.bold("include")} statements only accept relation fields.`,a})}func
|
|
|
29
29
|
`)}};function Ke(e){return new xn(bo(e))}function bo(e){let t=new Qe;for(let[r,n]of Object.entries(e)){let i=new ar(r,xo(n));t.addField(i)}return t}function xo(e){if(typeof e=="string")return new k(JSON.stringify(e));if(typeof e=="number"||typeof e=="boolean")return new k(String(e));if(typeof e=="bigint")return new k(`${e}n`);if(e===null)return new k("null");if(e===void 0)return new k("undefined");if(qe(e))return new k(`new Prisma.Decimal("${e.toFixed()}")`);if(e instanceof Uint8Array)return Buffer.isBuffer(e)?new k(`Buffer.alloc(${e.byteLength})`):new k(`new Uint8Array(${e.byteLength})`);if(e instanceof Date){let t=Zt(e)?e.toISOString():"Invalid Date";return new k(`new Date("${t}")`)}return e instanceof ho.ObjectEnumValue?new k(`Prisma.${e._getName()}`):Je(e)?new k(`prisma.${ce(e.modelName)}.$fields.${e.name}`):Array.isArray(e)?cc(e):typeof e=="object"?bo(e):new k(Object.prototype.toString.call(e))}function cc(e){let t=new We;for(let r of e)t.addItem(xo(r));return t}function lr(e,t){let r=t==="pretty"?lo:or,n=e.renderAllMessages(r),i=new Be(0,{colors:r}).write(e).toString();return{message:n,args:i}}function ur({args:e,errors:t,errorFormat:r,callsite:n,originalMethod:i,clientVersion:o,globalOmit:s}){let a=Ke(e);for(let p of t)rr(p,a,s);let{message:l,args:u}=lr(a,r),c=tr({message:l,callsite:n,originalMethod:i,showColors:r==="pretty",callArguments:u});throw new wo.PrismaClientValidationError(c,{clientVersion:o})}function Z(e){return e.replace(/^./,t=>t.toLowerCase())}function vo(e,t,r){let n=Z(r);return!t.result||!(t.result.$allModels||t.result[n])?e:pc({...e,...Eo(t.name,e,t.result.$allModels),...Eo(t.name,e,t.result[n])})}function pc(e){let t=new J,r=(n,i)=>t.getOrCreate(n,()=>i.has(n)?[n]:(i.add(n),e[n]?e[n].needs.flatMap(o=>r(o,i)):[n]));return Ht(e,n=>({...n,needs:r(n.name,new Set)}))}function Eo(e,t,r){return r?Ht(r,({needs:n,compute:i},o)=>({name:o,needs:n?Object.keys(n).filter(s=>n[s]):[],compute:dc(t,o,i)})):{}}function dc(e,t,r){let n=e?.[t]?.compute;return n?i=>r({...i,[t]:n(i)}):r}function Po(e,t){if(!t)return e;let r={...e};for(let n of Object.values(t))if(e[n.name])for(let i of n.needs)r[i]=!0;return r}function To(e,t){if(!t)return e;let r={...e};for(let n of Object.values(t))if(!e[n.name])for(let i of n.needs)delete r[i];return r}var cr=class{constructor(t,r){this.extension=t;this.previous=r}computedFieldsCache=new J;modelExtensionsCache=new J;queryCallbacksCache=new J;clientExtensions=nt(()=>this.extension.client?{...this.previous?.getAllClientExtensions(),...this.extension.client}:this.previous?.getAllClientExtensions());batchCallbacks=nt(()=>{let t=this.previous?.getAllBatchQueryCallbacks()??[],r=this.extension.query?.$__internalBatch;return r?t.concat(r):t});getAllComputedFields(t){return this.computedFieldsCache.getOrCreate(t,()=>vo(this.previous?.getAllComputedFields(t),this.extension,t))}getAllClientExtensions(){return this.clientExtensions.get()}getAllModelExtensions(t){return this.modelExtensionsCache.getOrCreate(t,()=>{let r=Z(t);return!this.extension.model||!(this.extension.model[r]||this.extension.model.$allModels)?this.previous?.getAllModelExtensions(t):{...this.previous?.getAllModelExtensions(t),...this.extension.model.$allModels,...this.extension.model[r]}})}getAllQueryCallbacks(t,r){return this.queryCallbacksCache.getOrCreate(`${t}:${r}`,()=>{let n=this.previous?.getAllQueryCallbacks(t,r)??[],i=[],o=this.extension.query;return!o||!(o[t]||o.$allModels||o[r]||o.$allOperations)?n:(o[t]!==void 0&&(o[t][r]!==void 0&&i.push(o[t][r]),o[t].$allOperations!==void 0&&i.push(o[t].$allOperations)),t!=="$none"&&o.$allModels!==void 0&&(o.$allModels[r]!==void 0&&i.push(o.$allModels[r]),o.$allModels.$allOperations!==void 0&&i.push(o.$allModels.$allOperations)),o[r]!==void 0&&i.push(o[r]),o.$allOperations!==void 0&&i.push(o.$allOperations),n.concat(i))})}getAllBatchQueryCallbacks(){return this.batchCallbacks.get()}},ze=class e{constructor(t){this.head=t}static empty(){return new e}static single(t){return new e(new cr(t))}isEmpty(){return this.head===void 0}append(t){return new e(new cr(t,this.head))}getAllComputedFields(t){return this.head?.getAllComputedFields(t)}getAllClientExtensions(){return this.head?.getAllClientExtensions()}getAllModelExtensions(t){return this.head?.getAllModelExtensions(t)}getAllQueryCallbacks(t,r){return this.head?.getAllQueryCallbacks(t,r)??[]}getAllBatchQueryCallbacks(){return this.head?.getAllBatchQueryCallbacks()??[]}};var pr=class{constructor(t){this.name=t}};function So(e){return e instanceof pr}function Co(e){return new pr(e)}var Ao=Symbol(),vt=class{constructor(t){if(t!==Ao)throw new Error("Skip instance can not be constructed directly")}ifUndefined(t){return t===void 0?dr:t}},dr=new vt(Ao);function X(e){return e instanceof vt}var mc={findUnique:"findUnique",findUniqueOrThrow:"findUniqueOrThrow",findFirst:"findFirst",findFirstOrThrow:"findFirstOrThrow",findMany:"findMany",count:"aggregate",create:"createOne",createMany:"createMany",createManyAndReturn:"createManyAndReturn",update:"updateOne",updateMany:"updateMany",updateManyAndReturn:"updateManyAndReturn",upsert:"upsertOne",delete:"deleteOne",deleteMany:"deleteMany",executeRaw:"executeRaw",queryRaw:"queryRaw",aggregate:"aggregate",groupBy:"groupBy",runCommandRaw:"runCommandRaw",findRaw:"findRaw",aggregateRaw:"aggregateRaw"},Ro="explicitly `undefined` values are not allowed";function mr({modelName:e,action:t,args:r,runtimeDataModel:n,extensions:i=ze.empty(),callsite:o,clientMethod:s,errorFormat:a,clientVersion:l,previewFeatures:u,globalOmit:c}){let p=new wn({runtimeDataModel:n,modelName:e,action:t,rootArgs:r,callsite:o,extensions:i,selectionPath:[],argumentPath:[],originalMethod:s,errorFormat:a,clientVersion:l,previewFeatures:u,globalOmit:c});return{modelName:e,action:mc[t],query:Pt(r,p)}}function Pt({select:e,include:t,...r}={},n){let i=r.omit;return delete r.omit,{arguments:ko(r,n),selection:fc(e,t,i,n)}}function fc(e,t,r,n){return e?(t?n.throwValidationError({kind:"MutuallyExclusiveFields",firstField:"include",secondField:"select",selectionPath:n.getSelectionPath()}):r&&n.throwValidationError({kind:"MutuallyExclusiveFields",firstField:"omit",secondField:"select",selectionPath:n.getSelectionPath()}),bc(e,n)):gc(n,t,r)}function gc(e,t,r){let n={};return e.modelOrType&&!e.isRawAction()&&(n.$composites=!0,n.$scalars=!0),t&&yc(n,t,e),hc(n,r,e),n}function yc(e,t,r){for(let[n,i]of Object.entries(t)){if(X(i))continue;let o=r.nestSelection(n);if(En(i,o),i===!1||i===void 0){e[n]=!1;continue}let s=r.findField(n);if(s&&s.kind!=="object"&&r.throwValidationError({kind:"IncludeOnScalar",selectionPath:r.getSelectionPath().concat(n),outputType:r.getOutputTypeDescription()}),s){e[n]=Pt(i===!0?{}:i,o);continue}if(i===!0){e[n]=!0;continue}e[n]=Pt(i,o)}}function hc(e,t,r){let n=r.getComputedFields(),i={...r.getGlobalOmit(),...t},o=To(i,n);for(let[s,a]of Object.entries(o)){if(X(a))continue;En(a,r.nestSelection(s));let l=r.findField(s);n?.[s]&&!l||(e[s]=!a)}}function bc(e,t){let r={},n=t.getComputedFields(),i=Po(e,n);for(let[o,s]of Object.entries(i)){if(X(s))continue;let a=t.nestSelection(o);En(s,a);let l=t.findField(o);if(!(n?.[o]&&!l)){if(s===!1||s===void 0||X(s)){r[o]=!1;continue}if(s===!0){l?.kind==="object"?r[o]=Pt({},a):r[o]=!0;continue}r[o]=Pt(s,a)}}return r}function Oo(e,t){if(e===null)return null;if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return e;if(typeof e=="bigint")return{$type:"BigInt",value:String(e)};if(je(e)){if(Zt(e))return{$type:"DateTime",value:e.toISOString()};t.throwValidationError({kind:"InvalidArgumentValue",selectionPath:t.getSelectionPath(),argumentPath:t.getArgumentPath(),argument:{name:t.getArgumentName(),typeNames:["Date"]},underlyingError:"Provided Date object is invalid"})}if(So(e))return{$type:"Param",value:e.name};if(Je(e))return{$type:"FieldRef",value:{_ref:e.name,_container:e.modelName}};if(Array.isArray(e))return xc(e,t);if(ArrayBuffer.isView(e)){let{buffer:r,byteOffset:n,byteLength:i}=e;return{$type:"Bytes",value:Buffer.from(r,n,i).toString("base64")}}if(wc(e))return e.values;if(qe(e))return{$type:"Decimal",value:e.toFixed()};if(e instanceof xe.ObjectEnumValue){if(!(0,xe.isDbNull)(e)&&!(0,xe.isJsonNull)(e)&&!(0,xe.isAnyNull)(e))throw new Error("Invalid ObjectEnumValue");return{$type:"Enum",value:e._getName()}}if(Ec(e))return e.toJSON();if(typeof e=="object")return ko(e,t);t.throwValidationError({kind:"InvalidArgumentValue",selectionPath:t.getSelectionPath(),argumentPath:t.getArgumentPath(),argument:{name:t.getArgumentName(),typeNames:[]},underlyingError:`We could not serialize ${Object.prototype.toString.call(e)} value. Serialize the object to JSON or implement a ".toJSON()" method on it`})}function ko(e,t){if(e.$type)return{$type:"Raw",value:e};let r={};for(let n in e){let i=e[n],o=t.nestArgument(n);X(i)||(i!==void 0?r[n]=Oo(i,o):t.isPreviewFeatureOn("strictUndefinedChecks")&&t.throwValidationError({kind:"InvalidArgumentValue",argumentPath:o.getArgumentPath(),selectionPath:t.getSelectionPath(),argument:{name:t.getArgumentName(),typeNames:[]},underlyingError:Ro}))}return r}function xc(e,t){let r=[];for(let n=0;n<e.length;n++){let i=t.nestArgument(String(n)),o=e[n];if(o===void 0||X(o)){let s=o===void 0?"undefined":"Prisma.skip";t.throwValidationError({kind:"InvalidArgumentValue",selectionPath:i.getSelectionPath(),argumentPath:i.getArgumentPath(),argument:{name:`${t.getArgumentName()}[${n}]`,typeNames:[]},underlyingError:`Can not use \`${s}\` value within array. Use \`null\` or filter out \`${s}\` values`})}r.push(Oo(o,i))}return r}function wc(e){return typeof e=="object"&&e!==null&&e.__prismaRawParameters__===!0}function Ec(e){return typeof e=="object"&&e!==null&&typeof e.toJSON=="function"}function En(e,t){e===void 0&&t.isPreviewFeatureOn("strictUndefinedChecks")&&t.throwValidationError({kind:"InvalidSelectionValue",selectionPath:t.getSelectionPath(),underlyingError:Ro})}var wn=class e{constructor(t){this.params=t;this.params.modelName&&(this.modelOrType=this.params.runtimeDataModel.models[this.params.modelName]??this.params.runtimeDataModel.types[this.params.modelName])}modelOrType;throwValidationError(t){ur({errors:[t],originalMethod:this.params.originalMethod,args:this.params.rootArgs??{},callsite:this.params.callsite,errorFormat:this.params.errorFormat,clientVersion:this.params.clientVersion,globalOmit:this.params.globalOmit})}getSelectionPath(){return this.params.selectionPath}getArgumentPath(){return this.params.argumentPath}getArgumentName(){return this.params.argumentPath[this.params.argumentPath.length-1]}getOutputTypeDescription(){if(!(!this.params.modelName||!this.modelOrType))return{name:this.params.modelName,fields:this.modelOrType.fields.map(t=>({name:t.name,typeName:"boolean",isRelation:t.kind==="object"}))}}isRawAction(){return["executeRaw","queryRaw","runCommandRaw","findRaw","aggregateRaw"].includes(this.params.action)}isPreviewFeatureOn(t){return this.params.previewFeatures.includes(t)}getComputedFields(){if(this.params.modelName)return this.params.extensions.getAllComputedFields(this.params.modelName)}findField(t){return this.modelOrType?.fields.find(r=>r.name===t)}nestSelection(t){let r=this.findField(t),n=r?.kind==="object"?r.type:void 0;return new e({...this.params,modelName:n,selectionPath:this.params.selectionPath.concat(t)})}getGlobalOmit(){return this.params.modelName&&this.shouldApplyGlobalOmit()?this.params.globalOmit?.[ce(this.params.modelName)]??{}:{}}shouldApplyGlobalOmit(){switch(this.params.action){case"findFirst":case"findFirstOrThrow":case"findUniqueOrThrow":case"findMany":case"upsert":case"findUnique":case"createManyAndReturn":case"create":case"update":case"updateManyAndReturn":case"delete":return!0;case"executeRaw":case"aggregateRaw":case"runCommandRaw":case"findRaw":case"createMany":case"deleteMany":case"groupBy":case"updateMany":case"count":case"aggregate":case"queryRaw":return!1;default:Re(this.params.action,"Unknown action")}}nestArgument(t){return new e({...this.params,argumentPath:this.params.argumentPath.concat(t)})}};function Do(e,t){let r=nt(()=>vc(t));Object.defineProperty(e,"dmmf",{get:()=>r.get()})}function vc(e){return{datamodel:{models:vn(e.models),enums:vn(e.enums),types:vn(e.types)}}}function vn(e){return Object.entries(e).map(([t,r])=>({name:t,...r}))}var Pn=new WeakMap,fr="$$PrismaTypedSql",Tt=class{constructor(t,r){Pn.set(this,{sql:t,values:r}),Object.defineProperty(this,fr,{value:fr})}get sql(){return Pn.get(this).sql}get values(){return Pn.get(this).values}};function _o(e){return(...t)=>new Tt(e,t)}function gr(e){return e!=null&&e[fr]===fr}var ya=require("@prisma/client-runtime-utils");var ha=require("node:async_hooks"),ba=require("node:events"),xa=x(require("node:fs")),Dr=x(require("node:path"));function St(e){return{getKeys(){return Object.keys(e)},getPropertyValue(t){return e[t]}}}function $(e,t){return{getKeys(){return[e]},getPropertyValue(){return t()}}}function Oe(e){let t=new J;return{getKeys(){return e.getKeys()},getPropertyValue(r){return t.getOrCreate(r,()=>e.getPropertyValue(r))},getPropertyDescriptor(r){return e.getPropertyDescriptor?.(r)}}}var yr={enumerable:!0,configurable:!0,writable:!0};function hr(e){let t=new Set(e);return{getPrototypeOf:()=>Object.prototype,getOwnPropertyDescriptor:()=>yr,has:(r,n)=>t.has(n),set:(r,n,i)=>t.add(n)&&Reflect.set(r,n,i),ownKeys:()=>[...t]}}var Fo=Symbol.for("nodejs.util.inspect.custom");function G(e,t){let r=Pc(t),n=new Set,i=new Proxy(e,{get(o,s){if(n.has(s))return o[s];let a=r.get(s);return a?a.getPropertyValue(s):o[s]},has(o,s){if(n.has(s))return!0;let a=r.get(s);return a?a.has?.(s)??!0:Reflect.has(o,s)},ownKeys(o){let s=Io(Reflect.ownKeys(o),r),a=Io(Array.from(r.keys()),r);return[...new Set([...s,...a,...n])]},set(o,s,a){return r.get(s)?.getPropertyDescriptor?.(s)?.writable===!1?!1:(n.add(s),Reflect.set(o,s,a))},getOwnPropertyDescriptor(o,s){let a=Reflect.getOwnPropertyDescriptor(o,s);if(a&&!a.configurable)return a;let l=r.get(s);return l?l.getPropertyDescriptor?{...yr,...l?.getPropertyDescriptor(s)}:yr:a},defineProperty(o,s,a){return n.add(s),Reflect.defineProperty(o,s,a)},getPrototypeOf:()=>Object.prototype});return i[Fo]=function(){let o={...this};return delete o[Fo],o},i}function Pc(e){let t=new Map;for(let r of e){let n=r.getKeys();for(let i of n)t.set(i,r)}return t}function Io(e,t){return e.filter(r=>t.get(r)?.has?.(r)??!0)}function He(e){return{getKeys(){return e},has(){return!1},getPropertyValue(){}}}function Lo(e){if(e===void 0)return"";let t=Ke(e);return new Be(0,{colors:or}).write(t).toString()}var Ct="<unknown>";function $o(e){var t=e.split(`
|
|
30
30
|
`);return t.reduce(function(r,n){var i=Cc(n)||Rc(n)||Dc(n)||Lc(n)||Fc(n);return i&&r.push(i),r},[])}var Tc=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack|rsc|<anonymous>|\/|[a-z]:\\|\\\\).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Sc=/\((\S*)(?::(\d+))(?::(\d+))\)/;function Cc(e){var t=Tc.exec(e);if(!t)return null;var r=t[2]&&t[2].indexOf("native")===0,n=t[2]&&t[2].indexOf("eval")===0,i=Sc.exec(t[2]);return n&&i!=null&&(t[2]=i[1],t[3]=i[2],t[4]=i[3]),{file:r?null:t[2],methodName:t[1]||Ct,arguments:r?[t[2]]:[],lineNumber:t[3]?+t[3]:null,column:t[4]?+t[4]:null}}var Ac=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|rsc|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;function Rc(e){var t=Ac.exec(e);return t?{file:t[2],methodName:t[1]||Ct,arguments:[],lineNumber:+t[3],column:t[4]?+t[4]:null}:null}var Oc=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|rsc|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,kc=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function Dc(e){var t=Oc.exec(e);if(!t)return null;var r=t[3]&&t[3].indexOf(" > eval")>-1,n=kc.exec(t[3]);return r&&n!=null&&(t[3]=n[1],t[4]=n[2],t[5]=null),{file:t[3],methodName:t[1]||Ct,arguments:t[2]?t[2].split(","):[],lineNumber:t[4]?+t[4]:null,column:t[5]?+t[5]:null}}var _c=/^\s*(?:([^@]*)(?:\((.*?)\))?@)?(\S.*?):(\d+)(?::(\d+))?\s*$/i;function Fc(e){var t=_c.exec(e);return t?{file:t[3],methodName:t[1]||Ct,arguments:[],lineNumber:+t[4],column:t[5]?+t[5]:null}:null}var Ic=/^\s*at (?:((?:\[object object\])?[^\\/]+(?: \[as \S+\])?) )?\(?(.*?):(\d+)(?::(\d+))?\)?\s*$/i;function Lc(e){var t=Ic.exec(e);return t?{file:t[2],methodName:t[1]||Ct,arguments:[],lineNumber:+t[3],column:t[4]?+t[4]:null}:null}var Tn=class{getLocation(){return null}},Sn=class{_error;constructor(){this._error=new Error}getLocation(){let t=this._error.stack;if(!t)return null;let n=$o(t).find(i=>{if(!i.file)return!1;let o=un(i.file);return o!=="<anonymous>"&&!o.includes("@prisma")&&!o.includes("/packages/client/src/runtime/")&&!o.endsWith("/runtime/binary.js")&&!o.endsWith("/runtime/library.js")&&!o.startsWith("internal/")&&!i.methodName.includes("new ")&&!i.methodName.includes("getCallSite")&&!i.methodName.includes("Proxy.")&&i.methodName.split(".").length<4});return!n||!n.file?null:{fileName:n.file,lineNumber:n.lineNumber,columnNumber:n.column}}};function we(e){return e==="minimal"?typeof $EnabledCallSite=="function"&&e!=="minimal"?new $EnabledCallSite:new Tn:new Sn}var Mo={_avg:!0,_count:!0,_sum:!0,_min:!0,_max:!0};function Ye(e={}){let t=Mc(e);return Object.entries(t).reduce((n,[i,o])=>(Mo[i]!==void 0?n.select[i]={select:o}:n[i]=o,n),{select:{}})}function Mc(e={}){return typeof e._count=="boolean"?{...e,_count:{_all:e._count}}:e}function br(e={}){return t=>(typeof e._count=="boolean"&&(t._count=t._count._all),t)}function No(e,t){let r=br(e);return t({action:"aggregate",unpacker:r,argsMapper:Ye})(e)}function Nc(e={}){let{select:t,...r}=e;return typeof t=="object"?Ye({...r,_count:t}):Ye({...r,_count:{_all:!0}})}function jc(e={}){return typeof e.select=="object"?t=>br(e)(t)._count:t=>br(e)(t)._count._all}function jo(e,t){return t({action:"count",unpacker:jc(e),argsMapper:Nc})(e)}function qc(e={}){let t=Ye(e);if(Array.isArray(t.by))for(let r of t.by)typeof r=="string"&&(t.select[r]=!0);else typeof t.by=="string"&&(t.select[t.by]=!0);return t}function Vc(e={}){return t=>(typeof e?._count=="boolean"&&t.forEach(r=>{r._count=r._count._all}),t)}function qo(e,t){return t({action:"groupBy",unpacker:Vc(e),argsMapper:qc})(e)}function Vo(e,t,r){if(t==="aggregate")return n=>No(n,r);if(t==="count")return n=>jo(n,r);if(t==="groupBy")return n=>qo(n,r)}function Bo(e,t){let r=t.fields.filter(i=>!i.relationName),n=zn(r,"name");return new Proxy({},{get(i,o){if(o in i||typeof o=="symbol")return i[o];let s=n[o];if(s)return new Et(e,o,s.type,s.isList,s.kind==="enum")},...hr(Object.keys(n))})}var Uo=e=>Array.isArray(e)?e:e.split("."),Cn=(e,t)=>Uo(t).reduce((r,n)=>r&&r[n],e),Wo=(e,t,r)=>Uo(t).reduceRight((n,i,o,s)=>Object.assign({},Cn(e,s.slice(0,o)),{[i]:n}),r);function Bc(e,t){return e===void 0||t===void 0?[]:[...t,"select",e]}function Uc(e,t,r){return t===void 0?e??{}:Wo(t,r,e||!0)}function An(e,t,r,n,i,o){let a=e._runtimeDataModel.models[t].fields.reduce((l,u)=>({...l,[u.name]:u}),{});return l=>{let u=we(e._errorFormat),c=Bc(n,i),p=Uc(l,o,c),m=r({dataPath:c,callsite:u})(p),f=Wc(e,t);return new Proxy(m,{get(b,v){if(!f.includes(v))return b[v];let le=[a[v].type,r,v],A=[c,p];return An(e,...le,...A)},...hr([...f,...Object.getOwnPropertyNames(m)])})}}function Wc(e,t){return e._runtimeDataModel.models[t].fields.filter(r=>r.kind==="object").map(r=>r.name)}var Qc=["findUnique","findUniqueOrThrow","findFirst","findFirstOrThrow","create","update","upsert","delete"],Gc=["aggregate","count","groupBy"];function Rn(e,t){let r=e._extensions.getAllModelExtensions(t)??{},n=[Jc(e,t),zc(e,t),St(r),$("name",()=>t),$("$name",()=>t),$("$parent",()=>e._appliedParent)];return G({},n)}function Jc(e,t){let r=Z(t),n=Object.keys(Ve).concat("count");return{getKeys(){return n},getPropertyValue(i){let o=i,s=a=>l=>{let u=we(e._errorFormat);return e._createPrismaPromise(c=>{let p={args:l,dataPath:[],action:o,model:t,clientMethod:`${r}.${i}`,jsModelName:r,transaction:c,callsite:u};return e._request({...p,...a})},{action:o,args:l,model:t})};return Qc.includes(o)?An(e,t,s):Kc(i)?Vo(e,i,s):s({})}}}function Kc(e){return Gc.includes(e)}function zc(e,t){return Oe($("fields",()=>{let r=e._runtimeDataModel.models[t];return Bo(t,r)}))}function Qo(e){return e.replace(/^./,t=>t.toUpperCase())}var On=Symbol();function At(e){let t=[Hc(e),Yc(e),$(On,()=>e),$("$parent",()=>e._appliedParent)],r=e._extensions.getAllClientExtensions();return r&&t.push(St(r)),G(e,t)}function Hc(e){let t=Object.getPrototypeOf(e._originalClient),r=[...new Set(Object.getOwnPropertyNames(t))];return{getKeys(){return r},getPropertyValue(n){return e[n]}}}function Yc(e){let t=Object.keys(e._runtimeDataModel.models),r=t.map(Z),n=[...new Set(t.concat(r))];return Oe({getKeys(){return n},getPropertyValue(i){let o=Qo(i);if(e._runtimeDataModel.models[o]!==void 0)return Rn(e,o);if(e._runtimeDataModel.models[i]!==void 0)return Rn(e,i)},getPropertyDescriptor(i){if(!r.includes(i))return{enumerable:!1}}})}function Go(e){return e[On]?e[On]:e}function Jo(e){if(typeof e=="function")return e(this);let t=Object.create(this._originalClient,{_extensions:{value:this._extensions.append(e)},_appliedParent:{value:this,configurable:!0},$on:{value:void 0}});return At(t)}function Ko({result:e,modelName:t,select:r,omit:n,extensions:i}){let o=i.getAllComputedFields(t);if(!o)return e;let s=[],a=[];for(let l of Object.values(o)){if(n){if(n[l.name])continue;let u=l.needs.filter(c=>n[c]);u.length>0&&a.push(He(u))}else if(r){if(!r[l.name])continue;let u=l.needs.filter(c=>!r[c]);u.length>0&&a.push(He(u))}Zc(e,l.needs)&&s.push(Xc(l,G(e,s)))}return s.length>0||a.length>0?G(e,[...s,...a]):e}function Zc(e,t){return t.every(r=>fn(e,r))}function Xc(e,t){return Oe($(e.name,()=>e.compute(t)))}function xr({visitor:e,result:t,args:r,runtimeDataModel:n,modelName:i}){if(Array.isArray(t)){for(let s=0;s<t.length;s++)t[s]=xr({result:t[s],args:r,modelName:i,runtimeDataModel:n,visitor:e});return t}let o=e(t,i,r)??t;return r.include&&zo({includeOrSelect:r.include,result:o,parentModelName:i,runtimeDataModel:n,visitor:e}),r.select&&zo({includeOrSelect:r.select,result:o,parentModelName:i,runtimeDataModel:n,visitor:e}),o}function zo({includeOrSelect:e,result:t,parentModelName:r,runtimeDataModel:n,visitor:i}){for(let[o,s]of Object.entries(e)){if(!s||t[o]==null||X(s))continue;let l=n.models[r].fields.find(c=>c.name===o);if(!l||l.kind!=="object"||!l.relationName)continue;let u=typeof s=="object"?s:{};t[o]=xr({visitor:i,result:t[o],args:u,modelName:l.type,runtimeDataModel:n})}}function Ho({result:e,modelName:t,args:r,extensions:n,runtimeDataModel:i,globalOmit:o}){return n.isEmpty()||e==null||typeof e!="object"||!i.models[t]?e:xr({result:e,args:r??{},modelName:t,runtimeDataModel:i,visitor:(a,l,u)=>{let c=Z(l);return Ko({result:a,modelName:c,select:u.select,omit:u.select?void 0:{...o?.[c],...u.omit},extensions:n})}})}var ke=require("@prisma/client-runtime-utils");var ep=["$connect","$disconnect","$on","$transaction","$extends"],Yo=ep;function Zo(e){if(e instanceof ke.Sql)return tp(e);if(gr(e))return rp(e);if(Array.isArray(e)){let r=[e[0]];for(let n=1;n<e.length;n++)r[n]=Rt(e[n]);return r}let t={};for(let r in e)t[r]=Rt(e[r]);return t}function tp(e){return new ke.Sql(e.strings,e.values)}function rp(e){return new Tt(e.sql,e.values)}function Rt(e){if(typeof e!="object"||e==null||e instanceof ke.ObjectEnumValue||Je(e))return e;if(qe(e))return new ke.Decimal(e.toFixed());if(je(e))return new Date(+e);if(ArrayBuffer.isView(e))return e.slice(0);if(Array.isArray(e)){let t=e.length,r;for(r=Array(t);t--;)r[t]=Rt(e[t]);return r}if(typeof e=="object"){let t={};for(let r in e)r==="__proto__"?Object.defineProperty(t,r,{value:Rt(e[r]),configurable:!0,enumerable:!0,writable:!0}):t[r]=Rt(e[r]);return t}Re(e,"Unknown value")}function es(e,t,r,n=0){return e._createPrismaPromise(i=>{let o=t.customDataProxyFetch;return"transaction"in t&&i!==void 0&&(t.transaction?.kind==="batch"&&t.transaction.lock.then(),t.transaction=i),n===r.length?e._executeRequest(t):r[n]({model:t.model,operation:t.model?t.action:t.clientMethod,args:Zo(t.args??{}),__internalParams:t,query:(s,a=t)=>{let l=a.customDataProxyFetch;return a.customDataProxyFetch=is(o,l),a.args=s,es(e,a,r,n+1)}})})}function ts(e,t){let{jsModelName:r,action:n,clientMethod:i}=t,o=r?n:i;if(e._extensions.isEmpty())return e._executeRequest(t);let s=e._extensions.getAllQueryCallbacks(r??"$none",o);return es(e,t,s)}function rs(e){return t=>{let r={requests:t},n=t[0].extensions.getAllBatchQueryCallbacks();return n.length?ns(r,n,0,e):e(r)}}function ns(e,t,r,n){if(r===t.length)return n(e);let i=e.customDataProxyFetch,o=e.requests[0].transaction;return t[r]({args:{queries:e.requests.map(s=>({model:s.modelName,operation:s.action,args:s.args})),transaction:o?{isolationLevel:o.kind==="batch"?o.isolationLevel:void 0}:void 0},__internalParams:e,query(s,a=e){let l=a.customDataProxyFetch;return a.customDataProxyFetch=is(i,l),ns(a,t,r+1,n)}})}var Xo=e=>e;function is(e=Xo,t=Xo){return r=>e(t(r))}var as=require("@prisma/client-runtime-utils");var os=C("prisma:client"),ss={Vercel:"vercel","Netlify CI":"netlify"};function ls({postinstall:e,ciName:t,clientVersion:r,generator:n}){if(os("checkPlatformCaching:postinstall",e),os("checkPlatformCaching:ciName",t),e===!0&&!(n?.output&&typeof(n.output.fromEnvVar??n.output.value)=="string")&&t&&t in ss){let i=`Prisma has detected that this project was built on ${t}, which caches dependencies. This leads to an outdated Prisma Client because Prisma's auto-generation isn't triggered. To fix this, make sure to run the \`prisma generate\` command during the build process.
|
|
31
31
|
|
|
32
|
-
Learn how: https://pris.ly/d/${ss[t]}-build`;throw console.error(i),new as.PrismaClientInitializationError(i,r)}}function us(e){return e?e.datasources?e.datasources:{}:{}}var Ms=require("@prisma/client-runtime-utils");var ps=require("@prisma/client-runtime-utils");var np=require("@prisma/client-runtime-utils");function cs(e,t){throw new Error(t)}function ip(e){return e!==null&&typeof e=="object"&&typeof e.$type=="string"}function op(e,t){let r={};for(let n of Object.keys(e))r[n]=t(e[n],n);return r}function Ze(e){return e===null?e:Array.isArray(e)?e.map(Ze):typeof e=="object"?ip(e)?sp(e):e.constructor!==null&&e.constructor.name!=="Object"?e:op(e,Ze):e}function sp({$type:e,value: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"DateTime":return new Date(t);case"Decimal":return new ps.Decimal(t);case"Json":return JSON.parse(t);default:cs(t,"Unknown tagged value")}}function kn(e){return e.name==="DriverAdapterError"&&typeof e.cause=="object"}function wr(e){return{ok:!0,value:e,map(t){return wr(t(e))},flatMap(t){return t(e)}}}function De(e){return{ok:!1,error:e,map(){return De(e)},flatMap(){return De(e)}}}var ds=C("driver-adapter-utils"),Dn=class{registeredErrors=[];consumeError(t){return this.registeredErrors[t]}registerNewError(t){let r=0;for(;this.registeredErrors[r]!==void 0;)r++;return this.registeredErrors[r]={error:t},r}};var Er=(e,t=new Dn)=>{let r={adapterName:e.adapterName,errorRegistry:t,queryRaw:ae(t,e.queryRaw.bind(e)),executeRaw:ae(t,e.executeRaw.bind(e)),executeScript:ae(t,e.executeScript.bind(e)),dispose:ae(t,e.dispose.bind(e)),provider:e.provider,startTransaction:async(...n)=>(await ae(t,e.startTransaction.bind(e))(...n)).map(o=>ap(t,o))};return e.getConnectionInfo&&(r.getConnectionInfo=lp(t,e.getConnectionInfo.bind(e))),r},ap=(e,t)=>({adapterName:t.adapterName,provider:t.provider,options:t.options,queryRaw:ae(e,t.queryRaw.bind(t)),executeRaw:ae(e,t.executeRaw.bind(t)),commit:ae(e,t.commit.bind(t)),rollback:ae(e,t.rollback.bind(t))});function ae(e,t){return async(...r)=>{try{return wr(await t(...r))}catch(n){if(ds("[error@wrapAsync]",n),kn(n))return De(n.cause);let i=e.registerNewError(n);return De({kind:"GenericJs",id:i})}}}function lp(e,t){return(...r)=>{try{return wr(t(...r))}catch(n){if(ds("[error@wrapSync]",n),kn(n))return De(n.cause);let i=e.registerNewError(n);return De({kind:"GenericJs",id:i})}}}var ms="6.19.0-integration-next.
|
|
32
|
+
Learn how: https://pris.ly/d/${ss[t]}-build`;throw console.error(i),new as.PrismaClientInitializationError(i,r)}}function us(e){return e?e.datasources?e.datasources:{}:{}}var Ms=require("@prisma/client-runtime-utils");var ps=require("@prisma/client-runtime-utils");var np=require("@prisma/client-runtime-utils");function cs(e,t){throw new Error(t)}function ip(e){return e!==null&&typeof e=="object"&&typeof e.$type=="string"}function op(e,t){let r={};for(let n of Object.keys(e))r[n]=t(e[n],n);return r}function Ze(e){return e===null?e:Array.isArray(e)?e.map(Ze):typeof e=="object"?ip(e)?sp(e):e.constructor!==null&&e.constructor.name!=="Object"?e:op(e,Ze):e}function sp({$type:e,value: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"DateTime":return new Date(t);case"Decimal":return new ps.Decimal(t);case"Json":return JSON.parse(t);default:cs(t,"Unknown tagged value")}}function kn(e){return e.name==="DriverAdapterError"&&typeof e.cause=="object"}function wr(e){return{ok:!0,value:e,map(t){return wr(t(e))},flatMap(t){return t(e)}}}function De(e){return{ok:!1,error:e,map(){return De(e)},flatMap(){return De(e)}}}var ds=C("driver-adapter-utils"),Dn=class{registeredErrors=[];consumeError(t){return this.registeredErrors[t]}registerNewError(t){let r=0;for(;this.registeredErrors[r]!==void 0;)r++;return this.registeredErrors[r]={error:t},r}};var Er=(e,t=new Dn)=>{let r={adapterName:e.adapterName,errorRegistry:t,queryRaw:ae(t,e.queryRaw.bind(e)),executeRaw:ae(t,e.executeRaw.bind(e)),executeScript:ae(t,e.executeScript.bind(e)),dispose:ae(t,e.dispose.bind(e)),provider:e.provider,startTransaction:async(...n)=>(await ae(t,e.startTransaction.bind(e))(...n)).map(o=>ap(t,o))};return e.getConnectionInfo&&(r.getConnectionInfo=lp(t,e.getConnectionInfo.bind(e))),r},ap=(e,t)=>({adapterName:t.adapterName,provider:t.provider,options:t.options,queryRaw:ae(e,t.queryRaw.bind(t)),executeRaw:ae(e,t.executeRaw.bind(t)),commit:ae(e,t.commit.bind(t)),rollback:ae(e,t.rollback.bind(t))});function ae(e,t){return async(...r)=>{try{return wr(await t(...r))}catch(n){if(ds("[error@wrapAsync]",n),kn(n))return De(n.cause);let i=e.registerNewError(n);return De({kind:"GenericJs",id:i})}}}function lp(e,t){return(...r)=>{try{return wr(t(...r))}catch(n){if(ds("[error@wrapSync]",n),kn(n))return De(n.cause);let i=e.registerNewError(n);return De({kind:"GenericJs",id:i})}}}var ms="6.19.0-integration-next.13";function fs(e,t){return{batch:e,transaction:t?.kind==="batch"?{isolationLevel:t.options.isolationLevel}:void 0}}function gs(e){return e?e.replace(/".*"/g,'"X"').replace(/[\s:\[]([+-]?([0-9]*[.])?[0-9]+)/g,t=>`${t[0]}5`):""}function ys(e){return e.split(`
|
|
33
33
|
`).map(t=>t.replace(/^\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z)\s*/,"").replace(/\+\d+\s*ms$/,"")).join(`
|
|
34
34
|
`)}var hs=x(Ji());function bs({title:e,user:t="prisma",repo:r="prisma",template:n="bug_report.yml",body:i}){return(0,hs.default)({user:t,repo:r,template:n,title:e,body:i})}function xs({version:e,binaryTarget:t,title:r,description:n,engineVersion:i,database:o,query:s}){let a=ii(6e3-(s?.length??0)),l=ys(Me(a)),u=n?`# Description
|
|
35
35
|
\`\`\`
|