UNPKG

@prisma/client

Version:

Prisma Client is an auto-generated, type-safe and modern JavaScript/TypeScript ORM for Node.js that's tailored to your data. Supports PostgreSQL, CockroachDB, MySQL, MariaDB, SQL Server, SQLite & MongoDB databases.

4 lines • 195 kB
var xl=Object.create;var mr=Object.defineProperty;var El=Object.getOwnPropertyDescriptor;var Pl=Object.getOwnPropertyNames;var Tl=Object.getPrototypeOf,Al=Object.prototype.hasOwnProperty;var ge=(e,t)=>()=>(e&&(t=e(e=0)),t);var ie=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Rt=(e,t)=>{for(var r in t)mr(e,r,{get:t[r],enumerable:!0})},zi=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Pl(t))!Al.call(e,i)&&i!==r&&mr(e,i,{get:()=>t[i],enumerable:!(n=El(t,i))||n.enumerable});return e};var Ve=(e,t,r)=>(r=e!=null?xl(Tl(e)):{},zi(t||!e||!e.__esModule?mr(r,"default",{value:e,enumerable:!0}):r,e)),Sl=e=>zi(mr({},"__esModule",{value:!0}),e);function An(e,t){if(t=t.toLowerCase(),t==="utf8"||t==="utf-8")return new h(Il.encode(e));if(t==="base64"||t==="base64url")return e=e.replace(/-/g,"+").replace(/_/g,"/"),e=e.replace(/[^A-Za-z0-9+/]/g,""),new h([...atob(e)].map(r=>r.charCodeAt(0)));if(t==="binary"||t==="ascii"||t==="latin1"||t==="latin-1")return new h([...e].map(r=>r.charCodeAt(0)));if(t==="ucs2"||t==="ucs-2"||t==="utf16le"||t==="utf-16le"){let r=new h(e.length*2),n=new DataView(r.buffer);for(let i=0;i<e.length;i++)n.setUint16(i*2,e.charCodeAt(i),!0);return r}if(t==="hex"){let r=new h(e.length/2);for(let n=0,i=0;i<e.length;i+=2,n++)r[n]=parseInt(e.slice(i,i+2),16);return r}Zi(`encoding "${t}"`)}function vl(e){let r=Object.getOwnPropertyNames(DataView.prototype).filter(a=>a.startsWith("get")||a.startsWith("set")),n=r.map(a=>a.replace("get","read").replace("set","write")),i=(a,m)=>function(f=0){return J(f,"offset"),ne(f,"offset"),G(f,"offset",this.length-1),new DataView(this.buffer)[r[a]](f,m)},o=(a,m)=>function(f,P=0){let A=r[a].match(/set(\w+\d+)/)[1].toLowerCase(),v=Cl[A];return J(P,"offset"),ne(P,"offset"),G(P,"offset",this.length-1),Rl(f,"value",v[0],v[1]),new DataView(this.buffer)[r[a]](P,f,m),P+parseInt(r[a].match(/\d+/)[0])/8},s=a=>{a.forEach(m=>{m.includes("Uint")&&(e[m.replace("Uint","UInt")]=e[m]),m.includes("Float64")&&(e[m.replace("Float64","Double")]=e[m]),m.includes("Float32")&&(e[m.replace("Float32","Float")]=e[m])})};n.forEach((a,m)=>{a.startsWith("read")&&(e[a]=i(m,!1),e[a+"LE"]=i(m,!0),e[a+"BE"]=i(m,!1)),a.startsWith("write")&&(e[a]=o(m,!1),e[a+"LE"]=o(m,!0),e[a+"BE"]=o(m,!1)),s([a,a+"LE",a+"BE"])})}function Zi(e){throw new Error(`Buffer polyfill does not implement "${e}"`)}function fr(e,t){if(!(e instanceof Uint8Array))throw new TypeError(`The "${t}" argument must be an instance of Buffer or Uint8Array`)}function G(e,t,r=Nl+1){if(e<0||e>r){let n=new RangeError(`The value of "${t}" is out of range. It must be >= 0 && <= ${r}. Received ${e}`);throw n.code="ERR_OUT_OF_RANGE",n}}function J(e,t){if(typeof e!="number"){let r=new TypeError(`The "${t}" argument must be of type number. Received type ${typeof e}.`);throw r.code="ERR_INVALID_ARG_TYPE",r}}function ne(e,t){if(!Number.isInteger(e)||Number.isNaN(e)){let r=new RangeError(`The value of "${t}" is out of range. It must be an integer. Received ${e}`);throw r.code="ERR_OUT_OF_RANGE",r}}function Rl(e,t,r,n){if(e<r||e>n){let i=new RangeError(`The value of "${t}" is out of range. It must be >= ${r} and <= ${n}. Received ${e}`);throw i.code="ERR_OUT_OF_RANGE",i}}function Ki(e,t){if(typeof e!="string"){let r=new TypeError(`The "${t}" argument must be of type string. Received type ${typeof e}`);throw r.code="ERR_INVALID_ARG_TYPE",r}}function Dl(e,t="utf8"){return h.from(e,t)}var h,Cl,Il,kl,Ol,Nl,g,Sn,u=ge(()=>{"use strict";h=class e extends Uint8Array{_isBuffer=!0;get offset(){return this.byteOffset}static alloc(t,r=0,n="utf8"){return Ki(n,"encoding"),e.allocUnsafe(t).fill(r,n)}static allocUnsafe(t){return e.from(t)}static allocUnsafeSlow(t){return e.from(t)}static isBuffer(t){return t&&!!t._isBuffer}static byteLength(t,r="utf8"){if(typeof t=="string")return An(t,r).byteLength;if(t&&t.byteLength)return t.byteLength;let n=new TypeError('The "string" argument must be of type string or an instance of Buffer or ArrayBuffer.');throw n.code="ERR_INVALID_ARG_TYPE",n}static isEncoding(t){return Ol.includes(t)}static compare(t,r){fr(t,"buff1"),fr(r,"buff2");for(let n=0;n<t.length;n++){if(t[n]<r[n])return-1;if(t[n]>r[n])return 1}return t.length===r.length?0:t.length>r.length?1:-1}static from(t,r="utf8"){if(t&&typeof t=="object"&&t.type==="Buffer")return new e(t.data);if(typeof t=="number")return new e(new Uint8Array(t));if(typeof t=="string")return An(t,r);if(ArrayBuffer.isView(t)){let{byteOffset:n,byteLength:i,buffer:o}=t;return"map"in t&&typeof t.map=="function"?new e(t.map(s=>s%256),n,i):new e(o,n,i)}if(t&&typeof t=="object"&&("length"in t||"byteLength"in t||"buffer"in t))return new e(t);throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}static concat(t,r){if(t.length===0)return e.alloc(0);let n=[].concat(...t.map(o=>[...o])),i=e.alloc(r!==void 0?r:n.length);return i.set(r!==void 0?n.slice(0,r):n),i}slice(t=0,r=this.length){return this.subarray(t,r)}subarray(t=0,r=this.length){return Object.setPrototypeOf(super.subarray(t,r),e.prototype)}reverse(){return super.reverse(),this}readIntBE(t,r){J(t,"offset"),ne(t,"offset"),G(t,"offset",this.length-1),J(r,"byteLength"),ne(r,"byteLength");let n=new DataView(this.buffer,t,r),i=0;for(let o=0;o<r;o++)i=i*256+n.getUint8(o);return n.getUint8(0)&128&&(i-=Math.pow(256,r)),i}readIntLE(t,r){J(t,"offset"),ne(t,"offset"),G(t,"offset",this.length-1),J(r,"byteLength"),ne(r,"byteLength");let n=new DataView(this.buffer,t,r),i=0;for(let o=0;o<r;o++)i+=n.getUint8(o)*Math.pow(256,o);return n.getUint8(r-1)&128&&(i-=Math.pow(256,r)),i}readUIntBE(t,r){J(t,"offset"),ne(t,"offset"),G(t,"offset",this.length-1),J(r,"byteLength"),ne(r,"byteLength");let n=new DataView(this.buffer,t,r),i=0;for(let o=0;o<r;o++)i=i*256+n.getUint8(o);return i}readUintBE(t,r){return this.readUIntBE(t,r)}readUIntLE(t,r){J(t,"offset"),ne(t,"offset"),G(t,"offset",this.length-1),J(r,"byteLength"),ne(r,"byteLength");let n=new DataView(this.buffer,t,r),i=0;for(let o=0;o<r;o++)i+=n.getUint8(o)*Math.pow(256,o);return i}readUintLE(t,r){return this.readUIntLE(t,r)}writeIntBE(t,r,n){return t=t<0?t+Math.pow(256,n):t,this.writeUIntBE(t,r,n)}writeIntLE(t,r,n){return t=t<0?t+Math.pow(256,n):t,this.writeUIntLE(t,r,n)}writeUIntBE(t,r,n){J(r,"offset"),ne(r,"offset"),G(r,"offset",this.length-1),J(n,"byteLength"),ne(n,"byteLength");let i=new DataView(this.buffer,r,n);for(let o=n-1;o>=0;o--)i.setUint8(o,t&255),t=t/256;return r+n}writeUintBE(t,r,n){return this.writeUIntBE(t,r,n)}writeUIntLE(t,r,n){J(r,"offset"),ne(r,"offset"),G(r,"offset",this.length-1),J(n,"byteLength"),ne(n,"byteLength");let i=new DataView(this.buffer,r,n);for(let o=0;o<n;o++)i.setUint8(o,t&255),t=t/256;return r+n}writeUintLE(t,r,n){return this.writeUIntLE(t,r,n)}toJSON(){return{type:"Buffer",data:Array.from(this)}}swap16(){let t=new DataView(this.buffer,this.byteOffset,this.byteLength);for(let r=0;r<this.length;r+=2)t.setUint16(r,t.getUint16(r,!0),!1);return this}swap32(){let t=new DataView(this.buffer,this.byteOffset,this.byteLength);for(let r=0;r<this.length;r+=4)t.setUint32(r,t.getUint32(r,!0),!1);return this}swap64(){let t=new DataView(this.buffer,this.byteOffset,this.byteLength);for(let r=0;r<this.length;r+=8)t.setBigUint64(r,t.getBigUint64(r,!0),!1);return this}compare(t,r=0,n=t.length,i=0,o=this.length){return fr(t,"target"),J(r,"targetStart"),J(n,"targetEnd"),J(i,"sourceStart"),J(o,"sourceEnd"),G(r,"targetStart"),G(n,"targetEnd",t.length),G(i,"sourceStart"),G(o,"sourceEnd",this.length),e.compare(this.slice(i,o),t.slice(r,n))}equals(t){return fr(t,"otherBuffer"),this.length===t.length&&this.every((r,n)=>r===t[n])}copy(t,r=0,n=0,i=this.length){G(r,"targetStart"),G(n,"sourceStart",this.length),G(i,"sourceEnd"),r>>>=0,n>>>=0,i>>>=0;let o=0;for(;n<i&&!(this[n]===void 0||t[r]===void 0);)t[r]=this[n],o++,n++,r++;return o}write(t,r,n,i="utf8"){let o=typeof r=="string"?0:r??0,s=typeof n=="string"?this.length-o:n??this.length-o;return i=typeof r=="string"?r:typeof n=="string"?n:i,J(o,"offset"),J(s,"length"),G(o,"offset",this.length),G(s,"length",this.length),(i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")&&(s=s-s%2),An(t,i).copy(this,o,0,s)}fill(t=0,r=0,n=this.length,i="utf-8"){let o=typeof r=="string"?0:r,s=typeof n=="string"?this.length:n;if(i=typeof r=="string"?r:typeof n=="string"?n:i,t=e.from(typeof t=="number"?[t]:t??[],i),Ki(i,"encoding"),G(o,"offset",this.length),G(s,"end",this.length),t.length!==0)for(let a=o;a<s;a+=t.length)super.set(t.slice(0,t.length+a>=this.length?this.length-a:t.length),a);return this}includes(t,r=null,n="utf-8"){return this.indexOf(t,r,n)!==-1}lastIndexOf(t,r=null,n="utf-8"){return this.indexOf(t,r,n,!0)}indexOf(t,r=null,n="utf-8",i=!1){let o=i?this.findLastIndex.bind(this):this.findIndex.bind(this);n=typeof r=="string"?r:n;let s=e.from(typeof t=="number"?[t]:t,n),a=typeof r=="string"?0:r;return a=typeof r=="number"?a:null,a=Number.isNaN(a)?null:a,a??=i?this.length:0,a=a<0?this.length+a:a,s.length===0&&i===!1?a>=this.length?this.length:a:s.length===0&&i===!0?(a>=this.length?this.length:a)||this.length:o((m,f)=>(i?f<=a:f>=a)&&this[f]===s[0]&&s.every((A,v)=>this[f+v]===A))}toString(t="utf8",r=0,n=this.length){if(r=r<0?0:r,t=t.toString().toLowerCase(),n<=0)return"";if(t==="utf8"||t==="utf-8")return kl.decode(this.slice(r,n));if(t==="base64"||t==="base64url"){let i=btoa(this.reduce((o,s)=>o+Sn(s),""));return t==="base64url"?i.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,""):i}if(t==="binary"||t==="ascii"||t==="latin1"||t==="latin-1")return this.slice(r,n).reduce((i,o)=>i+Sn(o&(t==="ascii"?127:255)),"");if(t==="ucs2"||t==="ucs-2"||t==="utf16le"||t==="utf-16le"){let i=new DataView(this.buffer.slice(r,n));return Array.from({length:i.byteLength/2},(o,s)=>s*2+1<i.byteLength?Sn(i.getUint16(s*2,!0)):"").join("")}if(t==="hex")return this.slice(r,n).reduce((i,o)=>i+o.toString(16).padStart(2,"0"),"");Zi(`encoding "${t}"`)}toLocaleString(){return this.toString()}inspect(){return`<Buffer ${this.toString("hex").match(/.{1,2}/g).join(" ")}>`}};Cl={int8:[-128,127],int16:[-32768,32767],int32:[-2147483648,2147483647],uint8:[0,255],uint16:[0,65535],uint32:[0,4294967295],float32:[-1/0,1/0],float64:[-1/0,1/0],bigint64:[-0x8000000000000000n,0x7fffffffffffffffn],biguint64:[0n,0xffffffffffffffffn]},Il=new TextEncoder,kl=new TextDecoder,Ol=["utf8","utf-8","hex","base64","ascii","binary","base64url","ucs2","ucs-2","utf16le","utf-16le","latin1","latin-1"],Nl=4294967295;vl(h.prototype);g=new Proxy(Dl,{construct(e,[t,r]){return h.from(t,r)},get(e,t){return h[t]}}),Sn=String.fromCodePoint});var y,x,l=ge(()=>{"use strict";y={nextTick:(e,...t)=>{setTimeout(()=>{e(...t)},0)},env:{},version:"",cwd:()=>"/",stderr:{},argv:["/bin/node"],pid:1e4},{cwd:x}=y});var w,c=ge(()=>{"use strict";w=globalThis.performance??(()=>{let e=Date.now();return{now:()=>Date.now()-e}})()});var b,p=ge(()=>{"use strict";b=()=>{};b.prototype=b});function to(e,t){var r,n,i,o,s,a,m,f,P=e.constructor,A=P.precision;if(!e.s||!t.s)return t.s||(t=new P(e)),q?L(t,A):t;if(m=e.d,f=t.d,s=e.e,i=t.e,m=m.slice(),o=s-i,o){for(o<0?(n=m,o=-o,a=f.length):(n=f,i=s,a=m.length),s=Math.ceil(A/$),a=s>a?s+1:a+1,o>a&&(o=a,n.length=1),n.reverse();o--;)n.push(0);n.reverse()}for(a=m.length,o=f.length,a-o<0&&(o=a,n=f,f=m,m=n),r=0;o;)r=(m[--o]=m[o]+f[o]+r)/W|0,m[o]%=W;for(r&&(m.unshift(r),++i),a=m.length;m[--a]==0;)m.pop();return t.d=m,t.e=i,q?L(t,A):t}function he(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Be+e)}function ye(e){var t,r,n,i=e.length-1,o="",s=e[0];if(i>0){for(o+=s,t=1;t<i;t++)n=e[t]+"",r=$-n.length,r&&(o+=ke(r)),o+=n;s=e[t],n=s+"",r=$-n.length,r&&(o+=ke(r))}else if(s===0)return"0";for(;s%10===0;)s/=10;return o+s}function ro(e,t){var r,n,i,o,s,a,m=0,f=0,P=e.constructor,A=P.precision;if(H(e)>16)throw Error(Rn+H(e));if(!e.s)return new P(oe);for(t==null?(q=!1,a=A):a=t,s=new P(.03125);e.abs().gte(.1);)e=e.times(s),f+=5;for(n=Math.log(qe(2,f))/Math.LN10*2+5|0,a+=n,r=i=o=new P(oe),P.precision=a;;){if(i=L(i.times(e),a),r=r.times(++m),s=o.plus(Se(i,r,a)),ye(s.d).slice(0,a)===ye(o.d).slice(0,a)){for(;f--;)o=L(o.times(o),a);return P.precision=A,t==null?(q=!0,L(o,A)):o}o=s}}function H(e){for(var t=e.e*$,r=e.d[0];r>=10;r/=10)t++;return t}function vn(e,t,r){if(t>e.LN10.sd())throw q=!0,r&&(e.precision=r),Error(ae+"LN10 precision limit exceeded");return L(new e(e.LN10),t)}function ke(e){for(var t="";e--;)t+="0";return t}function Ct(e,t){var r,n,i,o,s,a,m,f,P,A=1,v=10,S=e,N=S.d,C=S.constructor,I=C.precision;if(S.s<1)throw Error(ae+(S.s?"NaN":"-Infinity"));if(S.eq(oe))return new C(0);if(t==null?(q=!1,f=I):f=t,S.eq(10))return t==null&&(q=!0),vn(C,f);if(f+=v,C.precision=f,r=ye(N),n=r.charAt(0),o=H(S),Math.abs(o)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)S=S.times(e),r=ye(S.d),n=r.charAt(0),A++;o=H(S),n>1?(S=new C("0."+r),o++):S=new C(n+"."+r.slice(1))}else return m=vn(C,f+2,I).times(o+""),S=Ct(new C(n+"."+r.slice(1)),f-v).plus(m),C.precision=I,t==null?(q=!0,L(S,I)):S;for(a=s=S=Se(S.minus(oe),S.plus(oe),f),P=L(S.times(S),f),i=3;;){if(s=L(s.times(P),f),m=a.plus(Se(s,new C(i),f)),ye(m.d).slice(0,f)===ye(a.d).slice(0,f))return a=a.times(2),o!==0&&(a=a.plus(vn(C,f+2,I).times(o+""))),a=Se(a,new C(A),f),C.precision=I,t==null?(q=!0,L(a,I)):a;a=m,i+=2}}function Yi(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=tt(r/$),e.d=[],n=(r+1)%$,r<0&&(n+=$),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=$;n<i;)e.d.push(+t.slice(n,n+=$));t=t.slice(n),n=$-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),q&&(e.e>gr||e.e<-gr))throw Error(Rn+r)}else e.s=0,e.e=0,e.d=[0];return e}function L(e,t,r){var n,i,o,s,a,m,f,P,A=e.d;for(s=1,o=A[0];o>=10;o/=10)s++;if(n=t-s,n<0)n+=$,i=t,f=A[P=0];else{if(P=Math.ceil((n+1)/$),o=A.length,P>=o)return e;for(f=o=A[P],s=1;o>=10;o/=10)s++;n%=$,i=n-$+s}if(r!==void 0&&(o=qe(10,s-i-1),a=f/o%10|0,m=t<0||A[P+1]!==void 0||f%o,m=r<4?(a||m)&&(r==0||r==(e.s<0?3:2)):a>5||a==5&&(r==4||m||r==6&&(n>0?i>0?f/qe(10,s-i):0:A[P-1])%10&1||r==(e.s<0?8:7))),t<1||!A[0])return m?(o=H(e),A.length=1,t=t-o-1,A[0]=qe(10,($-t%$)%$),e.e=tt(-t/$)||0):(A.length=1,A[0]=e.e=e.s=0),e;if(n==0?(A.length=P,o=1,P--):(A.length=P+1,o=qe(10,$-n),A[P]=i>0?(f/qe(10,s-i)%qe(10,i)|0)*o:0),m)for(;;)if(P==0){(A[0]+=o)==W&&(A[0]=1,++e.e);break}else{if(A[P]+=o,A[P]!=W)break;A[P--]=0,o=1}for(n=A.length;A[--n]===0;)A.pop();if(q&&(e.e>gr||e.e<-gr))throw Error(Rn+H(e));return e}function no(e,t){var r,n,i,o,s,a,m,f,P,A,v=e.constructor,S=v.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new v(e),q?L(t,S):t;if(m=e.d,A=t.d,n=t.e,f=e.e,m=m.slice(),s=f-n,s){for(P=s<0,P?(r=m,s=-s,a=A.length):(r=A,n=f,a=m.length),i=Math.max(Math.ceil(S/$),a)+2,s>i&&(s=i,r.length=1),r.reverse(),i=s;i--;)r.push(0);r.reverse()}else{for(i=m.length,a=A.length,P=i<a,P&&(a=i),i=0;i<a;i++)if(m[i]!=A[i]){P=m[i]<A[i];break}s=0}for(P&&(r=m,m=A,A=r,t.s=-t.s),a=m.length,i=A.length-a;i>0;--i)m[a++]=0;for(i=A.length;i>s;){if(m[--i]<A[i]){for(o=i;o&&m[--o]===0;)m[o]=W-1;--m[o],m[i]+=W}m[i]-=A[i]}for(;m[--a]===0;)m.pop();for(;m[0]===0;m.shift())--n;return m[0]?(t.d=m,t.e=n,q?L(t,S):t):new v(0)}function je(e,t,r){var n,i=H(e),o=ye(e.d),s=o.length;return t?(r&&(n=r-s)>0?o=o.charAt(0)+"."+o.slice(1)+ke(n):s>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+ke(-i-1)+o,r&&(n=r-s)>0&&(o+=ke(n))):i>=s?(o+=ke(i+1-s),r&&(n=r-i-1)>0&&(o=o+"."+ke(n))):((n=i+1)<s&&(o=o.slice(0,n)+"."+o.slice(n)),r&&(n=r-s)>0&&(i+1===s&&(o+="."),o+=ke(n))),e.s<0?"-"+o:o}function Xi(e,t){if(e.length>t)return e.length=t,!0}function io(e){var t,r,n;function i(o){var s=this;if(!(s instanceof i))return new i(o);if(s.constructor=i,o instanceof i){s.s=o.s,s.e=o.e,s.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error(Be+o);if(o>0)s.s=1;else if(o<0)o=-o,s.s=-1;else{s.s=0,s.e=0,s.d=[0];return}if(o===~~o&&o<1e7){s.e=0,s.d=[o];return}return Yi(s,o.toString())}else if(typeof o!="string")throw Error(Be+o);if(o.charCodeAt(0)===45?(o=o.slice(1),s.s=-1):s.s=1,Ll.test(o))Yi(s,o);else throw Error(Be+o)}if(i.prototype=R,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=io,i.config=i.set=_l,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function _l(e){if(!e||typeof e!="object")throw Error(ae+"Object expected");var t,r,n,i=["precision",1,et,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(tt(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Be+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Be+r+": "+n);return this}var et,Ml,oo,q,ae,Be,Rn,tt,qe,Ll,oe,W,$,eo,gr,R,Se,oo,so=ge(()=>{"use strict";u();l();c();p();d();et=1e9,Ml={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},q=!0,ae="[DecimalError] ",Be=ae+"Invalid argument: ",Rn=ae+"Exponent out of range: ",tt=Math.floor,qe=Math.pow,Ll=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,W=1e7,$=7,eo=9007199254740991,gr=tt(eo/$),R={};R.absoluteValue=R.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};R.comparedTo=R.cmp=function(e){var t,r,n,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(n=o.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return n===i?0:n>i^o.s<0?1:-1};R.decimalPlaces=R.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*$;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};R.dividedBy=R.div=function(e){return Se(this,new this.constructor(e))};R.dividedToIntegerBy=R.idiv=function(e){var t=this,r=t.constructor;return L(Se(t,new r(e),0,1),r.precision)};R.equals=R.eq=function(e){return!this.cmp(e)};R.exponent=function(){return H(this)};R.greaterThan=R.gt=function(e){return this.cmp(e)>0};R.greaterThanOrEqualTo=R.gte=function(e){return this.cmp(e)>=0};R.isInteger=R.isint=function(){return this.e>this.d.length-2};R.isNegative=R.isneg=function(){return this.s<0};R.isPositive=R.ispos=function(){return this.s>0};R.isZero=function(){return this.s===0};R.lessThan=R.lt=function(e){return this.cmp(e)<0};R.lessThanOrEqualTo=R.lte=function(e){return this.cmp(e)<1};R.logarithm=R.log=function(e){var t,r=this,n=r.constructor,i=n.precision,o=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(oe))throw Error(ae+"NaN");if(r.s<1)throw Error(ae+(r.s?"NaN":"-Infinity"));return r.eq(oe)?new n(0):(q=!1,t=Se(Ct(r,o),Ct(e,o),o),q=!0,L(t,i))};R.minus=R.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?no(t,e):to(t,(e.s=-e.s,e))};R.modulo=R.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(ae+"NaN");return r.s?(q=!1,t=Se(r,e,0,1).times(e),q=!0,r.minus(t)):L(new n(r),i)};R.naturalExponential=R.exp=function(){return ro(this)};R.naturalLogarithm=R.ln=function(){return Ct(this)};R.negated=R.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};R.plus=R.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?to(t,e):no(t,(e.s=-e.s,e))};R.precision=R.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Be+e);if(t=H(i)+1,n=i.d.length-1,r=n*$+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};R.squareRoot=R.sqrt=function(){var e,t,r,n,i,o,s,a=this,m=a.constructor;if(a.s<1){if(!a.s)return new m(0);throw Error(ae+"NaN")}for(e=H(a),q=!1,i=Math.sqrt(+a),i==0||i==1/0?(t=ye(a.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=tt((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new m(t)):n=new m(i.toString()),r=m.precision,i=s=r+3;;)if(o=n,n=o.plus(Se(a,o,s+2)).times(.5),ye(o.d).slice(0,s)===(t=ye(n.d)).slice(0,s)){if(t=t.slice(s-3,s+1),i==s&&t=="4999"){if(L(o,r+1,0),o.times(o).eq(a)){n=o;break}}else if(t!="9999")break;s+=4}return q=!0,L(n,r)};R.times=R.mul=function(e){var t,r,n,i,o,s,a,m,f,P=this,A=P.constructor,v=P.d,S=(e=new A(e)).d;if(!P.s||!e.s)return new A(0);for(e.s*=P.s,r=P.e+e.e,m=v.length,f=S.length,m<f&&(o=v,v=S,S=o,s=m,m=f,f=s),o=[],s=m+f,n=s;n--;)o.push(0);for(n=f;--n>=0;){for(t=0,i=m+n;i>n;)a=o[i]+S[n]*v[i-n-1]+t,o[i--]=a%W|0,t=a/W|0;o[i]=(o[i]+t)%W|0}for(;!o[--s];)o.pop();return t?++r:o.shift(),e.d=o,e.e=r,q?L(e,A.precision):e};R.toDecimalPlaces=R.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(he(e,0,et),t===void 0?t=n.rounding:he(t,0,8),L(r,e+H(r)+1,t))};R.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=je(n,!0):(he(e,0,et),t===void 0?t=i.rounding:he(t,0,8),n=L(new i(n),e+1,t),r=je(n,!0,e+1)),r};R.toFixed=function(e,t){var r,n,i=this,o=i.constructor;return e===void 0?je(i):(he(e,0,et),t===void 0?t=o.rounding:he(t,0,8),n=L(new o(i),e+H(i)+1,t),r=je(n.abs(),!1,e+H(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};R.toInteger=R.toint=function(){var e=this,t=e.constructor;return L(new t(e),H(e)+1,t.rounding)};R.toNumber=function(){return+this};R.toPower=R.pow=function(e){var t,r,n,i,o,s,a=this,m=a.constructor,f=12,P=+(e=new m(e));if(!e.s)return new m(oe);if(a=new m(a),!a.s){if(e.s<1)throw Error(ae+"Infinity");return a}if(a.eq(oe))return a;if(n=m.precision,e.eq(oe))return L(a,n);if(t=e.e,r=e.d.length-1,s=t>=r,o=a.s,s){if((r=P<0?-P:P)<=eo){for(i=new m(oe),t=Math.ceil(n/$+4),q=!1;r%2&&(i=i.times(a),Xi(i.d,t)),r=tt(r/2),r!==0;)a=a.times(a),Xi(a.d,t);return q=!0,e.s<0?new m(oe).div(i):L(i,n)}}else if(o<0)throw Error(ae+"NaN");return o=o<0&&e.d[Math.max(t,r)]&1?-1:1,a.s=1,q=!1,i=e.times(Ct(a,n+f)),q=!0,i=ro(i),i.s=o,i};R.toPrecision=function(e,t){var r,n,i=this,o=i.constructor;return e===void 0?(r=H(i),n=je(i,r<=o.toExpNeg||r>=o.toExpPos)):(he(e,1,et),t===void 0?t=o.rounding:he(t,0,8),i=L(new o(i),e,t),r=H(i),n=je(i,e<=r||r<=o.toExpNeg,e)),n};R.toSignificantDigits=R.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(he(e,1,et),t===void 0?t=n.rounding:he(t,0,8)),L(new n(r),e,t)};R.toString=R.valueOf=R.val=R.toJSON=R[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=H(e),r=e.constructor;return je(e,t<=r.toExpNeg||t>=r.toExpPos)};Se=function(){function e(n,i){var o,s=0,a=n.length;for(n=n.slice();a--;)o=n[a]*i+s,n[a]=o%W|0,s=o/W|0;return s&&n.unshift(s),n}function t(n,i,o,s){var a,m;if(o!=s)m=o>s?1:-1;else for(a=m=0;a<o;a++)if(n[a]!=i[a]){m=n[a]>i[a]?1:-1;break}return m}function r(n,i,o){for(var s=0;o--;)n[o]-=s,s=n[o]<i[o]?1:0,n[o]=s*W+n[o]-i[o];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,o,s){var a,m,f,P,A,v,S,N,C,I,X,j,_,re,Ue,Tn,de,pr,dr=n.constructor,bl=n.s==i.s?1:-1,fe=n.d,Q=i.d;if(!n.s)return new dr(n);if(!i.s)throw Error(ae+"Division by zero");for(m=n.e-i.e,de=Q.length,Ue=fe.length,S=new dr(bl),N=S.d=[],f=0;Q[f]==(fe[f]||0);)++f;if(Q[f]>(fe[f]||0)&&--m,o==null?j=o=dr.precision:s?j=o+(H(n)-H(i))+1:j=o,j<0)return new dr(0);if(j=j/$+2|0,f=0,de==1)for(P=0,Q=Q[0],j++;(f<Ue||P)&&j--;f++)_=P*W+(fe[f]||0),N[f]=_/Q|0,P=_%Q|0;else{for(P=W/(Q[0]+1)|0,P>1&&(Q=e(Q,P),fe=e(fe,P),de=Q.length,Ue=fe.length),re=de,C=fe.slice(0,de),I=C.length;I<de;)C[I++]=0;pr=Q.slice(),pr.unshift(0),Tn=Q[0],Q[1]>=W/2&&++Tn;do P=0,a=t(Q,C,de,I),a<0?(X=C[0],de!=I&&(X=X*W+(C[1]||0)),P=X/Tn|0,P>1?(P>=W&&(P=W-1),A=e(Q,P),v=A.length,I=C.length,a=t(A,C,v,I),a==1&&(P--,r(A,de<v?pr:Q,v))):(P==0&&(a=P=1),A=Q.slice()),v=A.length,v<I&&A.unshift(0),r(C,A,I),a==-1&&(I=C.length,a=t(Q,C,de,I),a<1&&(P++,r(C,de<I?pr:Q,I))),I=C.length):a===0&&(P++,C=[0]),N[f++]=P,a&&C[0]?C[I++]=fe[re]||0:(C=[fe[re]],I=1);while((re++<Ue||C[0]!==void 0)&&j--)}return N[0]||N.shift(),S.e=m,L(S,s?o+H(S)+1:o)}}();oo=io(Ml);oe=new oo(1)});var d=ge(()=>{"use strict";so()});var On={};Rt(On,{Hash:()=>Nt,createHash:()=>Ro,default:()=>nt,randomFillSync:()=>xr,randomUUID:()=>br,webcrypto:()=>Dt});function br(){return globalThis.crypto.randomUUID()}function xr(e,t,r){return t!==void 0&&(r!==void 0?e=e.subarray(t,t+r):e=e.subarray(t)),globalThis.crypto.getRandomValues(e)}function Ro(e){return new Nt(e)}var Dt,Nt,nt,Qe=ge(()=>{"use strict";u();l();c();p();d();Dt=globalThis.crypto;Nt=class{#e=[];#t;constructor(t){this.#t=t}update(t){this.#e.push(t)}async digest(){let t=new Uint8Array(this.#e.reduce((i,o)=>i+o.length,0)),r=0;for(let i of this.#e)t.set(i,r),r+=i.length;let n=await globalThis.crypto.subtle.digest(this.#t,t);return new Uint8Array(n)}},nt={webcrypto:Dt,randomUUID:br,randomFillSync:xr,createHash:Ro,Hash:Nt}});var Co=ie(()=>{"use strict";u();l();c();p();d()});var Io=ie((Wy,jl)=>{jl.exports={name:"@prisma/engines-version",version:"7.5.0-10.94a226be1cf2967af2541cca5529f0f7ba866919",main:"index.js",types:"index.d.ts",license:"Apache-2.0",author:"Tim Suchanek <suchanek@prisma.io>",prisma:{enginesVersion:"94a226be1cf2967af2541cca5529f0f7ba866919"},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 ko=ie(Er=>{"use strict";u();l();c();p();d();Object.defineProperty(Er,"__esModule",{value:!0});Er.enginesVersion=void 0;Er.enginesVersion=Io().prisma.enginesVersion});var Mo=ie((ah,Do)=>{"use strict";u();l();c();p();d();Do.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 _o=ie(($h,Tr)=>{"use strict";u();l();c();p();d();Tr.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()};Tr.exports.default=Tr.exports});var Fn=ie((Rb,Uo)=>{"use strict";u();l();c();p();d();Uo.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,m,f,P,A,v,S,N,C,I,X,j,_,re=[];for(m=0;m<i;m++)re.push(m+1),re.push(t.charCodeAt(s+m));for(var Ue=re.length-1;a<o-3;)for(I=r.charCodeAt(s+(f=a)),X=r.charCodeAt(s+(P=a+1)),j=r.charCodeAt(s+(A=a+2)),_=r.charCodeAt(s+(v=a+3)),S=a+=4,m=0;m<Ue;m+=2)N=re[m],C=re[m+1],f=e(N,f,P,I,C),P=e(f,P,A,X,C),A=e(P,A,v,j,C),S=e(A,v,S,_,C),re[m]=S,v=A,A=P,P=f,f=N;for(;a<o;)for(I=r.charCodeAt(s+(f=a)),S=++a,m=0;m<Ue;m+=2)N=re[m],re[m]=S=e(N,f,S,I,re[m+1]),f=N;return S}}()});var Qo=ge(()=>{"use strict";u();l();c();p();d()});var Jo=ge(()=>{"use strict";u();l();c();p();d()});var Vr,ps=ge(()=>{"use strict";u();l();c();p();d();Vr=class{events={};on(t,r){return this.events[t]||(this.events[t]=[]),this.events[t].push(r),this}emit(t,...r){return this.events[t]?(this.events[t].forEach(n=>{n(...r)}),!0):!1}}});var oi=ie(Ge=>{"use strict";u();l();c();p();d();Object.defineProperty(Ge,"__esModule",{value:!0});Ge.anumber=ii;Ge.abytes=ra;Ge.ahash=Bp;Ge.aexists=jp;Ge.aoutput=Qp;function ii(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function qp(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function ra(e,...t){if(!qp(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function Bp(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");ii(e.outputLen),ii(e.blockLen)}function jp(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function Qp(e,t){ra(e);let r=t.outputLen;if(e.length<r)throw new Error("digestInto() expects output buffer of length at least "+r)}});var Aa=ie(O=>{"use strict";u();l();c();p();d();Object.defineProperty(O,"__esModule",{value:!0});O.add5L=O.add5H=O.add4H=O.add4L=O.add3H=O.add3L=O.rotlBL=O.rotlBH=O.rotlSL=O.rotlSH=O.rotr32L=O.rotr32H=O.rotrBL=O.rotrBH=O.rotrSL=O.rotrSH=O.shrSL=O.shrSH=O.toBig=void 0;O.fromBig=ai;O.split=na;O.add=ha;var Kr=BigInt(2**32-1),si=BigInt(32);function ai(e,t=!1){return t?{h:Number(e&Kr),l:Number(e>>si&Kr)}:{h:Number(e>>si&Kr)|0,l:Number(e&Kr)|0}}function na(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let i=0;i<e.length;i++){let{h:o,l:s}=ai(e[i],t);[r[i],n[i]]=[o,s]}return[r,n]}var ia=(e,t)=>BigInt(e>>>0)<<si|BigInt(t>>>0);O.toBig=ia;var oa=(e,t,r)=>e>>>r;O.shrSH=oa;var sa=(e,t,r)=>e<<32-r|t>>>r;O.shrSL=sa;var aa=(e,t,r)=>e>>>r|t<<32-r;O.rotrSH=aa;var ua=(e,t,r)=>e<<32-r|t>>>r;O.rotrSL=ua;var la=(e,t,r)=>e<<64-r|t>>>r-32;O.rotrBH=la;var ca=(e,t,r)=>e>>>r-32|t<<64-r;O.rotrBL=ca;var pa=(e,t)=>t;O.rotr32H=pa;var da=(e,t)=>e;O.rotr32L=da;var ma=(e,t,r)=>e<<r|t>>>32-r;O.rotlSH=ma;var fa=(e,t,r)=>t<<r|e>>>32-r;O.rotlSL=fa;var ga=(e,t,r)=>t<<r-32|e>>>64-r;O.rotlBH=ga;var ya=(e,t,r)=>e<<r-32|t>>>64-r;O.rotlBL=ya;function ha(e,t,r,n){let i=(t>>>0)+(n>>>0);return{h:e+r+(i/2**32|0)|0,l:i|0}}var wa=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0);O.add3L=wa;var ba=(e,t,r,n)=>t+r+n+(e/2**32|0)|0;O.add3H=ba;var xa=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0);O.add4L=xa;var Ea=(e,t,r,n,i)=>t+r+n+i+(e/2**32|0)|0;O.add4H=Ea;var Pa=(e,t,r,n,i)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(i>>>0);O.add5L=Pa;var Ta=(e,t,r,n,i,o)=>t+r+n+i+o+(e/2**32|0)|0;O.add5H=Ta;var Jp={fromBig:ai,split:na,toBig:ia,shrSH:oa,shrSL:sa,rotrSH:aa,rotrSL:ua,rotrBH:la,rotrBL:ca,rotr32H:pa,rotr32L:da,rotlSH:ma,rotlSL:fa,rotlBH:ga,rotlBL:ya,add:ha,add3L:wa,add3H:ba,add4L:xa,add4H:Ea,add5H:Ta,add5L:Pa};O.default=Jp});var Sa=ie(Zr=>{"use strict";u();l();c();p();d();Object.defineProperty(Zr,"__esModule",{value:!0});Zr.crypto=void 0;var Le=(Qe(),Sl(On));Zr.crypto=Le&&typeof Le=="object"&&"webcrypto"in Le?Le.webcrypto:Le&&typeof Le=="object"&&"randomBytes"in Le?Le:void 0});var Ca=ie(D=>{"use strict";u();l();c();p();d();Object.defineProperty(D,"__esModule",{value:!0});D.Hash=D.nextTick=D.byteSwapIfBE=D.isLE=void 0;D.isBytes=Hp;D.u8=Gp;D.u32=Wp;D.createView=zp;D.rotr=Kp;D.rotl=Zp;D.byteSwap=ci;D.byteSwap32=Yp;D.bytesToHex=ed;D.hexToBytes=td;D.asyncLoop=nd;D.utf8ToBytes=Ra;D.toBytes=Yr;D.concatBytes=id;D.checkOpts=od;D.wrapConstructor=sd;D.wrapConstructorWithOpts=ad;D.wrapXOFConstructorWithOpts=ud;D.randomBytes=ld;var bt=Sa(),li=oi();function Hp(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function Gp(e){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}function Wp(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function zp(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Kp(e,t){return e<<32-t|e>>>t}function Zp(e,t){return e<<t|e>>>32-t>>>0}D.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function ci(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}D.byteSwapIfBE=D.isLE?e=>e:e=>ci(e);function Yp(e){for(let t=0;t<e.length;t++)e[t]=ci(e[t])}var Xp=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function ed(e){(0,li.abytes)(e);let t="";for(let r=0;r<e.length;r++)t+=Xp[e[r]];return t}var Re={_0:48,_9:57,A:65,F:70,a:97,f:102};function va(e){if(e>=Re._0&&e<=Re._9)return e-Re._0;if(e>=Re.A&&e<=Re.F)return e-(Re.A-10);if(e>=Re.a&&e<=Re.f)return e-(Re.a-10)}function td(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);let t=e.length,r=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);let n=new Uint8Array(r);for(let i=0,o=0;i<r;i++,o+=2){let s=va(e.charCodeAt(o)),a=va(e.charCodeAt(o+1));if(s===void 0||a===void 0){let m=e[o]+e[o+1];throw new Error('hex string expected, got non-hex character "'+m+'" at index '+o)}n[i]=s*16+a}return n}var rd=async()=>{};D.nextTick=rd;async function nd(e,t,r){let n=Date.now();for(let i=0;i<e;i++){r(i);let o=Date.now()-n;o>=0&&o<t||(await(0,D.nextTick)(),n+=o)}}function Ra(e){if(typeof e!="string")throw new Error("utf8ToBytes expected string, got "+typeof e);return new Uint8Array(new TextEncoder().encode(e))}function Yr(e){return typeof e=="string"&&(e=Ra(e)),(0,li.abytes)(e),e}function id(...e){let t=0;for(let n=0;n<e.length;n++){let i=e[n];(0,li.abytes)(i),t+=i.length}let r=new Uint8Array(t);for(let n=0,i=0;n<e.length;n++){let o=e[n];r.set(o,i),i+=o.length}return r}var ui=class{clone(){return this._cloneInto()}};D.Hash=ui;function od(e,t){if(t!==void 0&&{}.toString.call(t)!=="[object Object]")throw new Error("Options should be object or undefined");return Object.assign(e,t)}function sd(e){let t=n=>e().update(Yr(n)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function ad(e){let t=(n,i)=>e(i).update(Yr(n)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=n=>e(n),t}function ud(e){let t=(n,i)=>e(i).update(Yr(n)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=n=>e(n),t}function ld(e=32){if(bt.crypto&&typeof bt.crypto.getRandomValues=="function")return bt.crypto.getRandomValues(new Uint8Array(e));if(bt.crypto&&typeof bt.crypto.randomBytes=="function")return bt.crypto.randomBytes(e);throw new Error("crypto.getRandomValues must be defined")}});var _a=ie(V=>{"use strict";u();l();c();p();d();Object.defineProperty(V,"__esModule",{value:!0});V.shake256=V.shake128=V.keccak_512=V.keccak_384=V.keccak_256=V.keccak_224=V.sha3_512=V.sha3_384=V.sha3_256=V.sha3_224=V.Keccak=void 0;V.keccakP=Ma;var xt=oi(),zt=Aa(),Ce=Ca(),Oa=[],Na=[],Da=[],cd=BigInt(0),Wt=BigInt(1),pd=BigInt(2),dd=BigInt(7),md=BigInt(256),fd=BigInt(113);for(let e=0,t=Wt,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],Oa.push(2*(5*n+r)),Na.push((e+1)*(e+2)/2%64);let i=cd;for(let o=0;o<7;o++)t=(t<<Wt^(t>>dd)*fd)%md,t&pd&&(i^=Wt<<(Wt<<BigInt(o))-Wt);Da.push(i)}var[gd,yd]=(0,zt.split)(Da,!0),Ia=(e,t,r)=>r>32?(0,zt.rotlBH)(e,t,r):(0,zt.rotlSH)(e,t,r),ka=(e,t,r)=>r>32?(0,zt.rotlBL)(e,t,r):(0,zt.rotlSL)(e,t,r);function Ma(e,t=24){let r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let s=0;s<10;s++)r[s]=e[s]^e[s+10]^e[s+20]^e[s+30]^e[s+40];for(let s=0;s<10;s+=2){let a=(s+8)%10,m=(s+2)%10,f=r[m],P=r[m+1],A=Ia(f,P,1)^r[a],v=ka(f,P,1)^r[a+1];for(let S=0;S<50;S+=10)e[s+S]^=A,e[s+S+1]^=v}let i=e[2],o=e[3];for(let s=0;s<24;s++){let a=Na[s],m=Ia(i,o,a),f=ka(i,o,a),P=Oa[s];i=e[P],o=e[P+1],e[P]=m,e[P+1]=f}for(let s=0;s<50;s+=10){for(let a=0;a<10;a++)r[a]=e[s+a];for(let a=0;a<10;a++)e[s+a]^=~r[(a+2)%10]&r[(a+4)%10]}e[0]^=gd[n],e[1]^=yd[n]}r.fill(0)}var Kt=class e extends Ce.Hash{constructor(t,r,n,i=!1,o=24){if(super(),this.blockLen=t,this.suffix=r,this.outputLen=n,this.enableXOF=i,this.rounds=o,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,xt.anumber)(n),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,Ce.u32)(this.state)}keccak(){Ce.isLE||(0,Ce.byteSwap32)(this.state32),Ma(this.state32,this.rounds),Ce.isLE||(0,Ce.byteSwap32)(this.state32),this.posOut=0,this.pos=0}update(t){(0,xt.aexists)(this);let{blockLen:r,state:n}=this;t=(0,Ce.toBytes)(t);let i=t.length;for(let o=0;o<i;){let s=Math.min(r-this.pos,i-o);for(let a=0;a<s;a++)n[this.pos++]^=t[o++];this.pos===r&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:t,suffix:r,pos:n,blockLen:i}=this;t[n]^=r,(r&128)!==0&&n===i-1&&this.keccak(),t[i-1]^=128,this.keccak()}writeInto(t){(0,xt.aexists)(this,!1),(0,xt.abytes)(t),this.finish();let r=this.state,{blockLen:n}=this;for(let i=0,o=t.length;i<o;){this.posOut>=n&&this.keccak();let s=Math.min(n-this.posOut,o-i);t.set(r.subarray(this.posOut,this.posOut+s),i),this.posOut+=s,i+=s}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return(0,xt.anumber)(t),this.xofInto(new Uint8Array(t))}digestInto(t){if((0,xt.aoutput)(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(t){let{blockLen:r,suffix:n,outputLen:i,rounds:o,enableXOF:s}=this;return t||(t=new e(r,n,i,s,o)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=o,t.suffix=n,t.outputLen=i,t.enableXOF=s,t.destroyed=this.destroyed,t}};V.Keccak=Kt;var _e=(e,t,r)=>(0,Ce.wrapConstructor)(()=>new Kt(t,e,r));V.sha3_224=_e(6,144,224/8);V.sha3_256=_e(6,136,256/8);V.sha3_384=_e(6,104,384/8);V.sha3_512=_e(6,72,512/8);V.keccak_224=_e(1,144,224/8);V.keccak_256=_e(1,136,256/8);V.keccak_384=_e(1,104,384/8);V.keccak_512=_e(1,72,512/8);var La=(e,t,r)=>(0,Ce.wrapXOFConstructorWithOpts)((n={})=>new Kt(t,e,n.dkLen===void 0?r:n.dkLen,!0));V.shake128=La(31,168,128/8);V.shake256=La(31,136,256/8)});var Qa=ie((cO,Fe)=>{"use strict";u();l();c();p();d();var{sha3_512:hd}=_a(),$a=24,Zt=32,pi=(e=4,t=Math.random)=>{let r="";for(;r.length<e;)r=r+Math.floor(t()*36).toString(36);return r};function Ua(e){let t=8n,r=0n;for(let n of e.values()){let i=BigInt(n);r=(r<<t)+i}return r}var Va=(e="")=>Ua(hd(e)).toString(36).slice(1),Fa=Array.from({length:26},(e,t)=>String.fromCharCode(t+97)),wd=e=>Fa[Math.floor(e()*Fa.length)],qa=({globalObj:e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{},random:t=Math.random}={})=>{let r=Object.keys(e).toString(),n=r.length?r+pi(Zt,t):pi(Zt,t);return Va(n).substring(0,Zt)},Ba=e=>()=>e++,bd=476782367,ja=({random:e=Math.random,counter:t=Ba(Math.floor(e()*bd)),length:r=$a,fingerprint:n=qa({random:e})}={})=>function(){let o=wd(e),s=Date.now().toString(36),a=t().toString(36),m=pi(r,e),f=`${s+m+a+n}`;return`${o+Va(f).substring(1,r)}`},xd=ja(),Ed=(e,{minLength:t=2,maxLength:r=Zt}={})=>{let n=e.length,i=/^[0-9a-z]+$/;try{if(typeof e=="string"&&n>=t&&n<=r&&i.test(e))return!0}finally{}return!1};Fe.exports.getConstants=()=>({defaultLength:$a,bigLength:Zt});Fe.exports.init=ja;Fe.exports.createId=xd;Fe.exports.bufToBigInt=Ua;Fe.exports.createCounter=Ba;Fe.exports.createFingerprint=qa;Fe.exports.isCuid=Ed});var Ja=ie((yO,Yt)=>{"use strict";u();l();c();p();d();var{createId:Pd,init:Td,getConstants:Ad,isCuid:Sd}=Qa();Yt.exports.createId=Pd;Yt.exports.init=Td;Yt.exports.getConstants=Ad;Yt.exports.isCuid=Sd});u();l();c();p();d();var lo={};Rt(lo,{defineExtension:()=>ao,getExtensionContext:()=>uo});u();l();c();p();d();u();l();c();p();d();function ao(e){return typeof e=="function"?e:t=>t.$extends(e)}u();l();c();p();d();function uo(e){return e}var po={};Rt(po,{validator:()=>co});u();l();c();p();d();u();l();c();p();d();function co(...e){return t=>t}u();l();c();p();d();u();l();c();p();d();u();l();c();p();d();var we=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}};u();l();c();p();d();function Oe(e){return e.substring(0,1).toLowerCase()+e.substring(1)}u();l();c();p();d();function mo(e,t){let r={};for(let n of e){let i=n[t];r[i]=n}return r}u();l();c();p();d();function It(e){let t;return{get(){return t||(t={value:e()}),t.value}}}u();l();c();p();d();function Fl(e){return{models:Cn(e.models),enums:Cn(e.enums),types:Cn(e.types)}}function Cn(e){let t={};for(let{name:r,...n}of e)t[r]=n;return t}import{isAnyNull as Dc,isDbNull as Mc,isJsonNull as Lc,ObjectEnumValue as _c}from"@prisma/client-runtime-utils";u();l();c();p();d();u();l();c();p();d();var In,fo,go,yo,ho=!0;typeof y<"u"&&({FORCE_COLOR:In,NODE_DISABLE_COLORS:fo,NO_COLOR:go,TERM:yo}=y.env||{},ho=y.stdout&&y.stdout.isTTY);var $l={enabled:!fo&&go==null&&yo!=="dumb"&&(In!=null&&In!=="0"||ho)};function F(e,t){let r=new RegExp(`\\x1b\\[${t}m`,"g"),n=`\x1B[${e}m`,i=`\x1B[${t}m`;return function(o){return!$l.enabled||o==null?o:n+(~(""+o).indexOf(i)?o.replace(r,i+n):o)+i}}var Zg=F(0,0),yr=F(1,22),hr=F(2,22),Yg=F(3,23),wr=F(4,24),Xg=F(7,27),ey=F(8,28),ty=F(9,29),ry=F(30,39),rt=F(31,39),wo=F(32,39),bo=F(33,39),xo=F(34,39),ny=F(35,39),Eo=F(36,39),iy=F(37,39),Po=F(90,39),oy=F(90,39),sy=F(40,49),ay=F(41,49),uy=F(42,49),ly=F(43,49),cy=F(44,49),py=F(45,49),dy=F(46,49),my=F(47,49);u();l();c();p();d();var Ul=100,To=["green","yellow","blue","magenta","cyan","red"],kt=[],Ao=Date.now(),Vl=0,kn=typeof y<"u"?y.env:{};globalThis.DEBUG??=kn.DEBUG??"";globalThis.DEBUG_COLORS??=kn.DEBUG_COLORS?kn.DEBUG_COLORS==="true":!0;var Ot={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 ql(e){let t={color:To[Vl++%To.length],enabled:Ot.enabled(e),namespace:e,log:Ot.log,extend:()=>{}},r=(...n)=>{let{enabled:i,namespace:o,color:s,log:a}=t;if(n.length!==0&&kt.push([o,...n]),kt.length>Ul&&kt.shift(),Ot.enabled(o)||i){let m=n.map(P=>typeof P=="string"?P:Bl(P)),f=`+${Date.now()-Ao}ms`;Ao=Date.now(),a(o,...m,f)}};return new Proxy(r,{get:(n,i)=>t[i],set:(n,i,o)=>t[i]=o})}var ee=new Proxy(ql,{get:(e,t)=>Ot[t],set:(e,t,r)=>Ot[t]=r});function Bl(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 So(e=7500){let t=kt.map(([r,...n])=>`${r} ${n.map(i=>typeof i=="string"?i:JSON.stringify(i)).join(" ")}`).join(` `);return t.length<e?t:t.slice(-e)}function vo(){kt.length=0}u();l();c();p();d();u();l();c();p();d();var Oo="prisma+postgres",Pr=`${Oo}:`;function No(e){return e?.toString().startsWith(`${Pr}//`)??!1}function Nn(e){if(!No(e))return!1;let{host:t}=new URL(e);return t.includes("localhost")||t.includes("127.0.0.1")||t.includes("[::1]")}var Lt={};Rt(Lt,{error:()=>Hl,info:()=>Jl,log:()=>Ql,query:()=>Gl,should:()=>Lo,tags:()=>Mt,warn:()=>Dn});u();l();c();p();d();var Mt={error:rt("prisma:error"),warn:bo("prisma:warn"),info:Eo("prisma:info"),query:xo("prisma:query")},Lo={warn:()=>!y.env.PRISMA_DISABLE_WARNINGS};function Ql(...e){console.log(...e)}function Dn(e,...t){Lo.warn()&&console.warn(`${Mt.warn} ${e}`,...t)}function Jl(e,...t){console.info(`${Mt.info} ${e}`,...t)}function Hl(e,...t){console.error(`${Mt.error} ${e}`,...t)}function Gl(e,...t){console.log(`${Mt.query} ${e}`,...t)}u();l();c();p();d();function ve(e,t){throw new Error(t)}u();l();c();p();d();u();l();c();p();d();function Mn({onlyFirst:e=!1}={}){let r=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(r,e?void 0:"g")}var Wl=Mn();function it(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(Wl,"")}u();l();c();p();d();function Ln(e,t){return Object.prototype.hasOwnProperty.call(e,t)}u();l();c();p();d();function Ar(e,t){let r={};for(let n of Object.keys(e))r[n]=t(e[n],n);return r}u();l();c();p();d();function _n(e,t){if(e.length===0)return;let r=e[0];for(let n=1;n<e.length;n++)t(r,e[n])<0&&(r=e[n]);return r}u();l();c();p();d();function _t(e,t){Object.defineProperty(e,"name",{value:t,configurable:!0})}u();l();c();p();d();var Fo=new Set,$o=(e,t,...r)=>{Fo.has(e)||(Fo.add(e),Dn(t,...r))};u();l();c();p();d();function ot(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Sr(e){return e.toString()!=="Invalid Date"}u();l();c();p();d();import{Decimal as zl}from"@prisma/client-runtime-utils";function st(e){return zl.isDecimal(e)?!0:e!==null&&typeof e=="object"&&typeof e.s=="number"&&typeof e.e=="number"&&typeof e.toFixed=="function"&&Array.isArray(e.d)}u();l();c();p();d();import{PrismaClientValidationError as Ic}from"@prisma/client-runtime-utils";u();l();c();p();d();var vr={};Rt(vr,{ModelAction:()=>Ft,datamodelEnumToSchemaEnum:()=>Kl});u();l();c();p();d();u();l();c();p();d();function Kl(e){return{name:e.name,values:e.values.map(t=>t.name)}}u();l();c();p();d();var Ft=(_=>(_.findUnique="findUnique",_.findUniqueOrThrow="findUniqueOrThrow",_.findFirst="findFirst",_.findFirstOrThrow="findFirstOrThrow",_.findMany="findMany",_.create="create",_.createMany="createMany",_.createManyAndReturn="createManyAndReturn",_.update="update",_.updateMany="updateMany",_.updateManyAndReturn="updateManyAndReturn",_.upsert="upsert",_.delete="delete",_.deleteMany="deleteMany",_.groupBy="groupBy",_.count="count",_.aggregate="aggregate",_.findRaw="findRaw",_.aggregateRaw="aggregateRaw",_))(Ft||{});var Zl=Ve(Mo());var Yl={red:rt,gray:Po,dim:hr,bold:yr,underline:wr,highlightSource:e=>e.highlight()},Xl={red:e=>e,gray:e=>e,dim:e=>e,bold:e=>e,underline:e=>e,highlightSource:e=>e};function ec({message:e,originalMethod:t,isPanic:r,callArguments:n}){return{functionName:`prisma.${t}()`,message:e,isPanic:r??!1,callArguments:n}}function tc({functionName:e,location:t,message:r,isPanic:n,contextLines:i,callArguments:o},s){let a=[""],m=t?" in":":";if(n?(a.push(s.red(`Oops, an unknown error occurred! This is ${s.bold("on us")}, you did nothing wrong.`)),a.push(s.red(`It occurred in the ${s.bold(`\`${e}\``)} invocation${m}`))):a.push(s.red(`Invalid ${s.bold(`\`${e}\``)} invocation${m}`)),t&&a.push(s.underline(rc(t))),i){a.push("");let f=[i.toString()];o&&(f.push(o),f.push(s.dim(")"))),a.push(f.join("")),o&&a.push("")}else a.push(""),o&&a.push(o),a.push("");return a.push(r),a.join(` `)}function rc(e){let t=[e.fileName];return e.lineNumber&&t.push(String(e.lineNumber)),e.columnNumber&&t.push(String(e.columnNumber)),t.join(":")}function Rr(e){let t=e.showColors?Yl:Xl,r;return typeof $getTemplateParameters<"u"?r=$getTemplateParameters(e,t):r=ec(e),tc(r,t)}u();l();c();p();d();var Go=Ve(Fn());u();l();c();p();d();function Bo(e,t,r){let n=jo(e),i=nc(n),o=oc(i);o?Cr(o,t,r):t.addErrorMessage(()=>"Unknown error")}function jo(e){return e.errors.flatMap(t=>t.kind==="Union"?jo(t):[t])}function nc(e){let t=new Map,r=[];for(let n of e){if(n.kind!=="InvalidArgumentType"){r.push(n);continue}let i=`${n.selectionPath.join(".")}:${n.argumentPath.join(".")}`,o=t.get(i);o?t.set(i,{...n,argument:{...n.argument,typeNames:ic(o.argument.typeNames,n.argument.typeNames)}}):t.set(i,n)}return r.push(...t.values()),r}function ic(e,t){return[...new Set(e.concat(t))]}function oc(e){return _n(e,(t,r)=>{let n=Vo(t),i=Vo(r);return n!==i?n-i:qo(t)-qo(r)})}function Vo(e){let t=0;return Array.isArray(e.selectionPath)&&(t+=e.selectionPath.length),Array.isArray(e.argumentPath)&&(t+=e.argumentPath.length),t}function qo(e){switch(e.kind){case"InvalidArgumentValue":case"ValueTooLarge":return 20;case"InvalidArgumentType":return 10;case"RequiredArgumentMissing":return-10;default:return 0}}u();l();c();p();d();var se=class{constructor(t,r){this.name=t;this.value=r}isRequired=!1;makeRequired(){return this.isRequired=!0,this}write(t){let{colors:{green:r}}=t.context;t.addMarginSymbol(r(this.isRequired?"+":"?")),t.write(r(this.name)),this.isRequired||t.write(r("?")),t.write(r(": ")),typeof this.value=="string"?t.write(r(this.value)):t.write(this.value)}};u();l();c();p();d();u();l();c();p();d();Jo();u();l();c();p();d();var at=class{constructor(t=0,r){this.context=r;this.currentIndent=t}lines=[];currentLine="";currentIndent=0;marginSymbol;afterNextNewLineCallback;write(t){return typeof t=="string"?this.currentLine+=t:t.write(this),this}writeJoined(t,r,n=(i,o)=>o.write(i)){let i=r.length-1;for(let o=0;o<r.length;o++)n(r[o],this),o!==i&&this.write(t);return this}writeLine(t){return this.write(t).newLine()}newLine(){this.lines.push(this.indentedCurrentLine()),this.currentLine="",this.marginSymbol=void 0;let t=this.afterNextNewLineCallback;return this.afterNextNewLineCallback=void 0,t?.(),this}withIndent(t){return this.indent(),t(this),this.unindent(),this}afterNextNewline(t){return this.afterNextNewLineCallback=t,this}indent(){return this.currentIndent++,this}unindent(){return this.currentIndent>0&&this.currentIndent--,this}addMarginSymbol(t){return this.marginSymbol=t,this}toString(){return this.lines.concat(this.indentedCurrentLine()).join(` `)}getCurrentLineLength(){return this.currentLine.length}indentedCurrentLine(){let t=this.currentLine.padStart(this.currentLine.length+2*this.currentIndent);return this.marginSymbol?this.marginSymbol+t.slice(1):t}};Qo();u();l();c();p();d();u();l();c();p();d();var Ir=class{constructor(t){this.value=t}write(t){t.write(this.value)}markAsError(){this.value.markAsError()}};u();l();c();p();d();var kr=e=>e,Or={bold:kr,red:kr,green:kr,dim:kr,enabled:!1},Ho={bold:yr,red:rt,green:wo,dim:hr,enabled:!0},ut={write(e){e.writeLine(",")}};u();l();c();p();d();var be=class{constructor(t){this.contents=t}isUn