@infineit-nestjs/core 1.0.37 → 1.0.39
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/dist/cjs/_virtual/_commonjsHelpers.js +2 -0
- package/dist/cjs/_virtual/query_compiler_bg.postgresql.js +2 -0
- package/dist/cjs/_virtual/query_compiler_bg.postgresql.wasm-base64.js +2 -0
- package/dist/cjs/errors/common.errors.js +1 -1
- package/dist/cjs/filters/prisma-exception.filter.d.ts +1 -1
- package/dist/cjs/filters/prisma-exception.filter.js +1 -1
- package/dist/cjs/generated/prisma/browser.d.ts +4 -0
- package/dist/cjs/generated/prisma/client.d.ts +8 -0
- package/dist/cjs/generated/prisma/client.js +2 -0
- package/dist/cjs/generated/prisma/commonInputTypes.d.ts +1 -0
- package/dist/cjs/generated/prisma/enums.d.ts +1 -0
- package/dist/cjs/generated/prisma/enums.js +2 -0
- package/dist/cjs/generated/prisma/internal/class.d.ts +32 -0
- package/dist/cjs/generated/prisma/internal/class.js +2 -0
- package/dist/cjs/generated/prisma/internal/prismaNamespace.d.ts +248 -0
- package/dist/cjs/generated/prisma/internal/prismaNamespace.js +2 -0
- package/dist/cjs/generated/prisma/internal/prismaNamespaceBrowser.d.ts +21 -0
- package/dist/cjs/generated/prisma/internal/prismaNamespaceBrowser.js +2 -0
- package/dist/cjs/generated/prisma/models.d.ts +1 -0
- package/dist/cjs/node_modules/@prisma/client/runtime/client.js +8 -0
- package/dist/cjs/node_modules/@prisma/client/runtime/query_compiler_bg.postgresql.js +2 -0
- package/dist/cjs/node_modules/@prisma/client/runtime/query_compiler_bg.postgresql.wasm-base64.js +2 -0
- package/dist/cjs/node_modules/@prisma/client-runtime-utils/dist/index.js +14 -0
- package/dist/es/errors/common.errors.js +1 -1
- package/dist/es/filters/prisma-exception.filter.d.ts +1 -1
- package/dist/es/filters/prisma-exception.filter.js +1 -1
- package/dist/es/generated/prisma/browser.d.ts +4 -0
- package/dist/es/generated/prisma/client.d.ts +8 -0
- package/dist/es/generated/prisma/client.js +2 -0
- package/dist/es/generated/prisma/commonInputTypes.d.ts +1 -0
- package/dist/es/generated/prisma/enums.d.ts +1 -0
- package/dist/es/generated/prisma/enums.js +2 -0
- package/dist/es/generated/prisma/internal/class.d.ts +32 -0
- package/dist/es/generated/prisma/internal/class.js +2 -0
- package/dist/es/generated/prisma/internal/prismaNamespace.d.ts +248 -0
- package/dist/es/generated/prisma/internal/prismaNamespace.js +2 -0
- package/dist/es/generated/prisma/internal/prismaNamespaceBrowser.d.ts +21 -0
- package/dist/es/generated/prisma/internal/prismaNamespaceBrowser.js +2 -0
- package/dist/es/generated/prisma/models.d.ts +1 -0
- package/dist/es/node_modules/@prisma/client/runtime/client.js +7 -0
- package/dist/es/node_modules/@prisma/client/runtime/query_compiler_bg.postgresql.js +2 -0
- package/dist/es/node_modules/@prisma/client/runtime/query_compiler_bg.postgresql.wasm-base64.js +2 -0
- package/dist/es/node_modules/@prisma/client-runtime-utils/dist/index.js +13 -0
- package/dist/types/filters/prisma-exception.filter.d.ts +1 -1
- package/dist/types/generated/prisma/client.d.ts +12 -0
- package/dist/types/generated/prisma/enums.d.ts +2 -0
- package/dist/types/generated/prisma/internal/class.d.ts +36 -0
- package/dist/types/generated/prisma/internal/prismaNamespace.d.ts +251 -0
- package/dist/types/generated/prisma/internal/prismaNamespaceBrowser.d.ts +24 -0
- package/package.json +3 -3
- package/dist/cjs/node_modules/@prisma/client/runtime/library.js +0 -14
- package/dist/es/node_modules/@prisma/client/runtime/library.js +0 -14
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
function n(n){return"number"==typeof n.batchRequestIdx}function e(n,e){Object.defineProperty(n,"name",{value:e,configurable:!0})}var t=class n extends Error{clientVersion;errorCode;retryable;constructor(e,t,r){super(e),this.name="PrismaClientInitializationError",this.clientVersion=t,this.errorCode=r,Error.captureStackTrace(n)}get[Symbol.toStringTag](){return"PrismaClientInitializationError"}};e(t,"PrismaClientInitializationError");var r=class extends Error{code;meta;clientVersion;batchRequestIdx;constructor(n,{code:e,clientVersion:t,meta:r,batchRequestIdx:i}){super(n),this.name="PrismaClientKnownRequestError",this.code=e,this.clientVersion=t,this.meta=r,Object.defineProperty(this,"batchRequestIdx",{value:i,enumerable:!1,writable:!0})}get[Symbol.toStringTag](){return"PrismaClientKnownRequestError"}};e(r,"PrismaClientKnownRequestError");var i=class extends Error{clientVersion;_isPanic;constructor({clientVersion:n,error:e}){var t;super(function(n){if(n.fields?.message){let e=n.fields?.message;return n.fields?.file&&(e+=` in ${n.fields.file}`,n.fields?.line&&(e+=`:${n.fields.line}`),n.fields?.column&&(e+=`:${n.fields.column}`)),n.fields?.reason&&(e+=`\n${n.fields?.reason}`),e}return"Unknown error"}(e)??"Unknown error"),this._isPanic=(t=e,"PANIC"===t.fields?.message),this.clientVersion=n}get[Symbol.toStringTag](){return"PrismaClientRustError"}isPanic(){return this._isPanic}};e(i,"PrismaClientRustError");var s=class extends Error{clientVersion;constructor(n,e){super(n),this.name="PrismaClientRustPanicError",this.clientVersion=e}get[Symbol.toStringTag](){return"PrismaClientRustPanicError"}};e(s,"PrismaClientRustPanicError");var o=class extends Error{clientVersion;batchRequestIdx;constructor(n,{clientVersion:e,batchRequestIdx:t}){super(n),this.name="PrismaClientUnknownRequestError",this.clientVersion=e,Object.defineProperty(this,"batchRequestIdx",{value:t,writable:!0,enumerable:!1})}get[Symbol.toStringTag](){return"PrismaClientUnknownRequestError"}};e(o,"PrismaClientUnknownRequestError");var u=class extends Error{name="PrismaClientValidationError";clientVersion;constructor(n,{clientVersion:e}){super(n),this.clientVersion=e}get[Symbol.toStringTag](){return"PrismaClientValidationError"}};e(u,"PrismaClientValidationError");var c=Symbol(),a=new WeakMap,l=class{constructor(n){n===c?a.set(this,`Prisma.${this._getName()}`):a.set(this,`new Prisma.${this._getNamespace()}.${this._getName()}()`)}_getName(){return this.constructor.name}toString(){return a.get(this)}};function f(n,e){Object.defineProperty(n,"name",{value:e,configurable:!0})}var h=class extends l{_getNamespace(){return"NullTypes"}},d=class extends h{#n};f(d,"DbNull");var g=class extends h{#e};f(g,"JsonNull");var p=class extends h{#t};f(p,"AnyNull");var m={DbNull:d,JsonNull:g,AnyNull:p},w=new d(c),v=new g(c),N=new p(c);function b(n){return n===w}function E(n){return n===v}function x(n){return n===N}var y,P,q=9e15,M=1e9,R="0123456789abcdef",S="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",O="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",C={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-q,maxE:q,crypto:!1},_=!0,A="[DecimalError] ",T=A+"Invalid argument: ",V=A+"Precision limit exceeded",D=A+"crypto unavailable",F="[object Decimal]",I=Math.floor,Z=Math.pow,k=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,$=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,U=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,L=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,H=1e7,j=S.length-1,B=O.length-1,J={toStringTag:F};function z(n){var e,t,r,i=n.length-1,s="",o=n[0];if(i>0){for(s+=o,e=1;e<i;e++)(t=7-(r=n[e]+"").length)&&(s+=sn(t)),s+=r;(t=7-(r=(o=n[e])+"").length)&&(s+=sn(t))}else if(0===o)return"0";for(;o%10==0;)o/=10;return s+o}function K(n,e,t){if(n!==~~n||n<e||n>t)throw Error(T+n)}function W(n,e,t,r){var i,s,o,u;for(s=n[0];s>=10;s/=10)--e;return--e<0?(e+=7,i=0):(i=Math.ceil((e+1)/7),e%=7),s=Z(10,7-e),u=n[i]%s|0,null==r?e<3?(0==e?u=u/100|0:1==e&&(u=u/10|0),o=t<4&&99999==u||t>3&&49999==u||5e4==u||0==u):o=(t<4&&u+1==s||t>3&&u+1==s/2)&&(n[i+1]/s/100|0)==Z(10,e-2)-1||(u==s/2||0==u)&&!(n[i+1]/s/100|0):e<4?(0==e?u=u/1e3|0:1==e?u=u/100|0:2==e&&(u=u/10|0),o=(r||t<4)&&9999==u||!r&&t>3&&4999==u):o=((r||t<4)&&u+1==s||!r&&t>3&&u+1==s/2)&&(n[i+1]/s/1e3|0)==Z(10,e-3)-1,o}function G(n,e,t){for(var r,i,s=[0],o=0,u=n.length;o<u;){for(i=s.length;i--;)s[i]*=e;for(s[0]+=R.indexOf(n.charAt(o++)),r=0;r<s.length;r++)s[r]>t-1&&(void 0===s[r+1]&&(s[r+1]=0),s[r+1]+=s[r]/t|0,s[r]%=t)}return s.reverse()}J.absoluteValue=J.abs=function(){var n=new this.constructor(this);return n.s<0&&(n.s=1),X(n)},J.ceil=function(){return X(new this.constructor(this),this.e+1,2)},J.clampedTo=J.clamp=function(n,e){var t=this,r=t.constructor;if(n=new r(n),e=new r(e),!n.s||!e.s)return new r(NaN);if(n.gt(e))throw Error(T+e);return t.cmp(n)<0?n:t.cmp(e)>0?e:new r(t)},J.comparedTo=J.cmp=function(n){var e,t,r,i,s=this,o=s.d,u=(n=new s.constructor(n)).d,c=s.s,a=n.s;if(!o||!u)return c&&a?c!==a?c:o===u?0:!o^c<0?1:-1:NaN;if(!o[0]||!u[0])return o[0]?c:u[0]?-a:0;if(c!==a)return c;if(s.e!==n.e)return s.e>n.e^c<0?1:-1;for(e=0,t=(r=o.length)<(i=u.length)?r:i;e<t;++e)if(o[e]!==u[e])return o[e]>u[e]^c<0?1:-1;return r===i?0:r>i^c<0?1:-1},J.cosine=J.cos=function(){var n,e,t=this,r=t.constructor;return t.d?t.d[0]?(n=r.precision,e=r.rounding,r.precision=n+Math.max(t.e,t.sd())+7,r.rounding=1,t=function(n,e){var t,r,i;if(e.isZero())return e;r=e.d.length,r<32?i=(1/gn(4,t=Math.ceil(r/3))).toString():(t=16,i="2.3283064365386962890625e-10");n.precision+=t,e=dn(n,1,e.times(i),new n(1));for(var s=t;s--;){var o=e.times(e);e=o.times(o).minus(o).times(8).plus(1)}return n.precision-=t,e}(r,pn(r,t)),r.precision=n,r.rounding=e,X(2==P||3==P?t.neg():t,n,e,!0)):new r(1):new r(NaN)},J.cubeRoot=J.cbrt=function(){var n,e,t,r,i,s,o,u,c,a,l=this,f=l.constructor;if(!l.isFinite()||l.isZero())return new f(l);for(_=!1,(s=l.s*Z(l.s*l,1/3))&&Math.abs(s)!=1/0?r=new f(s.toString()):(t=z(l.d),(s=((n=l.e)-t.length+1)%3)&&(t+=1==s||-2==s?"0":"00"),s=Z(t,1/3),n=I((n+1)/3)-(n%3==(n<0?-1:2)),(r=new f(t=s==1/0?"5e"+n:(t=s.toExponential()).slice(0,t.indexOf("e")+1)+n)).s=l.s),o=(n=f.precision)+3;;)if(a=(c=(u=r).times(u).times(u)).plus(l),r=Q(a.plus(l).times(u),a.plus(c),o+2,1),z(u.d).slice(0,o)===(t=z(r.d)).slice(0,o)){if("9999"!=(t=t.slice(o-3,o+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(X(r,n+1,1),e=!r.times(r).times(r).eq(l));break}if(!i&&(X(u,n+1,0),u.times(u).times(u).eq(l))){r=u;break}o+=4,i=1}return _=!0,X(r,n,f.rounding,e)},J.decimalPlaces=J.dp=function(){var n,e=this.d,t=NaN;if(e){if(t=7*((n=e.length-1)-I(this.e/7)),n=e[n])for(;n%10==0;n/=10)t--;t<0&&(t=0)}return t},J.dividedBy=J.div=function(n){return Q(this,new this.constructor(n))},J.dividedToIntegerBy=J.divToInt=function(n){var e=this.constructor;return X(Q(this,new e(n),0,1,1),e.precision,e.rounding)},J.equals=J.eq=function(n){return 0===this.cmp(n)},J.floor=function(){return X(new this.constructor(this),this.e+1,3)},J.greaterThan=J.gt=function(n){return this.cmp(n)>0},J.greaterThanOrEqualTo=J.gte=function(n){var e=this.cmp(n);return 1==e||0===e},J.hyperbolicCosine=J.cosh=function(){var n,e,t,r,i,s=this,o=s.constructor,u=new o(1);if(!s.isFinite())return new o(s.s?1/0:NaN);if(s.isZero())return u;t=o.precision,r=o.rounding,o.precision=t+Math.max(s.e,s.sd())+4,o.rounding=1,(i=s.d.length)<32?e=(1/gn(4,n=Math.ceil(i/3))).toString():(n=16,e="2.3283064365386962890625e-10"),s=dn(o,1,s.times(e),new o(1),!0);for(var c,a=n,l=new o(8);a--;)c=s.times(s),s=u.minus(c.times(l.minus(c.times(l))));return X(s,o.precision=t,o.rounding=r,!0)},J.hyperbolicSine=J.sinh=function(){var n,e,t,r,i=this,s=i.constructor;if(!i.isFinite()||i.isZero())return new s(i);if(e=s.precision,t=s.rounding,s.precision=e+Math.max(i.e,i.sd())+4,s.rounding=1,(r=i.d.length)<3)i=dn(s,2,i,i,!0);else{n=(n=1.4*Math.sqrt(r))>16?16:0|n,i=dn(s,2,i=i.times(1/gn(5,n)),i,!0);for(var o,u=new s(5),c=new s(16),a=new s(20);n--;)o=i.times(i),i=i.times(u.plus(o.times(c.times(o).plus(a))))}return s.precision=e,s.rounding=t,X(i,e,t,!0)},J.hyperbolicTangent=J.tanh=function(){var n,e,t=this,r=t.constructor;return t.isFinite()?t.isZero()?new r(t):(n=r.precision,e=r.rounding,r.precision=n+7,r.rounding=1,Q(t.sinh(),t.cosh(),r.precision=n,r.rounding=e)):new r(t.s)},J.inverseCosine=J.acos=function(){var n=this,e=n.constructor,t=n.abs().cmp(1),r=e.precision,i=e.rounding;return-1!==t?0===t?n.isNeg()?tn(e,r,i):new e(0):new e(NaN):n.isZero()?tn(e,r+4,i).times(.5):(e.precision=r+6,e.rounding=1,n=new e(1).minus(n).div(n.plus(1)).sqrt().atan(),e.precision=r,e.rounding=i,n.times(2))},J.inverseHyperbolicCosine=J.acosh=function(){var n,e,t=this,r=t.constructor;return t.lte(1)?new r(t.eq(1)?0:NaN):t.isFinite()?(n=r.precision,e=r.rounding,r.precision=n+Math.max(Math.abs(t.e),t.sd())+4,r.rounding=1,_=!1,t=t.times(t).minus(1).sqrt().plus(t),_=!0,r.precision=n,r.rounding=e,t.ln()):new r(t)},J.inverseHyperbolicSine=J.asinh=function(){var n,e,t=this,r=t.constructor;return!t.isFinite()||t.isZero()?new r(t):(n=r.precision,e=r.rounding,r.precision=n+2*Math.max(Math.abs(t.e),t.sd())+6,r.rounding=1,_=!1,t=t.times(t).plus(1).sqrt().plus(t),_=!0,r.precision=n,r.rounding=e,t.ln())},J.inverseHyperbolicTangent=J.atanh=function(){var n,e,t,r,i=this,s=i.constructor;return i.isFinite()?i.e>=0?new s(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(n=s.precision,e=s.rounding,r=i.sd(),Math.max(r,n)<2*-i.e-1?X(new s(i),n,e,!0):(s.precision=t=r-i.e,i=Q(i.plus(1),new s(1).minus(i),t+n,1),s.precision=n+4,s.rounding=1,i=i.ln(),s.precision=n,s.rounding=e,i.times(.5))):new s(NaN)},J.inverseSine=J.asin=function(){var n,e,t,r,i=this,s=i.constructor;return i.isZero()?new s(i):(e=i.abs().cmp(1),t=s.precision,r=s.rounding,-1!==e?0===e?((n=tn(s,t+4,r).times(.5)).s=i.s,n):new s(NaN):(s.precision=t+6,s.rounding=1,i=i.div(new s(1).minus(i.times(i)).sqrt().plus(1)).atan(),s.precision=t,s.rounding=r,i.times(2)))},J.inverseTangent=J.atan=function(){var n,e,t,r,i,s,o,u,c,a=this,l=a.constructor,f=l.precision,h=l.rounding;if(a.isFinite()){if(a.isZero())return new l(a);if(a.abs().eq(1)&&f+4<=B)return(o=tn(l,f+4,h).times(.25)).s=a.s,o}else{if(!a.s)return new l(NaN);if(f+4<=B)return(o=tn(l,f+4,h).times(.5)).s=a.s,o}for(l.precision=u=f+10,l.rounding=1,n=t=Math.min(28,u/7+2|0);n;--n)a=a.div(a.times(a).plus(1).sqrt().plus(1));for(_=!1,e=Math.ceil(u/7),r=1,c=a.times(a),o=new l(a),i=a;-1!==n;)if(i=i.times(c),s=o.minus(i.div(r+=2)),i=i.times(c),void 0!==(o=s.plus(i.div(r+=2))).d[e])for(n=e;o.d[n]===s.d[n]&&n--;);return t&&(o=o.times(2<<t-1)),_=!0,X(o,l.precision=f,l.rounding=h,!0)},J.isFinite=function(){return!!this.d},J.isInteger=J.isInt=function(){return!!this.d&&I(this.e/7)>this.d.length-2},J.isNaN=function(){return!this.s},J.isNegative=J.isNeg=function(){return this.s<0},J.isPositive=J.isPos=function(){return this.s>0},J.isZero=function(){return!!this.d&&0===this.d[0]},J.lessThan=J.lt=function(n){return this.cmp(n)<0},J.lessThanOrEqualTo=J.lte=function(n){return this.cmp(n)<1},J.logarithm=J.log=function(n){var e,t,r,i,s,o,u,c,a=this,l=a.constructor,f=l.precision,h=l.rounding;if(null==n)n=new l(10),e=!0;else{if(t=(n=new l(n)).d,n.s<0||!t||!t[0]||n.eq(1))return new l(NaN);e=n.eq(10)}if(t=a.d,a.s<0||!t||!t[0]||a.eq(1))return new l(t&&!t[0]?-1/0:1!=a.s?NaN:t?0:1/0);if(e)if(t.length>1)s=!0;else{for(i=t[0];i%10==0;)i/=10;s=1!==i}if(_=!1,o=ln(a,u=f+5),r=e?en(l,u+10):ln(n,u),W((c=Q(o,r,u,1)).d,i=f,h))do{if(o=ln(a,u+=10),r=e?en(l,u+10):ln(n,u),c=Q(o,r,u,1),!s){+z(c.d).slice(i+1,i+15)+1==1e14&&(c=X(c,f+1,0));break}}while(W(c.d,i+=10,h));return _=!0,X(c,f,h)},J.minus=J.sub=function(n){var e,t,r,i,s,o,u,c,a,l,f,h,d=this,g=d.constructor;if(n=new g(n),!d.d||!n.d)return d.s&&n.s?d.d?n.s=-n.s:n=new g(n.d||d.s!==n.s?d:NaN):n=new g(NaN),n;if(d.s!=n.s)return n.s=-n.s,d.plus(n);if(a=d.d,h=n.d,u=g.precision,c=g.rounding,!a[0]||!h[0]){if(h[0])n.s=-n.s;else{if(!a[0])return new g(3===c?-0:0);n=new g(d)}return _?X(n,u,c):n}if(t=I(n.e/7),l=I(d.e/7),a=a.slice(),s=l-t){for((f=s<0)?(e=a,s=-s,o=h.length):(e=h,t=l,o=a.length),s>(r=Math.max(Math.ceil(u/7),o)+2)&&(s=r,e.length=1),e.reverse(),r=s;r--;)e.push(0);e.reverse()}else{for((f=(r=a.length)<(o=h.length))&&(o=r),r=0;r<o;r++)if(a[r]!=h[r]){f=a[r]<h[r];break}s=0}for(f&&(e=a,a=h,h=e,n.s=-n.s),o=a.length,r=h.length-o;r>0;--r)a[o++]=0;for(r=h.length;r>s;){if(a[--r]<h[r]){for(i=r;i&&0===a[--i];)a[i]=H-1;--a[i],a[r]+=H}a[r]-=h[r]}for(;0===a[--o];)a.pop();for(;0===a[0];a.shift())--t;return a[0]?(n.d=a,n.e=nn(a,t),_?X(n,u,c):n):new g(3===c?-0:0)},J.modulo=J.mod=function(n){var e,t=this,r=t.constructor;return n=new r(n),!t.d||!n.s||n.d&&!n.d[0]?new r(NaN):!n.d||t.d&&!t.d[0]?X(new r(t),r.precision,r.rounding):(_=!1,9==r.modulo?(e=Q(t,n.abs(),0,3,1)).s*=n.s:e=Q(t,n,0,r.modulo,1),e=e.times(n),_=!0,t.minus(e))},J.naturalExponential=J.exp=function(){return an(this)},J.naturalLogarithm=J.ln=function(){return ln(this)},J.negated=J.neg=function(){var n=new this.constructor(this);return n.s=-n.s,X(n)},J.plus=J.add=function(n){var e,t,r,i,s,o,u,c,a,l,f=this,h=f.constructor;if(n=new h(n),!f.d||!n.d)return f.s&&n.s?f.d||(n=new h(n.d||f.s===n.s?f:NaN)):n=new h(NaN),n;if(f.s!=n.s)return n.s=-n.s,f.minus(n);if(a=f.d,l=n.d,u=h.precision,c=h.rounding,!a[0]||!l[0])return l[0]||(n=new h(f)),_?X(n,u,c):n;if(s=I(f.e/7),r=I(n.e/7),a=a.slice(),i=s-r){for(i<0?(t=a,i=-i,o=l.length):(t=l,r=s,o=a.length),i>(o=(s=Math.ceil(u/7))>o?s+1:o+1)&&(i=o,t.length=1),t.reverse();i--;)t.push(0);t.reverse()}for((o=a.length)-(i=l.length)<0&&(i=o,t=l,l=a,a=t),e=0;i;)e=(a[--i]=a[i]+l[i]+e)/H|0,a[i]%=H;for(e&&(a.unshift(e),++r),o=a.length;0==a[--o];)a.pop();return n.d=a,n.e=nn(a,r),_?X(n,u,c):n},J.precision=J.sd=function(n){var e,t=this;if(void 0!==n&&n!==!!n&&1!==n&&0!==n)throw Error(T+n);return t.d?(e=rn(t.d),n&&t.e+1>e&&(e=t.e+1)):e=NaN,e},J.round=function(){var n=this,e=n.constructor;return X(new e(n),n.e+1,e.rounding)},J.sine=J.sin=function(){var n,e,t=this,r=t.constructor;return t.isFinite()?t.isZero()?new r(t):(n=r.precision,e=r.rounding,r.precision=n+Math.max(t.e,t.sd())+7,r.rounding=1,t=function(n,e){var t,r=e.d.length;if(r<3)return e.isZero()?e:dn(n,2,e,e);t=(t=1.4*Math.sqrt(r))>16?16:0|t,e=e.times(1/gn(5,t)),e=dn(n,2,e,e);for(var i,s=new n(5),o=new n(16),u=new n(20);t--;)i=e.times(e),e=e.times(s.plus(i.times(o.times(i).minus(u))));return e}(r,pn(r,t)),r.precision=n,r.rounding=e,X(P>2?t.neg():t,n,e,!0)):new r(NaN)},J.squareRoot=J.sqrt=function(){var n,e,t,r,i,s,o=this,u=o.d,c=o.e,a=o.s,l=o.constructor;if(1!==a||!u||!u[0])return new l(!a||a<0&&(!u||u[0])?NaN:u?o:1/0);for(_=!1,0==(a=Math.sqrt(+o))||a==1/0?(((e=z(u)).length+c)%2==0&&(e+="0"),a=Math.sqrt(e),c=I((c+1)/2)-(c<0||c%2),r=new l(e=a==1/0?"5e"+c:(e=a.toExponential()).slice(0,e.indexOf("e")+1)+c)):r=new l(a.toString()),t=(c=l.precision)+3;;)if(r=(s=r).plus(Q(o,s,t+2,1)).times(.5),z(s.d).slice(0,t)===(e=z(r.d)).slice(0,t)){if("9999"!=(e=e.slice(t-3,t+1))&&(i||"4999"!=e)){+e&&(+e.slice(1)||"5"!=e.charAt(0))||(X(r,c+1,1),n=!r.times(r).eq(o));break}if(!i&&(X(s,c+1,0),s.times(s).eq(o))){r=s;break}t+=4,i=1}return _=!0,X(r,c,l.rounding,n)},J.tangent=J.tan=function(){var n,e,t=this,r=t.constructor;return t.isFinite()?t.isZero()?new r(t):(n=r.precision,e=r.rounding,r.precision=n+10,r.rounding=1,(t=t.sin()).s=1,t=Q(t,new r(1).minus(t.times(t)).sqrt(),n+10,0),r.precision=n,r.rounding=e,X(2==P||4==P?t.neg():t,n,e,!0)):new r(NaN)},J.times=J.mul=function(n){var e,t,r,i,s,o,u,c,a,l=this,f=l.constructor,h=l.d,d=(n=new f(n)).d;if(n.s*=l.s,!(h&&h[0]&&d&&d[0]))return new f(!n.s||h&&!h[0]&&!d||d&&!d[0]&&!h?NaN:h&&d?0*n.s:n.s/0);for(t=I(l.e/7)+I(n.e/7),(c=h.length)<(a=d.length)&&(s=h,h=d,d=s,o=c,c=a,a=o),s=[],r=o=c+a;r--;)s.push(0);for(r=a;--r>=0;){for(e=0,i=c+r;i>r;)u=s[i]+d[r]*h[i-r-1]+e,s[i--]=u%H|0,e=u/H|0;s[i]=(s[i]+e)%H|0}for(;!s[--o];)s.pop();return e?++t:s.shift(),n.d=s,n.e=nn(s,t),_?X(n,f.precision,f.rounding):n},J.toBinary=function(n,e){return mn(this,2,n,e)},J.toDecimalPlaces=J.toDP=function(n,e){var t=this,r=t.constructor;return t=new r(t),void 0===n?t:(K(n,0,M),void 0===e?e=r.rounding:K(e,0,8),X(t,n+t.e+1,e))},J.toExponential=function(n,e){var t,r=this,i=r.constructor;return void 0===n?t=Y(r,!0):(K(n,0,M),void 0===e?e=i.rounding:K(e,0,8),t=Y(r=X(new i(r),n+1,e),!0,n+1)),r.isNeg()&&!r.isZero()?"-"+t:t},J.toFixed=function(n,e){var t,r,i=this,s=i.constructor;return void 0===n?t=Y(i):(K(n,0,M),void 0===e?e=s.rounding:K(e,0,8),t=Y(r=X(new s(i),n+i.e+1,e),!1,n+r.e+1)),i.isNeg()&&!i.isZero()?"-"+t:t},J.toFraction=function(n){var e,t,r,i,s,o,u,c,a,l,f,h,d=this,g=d.d,p=d.constructor;if(!g)return new p(d);if(a=t=new p(1),r=c=new p(0),o=(s=(e=new p(r)).e=rn(g)-d.e-1)%7,e.d[0]=Z(10,o<0?7+o:o),null==n)n=s>0?e:a;else{if(!(u=new p(n)).isInt()||u.lt(a))throw Error(T+u);n=u.gt(e)?s>0?e:a:u}for(_=!1,u=new p(z(g)),l=p.precision,p.precision=s=7*g.length*2;f=Q(u,e,0,1,1),1!=(i=t.plus(f.times(r))).cmp(n);)t=r,r=i,i=a,a=c.plus(f.times(i)),c=i,i=e,e=u.minus(f.times(i)),u=i;return i=Q(n.minus(t),r,0,1,1),c=c.plus(i.times(a)),t=t.plus(i.times(r)),c.s=a.s=d.s,h=Q(a,r,s,1).minus(d).abs().cmp(Q(c,t,s,1).minus(d).abs())<1?[a,r]:[c,t],p.precision=l,_=!0,h},J.toHexadecimal=J.toHex=function(n,e){return mn(this,16,n,e)},J.toNearest=function(n,e){var t=this,r=t.constructor;if(t=new r(t),null==n){if(!t.d)return t;n=new r(1),e=r.rounding}else{if(n=new r(n),void 0===e?e=r.rounding:K(e,0,8),!t.d)return n.s?t:n;if(!n.d)return n.s&&(n.s=t.s),n}return n.d[0]?(_=!1,t=Q(t,n,0,e,1).times(n),_=!0,X(t)):(n.s=t.s,t=n),t},J.toNumber=function(){return+this},J.toOctal=function(n,e){return mn(this,8,n,e)},J.toPower=J.pow=function(n){var e,t,r,i,s,o,u=this,c=u.constructor,a=+(n=new c(n));if(!(u.d&&n.d&&u.d[0]&&n.d[0]))return new c(Z(+u,a));if((u=new c(u)).eq(1))return u;if(r=c.precision,s=c.rounding,n.eq(1))return X(u,r,s);if((e=I(n.e/7))>=n.d.length-1&&(t=a<0?-a:a)<=9007199254740991)return i=on(c,u,t,r),n.s<0?new c(1).div(i):X(i,r,s);if((o=u.s)<0){if(e<n.d.length-1)return new c(NaN);if(1&n.d[e]||(o=1),0==u.e&&1==u.d[0]&&1==u.d.length)return u.s=o,u}return(e=0!=(t=Z(+u,a))&&isFinite(t)?new c(t+"").e:I(a*(Math.log("0."+z(u.d))/Math.LN10+u.e+1)))>c.maxE+1||e<c.minE-1?new c(e>0?o/0:0):(_=!1,c.rounding=u.s=1,t=Math.min(12,(e+"").length),(i=an(n.times(ln(u,r+t)),r)).d&&W((i=X(i,r+5,1)).d,r,s)&&(e=r+10,+z((i=X(an(n.times(ln(u,e+t)),e),e+5,1)).d).slice(r+1,r+15)+1==1e14&&(i=X(i,r+1,0))),i.s=o,_=!0,c.rounding=s,X(i,r,s))},J.toPrecision=function(n,e){var t,r=this,i=r.constructor;return void 0===n?t=Y(r,r.e<=i.toExpNeg||r.e>=i.toExpPos):(K(n,1,M),void 0===e?e=i.rounding:K(e,0,8),t=Y(r=X(new i(r),n,e),n<=r.e||r.e<=i.toExpNeg,n)),r.isNeg()&&!r.isZero()?"-"+t:t},J.toSignificantDigits=J.toSD=function(n,e){var t=this.constructor;return void 0===n?(n=t.precision,e=t.rounding):(K(n,1,M),void 0===e?e=t.rounding:K(e,0,8)),X(new t(this),n,e)},J.toString=function(){var n=this,e=n.constructor,t=Y(n,n.e<=e.toExpNeg||n.e>=e.toExpPos);return n.isNeg()&&!n.isZero()?"-"+t:t},J.truncated=J.trunc=function(){return X(new this.constructor(this),this.e+1,1)},J.valueOf=J.toJSON=function(){var n=this,e=n.constructor,t=Y(n,n.e<=e.toExpNeg||n.e>=e.toExpPos);return n.isNeg()?"-"+t:t};var Q=function(){function n(n,e,t){var r,i=0,s=n.length;for(n=n.slice();s--;)r=n[s]*e+i,n[s]=r%t|0,i=r/t|0;return i&&n.unshift(i),n}function e(n,e,t,r){var i,s;if(t!=r)s=t>r?1:-1;else for(i=s=0;i<t;i++)if(n[i]!=e[i]){s=n[i]>e[i]?1:-1;break}return s}function t(n,e,t,r){for(var i=0;t--;)n[t]-=i,i=n[t]<e[t]?1:0,n[t]=i*r+n[t]-e[t];for(;!n[0]&&n.length>1;)n.shift()}return function(r,i,s,o,u,c){var a,l,f,h,d,g,p,m,w,v,N,b,E,x,P,q,M,R,S,O,C=r.constructor,_=r.s==i.s?1:-1,A=r.d,T=i.d;if(!(A&&A[0]&&T&&T[0]))return new C(r.s&&i.s&&(A?!T||A[0]!=T[0]:T)?A&&0==A[0]||!T?0*_:_/0:NaN);for(c?(d=1,l=r.e-i.e):(c=H,d=7,l=I(r.e/d)-I(i.e/d)),S=T.length,M=A.length,v=(w=new C(_)).d=[],f=0;T[f]==(A[f]||0);f++);if(T[f]>(A[f]||0)&&l--,null==s?(x=s=C.precision,o=C.rounding):x=u?s+(r.e-i.e)+1:s,x<0)v.push(1),g=!0;else{if(x=x/d+2|0,f=0,1==S){for(h=0,T=T[0],x++;(f<M||h)&&x--;f++)P=h*c+(A[f]||0),v[f]=P/T|0,h=P%T|0;g=h||f<M}else{for((h=c/(T[0]+1)|0)>1&&(T=n(T,h,c),A=n(A,h,c),S=T.length,M=A.length),q=S,b=(N=A.slice(0,S)).length;b<S;)N[b++]=0;(O=T.slice()).unshift(0),R=T[0],T[1]>=c/2&&++R;do{h=0,(a=e(T,N,S,b))<0?(E=N[0],S!=b&&(E=E*c+(N[1]||0)),(h=E/R|0)>1?(h>=c&&(h=c-1),1==(a=e(p=n(T,h,c),N,m=p.length,b=N.length))&&(h--,t(p,S<m?O:T,m,c))):(0==h&&(a=h=1),p=T.slice()),(m=p.length)<b&&p.unshift(0),t(N,p,b,c),-1==a&&(a=e(T,N,S,b=N.length))<1&&(h++,t(N,S<b?O:T,b,c)),b=N.length):0===a&&(h++,N=[0]),v[f++]=h,a&&N[0]?N[b++]=A[q]||0:(N=[A[q]],b=1)}while((q++<M||void 0!==N[0])&&x--);g=void 0!==N[0]}v[0]||v.shift()}if(1==d)w.e=l,y=g;else{for(f=1,h=v[0];h>=10;h/=10)f++;w.e=f+l*d-1,X(w,u?s+w.e+1:s,o,g)}return w}}();function X(n,e,t,r){var i,s,o,u,c,a,l,f,h,d=n.constructor;n:if(null!=e){if(!(f=n.d))return n;for(i=1,u=f[0];u>=10;u/=10)i++;if((s=e-i)<0)s+=7,o=e,c=(l=f[h=0])/Z(10,i-o-1)%10|0;else if((h=Math.ceil((s+1)/7))>=(u=f.length)){if(!r)break n;for(;u++<=h;)f.push(0);l=c=0,i=1,o=(s%=7)-7+1}else{for(l=u=f[h],i=1;u>=10;u/=10)i++;c=(o=(s%=7)-7+i)<0?0:l/Z(10,i-o-1)%10|0}if(r=r||e<0||void 0!==f[h+1]||(o<0?l:l%Z(10,i-o-1)),a=t<4?(c||r)&&(0==t||t==(n.s<0?3:2)):c>5||5==c&&(4==t||r||6==t&&(s>0?o>0?l/Z(10,i-o):0:f[h-1])%10&1||t==(n.s<0?8:7)),e<1||!f[0])return f.length=0,a?(e-=n.e+1,f[0]=Z(10,(7-e%7)%7),n.e=-e||0):f[0]=n.e=0,n;if(0==s?(f.length=h,u=1,h--):(f.length=h+1,u=Z(10,7-s),f[h]=o>0?(l/Z(10,i-o)%Z(10,o)|0)*u:0),a)for(;;){if(0==h){for(s=1,o=f[0];o>=10;o/=10)s++;for(o=f[0]+=u,u=1;o>=10;o/=10)u++;s!=u&&(n.e++,f[0]==H&&(f[0]=1));break}if(f[h]+=u,f[h]!=H)break;f[h--]=0,u=1}for(s=f.length;0===f[--s];)f.pop()}return _&&(n.e>d.maxE?(n.d=null,n.e=NaN):n.e<d.minE&&(n.e=0,n.d=[0])),n}function Y(n,e,t){if(!n.isFinite())return fn(n);var r,i=n.e,s=z(n.d),o=s.length;return e?(t&&(r=t-o)>0?s=s.charAt(0)+"."+s.slice(1)+sn(r):o>1&&(s=s.charAt(0)+"."+s.slice(1)),s=s+(n.e<0?"e":"e+")+n.e):i<0?(s="0."+sn(-i-1)+s,t&&(r=t-o)>0&&(s+=sn(r))):i>=o?(s+=sn(i+1-o),t&&(r=t-i-1)>0&&(s=s+"."+sn(r))):((r=i+1)<o&&(s=s.slice(0,r)+"."+s.slice(r)),t&&(r=t-o)>0&&(i+1===o&&(s+="."),s+=sn(r))),s}function nn(n,e){var t=n[0];for(e*=7;t>=10;t/=10)e++;return e}function en(n,e,t){if(e>j)throw _=!0,t&&(n.precision=t),Error(V);return X(new n(S),e,1,!0)}function tn(n,e,t){if(e>B)throw Error(V);return X(new n(O),e,t,!0)}function rn(n){var e=n.length-1,t=7*e+1;if(e=n[e]){for(;e%10==0;e/=10)t--;for(e=n[0];e>=10;e/=10)t++}return t}function sn(n){for(var e="";n--;)e+="0";return e}function on(n,e,t,r){var i,s=new n(1),o=Math.ceil(r/7+4);for(_=!1;;){if(t%2&&wn((s=s.times(e)).d,o)&&(i=!0),0===(t=I(t/2))){t=s.d.length-1,i&&0===s.d[t]&&++s.d[t];break}wn((e=e.times(e)).d,o)}return _=!0,s}function un(n){return 1&n.d[n.d.length-1]}function cn(n,e,t){for(var r,i,s=new n(e[0]),o=0;++o<e.length;){if(!(i=new n(e[o])).s){s=i;break}((r=s.cmp(i))===t||0===r&&s.s===t)&&(s=i)}return s}function an(n,e){var t,r,i,s,o,u,c,a=0,l=0,f=0,h=n.constructor,d=h.rounding,g=h.precision;if(!n.d||!n.d[0]||n.e>17)return new h(n.d?n.d[0]?n.s<0?0:1/0:1:n.s?n.s<0?0:n:NaN);for(null==e?(_=!1,c=g):c=e,u=new h(.03125);n.e>-2;)n=n.times(u),f+=5;for(c+=r=Math.log(Z(2,f))/Math.LN10*2+5|0,t=s=o=new h(1),h.precision=c;;){if(s=X(s.times(n),c,1),t=t.times(++l),z((u=o.plus(Q(s,t,c,1))).d).slice(0,c)===z(o.d).slice(0,c)){for(i=f;i--;)o=X(o.times(o),c,1);if(null!=e)return h.precision=g,o;if(!(a<3&&W(o.d,c-r,d,a)))return X(o,h.precision=g,d,_=!0);h.precision=c+=10,t=s=u=new h(1),l=0,a++}o=u}}function ln(n,e){var t,r,i,s,o,u,c,a,l,f,h,d=1,g=n,p=g.d,m=g.constructor,w=m.rounding,v=m.precision;if(g.s<0||!p||!p[0]||!g.e&&1==p[0]&&1==p.length)return new m(p&&!p[0]?-1/0:1!=g.s?NaN:p?0:g);if(null==e?(_=!1,l=v):l=e,m.precision=l+=10,r=(t=z(p)).charAt(0),!(Math.abs(s=g.e)<15e14))return a=en(m,l+2,v).times(s+""),g=ln(new m(r+"."+t.slice(1)),l-10).plus(a),m.precision=v,null==e?X(g,v,w,_=!0):g;for(;r<7&&1!=r||1==r&&t.charAt(1)>3;)r=(t=z((g=g.times(n)).d)).charAt(0),d++;for(s=g.e,r>1?(g=new m("0."+t),s++):g=new m(r+"."+t.slice(1)),f=g,c=o=g=Q(g.minus(1),g.plus(1),l,1),h=X(g.times(g),l,1),i=3;;){if(o=X(o.times(h),l,1),z((a=c.plus(Q(o,new m(i),l,1))).d).slice(0,l)===z(c.d).slice(0,l)){if(c=c.times(2),0!==s&&(c=c.plus(en(m,l+2,v).times(s+""))),c=Q(c,new m(d),l,1),null!=e)return m.precision=v,c;if(!W(c.d,l-10,w,u))return X(c,m.precision=v,w,_=!0);m.precision=l+=10,a=o=g=Q(f.minus(1),f.plus(1),l,1),h=X(g.times(g),l,1),i=u=1}c=a,i+=2}}function fn(n){return String(n.s*n.s/0)}function hn(n,e){var t,r,i;for((t=e.indexOf("."))>-1&&(e=e.replace(".","")),(r=e.search(/e/i))>0?(t<0&&(t=r),t+=+e.slice(r+1),e=e.substring(0,r)):t<0&&(t=e.length),r=0;48===e.charCodeAt(r);r++);for(i=e.length;48===e.charCodeAt(i-1);--i);if(e=e.slice(r,i)){if(i-=r,n.e=t=t-r-1,n.d=[],r=(t+1)%7,t<0&&(r+=7),r<i){for(r&&n.d.push(+e.slice(0,r)),i-=7;r<i;)n.d.push(+e.slice(r,r+=7));r=7-(e=e.slice(r)).length}else r-=i;for(;r--;)e+="0";n.d.push(+e),_&&(n.e>n.constructor.maxE?(n.d=null,n.e=NaN):n.e<n.constructor.minE&&(n.e=0,n.d=[0]))}else n.e=0,n.d=[0];return n}function dn(n,e,t,r,i){var s,o,u,c,a=n.precision,l=Math.ceil(a/7);for(_=!1,c=t.times(t),u=new n(r);;){if(o=Q(u.times(c),new n(e++*e++),a,1),u=i?r.plus(o):r.minus(o),r=Q(o.times(c),new n(e++*e++),a,1),void 0!==(o=u.plus(r)).d[l]){for(s=l;o.d[s]===u.d[s]&&s--;);if(-1==s)break}s=u,u=r,r=o,o=s}return _=!0,o.d.length=l+1,o}function gn(n,e){for(var t=n;--e;)t*=n;return t}function pn(n,e){var t,r=e.s<0,i=tn(n,n.precision,1),s=i.times(.5);if((e=e.abs()).lte(s))return P=r?4:1,e;if((t=e.divToInt(i)).isZero())P=r?3:2;else{if((e=e.minus(t.times(i))).lte(s))return P=un(t)?r?2:3:r?4:1,e;P=un(t)?r?1:4:r?3:2}return e.minus(i).abs()}function mn(n,e,t,r){var i,s,o,u,c,a,l,f,h,d=n.constructor,g=void 0!==t;if(g?(K(t,1,M),void 0===r?r=d.rounding:K(r,0,8)):(t=d.precision,r=d.rounding),n.isFinite()){for(g?(i=2,16==e?t=4*t-3:8==e&&(t=3*t-2)):i=e,(o=(l=Y(n)).indexOf("."))>=0&&(l=l.replace(".",""),(h=new d(1)).e=l.length-o,h.d=G(Y(h),10,i),h.e=h.d.length),s=c=(f=G(l,10,i)).length;0==f[--c];)f.pop();if(f[0]){if(o<0?s--:((n=new d(n)).d=f,n.e=s,f=(n=Q(n,h,t,r,0,i)).d,s=n.e,a=y),o=f[t],u=i/2,a=a||void 0!==f[t+1],a=r<4?(void 0!==o||a)&&(0===r||r===(n.s<0?3:2)):o>u||o===u&&(4===r||a||6===r&&1&f[t-1]||r===(n.s<0?8:7)),f.length=t,a)for(;++f[--t]>i-1;)f[t]=0,t||(++s,f.unshift(1));for(c=f.length;!f[c-1];--c);for(o=0,l="";o<c;o++)l+=R.charAt(f[o]);if(g){if(c>1)if(16==e||8==e){for(o=16==e?4:3,--c;c%o;c++)l+="0";for(c=(f=G(l,i,e)).length;!f[c-1];--c);for(o=1,l="1.";o<c;o++)l+=R.charAt(f[o])}else l=l.charAt(0)+"."+l.slice(1);l=l+(s<0?"p":"p+")+s}else if(s<0){for(;++s;)l="0"+l;l="0."+l}else if(++s>c)for(s-=c;s--;)l+="0";else s<c&&(l=l.slice(0,s)+"."+l.slice(s))}else l=g?"0p+0":"0";l=(16==e?"0x":2==e?"0b":8==e?"0o":"")+l}else l=fn(n);return n.s<0?"-"+l:l}function wn(n,e){if(n.length>e)return n.length=e,!0}function vn(n){return new this(n).abs()}function Nn(n){return new this(n).acos()}function bn(n){return new this(n).acosh()}function En(n,e){return new this(n).plus(e)}function xn(n){return new this(n).asin()}function yn(n){return new this(n).asinh()}function Pn(n){return new this(n).atan()}function qn(n){return new this(n).atanh()}function Mn(n,e){n=new this(n),e=new this(e);var t,r=this.precision,i=this.rounding,s=r+4;return n.s&&e.s?n.d||e.d?!e.d||n.isZero()?(t=e.s<0?tn(this,r,i):new this(0)).s=n.s:!n.d||e.isZero()?(t=tn(this,s,1).times(.5)).s=n.s:e.s<0?(this.precision=s,this.rounding=1,t=this.atan(Q(n,e,s,1)),e=tn(this,s,1),this.precision=r,this.rounding=i,t=n.s<0?t.minus(e):t.plus(e)):t=this.atan(Q(n,e,s,1)):(t=tn(this,s,1).times(e.s>0?.25:.75)).s=n.s:t=new this(NaN),t}function Rn(n){return new this(n).cbrt()}function Sn(n){return X(n=new this(n),n.e+1,2)}function On(n,e,t){return new this(n).clamp(e,t)}function Cn(n){if(!n||"object"!=typeof n)throw Error(A+"Object expected");var e,t,r,i=!0===n.defaults,s=["precision",1,M,"rounding",0,8,"toExpNeg",-q,0,"toExpPos",0,q,"maxE",0,q,"minE",-q,0,"modulo",0,9];for(e=0;e<s.length;e+=3)if(t=s[e],i&&(this[t]=C[t]),void 0!==(r=n[t])){if(!(I(r)===r&&r>=s[e+1]&&r<=s[e+2]))throw Error(T+t+": "+r);this[t]=r}if(t="crypto",i&&(this[t]=C[t]),void 0!==(r=n[t])){if(!0!==r&&!1!==r&&0!==r&&1!==r)throw Error(T+t+": "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(D);this[t]=!0}else this[t]=!1}return this}function _n(n){return new this(n).cos()}function An(n){return new this(n).cosh()}function Tn(n,e){return new this(n).div(e)}function Vn(n){return new this(n).exp()}function Dn(n){return X(n=new this(n),n.e+1,3)}function Fn(){var n,e,t=new this(0);for(_=!1,n=0;n<arguments.length;)if((e=new this(arguments[n++])).d)t.d&&(t=t.plus(e.times(e)));else{if(e.s)return _=!0,new this(1/0);t=e}return _=!0,t.sqrt()}function In(n){return n instanceof ie||n&&n.toStringTag===F||!1}function Zn(n){return new this(n).ln()}function kn(n,e){return new this(n).log(e)}function $n(n){return new this(n).log(2)}function Un(n){return new this(n).log(10)}function Ln(){return cn(this,arguments,-1)}function Hn(){return cn(this,arguments,1)}function jn(n,e){return new this(n).mod(e)}function Bn(n,e){return new this(n).mul(e)}function Jn(n,e){return new this(n).pow(e)}function zn(n){var e,t,r,i,s=0,o=new this(1),u=[];if(void 0===n?n=this.precision:K(n,1,M),r=Math.ceil(n/7),this.crypto)if(crypto.getRandomValues)for(e=crypto.getRandomValues(new Uint32Array(r));s<r;)(i=e[s])>=429e7?e[s]=crypto.getRandomValues(new Uint32Array(1))[0]:u[s++]=i%1e7;else{if(!crypto.randomBytes)throw Error(D);for(e=crypto.randomBytes(r*=4);s<r;)(i=e[s]+(e[s+1]<<8)+(e[s+2]<<16)+((127&e[s+3])<<24))>=214e7?crypto.randomBytes(4).copy(e,s):(u.push(i%1e7),s+=4);s=r/4}else for(;s<r;)u[s++]=1e7*Math.random()|0;for(n%=7,(r=u[--s])&&n&&(i=Z(10,7-n),u[s]=(r/i|0)*i);0===u[s];s--)u.pop();if(s<0)t=0,u=[0];else{for(t=-1;0===u[0];t-=7)u.shift();for(r=1,i=u[0];i>=10;i/=10)r++;r<7&&(t-=7-r)}return o.e=t,o.d=u,o}function Kn(n){return X(n=new this(n),n.e+1,this.rounding)}function Wn(n){return(n=new this(n)).d?n.d[0]?n.s:0*n.s:n.s||NaN}function Gn(n){return new this(n).sin()}function Qn(n){return new this(n).sinh()}function Xn(n){return new this(n).sqrt()}function Yn(n,e){return new this(n).sub(e)}function ne(){var n=0,e=arguments,t=new this(e[n]);for(_=!1;t.s&&++n<e.length;)t=t.plus(e[n]);return _=!0,X(t,this.precision,this.rounding)}function ee(n){return new this(n).tan()}function te(n){return new this(n).tanh()}function re(n){return X(n=new this(n),n.e+1,1)}J[Symbol.for("nodejs.util.inspect.custom")]=J.toString,J[Symbol.toStringTag]="Decimal";var ie=J.constructor=function n(e){var t,r,i;function s(n){var e,t,r,i=this;if(!(i instanceof s))return new s(n);if(i.constructor=s,In(n))return i.s=n.s,void(_?!n.d||n.e>s.maxE?(i.e=NaN,i.d=null):n.e<s.minE?(i.e=0,i.d=[0]):(i.e=n.e,i.d=n.d.slice()):(i.e=n.e,i.d=n.d?n.d.slice():n.d));if("number"===(r=typeof n)){if(0===n)return i.s=1/n<0?-1:1,i.e=0,void(i.d=[0]);if(n<0?(n=-n,i.s=-1):i.s=1,n===~~n&&n<1e7){for(e=0,t=n;t>=10;t/=10)e++;return void(_?e>s.maxE?(i.e=NaN,i.d=null):e<s.minE?(i.e=0,i.d=[0]):(i.e=e,i.d=[n]):(i.e=e,i.d=[n]))}return 0*n!=0?(n||(i.s=NaN),i.e=NaN,void(i.d=null)):hn(i,n.toString())}if("string"===r)return 45===(t=n.charCodeAt(0))?(n=n.slice(1),i.s=-1):(43===t&&(n=n.slice(1)),i.s=1),L.test(n)?hn(i,n):function(n,e){var t,r,i,s,o,u,c,a,l;if(e.indexOf("_")>-1){if(e=e.replace(/(\d)_(?=\d)/g,"$1"),L.test(e))return hn(n,e)}else if("Infinity"===e||"NaN"===e)return+e||(n.s=NaN),n.e=NaN,n.d=null,n;if($.test(e))t=16,e=e.toLowerCase();else if(k.test(e))t=2;else{if(!U.test(e))throw Error(T+e);t=8}for((s=e.search(/p/i))>0?(c=+e.slice(s+1),e=e.substring(2,s)):e=e.slice(2),o=(s=e.indexOf("."))>=0,r=n.constructor,o&&(s=(u=(e=e.replace(".","")).length)-s,i=on(r,new r(t),s,2*s)),s=l=(a=G(e,t,H)).length-1;0===a[s];--s)a.pop();return s<0?new r(0*n.s):(n.e=nn(a,l),n.d=a,_=!1,o&&(n=Q(n,i,4*u)),c&&(n=n.times(Math.abs(c)<54?Z(2,c):ie.pow(2,c))),_=!0,n)}(i,n);if("bigint"===r)return n<0?(n=-n,i.s=-1):i.s=1,hn(i,n.toString());throw Error(T+n)}if(s.prototype=J,s.ROUND_UP=0,s.ROUND_DOWN=1,s.ROUND_CEIL=2,s.ROUND_FLOOR=3,s.ROUND_HALF_UP=4,s.ROUND_HALF_DOWN=5,s.ROUND_HALF_EVEN=6,s.ROUND_HALF_CEIL=7,s.ROUND_HALF_FLOOR=8,s.EUCLID=9,s.config=s.set=Cn,s.clone=n,s.isDecimal=In,s.abs=vn,s.acos=Nn,s.acosh=bn,s.add=En,s.asin=xn,s.asinh=yn,s.atan=Pn,s.atanh=qn,s.atan2=Mn,s.cbrt=Rn,s.ceil=Sn,s.clamp=On,s.cos=_n,s.cosh=An,s.div=Tn,s.exp=Vn,s.floor=Dn,s.hypot=Fn,s.ln=Zn,s.log=kn,s.log10=Un,s.log2=$n,s.max=Ln,s.min=Hn,s.mod=jn,s.mul=Bn,s.pow=Jn,s.random=zn,s.round=Kn,s.sign=Wn,s.sin=Gn,s.sinh=Qn,s.sqrt=Xn,s.sub=Yn,s.sum=ne,s.tan=ee,s.tanh=te,s.trunc=re,void 0===e&&(e={}),e&&!0!==e.defaults)for(i=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],t=0;t<i.length;)e.hasOwnProperty(r=i[t++])||(e[r]=this[r]);return s.config(e),s}(C);S=new ie(S),O=new ie(O);var se=class n{constructor(e,t){if(e.length-1!==t.length){if(0===e.length)throw new TypeError("Expected at least 1 string");throw new TypeError(`Expected ${e.length} strings to have ${e.length-1} values`)}const r=t.reduce((e,t)=>e+(t instanceof n?t.values.length:1),0);this.values=new Array(r),this.strings=new Array(r+1),this.strings[0]=e[0];let i=0,s=0;for(;i<t.length;){const r=t[i++],o=e[i];if(r instanceof n){this.strings[s]+=r.strings[0];let n=0;for(;n<r.values.length;)this.values[s++]=r.values[n++],this.strings[s]=r.strings[n];this.strings[s]+=o}else this.values[s++]=r,this.strings[s]=o}}get sql(){const n=this.strings.length;let e=1,t=this.strings[0];for(;e<n;)t+=`?${this.strings[e++]}`;return t}get statement(){const n=this.strings.length;let e=1,t=this.strings[0];for(;e<n;)t+=`:${e}${this.strings[e++]}`;return t}get text(){const n=this.strings.length;let e=1,t=this.strings[0];for(;e<n;)t+=`$${e}${this.strings[e++]}`;return t}inspect(){return{sql:this.sql,statement:this.statement,text:this.text,values:this.values}}};function oe(n,e=",",t="",r=""){if(0===n.length)throw new TypeError("Expected `join([])` to be called with an array of multiple elements, but got an empty array");return new se([t,...Array(n.length-1).fill(e),r],n)}function ue(n){return new se([n],[])}var ce=ue("");function ae(n,...e){return new se(n,e)}
|
|
2
|
+
/*! Bundled license information:
|
|
3
|
+
|
|
4
|
+
decimal.js/decimal.mjs:
|
|
5
|
+
(*!
|
|
6
|
+
* decimal.js v10.5.0
|
|
7
|
+
* An arbitrary-precision Decimal type for JavaScript.
|
|
8
|
+
* https://github.com/MikeMcl/decimal.js
|
|
9
|
+
* Copyright (c) 2025 Michael Mclaughlin <M8ch88l@gmail.com>
|
|
10
|
+
* MIT Licence
|
|
11
|
+
*)
|
|
12
|
+
*/export{N as AnyNull,p as AnyNullClass,w as DbNull,d as DbNullClass,ie as Decimal,v as JsonNull,g as JsonNullClass,m as NullTypes,l as ObjectEnumValue,t as PrismaClientInitializationError,r as PrismaClientKnownRequestError,i as PrismaClientRustError,s as PrismaClientRustPanicError,o as PrismaClientUnknownRequestError,u as PrismaClientValidationError,se as Sql,ce as empty,n as hasBatchIndex,x as isAnyNull,b as isDbNull,E as isJsonNull,oe as join,ue as raw,ae as sql};
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ArgumentsHost } from '@nestjs/common';
|
|
2
2
|
import { BaseExceptionFilter } from '@nestjs/core';
|
|
3
|
-
import { PrismaClientKnownRequestError } from '
|
|
3
|
+
import { PrismaClientKnownRequestError } from '../generated/prisma/internal/prismaNamespace.js';
|
|
4
4
|
|
|
5
5
|
declare class PrismaClientExceptionFilter extends BaseExceptionFilter {
|
|
6
6
|
catch(exception: PrismaClientKnownRequestError, host: ArgumentsHost): void;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as runtime from '@prisma/client/runtime/client';
|
|
2
|
+
import { PrismaClientConstructor, PrismaClient as PrismaClient$1 } from './internal/class.js';
|
|
3
|
+
import { LogLevel, PrismaClientOptions } from './internal/prismaNamespace.js';
|
|
4
|
+
import * as generated_prisma_internal_prismaNamespace from './internal/prismaNamespace.js';
|
|
5
|
+
export { generated_prisma_internal_prismaNamespace as Prisma };
|
|
6
|
+
import * as enums from './enums.js';
|
|
7
|
+
export { enums as $Enums };
|
|
8
|
+
|
|
9
|
+
declare const PrismaClient: PrismaClientConstructor;
|
|
10
|
+
type PrismaClient<LogOpts extends LogLevel = never, OmitOpts extends PrismaClientOptions['omit'] = PrismaClientOptions['omit'], ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = PrismaClient$1<LogOpts, OmitOpts, ExtArgs>;
|
|
11
|
+
|
|
12
|
+
export { PrismaClient };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as runtime from '@prisma/client/runtime/client';
|
|
2
|
+
import { PrismaClientOptions, LogLevel, LogDefinition, GetEvents, Subset, TypeMap, QueryEvent, LogEvent, Sql, PrismaPromise, TransactionIsolationLevel, TypeMapCb } from './prismaNamespace.js';
|
|
3
|
+
|
|
4
|
+
type LogOptions<ClientOptions extends PrismaClientOptions> = 'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array<LogLevel | LogDefinition> ? GetEvents<ClientOptions['log']> : never : never;
|
|
5
|
+
interface PrismaClientConstructor {
|
|
6
|
+
new <Options extends PrismaClientOptions = PrismaClientOptions, LogOpts extends LogOptions<Options> = LogOptions<Options>, OmitOpts extends PrismaClientOptions['omit'] = Options extends {
|
|
7
|
+
omit: infer U;
|
|
8
|
+
} ? U : PrismaClientOptions['omit'], ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs>(options: Subset<Options, PrismaClientOptions>): PrismaClient<LogOpts, OmitOpts, ExtArgs>;
|
|
9
|
+
}
|
|
10
|
+
interface PrismaClient<in LogOpts extends LogLevel = never, in out OmitOpts extends PrismaClientOptions['omit'] = undefined, in out ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> {
|
|
11
|
+
[K: symbol]: {
|
|
12
|
+
types: TypeMap<ExtArgs>['other'];
|
|
13
|
+
};
|
|
14
|
+
$on<V extends LogOpts>(eventType: V, callback: (event: V extends 'query' ? QueryEvent : LogEvent) => void): PrismaClient;
|
|
15
|
+
$connect(): runtime.Types.Utils.JsPromise<void>;
|
|
16
|
+
$disconnect(): runtime.Types.Utils.JsPromise<void>;
|
|
17
|
+
$executeRaw<T = unknown>(query: TemplateStringsArray | Sql, ...values: any[]): PrismaPromise<number>;
|
|
18
|
+
$executeRawUnsafe<T = unknown>(query: string, ...values: any[]): PrismaPromise<number>;
|
|
19
|
+
$queryRaw<T = unknown>(query: TemplateStringsArray | Sql, ...values: any[]): PrismaPromise<T>;
|
|
20
|
+
$queryRawUnsafe<T = unknown>(query: string, ...values: any[]): PrismaPromise<T>;
|
|
21
|
+
$transaction<P extends PrismaPromise<any>[]>(arg: [...P], options?: {
|
|
22
|
+
isolationLevel?: TransactionIsolationLevel;
|
|
23
|
+
}): runtime.Types.Utils.JsPromise<runtime.Types.Utils.UnwrapTuple<P>>;
|
|
24
|
+
$transaction<R>(fn: (prisma: Omit<PrismaClient, runtime.ITXClientDenyList>) => runtime.Types.Utils.JsPromise<R>, options?: {
|
|
25
|
+
maxWait?: number;
|
|
26
|
+
timeout?: number;
|
|
27
|
+
isolationLevel?: TransactionIsolationLevel;
|
|
28
|
+
}): runtime.Types.Utils.JsPromise<R>;
|
|
29
|
+
$extends: runtime.Types.Extensions.ExtendsHook<'extends', TypeMapCb<OmitOpts>, ExtArgs, runtime.Types.Utils.Call<TypeMapCb<OmitOpts>, {
|
|
30
|
+
extArgs: ExtArgs;
|
|
31
|
+
}>>;
|
|
32
|
+
}
|
|
33
|
+
declare function getPrismaClientClass(): PrismaClientConstructor;
|
|
34
|
+
|
|
35
|
+
export { getPrismaClientClass };
|
|
36
|
+
export type { LogOptions, PrismaClient, PrismaClientConstructor };
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
import * as runtime from '@prisma/client/runtime/client';
|
|
2
|
+
import { PrismaClient } from './class.js';
|
|
3
|
+
|
|
4
|
+
type DMMF = typeof runtime.DMMF;
|
|
5
|
+
type PrismaPromise<T> = runtime.Types.Public.PrismaPromise<T>;
|
|
6
|
+
declare const PrismaClientKnownRequestError: typeof runtime.PrismaClientKnownRequestError;
|
|
7
|
+
type PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError;
|
|
8
|
+
declare const PrismaClientUnknownRequestError: typeof runtime.PrismaClientUnknownRequestError;
|
|
9
|
+
type PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError;
|
|
10
|
+
declare const PrismaClientRustPanicError: typeof runtime.PrismaClientRustPanicError;
|
|
11
|
+
type PrismaClientRustPanicError = runtime.PrismaClientRustPanicError;
|
|
12
|
+
declare const PrismaClientInitializationError: typeof runtime.PrismaClientInitializationError;
|
|
13
|
+
type PrismaClientInitializationError = runtime.PrismaClientInitializationError;
|
|
14
|
+
declare const PrismaClientValidationError: typeof runtime.PrismaClientValidationError;
|
|
15
|
+
type PrismaClientValidationError = runtime.PrismaClientValidationError;
|
|
16
|
+
declare const sql: typeof runtime.sqltag;
|
|
17
|
+
declare const empty: runtime.Sql;
|
|
18
|
+
declare const join: typeof runtime.join;
|
|
19
|
+
declare const raw: typeof runtime.raw;
|
|
20
|
+
declare const Sql: typeof runtime.Sql;
|
|
21
|
+
type Sql = runtime.Sql;
|
|
22
|
+
declare const Decimal: typeof runtime.Decimal;
|
|
23
|
+
type Decimal = runtime.Decimal;
|
|
24
|
+
type DecimalJsLike = runtime.DecimalJsLike;
|
|
25
|
+
type Extension = runtime.Types.Extensions.UserArgs;
|
|
26
|
+
declare const getExtensionContext: typeof runtime.Extensions.getExtensionContext;
|
|
27
|
+
type Args<T, F extends runtime.Operation> = runtime.Types.Public.Args<T, F>;
|
|
28
|
+
type Payload<T, F extends runtime.Operation = never> = runtime.Types.Public.Payload<T, F>;
|
|
29
|
+
type Result<T, A, F extends runtime.Operation> = runtime.Types.Public.Result<T, A, F>;
|
|
30
|
+
type Exact<A, W> = runtime.Types.Public.Exact<A, W>;
|
|
31
|
+
type PrismaVersion = {
|
|
32
|
+
client: string;
|
|
33
|
+
engine: string;
|
|
34
|
+
};
|
|
35
|
+
declare const prismaVersion: PrismaVersion;
|
|
36
|
+
type Bytes = runtime.Bytes;
|
|
37
|
+
type JsonObject = runtime.JsonObject;
|
|
38
|
+
type JsonArray = runtime.JsonArray;
|
|
39
|
+
type JsonValue = runtime.JsonValue;
|
|
40
|
+
type InputJsonObject = runtime.InputJsonObject;
|
|
41
|
+
type InputJsonArray = runtime.InputJsonArray;
|
|
42
|
+
type InputJsonValue = runtime.InputJsonValue;
|
|
43
|
+
declare const NullTypes: {
|
|
44
|
+
DbNull: new (secret: never) => typeof runtime.DbNull;
|
|
45
|
+
JsonNull: new (secret: never) => typeof runtime.JsonNull;
|
|
46
|
+
AnyNull: new (secret: never) => typeof runtime.AnyNull;
|
|
47
|
+
};
|
|
48
|
+
declare const DbNull: runtime.DbNullClass;
|
|
49
|
+
declare const JsonNull: runtime.JsonNullClass;
|
|
50
|
+
declare const AnyNull: runtime.AnyNullClass;
|
|
51
|
+
type SelectAndInclude = {
|
|
52
|
+
select: any;
|
|
53
|
+
include: any;
|
|
54
|
+
};
|
|
55
|
+
type SelectAndOmit = {
|
|
56
|
+
select: any;
|
|
57
|
+
omit: any;
|
|
58
|
+
};
|
|
59
|
+
type Prisma__Pick<T, K extends keyof T> = {
|
|
60
|
+
[P in K]: T[P];
|
|
61
|
+
};
|
|
62
|
+
type Enumerable<T> = T | Array<T>;
|
|
63
|
+
type Subset<T, U> = {
|
|
64
|
+
[key in keyof T]: key extends keyof U ? T[key] : never;
|
|
65
|
+
};
|
|
66
|
+
type SelectSubset<T, U> = {
|
|
67
|
+
[key in keyof T]: key extends keyof U ? T[key] : never;
|
|
68
|
+
} & (T extends SelectAndInclude ? 'Please either choose `select` or `include`.' : T extends SelectAndOmit ? 'Please either choose `select` or `omit`.' : {});
|
|
69
|
+
type SubsetIntersection<T, U, K> = {
|
|
70
|
+
[key in keyof T]: key extends keyof U ? T[key] : never;
|
|
71
|
+
} & K;
|
|
72
|
+
type Without<T, U> = {
|
|
73
|
+
[P in Exclude<keyof T, keyof U>]?: never;
|
|
74
|
+
};
|
|
75
|
+
type XOR<T, U> = T extends object ? U extends object ? (Without<T, U> & U) | (Without<U, T> & T) : U : T;
|
|
76
|
+
type IsObject<T extends any> = T extends Array<any> ? False : T extends Date ? False : T extends Uint8Array ? False : T extends BigInt ? False : T extends object ? True : False;
|
|
77
|
+
type UnEnumerate<T extends unknown> = T extends Array<infer U> ? U : T;
|
|
78
|
+
type __Either<O extends object, K extends Key> = Omit<O, K> & {
|
|
79
|
+
[P in K]: Prisma__Pick<O, P & keyof O>;
|
|
80
|
+
}[K];
|
|
81
|
+
type EitherStrict<O extends object, K extends Key> = Strict<__Either<O, K>>;
|
|
82
|
+
type EitherLoose<O extends object, K extends Key> = ComputeRaw<__Either<O, K>>;
|
|
83
|
+
type _Either<O extends object, K extends Key, strict extends Boolean> = {
|
|
84
|
+
1: EitherStrict<O, K>;
|
|
85
|
+
0: EitherLoose<O, K>;
|
|
86
|
+
}[strict];
|
|
87
|
+
type Either<O extends object, K extends Key, strict extends Boolean = 1> = O extends unknown ? _Either<O, K, strict> : never;
|
|
88
|
+
type Union = any;
|
|
89
|
+
type PatchUndefined<O extends object, O1 extends object> = {
|
|
90
|
+
[K in keyof O]: O[K] extends undefined ? At<O1, K> : O[K];
|
|
91
|
+
} & {};
|
|
92
|
+
type IntersectOf<U extends Union> = (U extends unknown ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
|
|
93
|
+
type Overwrite<O extends object, O1 extends object> = {
|
|
94
|
+
[K in keyof O]: K extends keyof O1 ? O1[K] : O[K];
|
|
95
|
+
} & {};
|
|
96
|
+
type _Merge<U extends object> = IntersectOf<Overwrite<U, {
|
|
97
|
+
[K in keyof U]-?: At<U, K>;
|
|
98
|
+
}>>;
|
|
99
|
+
type Key = string | number | symbol;
|
|
100
|
+
type AtStrict<O extends object, K extends Key> = O[K & keyof O];
|
|
101
|
+
type AtLoose<O extends object, K extends Key> = O extends unknown ? AtStrict<O, K> : never;
|
|
102
|
+
type At<O extends object, K extends Key, strict extends Boolean = 1> = {
|
|
103
|
+
1: AtStrict<O, K>;
|
|
104
|
+
0: AtLoose<O, K>;
|
|
105
|
+
}[strict];
|
|
106
|
+
type ComputeRaw<A extends any> = A extends Function ? A : {
|
|
107
|
+
[K in keyof A]: A[K];
|
|
108
|
+
} & {};
|
|
109
|
+
type OptionalFlat<O> = {
|
|
110
|
+
[K in keyof O]?: O[K];
|
|
111
|
+
} & {};
|
|
112
|
+
type _Record<K extends keyof any, T> = {
|
|
113
|
+
[P in K]: T;
|
|
114
|
+
};
|
|
115
|
+
type NoExpand<T> = T extends unknown ? T : never;
|
|
116
|
+
type AtLeast<O extends object, K extends string> = NoExpand<O extends unknown ? (K extends keyof O ? {
|
|
117
|
+
[P in K]: O[P];
|
|
118
|
+
} & O : O) | ({
|
|
119
|
+
[P in keyof O as P extends K ? P : never]-?: O[P];
|
|
120
|
+
} & O) : never>;
|
|
121
|
+
type _Strict<U, _U = U> = U extends unknown ? U & OptionalFlat<_Record<Exclude<Keys<_U>, keyof U>, never>> : never;
|
|
122
|
+
type Strict<U extends object> = ComputeRaw<_Strict<U>>;
|
|
123
|
+
type Merge<U extends object> = ComputeRaw<_Merge<Strict<U>>>;
|
|
124
|
+
type Boolean = True | False;
|
|
125
|
+
type True = 1;
|
|
126
|
+
type False = 0;
|
|
127
|
+
type Not<B extends Boolean> = {
|
|
128
|
+
0: 1;
|
|
129
|
+
1: 0;
|
|
130
|
+
}[B];
|
|
131
|
+
type Extends<A1 extends any, A2 extends any> = [A1] extends [never] ? 0 : A1 extends A2 ? 1 : 0;
|
|
132
|
+
type Has<U extends Union, U1 extends Union> = Not<Extends<Exclude<U1, U>, U1>>;
|
|
133
|
+
type Or<B1 extends Boolean, B2 extends Boolean> = {
|
|
134
|
+
0: {
|
|
135
|
+
0: 0;
|
|
136
|
+
1: 1;
|
|
137
|
+
};
|
|
138
|
+
1: {
|
|
139
|
+
0: 1;
|
|
140
|
+
1: 1;
|
|
141
|
+
};
|
|
142
|
+
}[B1][B2];
|
|
143
|
+
type Keys<U extends Union> = U extends unknown ? keyof U : never;
|
|
144
|
+
type GetScalarType<T, O> = O extends object ? {
|
|
145
|
+
[P in keyof T]: P extends keyof O ? O[P] : never;
|
|
146
|
+
} : never;
|
|
147
|
+
type FieldPaths<T, U = Omit<T, '_avg' | '_sum' | '_count' | '_min' | '_max'>> = IsObject<T> extends True ? U : T;
|
|
148
|
+
type GetHavingFields<T> = {
|
|
149
|
+
[K in keyof T]: Or<Or<Extends<'OR', K>, Extends<'AND', K>>, Extends<'NOT', K>> extends True ? T[K] extends infer TK ? GetHavingFields<UnEnumerate<TK> extends object ? Merge<UnEnumerate<TK>> : never> : never : {} extends FieldPaths<T[K]> ? never : K;
|
|
150
|
+
}[keyof T];
|
|
151
|
+
type _TupleToUnion<T> = T extends (infer E)[] ? E : never;
|
|
152
|
+
type TupleToUnion<K extends readonly any[]> = _TupleToUnion<K>;
|
|
153
|
+
type MaybeTupleToUnion<T> = T extends any[] ? TupleToUnion<T> : T;
|
|
154
|
+
type PickEnumerable<T, K extends Enumerable<keyof T> | keyof T> = Prisma__Pick<T, MaybeTupleToUnion<K>>;
|
|
155
|
+
type ExcludeUnderscoreKeys<T extends string> = T extends `_${string}` ? never : T;
|
|
156
|
+
type FieldRef<Model, FieldType> = runtime.FieldRef<Model, FieldType>;
|
|
157
|
+
declare const ModelName: {};
|
|
158
|
+
type ModelName = (typeof ModelName)[keyof typeof ModelName];
|
|
159
|
+
interface TypeMapCb<GlobalOmitOptions = {}> extends runtime.Types.Utils.Fn<{
|
|
160
|
+
extArgs: runtime.Types.Extensions.InternalArgs;
|
|
161
|
+
}, runtime.Types.Utils.Record<string, any>> {
|
|
162
|
+
returns: TypeMap<this['params']['extArgs'], GlobalOmitOptions>;
|
|
163
|
+
}
|
|
164
|
+
type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> = {
|
|
165
|
+
globalOmitOptions: {
|
|
166
|
+
omit: GlobalOmitOptions;
|
|
167
|
+
};
|
|
168
|
+
meta: {
|
|
169
|
+
modelProps: never;
|
|
170
|
+
txIsolationLevel: TransactionIsolationLevel;
|
|
171
|
+
};
|
|
172
|
+
model: {};
|
|
173
|
+
} & {
|
|
174
|
+
other: {
|
|
175
|
+
payload: any;
|
|
176
|
+
operations: {
|
|
177
|
+
$executeRaw: {
|
|
178
|
+
args: [query: TemplateStringsArray | Sql, ...values: any[]];
|
|
179
|
+
result: any;
|
|
180
|
+
};
|
|
181
|
+
$executeRawUnsafe: {
|
|
182
|
+
args: [query: string, ...values: any[]];
|
|
183
|
+
result: any;
|
|
184
|
+
};
|
|
185
|
+
$queryRaw: {
|
|
186
|
+
args: [query: TemplateStringsArray | Sql, ...values: any[]];
|
|
187
|
+
result: any;
|
|
188
|
+
};
|
|
189
|
+
$queryRawUnsafe: {
|
|
190
|
+
args: [query: string, ...values: any[]];
|
|
191
|
+
result: any;
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
declare const TransactionIsolationLevel: {
|
|
197
|
+
readonly ReadUncommitted: "ReadUncommitted";
|
|
198
|
+
readonly ReadCommitted: "ReadCommitted";
|
|
199
|
+
readonly RepeatableRead: "RepeatableRead";
|
|
200
|
+
readonly Serializable: "Serializable";
|
|
201
|
+
};
|
|
202
|
+
type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel];
|
|
203
|
+
type BatchPayload = {
|
|
204
|
+
count: number;
|
|
205
|
+
};
|
|
206
|
+
declare const defineExtension: runtime.Types.Extensions.ExtendsHook<"define", TypeMapCb, runtime.Types.Extensions.DefaultArgs>;
|
|
207
|
+
type DefaultPrismaClient = PrismaClient;
|
|
208
|
+
type ErrorFormat = 'pretty' | 'colorless' | 'minimal';
|
|
209
|
+
type PrismaClientOptions = ({
|
|
210
|
+
adapter: runtime.SqlDriverAdapterFactory;
|
|
211
|
+
accelerateUrl?: never;
|
|
212
|
+
} | {
|
|
213
|
+
accelerateUrl: string;
|
|
214
|
+
adapter?: never;
|
|
215
|
+
}) & {
|
|
216
|
+
errorFormat?: ErrorFormat;
|
|
217
|
+
log?: (LogLevel | LogDefinition)[];
|
|
218
|
+
transactionOptions?: {
|
|
219
|
+
maxWait?: number;
|
|
220
|
+
timeout?: number;
|
|
221
|
+
isolationLevel?: TransactionIsolationLevel;
|
|
222
|
+
};
|
|
223
|
+
omit?: GlobalOmitConfig;
|
|
224
|
+
comments?: runtime.SqlCommenterPlugin[];
|
|
225
|
+
};
|
|
226
|
+
type GlobalOmitConfig = {};
|
|
227
|
+
type LogLevel = 'info' | 'query' | 'warn' | 'error';
|
|
228
|
+
type LogDefinition = {
|
|
229
|
+
level: LogLevel;
|
|
230
|
+
emit: 'stdout' | 'event';
|
|
231
|
+
};
|
|
232
|
+
type CheckIsLogLevel<T> = T extends LogLevel ? T : never;
|
|
233
|
+
type GetLogType<T> = CheckIsLogLevel<T extends LogDefinition ? T['level'] : T>;
|
|
234
|
+
type GetEvents<T extends any[]> = T extends Array<LogLevel | LogDefinition> ? GetLogType<T[number]> : never;
|
|
235
|
+
type QueryEvent = {
|
|
236
|
+
timestamp: Date;
|
|
237
|
+
query: string;
|
|
238
|
+
params: string;
|
|
239
|
+
duration: number;
|
|
240
|
+
target: string;
|
|
241
|
+
};
|
|
242
|
+
type LogEvent = {
|
|
243
|
+
timestamp: Date;
|
|
244
|
+
message: string;
|
|
245
|
+
target: string;
|
|
246
|
+
};
|
|
247
|
+
type PrismaAction = 'findUnique' | 'findUniqueOrThrow' | 'findMany' | 'findFirst' | 'findFirstOrThrow' | 'create' | 'createMany' | 'createManyAndReturn' | 'update' | 'updateMany' | 'updateManyAndReturn' | 'upsert' | 'delete' | 'deleteMany' | 'executeRaw' | 'queryRaw' | 'aggregate' | 'count' | 'runCommandRaw' | 'findRaw' | 'groupBy';
|
|
248
|
+
type TransactionClient = Omit<DefaultPrismaClient, runtime.ITXClientDenyList>;
|
|
249
|
+
|
|
250
|
+
export { AnyNull, DbNull, Decimal, JsonNull, ModelName, NullTypes, PrismaClientInitializationError, PrismaClientKnownRequestError, PrismaClientRustPanicError, PrismaClientUnknownRequestError, PrismaClientValidationError, Sql, TransactionIsolationLevel, defineExtension, empty, getExtensionContext, join, prismaVersion, raw, sql };
|
|
251
|
+
export type { Args, At, AtLeast, BatchPayload, Boolean, Bytes, CheckIsLogLevel, ComputeRaw, DMMF, DecimalJsLike, DefaultPrismaClient, Either, Enumerable, ErrorFormat, Exact, ExcludeUnderscoreKeys, Extends, Extension, False, FieldRef, GetEvents, GetHavingFields, GetLogType, GetScalarType, GlobalOmitConfig, Has, InputJsonArray, InputJsonObject, InputJsonValue, IntersectOf, JsonArray, JsonObject, JsonValue, Keys, LogDefinition, LogEvent, LogLevel, MaybeTupleToUnion, Merge, Not, OptionalFlat, Or, Overwrite, PatchUndefined, Payload, PickEnumerable, PrismaAction, PrismaClientOptions, PrismaPromise, PrismaVersion, QueryEvent, Result, SelectSubset, Strict, Subset, SubsetIntersection, TransactionClient, True, TypeMap, TypeMapCb, UnEnumerate, Union, XOR };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as _prisma_client_runtime_utils from '@prisma/client-runtime-utils';
|
|
2
|
+
import * as runtime from '@prisma/client/runtime/index-browser';
|
|
3
|
+
export { Args, At, AtLeast, BatchPayload, Boolean, Bytes, CheckIsLogLevel, ComputeRaw, DMMF, DecimalJsLike, DefaultPrismaClient, Either, Enumerable, ErrorFormat, Exact, ExcludeUnderscoreKeys, Extends, Extension, False, FieldRef, GetEvents, GetHavingFields, GetLogType, GetScalarType, GlobalOmitConfig, Has, InputJsonArray, InputJsonObject, InputJsonValue, IntersectOf, JsonArray, JsonObject, JsonValue, Keys, LogDefinition, LogEvent, LogLevel, MaybeTupleToUnion, Merge, Not, OptionalFlat, Or, Overwrite, PatchUndefined, Payload, PickEnumerable, PrismaAction, PrismaClientInitializationError, PrismaClientKnownRequestError, PrismaClientOptions, PrismaClientRustPanicError, PrismaClientUnknownRequestError, PrismaClientValidationError, PrismaPromise, PrismaVersion, QueryEvent, Result, SelectSubset, Sql, Strict, Subset, SubsetIntersection, TransactionClient, True, TypeMap, TypeMapCb, UnEnumerate, Union, XOR, defineExtension, empty, getExtensionContext, join, prismaVersion, raw, sql } from './prismaNamespace.js';
|
|
4
|
+
|
|
5
|
+
declare const Decimal: typeof runtime.Decimal;
|
|
6
|
+
declare const NullTypes: {
|
|
7
|
+
DbNull: new (secret: never) => typeof runtime.DbNull;
|
|
8
|
+
JsonNull: new (secret: never) => typeof runtime.JsonNull;
|
|
9
|
+
AnyNull: new (secret: never) => typeof runtime.AnyNull;
|
|
10
|
+
};
|
|
11
|
+
declare const DbNull: _prisma_client_runtime_utils.DbNullClass;
|
|
12
|
+
declare const JsonNull: _prisma_client_runtime_utils.JsonNullClass;
|
|
13
|
+
declare const AnyNull: _prisma_client_runtime_utils.AnyNullClass;
|
|
14
|
+
declare const ModelName: {};
|
|
15
|
+
type ModelName = (typeof ModelName)[keyof typeof ModelName];
|
|
16
|
+
declare const TransactionIsolationLevel: {
|
|
17
|
+
readonly ReadUncommitted: "ReadUncommitted";
|
|
18
|
+
readonly ReadCommitted: "ReadCommitted";
|
|
19
|
+
readonly RepeatableRead: "RepeatableRead";
|
|
20
|
+
readonly Serializable: "Serializable";
|
|
21
|
+
};
|
|
22
|
+
type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel];
|
|
23
|
+
|
|
24
|
+
export { AnyNull, DbNull, Decimal, JsonNull, ModelName, NullTypes, TransactionIsolationLevel };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infineit-nestjs/core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.39",
|
|
4
4
|
"main": "./dist/cjs/index.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
"dev": "concurrently -c blue,red -n tsc,rollup --kill-others \"tsc --watch -p . --preserveWatchOutput\" \"rollup --config --watch --no-watch.clearScreen\""
|
|
112
112
|
},
|
|
113
113
|
"dependencies": {
|
|
114
|
-
"@infineit-nestjs/services": "1.0.
|
|
114
|
+
"@infineit-nestjs/services": "1.0.44",
|
|
115
115
|
"@infineit-nestjs/types": "1.0.11",
|
|
116
116
|
"@nestjs/swagger": "^11.0.7",
|
|
117
117
|
"dotenv": "^16.5.0",
|
|
@@ -153,5 +153,5 @@
|
|
|
153
153
|
"node": ">=18.0.0",
|
|
154
154
|
"npm": ">=9.0.0"
|
|
155
155
|
},
|
|
156
|
-
"gitHead": "
|
|
156
|
+
"gitHead": "73991942aa0c6333fbd160d4e798ee47c9491639"
|
|
157
157
|
}
|